/* ==========================================================================
   Poppy Harris — Emerging Fashion Stylist
   Liquid glass design system. No build step: edit, save, refresh.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #1c1614;
  --ink-soft: rgba(28, 22, 20, 0.72);
  --ink-faint: rgba(28, 22, 20, 0.48);
  --line: rgba(28, 22, 20, 0.12);
  --paper: #f4eee8;

  /* pulled from the photos: blush, butter, denim, moss, rose */
  --blush: #f1c2bd;
  --butter: #f4dfb0;
  --denim: #b5c9e6;
  --moss: #cbdbbf;
  --rose: #e8b4c6;
  --accent: #a51c30; /* the red bag */

  --glass-tint: rgba(255, 255, 255, 0.16);
  --glass-blur: 18px;
  --glass-shadow: 0 24px 60px -24px rgba(60, 26, 20, 0.4);

  --radius-xl: 40px;
  --radius-l: 30px;
  --radius-m: 22px;
  --radius-s: 14px;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-liquid: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --max-wide: 1800px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* SVG filter definitions must stay rendered (not display:none) */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.3s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(8px); } }

/* ---------- Living background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, #fffaf6 0%, transparent 60%), var(--paper);
}
.aurora i {
  position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
  background: radial-gradient(circle at center, var(--c) 0%, transparent 66%);
  opacity: 0.85; will-change: transform;
  animation: drift var(--t, 26s) ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { --c: var(--blush); top: -22vmax; left: -18vmax; --t: 24s; }
.aurora i:nth-child(2) { --c: var(--denim); top: 12vh; right: -26vmax; --t: 30s; animation-delay: -6s; }
.aurora i:nth-child(3) { --c: var(--butter); bottom: -30vmax; left: 8vw; --t: 34s; animation-delay: -12s; }
.aurora i:nth-child(4) { --c: var(--moss); top: 44vh; left: -30vmax; --t: 28s; animation-delay: -3s; opacity: 0.6; }
.aurora i:nth-child(5) { --c: var(--rose); bottom: -20vmax; right: -12vmax; --t: 38s; animation-delay: -18s; opacity: 0.6; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(8vw, 6vh, 0) scale(1.08); }
  66% { transform: translate3d(-6vw, 10vh, 0) scale(0.94); }
  100% { transform: translate3d(4vw, -8vh, 0) scale(1.04); }
}

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blush), var(--accent), var(--denim));
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ==========================================================================
   LIQUID GLASS
   .glass          frosted panel + specular rim + cursor-tracked sheen
   .glass--liquid  adds real refraction in Chromium (others keep the frost)
   ========================================================================== */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-radius: var(--radius-l);
  box-shadow:
    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.8),
    inset -1px -1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.2),
    var(--glass-shadow);
}
/* rim light */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1) 35%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* sheen that follows the cursor (JS sets --mx / --my) */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 20%) var(--my, -10%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
  opacity: 0.7;
}
.liquid .glass--liquid {
  -webkit-backdrop-filter: blur(3px) url(#liquid) saturate(190%) brightness(1.04);
  backdrop-filter: blur(3px) url(#liquid) saturate(190%) brightness(1.04);
}

/* ---------- Layout + type ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.container--wide { width: min(100% - var(--gutter) * 2, var(--max-wide)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(72px, 11vw, 150px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.display { font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; }
.display em { font-style: italic; color: var(--accent); }
.h2 { font-size: clamp(2.8rem, 7vw, 6.2rem); }
.lede { font-size: clamp(1.05rem, 1.45vw, 1.28rem); color: var(--ink-soft); max-width: 50ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p { color: var(--ink-soft); max-width: 60ch; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 24px 48px; margin-bottom: clamp(36px, 6vw, 72px);
}
.section-head .display { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  --glass-tint: rgba(255, 255, 255, 0.24);
  --glass-blur: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform 0.5s var(--ease-liquid), background-color 0.3s, color 0.3s;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease-liquid); }
.btn:hover svg { transform: translateX(4px); }
.btn--ink {
  background: var(--ink); color: #fff;
  box-shadow: 0 16px 40px -16px rgba(28, 22, 20, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--ink:hover { background: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  --glass-tint: rgba(255, 255, 255, 0.22);
  --glass-blur: 14px;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease-liquid);
}
.icon-btn:hover { transform: scale(1.1); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: clamp(10px, 2vw, 22px); left: 50%; z-index: 60;
  width: min(100% - 20px, 980px); transform: translateX(-50%);
  view-transition-name: site-nav;
}
.nav__bar {
  --glass-tint: rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 7px 7px 7px 22px; border-radius: 999px;
}
.is-scrolled .nav__bar { --glass-tint: rgba(255, 255, 255, 0.38); }
.brand { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.brand em { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) {
  padding: 10px 16px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  transition: color 0.3s, background-color 0.3s;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: rgba(255, 255, 255, 0.4); }
.nav__links a[aria-current="page"] {
  color: var(--ink); background: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(60, 26, 20, 0.35);
}
.nav__cta { margin-left: 6px; padding: 11px 20px; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.55); place-items: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform 0.4s var(--ease-liquid), background-color 0.2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav-open .nav__toggle span { background: transparent; }
.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.nav__sheet {
  --glass-tint: rgba(255, 255, 255, 0.55);
  --glass-blur: 26px;
  display: none; margin-top: 10px; padding: 12px; border-radius: var(--radius-l);
}
.nav__sheet a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 16px; border-radius: var(--radius-s);
  font-family: var(--font-display); font-size: 2.1rem; line-height: 1.1;
}
.nav__sheet a span { font-family: var(--font-body); font-size: 0.75rem; color: var(--ink-faint); }
.nav__sheet a[aria-current="page"] { background: rgba(255, 255, 255, 0.6); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav-open .nav__sheet { display: block; animation: sheet-in 0.5s var(--ease-liquid) both; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }

/* ---------- Cursor orb (mouse only) ---------- */
.cursor {
  --glass-tint: rgba(255, 255, 255, 0.06);
  --glass-blur: 2px;
  --glass-shadow: 0 10px 30px -10px rgba(60, 26, 20, 0.45);
  position: fixed; top: 0; left: 0; z-index: 95;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: width 0.45s var(--ease-liquid), height 0.45s var(--ease-liquid), margin 0.45s var(--ease-liquid), opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.is-down { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Reveal on scroll ---------- */
/* Uses the individual translate/scale properties so it never fights an
   element's own transform (parallax, tilt, rotation). */
.js [data-reveal] {
  opacity: 0; translate: 0 36px; filter: blur(6px);
  transition: opacity 1s var(--ease-out) var(--d, 0s), translate 1.1s var(--ease-out) var(--d, 0s),
    scale 1.1s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s);
}
.js [data-reveal="scale"] { translate: none; scale: 0.94; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; filter: none; }

[data-split] .word { display: inline-block; overflow: hidden; padding: 0 0.02em 0.1em; margin-bottom: -0.1em; vertical-align: top; }
[data-split] .char { display: inline-block; }
.js [data-split] .char { transform: translateY(108%) rotate(6deg); transition: transform 1.1s var(--ease-out) calc(var(--i) * 0.04s + 0.2s); }
.js [data-split].is-in .char { transform: none; }

/* ==========================================================================
   HERO STAGE
   Mobile: the film plays at the top, name + intro underneath.
   Desktop: a tall sticky stage. Scrolling scrubs through the film while the
   frame glides right, photos fan out around it and the intro arrives.
   On the first visit it plays itself (the page scrolls along with the film).
   JS sets --p (0→1), --a (first half) and --b (second half).
   ========================================================================== */
.stage { --p: 1; --a: 1; --b: 1; position: relative; } /* no JS: finished layout */
.js .stage { --p: 0; --a: 0; --b: 0; }
.stage__sticky { position: relative; display: flex; flex-direction: column; }

.stage__frame {
  --glass-tint: rgba(255, 255, 255, 0.22);
  order: 1;
  z-index: 3;
  width: min(100% - 20px, calc(94svh * 9 / 16));
  margin: 10px auto 0;
  padding: 8px;
  border-radius: 34px;
}
.film {
  position: relative; overflow: hidden; aspect-ratio: 9 / 16;
  border-radius: 26px; background: #120e0d;
}
.film video, .film img { width: 100%; height: 100%; object-fit: cover; }
.film__poster { position: absolute; inset: 0; transition: opacity 0.6s; }
.film.is-ready .film__poster { opacity: 0; pointer-events: none; }
.film__sound { position: absolute; right: 14px; bottom: 14px; z-index: 2; color: #fff; }
.film__sound .on { display: none; }
.film__sound[aria-pressed="true"] .on { display: block; }
.film__sound[aria-pressed="true"] .off { display: none; }
.is-scrub .film__sound { display: none; }

/* "Skip intro" pill — its fill shows how far through the intro you are */
.film__skip {
  --glass-tint: rgba(255, 255, 255, 0.16);
  --glass-blur: 12px;
  position: absolute; left: 50%; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 999px; overflow: hidden;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  translate: -50% 0;
  transition: opacity 0.4s, transform 0.5s var(--ease-liquid);
}
.film__skip:hover { transform: scale(1.05); }
.film__skip svg { width: 14px; height: 14px; }
.film__skip-bar {
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.3);
  transform-origin: 0 50%; transform: scaleX(var(--p));
}
.is-done .film__skip { opacity: 0; transform: translateY(10px); pointer-events: none; }
html:not(.js) .film__skip { display: none; }
@media (max-width: 420px) { .film__skip { padding: 8px 12px; gap: 6px; font-size: 0.7rem; bottom: 16px; } }

.stage__title {
  order: 2; position: relative; z-index: 4;
  font-size: clamp(4.6rem, 23vw, 22rem); line-height: 0.82;
  margin: -0.42em 0 0; padding: 0 var(--gutter);
  pointer-events: none;
}
.stage__title > span { display: block; }
.stage__title .l2 { text-align: right; font-style: italic; color: var(--accent); }
.stage__photos { display: none; }
.stage__intro {
  order: 3; position: relative; z-index: 4;
  padding: clamp(28px, 6vw, 48px) var(--gutter) 24px;
}
.stage__intro .display { font-size: clamp(2.2rem, 8vw, 4.2rem); margin: 14px 0 18px; }
.stage__intro .lede { margin-bottom: 26px; }
.stage__cue { display: none; }

@media (min-width: 900px) {
  .stage { height: 320vh; }
  .stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: block; }

  .stage__title {
    position: absolute; inset: 0; margin: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 0.08em;
    font-size: clamp(8rem, 18.5vw, 23rem);
    opacity: calc(1 - var(--b) * 0.92);
    transform: translateY(calc(var(--b) * -10vh)) scale(calc(1 - var(--b) * 0.1));
  }
  .stage__title .l1 { transform: translateX(calc(var(--a) * -3vw)); }
  .stage__title .l2 { transform: translateX(calc(var(--a) * 3vw)); }

  .stage__frame {
    position: absolute; top: 50%; left: 50%; margin: 0;
    width: auto; height: min(80vh, 880px); aspect-ratio: 9 / 16;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--b) * 21vw))
      rotate(calc(-3deg + var(--p) * 5deg))
      scale(calc(0.88 + var(--a) * 0.06 + var(--b) * 0.04));
    will-change: transform;
  }
  .stage__frame .film { height: 100%; aspect-ratio: auto; }

  .stage__photos { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .stage__photo {
    --glass-tint: rgba(255, 255, 255, 0.3);
    position: absolute; top: 50%; left: 50%; width: var(--w);
    padding: 7px; border-radius: 22px;
    opacity: calc(var(--a) * (1 - var(--b)));
    transform:
      translate(-50%, -50%)
      translate(calc(var(--tx) * (var(--a) + var(--b) * 0.7)), calc(var(--ty) * (var(--a) + var(--b) * 0.7)))
      rotate(calc(var(--r) * var(--a)))
      scale(calc(0.5 + var(--a) * 0.5));
    will-change: transform, opacity;
  }
  .stage__photo img { border-radius: 16px; width: 100%; }

  .stage__intro {
    position: absolute; top: 50%; left: max(var(--gutter), calc((100vw - var(--max)) / 2));
    width: min(42vw, 580px); padding: 0;
    opacity: var(--b);
    transform: translateY(calc(-50% + (1 - var(--b)) * 70px));
  }
  .stage__intro:focus-within { opacity: 1; }
  .js .stage:not(.is-intro) .stage__intro { pointer-events: none; }

  .stage__cue {
    display: flex; position: absolute; left: 50%; bottom: 22px; z-index: 5;
    translate: -50% 0; align-items: center; gap: 10px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
    opacity: calc(1 - var(--p) * 6);
  }
  .stage__cue::before {
    content: ""; width: 22px; height: 36px; border-radius: 999px; border: 1.5px solid currentColor;
    background: radial-gradient(circle at 50% 30%, currentColor 2px, transparent 3px);
    animation: cue 1.8s var(--ease-out) infinite;
  }
  .js .stage:not(.is-done) .stage__cue { display: none; } /* the Skip pill shows instead */
}
@keyframes cue { 50% { background-position: 0 8px; } }

/* ---------- Marquee ---------- */
.marquee {
  --glass-tint: rgba(255, 255, 255, 0.26);
  border-radius: 0; overflow: hidden; padding: 18px 0; margin: 0 -2vw;
  transform: rotate(-2deg);
}
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 34px; padding-right: 34px;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 4vw, 3.4rem); white-space: nowrap;
}
.marquee__track span::after { content: "✦"; font-style: normal; font-size: 0.5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   OVERLAID COLLAGE
   Each photo is placed with % coordinates inside a box with a fixed aspect
   ratio, so the whole arrangement scales with screen width (wide screens get
   a wide spread, phones get their own taller arrangement via --m* values).
   --x --y --w --r --z   desktop position/size/rotation/stacking
   --mx --my --mw --mr  mobile equivalents · data-speed = parallax depth
   ========================================================================== */
.collage { position: relative; width: 100%; aspect-ratio: var(--ratio, 2 / 1); }
.shot {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z, 1);
  padding: 0; border: 0; background: none; text-align: left;
  transform: translate3d(0, var(--py, 0px), 0);
}
.shot__inner {
  --glass-tint: rgba(255, 255, 255, 0.3);
  display: block; padding: 8px; border-radius: 22px;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.7s var(--ease-liquid), box-shadow 0.5s;
}
.shot img, .shot video { width: 100%; border-radius: 15px; background: var(--c, #6e5d59); }
.shot:hover, .shot:focus-visible { z-index: 30; }
.shot:hover .shot__inner, .shot:focus-visible .shot__inner {
  transform: rotate(0deg) scale(1.05);
  --glass-shadow: 0 40px 80px -30px rgba(60, 26, 20, 0.55);
}
button.shot { cursor: zoom-in; }
.shot__tag {
  --glass-tint: rgba(255, 255, 255, 0.4);
  position: absolute; left: 18px; bottom: 18px; padding: 7px 13px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.5s var(--ease-liquid);
}
.shot:hover .shot__tag, .shot:focus-visible .shot__tag { opacity: 1; transform: none; }

.shot--film .film { aspect-ratio: 9 / 16; border-radius: 15px; }
.shot--film .shot__inner { padding: 8px; }
figure.shot { margin: 0; }

.collage__note {
  --glass-tint: rgba(255, 255, 255, 0.35);
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z, 6);
  padding: 20px 22px; border-radius: var(--radius-m);
}
.collage__note .display { font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1; margin-bottom: 8px; }
.collage__note p { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 899px) {
  .collage { aspect-ratio: var(--mratio, var(--ratio, 3 / 5)); }
  .shot, .collage__note { left: var(--mx, var(--x)); top: var(--my, var(--y)); width: var(--mw, var(--w)); }
  .shot__inner { padding: 6px; border-radius: 18px; transform: rotate(var(--mr, var(--r, 0deg))); }
  .shot img, .shot video, .shot--film .film { border-radius: 12px; }
  [data-mobile="hide"] { display: none; }
}

/* ---------- About teaser ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.arch {
  padding: 10px; border-radius: 999px 999px var(--radius-l) var(--radius-l);
}
.arch img { border-radius: 999px 999px calc(var(--radius-l) - 8px) calc(var(--radius-l) - 8px); width: 100%; }
.split__body > * + * { margin-top: 22px; }
.split__body .display { font-size: clamp(2.6rem, 5.5vw, 4.8rem); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  --glass-tint: rgba(255, 255, 255, 0.3);
  --glass-blur: 10px;
  --glass-shadow: 0 10px 24px -14px rgba(60, 26, 20, 0.35);
  padding: 9px 17px; border-radius: 999px; font-size: 0.86rem; font-weight: 500;
  transition: transform 0.4s var(--ease-liquid);
}
.chip:hover { transform: translateY(-3px) rotate(-1.5deg); }

/* ---------- Work cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px);
}
.cards > :nth-child(2) { margin-top: clamp(0px, 6vw, 90px); }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .cards > :nth-child(2) { margin-top: 0; }
}
.card {
  display: block; padding: 10px; border-radius: var(--radius-l);
  transition: transform 0.6s var(--ease-out); will-change: transform;
}
.card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: calc(var(--radius-l) - 8px); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__info { display: grid; gap: 4px; padding: 18px 10px 10px; }
.card__title { font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.05; }
.card__meta { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; }

/* Typographic "images coming soon" panel (Margiela project) */
.soon {
  position: relative; display: grid; place-content: center; text-align: center; gap: 10px;
  height: 100%; padding: 24px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 30% 20%, #fff, transparent 70%),
    radial-gradient(60% 60% at 80% 90%, #ece4dc, transparent 70%),
    #f6f1ec;
  color: var(--ink);
}
.soon::before {
  content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(28, 22, 20, 0.22); border-radius: 18px;
}
.soon b { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; }
.soon span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.card:hover .soon { background-position: 10px 10px; }

/* ---------- CTA band ---------- */
.cta {
  --glass-tint: rgba(255, 255, 255, 0.22);
  padding: clamp(44px, 8vw, 110px) clamp(22px, 6vw, 90px);
  border-radius: var(--radius-xl); text-align: center; overflow: hidden;
}
.cta .display { font-size: clamp(3rem, 10vw, 9rem); }
.cta .lede { margin: 22px auto 34px; }
.cta .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 24px; view-transition-name: site-footer; }
.footer__inner { --glass-tint: rgba(255, 255, 255, 0.22); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-xl); }
.footer__mark { font-family: var(--font-display); font-size: clamp(3.4rem, 14vw, 12.5rem); line-height: 0.85; letter-spacing: -0.03em; }
.footer__mark em { color: var(--accent); }
.footer__sub { margin: 0.4em 0 28px; padding-top: 0.2em; color: var(--ink-soft); }
.footer__mark { padding-bottom: 0.14em; }
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px;
  padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-soft);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { position: relative; }
.footer__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.footer__links a:hover { color: var(--ink); }
.footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero { padding: clamp(130px, 17vw, 210px) 0 clamp(36px, 6vw, 72px); }
.page-hero h1.display { font-size: clamp(3.8rem, 13vw, 11.5rem); line-height: 0.86; margin: 18px 0 26px; }

.index {
  --glass-tint: rgba(255, 255, 255, 0.26);
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 28px; margin-top: 30px;
}
.index a {
  display: flex; gap: 10px; align-items: baseline; padding: 10px 18px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: background-color 0.3s, color 0.3s;
}
.index a b { font-size: 0.72rem; color: var(--accent); }
.index a:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }

.project { scroll-margin-top: 100px; }
.project + .project { border-top: 1px solid var(--line); }
.project__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(32px, 5vw, 64px);
}
@media (max-width: 860px) { .project__head { grid-template-columns: 1fr; } }
.project__num { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--accent); }
.project__title { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 10px 0 14px; }
.project__meta { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.project__role {
  --glass-tint: rgba(255, 255, 255, 0.32);
  display: inline-block; margin-top: 4px; padding: 10px 16px; border-radius: var(--radius-s); font-size: 0.92rem;
}
.project__role b { font-weight: 700; }

.soon-panel {
  padding: 10px; border-radius: var(--radius-xl);
}
.soon-panel .soon { min-height: clamp(260px, 34vw, 460px); border-radius: calc(var(--radius-xl) - 8px); }

/* About page */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.fact { --glass-tint: rgba(255, 255, 255, 0.28); padding: 22px 24px; border-radius: var(--radius-m); }
.fact small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.fact b { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; line-height: 1.05; }
.fact span { display: block; margin-top: 4px; font-size: 0.88rem; color: var(--ink-soft); }

.about-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }

.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step { --glass-tint: rgba(255, 255, 255, 0.26); padding: 26px 24px 28px; border-radius: var(--radius-l); }
.step i { font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); }
.step h3 { margin: 26px 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.05; }
.step p { font-size: 0.93rem; color: var(--ink-soft); }

.quote { --glass-tint: rgba(255, 255, 255, 0.22); padding: clamp(32px, 6vw, 80px); border-radius: var(--radius-xl); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.01em; }
.quote blockquote em { color: var(--accent); }
.quote figcaption { margin-top: 24px; color: var(--ink-soft); }

/* Contact */
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
@media (max-width: 900px) { .links { grid-template-columns: 1fr; } }
.link-card {
  --glass-tint: rgba(255, 255, 255, 0.26);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 240px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l);
  transition: transform 0.6s var(--ease-liquid);
}
.link-card:hover { transform: translateY(-6px) rotate(-0.6deg); }
.link-card small { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.link-card b { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; }
.link-card .arrow {
  align-self: flex-end; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: #fff; transition: background-color 0.3s, transform 0.5s var(--ease-liquid);
}
.link-card:hover .arrow { background: var(--accent); transform: rotate(-45deg); }
.link-card .arrow svg { width: 20px; height: 20px; }
.link-card__value { font-size: 0.95rem; color: var(--ink-soft); word-break: break-word; }
.copy-btn { margin-top: 14px; padding: 9px 16px; font-size: 0.82rem; }
.is-unset { display: none !important; }

/* Local-only reminder for links not filled in yet (never shows on the live site) */
.setup-hint {
  margin-top: 18px; padding: 14px 18px; border: 1.5px dashed var(--accent); border-radius: var(--radius-s);
  font-size: 0.88rem; color: var(--accent); background: rgba(255, 255, 255, 0.5);
}

/* ---------- Lightbox ---------- */
.lightbox {
  --glass-tint: rgba(255, 255, 255, 0.35);
  --glass-blur: 30px;
  position: fixed; inset: 0; margin: auto; /* .glass sets position: relative; dialogs must stay fixed */
  width: min(100% - 20px, 1200px); height: min(100svh - 20px, 1000px); max-width: none; max-height: none;
  padding: 10px; border: 0; border-radius: var(--radius-xl); color: var(--ink); overflow: hidden;
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-liquid), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox:not([open]) { opacity: 0; transform: scale(0.95) translateY(14px); }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(0.95) translateY(14px); } }
.lightbox::backdrop {
  background: rgba(28, 22, 20, 0.35);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.lightbox__stage { position: relative; min-height: 0; overflow: hidden; border-radius: calc(var(--radius-xl) - 8px); touch-action: pan-y; }
.lightbox__stage picture { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lightbox__stage img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 18px; animation: lb-in 0.5s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 4px 14px; }
.lightbox__caption { font-size: 0.92rem; color: var(--ink-soft); }
.lightbox__count { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-faint); margin-right: 10px; }
.lightbox__btns { display: flex; gap: 8px; flex: none; }

/* ---------- Toast ---------- */
.toast {
  --glass-tint: rgba(28, 22, 20, 0.82);
  position: fixed; left: 50%; bottom: 24px; z-index: 99; padding: 13px 22px; border-radius: 999px;
  color: #fff; font-size: 0.9rem; translate: -50% 0; opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.5s var(--ease-liquid); pointer-events: none;
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.lost .display { font-size: clamp(7rem, 30vw, 22rem); line-height: 0.8; }
.lost .lede { margin: 20px auto 30px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important;
  }
  .js [data-reveal], .js [data-split] .char { opacity: 1; transform: none; filter: none; }
  .stage { height: auto !important; --p: 1 !important; --a: 1 !important; --b: 1 !important; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .stage__sticky { position: relative !important; height: 100svh; }
}
