/* =========================================================
   dotprod · Software, aligned.
   ========================================================= */
:root {
  --ink: #16161D;
  --paper: #F7F4EE;
  --dot: #FF5B2E;
  --blush: #FFB3A1;

  --bg: #F7F4EE;
  --bg-2: #EFEBE3;
  --fg: #16161D;
  --muted: #5F5C68;
  --faint: #8C8996;
  --card: #FFFFFF;
  --line: rgba(22, 22, 29, .12);
  --line-2: rgba(22, 22, 29, .06);
  --accent: #E8481C;           /* coral, darkened for text contrast on paper */
  --invert-bg: #16161D;
  --invert-fg: #F7F4EE;
  --field-ink: 22, 22, 29;

  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --max: 1240px;
  --r: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111117; --bg-2: #17171F; --fg: #F2EFE8; --muted: #A9A5B2; --faint: #75727E;
    --card: #1A1A22; --line: rgba(242, 239, 232, .13); --line-2: rgba(242, 239, 232, .06);
    --accent: #FF6A40; --invert-bg: #F2EFE8; --invert-fg: #16161D; --field-ink: 242, 239, 232;
  }
}
:root[data-theme="dark"] {
  --bg: #111117; --bg-2: #17171F; --fg: #F2EFE8; --muted: #A9A5B2; --faint: #75727E;
  --card: #1A1A22; --line: rgba(242, 239, 232, .13); --line-2: rgba(242, 239, 232, .06);
  --accent: #FF6A40; --invert-bg: #F2EFE8; --invert-fg: #16161D; --field-ink: 242, 239, 232;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--dot); color: #fff; }
:focus-visible { outline: 2px solid var(--dot); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.muted { color: var(--faint); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: 500 11px var(--mono); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 0;
  font: 500 15px var(--sans); letter-spacing: -.005em; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--dot); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(255, 91, 46, .6); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); transform: translateY(-2px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--dot);
    transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .2s, background .25s;
    opacity: 0; will-change: transform;
  }
  .cursor.on { opacity: 1; }
  .cursor.big { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255, 91, 46, .18); box-shadow: inset 0 0 0 1.5px var(--dot); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, transform .4s var(--ease);
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; }
.wordmark { font: 600 19px var(--mono); letter-spacing: -.02em; }
.wordmark i, .foot-mark i { display: inline-block; width: .3em; height: .3em; margin: 0 .1em .1em; border-radius: 50%; background: var(--dot); vertical-align: middle; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.nav-links a { display: block; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--line-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.kbd-btn, .icon-btn { display: inline-flex; align-items: center; gap: 3px; height: 38px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: color .2s, box-shadow .2s; }
.icon-btn { width: 38px; justify-content: center; padding: 0; }
.kbd-btn:hover, .icon-btn:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.kbd-btn .kbd { border: 0; min-width: 0; padding: 0 1px; color: inherit; font-size: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, var(--bg) 10%, transparent); pointer-events: none; }
.hero-in { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: clamp(48px, 8vh, 96px); pointer-events: none; }
.hero-in a, .hero-in button { pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 7px 14px 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 75%, transparent); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 0 rgba(255, 91, 46, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 91, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0); } }

.hero-title { margin: 0; font-weight: 500; font-size: clamp(64px, 14.5vw, 210px); line-height: .88; letter-spacing: -.055em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title em { font-size: 1.08em; letter-spacing: -.03em; color: var(--dot); padding-right: .04em; }
@keyframes rise { to { transform: none; } }

.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px); }
.lede { max-width: 34em; margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hud {
  position: absolute; z-index: 3; right: clamp(16px, 4vw, 40px); top: 110px; width: 220px;
  padding: 14px 16px; border-radius: 14px; font: 12px/1.5 var(--mono);
  background: color-mix(in srgb, var(--bg) 78%, transparent); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; animation: fade 1s .8s forwards;
}
.hud-row { display: flex; gap: 10px; }
.hud-row span:first-child { font-weight: 600; width: 10px; }
.hud-row:first-child span:first-child { color: var(--fg); }
.hud-row:nth-child(2) span:first-child { color: var(--dot); }
.hud-eq { margin-top: 8px; font-size: 15px; }
.hud-eq b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-bar { height: 4px; border-radius: 4px; margin: 8px 0 8px; background: var(--line); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 70%; background: var(--dot); border-radius: inherit; transition: width .15s linear; }
.hud-hint { color: var(--faint); font-size: 11px; letter-spacing: .04em; }
@keyframes fade { to { opacity: 1; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 400 clamp(20px, 2.4vw, 30px) var(--serif); font-style: italic; white-space: nowrap; }
.marquee i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.label { margin: 0 0 20px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
h2 { margin: 0; font-weight: 500; font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -.045em; max-width: 15em; }
h2 em { font-size: 1.06em; }
.sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec-lede { max-width: 36em; margin: 24px 0 0; color: var(--muted); font-size: 18px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- statement ---------- */
.statement { padding-bottom: clamp(40px, 6vw, 80px); }
.big-statement { margin: 0; font-size: clamp(28px, 3.9vw, 54px); line-height: 1.15; letter-spacing: -.035em; font-weight: 400; max-width: 22em; }
.big-statement .w { color: var(--faint); opacity: .35; transition: opacity .4s, color .4s; }
.big-statement .w.lit { color: var(--fg); opacity: 1; }
.big-statement em .w.lit { color: var(--dot); }

/* ---------- services ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-head {
  width: 100%; display: grid; grid-template-columns: 70px 1fr auto 44px; align-items: center; gap: 20px;
  padding: clamp(22px, 3vw, 34px) 0; background: none; border: 0; text-align: left; position: relative;
}
.svc-num { font: 500 13px var(--mono); color: var(--faint); }
.svc-title { font-size: clamp(30px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.045em; line-height: 1; transition: transform .5s var(--ease), color .3s; }
.svc-sub { font: 400 clamp(18px, 1.8vw, 24px) var(--serif); font-style: italic; color: var(--muted); }
.svc-toggle { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; transition: background .3s, transform .5s var(--ease), box-shadow .3s; }
.svc-toggle::before, .svc-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .4s var(--ease); }
.svc-toggle::after { transform: rotate(90deg); }
.svc-head:hover .svc-title { transform: translateX(10px); }
.svc-head:hover .svc-toggle { box-shadow: inset 0 0 0 1px var(--fg); }
.svc-head[aria-expanded="true"] .svc-title { color: var(--dot); }
.svc-head[aria-expanded="true"] .svc-toggle { background: var(--fg); color: var(--bg); box-shadow: none; transform: rotate(180deg); }
.svc-head[aria-expanded="true"] .svc-toggle::after { transform: rotate(0); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc-head[aria-expanded="true"] + .svc-body { grid-template-rows: 1fr; }
.svc-body-in { overflow: hidden; padding-left: 90px; visibility: hidden; transition: visibility 0s .6s; }
.svc-head[aria-expanded="true"] + .svc-body .svc-body-in { visibility: visible; transition: none; }
.svc-body-in > p { max-width: 40em; margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.svc-body-in > :last-child { margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.chips li { font: 500 12.5px var(--mono); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

.namer { max-width: 640px; padding: 22px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.namer-label { display: block; font: 500 13px var(--mono); margin-bottom: 12px; }
.namer-row { display: flex; gap: 8px; }
.namer-row input { flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg); color: var(--fg); font: 15px var(--sans); }
.namer-row input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--dot); }
.namer-out { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; min-height: 0; }
.namer-out li { font: 500 14px var(--mono); padding: 7px 13px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(6px); animation: pop .45s var(--ease) forwards; }
.namer-out li b { color: var(--accent); font-weight: 600; }
@keyframes pop { to { opacity: 1; transform: none; } }
.namer-note { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }

/* ---------- products ---------- */
.products { background: var(--bg-2); }
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  margin-bottom: 28px; overflow: hidden;
}
.product-id { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.product-id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--line), 0 8px 20px -10px rgba(0,0,0,.4); }
.product-id h3 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.product-id p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.status { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: #1F8A4C; background: rgba(31, 138, 76, .1); }
.status-soon { color: #C2620F; background: rgba(237, 121, 65, .13); }
:root[data-theme="dark"] .status-live { color: #4ED487; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status-live { color: #4ED487; } :root:not([data-theme="light"]) .status-soon { color: #FFA36E; } }
:root[data-theme="dark"] .status-soon { color: #FFA36E; }
.product-desc { margin: 0 0 22px; font-size: 18px; color: var(--muted); }
.try { margin: 0 0 10px; font: 400 20px var(--serif); font-style: italic; color: var(--accent); }
.trad { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.trad button, .pick button {
  padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; font-size: 14px;
  box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s, transform .2s;
}
.trad button:hover, .pick button:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.trad button:active, .pick button:active { transform: scale(.96); }
.trad button[aria-checked="true"], .pick button[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.facts { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.facts b { color: var(--fg); font-weight: 500; font-family: var(--mono); font-size: 12.5px; padding-top: 2px; }
.product-links { display: flex; gap: 10px; flex-wrap: wrap; }

.product-stage { display: grid; place-items: center; position: relative; }
.product-stage::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%; z-index: 0; filter: blur(10px); }
.product-still .product-stage::before { background: radial-gradient(circle, rgba(212, 184, 150, .35), transparent 62%); }
.product-rise .product-stage::before { background: radial-gradient(circle, rgba(255, 218, 85, .38), transparent 62%); }

.phone {
  position: relative; z-index: 1; width: min(300px, 78vw); aspect-ratio: 300 / 620; border-radius: 48px; overflow: hidden;
  box-shadow: 0 0 0 10px #0d0d12, 0 0 0 11.5px #3a3a44, 0 40px 80px -30px rgba(0, 0, 0, .55);
  transition: transform .6s var(--ease); transform-style: preserve-3d;
}
.island { position: absolute; top: 12px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 5; }

/* Still lock screen */
.phone-still { background: linear-gradient(170deg, #3B3A44 0%, #7B6A5C 45%, #D9B48E 80%, #EED9BE 100%); color: #fff; text-align: center; }
.phone-still::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 110%, rgba(255, 230, 200, .45), transparent 60%); }
.ls-date { position: relative; z-index: 2; margin-top: 64px; font: 600 15px var(--sans); opacity: .9; }
.ls-time { position: relative; z-index: 2; font: 600 84px/1 var(--sans); letter-spacing: -.04em; margin-top: 2px; }
.ls-widget {
  position: relative; z-index: 2; margin: 26px 18px 0; padding: 18px 18px 16px; border-radius: 22px; text-align: left;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: opacity .35s ease, transform .35s var(--ease);
}
.ls-widget.swap { opacity: 0; transform: translateY(8px) scale(.98); }
.q-text { margin: 0 0 10px; font: 400 21px/1.22 var(--serif); }
.q-src { margin: 0; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.ls-bottom { position: absolute; z-index: 2; bottom: 34px; left: 34px; right: 34px; display: flex; justify-content: space-between; }
.ls-bottom span { width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Rise & Walk */
.phone-rise { background: linear-gradient(180deg, #17283A 0%, #253B4C 55%, #3D4F5A 100%); color: #fff; transition: background 1.2s ease, transform .6s var(--ease); }
.phone-rise[data-state="walking"] { background: linear-gradient(180deg, #2E4A63 0%, #5C7C92 50%, #E9A46C 100%); }
.phone-rise[data-state="done"] { background: linear-gradient(180deg, #7FC1E6 0%, #B9DDF0 50%, #FFE7A8 100%); color: #253B4C; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky .stars { transition: opacity 1s; }
.phone-rise[data-state="walking"] .sky .stars { opacity: .4; }
.phone-rise[data-state="done"] .sky .stars { opacity: 0; }
.sky .hill { fill: #1E3242; transition: fill 1.2s; }
.phone-rise[data-state="done"] .sky .hill { fill: #8CC28A; }
.sky .steps-ill { fill: #ED7941; opacity: .85; }
.rise-top { position: relative; z-index: 2; text-align: center; margin-top: 62px; }
.rise-label { margin: 0; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.rise-time { margin: 0; font: 300 64px/1.05 ui-rounded, "SF Pro Rounded", var(--sans); letter-spacing: -.03em; }
.rise-msg { margin: 6px 22px 0; min-height: 44px; font: 500 14px/1.4 ui-rounded, "SF Pro Rounded", var(--sans); opacity: .92; }
.sunny-wrap { position: relative; z-index: 2; width: 150px; margin: 4px auto 0; }
.sunny { width: 100%; overflow: visible; animation: breathe 3s ease-in-out infinite; transform-origin: 50% 95%; }
.sunny .face { opacity: 0; transition: opacity .2s; }
.sunny[data-mood="sleepy"] .face-sleepy, .sunny[data-mood="awake"] .face-awake, .sunny[data-mood="walking"] .face-awake, .sunny[data-mood="cheer"] .face-cheer { opacity: 1; }
.sunny .zz { opacity: 0; transition: opacity .3s; }
.sunny[data-mood="sleepy"] .zz { opacity: .9; animation: zz 2.4s ease-in-out infinite; }
.sunny .rays { transform-origin: 100px 104px; transition: transform .6s var(--ease); }
.sunny[data-mood="cheer"] .rays { animation: spin 6s linear infinite; }
.sunny[data-mood="walking"] .foot-l { animation: stepL .5s ease-in-out infinite; }
.sunny[data-mood="walking"] .foot-r { animation: stepL .5s ease-in-out infinite reverse; }
.sunny.hop { animation: hop .35s var(--ease); }
@keyframes breathe { 50% { transform: scale(1.03, .98); } }
@keyframes zz { 50% { transform: translate(4px, -6px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stepL { 50% { transform: translateY(-6px); } }
@keyframes hop { 40% { transform: translateY(-14px) scale(1.04, .96); } }
.walk { position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ring { position: relative; width: 104px; height: 104px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: rgba(0, 0, 0, .18); stroke: rgba(255, 255, 255, .18); stroke-width: 8; }
.ring-fg { fill: none; stroke: #FFDA55; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .35s var(--ease); }
.phone-rise[data-state="done"] .ring-bg { fill: rgba(255, 255, 255, .5); stroke: rgba(37, 59, 76, .12); }
.phone-rise[data-state="done"] .ring-fg { stroke: #ED7941; }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-num b { font: 700 32px ui-rounded, "SF Pro Rounded", var(--sans); font-variant-numeric: tabular-nums; }
.ring-num span { font: 500 10px var(--mono); letter-spacing: .06em; opacity: .75; margin-top: 3px; }
.walk-btn {
  border: 0; padding: 12px 26px; border-radius: 999px; background: #FFDA55; color: #253B4C;
  font: 700 15px ui-rounded, "SF Pro Rounded", var(--sans); box-shadow: 0 6px 0 #C99E1A; transition: transform .1s, box-shadow .1s;
}
.walk-btn:active, .walk-btn.press { transform: translateY(4px); box-shadow: 0 2px 0 #C99E1A; }
.phone-rise[data-state="done"] .walk-btn { background: #253B4C; color: #fff; box-shadow: 0 6px 0 #0F1C26; }
.phone-rise.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px) rotate(-1deg); } 40%, 80% { transform: translateX(4px) rotate(1deg); } }
.stage-hint { position: relative; z-index: 1; margin: 26px 0 0; font-size: 13.5px; color: var(--faint); display: flex; align-items: center; gap: 6px; }

.product-rise { grid-template-columns: 1fr 1fr; }

/* ---------- process (sticky vector) ---------- */
.process { background: var(--invert-bg); color: var(--invert-fg); --line: rgba(128, 128, 140, .25); }
.process .label { color: color-mix(in srgb, var(--invert-fg) 50%, transparent); }
.process-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.process-sticky { position: sticky; top: 100px; align-self: start; }
.process h2 { margin-bottom: 36px; }
.process h2 em { color: var(--dot); }
.vec-wrap { padding: 20px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--invert-fg) 3%, transparent); }
.vec { width: 100%; height: auto; overflow: visible; }
.vgrid line { stroke: color-mix(in srgb, var(--invert-fg) 8%, transparent); stroke-width: 1; }
.v-a { stroke: var(--invert-fg); stroke-width: 6; stroke-linecap: round; }
.ah-fill { fill: var(--invert-fg); }
.v-b { stroke: var(--dot); stroke-width: 6; stroke-linecap: round; }
.v-proj { stroke: var(--invert-fg); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; opacity: .6; }
.v-arc { fill: none; stroke: color-mix(in srgb, var(--invert-fg) 50%, transparent); stroke-width: 1.5; }
.v-lbl { font: 500 13px var(--mono); fill: color-mix(in srgb, var(--invert-fg) 70%, transparent); text-anchor: end; }
.v-lbl-b { fill: var(--dot); text-anchor: start; }
.v-small { font-size: 14px; text-anchor: start; font-style: italic; }
.vec-read { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font: 15px var(--mono); }
.vec-read b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dot); }
.steps { list-style: none; margin: 0; padding: 22vh 0 18vh; }
.step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.step.active { opacity: 1; }
.step-num { font: 500 13px var(--mono); color: var(--dot); margin-bottom: 14px; }
.step h3 { margin: 0 0 14px; font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.step p { margin: 0; font-size: 19px; max-width: 26em; color: color-mix(in srgb, var(--invert-fg) 72%, transparent); }

/* ---------- lab ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lab-card {
  position: relative; padding: 0 26px 28px; border-radius: var(--r); background: var(--card); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .3s;
}
.lab-card::before { /* spotlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 91, 46, .12), transparent 45%);
}
.lab-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dot) 45%, transparent); }
.lab-card:hover::before { opacity: 1; }
.lab-viz { max-width: none; width: calc(100% + 52px); margin: 0 -26px 22px; height: 170px; border-bottom: 1px solid var(--line); background: var(--bg); }
.lab-tag { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lab-card h3 { margin: 8px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.lab-card p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- engagement ---------- */
.engage { padding-top: 0; }
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.eng { padding: 36px 32px 8px 0; border-right: 1px solid var(--line); }
.eng + .eng { padding-left: 32px; }
.eng:last-child { border-right: 0; }
.eng-k { font: 400 clamp(54px, 6vw, 88px)/1 var(--serif); font-style: italic; color: var(--dot); letter-spacing: -.02em; display: block; margin-bottom: 18px; }
.eng h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.eng p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.eng-best { font: 500 12.5px var(--mono); color: var(--faint) !important; }

/* ---------- contact ---------- */
.contact { background: var(--bg-2); }
.contact-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.mail { display: inline-block; margin-top: 32px; font: 500 clamp(20px, 2.4vw, 28px) var(--mono); text-decoration: none; background: linear-gradient(var(--dot), var(--dot)) 0 100% / 100% 2px no-repeat; padding-bottom: 4px; transition: background-size .4s var(--ease), color .3s; }
.mail:hover { color: var(--accent); }
.dot-mascot { width: 130px; margin-top: 40px; overflow: visible; }
.dot-mascot .ln { stroke: var(--fg); }
.dot-mascot:hover { animation: hop .5s var(--ease); }

.brief { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0, 0, 0, .3); }
.brief fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.brief legend, .field-row label { display: block; font: 500 12.5px var(--mono); letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.field-row { margin-bottom: 18px; }
.field-row input, .field-row textarea {
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 0; background: var(--bg); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line); font: 16px var(--sans); resize: vertical; transition: box-shadow .2s;
}
.field-row input:focus, .field-row textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--dot); }
.brief-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brief-note { font-size: 13px; color: var(--faint); }

/* ---------- footer ---------- */
.footer { padding: 80px 0 28px; overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-tag { margin: 0 0 10px; font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.foot-tag em { color: var(--dot); }
.mail-sm { font: 500 15px var(--mono); color: var(--muted); text-decoration: none; }
.mail-sm:hover { color: var(--fg); }
.foot-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; }
.foot-h { margin: 0 0 4px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.foot-cols a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot-cols a:hover { color: var(--fg); }
.foot-mark { margin: 60px 0 20px; font: 600 clamp(80px, 21vw, 300px)/.85 var(--mono); letter-spacing: -.07em; text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, var(--fg), color-mix(in srgb, var(--fg) 10%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-mark i { width: .26em; height: .26em; margin: 0 .06em .08em; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-bottom .muted { font-family: var(--mono); font-size: 12.5px; }

/* ---------- palette ---------- */
.palette { position: fixed; inset: 0; z-index: 300; display: grid; place-items: start center; padding: 14vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-scrim { position: absolute; inset: 0; background: rgba(10, 10, 14, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s forwards; opacity: 0; }
.palette-box { position: relative; width: min(560px, 100%); border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -20px rgba(0, 0, 0, .5); overflow: hidden; animation: palIn .25s var(--ease); }
@keyframes palIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
#palIn { width: 100%; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); font: 17px var(--sans); }
#palIn:focus { outline: none; }
#palList { list-style: none; margin: 0; padding: 8px; max-height: 340px; overflow: auto; }
#palList li { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
#palList li span:last-child { font: 12px var(--mono); color: var(--faint); }
#palList li[aria-selected="true"] { background: var(--bg-2); }
#palList li[aria-selected="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); margin-right: 10px; }
#palList li span:first-child { flex: 1; }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.palette-foot > span { display: inline-flex; gap: 4px; align-items: center; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 11px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .product, .product-rise, .process-in, .contact-in { grid-template-columns: 1fr; }
  .product-rise .product-stage { order: 0; }
  .lab-grid { grid-template-columns: 1fr 1fr; }
  .process-sticky { position: sticky; top: 68px; z-index: 2; background: var(--invert-bg); padding: 10px 0; box-shadow: 0 -80px 0 var(--invert-bg); }
  .process h2 { display: none; }
  .process .label { display: none; }
  .vec-wrap { padding: 10px 14px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; }
  .vec-read { flex-direction: column; margin: 0; }
  .steps { padding: 6vh 0 10vh; }
  .step { min-height: 42vh; }
  .hud { display: none; }
}
@media (max-width: 720px) {
  .kbd-btn { display: none; }
  .nav-actions .btn-sm { padding: 8px 13px; font-size: 13px; }
  .svc-head { grid-template-columns: 1fr 44px; gap: 8px 14px; }
  .svc-num { display: none; }
  .svc-sub { grid-column: 1; grid-row: 2; font-size: 17px; }
  .svc-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .svc-body-in { padding-left: 0; }
  .namer-row { flex-direction: column; }
  .lab-grid, .engage-grid { grid-template-columns: 1fr; }
  .eng, .eng + .eng { padding: 28px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .product { padding: 22px; border-radius: 24px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .08em; }
  .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
}

/* client work: two-up grid */
.work-grid { grid-template-columns: repeat(2, 1fr); }
.work-grid .lab-viz { height: 200px; }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }
