/* ==========================================================================
   Adspire Marketing Management — site styles
   ========================================================================== */
:root {
  --bg: #070708;
  --bg-2: #0e0e10;
  --fg: #f4f1ec;
  --muted: #a39d95;
  --line: rgba(255, 255, 255, 0.12);
  --red: #d30e0a;
  --orange: #e8621f;
  --amber: #efa84e;
  --grad: linear-gradient(100deg, #d30e0a 0%, #e8621f 48%, #efa84e 100%);
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 76px;
  --bottom-nav-h: 68px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-scene: 0;
  --z-ui: 10;
  --z-nav: 100;
  --z-modal: 1000;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 2000; padding: 10px 14px; background: var(--fg); color: #000; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.display-xl { font-size: clamp(3.2rem, 11vw, 9.5rem); font-variation-settings: 'wdth' 112; letter-spacing: -0.035em; }
.display-lg { font-size: clamp(2.4rem, 6.5vw, 5.5rem); font-variation-settings: 'wdth' 108; }
.display-md { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.eyebrow { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--fg); max-width: 34ch; }
.muted { color: var(--muted); }
.container { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Navigation — deliberately big and obvious
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  background: linear-gradient(to bottom, rgba(7,7,8,0.85), rgba(7,7,8,0));
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; width: max-content; }
.nav-brand img { width: 40px; height: 40px; }
.nav-brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.2; margin-top: 3px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14,14,16,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-links a {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  color: var(--fg); transition: background 220ms var(--ease), color 220ms var(--ease);
}
.nav-links a i { font-style: normal; font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; }
.nav-links a:hover { background: rgba(255,255,255,0.08); }
.nav-links a[aria-current="page"] { background: var(--fg); color: #0a0a0a; }
.nav-links a[aria-current="page"] i { color: #0a0a0a; opacity: 0.6; }
.nav-cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; box-shadow: 0 8px 30px rgba(211,14,10,0.25); transition: transform 240ms var(--ease), box-shadow 240ms var(--ease); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(232,98,31,0.35); }
.nav-cta svg { width: 16px; height: 16px; }

/* Mobile bottom navigation */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav > nav, .nav-links { display: none; }
  .nav-brand img { width: 34px; height: 34px; }
  .nav-brand small { display: none; }
  .nav-cta { height: 40px; padding: 0 16px; font-size: 0.88rem; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10,10,12,0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; color: var(--muted); min-height: 44px; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a[aria-current="page"] { color: var(--fg); }
  .bottom-nav a[aria-current="page"] svg { color: var(--amber); }
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  body.page-home { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Page transition (enter fade is pure CSS so it never sticks if JS fails)
   -------------------------------------------------------------------------- */
.veil { position: fixed; inset: 0; z-index: 1500; background: var(--bg); pointer-events: none; opacity: 0; }
body.is-entering .veil { animation: veil-out 520ms var(--ease) 60ms both; }
@keyframes veil-out { from { opacity: 1; } to { opacity: 0; } }
body.is-leaving .veil { opacity: 1; pointer-events: auto; transition: opacity 360ms var(--ease); animation: none; }
@media (prefers-reduced-motion: reduce) { body.is-entering .veil { animation: none; } }

/* --------------------------------------------------------------------------
   Home — 3D hero
   -------------------------------------------------------------------------- */
.page-home { overflow-x: clip; }
.hero { position: fixed; inset: 0; z-index: var(--z-scene); }
.hero-glow { position: absolute; left: 50%; top: 50%; width: min(70vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(211,14,10,0.09), rgba(232,98,31,0.04) 45%, rgba(7,7,8,0) 72%); filter: blur(40px); pointer-events: none; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
#scene.is-hover { cursor: pointer; }
.hero-ui { position: absolute; inset: 0; z-index: var(--z-ui); pointer-events: none; }
.hero-ui > * { pointer-events: none; }
.hero-title { position: absolute; left: var(--gutter); bottom: clamp(28px, 5vh, 56px); max-width: min(46ch, 48vw); text-shadow: 0 2px 24px rgba(7,7,8,0.9), 0 0 60px rgba(7,7,8,0.8); }
.hero-title::before { content: ''; position: absolute; inset: -40px -80px -60px -80px; z-index: -1; background: radial-gradient(ellipse at 30% 70%, rgba(7,7,8,0.85), rgba(7,7,8,0.55) 45%, rgba(7,7,8,0) 75%); pointer-events: none; }
.hero-title .eyebrow { margin-bottom: 14px; }
.hero-title h1 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); font-variation-settings: 'wdth' 108; letter-spacing: -0.03em; line-height: 0.98; }
.hero-title p { margin: 14px 0 0; color: var(--muted); font-size: clamp(0.95rem, 1.1vw, 1.1rem); max-width: 38ch; }
.hero-title p a { pointer-events: auto; color: var(--fg); border-bottom: 1px solid var(--line); }
.hero-meta { position: absolute; right: var(--gutter); bottom: clamp(28px, 5vh, 56px); text-align: right; text-shadow: 0 2px 20px rgba(7,7,8,0.9); }
.hero-meta::before { content: ''; position: absolute; inset: -40px -80px -60px -80px; z-index: -1; background: radial-gradient(ellipse at 70% 70%, rgba(7,7,8,0.8), rgba(7,7,8,0) 72%); pointer-events: none; }
.hero-meta .now { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.3rem); letter-spacing: -0.01em; }
.hero-meta .cat { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.hero-meta .count { display: block; margin-top: 10px; font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.12em; }
.hero-hint { position: absolute; left: 50%; bottom: clamp(24px, 4vh, 44px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; transition: opacity 400ms var(--ease); }
.hero-hint .line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--amber), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hero.is-scrolled .hero-hint { opacity: 0; }
.hero-label { position: fixed; z-index: var(--z-ui); left: 0; top: 0; transform: translate(-50%, -50%); padding: 10px 14px; border-radius: 999px; background: rgba(14,14,16,0.85); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 0.85rem; white-space: nowrap; opacity: 0; transition: opacity 180ms var(--ease); pointer-events: none; }
.hero-label b { font-family: var(--font-display); font-weight: 600; margin-right: 8px; }
.hero-label.show { opacity: 1; }
.hero-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateY(20px); opacity: 0; transition: opacity 500ms var(--ease), transform 600ms var(--ease); text-align: center; }
.hero-cta.show { opacity: 1; transform: translate(-50%, -50%); }
.hero-cta a { pointer-events: auto; display: inline-flex; align-items: center; gap: 14px; padding: 18px 34px; border-radius: 999px; background: var(--fg); color: #0a0a0a; font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.35rem); box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: transform 240ms var(--ease); }
.hero-cta a:hover { transform: scale(1.04); }
.hero-cta a svg { width: 20px; height: 20px; }
.hero-cta p { margin: 14px 0 0; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.scroll-space { height: 640vh; }
.hero-fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: var(--gutter); }
.hero.no-webgl .hero-fallback { display: grid; }
.hero.no-webgl #scene, .hero.no-webgl .hero-meta, .hero.no-webgl .hero-hint { display: none; }

@media (max-width: 860px) {
  .hero-title { left: var(--gutter); right: var(--gutter); bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 20px); max-width: none; }
  .hero-title h1 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-title p { font-size: 0.9rem; }
  .hero-meta { left: var(--gutter); right: auto; text-align: left; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 22px); }
  .hero-meta::before { background: radial-gradient(ellipse at 30% 70%, rgba(7,7,8,0.8), rgba(7,7,8,0) 72%); }
  .hero-hint { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 30px); left: auto; right: var(--gutter); transform: none; align-items: flex-end; }
  .hero-cta { top: 24%; width: max-content; }
  .hero-cta a { padding: 14px 24px; }
  .hero-cta p { font-size: 0.72rem; letter-spacing: 0.08em; }
}

/* --------------------------------------------------------------------------
   Shared page sections
   -------------------------------------------------------------------------- */
.page { padding-top: calc(var(--nav-h) + clamp(40px, 9vh, 110px)); }
.section { padding-block: clamp(56px, 10vh, 130px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vh, 64px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-hint .line { animation: none; } }

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 0.9rem; transition: all 200ms var(--ease); }
.filters button:hover { color: var(--fg); border-color: rgba(255,255,255,0.3); }
.filters button[aria-pressed="true"] { background: var(--fg); color: #0a0a0a; border-color: var(--fg); }
.filters button span { margin-left: 8px; font-size: 0.75rem; opacity: 0.6; font-variant-numeric: tabular-nums; }

.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); }
@media (max-width: 1100px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .works { grid-template-columns: repeat(2, 1fr); } }
.work { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--bg-2); aspect-ratio: 9 / 16; transform: translateZ(0); transition: transform 500ms var(--ease), opacity 400ms var(--ease); }
.work.landscape { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .work.landscape { grid-column: span 2; } }
.work video { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.work:hover video { transform: scale(1.04); }
.work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0) 55%); pointer-events: none; }
.work-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.work-cap b { font-family: var(--font-display); font-weight: 600; font-size: clamp(0.95rem, 1.2vw, 1.15rem); letter-spacing: -0.01em; }
.work-cap span { font-size: 0.8rem; color: rgba(244,241,236,0.75); }
.work .play { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,10,12,0.6); border: 1px solid var(--line); backdrop-filter: blur(8px); opacity: 0; transform: scale(0.8); transition: all 250ms var(--ease); }
.work:hover .play, .work:focus-visible .play { opacity: 1; transform: none; }
.work .play svg { width: 16px; height: 16px; margin-left: 2px; }
.work.is-hidden { display: none; }
.works-empty { padding: 40px 0; color: var(--muted); }

/* Cinema & film (YouTube facades) */
.film { display: grid; gap: 14px; }
.film-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.film-play img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), opacity 400ms var(--ease); }
.film-play:hover img { transform: scale(1.03); }
.film-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 50%); pointer-events: none; }
.film-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(244,241,236,0.92); color: #0a0a0a; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: transform 250ms var(--ease); }
.film-play:hover .film-btn { transform: translate(-50%, -50%) scale(1.08); }
.film-btn svg { width: 26px; height: 26px; margin-left: 4px; }
.film-play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play.is-playing { cursor: default; }
.film-play.is-playing::after { display: none; }   /* no facade gradient over the live player */
.film-cap { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.film-cap b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.film-cap span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.film-cap .meta { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; color: var(--fg); }
.lightbox::backdrop { background: rgba(4,4,5,0.92); backdrop-filter: blur(10px); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: max(16px, env(safe-area-inset-top)) var(--gutter) max(16px, env(safe-area-inset-bottom)); }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lightbox-top .t b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.lightbox-top .t span { color: var(--muted); font-size: 0.9rem; }
.lightbox-close { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; }
.lightbox-close svg { width: 16px; height: 16px; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; padding-block: 16px; }
.lightbox-stage video { max-width: 100%; max-height: 100%; width: auto; height: 100%; border-radius: 12px; background: #000; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 0.9rem; }
.lightbox-bottom .desc { max-width: 60ch; }
.lightbox-nav { display: flex; gap: 8px; }
.lightbox-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg); }
.lightbox-nav button svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .lightbox-bottom .desc { display: none; } }

/* --------------------------------------------------------------------------
   About — blueprint style
   -------------------------------------------------------------------------- */
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6; }
.bp { position: relative; }
.bp-grid { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: calc(100% / 4) calc(100vh / 3); background-position: 0 0; }
.bp > .container, .bp .seq, .bp .marquee { position: relative; z-index: 1; }
.bp-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; min-height: 52vh; }
@media (max-width: 900px) { .bp-hero { grid-template-columns: 1fr; align-items: start; } }
.bp-hero-copy .eyebrow { margin-bottom: 20px; }
.bp-hero h1 { position: relative; }
.bp-hero h1::before { content: '+'; position: absolute; left: -0.55em; top: -0.35em; font-family: 'JetBrains Mono', monospace; font-size: 0.2em; color: var(--muted); font-weight: 400; }
.bp-card { border: 1px solid rgba(255,255,255,0.35); background: rgba(7,7,8,0.7); backdrop-filter: blur(8px); max-width: 360px; justify-self: end; }
.bp-card header { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.bp-card header b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.bp-card header .mono { color: var(--muted); font-size: 0.66rem; }
.bp-card p { margin: 0; padding: 16px; }
.bp-card hr { border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 0; }
.bp-card .small { font-size: 0.68rem; color: var(--muted); }
.bp-card .small span { display: inline-block; margin-right: 12px; color: var(--fg); }
@media (max-width: 900px) { .bp-card { justify-self: start; } }

/* Phone sequence + client network */
.seq { position: relative; height: 560vh; margin-top: clamp(32px, 6vh, 80px); }
.bp-seq-first { padding-top: 0; }
.bp-seq-first .seq { margin-top: 0; }
.bp-seq-first .bp-hero { padding-top: clamp(64px, 12vh, 140px); }
.seq-sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); }
#hand-canvas, #seq-logo { position: absolute; inset: 0; width: 100%; height: 100%; }
#hand-canvas { z-index: 1; }
#seq-logo { z-index: 3; pointer-events: none; }
.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
.net .trace { fill: none; stroke: rgba(244,241,236,0.62); stroke-width: 1; shape-rendering: crispEdges; }
.net .px-elbow { fill: rgba(244,241,236,0.9); shape-rendering: crispEdges; }
.net .px-dot { fill: var(--amber); shape-rendering: crispEdges; }
.net .pad { fill: #0a0a0b; stroke: rgba(244,241,236,0.85); stroke-width: 1; }
.net-nodes { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.node { position: absolute; display: grid; gap: 3px; padding: 8px 10px 9px; border: 1px solid rgba(244,241,236,0.42); border-radius: 0; background: rgba(8,8,9,0.9); opacity: 0; pointer-events: none; width: max-content; max-width: min(230px, 40vw); text-align: left; transition: border-color 200ms var(--ease), background 200ms var(--ease); box-shadow: 2px 2px 0 rgba(244,241,236,0.12); }
.node::before { content: ''; position: absolute; left: -1px; top: -1px; width: 5px; height: 5px; background: var(--fg); }
.node.is-on { pointer-events: auto; }
.node:hover, .node:focus-visible { border-color: var(--amber); background: rgba(24,14,8,0.95); }
.node .tag { display: block; font-size: 0.58rem; color: var(--muted); letter-spacing: 0.14em; }
.node b { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; line-height: 1.15; }
.node b svg { width: 13px; height: 13px; color: var(--amber); flex: none; }
.node .role { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.node .blurb { font-size: 0.72rem; color: rgba(244,241,236,0.8); line-height: 1.35; display: none; }
@media (min-width: 1200px) { .node .blurb { display: block; max-width: 210px; } }
@media (max-width: 720px) { .node { padding: 6px 8px; max-width: 44vw; gap: 2px; } .node b { font-size: 0.74rem; } .node .role { display: none; } .node .tag { font-size: 0.52rem; } }
.seq-copy { position: absolute; z-index: 5; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); pointer-events: none; }
.seq-step { position: absolute; left: 0; bottom: 0; margin: 0; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: -0.02em; opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.seq-step .mono { display: block; color: var(--muted); font-size: 0.7rem; margin-bottom: 6px; }
.seq-step.is-on { opacity: 1; transform: none; }
.seq-loading { position: absolute; z-index: 6; right: var(--gutter); top: calc(var(--nav-h) + 16px); color: var(--muted); display: flex; align-items: center; gap: 10px; transition: opacity 400ms var(--ease); }
.seq-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.seq-loading.is-done { opacity: 0; }
/* While the client network is on, the caption moves to the bottom centre, out of the labels' way. */
.seq-copy.is-net { left: 50%; transform: translateX(-50%); bottom: clamp(18px, 4vh, 40px); }
.seq-copy.is-net .seq-step { position: relative; white-space: nowrap; font-size: clamp(1rem, 1.6vw, 1.3rem); padding: 10px 16px; border: 1px solid rgba(244,241,236,0.3); background: rgba(8,8,9,0.85); display: none; }
.seq-copy.is-net .seq-step.is-on { display: flex; align-items: baseline; gap: 12px; }
.seq-copy.is-net .seq-step .mono { display: inline; margin: 0; }
@media (max-width: 860px) {
  .seq-copy { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 20px); }
  .seq-copy.is-net { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 12px); }
  .seq { height: 480vh; }
}

/* Threads (numbered list) */
.threads { list-style: none; margin: 0; padding: 0; }
.threads li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.22); align-items: baseline; }
.threads li:last-child { border-bottom: 1px solid rgba(255,255,255,0.22); }
.threads .n { color: var(--muted); }
.threads b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; }
.threads li > div > span { display: block; margin-top: 10px; color: var(--muted); max-width: 56ch; }
@media (max-width: 720px) { .threads li { grid-template-columns: 48px 1fr; } }

/* Bio */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
@media (max-width: 900px) { .bio-grid { grid-template-columns: 1fr; } }
.bio-grid .eyebrow { margin-bottom: 18px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; color: var(--muted); }
.facts li { padding: 10px 0; border-top: 1px dashed rgba(255,255,255,0.22); }
.facts li::before { content: '↳ '; color: var(--amber); }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid rgba(255,255,255,0.22); border-bottom: 1px solid rgba(255,255,255,0.22); padding: 14px 0; margin-block: clamp(24px, 4vh, 48px); }
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: marquee 40s linear infinite; color: var(--muted); }
.marquee-track span { padding-right: 0.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Project examples list */
.bp-projects { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.bp-projects li { border-top: 1px solid rgba(255,255,255,0.22); }
.bp-projects li:last-child { border-bottom: 1px solid rgba(255,255,255,0.22); }
.bp-projects a { display: grid; grid-template-columns: 70px 1fr auto 24px; gap: 18px; align-items: center; padding: 18px 0; transition: padding-left 300ms var(--ease); }
.bp-projects a:hover { padding-left: 10px; }
.bp-projects a .n { color: var(--muted); }
.bp-projects a b { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.bp-projects a > span:not(.n) { color: var(--muted); font-size: 0.9rem; text-align: right; }
.bp-projects a svg { width: 18px; height: 18px; color: var(--amber); }
@media (max-width: 720px) { .bp-projects a { grid-template-columns: 44px 1fr 24px; } .bp-projects a > span:not(.n) { display: none; } }

/* Contact / footer */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact .big { font-size: clamp(2rem, 5.2vw, 4.6rem); font-variation-settings: 'wdth' 108; letter-spacing: -0.03em; }
.contact a.email { display: inline-block; margin-top: 22px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.6rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; border-bottom: 1px solid rgba(239,168,78,0.5); padding-bottom: 4px; overflow-wrap: anywhere; }
.contact dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; }
.contact dt { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.contact dd { margin: 0; }
.contact dd a { border-bottom: 1px solid var(--line); }
.footer { padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.85rem; }
.footer a { border-bottom: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Projects hero — character-matrix shader, tiny mono UI, huge cropped wordmark
   -------------------------------------------------------------------------- */
.pjx-page { padding-top: 0; }
/* The glyph canvas is FIXED: it keeps running under the Films reel and is faded out by scroll
   (js/projects.js), so the two sections blend instead of meeting at a seam. */
.pjx { position: relative; height: 100vh; height: 100dvh; min-height: 560px; background: transparent; z-index: 0; }
#ascii { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#ascii[hidden] { display: none; }   /* the global `canvas { display: block }` would otherwise defeat the hidden attribute */
.pjx-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pjx-ui > * { pointer-events: auto; }
@media (max-width: 860px) {
  .pjx { min-height: 480px; }
}

.pjx-hint { position: absolute; left: var(--gutter); bottom: clamp(20px, 4vh, 40px); margin: 0; font-size: 0.62rem; color: rgba(244,241,236,0.55); display: flex; align-items: center; gap: 10px; }
.pjx-hint i { width: 22px; height: 1px; background: var(--amber); display: inline-block; animation: hintline 2.4s var(--ease) infinite; transform-origin: left; }
@keyframes hintline { 0% { transform: scaleX(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@media (max-width: 860px) { .pjx-hint { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 16px); } }
@media (prefers-reduced-motion: reduce) { .pjx-hint i { animation: none; transform: none; opacity: 1; } }

/* --------------------------------------------------------------------------
   Films reel — sticky 35mm coil (WebGL) with the film cards scrolling past it
   -------------------------------------------------------------------------- */
.reel { position: relative; z-index: 1; }
.reel-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; pointer-events: none; z-index: 0; }
.reel-stage canvas { width: 100%; height: 100%; }
/* Soft fades into the page background so the coil never hard-clips at the hero seam / section end. */
.reel-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18vh; pointer-events: none; background: linear-gradient(to top, var(--bg), rgba(7,7,8,0)); }
.reel-flow { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100dvh; }
.reel-head { min-height: 55vh; min-height: 55dvh; display: flex; align-items: flex-end; padding-top: calc(var(--nav-h) + 24px); }
.reel-head .section-head { margin-bottom: 0; max-width: 34ch; text-shadow: 0 2px 24px rgba(7,7,8,0.9), 0 0 60px rgba(7,7,8,0.7); }
.reel-lede { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.5; max-width: 40ch; margin: 0; }
.reel-items { list-style: none; margin: 0 auto; padding: 0; }   /* keep .container's auto margins */
/* Cards are 62 vh apart (not a full screen each) and their motion is driven by scroll: js/reel.js
   sets --k (signed distance from the viewport centre, −1..1) and --a (its magnitude) every frame.
   A card slides in from the coil's side, straightens as it passes the centre and drifts outward. */
.reel-item { min-height: 62vh; min-height: 62dvh; display: flex; align-items: center; }
.reel-item:first-child { margin-top: -6vh; }
.reel-item .film { --k: 0; --a: 0; --dir: 1; }
.reel-item.is-left .film { --dir: -1; }
.reel-item.is-left { justify-content: flex-start; }
.reel-item.is-right { justify-content: flex-end; }
.reel-item .film {
  width: min(480px, 34vw);            /* leaves the centre third of the viewport to the coil */
  padding: 14px;
  border-radius: 24px;
  background: rgba(10,10,12,0.62);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translate3d(calc(var(--dir) * var(--k) * -150px), calc(var(--k) * 36px), 0) rotate(calc(var(--dir) * var(--k) * -4deg)) scale(calc(1 - var(--a) * 0.12));
  opacity: calc(1 - var(--a) * 0.72);
  transition: border-color 400ms var(--ease), box-shadow 700ms var(--ease);
  will-change: transform, opacity;
}
.reel-item .film-play { border-radius: 14px; }
.reel-item .film-cap { padding-inline: 4px; }
.reel-item .film-desc { margin: -2px 4px 4px; font-size: 0.95rem; line-height: 1.55; }
.reel-item .film-btn { transition: transform 250ms var(--ease), background 300ms var(--ease); }
.reel-item.is-active .film { border-color: rgba(239,168,78,0.35); box-shadow: 0 40px 90px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.4), 0 0 80px rgba(232,98,31,0.12); }
.reel-item.is-active .film-btn { background: var(--amber); }
.reel-item.is-active .film-play:hover .film-btn { background: #f5b866; }
@media (min-width: 861px) and (max-width: 1150px) { .reel-item .film { width: min(400px, 31vw); } }
.reel.no-gl .reel-stage { display: none; }
.reel.no-gl .reel-flow { margin-top: 0; }
.reel.no-gl .reel-item { min-height: 0; padding-block: clamp(24px, 5vh, 56px); }
@media (max-width: 860px) {
  /* The fixed bottom nav covers the last 68px: shrink the sticky stage and the per-card screens
     to the visible part of the viewport so the coil and the cards stay centred. */
  .reel-stage { height: calc(100vh - var(--bottom-nav-h) - env(safe-area-inset-bottom)); height: calc(100dvh - var(--bottom-nav-h) - env(safe-area-inset-bottom)); }
  .reel-stage canvas { opacity: 0.55; }
  .reel-flow { margin-top: calc(-100vh + var(--bottom-nav-h) + env(safe-area-inset-bottom)); margin-top: calc(-100dvh + var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .reel-head { min-height: 50vh; min-height: 50dvh; }
  .reel-item { min-height: 68vh; min-height: 68dvh; }
  .reel-item .film { transform: translate3d(0, calc(var(--k) * 40px), 0) scale(calc(1 - var(--a) * 0.08)); opacity: calc(1 - var(--a) * 0.6); }
  .reel-item.is-left, .reel-item.is-right { justify-content: center; }
  /* no backdrop blur here: the canvas beneath repaints every frame, so the compositor would re-blur the whole card each frame */
  .reel-item .film { width: min(100%, 520px); padding: 10px; border-radius: 20px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,12,0.8); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-item .film, .reel-item .film-btn { transition: none; }
  .reel-item .film { transform: none; opacity: calc(1 - var(--a) * 0.5); }
}

/* --------------------------------------------------------------------------
   About — after mont-fort.com: one fixed atmosphere canvas, chapters of thin
   uppercase type scrolling over it, a chapter rail + two round buttons on the
   right. Text colour follows the chapter (body[data-theme]).
   -------------------------------------------------------------------------- */
.mf-page { --mf-ink: #24262b; --mf-ink-soft: rgba(36,38,43,0.72); --mf-line: rgba(36,38,43,0.35); --mf-accent: var(--red); --font-mf: 'Josefin Sans', 'Manrope', sans-serif; background: #f2efea; }
.mf-page[data-theme="dark"] { --mf-ink: #f4f1ec; --mf-ink-soft: rgba(244,241,236,0.72); --mf-line: rgba(244,241,236,0.35); --mf-accent: var(--amber); }
.mf-page[data-theme="mid"] { --mf-ink: #2a2622; --mf-ink-soft: rgba(42,38,34,0.72); --mf-line: rgba(42,38,34,0.3); --mf-accent: var(--orange); }
.mf-page .nav-brand, .mf-page .nav-links a { color: var(--mf-ink); transition: color 600ms var(--ease); }
.mf-page .nav-links { background: rgba(255,255,255,0.35); border-color: var(--mf-line); }
.mf-page[data-theme="dark"] .nav-links { background: rgba(14,14,16,0.45); }
.mf-page .nav-links a[aria-current="page"], .mf-page .nav-links a.is-active { color: #0a0a0a; }
.mf-page .nav-brand small, .mf-page .nav-links a i { color: var(--mf-ink-soft); }
#mf-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.mf-no-gl #mf-canvas { display: none; }
.mf-no-gl { background: linear-gradient(#efece7, #d9d5cf); }
.mf { position: relative; z-index: 1; color: var(--mf-ink); font-family: var(--font-body); transition: color 600ms var(--ease); }
.mf-ch { position: relative; min-height: 100vh; min-height: 100dvh; padding: clamp(96px, 16vh, 180px) var(--gutter); box-sizing: border-box; }
.mf-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: start; max-width: 1440px; margin-inline: auto; }
.mf-grid > .mf-eyebrow { grid-column: 1 / -1; }
.mf-grid > .mf-h { grid-column: 1 / span 9; }
.mf-grid > .mf-p { grid-column: 1 / span 6; }
.mf-grid > .mf-p.mf-right { grid-column: 6 / span 6; margin-top: clamp(40px, 8vh, 96px); }
.mf-eyebrow { margin: 0 0 clamp(20px, 3vh, 36px); font-family: var(--font-mf); font-weight: 400; font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mf-ink-soft); }
.mf-h { margin: 0; font-family: var(--font-mf); font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 4.4rem); line-height: 1.16; letter-spacing: 0.06em; text-transform: uppercase; text-wrap: balance; }
.mf-h-sm { font-size: clamp(1.4rem, 2.6vw, 2.6rem); margin: clamp(20px, 3vh, 36px) 0; }
.mf-p { margin: 0; font-size: clamp(1.05rem, 1.35vw, 1.35rem); line-height: 1.6; color: var(--mf-ink); }
.mf-lede { max-width: 62ch; margin: 0 auto clamp(64px, 12vh, 140px); font-size: clamp(1.1rem, 1.6vw, 1.55rem); line-height: 1.55; text-align: center; }

/* hero */
.mf-hero { display: grid; place-items: center; text-align: center; }
.mf-hero-inner { display: grid; justify-items: center; gap: clamp(18px, 3vh, 32px); transform: translateY(-4vh); }
.mf-mark { width: clamp(72px, 11vw, 150px); height: auto; filter: drop-shadow(0 10px 40px rgba(0,0,0,0.08)); }
.mf-word { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); margin: 0; font-family: var(--font-mf); font-weight: 300; font-size: clamp(2.6rem, 8vw, 8rem); letter-spacing: 0.34em; text-transform: uppercase; line-height: 1; color: var(--mf-ink); }
.mf-word-text { padding-left: 0.34em; }   /* optical centring of the tracked word */
.mf-rule { display: block; width: clamp(40px, 12vw, 220px); height: 1px; background: var(--mf-line); }
.mf-sub { margin: 0; font-family: var(--font-mf); font-size: 0.82rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--mf-ink-soft); }
.mf-scroll { position: absolute; left: var(--gutter); bottom: clamp(28px, 6vh, 64px); margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--font-mf); font-size: 0.78rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mf-ink-soft); }
.mf-scroll svg { width: 22px; height: 22px; animation: mfdown 2.2s var(--ease) infinite; }
@keyframes mfdown { 0% { transform: translateY(-6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(6px); opacity: 0; } }

/* statement / who */
.mf-statement, .mf-who { display: flex; align-items: center; }
.mf-statement .mf-grid, .mf-who .mf-grid { width: 100%; }

/* disciplines */
.mf-divisions { display: flex; align-items: center; padding-block: clamp(120px, 20vh, 220px); }
.mf-divs { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 1440px; display: grid; gap: clamp(72px, 14vh, 160px); }
.mf-div { position: relative; max-width: 640px; padding-top: 28px; border-top: 1px solid var(--mf-line); }
/* all four cards keep to the left gutter: the 3D mark drifts up the empty right side */
.mf-num { display: block; font-family: var(--font-mf); font-weight: 300; font-size: 0.95rem; letter-spacing: 0.2em; color: var(--mf-ink-soft); margin-bottom: 18px; }
.mf-label { margin: 0 0 14px; font-family: var(--font-body); font-size: 1rem; color: var(--mf-ink-soft); letter-spacing: 0.02em; }
.mf-h3 { margin: 0 0 28px; font-family: var(--font-mf); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.9rem); line-height: 1.18; letter-spacing: 0.08em; text-transform: uppercase; }
.mf-cta { display: inline-flex; align-items: center; gap: 22px; font-family: var(--font-mf); font-size: 0.9rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mf-ink); }
.mf-cta i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--mf-line); transition: background 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.mf-cta i svg { width: 22px; height: 22px; }
.mf-cta:hover i { background: var(--mf-ink); color: #f4f1ec; transform: translateX(6px); }
.mf-page[data-theme="dark"] .mf-cta:hover i { color: #0a0a0a; }

/* clients map */
.mf-clients { padding-bottom: clamp(120px, 18vh, 220px); }
.mf-clients-head .mf-h { grid-column: 1 / span 10; }
.mf-map { position: relative; height: clamp(520px, 110vh, 1000px); margin-top: clamp(48px, 8vh, 96px); }
.mf-pin { position: absolute; left: var(--x); top: var(--y); width: max-content; display: grid; grid-template-columns: 14px auto; column-gap: 16px; align-items: start; text-decoration: none; color: var(--mf-ink); transform: translate(-7px, -7px); opacity: 0; animation: mfpin 900ms var(--ease) forwards; animation-delay: var(--d); }
.mf-pin i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,0.15), 0 0 24px rgba(255,255,255,0.5); margin-top: 2px; position: relative; }
.mf-pin i::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); animation: mfpulse 2.6s ease-out infinite; }
.mf-pin b { display: block; font-family: var(--font-mf); font-weight: 400; font-size: clamp(0.82rem, 1.05vw, 1.05rem); letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.mf-pin span { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--mf-ink-soft); width: 20ch; line-height: 1.35; }
.mf-pin.is-left { grid-template-columns: auto 14px; text-align: right; transform: translate(calc(-100% + 7px), -7px); }
.mf-pin.is-left i { order: 2; }
.mf-pin:hover b { color: var(--amber); }
.mf-pin:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; border-radius: 4px; }
@keyframes mfpin { to { opacity: 1; } }
@keyframes mfpulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }

/* how we work */
.mf-values { padding-block: clamp(120px, 18vh, 220px); }
.mf-block { position: relative; max-width: 1440px; margin: 0 auto clamp(96px, 16vh, 200px); display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: clamp(16px, 3vw, 48px); }
.mf-block .mf-num { grid-column: 1; font-size: 1.1rem; margin: 6px 0 0; }
.mf-block .mf-h3 { grid-column: 2; max-width: 22ch; }
.mf-block .mf-h { grid-column: 2; }
.mf-block-body { grid-column: 2; max-width: 68ch; display: grid; gap: 20px; }
.mf-block-body p { margin: 0; font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.65; }
.mf-cols { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vh, 72px); }
.mf-col h4, .mf-pillars h4 { margin: 0 0 14px; font-family: var(--font-mf); font-weight: 400; font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase; }
.mf-col p { margin: 0 0 22px; font-size: 0.98rem; line-height: 1.6; color: var(--mf-ink-soft); }
.mf-icons { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mf-icons li { display: grid; grid-template-columns: 44px auto; align-items: center; column-gap: 14px; font-size: 0.95rem; }
.mf-icons i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mf-line); position: relative; }
.mf-icons i::after { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: var(--mf-accent); opacity: 0.85; }
.mf-pillars { grid-column: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(32px, 5vh, 56px); }
.mf-pillars p { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--mf-ink-soft); }

/* contact / footer */
.mf-contact { min-height: 0; padding-bottom: calc(clamp(40px, 8vh, 96px) + var(--bottom-nav-h)); }
.mf-offices { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); padding-top: clamp(32px, 6vh, 64px); border-top: 1px solid var(--mf-line); }
.mf-offices h3 { margin: 0 0 22px; font-family: var(--font-mf); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2.2rem); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.15; }
.mf-offices p { margin: 0 0 14px; font-size: 0.98rem; line-height: 1.7; color: var(--mf-ink-soft); }
.mf-offices a { color: var(--mf-ink); border-bottom: 1px solid var(--mf-line); }
.mf-offices a:hover { color: var(--red); border-color: var(--red); }
.mf-copy { max-width: 1440px; margin: clamp(48px, 8vh, 96px) auto 0; padding-top: 24px; border-top: 1px solid var(--mf-line); font-family: var(--font-mf); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mf-ink-soft); }

/* side rail */
.mf-side { position: fixed; right: clamp(16px, 2.4vw, 40px); top: 50%; transform: translateY(-50%); z-index: 20; display: grid; gap: 18px; justify-items: end; }
.mf-chapters { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.mf-chapters button { display: grid; grid-template-columns: auto 2px; align-items: center; column-gap: 12px; color: var(--mf-ink-soft); font-family: var(--font-mf); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; cursor: pointer; opacity: 0.6; transition: opacity 300ms var(--ease), color 300ms var(--ease); }
.mf-chapters b { font-weight: 400; order: 1; }
.mf-chapters .mf-bar { order: 2; width: 2px; height: 34px; background: var(--mf-line); position: relative; overflow: hidden; }
.mf-chapters .mf-bar i { position: absolute; inset: 0; background: var(--mf-accent); transform-origin: top; transform: scaleY(0); }
.mf-chapters li.is-on button { opacity: 1; color: var(--mf-ink); }
.mf-round { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--mf-line); color: var(--mf-ink); background: transparent; transition: background 300ms var(--ease), color 300ms var(--ease); }
.mf-round svg { width: 20px; height: 20px; }
.mf-round:hover { background: var(--mf-ink); color: #f4f1ec; }
.mf-page[data-theme="dark"] .mf-round:hover { color: #0a0a0a; }

@media (max-width: 1100px) {
  .mf-grid > .mf-h { grid-column: 1 / -1; }
  .mf-grid > .mf-p.mf-right { grid-column: 3 / -1; }
  .mf-chapters { display: none; }
}
@media (max-width: 860px) {
  .mf-ch { padding: clamp(80px, 14vh, 140px) var(--gutter) calc(clamp(80px, 14vh, 140px) + var(--bottom-nav-h)); }
  .mf-grid > .mf-p.mf-right { grid-column: 1 / -1; margin-top: 32px; }
  .mf-word { letter-spacing: 0.22em; gap: 10px; }
  .mf-word-text { padding-left: 0.22em; }
  .mf-rule { width: 28px; }
  .mf-scroll { bottom: calc(var(--bottom-nav-h) + 24px); }
  .mf-map { height: 120vh; }
  .mf-pin span { display: none; }
  .mf-pin b { font-size: 0.72rem; letter-spacing: 0.16em; }
  .mf-block { grid-template-columns: 1fr; }
  .mf-block .mf-num, .mf-block .mf-h3, .mf-block .mf-h, .mf-block-body, .mf-cols, .mf-pillars { grid-column: 1; }
  .mf-cols, .mf-pillars, .mf-offices { grid-template-columns: 1fr; }
  .mf-side { right: 12px; top: auto; bottom: calc(var(--bottom-nav-h) + 20px); transform: none; gap: 10px; }
  .mf-round { width: 44px; height: 44px; }
  .mf-lede { text-align: left; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-scroll svg { animation: none; }
  .mf-pin { animation: none; opacity: 1; }
  .mf-pin i::after { animation: none; display: none; }
}
