/* ==========================================================================
   Heitkamp Studios — Obsidian & Chrome
   ========================================================================== */

:root {
  --bg: #08080a;
  --bg-2: #0e0e12;
  --bg-3: #15151a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #ecebe8;
  --muted: #8d8c93;
  --dim: #5b5a61;
  --chrome: linear-gradient(100deg, #8e9096 0%, #f4f4f6 22%, #a6a8ae 40%, #ffffff 55%, #7d7f85 72%, #e9e9ec 100%);
  --accent: #d9dbe0;
  --glow: rgba(210, 220, 255, 0.12);

  --f-display: "Syncopate", "Helvetica Neue", sans-serif;
  --f-wide: "Syncopate", "Helvetica Neue", sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #e9e9ee; color: #08080a; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* film grain */
body::after {
  content: "";
  position: fixed; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  z-index: 200;
  animation: grain 1.2s 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); }
}

/* --------------------------------------------------------------- type --- */
.eyebrow {
  font-family: var(--f-wide);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.display {
  font-family: var(--f-display);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}
.display em { font-style: normal; }
.display em:not(.chrome-text) { color: #8f9097; }
.h-xl { font-size: clamp(32px, 6.4vw, 104px); }
.h-lg { font-size: clamp(26px, 4.2vw, 64px); }
.h-md { font-size: clamp(22px, 2.9vw, 44px); }

.chrome-text {
  background: var(--chrome);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 250% 0; } }

.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 56ch; }

/* ------------------------------------------------------------ buttons --- */
.btn {
  --h: 58px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 30px;
  border-radius: 999px;
  font-family: var(--f-wide); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .5s var(--ease), color .4s var(--ease);
  will-change: transform;
}
.btn-primary { background: #f1f1f3; color: #0a0a0c; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--chrome); background-size: 250% 100%;
  opacity: 0; transition: opacity .5s var(--ease);
  animation: sheen 3s linear infinite;
}
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #f1f1f3; transform: translateY(101%); transition: transform .55s var(--ease);
}
@media (hover: hover) {
  .btn-ghost:hover { color: #0a0a0c; }
  .btn-ghost:hover::before { transform: translateY(0); }
}
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

/* ------------------------------------------------------------- cursor --- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 300;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: difference; opacity: 0; transition: opacity .3s;
}
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }
/* the ring is a fixed 104px circle scaled down, so size changes stay on the compositor */
.cursor { width: 0; height: 0; }
.cursor::before {
  content: ""; position: absolute; left: -52px; top: -52px; width: 104px; height: 104px; border-radius: 50%;
  border: 2.7px solid #fff; scale: .365;
  transition: scale .35s var(--ease), background-color .35s var(--ease);
}
.cursor::after {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  font-family: var(--f-wide); font-size: 9px; letter-spacing: .2em; color: #000;
}
.cursor-dot { width: 5px; height: 5px; background: #fff; }
.cursor.is-hover::before { scale: .67; background-color: #fff; border-width: 1.5px; }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-view::before { scale: 1; background-color: #fff; border-width: 1px; }
.cursor.is-view::after { content: "VIEW"; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ------------------------------------------------------------- loader --- */
.loader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader svg { width: min(78vw, 760px); height: auto; overflow: visible; }
.loader .sig-mask-path {
  fill: none; stroke: #fff; stroke-width: 70; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.1s var(--ease-in-out) .2s forwards;
}
.loader .wipe-l, .loader .wipe-r { transform-box: fill-box; transform: scaleX(0); animation: wipe 1.1s var(--ease) forwards; }
.loader .wipe-l { transform-origin: right; animation-delay: 1.15s; }
.loader .wipe-r { transform-origin: left; animation-delay: 1.15s; }
.loader-count {
  position: absolute; bottom: 32px; right: var(--gutter);
  font-family: var(--f-wide); font-size: 11px; letter-spacing: .3em; color: var(--muted);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wipe { to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(8, 8, 10, .62); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: block; width: 168px; }
.nav-logo .logo-chrome { aspect-ratio: 1977 / 651; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a:not(.btn) {
  font-family: var(--f-wide); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  position: relative; transition: color .3s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:not(.btn):hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { --h: 44px; padding: 0 22px; font-size: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--text); transition: transform .4s var(--ease); }
.nav-toggle span:first-child { top: 18px; } .nav-toggle span:last-child { top: 26px; }
.nav.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(8, 8, 10, .97); clip-path: circle(0 at calc(100% - 40px) 40px);
    transition: clip-path .8s var(--ease-in-out);
  }
  .nav.is-open .nav-links { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav-links a:not(.btn) { font-size: 14px; }
  .nav-logo { width: 132px; }
}

/* chrome logo (mask with moving metallic gradient) */
.logo-chrome {
  display: block; width: 100%;
  background: var(--chrome); background-size: 300% 100%;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  animation: sheen 7s linear infinite;
}

/* --------------------------------------------------------------- hero --- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 56px; overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 110%, rgba(8,8,10,0) 30%, var(--bg) 85%), linear-gradient(to bottom, rgba(8,8,10,.4), transparent 30%, transparent 70%, var(--bg));
}
.hero .wrap { position: relative; z-index: 2; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-title { margin: 0 0 40px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
.is-loaded .hero-title .line > span { transform: none; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.hero-title .indent { padding-left: 12vw; }
.hero-bottom { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.hero-meta strong { display: block; color: var(--text); font-family: var(--f-display); font-size: 30px; font-weight: 200; line-height: 1; margin-bottom: 6px; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
.is-loaded .fade-up { opacity: 1; transform: none; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  width: 1px; height: 54px; background: var(--line-2); overflow: hidden;
}
.scroll-hint::after { content: ""; position: absolute; left: 0; width: 1px; height: 40%; background: #fff; animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { from { top: -40%; } to { top: 100%; } }

@media (max-width: 860px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-title .indent { padding-left: 0; }
}

/* ------------------------------------------------------------ marquee --- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-right: 48px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-weight: 200; text-transform: uppercase; font-size: clamp(22px, 2.8vw, 42px); line-height: 1; display: inline-flex; align-items: center; gap: 48px; }
.marquee span:nth-child(even) { color: var(--muted); }
.marquee span::after { content: "✦"; font-size: .4em; color: var(--dim); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections --- */
section { position: relative; }
.section { padding: clamp(96px, 14vw, 200px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.section-head .lede { justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head .lede { justify-self: start; } }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split-words.is-in .w > span { transform: none; }

/* --------------------------------------------------------- statement --- */
.statement p { font-family: var(--f-body); font-weight: 400; font-size: clamp(26px, 3.2vw, 50px); line-height: 1.22; margin: 0; max-width: 26ch; letter-spacing: -.015em; }
.statement .scrub span { color: #2b2b31; transition: color .25s linear; }
.statement .scrub span.on { color: var(--text); }

/* ------------------------------------------------------------ services --- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service {
  position: relative; padding: 44px 36px 52px 0; border-bottom: 1px solid var(--line);
  min-height: 340px; display: flex; flex-direction: column;
}
.service + .service { padding-left: 36px; border-left: 1px solid var(--line); }
.service .num { font-family: var(--f-wide); font-size: 11px; color: var(--dim); letter-spacing: .2em; }
.service h3 { font-family: var(--f-display); font-weight: 200; text-transform: uppercase; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin: 64px 0 16px; }
.service p { color: var(--muted); margin: 0; font-size: 16px; }
.service ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: 12px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); }
.service .glyph { position: absolute; top: 40px; right: 36px; width: 46px; height: 46px; color: var(--dim); transition: color .4s, transform .8s var(--ease); }
.service:hover .glyph { color: var(--text); transform: rotate(90deg); }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 40px 0; border-left: 0; min-height: 0; }
  .service .glyph { right: 0; }
}

/* ---------------------------------------------------------- live build --- */
.build { height: 460vh; }
.build-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.build-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 88px); align-items: center; width: 100%; }
.build-steps { position: relative; }
.build-steps .step { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.build-steps .step.is-active { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.build-steps .step h3 { font-family: var(--f-display); font-weight: 200; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; margin: 18px 0 18px; }
.build-steps .step p { color: var(--muted); max-width: 40ch; }
.build-progress { display: flex; gap: 8px; margin-top: 34px; }
.build-progress i { flex: 1; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.build-progress i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; }
.build-code {
  margin-top: 28px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.7;
  color: #9fa0a8; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; height: 150px; overflow: hidden; white-space: pre;
}
.build-code .k { color: #e6e6ea; } .build-code .s { color: #a7c7ff; } .build-code .c { color: #55555e; }
.build-code .caret { display: inline-block; width: 7px; height: 14px; background: #fff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* the browser mock */
.browser {
  position: relative; border-radius: 14px; background: #111115; border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03), 0 0 120px -20px var(--glow);
  overflow: hidden; aspect-ratio: 16 / 11;
  transform: perspective(1600px) rotateY(-8deg) rotateX(4deg);
  transition: transform 1.2s var(--ease);
}
.build[data-stage="4"] .browser { transform: none; }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0c0c10; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.browser-bar .url { margin-left: 16px; flex: 1; max-width: 340px; height: 22px; border-radius: 6px; background: #1a1a20; font-size: 11px; color: var(--muted); display: flex; align-items: center; padding: 0 10px; font-family: ui-monospace, Menlo, monospace; }
.mock { position: absolute; inset: 38px 0 0; padding: 4% 6%; display: grid; grid-template-rows: auto 1fr auto; gap: 6%; transition: background 1s var(--ease); }
.mock .m-nav { display: flex; justify-content: space-between; align-items: center; }
.mock .m-logo, .mock .m-links b, .mock .m-h, .mock .m-p, .mock .m-btn, .mock .m-card { transition: all 1s var(--ease); }
.mock .m-logo { width: 18%; height: 12px; border-radius: 3px; background: #2a2a31; }
.mock .m-links { display: flex; gap: 10px; } .mock .m-links b { width: 34px; height: 7px; border-radius: 3px; background: #24242a; }
.mock .m-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6%; align-items: center; }
.mock .m-h { height: 22px; border-radius: 4px; background: #2a2a31; margin-bottom: 10px; color: transparent; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 2.6vw, 40px); line-height: 1; overflow: hidden; white-space: nowrap; }
.mock .m-h.short { width: 70%; }
.mock .m-p { height: 8px; border-radius: 3px; background: #1f1f25; margin: 14px 0 6px; width: 90%; }
.mock .m-p.s { width: 64%; margin-top: 0; }
.mock .m-btn { width: 34%; height: 26px; border-radius: 99px; background: #2a2a31; margin-top: 18px; }
.mock .m-img { position: relative; aspect-ratio: 1; border-radius: 12px; background: #1b1b21; overflow: hidden; border: 1px dashed #34343c; transition: all 1s var(--ease); }
.mock .m-img::before, .mock .m-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(45deg, transparent 49.6%, #34343c 50%, transparent 50.4%), linear-gradient(-45deg, transparent 49.6%, #34343c 50%, transparent 50.4%); transition: opacity .6s; }
.mock .m-orb { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; left: 15%; top: 15%; background: radial-gradient(circle at 30% 30%, #fff, #f6c38b 30%, #c4553a 65%, #3a1a1f); opacity: 0; transform: scale(.6); transition: all 1.2s var(--ease); filter: blur(.3px); }
.mock .m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.mock .m-card { height: 46px; border-radius: 8px; background: #18181d; border: 1px solid #24242a; }

/* stage 1: typography */
.build[data-stage="1"] .mock .m-h, .build[data-stage="2"] .mock .m-h, .build[data-stage="3"] .mock .m-h, .build[data-stage="4"] .mock .m-h { height: auto; background: transparent; color: #e9e9ec; width: auto; }
.build[data-stage="1"] .mock .m-logo, .build[data-stage="2"] .mock .m-logo, .build[data-stage="3"] .mock .m-logo, .build[data-stage="4"] .mock .m-logo { background: #e9e9ec; width: 14%; height: 10px; }
/* stage 2: color & imagery */
.build[data-stage="2"] .mock, .build[data-stage="3"] .mock, .build[data-stage="4"] .mock { background: radial-gradient(90% 70% at 80% 40%, #3a1a1f 0%, #150c10 60%, #0d090b 100%); }
.build[data-stage="2"] .mock .m-img, .build[data-stage="3"] .mock .m-img, .build[data-stage="4"] .mock .m-img { border: 0; background: radial-gradient(circle at 60% 40%, #4a2228, #1b0f12); }
.build[data-stage="2"] .mock .m-img::before, .build[data-stage="2"] .mock .m-img::after, .build[data-stage="3"] .mock .m-img::before, .build[data-stage="3"] .mock .m-img::after, .build[data-stage="4"] .mock .m-img::before, .build[data-stage="4"] .mock .m-img::after { opacity: 0; }
.build[data-stage="2"] .mock .m-orb, .build[data-stage="3"] .mock .m-orb, .build[data-stage="4"] .mock .m-orb { opacity: 1; transform: none; }
.build[data-stage="2"] .mock .m-btn, .build[data-stage="3"] .mock .m-btn, .build[data-stage="4"] .mock .m-btn { background: linear-gradient(90deg, #f6c38b, #e0714d); }
.build[data-stage="2"] .mock .m-card, .build[data-stage="3"] .mock .m-card, .build[data-stage="4"] .mock .m-card { background: rgba(255,255,255,.04); border-color: rgba(255,200,170,.15); }
.build[data-stage="2"] .mock .m-p, .build[data-stage="3"] .mock .m-p, .build[data-stage="4"] .mock .m-p { background: rgba(255,220,200,.18); }
/* stage 3: motion */
.build[data-stage="3"] .mock .m-orb, .build[data-stage="4"] .mock .m-orb { animation: orb 6s ease-in-out infinite; }
.build[data-stage="3"] .mock .m-card, .build[data-stage="4"] .mock .m-card { animation: bob 3s ease-in-out infinite; }
.build[data-stage="3"] .mock .m-card:nth-child(2), .build[data-stage="4"] .mock .m-card:nth-child(2) { animation-delay: -1s; }
.build[data-stage="3"] .mock .m-card:nth-child(3), .build[data-stage="4"] .mock .m-card:nth-child(3) { animation-delay: -2s; }
.build[data-stage="3"] .mock .m-btn, .build[data-stage="4"] .mock .m-btn { box-shadow: 0 0 0 0 rgba(246,195,139,.6); animation: pulse 2s infinite; }
@keyframes orb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, -6%) scale(1.06); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(246,195,139,0); } 100% { box-shadow: 0 0 0 0 rgba(246,195,139,0); } }
/* stage 4: launch scores */
.scores { position: absolute; right: 4%; bottom: 6%; display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(10,10,12,.85); backdrop-filter: blur(10px); border: 1px solid var(--line-2); opacity: 0; transform: translateY(20px) scale(.96); transition: all .9s var(--ease); }
.build[data-stage="4"] .scores { opacity: 1; transform: none; }
.score { width: 52px; text-align: center; font-size: 9px; color: var(--muted); letter-spacing: .04em; }
.score svg { width: 44px; height: 44px; display: block; margin: 0 auto 4px; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 3; }
.score .bg { stroke: #1f2a22; } .score .fg { stroke: #3ddc84; stroke-dasharray: 113; stroke-dashoffset: 113; transition: stroke-dashoffset 1.6s var(--ease) .3s; stroke-linecap: round; }
.build[data-stage="4"] .score .fg { stroke-dashoffset: 0; }
.score b { position: relative; display: block; margin-top: -36px; margin-bottom: 18px; font-size: 13px; color: #3ddc84; font-weight: 600; }

@media (max-width: 960px) {
  .build { height: auto; }
  .build-sticky { position: relative; height: auto; padding: 96px 0; }
  .build-grid { grid-template-columns: 1fr; }
  .browser { transform: none; }
  .build-code { display: none; }
}

/* ------------------------------------------------------------- work --- */
.work { padding-bottom: 0; }
.work-track-wrap { height: 400vh; position: relative; }
.work-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work-sticky .wrap { margin-bottom: 4vh; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.work-track { display: flex; gap: 3vw; padding-left: var(--gutter); will-change: transform; }
.work-card { flex: 0 0 auto; width: clamp(300px, 46vw, 720px); }
.work-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-3);
  transform-style: preserve-3d; transition: transform .6s var(--ease);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-media .shine { position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.work-card:hover .shine { opacity: 1; }
.work-info { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; align-items: baseline; }
.work-info h3 { font-family: var(--f-display); font-weight: 200; text-transform: uppercase; font-size: clamp(20px, 1.8vw, 28px); margin: 0; line-height: 1; }
.work-info .cat { color: var(--muted); font-size: 14px; }
.work-info .result { font-family: var(--f-wide); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.work-count { font-family: var(--f-wide); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.work-count b { color: var(--text); font-weight: 400; }

/* generated placeholder "site" */
.ph { position: absolute; inset: 0; padding: 7% 7%; display: flex; flex-direction: column; background: var(--c1); color: var(--c2); overflow: hidden; }
.ph-nav { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; font-family: var(--f-wide); }
.ph-nav span:last-child { display: flex; gap: 14px; }
.ph h4 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 72px); line-height: .95; margin: auto 0 4%; max-width: 9ch; }
.ph .ph-row { display: flex; gap: 10px; align-items: center; font-size: 11px; opacity: .85; }
.ph .ph-pill { padding: 8px 14px; border-radius: 99px; background: var(--c2); color: var(--c1); font-weight: 600; letter-spacing: .04em; }
.ph .ph-shape { position: absolute; right: -8%; top: 12%; width: 54%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--c2) 70%, white), var(--c2) 45%, color-mix(in srgb, var(--c2) 40%, var(--c1))); opacity: .9; }
.ph .ph-shape.sq { border-radius: 24px; transform: rotate(12deg); }
.ph .ph-shape.arch { border-radius: 999px 999px 0 0; top: 22%; height: 90%; aspect-ratio: auto; }
.ph .ph-tag { position: absolute; top: 7%; right: 7%; }

@media (max-width: 860px) {
  .work-track-wrap { height: auto; }
  .work-sticky { position: relative; height: auto; padding: 0 0 40px; }
  .work-track { flex-direction: column; padding: 0 var(--gutter); gap: 56px; transform: none !important; }
  .work-card { width: 100%; }
}

/* ------------------------------------------------------------- process --- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; }
.process li { list-style: none; padding: 0 28px 0 0; position: relative; }
.process li + li { padding-left: 28px; }
.process .bar { height: 1px; background: var(--line-2); margin-bottom: 36px; position: relative; overflow: hidden; }
.process .bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.process li.is-in .bar::after { transform: scaleX(1); }
.process li:nth-child(2) .bar::after { transition-delay: .2s; } .process li:nth-child(3) .bar::after { transition-delay: .4s; } .process li:nth-child(4) .bar::after { transition-delay: .6s; }
.process .wk { font-family: var(--f-wide); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.process h3 { font-family: var(--f-display); font-weight: 200; text-transform: uppercase; font-size: 22px; margin: 14px 0 12px; line-height: 1; }
.process p { color: var(--muted); font-size: 15px; margin: 0; }
.process { padding: 0; margin: 0; }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; row-gap: 56px; } .process li, .process li + li { padding: 0 20px 0 0; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- stats --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: 48px 28px; text-align: left; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .n { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------------------------------------------------------- backoffice --- */
.bo { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.bo-list { list-style: none; padding: 0; margin: 36px 0 44px; display: grid; gap: 0; }
.bo-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.bo-list li:last-child { border-bottom: 1px solid var(--line); }
.bo-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.bo-list b { display: block; font-weight: 600; font-size: 16px; }
.bo-list span { color: var(--muted); font-size: 15px; }
.bo-shot {
  position: relative; border-radius: 16px; border: 1px solid var(--line-2); background: #0d0d11; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 100px -30px var(--glow);
  display: grid; grid-template-columns: 26% 1fr;
}
.bo-side { border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.bo-side .lg { width: 70%; aspect-ratio: 1977/651; margin-bottom: 18px; }
.bo-side i { height: 26px; border-radius: 7px; background: #15151a; display: flex; align-items: center; padding: 0 10px; font-style: normal; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.bo-side i.on { background: #f1f1f3; color: #0a0a0c; }
.bo-main { padding: 18px; display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.bo-main .top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.bo-main .top b { color: var(--text); font-family: var(--f-display); font-size: 14px; font-weight: 300; text-transform: uppercase; letter-spacing: .06em; }
.bo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.bo-grid div { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--a), var(--b)); animation: tile 6s var(--ease) infinite; animation-delay: calc(var(--d) * .2s); }
@keyframes tile { 0%, 80%, 100% { transform: none; } 85% { transform: scale(.94); } }
.bo-sig { position: absolute; right: 16px; bottom: 16px; width: 58%; background: #fff; color: #222; border-radius: 10px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 40px rgba(0,0,0,.5); font-size: 10px; line-height: 1.4; animation: floaty 5s ease-in-out infinite; }
.bo-sig img { width: 64px; }
.bo-sig b { display: block; font-size: 12px; }
.bo-sig span { color: #777; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .bo { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- testimonials --- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); display: flex; flex-direction: column; gap: 28px; }
.quote p { font-family: var(--f-body); font-size: 22px; line-height: 1.4; margin: 0; letter-spacing: -.01em; }
.quote footer { margin-top: auto; font-size: 14px; color: var(--muted); }
.quote footer b { color: var(--text); font-weight: 600; display: block; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ pricing cards --- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  --mx: 50%; --my: 0%;
  position: relative; border-radius: 22px; padding: 1px; background: var(--line);
  transition: transform .6s var(--ease);
}
.tier::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.7), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.tier:hover::before { opacity: 1; }
.tier-in { position: relative; height: 100%; border-radius: 21px; background: var(--bg-2); padding: 40px 34px 36px; display: flex; flex-direction: column; overflow: hidden; }
.tier-in::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255,255,255,.05), transparent 40%); pointer-events: none; }
.tier.is-featured { background: linear-gradient(160deg, #f3f3f5, #6f7177 40%, #2a2a30 70%, #c9cbd0); }
.tier.is-featured .tier-in { background: linear-gradient(180deg, #16161b, #0c0c0f); }
.tier .badge { position: absolute; top: 22px; right: 22px; font-family: var(--f-wide); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; background: #f1f1f3; color: #0a0a0c; }
.tier h3 { font-family: var(--f-wide); font-weight: 400; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 10px; }
.tier .tag { color: var(--muted); font-size: 15px; margin: 0 0 30px; min-height: 48px; }
.tier .price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.tier .price .from { font-size: 13px; color: var(--muted); align-self: flex-start; margin-top: 14px; }
.tier .price .amt { font-family: var(--f-display); font-weight: 200; font-size: clamp(42px, 3.8vw, 58px); line-height: 1; }
.tier .price .per { color: var(--muted); font-size: 14px; }
.tier .sub { font-size: 13px; color: var(--dim); margin-bottom: 30px; min-height: 20px; }
.tier ul { list-style: none; padding: 26px 0 0; margin: 0 0 34px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15px; }
.tier li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: #c9c8cc; }
.tier li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.tier .btn { margin-top: auto; width: 100%; }
.tier .time { text-align: center; font-size: 12px; color: var(--dim); margin-top: 14px; }
@media (max-width: 1060px) { .tiers { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.toggle { display: inline-flex; padding: 5px; border-radius: 99px; border: 1px solid var(--line-2); position: relative; }
.toggle button { position: relative; z-index: 1; padding: 11px 22px; font-family: var(--f-wide); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .4s; border-radius: 99px; }
.toggle button.is-on { color: #0a0a0c; }
.toggle .pill { position: absolute; top: 5px; bottom: 5px; border-radius: 99px; background: #f1f1f3; transition: all .5s var(--ease); }

/* -------------------------------------------------------------- footer --- */
.cta-big { text-align: center; padding: clamp(110px, 16vw, 240px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.cta-big .display { font-size: clamp(34px, 7vw, 120px); }
.cta-big .btn { margin-top: 48px; }
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--f-wide); font-weight: 400; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--text); margin: 0 0 18px; }
.footer a { display: block; padding: 4px 0; transition: color .3s; }
.footer a:hover { color: var(--text); }
.footer-logo { width: 220px; margin-bottom: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.footer-mega { margin-top: 56px; opacity: .9; }
.footer-mega .logo-chrome { aspect-ratio: 1977 / 651; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------- contact --- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); }
.form { display: grid; gap: 22px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 18px; padding: 26px 0 12px; outline: none; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; left: 0; top: 26px; color: var(--muted); pointer-events: none; transition: all .35s var(--ease); font-size: 17px; }
.field input:focus, .field textarea:focus { border-color: #fff; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-family: var(--f-wide); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 11px 18px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; color: var(--muted); transition: all .3s var(--ease); }
.chips input:checked + span { background: #f1f1f3; color: #0a0a0c; border-color: #f1f1f3; }
.chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.form-label { font-family: var(--f-wide); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.form-note { font-size: 13px; color: var(--dim); }
.contact-info { display: grid; gap: 28px; margin-top: 48px; }
.contact-info a, .contact-info div { font-family: var(--f-body); font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-info small { display: block; font-family: var(--f-wide); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- pricing page --- */
.page-hero { padding: 200px 0 80px; text-align: center; position: relative; overflow: hidden; }
.page-hero .lede { margin: 28px auto 44px; }
.page-hero .orb { position: absolute; left: 50%; top: -30%; width: 900px; height: 900px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(200,210,255,.10), transparent 60%); pointer-events: none; filter: blur(10px); }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare thead th { font-family: var(--f-wide); font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text); position: sticky; top: 72px; background: var(--bg); z-index: 1; }
.compare tbody tr { transition: background .3s; }
.compare tbody tr:hover { background: rgba(255,255,255,.02); }
.compare .group td { font-family: var(--f-wide); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--text); padding-top: 40px; text-align: left; }
.compare .y { color: var(--text); } .compare .n { color: var(--dim); }
.compare-wrap { overflow-x: auto; }

.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.care-card { padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.care-card.is-featured { border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); }
.care-card h3 { font-family: var(--f-wide); font-weight: 400; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin: 0 0 18px; }
.care-card .amt { font-family: var(--f-display); font-weight: 200; font-size: 42px; line-height: 1; }
.care-card .amt small { font-family: var(--f-body); font-size: 14px; color: var(--muted); }
.care-card p { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
@media (max-width: 860px) { .care { grid-template-columns: 1fr; } }

.estimator { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.est-panel { border: 1px solid var(--line); border-radius: 22px; padding: 36px; background: var(--bg-2); }
.est-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.est-row:last-child { border-bottom: 0; }
.est-row .lbl { font-size: 16px; }
.est-row .lbl small { display: block; color: var(--muted); font-size: 13px; }
.est-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.est-tiers button { padding: 16px 10px; border-radius: 14px; border: 1px solid var(--line-2); text-align: center; transition: all .35s var(--ease); }
.est-tiers button b { display: block; font-family: var(--f-wide); font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.est-tiers button span { font-size: 13px; color: var(--muted); }
.est-tiers button.is-on { background: #f1f1f3; color: #0a0a0c; border-color: #f1f1f3; }
.est-tiers button.is-on span { color: #555; }
.switch { position: relative; width: 48px; height: 28px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #26262c; transition: background .3s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #8d8c93; transition: all .4s var(--ease); }
.switch input:checked + i { background: #f1f1f3; }
.switch input:checked + i::after { left: 23px; background: #0a0a0c; }
.switch input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; }
.stepper button { width: 36px; height: 36px; font-size: 18px; color: var(--muted); }
.stepper output { min-width: 26px; text-align: center; }
.est-total { position: sticky; top: 100px; align-self: start; }
.est-total .big { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 4.6vw, 70px); line-height: 1; margin: 14px 0 6px; }
.est-total .line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.est-total .btn { width: 100%; margin-top: 28px; }
@media (max-width: 960px) { .estimator { grid-template-columns: 1fr; } .est-total { position: relative; top: 0; } }

.faq { max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; gap: 24px; font-family: var(--f-body); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; transition: transform .5s var(--ease); margin-top: 2px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { color: var(--muted); padding: 0 60px 30px 0; max-width: 70ch; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 220%); visibility: hidden; background: #f1f1f3; color: #0a0a0c; padding: 14px 22px; border-radius: 99px; font-size: 14px; z-index: 500; transition: transform .5s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal], .split-words .w > span, .hero-title .line > span, .fade-up { opacity: 1 !important; transform: none !important; }
}

/* placeholder + work polish */
.ph-nav i { font-style: normal; }
.ph-nav span:last-child { gap: 18px; }
@media (max-width: 860px) {
  .ph-nav span:last-child { display: none; }
  .work-info { flex-direction: column; gap: 8px; }
}

/* few projects: static large grid instead of horizontal scroll */
.work-track-wrap.is-grid { height: auto !important; }
.is-grid .work-sticky { position: relative; height: auto; padding-bottom: 20px; }
.is-grid .work-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(28px, 3vw, 48px); padding: 0 var(--gutter); max-width: var(--maxw); margin: 0 auto; width: 100%; transform: none !important; }
.is-grid .work-card { width: auto; }
.is-grid .work-count { display: none; }
.footer a { overflow-wrap: anywhere; }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
