/* ============================================
   CREATEXODUS — Framed Editorial Stylesheet
   Black page. Rounded cards. Three typefaces
   in strict roles: sans for labels, serif for
   prose, display for case-study headlines.
   ============================================ */

/* ---- Tokens ---- */
:root {
  --black: #000000;
  --inset: 15px;
  --radius: 40px;

  /* Hero (dark navy card) */
  --hero-0: #05090f;
  --hero-1: #0b1a2c;
  --hero-2: #163a5c;
  --hero-text: #f2f4f8;

  /* Light cards */
  --card: #eceef2;
  --card-hi: #f7f8fa;
  --card-lo: #e3e6eb;
  --ink: #424242;
  --ink-2: #6b6b6b;
  --ink-3: #888888;
  --ink-4: #b4b8c0;
  --ink-faint: #d1d6e0;
  --rule: rgba(0, 0, 0, 0.09);

  /* Dark surfaces on black */
  --dark-text: #f2f4f8;
  --dark-muted: #8d9199;

  /* Type */
  --sans: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Hedvig Letters Serif', Georgia, 'Times New Roman', serif;
  --display: 'Playfair Display', 'Hedvig Letters Serif', Georgia, serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(24px, 5vw, 80px);
}

/* ---- Reset / Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
  background: #171a21;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.4;
  background: transparent;
}
/* Glass frame: a blurred ambient loop of the hero footage (js/glass.js adds a
   tiny <video class="ambient">) sits behind the page; the frame is a lit glass
   sheet over it, the same material as the nav tab. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("../assets/ambient.jpg") center / cover no-repeat;
  filter: brightness(0.66) saturate(1.15);
}
.ambient {
  position: fixed;
  top: -10vh; left: -10vw;
  width: 120vw; height: 120vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  filter: brightness(0.66) saturate(1.15);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.04) 50%, transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 50%, rgba(0,0,0,0.05) 100%),
    rgba(20,22,28,0.26);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; color: inherit; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

::selection { background: #1a3550; color: #fff; }

/* ---- Type utilities ---- */
.eyebrow {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.prose {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

/* ============================================
   PAGE FRAME
   Every section is a rounded card inset from
   the black page edge by --inset.
   ============================================ */
.page { padding: var(--inset); }

.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 0 1px rgba(255,255,255,0.09),
    0 1px 0 1px rgba(0,0,0,0.35),
    0 24px 70px rgba(0,0,0,0.45);
  background: linear-gradient(160deg, var(--card-lo) 0%, var(--card-hi) 34%, var(--card) 52%, var(--card-hi) 78%, var(--card-lo) 100%);
}
.card + .card { margin-top: var(--inset); }

/* Light streak across light cards */
.card--light::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 85% 12%, rgba(255,255,255,0.7), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255,255,255,0.45), transparent 70%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
}
.card--light > * { position: relative; }

/* ============================================
   NAV TAB
   A black tab hanging from the top edge. Only
   the logo shows; hover reveals the links.
   ============================================ */
.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(2px);
  transition: opacity 0.4s ease 0s, transform 0.5s var(--ease), visibility 0s linear 0.4s;
  white-space: nowrap;
  overflow: hidden;
}
.nav-group--l { justify-content: flex-end; }
.nav-group--r { justify-content: flex-start; }
.nav-group { min-width: 0; padding: 0; }
.nav-link {
  font-family: 'Inter', var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: opacity 0.3s;
}
.nav-link { position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); opacity: 0.8; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-logo {
  display: block;
  height: 22px;
  width: auto;
  justify-self: center;
  margin-top: -6px;
}
.nav-logo img { height: 100%; width: auto; }
.nav-toggle {
  position: absolute;
  inset: 0;
  display: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: calc(100vh - 2 * var(--inset));
  min-height: calc(100svh - 2 * var(--inset));
  background: var(--hero-0);
  color: var(--hero-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px var(--gutter) 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, var(--hero-1), var(--hero-0) 100%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.85;
  will-change: transform;
}
.hero-blob--1 {
  width: 60vw; height: 60vw;
  left: -10vw; top: -20vw;
  background: radial-gradient(circle, var(--hero-2) 0%, transparent 65%);
  animation: blob1 26s var(--ease-io) infinite alternate;
}
.hero-blob--2 {
  width: 55vw; height: 55vw;
  right: -15vw; bottom: -20vw;
  background: radial-gradient(circle, #123456 0%, transparent 65%);
  animation: blob2 32s var(--ease-io) infinite alternate;
}
.hero-blob--3 {
  width: 40vw; height: 40vw;
  left: 45%; top: 30%;
  background: radial-gradient(circle, #1b4a72 0%, transparent 65%);
  opacity: 0.45;
  animation: blob3 22s var(--ease-io) infinite alternate;
}
@keyframes blob1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(18vw, 14vw) scale(1.15); } }
@keyframes blob2 { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-16vw, -12vw) scale(0.95); } }
@keyframes blob3 { from { transform: translate(-10vw, 6vw) scale(0.9); } to { transform: translate(12vw, -10vw) scale(1.2); } }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}
.hero-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,9,15,0.28) 0%, rgba(5,9,15,0.04) 30%, rgba(5,9,15,0.06) 65%, rgba(5,9,15,0.38) 100%),
    rgba(8,16,28,0.08);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 90% at 50% 50%, transparent 70%, rgba(0,0,0,0.22) 100%);
}

.hero-line {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  width: min(840px, 100%);
}
.hero-name {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--hero-text);
}
.hero-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35) 20%, rgba(255,255,255,0.35) 80%, transparent);
}
.hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.hero-title .serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-title .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
}
.hero-mark { height: 13px; width: auto; opacity: 0.9; }
.hero-title .sans {
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-foot {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(36px, 6vh, 64px);
  text-align: center;
  padding: 0 var(--gutter);
}
.hero-bio {
  max-width: 560px;
  margin: 0 auto 18px;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hero-text);
}
.hero-meta {
  display: inline-flex;
  gap: 14px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hero-text);
}

/* Cinematic intro (driven by js/main.js; these are the pre-paint states) */
.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000;
  opacity: 0;
  pointer-events: none;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: #05090f;
  opacity: 0;
  pointer-events: none;
}
.hero-name { display: inline-block; overflow: hidden; line-height: 1.25; margin: -0.12em 0; padding: 0.12em 0; white-space: pre; }
.hero-name .ch { display: inline-block; }
.hero-rule { transform-origin: 50% 50%; }
.is-intro .intro-veil { opacity: 1; }
.is-intro .hero-shade { opacity: 0.55; }
.is-intro .hero-bg { clip-path: inset(38% 0 38% 0); transform: scale(1.22); }
/* During the intro the card itself is transparent, so the frame shows through around the strip;
   the card's shadow and rim never change, so the hand-off is invisible. */
.is-intro .hero { background: transparent; }
.is-intro .hero-line > *, .is-intro .hero-foot > * { opacity: 0; }
.is-intro .nav { transform: translateY(-70px); }

/* ============================================
   INTRO STATEMENT + CLIENT INDEX + REEL
   ============================================ */
.intro {
  padding: clamp(120px, 18vh, 200px) var(--gutter) 0;
}
.intro-statement {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: clamp(0px, 8vw, 130px);
}
.intro-statement .eyebrow {
  position: absolute;
  left: 0;
  top: 0.9em;
}
.intro-text {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-indent: clamp(90px, 9vw, 140px);
}
.intro-text .w { color: var(--ink-faint); }

.client-index {
  margin: clamp(120px, 16vh, 200px) auto 0;
  text-align: center;
}
.client-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  column-gap: 18px;
  margin: clamp(10px, 2vh, 24px) 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink-faint);
}
.client-row > span { grid-column: 2; }
.client-row small {
  grid-column: 3;
  justify-self: start;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.reel {
  margin: clamp(80px, 12vh, 160px) auto 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  overflow: hidden;
  border-radius: 24px;
  transform-origin: 50% 50%;
  background: #000;
}
.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-wrap { padding-bottom: clamp(80px, 12vh, 160px); }

/* ============================================
   SPLIT SECTIONS (eyebrow + heading + prose
   on the left, content on the right)
   ============================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
  gap: clamp(40px, 6vw, 120px);
  padding: clamp(60px, 9vh, 120px) var(--gutter);
}
.split + .split { padding-top: 0; }
.split-head { position: sticky; top: 90px; align-self: start; }
.split-head .eyebrow { display: block; margin-bottom: 10px; }
.split-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 22px;
}
.split-head .prose { max-width: 420px; }

/* Partners logo grid: 4 x 4 cells, every logo boxed to the same optical size */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vh, 48px) clamp(12px, 2vw, 32px);
  padding-top: 8px;
}
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}
.logo-grid img {
  display: block;
  width: auto;
  height: auto;
  max-width: 72%;
  max-height: 22px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.7;
  transition: transform 0.6s var(--ease);
}
.logo-grid img.logo-mark { max-height: 40px; max-width: 60%; }
.logo-grid img.logo-nike { max-height: 18px; max-width: 46%; }
.logo-cell:hover img { transform: translateY(-3px); }

/* Tables */
.table { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.35s, padding-left 0.5s var(--ease);
}
.table .row:hover, a.row:hover { padding-left: 10px; }
a.row:hover { background: rgba(255,255,255,0.35); }
.row-a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.row-b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.row-c {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  min-width: 36px;
  text-align: right;
}
.row-c svg { display: inline-block; vertical-align: middle; }

/* CTA pill */
.cta-pill {
  margin-top: clamp(48px, 7vh, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 14px 14px 26px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.55));
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 12px 40px rgba(0,0,0,0.05);
}
.cta-pill-text {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 10px;
  background: #0b0b0b;
  color: #fff;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,0.3); background: #1a1a1a; }
.btn-dark:active { transform: translateY(0); }
.btn-dark svg { transition: transform 0.5s var(--ease); }
.btn-dark:hover svg { transform: translateX(3px); }

/* ============================================
   CASE STUDIES (dark image cards on black)
   ============================================ */
.cases { padding: var(--inset) 0 0; }
.cs {
  position: relative;
  display: block;
  width: min(1200px, calc(100vw - 2 * var(--inset)));
  margin: 0 auto;
  aspect-ratio: 16 / 8.2;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  background: #0a0a0a;
  color: var(--cs-tint, #d8d3c8);
  opacity: 0.3;
  will-change: opacity;
}
.cs + .cs { margin-top: clamp(48px, 8vh, 96px); }
.cs { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 70px rgba(0,0,0,0.45); }
.cases-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: clamp(48px, 8vh, 96px);
}
.cases-more-text {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.cs-media {
  position: absolute;
  inset: 0;
}
.cs-media img, .cs-media video {
  position: absolute;
  left: 0; top: -9%;
  width: 100%; height: 118%;
  object-fit: cover;
}
.cs-media { transition: transform 1.4s var(--ease); transform: scale(1.03); }
.cs:hover .cs-media { transform: scale(1.0); }
.cs-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.5) 100%);
}
.cs.cs--left .cs-shade {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.5) 100%);
}
.cs-body {
  position: absolute;
  top: clamp(36px, 7%, 64px);
  right: clamp(32px, 6%, 72px);
  width: min(58%, 560px);
  container-type: inline-size;
}
.cs--left .cs-body { right: auto; left: clamp(32px, 6%, 72px); top: auto; bottom: clamp(36px, 8%, 72px); }
.cs-head { display: flex; flex-direction: column; align-items: flex-start; }
.cs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0.95;
}
.cs-logo { height: 22px; width: auto; max-width: 96px; object-fit: contain; opacity: 0.95; }
.cs-logo--tall { height: 30px; }
.cs-l1, .cs-l2 { display: block; line-height: 0.92; letter-spacing: -0.02em; white-space: nowrap; }
.cs-l2 { padding-left: 0; }
.cs-display { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 15.5cqw, 96px); letter-spacing: -0.01em; }
.cs-italic { font-family: var(--sans); font-weight: 500; font-style: italic; font-size: clamp(34px, 11.5cqw, 70px); letter-spacing: -0.03em; }
.cs-bold { font-family: var(--sans); font-weight: 500; font-size: clamp(34px, 11.5cqw, 70px); letter-spacing: -0.03em; }
.cs-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 10px clamp(24px, 6cqw, 48px);
  margin: 26px 0 0;
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-meta > div { display: flex; gap: 8px; }
.cs-meta b { font-weight: 500; opacity: 0.7; }
.cs-meta span { font-family: var(--serif); font-weight: 400; margin: 0; }
.cs-desc {
  padding: 18px 0 0;
  max-width: 46ch;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
}
.cs-open {
  position: absolute;
  bottom: clamp(24px, 5%, 40px);
  right: clamp(28px, 5%, 48px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.6s var(--ease), border-color 0.35s;
}
.cs:hover .cs-open { opacity: 1; transform: none; }
.cs-open:hover { border-color: #fff; }
.cs-laurel {
  position: absolute;
  top: clamp(28px, 6%, 52px);
  left: clamp(28px, 5%, 56px);
  display: flex;
  gap: 18px;
}
.laurel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  opacity: 0.85;
}
.laurel strong { font-family: var(--serif); font-weight: 400; font-size: 11px; letter-spacing: 0.04em; text-transform: none; }

/* ============================================
   ABOUT + CONTACT (light card)
   ============================================ */
.about-photo {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  margin-left: auto;
}
.about-photo img { width: 100%; height: 114%; margin-top: -7%; object-fit: cover; filter: saturate(0.85); }
.about-facts {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}
.about-facts .row { grid-template-columns: minmax(0, 1fr) auto; }

.form { border-top: 1px solid var(--rule); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.field {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.field label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field select { color: var(--ink-4); cursor: pointer; }
.field select:valid { color: var(--ink); }
.field select option { color: #111; }
.field--area { grid-template-columns: 110px 1fr; align-items: start; }
.field--area label { padding-top: 6px; }
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
}
.form-note { font-family: var(--serif); font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }

/* ============================================
   FOOTER (on black)
   ============================================ */
.footer {
  padding: clamp(48px, 7vh, 80px) clamp(24px, 4vw, 64px) 0;
  color: var(--dark-text);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px clamp(40px, 8vw, 160px);
  align-items: start;
}
.footer-logo { display: block; height: 26px; width: auto; margin-bottom: 28px; }
.footer-logo img { height: 100%; width: auto; }
.footer-name {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-text);
  margin: -14px 0 20px;
}
.footer-blurb {
  max-width: 520px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--dark-muted);
}
.footer-social { display: flex; gap: 18px; margin-top: 32px; }
.footer-social a { color: var(--dark-muted); transition: color 0.3s; display: block; }
.footer-social a:hover { color: #fff; }
.footer-cols { display: grid; gap: 34px; padding-top: 6px; }
.footer-col .eyebrow { display: block; margin-bottom: 14px; color: var(--dark-muted); }
.footer-col ul { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 3vw, 40px); }
.footer-col a {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8b8b8;
  transition: color 0.3s;
}
.footer-col a:hover { color: #fff; }
.footer-bar {
  margin-top: clamp(48px, 7vh, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 36px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,0.09), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 60%, rgba(0,0,0,0.04) 100%),
    rgba(20,22,28,0.26);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 10px 30px rgba(0,0,0,0.22),
    0 2px 6px rgba(0,0,0,0.12);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-bar .serif { font-family: var(--serif); font-weight: 400; }
.footer-bar-l { display: flex; align-items: center; gap: 12px; }
.footer-bar .hero-mark { height: 12px; }
.footer-bar-r { text-align: right; display: flex; justify-content: flex-end; gap: 14px; }
.footer-bar .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.footer-bar-c { font-family: var(--sans); }

/* ============================================
   BOOKING MODAL — Multi-step wizard
   ============================================ */
.booking-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.5s;
}
.booking-modal.active { pointer-events: all; visibility: visible; transition: visibility 0s 0s; }
.booking-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), -webkit-backdrop-filter 0.5s var(--ease);
}
.booking-modal.active .booking-backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
}
.booking-center {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(160deg, var(--card-lo), var(--card-hi) 40%, var(--card));
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s ease;
  color: var(--ink);
}
.booking-modal.active .booking-center { transform: scale(1) translateY(0); opacity: 1; }
.booking-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  z-index: 2;
  background: rgba(0,0,0,0.06);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.booking-close:hover { background: rgba(0,0,0,0.12); color: var(--ink); transform: scale(1.05); }

.bk-progress {
  height: 2px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  margin-bottom: 2.25rem;
  overflow: hidden;
  transition: opacity 0.3s;
}
.bk-progress-bar { height: 100%; width: 33.33%; background: #0b0b0b; border-radius: 2px; transition: width 0.5s var(--ease); }

.booking-step { display: none; animation: bkSlideIn 0.45s var(--ease); }
.booking-step.active { display: block; }
@keyframes bkSlideIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.bk-stagger { opacity: 0; transform: translateY(10px); animation: bkStagger 0.45s var(--ease) forwards; }
.bk-stagger:nth-child(1) { animation-delay: 0.06s; }
.bk-stagger:nth-child(2) { animation-delay: 0.12s; }
.bk-stagger:nth-child(3) { animation-delay: 0.18s; }
.bk-stagger:nth-child(4) { animation-delay: 0.24s; }
@keyframes bkStagger { to { opacity: 1; transform: translateY(0); } }

.bk-title {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.bk-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.bk-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.bk-type {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  text-align: left;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bk-type:hover { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.12); transform: translateY(-1px); }
.bk-type.selected { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }
.bk-type-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-4); flex-shrink: 0; transition: all 0.3s; }
.bk-type.selected .bk-type-dot { border-color: #fff; background: #fff; }
.bk-type-label { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }

.bk-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 1.4rem 0 1rem;
  font-size: 10px; letter-spacing: 0.1em; color: var(--ink-4);
}
.bk-divider::before, .bk-divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.08); }
.bk-discovery {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.bk-discovery:hover { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.12); transform: translateY(-1px); }
.bk-discovery-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb36a; box-shadow: 0 0 0 4px rgba(47,179,106,0.15); flex-shrink: 0; }
.bk-discovery-label { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.bk-discovery-title { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.bk-discovery-sub { font-family: var(--serif); font-weight: 400; font-size: 12px; color: var(--ink-3); }

.bk-fields { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; margin-bottom: 1.6rem; }
.bk-card-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 0.1rem 1rem;
  transition: border-color 0.3s, background 0.3s;
}
.bk-card-field:focus-within { border-color: rgba(0,0,0,0.3); background: rgba(255,255,255,0.9); }
.bk-card-icon { flex-shrink: 0; color: var(--ink-4); transition: color 0.3s; }
.bk-card-icon--top { align-self: flex-start; margin-top: 0.85rem; }
.bk-card-field:focus-within .bk-card-icon { color: var(--ink); }
.bk-card-field input, .bk-card-field textarea, .bk-card-field select {
  width: 100%;
  background: transparent !important;
  border: none;
  box-shadow: none;
  padding: 0.85rem 0;
  margin: 0;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}
.bk-card-field input::placeholder, .bk-card-field textarea::placeholder { color: var(--ink-4); opacity: 1; }
.bk-card-field input:-webkit-autofill, .bk-card-field input:-webkit-autofill:hover, .bk-card-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0) inset;
  -webkit-text-fill-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
}
.bk-card-field--textarea { align-items: flex-start; }
.bk-card-field--textarea textarea { padding: 0.85rem 0; min-height: 72px; }
.bk-card-field--select select {
  color: var(--ink-4);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.25rem;
}
.bk-card-field--select select:valid { color: var(--ink); }
.bk-card-field--select select option { background: #fff; color: #111; }

.bk-nav { display: flex; justify-content: space-between; align-items: center; }
.bk-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--ink-3);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 0;
  transition: color 0.3s, gap 0.3s;
}
.bk-back:hover { color: var(--ink); gap: 0.55rem; }
.bk-continue {
  background: #0b0b0b;
  color: #fff;
  padding: 0.85rem 1.8rem;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-left: auto;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}
.bk-continue:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.28); }
.bk-continue:active { transform: translateY(0) scale(0.98); }
.bk-continue:disabled { opacity: 0.6; cursor: not-allowed; }

.bk-success { padding: 1.5rem 0 0.5rem; }
.bk-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  animation: bkSuccessPop 0.5s var(--ease);
}
@keyframes bkSuccessPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.bk-check-path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: bkCheckDraw 0.4s var(--ease) 0.3s forwards; }
@keyframes bkCheckDraw { to { stroke-dashoffset: 0; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-head { position: static; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-body { width: min(64%, 520px); }
}

@media (max-width: 768px) {
  :root { --radius: 28px; --inset: 10px; }

  .nav-logo { height: 20px; }
  .nav-toggle { display: block; }

  .hero { padding: 90px 22px 150px; }
  .hero-line { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .hero-name { font-size: 11px; letter-spacing: 0.08em; }
  .hero-rule { width: 48px; margin: 0 auto; }
  .hero-title { justify-content: center; white-space: nowrap; gap: 9px; }
  .hero-title .serif { font-size: 10px; letter-spacing: 0.03em; }
  .hero-title .sans { font-size: 10px; }
  .hero-mark { height: 10px; }
  .hero-foot { bottom: 28px; padding: 0 28px; }
  .hero-bio { font-size: 10px; line-height: 1.5; letter-spacing: 0.03em; max-width: 320px; margin-bottom: 12px; opacity: 0.9; }
  .hero-meta { flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 10px; }

  /* Mobile type scale */
  .eyebrow { font-size: 10px; }
  .prose { font-size: 13.5px; line-height: 1.6; }
  .split-title { font-size: 22px; }
  .row-a, .row-c { font-size: 11px; }
  .row-b { font-size: 11px; }
  .cta-pill-text { font-size: 11px; }
  .btn-dark { font-size: 10px; padding: 13px 18px; }
  .cs-kicker { font-size: 9.5px; letter-spacing: 0.26em; }
  .cs-meta { font-size: 9px; gap: 8px 18px; margin-top: 18px; padding: 12px 0; }
  .cs-desc { font-size: 9.5px; line-height: 1.6; max-width: 40ch; }
  .footer-blurb { font-size: 13.5px; }
  .footer-col a { font-size: 9.5px; padding: 8px 12px; }
  .footer-bar { font-size: 10.5px; }
  .field label { font-size: 10.5px; }
  .field input, .field select, .field textarea { font-size: 13.5px; }
  .form-note { font-size: 11.5px; }

  .intro { padding-top: 90px; }
  .intro-statement { padding-left: 0; }
  .intro-statement .eyebrow { position: static; display: block; margin-bottom: 18px; }
  .intro-text { text-indent: 0; font-size: clamp(21px, 5.8vw, 28px); line-height: 1.22; }
  .client-row { font-size: clamp(26px, 8vw, 38px); grid-template-columns: 1fr; row-gap: 2px; margin: 10px 0; }
  .client-row > span, .client-row small { grid-column: 1; justify-self: center; }
  .client-row small { font-size: 8px; }
  .reel { border-radius: 16px; }

  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .logo-cell { height: 36px; }
  .logo-grid img { max-height: 18px; }
  .logo-grid img.logo-mark { max-height: 30px; }
  .row { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 0; }
  .row-b { grid-column: 1 / -1; order: 3; }
  .cta-pill { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; border-radius: 16px; }
  .btn-dark { justify-content: center; }

  .cs { aspect-ratio: auto; min-height: 560px; border-radius: 22px; width: calc(100vw - 2 * var(--inset)); }
  .cs-body, .cs--left .cs-body { width: auto; left: 22px; right: 22px; top: auto; bottom: 26px; }
  .cs-shade, .cs--left .cs-shade { background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.85) 100%); }
  .cs-meta { grid-template-columns: repeat(2, auto); }
  .cs-laurel { top: 22px; left: 22px; }
  .cs-open { opacity: 1; transform: none; bottom: auto; top: 22px; right: 22px; }

  .about-photo { margin: 0; width: 100%; max-width: 360px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .field, .field--area { grid-template-columns: 1fr; gap: 6px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn-dark { justify-content: center; }

  .footer { padding: 48px 12px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bar { grid-template-columns: 1fr; text-align: center; gap: 10px; padding: 18px 20px; border-radius: 24px; }
  .footer-bar-l, .footer-bar-r { justify-content: center; }
  .footer-bar-r { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob { animation: none; }
  .cs { opacity: 1; }
}


/* ---- Liquid glass: lensing + adaptive tint ---- */
.has-lens .footer-bar {
  -webkit-backdrop-filter: blur(14px) saturate(1.8) url(#lg-lens-pill);
  backdrop-filter: blur(14px) saturate(1.8) url(#lg-lens-pill);
}

/* ---- Text motion masks (js/motion.js) ---- */
.mw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.14em 0.04em 0.16em; margin: -0.14em -0.04em -0.16em; }
.mi { display: inline-block; will-change: transform; }
.ms { display: inline; white-space: normal; }
.mword { display: inline-block; white-space: nowrap; }
.cs-l1 .ms, .cs-l2 .ms { white-space: nowrap; }

/* ---- Links and buttons: no bubbles. Text + animated underline, squared primaries ---- */
.footer-col ul { gap: 12px clamp(22px, 3vw, 36px); }
.footer-col a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #d0d0d0;
  transition: color 0.3s;
}
.footer-col a::after, .u-line::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-col a:hover::after { transform: scaleX(1); }
.footer-social a {
  width: auto; height: auto;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--dark-muted);
  transition: color 0.3s, transform 0.5s var(--ease);
}
.footer-social a:hover { color: #fff; transform: translateY(-2px); }
.footer-bar-l, .footer-bar-c, .footer-bar-r { color: #eaeaea; }
a:focus-visible, button:focus-visible, .row:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
  border-radius: 6px;
}
.card a:focus-visible, .card button:focus-visible { outline-color: rgba(0,0,0,0.6); }

/* ---- Compact footer on phones ---- */
@media (max-width: 768px) {
  .footer { padding: 30px 6px 0; }
  .footer-grid { gap: 22px; }
  .footer-logo { height: 20px; margin-bottom: 16px; }
  .footer-name { font-size: 11px; margin: -6px 0 10px; }
  .footer-blurb { font-size: 12.5px; line-height: 1.5; max-width: 36ch; }
  .footer-social { margin-top: 16px; gap: 10px; }
  .footer-social a { width: 32px; height: 32px; }
  .footer-social svg { width: 15px; height: 15px; }
  .footer-cols { gap: 16px; padding-top: 0; }
  .footer-col .eyebrow { margin-bottom: 8px; font-size: 9.5px; }
  .footer-col ul { gap: 6px; }
  .footer-col a { font-size: 9px; padding: 7px 10px; }
  .footer-bar { margin-top: 26px; padding: 12px 16px; gap: 3px; border-radius: 18px; font-size: 9.5px; line-height: 1.5; }
  .footer-bar-c { order: -1; font-size: 10.5px; letter-spacing: 0.06em; }
  .footer-bar-l { gap: 8px; }
  .footer-bar .hero-mark { height: 9px; }
  .footer-bar-r { gap: 10px; }
}

/* Open mobile menu: always dark glass, whatever sits behind it */
@media (max-width: 768px) {
}

.nav-toggle { left: calc(50% - var(--nav-w) / 2); width: var(--nav-w); }

/* Over light cards: light glass, dark text */

@media (max-width: 768px) {
}

/* ============================================
   NAV TAB — one continuous glass shape.
   The element is the tab plus its two shoulders; js/glass.js keeps a single
   clip-path (shoulders + rounded bottom) in step with the element's size, so
   blur, tint and inner light run unbroken around the whole outline.
   ============================================ */
.nav {
  --nav-r: 25px;
  position: fixed;
  top: 0; left: 0; right: 0;
  margin-inline: auto;
  z-index: 1000;
  width: 230px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: calc(var(--nav-r) + 22px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 55%, rgba(0,0,0,0.04) 100%),
    rgba(20,22,28,0.30);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow:
    inset 0 -16px 24px -16px rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.10);
  transition: width 0.7s var(--ease), background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}
.nav:hover { width: 820px; column-gap: clamp(28px, 4vw, 64px); }
.nav-logo { min-width: max-content; }
.nav:hover .nav-group {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.15s, transform 0.6s var(--ease) 0.1s, visibility 0s;
}
.nav-toggle { left: var(--nav-r); right: var(--nav-r); width: auto; }

/* Over light cards: light glass, dark text */
.nav.on-light {
  color: #151515;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.40) 100%),
    rgba(240,242,246,0.30);
  box-shadow:
    inset 0 -16px 24px -16px rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(255,255,255,0.7);
}
.nav.on-light .nav-link { color: #151515; text-shadow: none; }
.nav.on-light .nav-logo img { filter: brightness(0); opacity: 0.85; }

@media (max-width: 768px) {
  .nav { width: 190px; height: 46px; padding-inline: calc(var(--nav-r) + 12px); transition: background 0.45s ease, color 0.45s ease, box-shadow 0.45s ease; }
  .nav:hover { width: 190px; }
  .nav:hover .nav-group { opacity: 0; visibility: hidden; }
}

/* ---- Phones: keep the look, drop the per-frame blur work that makes menus stutter ---- */
@media (max-width: 768px) {
  .ambient { display: none; }
  body::before { filter: brightness(0.62) saturate(1.15) blur(14px); transform: scale(1.08); }
  body::after {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 50%, rgba(0,0,0,0.05) 100%),
      rgba(20,22,28,0.34);
  }
  .nav { -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
  .footer-bar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

/* ---- Phone menu: a glass panel that slides down from behind the tab (transform only) ---- */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 980;
  background: rgba(6,8,12,0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.menu-open .menu-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.5s ease, visibility 0s; }
.menu-sheet {
  position: fixed;
  top: 0; left: 10px; right: 10px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 70px 24px 30px;
  max-height: calc(100vh - 20px);
  overflow: auto;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%),
    rgba(12,14,20,0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.14), 0 24px 60px rgba(0,0,0,0.45);
  transform: translateY(-102%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.65s var(--ease), visibility 0s linear 0.65s;
}
.menu-open .menu-sheet {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.65s var(--ease), visibility 0s;
}
.menu-sheet a {
  font-family: 'Inter', var(--sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 10px 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
  transition-delay: 0s;
}
.menu-open .menu-sheet a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.18s + var(--i, 0) * 0.045s);
}
.menu-sheet-rule {
  width: 44px;
  height: 1px;
  background: rgba(255,255,255,0.28);
  margin: 8px 0 10px;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease) 0.25s;
}
.menu-open .menu-sheet-rule { transform: scaleX(1); }
.menu-sheet::before {
  content: '';
  position: absolute;
  top: 56px; left: 24px; right: 24px;
  height: 1px;
  background: rgba(255,255,255,0.14);
}
@media (min-width: 769px) { .menu-sheet, .menu-scrim { display: none; } }
