/* ===================================================================
   JOYHOTELS — cinematic studio site
   Dark sections are cinematic, ivory sections are editorial.
   Motion start-states only apply under html.motion (added by boot.js
   when JavaScript runs and reduced motion is off), so every word and
   image stays visible if scripts fail.
   =================================================================== */

@import url('../fonts/fonts.css');

:root {
  /* JoyHotels brand: orange, pink-cream, near-black (from the original site) */
  --obsidian: #0a0a0a;
  --charcoal: #141416;
  --ivory: #fdf4f8;        /* cream-pink light sections */
  --pink: #fae8f0;
  --gold: #ff5500;         /* brand orange (variable name kept so every accent follows) */
  --gold-deep: #e04b00;
  --grey: #8a8a93;
  --white: #ffffff;
  --ink: #18181b;          /* body text on light sections */
  --hard: #000000;         /* hard offset shadows */
  --line-dark: rgba(245, 240, 232, 0.14);
  --line-light: rgba(23, 23, 25, 0.14);

  --serif: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; /* headings */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #ffffff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--obsidian);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- Type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.label::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.display em { font-style: italic; font-weight: 300; color: var(--gold); text-transform: none; }

/* "UNFORGETTABLE." is ~8.04em wide: 10.4vw / 9.2rem keep it inside the text column
   at every width from 320px phones to ultra-wide screens (it used to clip above ~1500px) */
.h-xl { font-size: clamp(2rem, 10.4vw, 9.2rem); }
.h-lg { font-size: clamp(2.5rem, 6.6vw, 6.2rem); }
.h-md { font-size: clamp(2.1rem, 4.6vw, 4.2rem); }

.lede {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.78);
}
.on-ivory .lede, .lede.dark { color: rgba(29, 29, 31, 0.78); }
.lede p { margin: 0; }
.lede p + p { margin-top: 1em; }

/* Lines of a heading, each revealed from behind a mask */
.line { display: block; overflow: hidden; padding: 0.06em 0 0.08em; margin: -0.06em 0 -0.08em; }
.line > span { display: inline-block; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.btn-gold { background: var(--gold); color: var(--obsidian); }
.btn-gold:hover { background: var(--ivory); }
.btn-line { border-color: rgba(245, 240, 232, 0.45); color: var(--ivory); }
.btn-line:hover { background: var(--ivory); color: var(--obsidian); border-color: var(--ivory); }
.btn-ink { border-color: var(--line-light); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn .arrow { font-size: 1rem; letter-spacing: 0; line-height: 1; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s, border-color 0.45s, backdrop-filter 0.45s;
}
.nav.is-solid {
  background: rgba(11, 11, 13, 0.82);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ivory);
}
.brand b { font-weight: 500; color: var(--gold); }
.nav-links {
  display: none;
  gap: clamp(20px, 2.6vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(245, 240, 232, 0.72);
  padding: 8px 0;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0% 1px no-repeat;
  transition: color 0.3s, background-size 0.45s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--ivory); background-size: 100% 1px; }
.nav-cta { display: none; min-height: 44px; padding: 0 20px; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-btn .bars { position: relative; width: 26px; height: 10px; }
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease), width 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-btn .bars::before { top: 0; width: 26px; }
.menu-btn .bars::after { top: 9px; width: 18px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 5px; width: 26px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--pad) 32px;
  background: var(--obsidian);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s ease, visibility 0s; }
.mobile-menu[hidden] { display: none; }
[tabindex="-1"]:focus { outline: none; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu li + li { border-top: 1px solid var(--line-dark); }
.mobile-menu a.m-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu a.m-link small {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.mobile-menu .m-foot { display: grid; gap: 14px; }

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--obsidian);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.55) 0%, rgba(11, 11, 13, 0.35) 35%, rgba(11, 11, 13, 0.92) 88%),
    linear-gradient(90deg, rgba(11, 11, 13, 0.6), rgba(11, 11, 13, 0) 70%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(72px, 12vh, 120px);
}
.hero-inner > * { flex: none; }
/* Genesis 12:1–9: small and classic at the top of the hero; the rest stays at the bottom */
.hero-verse {
  max-width: 40ch;
  margin: 0 0 auto;
  padding-bottom: 36px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-style: italic;
  line-height: 1.6;
  color: rgba(253, 244, 248, 0.84);
}
.hero-verse .ref {
  margin-right: 0.3em;
  font-size: 0.74em;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-title { margin: 22px 0 0; }
.hero-copy {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
}
.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: rgba(245, 240, 232, 0.2);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(-100%);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Desktop: the photo becomes a tall framed panel (it is a portrait image) */
@media (min-width: 900px) {
  .hero-media {
    inset: calc(var(--nav-h) + 20px) var(--pad) clamp(40px, 8vh, 80px) auto;
    width: min(40vw, 560px);
    overflow: hidden;
  }
  .hero-shade {
    background: linear-gradient(90deg, rgba(11, 11, 13, 1) 30%, rgba(11, 11, 13, 0.2) 75%, rgba(11, 11, 13, 0));
  }
  .hero-copy { grid-template-columns: minmax(0, 46ch) auto; align-items: end; justify-content: space-between; gap: 40px; }
  .scroll-cue { display: flex; }
}

/* ---------- Generic sections ---------- */
.section { position: relative; padding-block: clamp(96px, 14vw, 200px); }
.on-ivory { background: var(--ivory); color: var(--ink); }
.on-ivory .label { color: var(--gold-deep); }
.on-dark { background: var(--obsidian); color: var(--ivory); }
.on-charcoal { background: var(--charcoal); color: var(--ivory); }

.sec-head { display: grid; gap: 26px; max-width: 980px; }

/* ---------- Introduction ---------- */
.intro-grid { display: grid; gap: 56px; }
.intro-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e8e1d5;
}
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
/* the caption: a tilted brand sticker overlapping the bottom of the photo */
.intro-sticker {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: -34px 0 0 18px;
  padding: 12px 18px 13px;
  border: 2px solid #000;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 4px 4px 0 #000;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--obsidian);
  transform: rotate(-2.5deg);
}
.intro-sticker em { display: block; font-style: normal; color: var(--gold); }
.cap {
  margin-top: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.intro-text { display: grid; gap: 28px; align-content: start; }
.intro-text p { margin: 0; }
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 7fr 4fr; align-items: end; gap: clamp(48px, 7vw, 120px); }
  .intro-figure { margin-top: 140px; }
}

/* ---------- Services ---------- */
.services { display: grid; gap: clamp(80px, 11vw, 150px); margin-top: clamp(70px, 9vw, 130px); }
.service { display: grid; gap: 30px; align-items: center; }
.service-num {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.service h3 {
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.02;
}
.service p.desc { margin: 0 0 22px; max-width: 46ch; color: rgba(29, 29, 31, 0.78); font-size: 1.05rem; }
.service ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}
.service li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.92rem;
  color: rgba(29, 29, 31, 0.86);
}
.service-media {
  position: relative;
  overflow: hidden;
  background: #e8e1d5;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media.wide { aspect-ratio: 16 / 10; }
.service-media.tall { aspect-ratio: 4 / 5; }
.service-media.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: none; }
.service-media.duo > div { overflow: hidden; aspect-ratio: 9 / 16; background: #e8e1d5; }
.service-media.duo img { width: 100%; height: 100%; object-fit: cover; }
.service .note { margin: 18px 0 0; font-size: 0.82rem; color: var(--grey); }
@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); }
  .service:nth-child(even) .service-text { order: 2; }
}

/* ---------- Featured projects ---------- */
.projects { display: grid; gap: clamp(110px, 14vw, 200px); margin-top: clamp(80px, 10vw, 140px); }
.project { display: grid; gap: 34px; }
.project-meta { display: grid; gap: 14px; align-content: start; }
.project-meta .kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-meta h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 300;
  line-height: 0.95;
  text-transform: uppercase;
}
.project-meta p { margin: 0; max-width: 46ch; color: rgba(245, 240, 232, 0.74); }
.project-meta .links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 6px; color: var(--gold); }
.project-stage { position: relative; }
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
}
.shot img { width: 100%; height: auto; }
.shot.phone { border-radius: 26px; border: 6px solid #232326; }
.shot .chrome-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  background: #1d1d20;
  border-bottom: 1px solid var(--line-dark);
}
.shot .chrome-bar span { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3e; }
.shot .chrome-bar em {
  margin-left: 10px;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 232, 0.45);
}
.stage-phone {
  position: absolute;
  right: 4%;
  bottom: -12%;
  width: 24%;
  min-width: 120px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.stage-pair { display: grid; }
.stage-pair .shot:nth-child(2) {
  width: 64%;
  margin: -16% 0 0 auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
@media (min-width: 900px) {
  .project { grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
  .project.flip { grid-template-columns: 8fr 4fr; }
  .project.flip .project-meta { order: 2; }
  .project.tight { grid-template-columns: 5fr 7fr; }
}

/* ---------- Interactive showcase ---------- */
.showcase { position: relative; background: var(--obsidian); }
.showcase-head { padding-block: clamp(96px, 12vw, 160px) clamp(40px, 6vw, 80px); }
.slides { display: grid; gap: 72px; padding-bottom: clamp(96px, 12vw, 160px); }
.slide { display: grid; gap: 22px; }
.slide-frame { position: relative; overflow: hidden; border: 1px solid var(--line-dark); background: var(--charcoal); }
.slide-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.slide-info { display: grid; gap: 10px; }
.slide-info h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; text-transform: uppercase; }
.slide-info p { margin: 0; color: rgba(245, 240, 232, 0.72); max-width: 44ch; }
.slide-end { display: grid; gap: 24px; justify-items: start; padding-top: 24px; }

/* Pinned version (desktop, motion allowed): slides stack in one viewport */
html.motion .showcase.is-pinned .slides {
  position: relative;
  display: block;
  height: 100vh;
  padding: 0;
}
html.motion .showcase.is-pinned .slide {
  position: absolute;
  inset: 0;
  display: block;
}
html.motion .showcase.is-pinned .slide-frame {
  position: absolute;
  inset: 12vh 8vw 18vh 8vw;
}
html.motion .showcase.is-pinned .slide-info {
  position: absolute;
  left: 8vw;
  right: 8vw;
  bottom: 4vh;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 32px;
}
html.motion .showcase.is-pinned .slide-end {
  position: absolute;
  inset: 0;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 0 8vw;
}

/* ---------- Film ---------- */
.film-frame {
  margin-top: clamp(56px, 7vw, 100px);
  aspect-ratio: 16 / 9;
}
.film-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(24px - var(--edge, 3px));
  background: #000;
}
.film-play {
  position: absolute;
  inset: var(--edge, 3px);
  border-radius: calc(24px - var(--edge, 3px));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(11, 11, 13, 0.25);
  cursor: pointer;
  transition: background-color 0.4s;
}
.film-play:hover { background: rgba(11, 11, 13, 0.1); }
.film-play .disc {
  display: grid;
  place-items: center;
  width: clamp(72px, 9vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 232, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.film-frame.is-playing .film-play { opacity: 0; pointer-events: none; }
/* Without JavaScript the video keeps its native controls instead */
html:not(.js) .film-play,
html:not(.js) .film-toggle { display: none; }
.film-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
}
.film-toggle {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  background: none;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.film-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Process ---------- */
.steps { display: grid; gap: 0; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line-light); }
.step {
  display: grid;
  gap: 10px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line-light);
}
.step-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: 0.85;
  color: var(--gold-deep);
}
.step h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; }
.step p { margin: 0; max-width: 52ch; color: rgba(29, 29, 31, 0.78); }
@media (min-width: 900px) {
  .step { grid-template-columns: 1.2fr 2fr 4fr; align-items: baseline; gap: 40px; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 60px; margin-top: clamp(64px, 8vw, 110px); }
.why-list { margin: 0; padding: 0; list-style: none; counter-reset: why; }
.why-list li {
  counter-increment: why;
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 300;
  line-height: 1.2;
}
.why-list li::before {
  content: counter(why, decimal-leading-zero);
  padding-top: 0.55em;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.why-shot { position: relative; overflow: hidden; border: 1px solid var(--line-dark); }
.why-shot img { width: 100%; height: auto; }
.why-note { margin: 22px 0 0; font-size: 0.85rem; color: var(--grey); max-width: 52ch; }
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 7fr 5fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
  .why-visual { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
}
.contact-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); }
.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--obsidian) 0%, rgba(11, 11, 13, 0.4) 50%, var(--obsidian) 100%);
}
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-grid { display: grid; gap: 56px; margin-top: clamp(64px, 8vw, 110px); }
.founder { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; }
.founder img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.founder p { margin: 0; }
.founder .who { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.founder .role { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.contact-lines { display: grid; gap: 0; margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.contact-lines li { border-bottom: 1px solid var(--line-dark); }
.contact-lines a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-lines a:hover { color: var(--gold); }
.contact-lines span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); align-self: center; }
.contact-lines strong { font-weight: 500; font-size: 1.05rem; word-break: break-word; text-align: right; }

.enquiry { display: grid; gap: 22px; }
.enquiry h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(245, 240, 232, 0.65); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 1rem;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-bottom-color: var(--gold); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-bottom-color: #e07a5f; }
.field .err { min-height: 1.1em; margin: 0; font-size: 0.78rem; color: #f0a48c; }
.two { display: grid; gap: 22px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.enquiry .fine { margin: 0; font-size: 0.8rem; color: rgba(245, 240, 232, 0.55); }
.enquiry .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 120px); }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-dark); background: var(--obsidian); }
.footer-grid { display: grid; gap: 44px; padding-block: 80px 40px; }
.footer h4 { margin: 0 0 16px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: rgba(245, 240, 232, 0.78); transition: color 0.3s; }
.footer a:hover { color: var(--gold); }
.footer .statement { margin: 18px 0 0; max-width: 34ch; font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: rgba(245, 240, 232, 0.86); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.5);
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 5fr 2fr 2fr 3fr; }
}

.footer li span { color: rgba(245, 240, 232, 0.78); }

/* ---------- AI assistant ---------- */
.ai { overflow: hidden; }
.ai-grid { display: grid; gap: 64px; }
.ai-text { display: grid; gap: 28px; align-content: start; }
.ai-text strong { color: var(--gold); font-weight: 600; }
.ai-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.ai-points li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(245, 240, 232, 0.86);
}
.ai-points li span {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
}
.ai-text .btn { justify-self: start; }
.ai-demo { position: relative; display: grid; gap: 14px; align-content: start; }
.ai-cap { margin-top: 64px; } /* clears the floating phones above it */
.chat {
  position: relative;
  z-index: 2;
  max-width: 460px;
  border: 1px solid rgba(255, 85, 0, 0.35);
  background: #141416;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: 1.35rem;
}
.chat-head small {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #4cc38a; box-shadow: 0 0 0 4px rgba(76, 195, 138, 0.18); }
.chat-body { display: grid; gap: 14px; padding: 18px; }
.chat-bubble {
  position: relative;
  margin: 0;
  max-width: 92%;
  min-height: 4.8em;
  padding: 14px 16px;
  border-radius: 4px 16px 16px 16px;
  background: rgba(245, 240, 232, 0.08);
  font-size: 0.95rem;
  line-height: 1.55;
}
.chat-bubble .caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--gold);
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.chat-label { margin: 4px 0 0; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chat-chips li {
  padding: 7px 12px;
  border: 1px solid rgba(245, 240, 232, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.9);
}
.ai-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  perspective: 1200px;
}
.ai-phone {
  margin: 0;
  overflow: hidden;
  border: 5px solid #232326;
  border-radius: 22px;
  background: #232326;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.ai-phone img { width: 100%; height: auto; }
.ai-phone:nth-child(2) { margin-top: 28px; }
@media (min-width: 900px) {
  .ai-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 100px); align-items: start; }
  /* chat and phones overlap in one grid row; the caption gets its own row
     below whichever of the two is taller, so the chat can never cover it */
  .ai-demo { padding-top: 40px; grid-template-columns: 30% 20% 1fr; column-gap: 0; }
  .chat { grid-area: 1 / 1 / 2 / 3; align-self: start; margin-left: -12%; }
  .ai-phones { grid-area: 1 / 2 / 2 / 4; margin-top: 230px; gap: 16px; }
  .ai-cap { grid-area: 2 / 2 / 3 / 4; margin-top: 64px; } /* clears the phones' float and tilt */
}

/* ---------- Video frames: a slowly turning gold edge ---------- */
@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.reel-frame,
.film-frame {
  --edge: 3px;
  position: relative;
  padding: var(--edge);
  border-radius: 24px;
  background: conic-gradient(from var(--spin), #ff5500, rgba(255, 85, 0, 0.06) 22%, #fae8f0 42%, rgba(255, 85, 0, 0.06) 62%, #ff5500);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55), 0 0 46px rgba(255, 85, 0, 0.16);
  animation: edge-spin 7s linear infinite;
}
@keyframes edge-spin { to { --spin: 360deg; } }

/* Promo videos */
.reels {
  display: grid;
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
  gap: 48px;
  margin-top: clamp(72px, 9vw, 130px);
}
.reel { margin: 0; }
.reel-inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: calc(24px - var(--edge, 3px));
  background: #000;
}
.reel-inner video { width: 100%; height: 100%; object-fit: cover; }
.reel-ui {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}
.reel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(245, 240, 232, 0.45);
  border-radius: 999px;
  background: rgba(11, 11, 13, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.reel-btn:hover { border-color: var(--gold); }
.reel-btn svg { width: 18px; height: 18px; fill: currentColor; }
.reel-btn .i-pause, .reel-btn .i-sound { display: none; }
.reel-btn.is-on .i-play, .reel-btn.is-on .i-muted { display: none; }
.reel-btn.is-on .i-pause, .reel-btn.is-on .i-sound { display: block; }
.reel-btn[data-act="sound"].is-on { background: var(--gold); border-color: var(--gold); color: var(--obsidian); }
/* Without JavaScript the native video controls are used instead */
html:not(.js) .reel-ui { display: none; }
@media (min-width: 700px) {
  .reels { grid-template-columns: repeat(2, minmax(0, 340px)); gap: clamp(40px, 6vw, 96px); }
  .reel:last-child { margin-top: 80px; }
}

/* ---------- Bold wordmark at the very bottom ---------- */
.footer-mark {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 10px var(--pad) 0.12em; /* room for the tail of the "y" */
  font-family: var(--serif);
  font-size: clamp(4.2rem, 21vw, 22rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.03em;
  color: var(--ivory);
  user-select: none;
}
.footer-mark b { font-weight: 700; color: var(--gold); }
.footer-mark .ch { display: inline-block; }

/* ---------- Motion start-states (only with JS + motion allowed) ---------- */
html.motion [data-fade] { opacity: 0; }
html.motion [data-lines] .line > span { transform: translateY(110%); }
html.motion [data-mask] { clip-path: inset(100% 0 0 0); }
html.motion .hero [data-hero-fade] { opacity: 0; }
html.motion [data-hero-title] .line > span { transform: translateY(110%); }
html.motion [data-hero-media] { clip-path: inset(100% 0 0 0); }
html.motion [data-stagger] > * { opacity: 0; }

/* ===================================================================
   JoyHotels brand theme: heavy uppercase headings, orange accents,
   pink-cream dotted light sections, black borders with hard shadows
   =================================================================== */
.on-ivory {
  background-color: var(--ivory);
  background-image: radial-gradient(rgba(10, 10, 10, 0.12) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.on-dark, .hero, .on-charcoal, .footer, .contact, .showcase, .philosophy, .ai, #work, #why { --hard: var(--pink); }

.display { font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.display em { font-style: normal; font-weight: 800; color: var(--gold); }
/* sized for the wide heavy face: "UNFORGETTABLE." is ~9.3em wide and must fit 280px phones */
.h-xl { font-size: clamp(1.75rem, 8.6vw, 8.2rem); }
.h-lg { font-size: clamp(1.9rem, 5.2vw, 4.6rem); }
.h-md { font-size: clamp(1.7rem, 3.6vw, 3rem); }

.label { font-family: var(--serif); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.14em; }
.label::before { display: none; }

.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; text-transform: uppercase; }
.nav-links a { font-family: var(--serif); font-weight: 700; letter-spacing: 0.08em; }
.mobile-menu a.m-link { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(1.8rem, 8vw, 2.6rem); }

.btn {
  border: 2px solid #000;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-gold { background: var(--gold); color: #ffffff; box-shadow: 4px 4px 0 var(--hard); }
.btn-gold:hover { background: var(--gold-deep); color: #ffffff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--hard); }
.btn-gold:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--hard); }
.btn-line { border-color: #ffffff; color: #ffffff; box-shadow: 4px 4px 0 var(--gold); }
.btn-line:hover { background: #ffffff; color: var(--obsidian); border-color: #ffffff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--gold); }
.btn-ink { border-color: #000; color: #000; box-shadow: 4px 4px 0 #000; }
.btn-ink:hover { background: #000; color: #ffffff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.film-toggle { border: 2px solid var(--pink); border-radius: 999px; font-family: var(--serif); font-weight: 800; }

/* black borders and hard shadows on every image and card */
.shot,
.service-media.wide,
.service-media.tall,
.service-media.duo > div,
.intro-photo,
.why-shot,
.chat,
.slide-frame {
  border: 2px solid #000;
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--hard);
}
.shot.phone, .ai-phone { border: 2px solid #000; border-radius: 30px; box-shadow: 6px 6px 0 var(--hard); }
.stage-phone, .stage-pair .shot:nth-child(2) { box-shadow: 6px 6px 0 var(--hard); }
.shot .chrome-bar { border-bottom: 2px solid #000; }

.service-num { font-family: var(--serif); font-weight: 800; }
.service h3, .step h3, .slide-info h3, .project-meta h3, .enquiry h3, .chat-head {
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.service h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.chat-head { font-size: 1.1rem; white-space: nowrap; }
.chat-head small { white-space: nowrap; letter-spacing: 0.14em; }
.project-meta h3 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); }
.slide-info h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.step-num { font-weight: 800; color: var(--gold); }
.enquiry h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.why-list li { font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; }
.ai-points li span { font-family: var(--serif); font-weight: 800; font-size: 1.05rem; }
.founder .who { font-weight: 800; font-size: 1.35rem; }
.footer .statement { font-weight: 600; font-size: 1.2rem; }
.film-play .disc { border: 2px solid #ffffff; background: rgba(255, 85, 0, 0.85); font-family: var(--serif); font-weight: 800; }

/* the bold wordmark at the very bottom */
.footer-mark { font-weight: 800; letter-spacing: -0.05em; text-transform: uppercase; font-size: clamp(2.6rem, 13vw, 15rem); line-height: 0.9; }
.footer-mark b { font-weight: 800; }

/* ---------- Make room for joy ---------- */
.philosophy { padding-block: clamp(70px, 9vw, 130px); }
.joy-strip {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px;
  background: #ffffff;
  color: var(--obsidian);
  border: 2px solid #000;
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--hard);
  text-align: center;
}
.joy-strip-media {
  overflow: hidden;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  aspect-ratio: 819 / 1024;
  border: 2px solid #000;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #000;
}
.joy-strip-media img { width: 100%; height: 100%; object-fit: cover; }
.joy-strip .label { color: var(--gold); }
.joy-strip-title {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--obsidian);
}
.joy-strip-title em { font-style: normal; color: var(--gold); }
.joy-strip-text > p:not(.label) { margin: 0; color: #52525b; font-size: 0.97rem; line-height: 1.7; }
@media (min-width: 700px) {
  .joy-strip { grid-template-columns: 220px 1fr; gap: 36px; padding: 36px; text-align: left; }
  .joy-strip-media { margin: 0; max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-frame, .film-frame { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
