/* ==========================================================
   Rock Frederic — personal portfolio
   Ink + F09 indigo, with one warm amber accent for the human side.
   ========================================================== */

:root {
  --ink: #070914;
  --ink-2: #0b0e1d;
  --card: #0e1224;
  --card-2: #131835;
  --line: rgba(160, 170, 255, .14);
  --line-strong: rgba(160, 170, 255, .30);
  --text: #eef0fb;
  --text-2: #b6bbd4;
  --muted: #878dab;

  --indigo: #474fb6;      /* F09 brand */
  --indigo-2: #6f79ff;
  --indigo-3: #a9b0ff;
  --amber: #ffa24a;
  --amber-ink: #1c1003;

  --paper: #f2f3fa;
  --paper-line: #d7dcec;
  --paper-ink: #0c0f1f;
  --paper-muted: #50556d;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 5vw, 56px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-color: #2a2f55 var(--ink);
}

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

/* Fine film grain so the dark areas don't feel flat. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber); color: var(--amber-ink); }

a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sec { position: relative; padding-block: clamp(88px, 12vw, 172px); }
[id] { scroll-margin-top: 84px; }
.muted { color: var(--muted); }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--amber); color: var(--amber-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

.i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--indigo-3);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }

.h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.8rem, 7.2vw, 6rem); line-height: .92; letter-spacing: -.012em;
  margin-top: .32em; text-wrap: balance;
}
.h2--sm { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.h2 em, .contact__title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -.01em; color: var(--amber);
}

.sec__head { max-width: 900px; }
.sec__sub { color: var(--text-2); font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 56ch; margin-top: 1.3em; }
.sec__head--split {
  max-width: none; display: grid; gap: clamp(24px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end;
}
.sec__head--split .sec__sub { margin: 0; }

.pulse {
  position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { to { transform: scale(3.4); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--text); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .4s;
}
.btn .i { transition: transform .45s var(--ease); }
.btn:hover .i { transform: translate(3px, -3px); }
.btn--primary { --bg: var(--amber); --fg: var(--amber-ink); box-shadow: 0 0 0 0 rgba(255, 162, 74, .0); }
.btn--primary:hover { box-shadow: 0 12px 44px -10px rgba(255, 162, 74, .55); }
.btn--ghost { --bg: rgba(255, 255, 255, .03); --fg: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { --bg: var(--text); --fg: var(--ink); border-color: var(--text); }
.btn--sm { padding: .7em 1.15em; font-size: .9rem; }
.btn--lg { padding: 1.15em 1.9em; font-size: 1.06rem; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--indigo-2), var(--amber));
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: transform .55s var(--ease), background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: rgba(7, 9, 20, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  position: relative; overflow: hidden;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--indigo); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--indigo-2);
  transition: transform .6s var(--ease), box-shadow .4s;
}
.brand__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand:hover .brand__mark { transform: scale(1.08); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--amber); }
.brand__name { font-weight: 600; letter-spacing: -.01em; }

.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav__links a {
  position: relative; text-decoration: none; font-size: .93rem; color: var(--text-2);
  padding: 6px 0; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav__toggle {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.menu-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 40px;
  background: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu nav { display: grid; gap: 4px; }
.menu a {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 12vw, 4.6rem); line-height: 1.06; text-decoration: none;
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s;
}
.menu-open .menu a { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .05s); }
.menu a:hover { color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 112px 0 clamp(26px, 4vw, 44px);
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  /* keep the copy readable over the field, and fade into the page */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(110% 80% at 0% 100%, rgba(7, 9, 20, .9) 0%, rgba(7, 9, 20, .5) 45%, transparent 72%),
    linear-gradient(to bottom, transparent 72%, var(--ink) 100%);
}

.hero__status {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(14, 18, 36, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__place { display: inline-flex; gap: 10px; }
.hero__sep { opacity: .4; }

.hero__title { position: relative; margin-top: clamp(18px, 3vw, 34px); }
.hero__name {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(4.6rem, min(19vw, 27vh), 18rem);
  line-height: .8; letter-spacing: -.012em;
}
.hero__name .line { display: block; overflow: hidden; padding-top: .06em; margin-top: -.03em; }
.hero__name .ch {
  display: inline-block; will-change: transform;
  background: linear-gradient(180deg, #fff 35%, #bfc5ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .hero__name .ch { transform: translateY(110%); }
.js.is-ready .hero__name .ch {
  transform: none;
  transition: transform 1.15s var(--ease) calc(.1s + var(--i) * .05s);
}
.js.is-ready .hero__name .line--2 .ch { transition-delay: calc(.26s + var(--i) * .05s); }

.hero__tag {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 3.5vw, 3.2rem); line-height: 1.06;
  letter-spacing: -.01em; margin-top: 1.1rem;
}
.rotator { display: inline-grid; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; }
.rotator > span {
  grid-area: 1 / 1; font-style: italic; color: var(--amber); white-space: nowrap;
  opacity: 0; transform: translateY(105%);
  transition: transform .8s var(--ease), opacity .5s;
}
.rotator > span.is-on { opacity: 1; transform: none; }
.rotator > span.is-off { opacity: 0; transform: translateY(-105%); }

.hero__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end;
  margin-top: clamp(22px, 3.2vw, 42px);
}
.hero__lede { max-width: 56ch; color: var(--text-2); font-size: clamp(1rem, 1.25vw, 1.14rem); }
.hero__lede a { color: var(--text); text-decoration-color: var(--indigo-2); text-underline-offset: 4px; }
.hero__lede a:hover { text-decoration-color: var(--amber); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(26px, 3.6vw, 48px); border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1;
  min-width: 1.1em; font-variant-numeric: tabular-nums;
}
.stat span { font-size: .84rem; line-height: 1.35; color: var(--muted); max-width: 20ch; }

.js [data-hero] { opacity: 0; transform: translateY(18px); }
.js.is-ready [data-hero] {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease) var(--hd, .6s), transform 1s var(--ease) var(--hd, .6s);
}

@media (min-width: 980px) {
  .hero__tag { position: absolute; right: 0; top: clamp(4px, 1.6vw, 26px); width: min(40%, 480px); margin: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex; overflow: hidden; user-select: none;
  border-block: 1px solid var(--line); padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; flex: none; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 1px rgba(169, 176, 255, .55);
  transition: color .4s;
}
.marquee__track span:hover { color: var(--text); }
.marquee__track i {
  width: 10px; height: 10px; margin-inline: clamp(22px, 3vw, 44px); flex: none;
  background: var(--amber); transform: rotate(45deg); border-radius: 2px;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- About ---------- */
.about__grid {
  display: grid; gap: clamp(36px, 6vw, 96px); align-items: start;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .78fr);
}
.statement {
  font-family: var(--font-serif); font-size: clamp(1.95rem, 3.9vw, 3.5rem); line-height: 1.12;
  letter-spacing: -.012em; margin-top: .7em; text-wrap: pretty;
}
.statement em { color: var(--amber); }
.statement .w { transition: opacity .3s linear; }
.js .statement .w { opacity: .16; }

.about__copy { display: grid; gap: 1.1em; max-width: 62ch; margin-top: clamp(28px, 4vw, 52px); color: var(--text-2); font-size: 1.06rem; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: clamp(30px, 4vw, 54px); }
.facts > div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt, .contact__grid dt {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.facts dd { margin-top: .35em; font-size: 1.04rem; }

.idcard {
  position: sticky; top: 104px;
  padding: 12px; border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-2), var(--ink-2) 70%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  transform-style: preserve-3d; will-change: transform;
  transition: transform .6s var(--ease);
}
.idcard__photo {
  position: relative; overflow: hidden; display: grid; place-items: center;
  aspect-ratio: 4 / 5; border-radius: 16px;
  background: #0a0d1c;
}
.idcard__halo {
  position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, rgba(71, 79, 182, .0), rgba(111, 121, 255, .75), rgba(255, 162, 74, .5), rgba(71, 79, 182, .0) 70%);
  filter: blur(46px); animation: spin 14s linear infinite;
}
.idcard__mono {
  position: relative;
  font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.03em;
  font-size: clamp(6.5rem, 13vw, 10.5rem);
  color: rgba(255, 255, 255, .06); -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7);
}
.idcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.idcard__badge {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(7, 9, 20, .68); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.idcard__meta { display: grid; padding: 8px 10px 4px; }
.idcard__meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: .92rem; }
.idcard__meta > div + div { border-top: 1px solid var(--line); }
.idcard__meta span { color: var(--muted); }
.idcard__meta b { font-weight: 500; font-variant-numeric: tabular-nums; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Story ---------- */
@property --ps { syntax: "<number>"; inherits: true; initial-value: 1; }

.story { padding-top: 0; }
.chapter {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 84px); align-items: center;
  margin-top: clamp(56px, 8vw, 120px);
}
.chapter--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.chapter--flip .photo { order: 2; }

.photo { position: relative; margin: 0; }
.photo__in {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 22px;
  background: var(--card); box-shadow: 0 40px 80px -46px rgba(0, 0, 0, .9);
}
.photo__in::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
/* The photo is a little taller than its frame, so it can drift as you scroll. */
.photo img {
  position: absolute; left: 0; top: 50%; width: 100%; height: auto; max-width: none;
  transform: translateY(calc(-50% + var(--py, 0px))) scale(var(--ps, 1));
  will-change: transform;
}
.photo figcaption {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  padding: 8px 13px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  background: rgba(7, 9, 20, .66); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* reveal: the frame wipes open while the photo settles back */
.js .photo .photo__in { clip-path: inset(0 0 100% 0 round 22px); transition: clip-path 1.4s var(--ease) .1s; }
.js .photo img { --ps: 1.16; transition: --ps 1.9s var(--ease) .1s; }
.js .photo figcaption { opacity: 0; transition: opacity .8s ease 1s; }
.js .photo.is-in .photo__in { clip-path: inset(0 0 0 0 round 22px); }
.js .photo.is-in img { --ps: 1; }
.js .photo.is-in figcaption { opacity: 1; }

.chapter__no {
  display: flex; align-items: center; gap: .9em;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
}
.chapter__no span { color: var(--muted); }
.chapter__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.3rem, 4.4vw, 3.9rem); line-height: .95; letter-spacing: -.008em;
  margin: .5em 0 .45em; text-wrap: balance;
}
.chapter__title--quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none;
  font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.01em; color: var(--amber);
}
.chapter__text p:not(.chapter__no) { color: var(--text-2); font-size: 1.08rem; max-width: 46ch; }

.photo--wide { margin-top: clamp(56px, 8vw, 120px); }
.photo--wide .photo__in { aspect-ratio: 16 / 9; border-radius: 28px; }
.js .photo--wide .photo__in { clip-path: inset(0 0 100% 0 round 28px); }
.js .photo--wide.is-in .photo__in { clip-path: inset(0 0 0 0 round 28px); }
.photo--wide .photo__in::before {
  content: ""; position: absolute; inset: 45% 0 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(7, 9, 20, .88), transparent);
}
.photo--wide figcaption {
  left: clamp(18px, 3vw, 40px); bottom: clamp(16px, 2.6vw, 34px); z-index: 2;
  display: grid; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.photo--wide figcaption b {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em;
  font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; color: #fff;
}
.photo--wide figcaption span { color: var(--text-2); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 6vw, 76px); }
.svc, .proj {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 26px; background: var(--card);
  transition: border-color .4s, transform .7s var(--ease), box-shadow .5s;
}
.svc::before, .proj::before {
  /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(111, 121, 255, .24), transparent 62%);
  opacity: 0; transition: opacity .45s;
}
.svc { padding: clamp(24px, 3vw, 40px); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc__icon {
  width: 56px; height: 56px; color: var(--indigo-3);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: color .4s;
}
.svc__icon path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc__arrow {
  width: 44px; height: 44px; padding: 12px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text-2);
  transition: transform .6s var(--ease), background .3s, color .3s, border-color .3s;
}
.svc h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -.005em;
  margin: clamp(28px, 4vw, 56px) 0 .45em;
}
.svc p { color: var(--text-2); max-width: 46ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.7em; }
.tags li {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em;
  padding: .5em .85em; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2);
  transition: border-color .3s, color .3s, background .3s;
}

@media (hover: hover) {
  .svc:hover, .proj:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(60, 70, 200, .7); }
  .svc:hover::before, .proj:hover::before { opacity: 1; }
  .svc:hover .svc__icon { color: var(--amber); }
  .svc:hover .svc__icon path { animation: draw 1s var(--ease) both; }
  .svc:hover .svc__arrow { background: var(--text); color: var(--ink); border-color: var(--text); transform: rotate(45deg); }
  .tags--kit li:hover { border-color: var(--amber); color: var(--text); }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Approach (light sheet) ---------- */
.paper {
  background: var(--paper); color: var(--paper-ink);
  border-radius: clamp(26px, 4vw, 52px);
  margin-inline: clamp(0px, 1.2vw, 18px);
}
.paper .eyebrow { color: var(--indigo); }
.paper .h2 em { color: var(--indigo); }
.paper .sec__sub { color: var(--paper-muted); }
.paper ::selection { background: var(--indigo); color: #fff; }
.paper :focus-visible { outline-color: var(--indigo); }

.flow { position: relative; margin-top: clamp(48px, 7vw, 96px); --p: 0; }
.flow ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.flow__track {
  position: absolute; left: 10%; right: 10%; top: 31px; height: 2px;
  background: var(--paper-line); border-radius: 2px; overflow: hidden;
}
.flow__track i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--indigo-2) 70%, var(--amber));
  transform: scaleX(var(--p)); transform-origin: 0 50%;
}
.flow__node { display: grid; justify-items: center; gap: 16px; text-align: center; }
.flow__dot {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--paper-line); color: #9aa0bb; font-size: 1.45rem;
  transition: background .5s, border-color .5s, color .5s, transform .7s var(--ease), box-shadow .6s;
}
.flow__dot .i { stroke-width: 1.7; }
.flow__label {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.15rem, 2vw, 1.7rem); line-height: 1.05; color: #a3a8c0;
  transition: color .5s;
}
.flow__node.is-on .flow__dot {
  background: var(--indigo); border-color: var(--indigo); color: #fff; transform: scale(1.08);
  box-shadow: 0 14px 30px -12px rgba(71, 79, 182, .8);
}
.flow__node.is-on .flow__label { color: var(--paper-ink); }
.flow__node--goal.is-on .flow__dot {
  background: var(--amber); border-color: var(--amber); color: var(--amber-ink);
  box-shadow: 0 14px 34px -10px rgba(255, 162, 74, .9);
}

.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: clamp(48px, 7vw, 96px); counter-reset: step;
}
.step {
  position: relative; padding: clamp(22px, 2.4vw, 30px); border-radius: 20px;
  background: #fff; border: 1px solid var(--paper-line);
  transition: background .55s, color .55s, border-color .55s, transform .7s var(--ease), box-shadow .6s;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; color: var(--indigo);
  transition: color .5s;
}
.step h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; margin: .7em 0 .35em;
}
.step p { color: var(--paper-muted); font-size: .97rem; transition: color .5s; }
.step.is-active {
  background: var(--paper-ink); color: #fff; border-color: var(--paper-ink);
  transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(12, 15, 31, .7);
}
.step.is-active::before { color: var(--amber); }
.step.is-active p { color: #c3c8de; }

/* ---------- Building ---------- */
.build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(40px, 6vw, 76px); }
.proj { display: flex; flex-direction: column; }
.proj--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.proj--wide > * { flex: 1 1 50%; }

.proj__viz {
  position: relative; overflow: hidden; min-height: 280px; aspect-ratio: 16 / 10;
  background: radial-gradient(90% 110% at 50% 0%, rgba(71, 79, 182, .38), transparent 72%), var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.proj--wide .proj__viz { aspect-ratio: auto; border-bottom: 0; border-left: 1px solid var(--line); }
.proj--viz-first .proj__viz { border-left: 0; border-right: 1px solid var(--line); min-height: 340px; }
.proj__body { padding: clamp(24px, 2.8vw, 38px); display: flex; flex-direction: column; align-items: flex-start; }
.proj--wide .proj__body { justify-content: center; }
.proj__kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.live {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px;
  color: #86efac; border: 1px solid rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08);
}
.proj h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: .95; margin: .35em 0 .3em;
}
.proj p:not(.proj__kicker) { color: var(--text-2); max-width: 50ch; }
.proj__link {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 1.5em; font-weight: 600;
  padding-bottom: 3px; border-bottom: 1px solid var(--line-strong);
  transition: border-color .3s, color .3s;
}
.proj__link .i { transition: transform .45s var(--ease); }
@media (hover: hover) {
  .proj:hover .proj__link { border-color: var(--amber); color: var(--amber); }
  .proj:hover .proj__link .i { transform: translate(3px, -3px); }
}

/* project cards under the two feature cards */
.works { margin-top: clamp(56px, 8vw, 110px); }
.works__head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px 40px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.works__title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.005em;
}
.works__note { color: var(--muted); font-size: .98rem; max-width: 46ch; }
.works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.works__grid > li { display: flex; }

.pcard {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; width: 100%;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  color: inherit; text-decoration: none;
  transition: border-color .4s, transform .7s var(--ease), box-shadow .5s;
}
.pcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(111, 121, 255, .22), transparent 62%);
  opacity: 0; transition: opacity .45s;
}
.pcard__top { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.pcard__status {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--text-2);
}
.pcard__status--live { color: #86efac; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.pcard__status--dev { color: var(--amber); border-color: rgba(255, 162, 74, .35); background: rgba(255, 162, 74, .07); }
.pcard__status--internal { color: var(--indigo-3); border-color: rgba(169, 176, 255, .35); background: rgba(111, 121, 255, .1); }
.pcard__status--dev::before, .pcard__status--internal::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.pcard__arrow {
  width: 38px; height: 38px; padding: 10px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text-2);
  transition: transform .6s var(--ease), background .3s, color .3s, border-color .3s;
}
.pcard h4 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.02; letter-spacing: -.004em;
  margin: 22px 0 .45em; text-wrap: balance;
}
.pcard p { color: var(--text-2); font-size: .97rem; }
.pcard .tags { margin-top: auto; padding-top: 1.5em; }
@media (hover: hover) {
  .pcard:hover { border-color: var(--line-strong); }
  .pcard:hover::before { opacity: 1; }
  a.pcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(60, 70, 200, .7); }
  a.pcard:hover .pcard__arrow { background: var(--text); color: var(--ink); border-color: var(--text); transform: rotate(45deg); }
}

/* orbit: four practices around one hub */
.orbit { position: absolute; inset: 0; display: grid; place-items: center; --d: 220px; }
.orbit__ring {
  position: absolute; width: var(--d); height: var(--d); border-radius: 50%;
  border: 1px dashed rgba(169, 176, 255, .4); animation: spin 44s linear infinite;
}
.orbit__ring--outer { width: calc(var(--d) * 1.75); height: calc(var(--d) * 1.75); border-style: solid; border-color: rgba(169, 176, 255, .1); animation: none; }
.orbit__chip {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--d) / -2)) rotate(calc(var(--a) * -1));
}
.orbit__chip b {
  display: block; padding: 7px 13px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  background: #161b3d; border: 1px solid var(--line-strong); color: var(--text);
  animation: spin 44s linear infinite reverse;
}
.orbit__hub {
  position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--indigo); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: .02em;
  box-shadow: 0 0 0 10px rgba(71, 79, 182, .2), 0 0 70px 6px rgba(111, 121, 255, .5);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe {
  50% { box-shadow: 0 0 0 18px rgba(71, 79, 182, .1), 0 0 90px 14px rgba(111, 121, 255, .6); }
}

/* chart: history, then a prediction. Not used on the page right now; kept for a card that may return. */
.chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart path { fill: none; vector-effect: non-scaling-stroke; }
.chart .chart__area, .chart .chart__cone { stroke: none; }
.chart .chart__area { fill: url(#g-area); }
.chart .chart__cone { fill: url(#g-cone); animation: cone 3.6s ease-in-out infinite; }
.chart__grid path { stroke: rgba(169, 176, 255, .1); stroke-width: 1; }
.chart__line { stroke: var(--indigo-3); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart__pred { stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 9; animation: march 1.4s linear infinite; }
.chart__now { stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 3 5; }
.js [data-reveal] .chart__line { stroke-dashoffset: 1; }
.js .is-in .chart__line, .js .proj:not([data-reveal]) .chart__line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease) .35s; }
.chart__ping {
  position: absolute; left: 65.5%; top: 39.2%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 162, 74, .25);
}
.chart__ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber); animation: ping 2s var(--ease) infinite; }
.chip {
  position: absolute; padding: 6px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(7, 9, 20, .6); border: 1px solid var(--line); color: var(--text-2);
}
.chip--l { left: 16px; bottom: 16px; }
.chip--r { right: 16px; top: 16px; color: var(--amber); border-color: rgba(255, 162, 74, .4); }
@keyframes march { to { stroke-dashoffset: -24; } }
@keyframes cone { 50% { opacity: .55; } }

/* labs: idea to shipped */
.proj__viz--stages { display: grid; place-items: center; padding: clamp(24px, 3vw, 40px); }
.stages { position: relative; display: grid; gap: 12px; width: min(100%, 340px); }
.stages::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 1px; background: var(--line-strong); }
.stages li {
  position: relative; display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 9px 16px 9px 9px; border-radius: 999px; border: 1px solid transparent;
  animation: stage 8s infinite; animation-delay: calc(var(--i) * 2s);
}
.stages li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--ink-2); border: 1px solid var(--line-strong);
  animation: stage-dot 8s infinite; animation-delay: calc(var(--i) * 2s);
}
@keyframes stage {
  0%, 22% { color: var(--text); background: rgba(111, 121, 255, .16); border-color: var(--line-strong); }
  30%, 100% { color: var(--muted); background: transparent; border-color: transparent; }
}
@keyframes stage-dot {
  0%, 22% { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 18px rgba(255, 162, 74, .8); }
  30%, 100% { background: var(--ink-2); border-color: var(--line-strong); box-shadow: none; }
}

/* ---------- Principles ---------- */
.principles { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px 40px; align-items: center;
  padding: clamp(18px, 2.5vw, 30px) 0; border-bottom: 1px solid var(--line);
  transition: opacity .45s, padding .6s var(--ease);
}
.principle h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.008em;
  transition: color .35s;
}
.principle p { color: var(--text-2); max-width: 48ch; }
@media (hover: hover) {
  .principles:hover .principle { opacity: .32; }
  .principles:hover .principle:hover { opacity: 1; padding-left: 20px; }
  .principle:hover h3 { color: var(--amber); }
}

/* ---------- Background ---------- */
.path-sec { padding-top: 0; }
.path__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.path { border-top: 1px solid var(--line); }
.path__row {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.path__when { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.path__row b { display: block; font-weight: 600; font-size: 1.08rem; }
.path__row div span { display: block; color: var(--muted); font-size: .95rem; margin-top: .2em; }
.path__row.is-now .path__when { color: var(--amber); }
.tags--kit { margin-top: 30px; }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 13vw, 190px) 0 clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.contact__glow {
  position: absolute; z-index: -1; left: 50%; bottom: -55%; width: min(1400px, 150vw); aspect-ratio: 1.5; translate: -50% 0;
  background:
    radial-gradient(closest-side, rgba(71, 79, 182, .6), transparent 100%),
    radial-gradient(34% 34% at 70% 34%, rgba(255, 162, 74, .2), transparent 100%);
  filter: blur(30px); animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(5%, -6%, 0) scale(1.1); } }
.contact__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.2rem, 10.5vw, 9.4rem); line-height: .86; letter-spacing: -.015em;
  margin-top: .3em; max-width: 12ch; text-wrap: balance;
}
.contact__sub { color: var(--text-2); font-size: clamp(1.04rem, 1.4vw, 1.25rem); max-width: 54ch; margin-top: 1.6em; }
.contact__me { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.contact__me img {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--line-strong);
}
.contact__me b { display: block; font-weight: 600; }
.contact__me span { display: block; color: var(--muted); font-size: .92rem; }
.contact__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(22px, 3vw, 30px); }
.contact__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px;
  margin-top: clamp(56px, 8vw, 110px); border-top: 1px solid var(--line-strong);
}
.contact__grid > div { padding-top: 20px; }
.contact__grid dd { margin-top: .4em; font-size: 1.1rem; }
.contact__grid a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; padding-bottom: 2px; }
.contact__grid a:hover { background-size: 100% 1px; color: var(--amber); }
.contact__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.contact__area { margin-top: 36px; color: var(--muted); font-size: .93rem; max-width: 60ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: .88rem; color: var(--muted); background: var(--ink); position: relative; }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__mid { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--text-2); }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 979px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .hero__row { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .idcard { position: relative; top: auto; max-width: 380px; }
  .sec__head--split { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-top: 96px; }
  .hero__name { font-size: clamp(4.2rem, 25.5vw, 9rem); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 16px 12px 16px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); padding-bottom: 0; }
  .svc-grid, .build-grid, .works__grid { grid-template-columns: 1fr; }
  .chapter, .chapter--flip { grid-template-columns: 1fr; }
  .chapter--flip .photo { order: 0; }
  .photo--wide .photo__in { aspect-ratio: 16 / 11; }
  .proj--wide { flex-direction: column; }
  .proj--wide .proj__viz { border-left: 0; border-top: 1px solid var(--line); min-height: 250px; }
  .proj--viz-first .proj__viz { border-right: 0; border-top: 0; border-bottom: 1px solid var(--line); min-height: 270px; }
  .orbit { --d: 180px; }
  .principle { grid-template-columns: 1fr; }
  .path__row { grid-template-columns: 1fr; gap: 6px; }

  /* the flow turns vertical */
  .flow ol { grid-template-columns: 1fr; gap: 22px; }
  .flow__node { grid-template-columns: 52px 1fr; justify-items: start; align-items: center; text-align: left; gap: 18px; }
  .flow__dot { width: 52px; height: 52px; font-size: 1.25rem; }
  .flow__label { font-size: 1.5rem; }
  .flow__track { left: 25px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; }
  .flow__track i { transform: scaleY(var(--p)); transform-origin: 50% 0; background: linear-gradient(180deg, var(--indigo), var(--indigo-2) 70%, var(--amber)); }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__place { display: none; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion: calm ----------
   Used when the device asks for reduced motion, or the visitor picks it in the footer.
   Fades, colour changes and effects you drive yourself (scroll, cursor) stay.
   Anything that slides, spins or travels on its own stops. */
[data-motion="calm"] { scroll-behavior: auto; }
[data-motion="calm"] .hero__name .ch { transform: none; opacity: 0; }
[data-motion="calm"].is-ready .hero__name .ch { opacity: 1; transition: opacity 1s ease calc(.05s + var(--i) * .04s); }
[data-motion="calm"] [data-hero] { transform: none; }
[data-motion="calm"] [data-reveal] { transform: none; transition: opacity .8s ease var(--d, 0s); }
[data-motion="calm"] .rotator > span,
[data-motion="calm"] .rotator > span.is-off { transform: none; transition: opacity .7s ease; }
[data-motion="calm"] .marquee__track,
[data-motion="calm"] .orbit__ring,
[data-motion="calm"] .orbit__chip b,
[data-motion="calm"] .chart__pred,
[data-motion="calm"] .contact__glow { animation: none; }
[data-motion="calm"] [data-reveal] .chart__line { stroke-dashoffset: 0; }
[data-motion="calm"] .photo .photo__in { clip-path: none; transition: none; }
[data-motion="calm"] .photo img { --ps: 1; transition: none; }

.motion {
  font: inherit; color: inherit; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; background: transparent; border: 1px solid var(--line-strong);
  transition: color .3s, border-color .3s;
}
.motion b { font-weight: 600; color: var(--text); }
.motion:hover { border-color: var(--amber); color: var(--text); }
.footer__end { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Without JavaScript there is no toggle, so follow the device setting directly. */
@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation: none !important; }
}
