/* Annexus: main styles. Design direction "Nexus": logo rings, signal, glass, on dark. */

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit-var-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-500-latin.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-600-latin.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Brand palette (Annexus Branding Guide 2017), always in this order */
  --yellow: #F5D010;
  --orange: #F89A1C;
  --pink:   #E53092;
  --blue:   #2D90CF;
  --green:  #71BC7D;
  --spectrum: linear-gradient(90deg, var(--yellow), var(--orange) 25%, var(--pink) 50%, var(--blue) 75%, var(--green));

  /* Dark theme surfaces */
  --bg: #05070D;
  --bg-raise: #0A0E18;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #F4F5FA;
  --muted: #A7AEC2;   /* 8.9:1 on --bg */
  --dim: #868DA3;     /* 5.9:1 on --bg */

  --font: 'Outfit', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-label: 'Raleway', 'Outfit', ui-sans-serif, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; text-rendering: optimizeLegibility;
}
@supports (overflow: clip) { body { overflow-x: clip; } main, .site-footer { overflow-x: clip; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
p, li { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
ul[role="list"], .chip-list, .tick-list, .stack-list, .nav ul, .site-footer ul { list-style: none; padding: 0; }
::selection { background: rgba(229, 48, 146, .45); color: #fff; }

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

.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-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 12px/1.2 var(--font-label); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--spectrum); }
.h2 { font-weight: 500; font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin-top: 20px; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 52ch; margin-top: 22px; font-weight: 300; line-height: 1.6; }
.prose { margin-top: 26px; display: grid; gap: 16px; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); font-weight: 300; max-width: 56ch; }
.grad-text {
  background: var(--spectrum); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__title .grad-text { animation: spectrum-shift 12s ease-in-out infinite alternate; }
.hero.is-offscreen .grad-text { animation-play-state: paused; }
@keyframes spectrum-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Buttons ---------- */
.btn {
  --pad: 16px 26px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .4s var(--ease-out);
}
.btn--small { --pad: 11px 18px; font-size: 14px; }
.btn--light { background: var(--text); color: #070A12; }
.btn--light:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 10px 40px -10px rgba(229, 48, 146, .7), 0 10px 50px -12px rgba(45, 144, 207, .7); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255,255,255,.02); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn__arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background-color .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(5, 7, 13, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: none; border-radius: 99px; }
.brand img { width: 128px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: block; padding: 9px 14px; border-radius: 99px; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .25s, background-color .25s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); background: rgba(255,255,255,.06); }
.header-cta { flex: none; }
.menu-toggle { display: none; }

@media (max-width: 899px) {
  .header-cta { margin-left: auto; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
    border-radius: 99px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s; }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; } .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 12px var(--gutter) 28px; overflow-y: auto; overscroll-behavior: contain;
    background: rgba(5, 7, 13, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .4s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .4s var(--ease-out); }
  .no-js .nav { position: static; visibility: visible; opacity: 1; transform: none; background: none; border: 0; padding: 0; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { font-size: 22px; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; color: var(--text); }
  .site-header:has(.nav.is-open) { background: rgba(5, 7, 13, .94); }
}
@media (max-width: 420px) { .header-cta { display: none; } .menu-toggle { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 120px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__fallback { position: absolute; z-index: -3; width: min(62vw, 900px); right: -4vw; top: 50%; transform: translateY(-50%); opacity: .7; filter: drop-shadow(0 0 18px rgba(229, 48, 146, .25)); }
.hero__fallback { transition: opacity 1s var(--ease-out); }
.hero--gl .hero__fallback { opacity: 0; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 18% 60%, rgba(5,7,13,.55), transparent 70%), linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero__content { position: relative; }
.hero__title { margin-top: 26px; font-weight: 500; font-size: clamp(46px, 7.4vw, 118px); line-height: .98; letter-spacing: -.04em; max-width: 12ch; }
.hero__line { display: block; }
.hero__lede { margin-top: 28px; max-width: 40ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: #C3C8D8; font-weight: 300; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 32px; translate: -50% 0; width: 26px; height: 42px; border-radius: 99px; border: 1px solid var(--line-strong); display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue span { width: 3px; height: 8px; border-radius: 3px; background: var(--text); animation: cue 2s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

@media (max-width: 899px) and (max-aspect-ratio: 11/10) {
  /* portrait: the top 40% of the screen belongs to the rings (see hero.js) */
  .hero { align-items: flex-start; padding-top: 40vh; padding-top: 40svh; padding-bottom: 72px; }
}
@media (max-width: 899px) {
  .hero__fallback { width: 120vw; right: -10vw; top: 26%; }
  .hero__shade { background: linear-gradient(180deg, transparent 30%, rgba(5,7,13,.7) 58%, var(--bg) 100%); }
  .scroll-cue { display: none; }
}

/* Intro animation for the hero (only with JS + motion allowed) */
.js .hero__content > * { animation: rise 1.1s var(--ease-out) both; }
.js .hero__content > :nth-child(2) { animation-delay: .12s; }
.js .hero__content > :nth-child(3) { animation-delay: .32s; }
.js .hero__content > :nth-child(4) { animation-delay: .46s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: linear-gradient(90deg, var(--bg), transparent 12%, transparent 88%, var(--bg)), var(--bg-raise); }
.ticker::before, .ticker::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 12%; z-index: 1; background: linear-gradient(90deg, var(--bg-raise), transparent); }
.ticker::after { inset: 0 0 0 auto; transform: scaleX(-1); }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 48s linear infinite; }
.ticker__track span { font: 600 13px/1 var(--font-label); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.ticker__track i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ticker__track i:nth-of-type(5n+1) { background: var(--yellow); } .ticker__track i:nth-of-type(5n+2) { background: var(--orange); }
.ticker__track i:nth-of-type(5n+3) { background: var(--pink); } .ticker__track i:nth-of-type(5n+4) { background: var(--blue); }
.ticker__track i:nth-of-type(5n+5) { background: var(--green); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding: clamp(72px, 8vw, 116px) 0; }
.section-head { max-width: 800px; margin-bottom: clamp(44px, 6vw, 72px); }
.section::before { /* faint dot field, masked so it fades at the edges */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 50% at 70% 40%, #000, transparent 75%);
}

/* ---------- Cards (base; spotlight comes from interactions.css) ---------- */
.card {
  --accent: var(--blue);
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
[data-accent="yellow"] { --accent: var(--yellow); } [data-accent="orange"] { --accent: var(--orange); }
[data-accent="pink"] { --accent: var(--pink); --accent-text: #F05BA6; /* lifted pink for AA on lit cards */ } [data-accent="blue"] { --accent: var(--blue); } [data-accent="green"] { --accent: var(--green); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__group { margin-top: 30px; display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 15px; }
.dot-sep { width: 8px; height: 8px; border-radius: 50%; background: var(--spectrum); box-shadow: 0 0 12px rgba(229,48,146,.6); }
.about__split { display: grid; gap: 0; }
.split-card { padding: 30px 30px 32px; }
.split-card__title { display: grid; gap: 8px; font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.split-card__kicker { font: 600 12px/1 var(--font-label); letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text, var(--accent)); }
.tick-list { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; color: var(--muted); font-size: 16px; }
.tick-list li { display: flex; align-items: baseline; gap: 10px; }
.tick-list li::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; border: 1.5px solid var(--accent); translate: 0 -2px; }
.split-link { position: relative; height: 64px; margin-left: 33px; width: 1px; }
.split-link__line { position: absolute; inset: 0; background: linear-gradient(var(--blue), var(--green)); opacity: .6; }
.split-link__pulse { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 2px rgba(255,255,255,.8); animation: pulse-down 2.2s ease-in-out infinite; }
@keyframes pulse-down { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(57px); opacity: 0; } }

/* ---------- Approach ---------- */
.approach__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.approach__intro { position: sticky; top: calc(var(--header-h) + 48px); }
.timeline { --progress: 0; position: relative; list-style: none; padding: 0 0 0 54px; display: grid; gap: 28px; counter-reset: phase; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 34px; width: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(var(--yellow), var(--orange), var(--pink), var(--blue), var(--green)); transform-origin: top; transform: scaleY(var(--progress)); box-shadow: 0 0 14px rgba(229,48,146,.5); }
.phase { position: relative; }
.phase__node { position: absolute; left: -54px; top: 30px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg); z-index: 1; transition: border-color .5s, box-shadow .5s; }
.phase__node::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .5s var(--ease-out); }
.phase.is-active .phase__node { border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 28px var(--accent); }
.phase.is-active .phase__node::after { transform: scale(1); }
.phase__body { padding: clamp(26px, 3vw, 38px); }
.phase__num { font: 300 64px/1 var(--font); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.phase__title { margin-top: 14px; line-height: 1.1; font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.02em; }
.phase__summary { margin: 6px 0 14px; font: 600 12px/1.4 var(--font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text, var(--accent)); }
.phase__body > p:not([class]) { color: var(--muted); font-weight: 300; }
.chip-list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 7px 13px; border-radius: 99px; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { padding: 32px 30px 34px; display: grid; align-content: start; gap: 14px; min-height: 300px; transform-style: preserve-3d; }
.service__icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 18px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent)); }
.service__title { font-weight: 500; font-size: 23px; letter-spacing: -.015em; line-height: 1.2; }
.service p { color: var(--muted); font-weight: 300; font-size: 16.5px; }
.service--spectrum .service__icon { color: #fff; filter: drop-shadow(0 0 6px rgba(245,208,16,.6)) drop-shadow(0 0 10px rgba(229,48,146,.5)) drop-shadow(0 0 14px rgba(45,144,207,.5)); }
.service--spectrum { border-color: transparent; background: linear-gradient(180deg, #0D111B, #090C14) padding-box, linear-gradient(90deg, rgba(245,208,16,.55), rgba(248,154,28,.55), rgba(229,48,146,.55), rgba(45,144,207,.55), rgba(113,188,125,.55)) border-box; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.work-card { padding: clamp(28px, 3.4vw, 44px); display: grid; gap: 16px; align-content: start; }
.work-card__ring { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; }
.work-card__ring::before { content: ""; position: absolute; right: -110px; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: .35; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 40px color-mix(in srgb, var(--accent) 20%, transparent); pointer-events: none; }
.work-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font: 600 12px/1.3 var(--font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text, var(--accent)); }
.work-card__title { font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.025em; line-height: 1.1; }
.work-card p:not([class]) { color: var(--muted); font-weight: 300; max-width: 46ch; }
.badge { padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--muted); letter-spacing: .14em; font-size: 11px; }
.badge--live { display: inline-flex; align-items: center; gap: 8px; }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Stack ---------- */
.stack__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: center; }
.stack-list { margin-top: 34px; display: grid; border-top: 1px solid var(--line); }
.stack-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.stack-list__k { font: 600 12px/1.9 var(--font-label); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; display: grid; place-items: center; container-type: inline-size; }
.orbit__ring { --dur: 60s; position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); animation: spin var(--dur) linear infinite; }
.orbit__ring::before { /* a signal travelling around the ring */
  content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 3px var(--glow);
}
.orbit__ring--1 { --glow: var(--blue); inset: 4%; border-color: rgba(45,144,207,.38); box-shadow: inset 0 0 60px rgba(45,144,207,.08), 0 0 30px rgba(45,144,207,.06); }
.orbit__ring--2 { --glow: var(--pink); --dur: 44s; inset: 22%; border-color: rgba(229,48,146,.38); animation-direction: reverse; box-shadow: inset 0 0 50px rgba(229,48,146,.08); }
.orbit__chip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.orbit__ring--1 .orbit__chip { --r: 46cqi; }
.orbit__ring--2 .orbit__chip { --r: 28cqi; }
.orbit__chip > span {
  display: block; padding: 10px 16px; border-radius: 99px; white-space: nowrap;
  font-weight: 500; font-size: 15px; background: rgba(10, 14, 24, .86); border: 1px solid var(--line-strong);
  animation: spin var(--dur) linear infinite reverse; /* counter-rotate to stay upright */
}
.orbit__ring--2 .orbit__chip > span { animation-direction: normal; }
.orbit__core { width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%); border: 1px solid var(--line); }
.orbit__core img { width: 76%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact { text-align: center; overflow: hidden; }
.contact::after { content: ""; position: absolute; left: 50%; top: 58%; width: min(1100px, 140vw); aspect-ratio: 1; translate: -50% -50%; z-index: -1; border-radius: 50%; background: conic-gradient(from 90deg, var(--yellow), var(--orange), var(--pink), var(--blue), var(--green), var(--yellow)); -webkit-mask-image: radial-gradient(closest-side, #000, rgba(0,0,0,.35) 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000, rgba(0,0,0,.35) 45%, transparent 100%); opacity: .13; pointer-events: none; }
.contact__rings { position: absolute; left: 50%; top: 50%; width: min(1180px, 160vw); translate: -50% -50%; z-index: -1; opacity: .5; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.contact__inner { display: grid; justify-items: center; }
.contact__title { margin-top: 22px; font-weight: 500; font-size: clamp(36px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.contact__email-wrap { margin-top: 44px; }
.contact__email {
  display: inline-block; border-radius: 12px; padding-inline: .15em; font-weight: 400; font-size: clamp(26px, 4.6vw, 60px); letter-spacing: -.02em; text-decoration: none; line-height: 1.2; padding-bottom: 6px;
  background: var(--spectrum) bottom / 100% 2px no-repeat; transition: background-size .5s var(--ease-out); overflow-wrap: anywhere;
}
.contact__email:hover { background-size: 100% 100%; color: #070A12; }
.contact__location { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 17px; }
.contact__location svg { width: 20px; height: 20px; color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 40px; color: var(--dim); font-size: 15px; }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.site-footer__logo { width: 112px; height: auto; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: center; }
.site-footer a { text-decoration: none; color: var(--muted); } .site-footer a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
/* uses the individual `translate` property so card tilt (transform) and magnetic hover can compose with it */
.js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .6s var(--ease-out), translate .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal]:focus-within { opacity: 1; translate: none; transition-delay: 0s; }
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .about .tick-list { grid-template-columns: 1fr; } }
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .site-footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .site-footer nav ul { justify-content: flex-start; }
  .about__grid, .approach__grid, .stack__grid, .work-grid { grid-template-columns: 1fr; }
  .approach__intro { position: static; }
  .stack__intro { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .tick-list { grid-template-columns: 1fr; }
  .timeline { padding-left: 42px; }
  .timeline::before, .timeline::after { left: 11px; }
  .phase__node { left: -42px; width: 24px; height: 24px; top: 32px; }
  .phase__node::after { inset: 5px; }
  .phase__num { font-size: 48px; }
  .stack-list li { grid-template-columns: 1fr; gap: 4px; }
  .orbit { width: min(100%, 320px); }
  .orbit__chip > span { padding: 7px 12px; font-size: 13px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .ticker__track { animation: none; }
  .js .hero__content > * { animation: none; }
}

/* ---------- Phase meter (sticky, desktop) ---------- */
.phase-meter { margin-top: 44px; display: flex; align-items: center; gap: 0; }
.phase-meter__step { font-variant-numeric: lining-nums; position: relative; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font: 600 13px/1 var(--font-label); letter-spacing: .1em; color: var(--dim); transition: border-color .5s, color .5s, box-shadow .5s, background-color .5s; }
.phase-meter__step + .phase-meter__step { margin-left: -10px; }
.phase-meter__step.is-on { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.phase-meter__label { margin-left: 18px; color: var(--muted); font-size: 16px; min-width: 12ch; }
@media (max-width: 899px) { .phase-meter { display: none; } }

/* Landscape phones and zoomed desktops: keep the text clear of the rings on the right */
@media (max-width: 899px) and (min-aspect-ratio: 11/10) {
  .hero { align-items: center; padding-bottom: 72px; }
  .hero__content > * { max-width: 55%; }
  .hero__title { font-size: clamp(32px, 5.2vw, 52px); }
  .hero__fallback { width: 52vw; right: -4vw; top: 50%; }
  .hero__shade { background: radial-gradient(ellipse 70% 70% at 20% 55%, rgba(5,7,13,.6), transparent 75%), linear-gradient(180deg, transparent 70%, var(--bg)); }
}
/* Mobile menu: extra CTA item (header button is hidden on the narrowest phones) */
.nav__cta { display: none; }
@media (max-width: 899px) { .nav__cta { display: block; } .nav__cta a { color: var(--yellow) !important; } }

/* Raleway defaults to old-style figures ("o1"); force lining figures on every label that shows numbers.
   Higher specificity so it wins over later `font:` shorthands in module stylesheets. */
html body :is(.eyebrow, .phase-meter__step, .phase__num, .setpiece__num, .stk-group__num, .stk-sub__n, .badge, [class*="__num"], [class*="__count"]) { font-variant-numeric: lining-nums; }

/* Hero: crossfade from the static SVG rings to the live WebGL canvas */
.hero__canvas { opacity: 0; transition: opacity 1s var(--ease-out); }
.hero--gl .hero__canvas { opacity: 1; }

/* Pause-motion control (WCAG 2.2.2) */
.motion-toggle {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  font: 600 11px/1 var(--font-label); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); background: rgba(5, 7, 13, .55); border: 1px solid var(--line-strong); cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.motion-toggle:hover { color: var(--text); border-color: rgba(255,255,255,.4); }
.motion-toggle__icon { width: 10px; height: 10px; display: inline-grid; grid-auto-flow: column; gap: 3px; }
.motion-toggle__icon::before, .motion-toggle__icon::after { content: ""; width: 3px; background: currentColor; border-radius: 1px; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon { gap: 0; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::before { width: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; background: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__icon::after { display: none; }
html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
@media (max-width: 899px) { .motion-toggle { bottom: 18px; } }

/* Recent work: challenge / outcome lead-ins */
.work-card p:not([class]) strong { color: var(--text); font-weight: 500; }
.work .section-head .lede { margin-top: 18px; }
