/* ==========================================================
   Chiraag Jain — Portfolio
   Concept: the site is a stage. Dark house, warm gel light.
   ========================================================== */

:root {
  /* colour */
  --ink: #0d0a09;
  --ink-2: #161110;
  --ink-3: #211816;
  --line: rgba(243, 234, 219, 0.14);
  --cream: #f3eadb;
  --cream-2: #e9dcc6;
  --text: #f3eadb;
  --text-dim: rgba(243, 234, 219, 0.72);
  --text-dark: #1a1210;
  --text-dark-dim: rgba(26, 18, 16, 0.74);
  --gel: #ef4b2f;          /* red-orange lighting gel */
  --gel-deep: #b3301a;     /* for text on cream */
  --amber: #f5b544;
  --chezel: #f26a1f;
  --paper: #fbf6ee;
  --error: #ff8f7a;
  --focus: var(--amber);   /* overridden to ink on light sections */

  /* type */
  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* rhythm */
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--gel); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
/* Light sections get a dark focus ring (amber on cream is only ~1.5:1) */
.about, .work, .chezel, .footer { --focus: var(--ink); }
.work .films { --focus: var(--amber); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3rem, 8.4vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.display--sm { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.serif {
  font-family: var(--f-serif);
  font-style: italic;
  text-transform: none;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.display .serif { font-size: 1.04em; }
.gel { color: var(--gel); }
.h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
.eyebrow--dark { color: var(--gel-deep); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gel); box-shadow: 0 0 12px var(--gel); }

.label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s;
}
.btn svg, .link-arrow svg, .nav__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.btn:hover svg, .link-arrow:hover svg, .nav__cta:hover svg { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--amber); }
.btn--light:hover svg { transform: translateY(3px); }
/* transparent background: <button> elements otherwise get the browser's light-grey default */
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--gel { background: var(--gel); color: var(--ink); border: none; }
.btn--gel:hover { background: var(--amber); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid currentColor;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.tags--dark li { border-color: rgba(26,18,16,.2); color: var(--text-dark-dim); }

.pill { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--gel); color: var(--ink); white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background-color .35s, backdrop-filter .35s, transform .4s var(--ease-out);
}
.nav.is-scrolled { background: rgba(13, 10, 9, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
/* backdrop-filter and transform make the nav the containing block for position:fixed children,
   which would trap the full-screen mobile menu inside the bar — drop them while the menu is open */
.nav.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; transition: none; }
.nav__logo { font-family: var(--f-display); font-size: 1.9rem; text-decoration: none; line-height: 1; letter-spacing: .02em; }
.nav__logo span { color: var(--gel); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .92rem; position: relative; padding: 12px 0; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--gel);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: inline-flex !important; align-items: center; gap: 8px; padding: 10px 18px !important; border-radius: 999px; background: var(--cream); color: var(--ink); transition: background-color .25s; }
.nav__cta:hover { background: var(--amber); }

.nav__toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--cream); transition: transform .35s var(--ease-out), top .35s; }
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 27px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 8px;
    background: var(--ink); padding: 96px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  /* visibility flips instantly on open so the first link can take focus right away */
  .nav__links.is-open { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
  .nav__links a { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 11vw, 3.6rem); text-transform: uppercase; }
  .nav__links a:not(.nav__cta)::after { bottom: 6px; height: 3px; }
  .nav__cta { font-family: var(--f-body) !important; font-size: 1rem !important; margin-top: 20px; padding: 14px 24px !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px var(--gutter) 48px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(239, 75, 47, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(245, 181, 68, 0.08), transparent 70%),
    var(--ink);
  overflow: hidden;
}
.hero__meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim);
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  max-width: 1280px; width: 100%; margin-inline: auto;
}
.hero__grid {
  flex: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: 1280px; width: 100%; margin-inline: auto; padding-top: clamp(24px, 4vw, 48px);
}
.hero__text { position: relative; z-index: 2; min-width: 0; container-type: inline-size; }
.hero__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 13rem); line-height: 0.84; letter-spacing: -0.005em;
  margin-bottom: 28px;
}
/* "CHIRAAG" is ~3.1em wide — size the name to its column so it never wraps or overflows */
@supports (font-size: 1cqi) {
  .hero__title { font-size: min(30cqi, 13rem); }
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .02em; white-space: nowrap; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease-out) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title em { font-style: normal; color: var(--gel); }
@keyframes rise { to { transform: translateY(0); } }

.hero__lede {
  font-family: var(--f-serif); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; max-width: 22ch;
  margin-bottom: 36px; color: var(--text);
  opacity: 0; animation: fadeUp .9s .45s var(--ease-out) forwards;
}
.hero__lede em { color: var(--amber); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fadeUp .9s .6s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__stage {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 3 / 4; max-height: 76svh; justify-self: end; width: 100%;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);

  touch-action: pan-y;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero__stage img { width: 100%; height: 100%; object-fit: cover; }
.hero__spot { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Oversized light layer, moved with transform only (GPU-composited, no per-frame repaint) */
.hero__beam {
  --size: 2400px; --r: 210px;
  position: absolute; left: 0; top: 0; width: var(--size); height: var(--size);
  transform: translate3d(calc(50% * -1), -40%, 0);
  background: radial-gradient(circle var(--r) at center,
    rgba(255, 214, 150, 0.10) 0%, rgba(13,10,9,0) 45%, rgba(13,10,9,.55) 75%, rgba(13,10,9,.9) 100%);
  will-change: transform;
}
.hero__stage.is-fully-lit .hero__beam { display: none; }
.hero__hint {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(13,10,9,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  transition: opacity .5s;
}
.hero__hint svg { width: 16px; height: 16px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.hero__stage.is-lit .hero__hint { opacity: 0; }
.hero__badge {
  position: absolute; right: 14px; top: 14px; width: 104px; height: 104px;
  display: grid; place-items: center;
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge text { font-family: var(--f-body); font-size: 10px; font-weight: 700; fill: var(--cream); }
@media (hover: none) { .hero__hint { display: none; } }
.hero__badge span { font-family: var(--f-display); font-size: 1.5rem; width: 52px; height: 52px; border-radius: 50%; background: var(--gel); color: var(--ink); display: grid; place-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { justify-self: stretch; max-height: none; aspect-ratio: 4 / 5; }
}
@media (max-width: 600px) {
  .hero { padding-top: 92px; }
  .hero__meta span:last-child { display: none; }
  .hero__lede { margin-bottom: 28px; }
}

/* ---------- marquee ---------- */
/* The band is tilted and slightly scaled; the wrapper clips its sideways overflow
   while the vertical padding leaves room for the rotated corners. */
.marquee-wrap {
  position: relative; z-index: 3; overflow: hidden;
  padding-block: 28px; margin-block: -28px; pointer-events: none;
}
.marquee {
  background: var(--gel); color: var(--ink); overflow: hidden; white-space: nowrap;
  padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin: -6px 0 -6px;
  position: relative; z-index: 3;
}
.marquee__track { display: inline-flex; align-items: center; gap: 28px; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: uppercase; line-height: 1; }
.marquee i { font-style: normal; font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about (cream "house lights up") ---------- */
.about { background: var(--cream); color: var(--text-dark); padding: var(--section) 0; }
.about__head { display: flex; flex-direction: column; margin-bottom: clamp(40px, 6vw, 80px); }
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__photo { border-radius: var(--radius); overflow: hidden; position: sticky; top: 100px; }
.about__photo img { width: 100%; aspect-ratio: 2/3; object-fit: cover; filter: contrast(1.04); }
.about__big { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.35; font-weight: 500; margin-bottom: clamp(36px, 5vw, 64px); max-width: 30ch; }
.about__big strong { color: var(--gel-deep); font-weight: 700; }
.about__big em { font-family: var(--f-serif); font-size: 1.15em; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.about__item { border-top: 1.5px solid var(--text-dark); padding-top: 18px; }
.about__item .num { font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--gel-deep); }
.about__item h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin: 6px 0 12px; }
.about__item p { color: var(--text-dark-dim); max-width: 46ch; }
.about__langs { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.about__langs .label { color: var(--text-dark-dim); }
.about__langs ul { display: flex; flex-wrap: wrap; gap: 8px; }
.about__langs li { padding: 8px 16px; border-radius: 999px; background: var(--text-dark); color: var(--cream); font-weight: 600; font-size: .9rem; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: 0; max-width: 420px; }
  .about__cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- section heads ---------- */
.section-head { display: flex; flex-direction: column; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head__note { margin-top: 22px; max-width: 46ch; color: var(--text-dim); font-size: 1.05rem; }
.section-head--row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head--row .section-head__note { margin-top: 0; }

/* ---------- disciplines ---------- */
.disc { padding: var(--section) 0; }
.disc__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.disc__card {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 380px;
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease-out), border-color .3s;
}
.disc__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 70% at 50% -10%, rgba(239,75,47,.35), transparent 60%);
  opacity: 0; transition: opacity .45s;
}
.disc__card:hover { transform: translateY(-6px); border-color: rgba(239,75,47,.5); }
.disc__card:hover::before { opacity: 1; }
.disc__num {
  font-family: var(--f-display); font-size: clamp(4rem, 6vw, 5.6rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1.5px rgba(243,234,219,.35);
  margin-bottom: 36px; transition: -webkit-text-stroke-color .3s, color .3s;
}
.disc__card:hover .disc__num { color: var(--gel); -webkit-text-stroke-color: var(--gel); }
.disc__card h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin-top: 24px; }
.disc__card p { color: var(--text-dim); font-size: .95rem; }

@media (max-width: 1080px) { .disc__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .disc__list { grid-template-columns: 1fr; } .disc__card { min-height: 0; } }

/* ---------- stage ---------- */
.stage {
  padding: var(--section) 0;
  background:
    radial-gradient(50% 30% at 15% 0%, rgba(239,75,47,.14), transparent 70%),
    var(--ink);
  border-top: 1px solid var(--line);
}
.stage__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.stage__copy p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 16px; max-width: 52ch; }
.stage__stat { display: flex; align-items: baseline; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.stage__stat dt { font-family: var(--f-display); font-size: clamp(4rem, 7vw, 6rem); line-height: .85; color: var(--amber); }
.stage__stat dd { font-weight: 600; max-width: 16ch; line-height: 1.3; }

.credits { margin-bottom: clamp(48px, 6vw, 80px); }
.credits__label { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.credits__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 22px 0; border-top: 1px solid var(--line);
  transition: padding .4s var(--ease-out), color .3s;
}
.credits__list li:last-child { border-bottom: 1px solid var(--line); }
.credits__list li:hover { padding-left: 14px; }
.credits__list li:hover .credits__show { color: var(--gel); }
.credits__show { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1; transition: color .3s; }
.credits__role { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--amber); }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 12px;
  margin-bottom: clamp(56px, 8vw, 112px);
}
.gallery__item {
  position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--ink-3);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), filter .5s; filter: saturate(.92); }
.gallery__item:hover img { transform: scale(1.05); filter: saturate(1.1); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .g-tall { grid-row: span 2; }
}

.teach { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.teach__photo { border-radius: var(--radius); overflow: hidden; }
.teach__photo img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.teach__body .display { margin-bottom: 32px; }
.teach__roles { display: grid; gap: 14px; }
.role { padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.role header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.role h4 { font-size: 1.15rem; font-weight: 700; }
.role__org { font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: var(--amber); margin-bottom: 10px; }
.role p:not(.role__org) { color: var(--text-dim); }
.role strong { color: var(--text); }

@media (max-width: 900px) {
  .stage__intro, .teach { grid-template-columns: 1fr; }
  .teach__photo { max-width: 420px; }
}

/* ---------- work (cream) ---------- */
.work { background: var(--cream); color: var(--text-dark); padding: var(--section) 0; }
.work .eyebrow { color: var(--gel-deep); }
.work .films .eyebrow { color: var(--amber); }
.work .section-head__note { color: var(--text-dark-dim); }

.case {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 56px) 0; border-top: 1.5px solid var(--text-dark);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.case__media--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case__media--duo img { border-radius: 14px; width: 100%; aspect-ratio: 1312/1199; object-fit: cover; }
.case__media--duo img:last-child { transform: translateY(32px); }
.case__kicker { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark-dim); margin-bottom: 14px; }
.case__kicker span { font-family: var(--f-display); font-size: 1rem; letter-spacing: 0; color: var(--cream); background: var(--text-dark); border-radius: 999px; padding: 4px 10px; }
.case__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .95; }
.case__line { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--gel-deep); margin: 8px 0 18px; }
.case__body > p:not(.case__kicker):not(.case__line) { color: var(--text-dark-dim); margin-bottom: 20px; max-width: 50ch; }
.case__body .tags { margin-bottom: 24px; }

.case--squad { grid-template-columns: 0.8fr 1.2fr; }
.case__strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--text-dark) transparent;
  overscroll-behavior-x: contain;
}
.case__strip img { flex: 0 0 auto; width: clamp(200px, 22vw, 280px); aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; scroll-snap-align: start; }

@media (max-width: 900px) {
  .case, .case--squad { grid-template-columns: 1fr; }
  .case--squad .case__strip { order: -1; }
  .case__media--duo img:last-child { transform: translateY(20px); }
  .case--luxify .case__body { padding-top: 12px; }
}

/* Squad shoot films */
.films {
  display: grid; grid-template-columns: 0.75fr 1.6fr 0.6fr; gap: clamp(16px, 2.4vw, 28px); align-items: end;
  padding: clamp(28px, 4vw, 48px); margin-bottom: clamp(40px, 6vw, 80px);
  border-radius: 24px; background: var(--ink); color: var(--text);
}
.films__text { align-self: center; }
.films__text .h3 { margin-bottom: 14px; }
.films__text p:not(.eyebrow) { color: var(--text-dim); max-width: 34ch; }
.films figure { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.films video { width: 100%; object-fit: cover; background: #000; }
.films__bts video { aspect-ratio: 16 / 9; }
.films__reel video { aspect-ratio: 9 / 16; }
.films figcaption {
  position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px;
  background: rgba(13,10,9,.7); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none;
}
@media (max-width: 960px) {
  .films { grid-template-columns: 1fr 0.45fr; }
  .films__text { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .films { grid-template-columns: 1fr; padding: 20px; }
  .films__reel { max-width: 260px; }
}

.case-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-row .mini__media { aspect-ratio: 16 / 10; }
.case-row .mini__media img { object-position: top; }
.mini {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid rgba(26,18,16,.12);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.mini:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(26,18,16,.45); }
.mini__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--text-dark); }
.mini__media img, .mini__media video { width: 100%; height: 100%; object-fit: cover; }
.mini__media--kahe {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px;
  background:
    repeating-radial-gradient(circle at 110% -10%, transparent 0 14px, rgba(110,74,54,.18) 14px 15px),
    #efe6dd;
  color: #6e4a36;
}
.kahe__word { font-family: var(--f-serif); font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; }
.kahe__sub { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.mini__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.mini__body h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }
.mini__body p:not(.case__kicker) { color: var(--text-dark-dim); font-size: .95rem; margin-bottom: 14px; }
.mini__body .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 620px) { .case-row { grid-template-columns: 1fr; } }

/* ---------- chezel ---------- */
.chezel { background: var(--chezel); color: var(--text-dark); padding: var(--section) 0; overflow: hidden; }
.chezel .eyebrow--dark { color: var(--text-dark); }
.chezel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.chezel__media { position: relative; aspect-ratio: 1 / 1; }
.chezel__media img { position: absolute; width: 62%; border-radius: 18px; box-shadow: 0 40px 60px -30px rgba(0,0,0,.5); }
.chezel__logo { left: 0; top: 0; width: 58% !important; transform: rotate(-4deg); }
.chezel__poster { right: 0; bottom: 0; width: 52% !important; transform: rotate(3deg); }
.chezel__body .display { margin-bottom: 26px; }
.chezel__body p:not(.eyebrow):not(.chezel__status) { font-size: 1.1rem; margin-bottom: 16px; max-width: 46ch; color: rgba(26,18,16,.86); }
.chezel__status { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 18px; border-radius: 999px; background: var(--text-dark); color: var(--cream); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.chezel__status .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
@media (max-width: 900px) { .chezel__grid { grid-template-columns: 1fr; } .chezel__media { max-width: 480px; width: 100%; } }

/* ---------- journey ---------- */
.journey { padding: var(--section) 0; }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: clamp(56px, 8vw, 96px); }
.act {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 24px 28px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.act::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gel), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .2s;
}
.act.is-in::after { transform: scaleX(1); }
.act__no { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--amber); }
.act h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }
.act p { color: var(--text-dim); font-size: .97rem; }
.act--next { background: transparent; border-style: dashed; border-color: rgba(243,234,219,.3); }
@media (max-width: 960px) { .acts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .acts { grid-template-columns: 1fr; } }

.strengths__list { display: flex; flex-wrap: wrap; gap: 10px; }
.strengths__list li {
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.2rem, 2.2vw, 1.8rem); line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line);
  transition: background-color .3s, color .3s, border-color .3s;
}
.strengths__list li:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- quote ---------- */
.quote { padding: clamp(64px, 9vw, 128px) 0; border-block: 1px solid var(--line); background: radial-gradient(50% 80% at 50% 50%, rgba(239,75,47,.12), transparent 70%), var(--ink); }
.quote blockquote p {
  font-family: var(--f-serif); font-size: clamp(2rem, 4.8vw, 4.2rem); line-height: 1.1; text-align: center; max-width: 24ch; margin-inline: auto; text-wrap: balance;
}
.quote em { font-style: italic; color: var(--amber); }

/* ---------- contact ---------- */
.contact { padding: var(--section) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__info .display { margin-bottom: 24px; }
.contact__info > p { color: var(--text-dim); font-size: 1.1rem; max-width: 40ch; margin-bottom: 36px; }
.contact__list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list a, .contact__list span:not(.label) { font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }
.contact__list a { text-decoration-color: var(--gel); text-underline-offset: 4px; }
.contact__list a:hover { color: var(--amber); }

.form { padding: clamp(24px, 3.5vw, 40px); border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.field > label > span, .field > legend > span { color: var(--gel); }
.field legend { margin-bottom: 10px; padding: 0; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  background: var(--ink); border: 1.5px solid var(--line); color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: rgba(243,234,219,.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,181,68,.25); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: .85rem; min-height: 0; }
.field__err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; transition: background-color .25s, color .25s, border-color .25s; }
.chips label:hover span { border-color: rgba(243,234,219,.4); }
.chips input:checked + span { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chips input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form__note { font-size: .85rem; color: var(--text-dim); margin-top: -10px; }

@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
/* extra bottom padding so the floating pause button never covers the last row */
.footer { background: var(--cream); color: var(--text-dark); padding: clamp(64px, 9vw, 120px) 0 88px; }
.footer__big {
  display: block; text-decoration: none;
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3.4rem, 12vw, 11rem); line-height: .88;
  margin-bottom: clamp(48px, 7vw, 96px); transition: color .3s;
}
.footer__big:hover { color: var(--gel-deep); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 22px; border-top: 1.5px solid var(--text-dark); font-weight: 600; font-size: .9rem; }
.footer__row nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__row a { text-decoration: none; padding: 8px 0; }
.footer__row a:hover { color: var(--gel-deep); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8,6,5,.92); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 12px; object-fit: contain; }
.lightbox__close {
  position: fixed; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.lightbox__close svg { width: 22px; height: 22px; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; }
.lightbox[open] img { animation: zoomIn .35s var(--ease-out); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Failsafe: if script.js never runs, show everything after 2.5s */
.js:not(.js-ready) .reveal { animation: revealFailsafe .6s 2.5s forwards; }
@keyframes revealFailsafe { to { opacity: 1; transform: none; } }

/* ==========================================================
   Interaction layer
   ========================================================== */

/* ---------- opening curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; cursor: pointer; }
.is-curtain .curtain, .curtain.is-active { display: grid; }
.curtain.is-open { pointer-events: none; }
.curtain__half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), transparent 18%, transparent 80%, rgba(0,0,0,.5)),
    repeating-linear-gradient(90deg, #6e1209 0 22px, #8c1a0d 22px 40px, #a3220f 40px 52px, #7a150a 52px 70px);
  transition: transform .9s cubic-bezier(0.77, 0, 0.18, 1);
}
.curtain__half--l { left: 0; box-shadow: inset -30px 0 40px rgba(0,0,0,.45); transform-origin: left; }
.curtain__half--r { right: 0; box-shadow: inset 30px 0 40px rgba(0,0,0,.45); transform-origin: right; }
.curtain__cue {
  position: relative; display: flex; gap: 12px;
  font-family: var(--f-display); font-size: clamp(1.4rem, 3.4vw, 2.4rem); text-transform: uppercase; color: var(--cream);
  transition: opacity .35s;
}
.curtain__cue span { opacity: 0; transform: translateY(12px); animation: cue .5s var(--ease-out) forwards; }
.curtain__cue span:nth-child(2) { animation-delay: .12s; color: var(--amber); }
.curtain__cue span:nth-child(3) { animation-delay: .22s; }
.curtain__cue span:nth-child(4) { animation-delay: .32s; color: var(--amber); }
.curtain__cue span:nth-child(5) { animation-delay: .42s; }
@keyframes cue { to { opacity: 1; transform: none; } }
.curtain.is-open .curtain__half--l { transform: translateX(-100%) scaleX(.6); }
.curtain.is-open .curtain__half--r { transform: translateX(100%) scaleX(.6); }
.curtain.is-open .curtain__cue { opacity: 0; }
.curtain.is-gone { display: none !important; }
/* hold hero entrance animations until the curtain opens */
/* Failsafe: never leave the curtain up if script.js fails */
.js:not(.js-ready) .curtain { animation: curtainFailsafe 0s 3s forwards; }
@keyframes curtainFailsafe { to { visibility: hidden; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 150; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gel), var(--amber)); transform-origin: left; transform: scaleX(0); }

/* ---------- cursor follower (fine pointers only) ----------
   Decorative ring that trails the pointer. The system cursor is never hidden,
   so OS pointer size / contrast settings keep working. */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
    border: 1.5px solid var(--cream); mix-blend-mode: difference;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s, border-color .3s, opacity .3s;
    will-change: transform;
  }
  .cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gel); border-color: var(--gel); mix-blend-mode: normal; }
  .cursor.is-hidden { opacity: 0; }
  .cursor.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .cursor__label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ---------- hero title characters ---------- */
.hero__title .char { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 45ms + 80ms); transition: color .25s, transform .4s var(--ease-out); }
.hero__title.is-split .line > span { transform: none; animation: none; }
.hero__title .char.is-hit { color: var(--gel); }
.hero__stage img { transition: transform 1.2s var(--ease-out); transform: scale(1.06) translate(var(--px, 0), var(--py, 0)); }

/* ---------- magnetic buttons ---------- */
[data-magnetic] { transition: transform .45s var(--ease-out), background-color .25s, color .25s, border-color .25s; will-change: transform; }

/* ---------- tilt cards with glare ---------- */
[data-tilt] { transform-style: preserve-3d; position: relative; }
[data-tilt]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 226, 180, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
[data-tilt].is-tilting::after { opacity: 1; }
.mini[data-tilt]::after { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 45%); }

/* ---------- parallax ---------- */
[data-parallax] { overflow: hidden; }
[data-parallax] img { transform: translateY(var(--pl, 0px)) scale(1.12); will-change: transform; }

/* ---------- marquee driven by scroll ---------- */
.marquee--js .marquee__track { animation: none; will-change: transform; }

/* ---------- credits light beam ---------- */
.credits__list li { position: relative; isolation: isolate; }
.credits__list li::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(260px 90% at var(--mx, 50%) 50%, rgba(245, 181, 68, .16), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.credits__list li:hover::before { opacity: 1; }

/* ---------- acts: the act "on stage" is lit ---------- */
.act { transition: background-color .5s, border-color .5s, transform .5s var(--ease-out); }
.act.is-live { background: var(--ink-3); border-color: rgba(239, 75, 47, .55); transform: translateY(-4px); }
.act.is-live .act__no { text-shadow: 0 0 18px rgba(245, 181, 68, .6); }

/* ---------- strengths pop ---------- */
.strengths__list li { transition: background-color .3s, color .3s, border-color .3s, transform .35s var(--ease-out); }
.strengths__list li:hover { transform: translateY(-3px) rotate(-1.5deg); }
.strengths__list li:nth-child(even):hover { transform: translateY(-3px) rotate(1.5deg); }

/* ==========================================================
   Pre-launch fixes
   ========================================================== */

/* Touch targets: 44px minimum for text links */
.nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
.footer__row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.contact__list a { display: inline-flex; align-items: center; min-height: 44px; }
.tags li { font-size: .8125rem; }

/* Tablet: keep the hero photo from pushing everything two screens down */
@media (min-width: 601px) and (max-width: 900px) {
  .hero__stage { aspect-ratio: 16 / 11; }
  .hero__stage img { object-position: 50% 58%; }
}

/* Small buttons (form fallbacks) */
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .88rem; }
.btn--sm svg { width: 16px; height: 16px; }

/* Contact form: spam trap + status panel */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__status {
  padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink);
  display: grid; gap: 8px;
}
.form__status[hidden] { display: none; }
.form__status:focus { outline: none; }
.form__status:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.form__status-title { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.form__status-title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }
.form__status.is-success .form__status-title::before { background: #6fd08c; }
.form__status.is-error .form__status-title::before { background: var(--error); }
.form__status-text { color: var(--text-dim); font-size: .95rem; }
.form__status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.form__status-actions[hidden] { display: none; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* Pause / play motion */
.motion-toggle {
  /* bottom-right: page content is left-aligned, so this corner is the emptiest */
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 140;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13,10,9,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); cursor: pointer; color: var(--cream);
  transition: background-color .25s, transform .25s var(--ease-out);
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { background: var(--ink-3); }
.motion-toggle:active { transform: scale(.94); }
.motion-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.motion-toggle__play { display: none; fill: currentColor !important; stroke: none !important; }
.motion-paused .motion-toggle__pause { display: none; }
.motion-paused .motion-toggle__play { display: block; }
.motion-paused .hero__badge svg,
.motion-paused .marquee__track { animation-play-state: paused !important; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__lede, .hero__actions, .hero__stage { opacity: 1; }
  .marquee__track { animation: none; }
  .hero__badge svg { animation: none; }
  .curtain { display: none; }
  .hero__title .char { transform: none; }
  [data-parallax] img { transform: none; }
  .cursor { display: none !important; }
  .motion-toggle { display: none; }
}
