/* =========================================================
   Marigold Digital — marigold.design
   Warm-dark single look (deliberately not theme-switching).
   ========================================================= */

@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --ink: #130c06;
  --ink-2: #1b120a;
  --ink-3: #24180e;
  --cream: #f7efe2;
  --paper: #fbf6ee;
  --sand: #ecdfc9;

  --marigold: #e8650f;
  --amber: #f5a524;
  --gold: #ffc65c;
  --rust: #b9470b;

  --text: #f7efe2;
  --muted: rgba(247, 239, 226, .66);
  --faint: rgba(247, 239, 226, .4);
  --line: rgba(247, 239, 226, .12);

  --d-text: #1d130b;
  --d-muted: rgba(29, 19, 11, .66);
  --d-line: rgba(29, 19, 11, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(18px, 4vw, 56px);
  --maxw: 1320px;
  --radius: clamp(22px, 2.6vw, 34px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(16px, 1.02vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.js.is-loading body { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--marigold); color: #1a0d04; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 400; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }

.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin: 0 0 1.4rem; }
.light .kicker { color: var(--rust); }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin: 0 0 1.6rem; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live 2.2s infinite; flex: none; display: inline-block; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }

.h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.5rem, 6.2vw, 6rem);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  text-wrap: balance;
}
.h2 em, .contact__title em, .next__title em {
  font-style: italic;
  font-weight: 340;
  color: var(--marigold);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.light .h2 em { color: var(--rust); }
/* SplitText line masks clip at the line box; pad so italic descenders (g, y) survive. */
.split-line { padding-bottom: .14em; margin-bottom: -.14em; }

.sec-head { max-width: 980px; margin-bottom: clamp(48px, 8vw, 110px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-lede { max-width: 560px; margin: 1.6rem auto 0; color: var(--d-muted); font-size: 1.08em; }

/* ---------- buttons ---------- */
.btn {
  --h: 58px;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--h);
  padding: 0 1.7em;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease);
  white-space: nowrap;
}
.btn > span { display: inline-flex; align-items: center; gap: .6em; position: relative; }
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform .6s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn--solid { background: var(--marigold); color: #1a0d04; }
.btn--solid::before { background: var(--cream); }
.btn--ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }
.btn--small { --h: 44px; padding: 0 1.25em; font-size: .88rem; }
.arrow { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6rem 0 0; padding: 0; }
.tags li { font-size: .8rem; font-weight: 600; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tags--sm li { font-size: .74rem; }

/* ---------- flower (built by main.js) ---------- */
.flower { width: 100%; height: 100%; overflow: visible; }
[data-flower] { display: block; }

/* ---------- preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--ink);
  clip-path: inset(0 0 0 0);
}
.reduced .preloader { display: none; }
.preloader__flower { width: min(34vw, 190px); aspect-ratio: 1; }
.preloader__word {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1;
  display: flex; flex-direction: column; gap: .3em;
}
.preloader__word small { font-family: var(--sans); font-size: .7rem; letter-spacing: .5em; text-transform: uppercase; color: var(--marigold); font-weight: 700; }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - .12em);
  font-family: var(--serif); font-weight: 300; font-size: clamp(4rem, 12vw, 10rem); line-height: .8;
  font-variant-numeric: tabular-nums; color: var(--cream);
}
.preloader__count::after { content: "%"; font-size: .3em; color: var(--marigold); vertical-align: top; margin-left: .1em; }

/* ---------- cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 7px; height: 7px; background: var(--amber); }
.cursor__ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(245, 165, 36, .55);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), background-color .3s, border-color .3s;
}
.cursor.is-hover .cursor__ring { width: 66px; height: 66px; background: rgba(232, 101, 15, .12); border-color: rgba(245, 165, 36, .9); }
.cursor.is-label .cursor__ring { width: 104px; height: 104px; background: var(--marigold); border-color: transparent; }
.cursor__label { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1a0d04; opacity: 0; transition: opacity .2s; text-align: center; }
.cursor.is-label .cursor__label { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
.has-cursor select { cursor: pointer; }

/* ---------- grain + progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none;
  opacity: .075; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 210; background: linear-gradient(90deg, var(--amber), var(--marigold), var(--rust)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 200; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: var(--gutter);
  transition: background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled .nav__inner { background: rgba(19, 12, 6, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__mark { width: 38px; height: 38px; transition: transform 1s var(--ease); }
.nav__logo:hover .nav__mark { transform: rotate(180deg); }
.nav__word { display: flex; flex-direction: column; line-height: 1; }
.nav__word b { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; }
.nav__word small { font-size: .56rem; font-weight: 700; letter-spacing: .5em; text-transform: uppercase; color: var(--marigold); margin-top: 5px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { position: relative; text-decoration: none; font-size: .9rem; font-weight: 600; padding: 8px 14px; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: var(--marigold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; cursor: pointer; }
.nav__burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger i:first-child { top: 19px; }
.nav__burger i:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] i:first-child { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { top: 22px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--ink-2);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mmenu[hidden] { display: none; }
.mmenu nav { display: flex; flex-direction: column; }
.mmenu nav a { font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.15; text-decoration: none; display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.mmenu nav a small { font-family: var(--mono); font-size: .8rem; color: var(--marigold); }
.mmenu__foot { color: var(--muted); margin: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--nav-h) + 40px) 120px;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 80% 50%, #2a1709 0%, transparent 60%),
    var(--ink);
}
.hero__petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero__glow {
  position: absolute; z-index: 0;
  width: min(120vw, 1500px); aspect-ratio: 1;
  right: -38vw; top: 50%; margin-top: calc(min(120vw, 1500px) / -2);
  background: radial-gradient(closest-side, rgba(245, 140, 30, .42), rgba(232, 101, 15, .16) 45%, rgba(232, 101, 15, 0) 72%);
  pointer-events: none;
}
.hero__rings { position: absolute; z-index: 1; right: calc(min(58vw, 88vh) / -2 + 12vw); top: 50%; width: 0; height: 0; pointer-events: none; }
.hero__rings i {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%; border: 1px dashed rgba(245, 165, 36, .18);
  transform: translate(-50%, -50%);
  animation: spin 80s linear infinite;
}
.hero__rings i:nth-child(1) { width: min(76vw, 1100px); height: min(76vw, 1100px); }
.hero__rings i:nth-child(2) { width: min(96vw, 1400px); height: min(96vw, 1400px); animation-direction: reverse; animation-duration: 120s; border-style: solid; border-color: rgba(245, 165, 36, .07); }
.hero__rings i:nth-child(3) { width: min(56vw, 800px); height: min(56vw, 800px); border-color: rgba(245, 165, 36, .12); animation-duration: 60s; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__flower {
  position: absolute; z-index: 2;
  width: min(58vw, 88vh);
  aspect-ratio: 1;
  right: -12vw; top: 50%;
  margin-top: calc(min(58vw, 88vh) / -2);
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .45)) drop-shadow(0 0 120px rgba(232, 101, 15, .25));
  will-change: transform;
}
.hero__flower-mouse, .hero__flower-spin { width: 100%; height: 100%; }

.hero__content { position: relative; z-index: 4; }
.hero__title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(3.1rem, 9.6vw, 10rem);
  line-height: .9;
  letter-spacing: -.035em;
  margin: 0 0 2rem;
  font-variation-settings: "opsz" 144, "SOFT" 20;
}
.line { display: block; overflow: hidden; padding: .02em .08em .1em 0; margin-bottom: -.1em; }
.line__in { display: inline-block; will-change: transform; }
.rotator { display: inline-grid; perspective: 800px; }
.rotator em {
  grid-area: 1 / 1;
  font-style: italic; font-weight: 320;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  background: linear-gradient(100deg, var(--gold) 0%, var(--amber) 30%, var(--marigold) 65%, var(--rust) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
  transform-origin: 50% 50% -.4em;
}
.rotator em:not(:first-child) { visibility: hidden; }
.hero__lede { max-width: 34em; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--muted); margin: 0 0 2.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__foot {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; }
.hero__clock b { color: var(--text); font-weight: 700; }
.scroll-cue { width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid var(--faint); position: relative; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--amber); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 5;
  padding-block: clamp(28px, 4vw, 48px);
  overflow: hidden;
  background: var(--ink);
  border-block: 1px solid var(--line);
}
.marquee__row { display: flex; white-space: nowrap; will-change: transform; }
.marquee__track { display: flex; align-items: center; flex: none; will-change: transform; }
.marquee__track span { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 5.4rem); font-weight: 350; letter-spacing: -.02em; padding-inline: .35em; line-height: 1.15; }
.marquee__track i { font-style: normal; color: var(--marigold); font-size: clamp(1.4rem, 3vw, 2.6rem); display: inline-block; animation: spin-plain 8s linear infinite; }
@keyframes spin-plain { to { transform: rotate(360deg); } }
.marquee__row--alt { margin-top: .2em; }
.marquee__row--alt span { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgba(247, 239, 226, .45); font-variation-settings: "SOFT" 100, "WONK" 1; }
.marquee__row--alt i { color: var(--amber); }

/* ---------- light sections ---------- */
.light {
  position: relative; z-index: 6;
  background: var(--cream); color: var(--d-text);
  border-radius: var(--radius);
  margin-inline: clamp(6px, 1vw, 14px);
}

/* ---------- about ---------- */
.about { padding-block: clamp(90px, 14vw, 200px) clamp(80px, 10vw, 150px); overflow: clip; }
.about__bloom { position: absolute; right: -14vw; top: -10vw; width: min(52vw, 700px); aspect-ratio: 1; opacity: .12; pointer-events: none; filter: saturate(.8); }
.about__bloom > div { width: 100%; height: 100%; }
.manifesto {
  position: relative;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.9rem, 4.3vw, 4.1rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 22em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  text-wrap: pretty;
}
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--d-line); padding-top: 36px; }
.fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.03em; color: var(--rust); font-variant-numeric: tabular-nums; }
.fact > span { display: block; margin-top: .6rem; color: var(--d-muted); font-weight: 600; font-size: .92rem; }

/* ---------- services ---------- */
.services { position: relative; padding-block: clamp(100px, 14vw, 190px) clamp(60px, 8vw, 120px); }
.stack { display: grid; gap: 7vh; }
.scard {
  --dim: 0;
  position: sticky;
  top: calc(var(--nav-h) + 20px + var(--i) * 20px);
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: center;
  gap: clamp(28px, 4vw, 72px);
  min-height: min(76vh, 640px);
  padding: clamp(24px, 3.6vw, 56px);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(165deg, #24170c, #160e07 70%);
  border: 1px solid var(--line);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .35);
  transform-origin: 50% 0;
  overflow: hidden;
}
.scard::after { content: ""; position: absolute; inset: 0; background: #0a0603; opacity: var(--dim); pointer-events: none; border-radius: inherit; }
.scard__num { font-family: var(--mono); font-size: .85rem; color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.scard__num::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6; }
.scard__title { font-family: var(--serif); font-weight: 380; font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1; letter-spacing: -.025em; margin: 1.2rem 0 1.2rem; font-variation-settings: "opsz" 144; }
.scard__text p { color: var(--muted); margin: 0; max-width: 30em; font-size: 1.04em; }

/* ---------- viz (shared) ---------- */
.viz {
  position: relative;
  height: 100%; min-height: 360px;
  border-radius: calc(var(--radius) - 10px);
  background: #0d0804;
  border: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(.72rem, .9vw, .86rem);
}
.viz * { animation-play-state: paused; }
.viz.is-playing * { animation-play-state: running; }

/* code */
.win-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .85em; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a2a1c; }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; }
.code, .term { padding: 18px 20px; line-height: 1.75; }
.term { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 14px; background: #1a110a; border: 1px solid var(--line); padding: 14px 18px; }
.tl { display: block; white-space: pre; overflow: hidden; width: 0; max-width: 100%; color: #e9dcc8; }
.viz-code.is-playing .tl { animation: type calc(var(--n, 10) * .026s) steps(var(--n, 10), end) var(--d, 0s) forwards; }
@keyframes type { to { width: calc(var(--n, 10) * 1ch + 1ch); } }
.c-k { color: #ff9e64; } .c-s { color: #f5c26b; } .c-f { color: #7dcfff; } .c-m { color: var(--faint); } .c-ok { color: #3ddc84; }

/* chat */
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.chat-av { width: 30px; height: 30px; }
.chat-head b { font-size: .95em; }
.chat-head small { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--faint); font-size: .8em; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; font-family: var(--sans); font-size: 1.05em; }
.chat > * { opacity: 0; transform: translateY(12px) scale(.97); }
.viz-chat.is-playing .chat > * { animation: pop .6s var(--ease) var(--d) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 18px; line-height: 1.45; }
.msg--me { align-self: flex-end; background: var(--marigold); color: #1a0d04; border-bottom-right-radius: 6px; font-weight: 600; }
.msg--bot { align-self: flex-start; background: #22170e; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 16px; border-radius: 18px; background: #22170e; }
.viz-chat.is-playing .typing { animation: pop .5s var(--ease) var(--d) forwards, vanish .3s ease 3.6s forwards; }
@keyframes vanish { to { opacity: 0; height: 0; padding-block: 0; margin-block: -5px; } }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.tool { align-self: flex-start; font-family: var(--mono); font-size: .78em; color: var(--amber); background: rgba(245, 165, 36, .08); border: 1px dashed rgba(245, 165, 36, .35); padding: 7px 12px; border-radius: 10px; }
.tool span { display: inline-block; animation: spin-plain 2s linear infinite; }
.chat-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-actions span { font-size: .82em; font-weight: 700; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(245, 165, 36, .4); color: var(--amber); }

/* design */
.viz-design { background: radial-gradient(circle at 70% 20%, #2a1a0d, #0d0804 70%); }
.artboard {
  position: absolute; left: 8%; top: 12%; width: 64%; height: 70%;
  background: var(--cream); border-radius: 14px; padding: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; gap: 10px;
}
.ab-nav { display: flex; gap: 6px; justify-content: flex-end; }
.ab-nav i { width: 14%; height: 6px; border-radius: 3px; background: #dccbb0; }
.ab-nav i:first-child { margin-right: auto; width: 18%; background: var(--marigold); }
.ab-hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; animation: swapcols 8s var(--ease) infinite; }
.ab-copy { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.ab-copy b { height: 10px; border-radius: 4px; background: #2a1b0e; }
.ab-copy b:nth-child(1) { width: 92%; height: 14px; } .ab-copy b:nth-child(2) { width: 70%; height: 14px; } .ab-copy b:nth-child(3) { width: 80%; height: 6px; background: #cdb999; }
.ab-btn { width: 44%; height: 16px; border-radius: 99px; background: var(--marigold); margin-top: 4px; animation: hue 8s infinite; }
.ab-img { border-radius: 10px; background: linear-gradient(135deg, #f5a524, #e8650f); display: grid; place-items: center; animation: hue 8s infinite; }
.ab-img span { width: 62%; aspect-ratio: 1; animation: spin-plain 14s linear infinite; }
.ab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 22%; }
.ab-cards i { border-radius: 8px; background: #eadbc2; animation: lift 4s var(--ease) infinite; }
.ab-cards i:nth-child(2) { animation-delay: .4s; } .ab-cards i:nth-child(3) { animation-delay: .8s; }
.ab-select { position: absolute; inset: 0; border: 1.5px solid #3b82f6; border-radius: 10px; pointer-events: none; animation: sel 8s var(--ease) infinite; }
.ab-select span { position: absolute; left: -1.5px; top: -20px; font-family: var(--sans); font-size: 10px; font-weight: 700; background: #3b82f6; color: #fff; padding: 2px 6px; border-radius: 4px 4px 4px 0; white-space: nowrap; }
@keyframes swapcols { 0%, 40% { grid-template-columns: 1.1fr 1fr; } 50%, 90% { grid-template-columns: 1fr 1.4fr; } 100% { grid-template-columns: 1.1fr 1fr; } }
@keyframes hue { 0%, 45% { filter: none; } 50%, 95% { filter: hue-rotate(-25deg) saturate(1.2); } 100% { filter: none; } }
@keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sel {
  0%, 12% { left: 52%; top: 18%; right: 3%; bottom: 30%; opacity: 1; }
  25%, 37% { left: 3%; top: 76%; right: 67%; bottom: 3%; opacity: 1; }
  50%, 62% { left: 3%; top: 18%; right: 50%; bottom: 30%; opacity: 1; }
  75%, 87% { left: 70%; top: 2%; right: 3%; bottom: 90%; opacity: 1; }
  100% { left: 52%; top: 18%; right: 3%; bottom: 30%; opacity: 1; }
}
.swatches { position: absolute; right: 7%; top: 14%; display: flex; flex-direction: column; gap: 10px; }
.swatches i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .12); animation: swatch 4s var(--ease) infinite; }
.swatches i:nth-child(2) { animation-delay: .25s; } .swatches i:nth-child(3) { animation-delay: .5s; } .swatches i:nth-child(4) { animation-delay: .75s; } .swatches i:nth-child(5) { animation-delay: 1s; }
@keyframes swatch { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } }
.type-spec { position: absolute; right: 7%; bottom: 10%; display: flex; align-items: baseline; gap: 10px; color: var(--muted); }
.type-spec b { font-family: var(--serif); font-size: 2.6em; font-weight: 400; color: var(--cream); font-style: italic; }
.pen { position: absolute; left: 14%; bottom: 5%; width: 44%; overflow: visible; }
.pen path { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 4s var(--ease) infinite; }
.pen circle { fill: var(--ink); stroke: var(--amber); stroke-width: 2; }
@keyframes draw { 0% { stroke-dashoffset: 300; } 50%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -300; } }
.fake-cursor { position: absolute; width: 22px; height: 22px; fill: #fff; stroke: #111; stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); animation: fcur 8s var(--ease) infinite; left: 0; top: 0; }
@keyframes fcur {
  0%, 12% { left: 58%; top: 30%; }
  25%, 37% { left: 18%; top: 72%; }
  50%, 62% { left: 26%; top: 40%; }
  75%, 87% { left: 64%; top: 16%; }
  100% { left: 58%; top: 30%; }
}

/* ops */
.viz-ops { padding: 20px; display: flex; flex-direction: column; gap: 14px; font-family: var(--sans); }
.ops-head { display: flex; align-items: center; gap: 12px; }
.ops-head b { font-size: 1.05em; }
.ops-head small { margin-left: auto; color: var(--faint); font-family: var(--mono); font-size: .8em; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: #3ddc84; position: relative; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #3ddc84; animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.ops-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ops-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #1a110a; border: 1px solid var(--line); font-weight: 600; }
.ops-list em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .78em; color: var(--faint); }
.led { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: blink 3s infinite; }
.ops-list li:nth-child(2) .led { animation-delay: .7s; } .ops-list li:nth-child(3) .led { animation-delay: 1.4s; }
.led--busy { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation-duration: .8s; }
@keyframes blink { 0%, 90%, 100% { opacity: 1; } 95% { opacity: .3; } }
.bar { display: inline-block; width: 90px; height: 6px; border-radius: 3px; background: rgba(247, 239, 226, .1); overflow: hidden; vertical-align: middle; }
.bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--marigold)); transform-origin: left; animation: fill 4s var(--ease) infinite; }
@keyframes fill { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.spark { width: 100%; height: 84px; margin-top: auto; }
.spark__line { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 420; stroke-dashoffset: 420; animation: spark 6s var(--ease) infinite; }
.spark__area { fill: url(#sparkfill); opacity: 0; animation: sparkarea 6s var(--ease) infinite; }
@keyframes spark { 0% { stroke-dashoffset: 420; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sparkarea { 0%, 20% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
.toast { position: absolute; right: 18px; top: 60px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: .9em; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); opacity: 0; animation: toast 7s var(--ease) infinite; }
.toast span { color: #1f9d55; }
@keyframes toast { 0%, 30% { opacity: 0; transform: translateY(-10px) scale(.95); } 36%, 70% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; transform: translateY(-10px) scale(.95); } }

/* ---------- work ---------- */
.work { position: relative; background: var(--ink); overflow: hidden; }
.work__track {
  display: flex; align-items: stretch;
  gap: clamp(18px, 2.4vw, 40px);
  padding: calc(var(--nav-h) + 30px) var(--gutter) 80px;
  width: max-content;
  will-change: transform;
}
.work__intro { flex: 0 0 min(460px, 84vw); display: flex; flex-direction: column; justify-content: center; padding-right: 2vw; }
.work__lede { color: var(--muted); margin: 1.6rem 0 0; max-width: 24em; }
.work__hint { display: flex; align-items: center; gap: 12px; margin: 2.4rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.work__hint-line { width: 56px; height: 1px; background: currentColor; }
.hint-touch { display: none; }
.wcard {
  position: relative;
  flex: 0 0 min(860px, 84vw);
  height: min(74vh, 660px);
  display: grid; grid-template-rows: 1fr auto;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.wcard__media {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 30% 20%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 70%),
    radial-gradient(60% 80% at 90% 100%, color-mix(in srgb, var(--tint) 18%, transparent), transparent 70%),
    #140d07;
  display: grid; place-items: center;
  padding: 28px;
}
.wcard__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding: 26px clamp(22px, 2.6vw, 36px) 30px; border-top: 1px solid var(--line); }
.wcard__body p { margin: 0; color: var(--muted); max-width: 40em; font-size: .95em; }
.wcard__meta { font-family: var(--mono); font-size: .74rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--amber) !important; margin-bottom: .6rem !important; }
.wcard__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.5rem); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .7rem; }
.wcard__body .tags { flex-direction: column; align-items: flex-end; margin: 0; flex: none; }

/* EHR mock */
.mock { will-change: transform; }
.mock--ehr {
  width: min(92%, 640px); aspect-ratio: 16 / 10;
  display: grid; grid-template-columns: 56px 1fr;
  border-radius: 16px; overflow: hidden;
  background: #fbf6ee; color: #1d130b;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06);
  font-family: var(--sans); font-size: clamp(.62rem, .85vw, .82rem);
  transform: perspective(1400px) rotateX(8deg) rotateY(-10deg);
}
.ehr-side { background: #1d130b; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; }
.ehr-logo { width: 28px; height: 28px; margin-bottom: 8px; }
.ehr-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(247, 239, 226, .12); }
.ehr-side i.on { background: var(--marigold); }
.ehr-main { padding: 14px 16px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; min-width: 0; }
.ehr-top { display: flex; align-items: center; justify-content: space-between; }
.ehr-top b { font-family: var(--serif); font-size: 1.5em; font-weight: 500; }
.ehr-pill { background: #dff5e7; color: #17663a; font-weight: 700; border-radius: 99px; padding: 3px 10px; font-size: .85em; }
.ehr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ehr-kpis div { background: #fff; border: 1px solid #eadfcd; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.ehr-kpis small { color: #8a7560; font-weight: 600; }
.sk { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #eadfcd, #f6eee1, #eadfcd); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; width: 70%; }
.sk--s { width: 30%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ehr-chart { display: flex; align-items: flex-end; gap: 6%; padding: 10px 12px 0; background: #fff; border: 1px solid #eadfcd; border-radius: 10px; min-height: 60px; }
.ehr-chart i { flex: 1; height: calc(var(--h) * 100%); border-radius: 5px 5px 0 0; background: linear-gradient(var(--amber), var(--marigold)); transform-origin: bottom; animation: grow 3.2s var(--ease) infinite alternate; }
.ehr-chart i:nth-child(2n) { animation-delay: .3s; } .ehr-chart i:nth-child(3n) { animation-delay: .6s; }
@keyframes grow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.ehr-rows { display: grid; gap: 6px; }
.ehr-rows p { margin: 0; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #eadfcd; border-radius: 8px; padding: 7px 10px; }
.ehr-rows i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ehr-rows i.ok { background: #2fbf71; } .ehr-rows i.warn { background: var(--amber); }
.ehr-rows .sk { width: 40%; } .ehr-rows .sk--s { width: 16%; margin-left: auto; }

/* Agent Valley */
.wcard__media--valley { padding: 0; }
.valley { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; image-rendering: crisp-edges; }

/* Experience */
.wcard__media--xp { place-items: stretch; padding: clamp(24px, 3vw, 44px); }
.xp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.xp li { display: grid; grid-template-columns: 9.5em 1fr auto; align-items: baseline; gap: 16px; padding: clamp(14px, 2vh, 24px) 0; border-bottom: 1px solid var(--line); }
.xp li:first-child { border-top: 1px solid var(--line); }
.xp time { font-family: var(--mono); font-size: .8rem; color: var(--amber); }
.xp b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 3rem); letter-spacing: -.02em; line-height: 1.05; }
.xp span { color: var(--muted); font-size: .9rem; text-align: right; }

/* Next card */
.wcard--next {
  flex-basis: min(560px, 84vw);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(28px, 3vw, 44px);
  background: radial-gradient(90% 70% at 80% 10%, rgba(232, 101, 15, .35), transparent 70%), var(--ink-3);
  transition: border-color .4s;
}
.wcard--next:hover { border-color: rgba(245, 165, 36, .5); }
.next__flower { position: absolute; right: -18%; top: -14%; width: 78%; aspect-ratio: 1; transition: transform 1.4s var(--ease); }
.wcard--next:hover .next__flower { transform: rotate(90deg) scale(1.06); }
.next__title { position: relative; font-family: var(--serif); font-weight: 380; font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 2rem; }
.work__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.work__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--marigold)); transform-origin: left; transform: scaleX(0); }

/* ---------- process ---------- */
.process { padding-block: clamp(100px, 13vw, 180px); }
.steps { position: relative; display: grid; gap: clamp(60px, 10vh, 120px); padding-block: 20px; max-width: 1100px; margin-inline: auto; }
.steps__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--d-line); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(var(--amber), var(--marigold), var(--rust)); transform-origin: 50% 0; transform: scaleY(0); }
.no-anim .steps__fill { transform: none; }
.step { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; }
.step__node { grid-column: 2; grid-row: 1; width: 104px; height: 104px; margin-inline: auto; border-radius: 50%; background: var(--cream); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--cream); z-index: 1; }
.step__node span { width: 86px; height: 86px; }
.js:not(.reduced) .step__node span { transform: scale(.28) rotate(-120deg); filter: grayscale(1) opacity(.45); transition: transform 1.2s var(--ease), filter .8s; }
.js:not(.reduced) .step.is-on .step__node span { transform: none; filter: none; }
.step__body { grid-column: 3; grid-row: 1; padding-left: clamp(16px, 3vw, 44px); }
.step:nth-child(odd) .step__body { grid-column: 1; text-align: right; padding-left: 0; padding-right: clamp(16px, 3vw, 44px); }
.js:not(.reduced) .step__body { opacity: .25; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js:not(.reduced) .step.is-on .step__body { opacity: 1; transform: none; }
.step__num { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; margin: .6rem 0 .8rem; }
.step p { margin: 0; color: var(--d-muted); max-width: 26em; display: inline-block; }

/* ---------- why / bento ---------- */
.why { padding-block: clamp(100px, 13vw, 180px) clamp(80px, 10vw, 140px); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; grid-column: span 2;
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  min-height: 250px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .4s, transform .6s var(--ease);
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(232, 101, 15, .2), transparent 60%); opacity: 0; transition: opacity .4s; }
.tile:hover { border-color: rgba(245, 165, 36, .35); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-family: var(--serif); font-weight: 420; font-size: clamp(1.4rem, 2vw, 1.85rem); letter-spacing: -.015em; line-height: 1.1; margin: 0 0 .6rem; }
.tile p { margin: 0; color: var(--muted); font-size: .95em; }
.tile p b { color: var(--amber); }
.tile__icon { position: absolute; top: clamp(22px, 2.4vw, 32px); left: clamp(24px, 2.6vw, 36px); font-size: 1.6rem; color: var(--marigold); line-height: 1; }
.tile--big { grid-column: span 4; grid-row: span 2; justify-content: space-between; min-height: 540px; background: radial-gradient(80% 70% at 70% 30%, rgba(232, 101, 15, .18), transparent 70%), var(--ink-2); }
.tile--big h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.tile__text { max-width: 30em; }
.orbit { position: relative; flex: 1; min-height: 280px; display: grid; place-items: center; }
.orbit__core { width: 120px; height: 120px; animation: spin-plain 30s linear infinite; }
.orbit__ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(245, 165, 36, .28); animation: orbit 20s linear infinite; }
.orbit__ring--1 { width: 250px; height: 250px; margin: -125px 0 0 -125px; }
.orbit__ring--2 { width: 400px; height: 400px; margin: -200px 0 0 -200px; animation-duration: 32s; animation-direction: reverse; }
.orbit__ring span {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -50%);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  white-space: nowrap;
  /* counter-spin at the ring's speed so labels stay upright */
  animation: orbit-label 20s linear infinite;
}
.orbit__ring span:nth-child(2) { top: 100%; }
.orbit__ring--2 span { background: var(--marigold); animation: orbit-label-rev 32s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-label { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes orbit-label-rev { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: clip; isolation: isolate;
  padding-block: clamp(110px, 14vw, 200px) clamp(90px, 10vw, 150px);
  background: radial-gradient(70% 60% at 100% 100%, rgba(232, 101, 15, .22), transparent 70%), var(--ink);
}
.contact__bloom { position: absolute; z-index: -1; right: -16vw; bottom: -22vw; width: min(70vw, 980px); aspect-ratio: 1; opacity: .9; pointer-events: none; }
.contact__bloom-mouse, .contact__bloom-spin { width: 100%; height: 100%; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact__title { font-family: var(--serif); font-weight: 360; font-size: clamp(3rem, 7.4vw, 7.4rem); line-height: .92; letter-spacing: -.035em; margin: 0 0 2rem; font-variation-settings: "opsz" 144; }
.contact__lede { color: var(--muted); max-width: 30em; margin: 0 0 2.4rem; font-size: 1.08em; }
.contact__mail { display: inline-flex; align-items: center; gap: .4em; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.2rem); text-decoration: none; border-bottom: 1.5px solid rgba(245, 165, 36, .5); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.contact__mail:hover { color: var(--amber); border-color: var(--amber); }
.contact__mail .arrow { width: .9em; height: .9em; }
.contact__mail:hover .arrow { transform: translate(3px, -3px); }

.form {
  position: relative;
  padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius);
  background: rgba(27, 18, 10, .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: grid; gap: 22px;
}
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--muted); transition: all .3s var(--ease); user-select: none; }
.chips label:hover span { border-color: rgba(245, 165, 36, .5); color: var(--text); }
.chips input:checked + span { background: var(--marigold); border-color: var(--marigold); color: #1a0d04; }
.chips input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--text); font: inherit; font-size: 1rem;
  padding: 26px 0 10px;
  outline: none; resize: vertical;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 110px; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 34px, calc(100% - 7px) 34px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--ink-2); color: var(--text); }
.field label { position: absolute; left: 0; top: 26px; color: var(--muted); pointer-events: none; transition: all .35s var(--ease); font-size: 1rem; }
.field label small { color: var(--faint); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { top: 0; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--amber), var(--marigold)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ff6b5a; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form__status { margin: 0; font-size: .85rem; color: var(--faint); flex: 1; min-width: 180px; }
.form__status.is-error { color: #ff8a7a; }
.form__status.is-ok { color: #6ee7a8; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--ink-2); border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--muted); margin: 1.2rem 0 0; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a { text-decoration: none; color: var(--muted); transition: color .3s; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--amber); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.footer__top-link { margin-top: 12px; color: var(--text) !important; font-weight: 700; }
.footer__word {
  display: flex; justify-content: center;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(5rem, 23.5vw, 26rem);
  line-height: .78; letter-spacing: -.05em;
  margin-top: clamp(40px, 6vw, 90px);
  overflow: hidden;
  padding-bottom: .04em;
  user-select: none;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.footer__word span {
  display: inline-block;
  background: linear-gradient(180deg, var(--amber) 0%, var(--marigold) 45%, rgba(185, 71, 11, .15) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: .84rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--big { grid-column: span 1; grid-row: auto; }
  .tile--big { grid-column: span 2; min-height: 480px; }
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

@media (max-width: 899px) {
  :root { --nav-h: 68px; }
  .nav__cta { display: none; }
  .hero { justify-content: flex-end; padding-bottom: 110px; }
  .hero__flower { width: min(100vw, 560px); margin-top: 0; top: 1vh; right: -38vw; opacity: .95; }
  /* soft scrim so the copy stays readable where it crosses the flower */
  .hero__content::before { content: ""; position: absolute; inset: -40px -10px -20px; z-index: -1; pointer-events: none; background: radial-gradient(120% 75% at 25% 55%, rgba(19, 12, 6, .82), rgba(19, 12, 6, .5) 55%, transparent 80%); }
  .hero__rings { right: 10vw; top: 30vh; }
  .hero__glow { right: -60vw; top: 28vh; }
  .hero__lede { max-width: 30em; }
  .hero__clock { display: none; }

  .scard { grid-template-columns: 1fr; min-height: 0; top: calc(var(--nav-h) + 12px + var(--i) * 12px); gap: 26px; }
  .viz { min-height: 330px; }

  /* horizontal gallery becomes a native swipe carousel */
  .work { overflow: visible; }
  .work__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-top: 90px; padding-bottom: 90px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .work__track > * { scroll-snap-align: center; }
  .work__intro { scroll-snap-align: start; }
  .wcard { height: auto; min-height: 560px; }
  .wcard__media { min-height: 280px; }
  .wcard__body { flex-direction: column; align-items: flex-start; }
  .wcard__body .tags { flex-direction: row; align-items: flex-start; }
  .work__bar { display: none; }
  .hint-desktop { display: none; } .hint-touch { display: inline; }
  .xp li { grid-template-columns: 1fr auto; }
  .xp time { grid-column: 1 / -1; }

  .steps__line { left: 52px; }
  .step, .step:nth-child(odd) { grid-template-columns: 104px 1fr; }
  .step__node { grid-column: 1; width: 84px; height: 84px; }
  .step__node span { width: 70px; height: 70px; }
  .step__body, .step:nth-child(odd) .step__body { grid-column: 2; text-align: left; padding: 0 0 0 16px; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__bloom { width: 120vw; right: -50vw; bottom: auto; top: -10vw; opacity: .35; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--big { grid-column: span 1; min-height: 440px; }
  .orbit__ring--2 { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .orbit__ring--1 { width: 190px; height: 190px; margin: -95px 0 0 -95px; }
  .orbit__core { width: 90px; height: 90px; }
  .form__row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .viz { font-size: .7rem; }
  .artboard { width: 72%; left: 6%; }
  .swatches { right: 5%; }
  .swatches i { width: 26px; height: 26px; }
  .ops-list em { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
  .tl { width: auto !important; }
  .chat > * { opacity: 1 !important; transform: none !important; }
  .typing { display: none; }
  .toast { opacity: 1; }
  .spark__line { stroke-dashoffset: 0; }
  .spark__area { opacity: 1; }
  .steps__fill { transform: none; }
}
