/* =====================================================================
   BLACK PALM STUDIO — Luxury Creative Agency
   Design system: black + gold, warm cream editorial breaks
   Type: Cormorant Garamond (display) · Jost (sans)
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --black:      #0A0A0B;
  --ink:        #0D0D0F;
  --ink-2:      #141416;
  --ink-3:      #1B1B1E;
  --cream:      #F4EFE6;
  --cream-2:    #EAE2D3;
  --paper-ink:  #17140E;
  --paper-mut:  #6C6455;

  --gold:       #D5B036;
  --gold-lt:    #E7CA6C;
  --gold-dp:    #B8952A;
  --gold-ink:   #7A5E1B; /* accessible antique gold for small text on cream (AA) */
  --gold-soft:  rgba(213,176,54,0.14);

  --text:       #ECE8DF;
  --muted:      #9C968A;
  --muted-2:    #746F65;
  --line:       rgba(244,239,230,0.12);
  --line-soft:  rgba(244,239,230,0.06);

  /* Type */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --container: 1360px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(5rem, 12vw, 11rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--black); }

/* Keyboard focus — soft glow, visible for keyboard users, invisible for mouse (WCAG 2.4.7) */
:focus { outline: none; }
:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(244,239,230,0.55), 0 0 14px 4px rgba(244,239,230,0.35);
}
/* darker halo on light/cream backgrounds so it stays visible */
.cream :focus-visible {
  box-shadow: 0 0 0 2px rgba(23,20,14,0.45), 0 0 14px 4px rgba(23,20,14,0.28);
}

/* Skip to content */
.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 2000;
  background: var(--gold); color: var(--black);
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.75rem 1.25rem; border-radius: 0 0 6px 6px;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); outline: none; }

/* Film-grain + vignette atmosphere */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  background: radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; }
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.1rem, 11vw, 12rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.h-xl { font-size: clamp(2.6rem, 7vw, 6.2rem); line-height: 0.98; }
.h-lg { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.02; }
.h-md { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.08; }
.cta-title { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.04; }
.italic { font-style: italic; }
.gold  { color: var(--gold); }
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--gold); opacity: 0.7;
}
.eyebrow.center::before { display: none; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.7; color: var(--muted); font-weight: 300;
  max-width: 46ch;
}
p { max-width: 66ch; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 8vw, 7rem); }
.cream { background: var(--cream); color: var(--paper-ink); }
.cream .muted { color: var(--paper-mut); }
.cream .eyebrow { color: var(--gold-ink); }
.cream .eyebrow::before { background: var(--gold-ink); opacity: 1; }
.cream .lead { color: var(--paper-mut); }
.ink { background: var(--ink); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
/* responsive two-column grid (collapses on mobile) */
.grid--split2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px){ .grid--split2 { grid-template-columns: 1fr; align-items: start !important; } }
/* 3-up steps grid — only wide on desktop; below 800px the .steps media rules take over */
@media (min-width: 801px){ .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.hairline { height: 1px; background: var(--line); border: 0; }
.stack-sm > * + * { margin-top: 1rem; }
.stack   > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.5rem; }
/* gold dot bullets for lists that opt in */
.bullet-list li:not(.hairline) { position: relative; padding-left: 1.4rem; }
.bullet-list li:not(.hairline)::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.05rem 2rem; border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .35s var(--ease), box-shadow .5s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { box-shadow: 0 16px 44px -12px rgba(213,176,54,0.55); }
.btn--gold::before {
  content: ""; position: absolute; inset: 0; background: var(--gold-lt);
  transform: translateY(101%); transition: transform .45s var(--ease); z-index: 0;
}
.btn--gold:hover::before { transform: translateY(0); }
.btn--gold span, .btn--gold svg { position: relative; z-index: 1; transition: transform .35s var(--ease); }

.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 0;
}
.btn--ghost:hover { color: var(--black); border-color: var(--gold); }
.btn--ghost:hover::before { transform: scaleX(1); }
.btn--ghost span, .btn--ghost svg { position: relative; z-index: 1; }
.cream .btn--ghost { border-color: rgba(23,20,14,0.2); color: var(--paper-ink); }

/* Masked arrow swap — one arrow exits right, a fresh one enters from the left */
.btn__arrow { position: relative; display: inline-block; width: 16px; height: 16px; overflow: hidden; z-index: 1; transition: transform .35s var(--ease); }
.btn__arrow svg { position: absolute; inset: 0; width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn__arrow .a-in { transform: translateX(-155%); }
.btn:hover .btn__arrow .a-out { transform: translateX(155%); }
.btn:hover .btn__arrow .a-in { transform: translateX(0); }

/* text link with underline sweep */
.link-u {
  position: relative; display: inline-block; color: inherit;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400;
  padding-bottom: 4px;
}
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.link-u:hover { color: var(--gold); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav.scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line-soft);
  height: 68px;
}
.nav__brand { display: flex; align-items: center; gap: 0.75rem; z-index: 1002; }
.nav__brand img { width: 30px; height: auto; }
.nav__brand-txt {
  font-family: var(--sans); font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--text);
  line-height: 1;
}
.nav__brand-txt small { display: block; font-size: 0.55rem; letter-spacing: 0.42em; color: var(--gold); margin-top: 4px; }

.nav__links { display: flex; align-items: center; gap: 2.4rem; }
.nav__link {
  font-family: var(--sans); font-weight: 400; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  position: relative; padding: 6px 0; opacity: 0.82; transition: opacity .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn { padding: 0.8rem 1.5rem; }

.nav__toggle { display: none; width: 44px; height: 44px; z-index: 1002; flex-direction: column; justify-content: center; gap: 6px; align-items: flex-end; }
.nav__toggle span { display: block; height: 1.5px; width: 26px; background: var(--text); transition: transform .4s var(--ease), opacity .3s, width .4s; transform-origin: center; }
.nav__toggle span:nth-child(2) { width: 18px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); width: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); width: 26px; }

/* Mobile overlay menu */
.menu {
  position: fixed; inset: 0; z-index: 1001;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
.menu.open { clip-path: circle(150% at calc(100% - 44px) 44px); pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 0.3rem; }
.menu__link {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 12vw, 4.5rem);
  line-height: 1.1; color: var(--text); display: flex; align-items: baseline; gap: 1rem;
  transition: color .3s;
}
.menu__link span { font-family: var(--sans); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.2em; }
.menu__link:hover { color: var(--gold); }
.menu__foot { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; }
.menu__foot a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.62) 0%, rgba(10,10,11,0.28) 32%, rgba(10,10,11,0.48) 62%, rgba(10,10,11,0.97) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__title { font-size: clamp(2.7rem, 8.5vw, 9rem); margin-block: 1.5rem 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; }
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); display: inline-block; }
.hero__scroll {
  position: absolute; bottom: 2rem; right: var(--gutter); z-index: 2;
  display: flex; align-items: center; gap: 0.8rem; color: var(--muted);
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.hero__scroll .bar { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll .bar::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--gold); animation: scrolldn 2.2s var(--ease) infinite; }
@keyframes scrolldn { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(300%)} }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* Word-stagger helpers */
/* padding-bottom keeps descenders (g, y, p) from being clipped by the reveal mask */
.words .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.18em; margin-bottom: -0.12em; }
.words .word > span { display: inline-block; }

/* ---------- Scroll-to-expand hero (home) ---------- */
.sx { position: relative; min-height: 100svh; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--black); }
.sx__bg { position: absolute; inset: 0; z-index: 0; opacity: 0; }
.sx__bg img { width: 100%; height: 100%; object-fit: cover; }
.sx__bg::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,11,0.45); }
.sx__media {
  position: relative; width: 100%; height: 100%;
  transform-origin: center center;
  z-index: 1; overflow: hidden; will-change: transform;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}
.sx__media video, .sx__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.6) 0%, rgba(10,10,11,0.22) 34%, rgba(10,10,11,0.46) 64%, rgba(10,10,11,0.96) 100%);
}
.sx__center { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.5rem; padding: 0 var(--gutter); pointer-events: none; }
.sx__eyebrow { will-change: opacity; }
.sx__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0.3em; font-family: var(--serif); font-weight: 300; line-height: 1; letter-spacing: -0.02em; font-size: clamp(2.8rem, 9vw, 8rem); color: var(--cream); }
.sx__word { display: inline-block; will-change: transform, opacity; }
.sx__end { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.sx__end .hero__meta { justify-content: center; }
.sx__hint {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); opacity: 0;
}
.sx__hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); }
@media (prefers-reduced-motion: reduce){ .sx__bg { opacity: 0; } .sx__media { transform: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.6rem; }
.marquee__track { display: flex; gap: 4rem; width: max-content; will-change: transform; }
.marquee__item {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--muted); white-space: nowrap;
  display: flex; align-items: center; gap: 4rem;
}
.marquee__item::after { content: "✦"; color: var(--gold); font-style: normal; font-size: 0.7em; }

/* ---------- Services list ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 5rem 1fr auto; gap: clamp(1rem,3vw,3rem); align-items: center;
  padding-block: clamp(1.8rem, 4vw, 3.2rem); border-bottom: 1px solid var(--line);
  position: relative; transition: padding-left .5s var(--ease);
}
.svc__row::before {
  content: ""; position: absolute; inset: 0; background: var(--gold-soft);
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1;
}
.svc__row:hover::before { transform: scaleY(1); }
.svc__row:hover { padding-left: 1.5rem; }
.svc__num { font-family: var(--sans); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; }
.svc__title { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 300; line-height: 1.05; }
.svc__desc { display: block; color: var(--muted); font-size: 0.95rem; max-width: 40ch; margin-top: 0.5rem; }
.svc__arrow { color: var(--gold); opacity: 0; transform: translateX(-10px); transition: all .5s var(--ease); }
.svc__row:hover .svc__arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 720px) {
  .svc__row { grid-template-columns: 3rem 1fr; }
  .svc__arrow { display: none; }
}

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.work-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); cursor: pointer; }
.work-card__media { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.work-card__media img, .work-card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); will-change: transform; }
.work-card:hover .work-card__media img, .work-card:hover .work-card__media video { transform: scale(1.06); }
.work-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,10,11,0.85) 100%);
  opacity: 0.85; transition: opacity .5s;
}
.work-card__body { position: absolute; left: 0; bottom: 0; width: 100%; padding: clamp(1.2rem,2.5vw,2rem); z-index: 2; }
.work-card__cat { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.work-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem,2.4vw,2rem); line-height: 1.05; margin-top: 0.5rem; }
.work-card__play {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(244,239,230,0.4);
  display: grid; place-items: center; color: var(--text);
  background: rgba(10,10,11,0.35); backdrop-filter: blur(6px); transition: all .4s var(--ease);
}
.work-card:hover .work-card__play { background: var(--gold); color: var(--black); border-color: var(--gold); }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; } .col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; }
.ar-wide { aspect-ratio: 16/9; } .ar-tall { aspect-ratio: 3/4; } .ar-sq { aspect-ratio: 1/1; }
@media (max-width: 900px) {
  .col-8, .col-6, .col-7, .col-5 { grid-column: span 12; }
  .col-4 { grid-column: span 6; }
  .work-card__media { aspect-ratio: 4/3 !important; }
}
@media (max-width: 560px) { .col-4 { grid-column: span 12; } }

/* YouTube shows — thumbnail + description, click to play */
.yt-list { display: grid; gap: clamp(1.6rem, 3.5vw, 3rem); }
.yt-item { display: grid; grid-template-columns: minmax(0, 1.15fr) 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; cursor: pointer; }
.yt-item__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16/9; background: var(--ink-2); }
.yt-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.yt-item:hover .yt-item__media img { transform: scale(1.05); }
.yt-item__media .work-card__play { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.yt-item:hover .work-card__play { background: var(--gold); color: var(--black); border-color: var(--gold); }
.yt-item__body { display: flex; flex-direction: column; gap: 0.8rem; }
.yt-item__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.12; }
@media (max-width: 720px){ .yt-item { grid-template-columns: 1fr; } }

/* Photography: clean image gallery (no titles/captions) */
.work-card[data-cat~="photo"] .work-card__body { display: none; }
.work-card[data-cat~="photo"] .work-card__media::after { opacity: 0; }

/* Simple image lightbox */
.modal--lightbox { cursor: zoom-out; }
.modal--lightbox img { max-width: min(1300px, 100%); max-height: 88vh; border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0,0,0,0.6); }

/* Tilston full-width brand showcase (collage) */
.tilston-showcase { background: transparent; cursor: pointer; }
.tilston-grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(150px, 17vw, 250px)); gap: clamp(.7rem, 1.3vw, 1.2rem); }
.tilston-grid .tcell:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.tilston-grid .tcell:nth-child(2) { grid-column: 2; grid-row: 1; }
.tilston-grid .tcell:nth-child(3) { grid-column: 3; grid-row: 1; }
.tilston-grid .tcell:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
.tcell { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.tcell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.tilston-showcase:hover .tcell img { transform: scale(1.04); }
.tilston-caption { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.3rem; padding-bottom: 0.35em; }
.tilston-caption .work-card__title { line-height: 1.18; }

/* Featured hero work card (large, first item) */
.work-card--feature .work-card__media { aspect-ratio: 16 / 9; }
.work-card--feature .work-card__body { padding: clamp(1.6rem, 3vw, 2.8rem); }
.work-card--feature .work-card__cat { font-size: 0.78rem; }
.work-card--feature .work-card__title { font-size: clamp(2.1rem, 5.2vw, 4.4rem); line-height: 1.02; }
.work-card__play--lg { width: 80px; height: 80px; }
.work-card__play--lg svg { width: 22px; height: 22px; }
@media (max-width: 600px){ .work-card--feature .work-card__media { aspect-ratio: 4 / 3; } }
@media (max-width: 640px){
  .tilston-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 30vw); }
  .tilston-grid .tcell:nth-child(1){ grid-column: 1 / span 2; grid-row: 1; }
  .tilston-grid .tcell:nth-child(2){ grid-column: 1; grid-row: 2; }
  .tilston-grid .tcell:nth-child(3){ grid-column: 2; grid-row: 2; }
  .tilston-grid .tcell:nth-child(4){ grid-column: 1 / span 2; grid-row: 3; }
}

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; overflow: hidden; border-radius: var(--radius); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* Palm divider (visual break) */
.palm-divider { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.palm-divider__line { height: 1px; flex: 1; max-width: 240px; }
.palm-divider__line:first-child { background: linear-gradient(90deg, transparent, rgba(213,176,54,0.55)); }
.palm-divider__line:last-child  { background: linear-gradient(90deg, rgba(213,176,54,0.55), transparent); }
.palm-divider__mark { width: clamp(46px, 6.5vw, 68px); height: auto; opacity: 0.92; flex: none; }

/* Inline Instagram / social text link */
.ig-link { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.86rem; letter-spacing: 0.02em; transition: color .3s var(--ease); }
.ig-link:hover { color: var(--gold); }
.ig-link svg { flex: none; }

/* Mini profile (collaborators) */
.mini-profile { display: grid; grid-template-columns: 190px 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; max-width: 620px; }
.mini-profile__photo { border-radius: var(--radius); overflow: hidden; }
.mini-profile__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.mini-profile__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.1; }
.mini-profile__role { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 560px){ .mini-profile { grid-template-columns: 1fr; } .mini-profile__photo { max-width: 220px; } }

/* Photo placeholder (e.g. founder portrait to be added) */
.photo-ph {
  position: relative; aspect-ratio: 4/5; width: 100%; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.photo-ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(213,176,54,0.06), transparent 60%);
}
.photo-ph span {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  color: var(--muted-2); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.photo-ph svg { color: var(--gold); opacity: 0.7; }

/* Reveal-mask wrapper for images */
.reveal-media { position: relative; overflow: hidden; }
.reveal-media img, .reveal-media video { will-change: transform; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem,4vw,3rem); }
.stat__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; color: var(--gold); }
.stat__label { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.8rem; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

/* ---------- Quote ---------- */
.quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4.5vw, 3.6rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 20ch; }
.quote em { color: var(--gold); font-style: italic; }
.quote--line { font-size: clamp(1.5rem, 4.4vw, 3rem); line-height: 1.15; }
@media (min-width: 620px){ .quote--line { white-space: nowrap; } }

/* ---------- Approach / process ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.5rem,3vw,2.5rem); }
.step__k { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.step h4 { font-family: var(--sans); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; margin-block: 1rem 0.6rem; }
.step p { font-size: 0.92rem; color: var(--muted); }
.step { padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem,6vw,6rem); }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-item { border-top: 1px solid var(--line); padding-block: 1.6rem; }
.contact-item .k { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.contact-item .v { font-family: var(--serif); font-size: clamp(1.4rem,3vw,2.1rem); font-weight: 300; margin-top: 0.5rem; }
.contact-item .v a { transition: color .3s; }
.contact-item .v a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.footer__wordmark { text-align: center; line-height: 0; margin-block: 2.25rem 2.25rem; }
.footer__wordmark img {
  width: 100%; max-width: 460px; height: auto; margin-inline: auto;
  filter: invert(1); opacity: 0.22;
}
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__col h5 { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.2rem; font-weight: 400; }
.footer__col a, .footer__col p { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.6rem; max-width: none; }
.footer__col a { position: relative; width: fit-content; transition: color .4s var(--ease), transform .45s var(--ease); }
.footer__col a:not(.link-u)::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.footer__col a:hover { color: var(--gold); transform: translateX(6px); }
.footer__col a:not(.link-u):hover::after { transform: scaleX(1); transform-origin: left; }
.footer__bar { border-top: 1px solid var(--line); padding-block: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted-2); font-size: 0.78rem; letter-spacing: 0.05em; }
@media (max-width: 800px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem,8vw,7rem)); padding-bottom: clamp(2.5rem,6vw,5rem); }
.page-hero .eyebrow { margin-bottom: 1.5rem; }

/* ---------- Media modal ---------- */
.modal { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: var(--gutter);
  background: rgba(6,6,7,0.9); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.modal.open { opacity: 1; visibility: visible; }
.modal video { width: min(1100px, 100%); max-height: 82vh; border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.modal__close { position: absolute; top: 1.5rem; right: 1.5rem; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: all .3s; }
.modal__close:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.modal__yt { width: min(1100px, 100%); aspect-ratio: 16/9; max-height: 82vh; border: 0; border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0,0,0,0.6); background: #000; }
.modal__doc { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; width: min(1000px, 100%); }

/* Image gallery modal */
.modal--gallery { align-items: start; overflow-y: auto; padding: clamp(3.5rem, 6vw, 5rem) var(--gutter) clamp(2rem, 5vw, 4rem); }
.modal--gallery .modal__close { position: fixed; z-index: 12; }
.gallery { width: 100%; max-width: 1200px; margin-inline: auto; }
.gallery__head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.gallery__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--text); }
.gallery__feature { position: relative; display: block; width: 100%; margin-bottom: clamp(1rem, 2vw, 1.6rem); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--ink-2); box-shadow: 0 30px 90px rgba(0,0,0,0.45); }
.gallery__feature video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery__feature .work-card__play { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: 80px; height: 80px; }
.gallery__feature .work-card__play svg { width: 22px; height: 22px; }
.gallery__feature:hover .work-card__play { background: var(--gold); color: var(--black); border-color: var(--gold); }
.gallery__feature .gallery__feature-tag { position: absolute; left: 1.2rem; bottom: 1.1rem; z-index: 2; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.gallery__feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,0.7) 100%); pointer-events: none; }
.gallery-grid { column-count: 3; column-gap: clamp(.7rem, 1.4vw, 1.1rem); }
.gallery-grid img { width: 100%; margin: 0 0 clamp(.7rem, 1.4vw, 1.1rem); border-radius: var(--radius); display: block; break-inside: avoid; cursor: zoom-in; background: var(--ink-2); transition: opacity .3s var(--ease); }
.gallery-grid img:hover { opacity: .82; }
@media (max-width: 900px){ .gallery-grid { column-count: 2; } }
@media (max-width: 560px){ .gallery-grid { column-count: 1; } }
.gallery-zoom { position: fixed; inset: 0; z-index: 10; display: none; place-items: center; padding: var(--gutter); background: rgba(6,6,7,0.93); backdrop-filter: blur(6px); cursor: zoom-out; }
.gallery-zoom.open { display: grid; }
.gallery-zoom img, .gallery-zoom video { max-width: min(1100px, 100%); max-height: 88vh; border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.gallery-vid { position: relative; display: block; margin: 0 0 clamp(.7rem, 1.4vw, 1.1rem); break-inside: avoid; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--ink-2); }
.gallery-vid video, .gallery-vid img { width: 100%; display: block; }
.gallery-zoom__yt { width: min(1100px, 100%); aspect-ratio: 16/9; max-height: 88vh; border: 0; border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0,0,0,0.6); background: #000; }
.gallery-vid .work-card__play { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); }
.gallery-vid:hover .work-card__play { background: var(--gold); color: var(--black); border-color: var(--gold); }
.modal__doc iframe { width: 100%; height: 80vh; border: 0; border-radius: var(--radius); background: var(--ink-2); box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.modal--doc .modal__open-tab { flex: none; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 9997; background: var(--black); display: grid; place-items: center; transition: opacity .55s var(--ease); }
.loader.is-out { opacity: 0; pointer-events: none; }
.loader img { width: 90px; opacity: 0.95; animation: loaderPulse 1.6s var(--ease) infinite; }
@keyframes loaderPulse { 0%,100%{opacity:.55} 50%{opacity:1} }
.loader__bar { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--gold); width: 0; transition: width .5s var(--ease); }
@media (prefers-reduced-motion: reduce){ .loader img { animation: none; } }

/* =====================================================================
   Motion / progressive enhancement
   ===================================================================== */
/* Hide reveal elements only when JS + GSAP will drive them */
html.js:not(.reduced-motion):not(.no-gsap) [data-reveal] { opacity: 0; }
html.js:not(.reduced-motion):not(.no-gsap) [data-reveal="up"] { transform: translateY(34px); }
html.js:not(.reduced-motion):not(.no-gsap) [data-reveal="fade"] { transform: none; }
html.js:not(.reduced-motion):not(.no-gsap) .reveal-media img,
html.js:not(.reduced-motion):not(.no-gsap) .reveal-media video { transform: scale(1.12); }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll .bar::after { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-sm { max-width: 44ch; } .maxw-md { max-width: 60ch; } .maxw-lg { max-width: 76ch; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}.mt-6{margin-top:3rem}.mt-8{margin-top:4.5rem}
.flex{display:flex}.wrap{flex-wrap:wrap}.gap-1{gap:.6rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}.items-center{align-items:center}.between{justify-content:space-between}
.hide-mobile{}
@media (max-width: 900px){
  .nav__links:not(.menu__links){ display: none; }
  .nav__toggle{ display: flex; }
  body.menu-open{ overflow: hidden; }
  .hide-mobile{ display:none !important; }
}

/* ---------- Mobile polish pass ---------- */
@media (max-width: 560px){
  /* eyebrows: less tracking so long labels breathe (e.g. "Luxury Creative Agency") */
  .eyebrow { letter-spacing: 0.22em; gap: 0.65rem; }
  .eyebrow::before { width: 24px; }
  /* services list: number aligns to the title top instead of vertical-center */
  .svc__row { align-items: start; }
  .svc__num { padding-top: 0.4rem; }
  /* footer: tighten the stacked columns and nudge tap targets up a touch */
  .footer__cols { gap: 1.75rem; }
  .footer__col h5 { margin-bottom: 0.7rem; }
  .footer__col a, .footer__col p { font-size: 0.98rem; }
}
