/* ==========================================================================
   Tokens
   Shape system: media and panels are sharp (0), interactive controls are pills.
   ========================================================================== */
:root {
  --bg: #0f0f0e;
  --bg-2: #181816;
  --fg: #ecebe7;
  --muted: #a09e98;
  --line: rgba(236, 235, 231, 0.13);
  --line-strong: rgba(236, 235, 231, 0.32);
  --accent: #ec6a4f;
  --accent-ink: #140d0b;

  --on-photo: #f2f1ed;
  --font: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 68px;
  --maxw: 1400px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #efefed;
    --bg-2: #e3e3e0;
    --fg: #151514;
    --muted: #5b5a56;
    --line: rgba(21, 21, 20, 0.13);
    --line-strong: rgba(21, 21, 20, 0.34);
    --accent: #c2402a;
    --accent-ink: #fbfbfa;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #efefed;
  --bg-2: #e3e3e0;
  --fg: #151514;
  --muted: #5b5a56;
  --line: rgba(21, 21, 20, 0.13);
  --line-strong: rgba(21, 21, 20, 0.34);
  --accent: #c2402a;
  --accent-ink: #fbfbfa;
  color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain: fixed, non-interactive, never on a scrolling layer. */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* Language switch cross-fade */
main, .foot, .nav__brand, .nav__links { transition: opacity 0.32s var(--ease); }
.is-switching main, .is-switching .foot, .is-switching .nav__brand, .is-switching .nav__links { opacity: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-fill: var(--fg);
  --btn-fill-ink: var(--bg);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.65em;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 500; font-size: 0.98rem; letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.25s var(--ease), translate 0.7s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-fill);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn i { font-size: 1.05em; transition: transform 0.55s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--btn-fill-ink); }
.btn:hover i.ph-arrow-right { transform: translateX(4px); }
.btn:hover i.ph-arrow-down { transform: translateY(3px); }
.btn:active { transform: scale(0.97); }

.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn[disabled] { opacity: 0.7; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1.1rem;
  transition: border-color 0.3s, background-color 0.3s, transform 0.25s var(--ease);
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn--lg { width: 52px; height: 52px; border-color: var(--line-strong); font-size: 1.2rem; }
.icon-btn--lg:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  color: var(--on-photo);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
  transition: transform 0.8s var(--ease), background-color 0.4s, color 0.4s, border-color 0.4s;
}
.is-loaded .nav { transform: none; transition-delay: 0s; }
.is-loaded .nav:not(.is-scrolled) { transition-delay: 0.9s, 0s, 0s, 0s; }
.nav.is-scrolled {
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
  transition-delay: 0s;
}
.is-loaded .nav.is-hidden { transform: translateY(-100%); }
.menu-open .nav { color: var(--fg); background: transparent; border-color: transparent; backdrop-filter: none; }

.nav__brand { font-weight: 600; letter-spacing: -0.015em; font-size: 1.02rem; }
.nav__links { display: flex; gap: 34px; font-size: 0.93rem; }
.nav__links a { position: relative; padding-block: 6px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav__tools { display: flex; align-items: center; gap: 6px; }
.lang {
  height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.lang:hover { background: currentColor; }
.lang:hover span { color: var(--bg); }
.nav:not(.is-scrolled) .lang:hover span { color: #111; }

.burger { display: none; position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease);
}
.burger span:first-child { transform: translateY(-3.5px); }
.burger span:last-child { transform: translateY(3.5px); }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  display: flex; align-items: flex-end;
  padding-bottom: 12vh;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.menu__links { display: grid; gap: 6px; }
.menu__links a {
  font-size: clamp(2.6rem, 12vw, 4.2rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.1;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.menu-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--i) * 70ms); }

/* ==========================================================================
   Reveal utilities
   ========================================================================== */
[data-reveal]:not([data-reveal="clip"]):not([data-reveal="words"]) {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].in:not([data-reveal="clip"]):not([data-reveal="words"]) { opacity: 1; transform: none; }

/* Clip lives on the child: IntersectionObserver treats a clipped target as invisible. */
[data-reveal="clip"] img {
  clip-path: inset(100% 0 0 0);
  transform: scale(1.25);
  transition: clip-path 1.5s var(--ease-io), transform 2s var(--ease);
}
[data-reveal="clip"].in img { clip-path: inset(0); transform: none; }

/* Masked word rise for display headings */
.mask-words .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0.1em 0 0.12em; margin: -0.1em 0 -0.12em;
}
.mask-words .w > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
.mask-words.in .w > span { transform: none; }

.h-display {
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  font-weight: 300; letter-spacing: -0.045em; line-height: 1;
}
.h-display--xl { font-size: clamp(3rem, 8vw, 7.2rem); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid; align-items: end;
  overflow: hidden;
  color: var(--on-photo);
  background: #0b0b0a;
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%;
  transform: scale(1.16);
  filter: blur(10px) brightness(0.5);
  transition: transform 2.6s var(--ease), filter 1.8s var(--ease);
}
.is-loaded .hero__media img { transform: scale(1.02); filter: none; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.86) 0%, rgba(9, 9, 8, 0.45) 42%, rgba(9, 9, 8, 0) 68%),
    linear-gradient(0deg, rgba(9, 9, 8, 0.88) 0%, rgba(9, 9, 8, 0) 46%);
}
.hero__content {
  position: relative;
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: clamp(48px, 10vh, 120px);
  will-change: transform, opacity;
}
.hero__name {
  font-size: clamp(3.4rem, 10.6vw, 10.4rem);
  line-height: 0.9; letter-spacing: -0.05em;
  font-weight: 250;
}
.hero__name .line { display: block; overflow: hidden; padding: 0.12em 0 0.06em; margin: -0.12em 0 -0.06em; }
.hero__name .line + .line { font-weight: 600; padding-left: 0.9em; }
.char {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.3s var(--ease);
  transition-delay: calc(240ms + var(--i) * 38ms);
}
.is-loaded .char { transform: none; }

.hero__sub {
  max-width: 34ch;
  margin: 32px 0 34px;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.5;
  color: rgba(242, 241, 237, 0.78);
}
.hero__sub, .hero__ctas { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.is-loaded .hero__sub { opacity: 1; transform: none; transition-delay: 0.85s; }
.is-loaded .hero__ctas { opacity: 1; transform: none; transition-delay: 1s; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { --btn-fill: var(--on-photo); --btn-fill-ink: #111; }
.hero .btn--ghost { border-color: rgba(242, 241, 237, 0.42); }

/* ==========================================================================
   Intro
   ========================================================================== */
.intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding-block: clamp(96px, 18vh, 200px);
}
.intro__portrait {
  grid-column: 1 / span 4;
  aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--bg-2);
  align-self: start;
  margin-top: 10px;
}
.intro__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.intro__body { grid-column: 6 / span 7; }
.intro__statement {
  font-size: clamp(1.55rem, 2.75vw, 2.7rem);
  line-height: 1.24; letter-spacing: -0.022em; font-weight: 400;
}
.word { opacity: 0.14; transition: opacity 0.35s linear, color 0.35s linear; }
.word.on { opacity: 1; }
.word.em.on { color: var(--accent); }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stats dt {
  font-size: clamp(2.2rem, 3.8vw, 3.5rem); font-weight: 250; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats dt small { font-size: 0.42em; letter-spacing: -0.01em; margin-left: 0.12em; }
.stats dd { margin-top: 10px; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }

/* ==========================================================================
   Timeline (pinned)
   ========================================================================== */
.tl { position: relative; height: calc(var(--n, 7) * 72vh + 100dvh); }
.tl__sticky {
  position: sticky; top: 0;
  height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.tl__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px); align-items: center;
}
.tl__heading { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }

.tl__year {
  display: flex;
  height: 1em; overflow: hidden;
  margin: 18px 0 26px;
  font-size: clamp(5rem, 13.5vw, 13rem);
  font-weight: 200; letter-spacing: -0.06em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.digit { height: 1em; overflow: hidden; }
.digit__col { display: flex; flex-direction: column; transition: transform 1.1s var(--ease); }
.digit__col span { display: block; height: 1em; line-height: 1; }
.digit:nth-child(2) .digit__col { transition-delay: 50ms; }
.digit:nth-child(3) .digit__col { transition-delay: 100ms; }
.digit:nth-child(4) .digit__col { transition-delay: 150ms; }

.tl__copy { min-height: 9.5em; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.tl__copy.is-out { opacity: 0; transform: translateY(12px); }
.tl__copy h3 { font-size: clamp(1.3rem, 2vw, 1.85rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.tl__copy p { margin-top: 12px; color: var(--muted); max-width: 42ch; font-size: 1.04rem; }

.tl__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.tl__img { position: absolute; inset: 0; z-index: 0; clip-path: inset(100% 0 0 0); }
.tl__frame.is-back .tl__img { clip-path: inset(0 0 100% 0); }
.tl__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.18);
}
.tl__frame .tl__img.is-prev { clip-path: inset(0); z-index: 1; }
.tl__img.is-prev img { transform: scale(1.06); filter: grayscale(1) brightness(0.45); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.tl__frame .tl__img.is-active { clip-path: inset(0); z-index: 2; transition: clip-path 1.15s var(--ease-io); }
.tl__img.is-active img { transform: none; transition: transform 1.7s var(--ease); }

.tl__rail {
  position: relative;
  display: flex; justify-content: space-between;
  list-style: none; margin: clamp(28px, 6vh, 64px) auto 0;
}
.tl__rail::before, .tl__rail::after {
  content: ""; position: absolute; top: 0; height: 1px;
  left: var(--gutter); right: var(--gutter);
  background: var(--line);
}
.tl__rail::after { background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.tl__rail button {
  position: relative; padding-top: 16px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.3s;
}
.tl__rail button::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 8px;
  background: var(--line-strong);
  transition: height 0.4s var(--ease), background-color 0.3s;
}
.tl__rail button:hover { color: var(--fg); }
.tl__rail button[aria-current="step"] { color: var(--fg); }
.tl__rail button[aria-current="step"]::before { height: 14px; background: var(--accent); }

/* ==========================================================================
   Quote
   ========================================================================== */
.quote { padding-block: clamp(120px, 22vh, 240px); text-align: center; }
.quote__mark { display: block; font-size: 2.4rem; color: var(--accent); margin-bottom: 28px; }
.quote p {
  max-width: 28ch; margin-inline: auto;
  font-size: clamp(1.7rem, 3.3vw, 3.1rem);
  font-weight: 300; line-height: 1.16; letter-spacing: -0.03em;
}
.quote footer { margin-top: 36px; color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { padding-bottom: clamp(96px, 14vh, 160px); }

/*
 * Stacked spreads: every card sticks a little lower than the one before it, so the
 * deck shows its edges. JS drives --p (0 to 1, how covered the card is) and
 * --z (photo zoom as the card arrives).
 */
.pstack {
  --stack-top: calc(var(--nav-h) + 16px);
  --stack-step: 16px;
  display: grid; gap: 14vh;
  margin-top: clamp(40px, 7vh, 72px);
}
.pcard {
  position: sticky;
  top: calc(var(--stack-top) + var(--i) * var(--stack-step));
  height: min(calc(100dvh - var(--nav-h) - 96px), 780px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  overflow: hidden;
  background: var(--bg-2);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p, 0) * 0.05));
  box-shadow: 0 -24px 60px -36px rgba(0, 0, 0, 0.55);
}
.pcard::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--bg);
  opacity: calc(var(--p, 0) * 0.6);
}
.pcard__media { position: relative; overflow: hidden; }
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--z, 1));
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.9s var(--ease);
}
.pcard:hover .pcard__media img { filter: none; }

.pcard__body {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(24px, 3.2vw, 52px);
}
.pcard__meta {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
}
.pcard__meta span:last-child { text-align: right; }
.pcard__title {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300; letter-spacing: -0.04em; line-height: 1.02;
}
.pcard__text { margin-top: 18px; max-width: 44ch; color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
.pcard__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pcard__facts dt {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 250; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pcard__facts dt small { font-size: 0.45em; letter-spacing: -0.01em; margin-left: 0.15em; }
.pcard__facts dd { margin-top: 8px; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.pcard__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pcard__ctas .btn i { font-size: 1rem; }
.pcard__ctas .btn:hover i.ph-arrow-up-right { transform: rotate(45deg); }

@media (hover: none) {
  .pcard__media img { filter: none; }
}

/* ==========================================================================
   News
   ========================================================================== */
.news { padding-block: clamp(80px, 12vh, 140px) clamp(96px, 14vh, 160px); }
.news__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.news__ctrl { display: flex; gap: 10px; }
.news__track {
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(272px, 29vw, 420px);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 6vh, 64px);
  padding: 0 var(--edge) 12px;
  scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.news__track::-webkit-scrollbar { display: none; }
.news__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.news__track.is-dragging a { pointer-events: none; }

.card { scroll-snap-align: start; display: block; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1);
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
  -webkit-user-drag: none; user-select: none;
}
.card:hover .card__media img { transform: scale(1.05); filter: grayscale(0); }
.card time { display: block; margin-top: 20px; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.card h3 { margin-top: 10px; font-size: 1.24rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.28; }
.card h3 span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.card:hover h3 span { background-size: 100% 1px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.96rem; line-height: 1.5; }
.card[data-reveal] { transition-delay: calc(var(--i, 0) * 90ms); }

/* ==========================================================================
   Instagram feed
   ========================================================================== */
.ig { padding-bottom: clamp(96px, 14vh, 160px); }
.ig[hidden] { display: none; }
.ig__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ig__head .btn i:last-child { font-size: 0.95rem; }
.ig__head .btn:hover i:last-child { transform: rotate(45deg); }

.ig__grid {
  list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.8vw, 12px);
}
.ig__tile a {
  position: relative; display: block;
  aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--bg-2);
  color: var(--on-photo);
}
.ig__tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}
.ig__tile a.is-missing img { visibility: hidden; }
.ig__fallback { display: none; }
.ig__tile a.is-missing .ig__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2rem; color: var(--muted);
}
.ig__type {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(9, 9, 8, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 0.85rem;
}
.ig__cap {
  position: absolute; inset: auto 0 0;
  display: grid; gap: 6px;
  padding: 48px 16px 16px;
  background: linear-gradient(0deg, rgba(9, 9, 8, 0.88) 0%, rgba(9, 9, 8, 0.55) 55%, rgba(9, 9, 8, 0) 100%);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.ig__cap time { font-family: var(--mono); font-size: 0.72rem; color: rgba(242, 241, 237, 0.72); }
.ig__text {
  font-size: 0.92rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .ig__tile img { filter: grayscale(1); }
  .ig__tile a:hover img, .ig__tile a:focus-visible img { filter: none; transform: scale(1.06); }
  .ig__tile a:hover .ig__cap, .ig__tile a:focus-visible .ig__cap { opacity: 1; transform: none; }
}

/* ==========================================================================
   Marquee (velocity-driven)
   ========================================================================== */
.marquee { overflow: hidden; padding-block: clamp(16px, 3vh, 32px); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: flex; align-items: center; gap: 0.35em; padding-right: 0.35em;
  font-size: clamp(3.4rem, 10.5vw, 9.6rem);
  font-weight: 200; letter-spacing: -0.05em; line-height: 1.1;
  white-space: nowrap;
}
.marquee__item:nth-child(even) span { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.marquee__item i { font-size: 0.42em; color: var(--accent); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 120px);
  padding-block: clamp(96px, 16vh, 180px) clamp(72px, 10vh, 120px);
}
.contact__text { margin-top: 28px; max-width: 36ch; color: var(--muted); font-size: 1.12rem; }
.contact__block { margin-top: 48px; }
.contact__block h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 14px; }
.contact__booking { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__booking .btn i { font-size: 1rem; }
.contact__booking .btn:hover i { transform: rotate(45deg); }
.social { display: flex; gap: 8px; }
.social a {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 1.2rem;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.4s var(--ease);
}
.social a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-3px); }

.contact__form-wrap { align-self: end; }
.field { display: grid; gap: 8px; margin-bottom: 28px; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  font: inherit; font-size: 1.12rem; color: var(--fg);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus-visible, .field textarea:focus-visible { border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field__help { font-size: 0.85rem; color: var(--muted); }
.field__err { font-size: 0.86rem; color: var(--accent); min-height: 0; }
.field__err:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--accent); }
.form .btn { margin-top: 8px; }

.form-success { padding: 40px 0; animation: rise 0.9s var(--ease) both; }
.form-success i { font-size: 2.4rem; color: var(--accent); }
.form-success h3 { margin-top: 16px; font-size: 2rem; font-weight: 400; letter-spacing: -0.03em; }
.form-success p { margin-top: 8px; color: var(--muted); max-width: 36ch; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 28px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}
.foot__top { display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.foot__top:hover { color: var(--fg); }
.foot__top i { transition: transform 0.5s var(--ease); }
.foot__top:hover i { transform: translateY(-3px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .pcard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Plain cards (no stacking) on small or short screens; mirrors stackQuery in main.js. */
@media (max-width: 860px), (max-height: 619px) {
  .pstack { gap: 20px; }
  .pcard { position: relative; top: auto; height: auto; transform: none; box-shadow: none; }
  .pcard::after { display: none; }
  .pcard__media { min-height: 360px; }
}
@media (max-width: 860px) {
  .pcard { grid-template-columns: minmax(0, 1fr); }
  .pcard__media { min-height: 0; aspect-ratio: 4 / 3; }
  .pcard__media img { transform: none; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: inline-grid; }

  .intro { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .intro__portrait, .intro__body { grid-column: 1 / -1; }
  .intro__portrait { width: 72%; max-width: 360px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }

  .tl { height: calc(var(--n, 7) * 64vh + 100dvh); }
  .tl__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tl__frame { order: 2; aspect-ratio: 16 / 10; margin-top: 18px; }
  .tl__text { display: contents; }
  .tl__heading { order: 0; }
  .tl__year { order: 1; font-size: clamp(4.2rem, 24vw, 7rem); margin: 8px 0 0; }
  .tl__copy { order: 3; margin-top: 20px; min-height: 8.5em; }
  .tl__rail { margin-top: 12px; }
  .tl__rail button { font-size: 0.68rem; }

  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hero__name .line + .line { padding-left: 0.5em; }
  .hero__media img { object-position: 50% 20%; }
  .intro { padding-top: 72px; }
  .intro__portrait { display: none; }
  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(9, 9, 8, 0.94) 0%, rgba(9, 9, 8, 0.55) 48%, rgba(9, 9, 8, 0.1) 80%);
  }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }


  .news__ctrl { display: none; }
  .ig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig__head .btn { width: 100%; justify-content: center; }
  .foot { flex-direction: column-reverse; align-items: flex-start; }
}

/* ==========================================================================
   Reduced motion: everything static, all content visible.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .char, .mask-words .w > span, [data-reveal], [data-reveal] img, .hero__sub, .hero__ctas { transform: none !important; opacity: 1 !important; }
  [data-reveal="clip"] img { clip-path: none !important; }
  .hero__media img { transform: none !important; filter: none !important; }
  .word { opacity: 1 !important; }
  .word.em { color: var(--accent); }
  .nav { transform: none; }
}
