/* Creative Peter Media
   Theme: dark only. The brand is video-led and the logo is white-on-dark,
   so the site stays in one cinema-dark theme throughout.
   Shape rule: buttons, chips and pills are full-pill; media frames and
   panels use --radius (16px). Nothing else gets rounded.
   Z-index scale: header 50, menu 60, preview 40, dialog 80, curtain 90, grain 100. */

:root {
  --bg: #0b0a0d;
  --bg-2: #131117;
  --bg-3: #1c1922;
  --text: #f4f1f6;
  --muted: #a39dab;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.22);
  --accent: #e0179c;       /* sampled from the "Peter" splash in the logo */
  --accent-ink: #c30c86;   /* deeper shade for white button text (5.4:1) */
  --accent-text: #f05bb7;  /* lighter shade for small magenta text on dark (6.4:1) */

  --font-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3rem, min(9vw, 14.5vh), 10rem);
  --fs-h1: clamp(2.75rem, 7.2vw, 7.25rem);
  --fs-h2: clamp(2rem, 4.6vw, 4.25rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 2.25rem);
  --fs-lead: clamp(1.0625rem, 1.25vw, 1.25rem);

  --radius: 16px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

@media (max-width: 767px) {
  :root { --header: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
video { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 110;
  padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Grain (fixed, never on scrolling layers) ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease), border-color 0.3s;
  will-change: transform;
}
.btn:hover { --btn-bg: var(--accent); }
.btn:active { transform: scale(0.97); }
.btn i { font-size: 1.15em; }
.btn-ghost {
  --btn-bg: rgb(255 255 255 / 0.04);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { --btn-bg: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.4); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.9375rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.0625rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.3s, gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); gap: 16px; }
.link-arrow i { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgb(11 10 13 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.brand { display: block; position: relative; z-index: 2; }
.brand img { height: 40px; width: auto; }
@media (max-width: 767px) { .brand img { height: 34px; } }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  position: relative; font-weight: 500; font-size: 0.9375rem; color: var(--muted);
  transition: color 0.3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  display: none; position: relative; z-index: 2;
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 700; font-size: 0.9375rem;
  background: rgb(11 10 13 / 0.4);
  backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header) + 32px) var(--gutter) 32px;
  background: var(--bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu.is-open { visibility: visible; }
.menu-links a {
  display: block; overflow: hidden;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.75rem, 13vw, 4.5rem); line-height: 1.05; letter-spacing: -0.035em;
}
.menu-links a span { display: inline-block; }
.menu-links a[aria-current="page"] { color: var(--accent); }
.menu-foot { display: grid; gap: 6px; color: var(--muted); }
.menu-foot a { color: var(--text); font-weight: 500; }
.menu-close {
  position: absolute; top: 11px; right: var(--gutter);
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 0.9375rem;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  height: 100dvh; min-height: 620px;
  overflow: hidden;
  /* The video "window": inset from each edge. Scroll animates these to 0. */
  --t: 44%; --r: 4%; --b: 9%; --l: 52%; --rad: 16px; --wipe: 0%;
}
.hero-media {
  position: absolute; inset: 0;
  clip-path: inset(var(--t) var(--r) var(--b) calc(var(--l) + var(--wipe)) round var(--rad));
  background: var(--bg-2);
  cursor: pointer;
}
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(11 10 13 / 0.2), rgb(11 10 13 / 0) 30%, rgb(11 10 13 / 0) 60%, rgb(11 10 13 / 0.55));
  opacity: var(--shade, 0);
  pointer-events: none;
}
.hero-play {
  position: absolute; z-index: 3;
  left: calc(var(--l) + var(--wipe) + (100% - var(--l) - var(--wipe) - var(--r)) / 2);
  top: calc(var(--t) + (100% - var(--t) - var(--b)) / 2);
  translate: -50% -50%;
  width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: rgb(11 10 13 / 0.35);
  border: 1px solid rgb(255 255 255 / 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 700; font-size: 0.8125rem; line-height: 1.2;
  transition: background 0.3s, border-color 0.3s, width 0.4s var(--ease), height 0.4s var(--ease);
}
.hero-play i { font-size: 1.6rem; display: block; margin: 0 auto 2px; color: #fff; }
.hero-play:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.hero-pause {
  position: absolute; z-index: 3;
  right: calc(var(--r) + 14px); bottom: calc(var(--b) + 14px);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(11 10 13 / 0.45); border: 1px solid rgb(255 255 255 / 0.25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 1rem; transition: background 0.3s;
}
.hero-pause:hover { background: rgb(11 10 13 / 0.75); }

.hero-copy {
  position: absolute; z-index: 2; inset: 0;
  pointer-events: none;
  padding: calc(var(--header) + 4vh) var(--gutter) 9vh;
  display: flex; flex-direction: column; justify-content: space-between;
  max-width: var(--maxw); margin-inline: auto;
}
.hero-copy > * { pointer-events: auto; }
.hero-title { font-size: var(--fs-hero); max-width: 11ch; padding-bottom: 0.06em; }
.hero-title .line-mask { display: block; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line { display: block; }
.hero-title .motion-word { color: var(--accent); display: inline-block; }
.hero-title .motion-word .ch { display: inline-block; }
.hero-foot { max-width: min(40%, 460px); display: grid; gap: 28px; }
.hero-sub { font-size: var(--fs-lead); color: var(--muted); max-width: 36ch; }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { position: absolute; inset: 0; }

@media (max-width: 899px) {
  .hero {
    height: auto; min-height: 0; overflow: visible;
    padding: calc(var(--header) + 28px) 0 0;
    display: flex; flex-direction: column;
  }
  .hero-copy { position: relative; inset: auto; padding: 0 var(--gutter); gap: 22px; order: 0; }
  .hero-title { font-size: clamp(2.9rem, 13.5vw, 5.5rem); max-width: none; }
  .hero-foot { max-width: none; gap: 22px; }
  .hero-stage {
    position: relative; inset: auto; order: 1;
    margin: 36px var(--gutter) 0;
    aspect-ratio: 4 / 3.4;
    border-radius: var(--radius); overflow: hidden;
  }
  .hero-media { clip-path: none; }
  .hero-play { left: 50%; top: 50%; width: 96px; height: 96px; }
  .hero-pause { right: 12px; bottom: 12px; }
}

/* ---------- Home: manifesto ---------- */
.manifesto { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); }
.manifesto p {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 4.1rem);
  line-height: 1.08; letter-spacing: -0.03em;
  max-width: 21ch;
}
.manifesto .w { display: inline; }
.cap {
  display: inline-block; vertical-align: -0.08em;
  width: 1.9em; height: 0.82em; margin: 0 0.12em;
  border-radius: 999px; overflow: hidden;
  background: var(--bg-3);
}
.cap video { width: 100%; height: 100%; }
.manifesto-foot { margin-top: 48px; display: flex; gap: 12px 40px; flex-wrap: wrap; align-items: center; }
.manifesto-foot p { font: inherit; font-size: var(--fs-lead); color: var(--muted); max-width: 44ch; letter-spacing: 0; line-height: 1.6; }

/* ---------- Home: stage stack ---------- */
.stages { padding-bottom: clamp(80px, 12vh, 140px); }
.stages-head { margin-bottom: clamp(36px, 6vh, 64px); }
.stages-head h2 { font-size: var(--fs-h2); }
.stack { display: grid; gap: 6vh; }
.stage-card {
  --i: 0;
  position: sticky;
  top: calc(var(--header) + 16px + var(--i) * 18px);
  height: min(76vh, 700px);
  display: grid; grid-template-columns: 1fr 1.3fr;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  transform-origin: 50% 0;
}
.stage-text {
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.stage-text h3 { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.stage-text p { color: var(--muted); font-size: var(--fs-lead); max-width: 34ch; margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9375rem; font-weight: 500;
}
.stage-media { position: relative; overflow: hidden; }
.stage-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-dim {
  position: absolute; inset: 0; background: var(--bg);
  opacity: 0; pointer-events: none; z-index: 3;
}
.stages-more { margin-top: 48px; }

@media (max-width: 899px) {
  .stage-card {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr;
    height: auto;
    top: calc(var(--header) + 12px + var(--i) * 12px);
  }
  .stage-media { order: -1; aspect-ratio: 16 / 9; }
  .stage-text { padding: 24px 22px 28px; gap: 22px; }
}

/* ---------- Inner page heads ---------- */
.page-head, .contact { isolation: isolate; }
.page-head {
  position: relative;
  padding: calc(var(--header) + clamp(56px, 12vh, 140px)) 0 clamp(48px, 8vh, 96px);
}
.page-head h1 { font-size: var(--fs-h1); max-width: 12ch; padding-bottom: 0.05em; }
.page-head .lead { margin-top: 28px; font-size: var(--fs-lead); color: var(--muted); max-width: 46ch; }

.head-media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.head-media video { width: 100%; height: 100%; opacity: 0.55; }
.head-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgb(11 10 13 / 0.6) 45%, rgb(11 10 13 / 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgb(11 10 13 / 0) 40%);
}
.page-head.has-media { min-height: min(88vh, 860px); display: flex; align-items: flex-end; }
@media (max-width: 767px) {
  .page-head.has-media { min-height: 78vh; }
  .head-media::after { background: linear-gradient(0deg, var(--bg) 8%, rgb(11 10 13 / 0.55) 60%, rgb(11 10 13 / 0.3) 100%); }
}

/* ---------- Services index ---------- */
.svc { padding-bottom: clamp(80px, 12vh, 140px); }
.svc-group { padding-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line); }
.svc-group + .svc-group { margin-top: clamp(40px, 6vh, 72px); }
.svc-group-title {
  font-family: var(--font-body); font-weight: 500; letter-spacing: 0;
  font-size: 1rem; color: var(--accent-text); margin-bottom: 18px; line-height: 1.4;
}
.svc-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  align-items: center; gap: 32px;
  padding: 18px 0;
}
.svc-thumb { display: none; }
.svc-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.25rem, 5.6vw, 5.25rem); line-height: 1; letter-spacing: -0.04em;
  transition: transform 0.6s var(--ease), color 0.4s;
}
.svc-desc { color: var(--muted); font-size: var(--fs-lead); max-width: 36ch; transition: color 0.4s; }
.svc-row > i {
  font-size: 1.75rem; color: var(--muted);
  transition: transform 0.5s var(--ease), color 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .svc-list:has(.svc-row:hover) .svc-name { color: rgb(244 241 246 / 0.32); }
  .svc-list .svc-row:hover .svc-name { color: var(--text); transform: translateX(18px); text-shadow: 0 2px 24px rgb(11 10 13 / 0.6); }
  .svc-row:hover .svc-desc { color: var(--text); }
  .svc-row:hover > i { color: var(--accent); transform: rotate(45deg); }
}

.svc-list { position: relative; z-index: 2; }
/* Preview sits behind the list so the hovered name stays readable over the footage. */
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: clamp(280px, 26vw, 420px); aspect-ratio: 16 / 10;
  border-radius: var(--radius); overflow: hidden;
  pointer-events: none;
  opacity: 0; scale: 0.6;
  background: var(--bg-3);
}
.svc-preview video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.35s;
}
.svc-preview video.is-on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .svc-preview { display: none; } }

@media (max-width: 899px) {
  .svc-row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    grid-template-areas: "thumb name arrow" "thumb desc arrow";
    gap: 4px 18px; padding: 16px 0;
  }
  .svc-thumb {
    display: block; grid-area: thumb;
    width: 96px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; align-self: center;
  }
  .svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc-name { grid-area: name; font-size: clamp(1.6rem, 7vw, 2.25rem); }
  .svc-desc { grid-area: desc; font-size: 0.9375rem; line-height: 1.45; }
  .svc-row > i { grid-area: arrow; font-size: 1.35rem; }
}

/* ---------- Work: player ---------- */
.player-wrap { padding-bottom: clamp(80px, 14vh, 160px); }
.player {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2);
  text-align: left;
}
.player img, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player video { opacity: 0; transition: opacity 0.6s; }
.player:hover video, .player:focus-visible video { opacity: 1; }
.player::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgb(11 10 13 / 0.7), rgb(11 10 13 / 0) 45%);
}
.player-ui {
  position: absolute; z-index: 2; left: clamp(18px, 3vw, 40px); right: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 40px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.player-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 3rem); letter-spacing: -0.035em; line-height: 1; }
.player-title span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: 0; color: var(--muted); margin-top: 10px; }
.player-btn {
  flex: none;
  width: clamp(72px, 9vw, 120px); height: clamp(72px, 9vw, 120px); border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-ink); color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  transition: background 0.3s, scale 0.5s var(--ease);
}
.player:hover .player-btn { background: var(--accent); scale: 1.06; }

/* ---------- Work: craft strip (horizontal) ---------- */
.strip { position: relative; padding-bottom: clamp(60px, 10vh, 120px); background: var(--bg); }
.strip-head { margin-bottom: clamp(28px, 5vh, 56px); }
.strip-head h2 { font-size: var(--fs-h2); }
.strip-head p { margin-top: 18px; color: var(--muted); font-size: var(--fs-lead); max-width: 46ch; }
/* Swipeable by default (phones, reduced motion); the pinned desktop version moves the track itself. */
.strip-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.strip-viewport::-webkit-scrollbar { display: none; }
.strip.is-pinned .strip-viewport { overflow: hidden; scroll-snap-type: none; }
.strip-track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  padding-inline: var(--gutter);
  width: max-content;
}
.tile { width: clamp(280px, min(34vw, 58vh), 560px); flex: none; margin: 0; }
.tile-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2);
}
.tile-media video, .tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { padding-top: 18px; }
.tile h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.tile p { margin-top: 8px; color: var(--muted); max-width: 36ch; }

.strip.is-pinned { height: 100dvh; padding: calc(var(--header) + 4vh) 0 0; display: flex; flex-direction: column; justify-content: center; }

.tile { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
@media (max-width: 899px) {
  .strip-track { padding-right: var(--gutter); }
  .tile { width: 78vw; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  min-height: 100dvh;
  padding: calc(var(--header) + clamp(48px, 10vh, 120px)) 0 clamp(64px, 10vh, 120px);
}
/* Mirrored so the light flare sits on the right, behind the form. */
.contact .head-media video { opacity: 0.75; scale: -1 1; }
.contact-grid {
  display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact h1 { font-size: clamp(2.75rem, 6.4vw, 6.25rem); max-width: 11ch; padding-bottom: 0.05em; }
.contact .lead { margin-top: 26px; font-size: var(--fs-lead); color: var(--muted); max-width: 40ch; }
.direct { margin-top: clamp(36px, 6vh, 64px); display: grid; gap: 22px; }
.direct-item span { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 4px; }
.direct-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.direct-line a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem); letter-spacing: -0.025em; line-height: 1.15;
  word-break: break-word;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.5s var(--ease);
}
.direct-line a:hover { background-size: 100% 2px; }
.copy-btn {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 0.875rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.3s, border-color 0.3s;
}
.copy-btn:hover { background: rgb(255 255 255 / 0.08); }
.copy-btn.is-done { border-color: var(--accent); color: var(--text); }

.form-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgb(19 17 23 / 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
  padding: clamp(22px, 3vw, 40px);
}
.form-card h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 26px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label, .field legend { font-weight: 500; font-size: 0.9375rem; padding: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgb(255 255 255 / 0.07); }
.field input::placeholder, .field textarea::placeholder { color: #8d8795; }
.field .err { display: none; color: #ff7cc8; font-size: 0.875rem; }
.field.has-error input, .field.has-error textarea { border-color: #ff7cc8; }
.field.has-error .err { display: block; }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span {
  display: inline-block; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 0.9375rem; font-weight: 500;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.pick input:checked + span { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-help { font-size: 0.875rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 0.9375rem; color: var(--text); display: none; }
.form-status.is-on { display: block; }
.form-card .btn { width: 100%; justify-content: center; }

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

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: clamp(80px, 14vh, 160px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-lead { font-size: var(--fs-lead); color: var(--muted); }
.marquee {
  display: block; overflow: hidden; white-space: nowrap;
  margin: 18px 0 clamp(56px, 10vh, 110px);
  padding-block: 0.06em 0.12em;
}
.marquee-track { display: inline-flex; align-items: center; will-change: transform; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 11rem); line-height: 1; letter-spacing: -0.045em;
  padding-right: 0.25em;
  transition: color 0.4s;
}
.marquee-track i { font-size: clamp(2rem, 6vw, 6rem); color: var(--accent); padding-right: 0.3em; }
.marquee:hover .marquee-track span { color: var(--accent); }

.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 40px;
  align-items: start;
}
.footer-grid img { height: 46px; width: auto; }
.footer-grid h2 { font-family: var(--font-body); font-weight: 500; font-size: 0.875rem; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { display: grid; gap: 6px; }
.footer-grid a { transition: color 0.3s; }
.footer-grid a:hover { color: var(--accent); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 28px; border-top: 1px solid var(--line);
  font-size: 0.875rem; color: var(--muted);
}
.footer-grid .link-arrow { white-space: nowrap; }
@media (max-width: 767px) {
  /* Logo, then contact on its own row (the email is long), then pages beside the reel link. */
  .footer-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "logo logo" "contact contact" "pages reel"; gap: 28px 20px; }
  .footer-grid > :nth-child(1) { grid-area: logo; }
  .footer-grid > :nth-child(2) { grid-area: pages; }
  .footer-grid > :nth-child(3) { grid-area: contact; }
  .footer-grid > :nth-child(4) { grid-area: reel; }
}

/* ---------- Reel dialog ---------- */
.reel-dialog {
  width: min(92vw, 1400px); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--text);
  overflow: visible;
}
.reel-dialog::backdrop { background: rgb(6 5 8 / 0.92); backdrop-filter: blur(8px); }
.reel-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  max-height: 82dvh;
  border-radius: var(--radius); overflow: hidden; background: #000;
}
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-close {
  position: absolute; right: 0; top: -58px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 0.9375rem;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgb(11 10 13 / 0.6);
}
.reel-close:hover { border-color: var(--accent); }

/* ---------- Page curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg-2);
  display: grid; place-items: center;
  pointer-events: none;
  transform: translateY(-100%);
}
.curtain::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent);
}
.curtain img { height: 54px; width: auto; opacity: 0.9; }
/* With JS on, the curtain starts closed and the script lifts it.
   The animation is a failsafe: if the script never runs, it lifts anyway. */
.js .curtain { transform: none; animation: curtain-failsafe 0.8s 2.5s forwards; }
.js .curtain.is-managed { animation: none; }
@keyframes curtain-failsafe { to { transform: translateY(-100%); } }

/* ---------- Reveal helpers (set up by JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.line-mask { overflow: clip; }
/* SplitText line masks: extra room below so descenders (g, y, p) never clip. */
.sl-mask, [data-split] > div { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .curtain { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .stage-card { position: relative; top: auto; }
}
