:root {
  --ink: #0d0f0b;
  --ink-2: #14180f;
  --ink-3: #1b2114;
  --paper: #f2ede2;
  --paper-2: #e6dfcf;
  --lime: #d4ff3a;
  --lime-d: #a9d40f;
  --coral: #ff6a3d;
  --text: #f2ede2;
  --muted: rgba(242, 237, 226, .55);
  --line: rgba(242, 237, 226, .1);
  --display: "Clash Display", "Arial Narrow", system-ui, sans-serif;
  --body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(18px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
/* smooth scrolling is done in main.js (wheel + in-page links); CSS smooth would fight it */
html { scroll-behavior: auto; }

/* ---------- Custom scrollbar (mouse devices only; touch keeps the native one) ---------- */
.sbar { display: none; }
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { width: 0; height: 0; }
  .sbar {
    display: block; position: fixed; z-index: 76; top: 10px; bottom: 10px; right: 5px; width: 14px;
    cursor: pointer; opacity: .55; transition: opacity .4s;
  }
  .sbar::before { content: ""; position: absolute; top: 0; bottom: 0; right: 3px; width: 2px; border-radius: 2px; background: rgba(128,128,128,.22); transition: width .3s var(--ease), background .3s; }
  .sbar.is-active, .sbar:hover, .sbar.is-drag { opacity: 1; }
  .sbar:hover::before, .sbar.is-drag::before { width: 8px; background: rgba(128,128,128,.18); }
  .sbar__thumb {
    position: absolute; top: 0; right: 2px; width: 4px; height: 60px; border-radius: 99px;
    background: linear-gradient(180deg, var(--lime), var(--coral));
    box-shadow: 0 0 12px rgba(212,255,58,.45);
    transform-origin: 50% 50%; will-change: transform, height;
    transition: width .3s var(--ease), right .3s var(--ease), box-shadow .3s;
  }
  .sbar:hover .sbar__thumb, .sbar.is-drag .sbar__thumb { width: 10px; right: 2px; box-shadow: 0 0 18px rgba(212,255,58,.7); }
  .sbar__label {
    position: absolute; right: 18px; top: 50%; transform: translate(10px, -50%) scale(.9); opacity: 0;
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 6px 10px; border-radius: 99px; background: var(--ink); color: var(--paper);
    border: 1px solid rgba(212,255,58,.35); box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
    font-size: 12px; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
  }
  .sbar__label b { font-weight: 700; }
  .sbar__label em { font-style: normal; font-family: ui-monospace, Consolas, monospace; color: var(--lime); }
  .sbar.is-active .sbar__label, .sbar:hover .sbar__label, .sbar.is-drag .sbar__label { opacity: 1; transform: translate(0, -50%) scaleY(var(--inv, 1)); }
  /* the old top progress line is redundant next to the new scrollbar */
  .progress { display: none; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
::selection { background: var(--lime); color: var(--ink); }

/* grain */
body::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .06;
  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)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); } }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--lime); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad);
  clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease) .1s;
}
.loader__bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.loader__bars i { border-right: 1px solid rgba(13,15,11,.12); }
.loader__count { position: relative; font-family: var(--display); font-weight: 600; font-size: clamp(90px, 20vw, 300px); line-height: .8; letter-spacing: -.04em; }
.loader__count sup { font-size: .25em; vertical-align: top; margin-left: .1em; }
.loader__label { position: relative; margin-top: 18px; font-size: 14px; letter-spacing: .04em; font-family: ui-monospace, Consolas, monospace; }
body.is-ready .loader { clip-path: inset(0 0 100% 0); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--coral)); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255,255,255,.5);
  mix-blend-mode: difference; display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
}
.cursor__text { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--lime); border-color: var(--lime); mix-blend-mode: normal; }
.cursor.is-label .cursor__text { opacity: 1; }
.cursor.is-dark.is-label .cursor__ring { background: var(--ink); border-color: var(--ink); }
.cursor.is-dark.is-label .cursor__text { color: var(--lime); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: 22px var(--pad); transition: color .4s, transform .5s var(--ease);
}
.header.is-light { color: var(--ink); }
.header.is-hidden { transform: translateY(-120%); }
.brand { display: inline-flex; gap: 6px; align-items: flex-start; justify-self: start; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1; }
.brand__tag { font-size: 10px; padding: 2px 4px; border: 1px solid currentColor; border-radius: 4px; line-height: 1; }
.status {
  justify-self: center; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--text);
  background: rgba(13,15,11,.75); border: 1px solid rgba(212,255,58,.35); backdrop-filter: blur(8px);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212,255,58,.7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(212,255,58,0); } }
.nav { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nav a { position: relative; font-size: 15px; font-weight: 500; line-height: 1.35; }
.nav a::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform .4s var(--ease); }
.nav a.is-active::before { transform: scale(1); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Shared titles ---------- */
.sec-title { font-family: var(--display); font-weight: 600; font-size: clamp(46px, 8.5vw, 140px); line-height: .86; letter-spacing: -.03em; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--lime); }
.work__title .outline { -webkit-text-stroke-color: var(--ink); }
.split-reveal [data-split] { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.split-reveal .char { transform: translateY(105%) rotate(6deg); opacity: 0; transition: transform .9s var(--ease), opacity .6s; transition-delay: calc(var(--i) * 35ms); }
.split-reveal.is-in .char { transform: none; opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(80% 60% at 50% 0, rgba(212,255,58,.14), transparent 70%), var(--ink);
  padding: 120px var(--pad) 90px;
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; left: 50%; top: 60%; width: 70vmax; height: 70vmax; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,106,61,.16), transparent 70%);
  filter: blur(20px); pointer-events: none; animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -53%) scale(1.1); opacity: .7; } }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; will-change: transform, filter, opacity; }
.hero__kicker { font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.7vw, 22px); letter-spacing: .03em; margin: 0 0 clamp(20px, 5vh, 56px); color: rgba(242,237,226,.85); }
.hero__dot { color: var(--lime); font-size: .6em; vertical-align: middle; margin: 0 .5em; display: inline-block; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(64px, 15.5vw, 250px); line-height: .86; letter-spacing: -.03em; display: flex; flex-direction: column; align-items: center; }
.hero__line { display: block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; transition: color .3s; }
.hero__line .char:hover { color: var(--lime); }
.hero__line:last-child .char:nth-child(3) { color: var(--lime); }
.hero__where { margin-top: clamp(24px, 5vh, 52px); font-family: var(--display); font-weight: 600; font-size: clamp(13px, 1.4vw, 18px); letter-spacing: .04em; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__bar { width: 100%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--lime) 0 33%, var(--paper) 33% 66%, var(--coral) 66%); background-size: 300% 100%; animation: slide 6s linear infinite; }
@keyframes slide { to { background-position: -300% 0; } }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero__scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.badge { position: absolute; right: clamp(16px, 5vw, 80px); bottom: clamp(70px, 12vh, 120px); width: clamp(110px, 11vw, 160px); aspect-ratio: 1; display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge text { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: 2.4px; fill: var(--paper); }
.badge__core { width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 26px; font-weight: 700; transition: transform .5s var(--ease), background .3s; }
.badge:hover .badge__core { transform: rotate(-45deg) scale(1.1); background: var(--coral); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- About / device ---------- */
.about { position: relative; height: 220vh; background: linear-gradient(var(--ink), var(--ink-2) 60%, var(--ink-2)); }
.about__stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; perspective: 1400px; padding: 76px var(--pad) 20px; }
.device {
  --rx: 72deg; --s: .78; --ry: 0deg; --ty: 22vh; --hh: 300px; --glow: 0;
  width: min(1180px, 100%);
  /* scale around the centre (so it fits), but tilt around the bottom edge (--hh = half height),
     so the card rises up and opens like a laptop lid */
  transform: translateY(var(--ty)) scale(var(--s)) translateY(var(--hh)) rotateX(var(--rx)) rotateY(var(--ry)) translateY(calc(-1 * var(--hh)));
  transform-style: preserve-3d; transform-origin: 50% 50%;
  border-radius: 34px; padding: 14px;
  background: linear-gradient(160deg, #20241b, #070806);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 60px 120px -30px rgba(212,255,58, calc(.08 + .32 * var(--glow))), 0 30px 60px -20px rgba(0,0,0,.9);
  will-change: transform;
}
.device__screen {
  position: relative; border-radius: 22px; overflow: hidden; padding: clamp(18px, 2.4vw, 34px);
  background:
    linear-gradient(133deg, transparent, rgba(0,0,0,.6)),
    linear-gradient(rgba(212,255,58,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(212,255,58,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    #090b07;
  border: 1px solid rgba(212,255,58,.5);
  box-shadow: inset 0 0 60px rgba(212,255,58,.08), 0 0 24px rgba(212,255,58,.25);
}
.device__scan { position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; background: linear-gradient(transparent, rgba(212,255,58,.07), transparent); animation: scan 5s linear infinite; }
@keyframes scan { to { top: 110%; } }
.device__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: clamp(14px, 2vw, 26px); }
.device__label { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 3vw, 40px); line-height: .9; }
.device__cam { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: blink 2.4s steps(2) infinite; }
.about__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.about__text { grid-column: span 3; margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(17px, 2.05vw, 30px); line-height: 1.2; }
.about__text .w { color: rgba(242,237,226,.12); transition: color .35s; }
.about__text .w.on { color: var(--text); }
.about__text .w.hl.on { color: var(--lime); }
.stat-tile {
  border-radius: 18px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--lime); color: var(--ink);
  transform: translateY(20px) scale(.95); opacity: 0; transition: transform .9s var(--ease), opacity .6s;
}
.stat-tile.is-in { transform: none; opacity: 1; }
.stat-tile__num { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 92px); line-height: .9; }
.stat-tile__label { font-size: 14px; font-weight: 500; }
.fact {
  position: relative; overflow: hidden; border-radius: 16px; padding: 16px 18px;
  background: rgba(242,237,226,.04); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .4s, transform .5s var(--ease);
}
.fact::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(212,255,58,.12) 50%, transparent 70%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.fact:hover { border-color: rgba(212,255,58,.5); transform: translateY(-4px); }
.fact:hover::before { transform: translateX(100%); }
.fact__k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.fact b { font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.15; }
.device__dock {
  position: relative; margin: clamp(14px, 2vw, 24px) auto 0; width: max-content; max-width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(10px);
}
.device__dock span { font-size: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.06); color: rgba(242,237,226,.8); transition: transform .3s var(--ease), background .3s, color .3s; }
.device__dock span:hover { transform: translateY(-6px) scale(1.15); background: var(--lime); color: var(--ink); }

/* ---------- Numbers ---------- */
.numbers { position: relative; z-index: 2; background: var(--lime); color: var(--ink); }
.numbers__ticker { overflow: hidden; border-bottom: 1px solid rgba(13,15,11,.2); padding: 10px 0; }
.numbers__tickerTrack { white-space: nowrap; width: max-content; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .14em; animation: marquee 22s linear infinite; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers__item { padding: clamp(28px, 4vw, 56px) var(--pad); border-right: 1px solid rgba(13,15,11,.18); display: flex; flex-direction: column; gap: 12px; }
.numbers__item:last-child { border-right: 0; }
.numbers__item b { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 96px); line-height: .9; letter-spacing: -.02em; }
.numbers__item span { font-size: 15px; line-height: 1.35; font-weight: 500; opacity: .75; }
.numbers__item.reveal:nth-child(2) { transition-delay: .12s; }
.numbers__item.reveal:nth-child(3) { transition-delay: .24s; }
.numbers__item.reveal:nth-child(4) { transition-delay: .36s; }

/* ---------- Services (horizontal) ---------- */
.services { position: relative; height: 250vh; background: var(--ink); }
.services__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 5vh, 50px); padding: 90px 0 40px; }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 0 var(--pad); }
.services__meter { width: min(260px, 30vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.services__meter i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
.services__track { display: flex; gap: clamp(14px, 2vw, 24px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.svc-card {
  position: relative; width: clamp(280px, 32vw, 440px); min-height: clamp(340px, 48vh, 460px);
  border-radius: 26px; padding: clamp(22px, 2.4vw, 32px);
  background: var(--ink-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.svc-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(212,255,58,.14), transparent 45%); opacity: 0; transition: opacity .4s; }
.svc-card:hover { border-color: rgba(212,255,58,.45); }
.svc-card:hover::after { opacity: 1; }
.svc-card--accent { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.svc-card--accent p, .svc-card--accent li { color: rgba(13,15,11,.8) !important; border-color: rgba(13,15,11,.3) !important; }
.svc-card__no { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--lime); }
.svc-card--accent .svc-card__no { color: var(--ink); }
.svc-card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; margin: auto 0 14px; }
.svc-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; font-size: 15px; }
.svc-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-card li { font-size: 12px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: rgba(242,237,226,.8); }

/* animated card icons */
.svc-card__icon { position: relative; width: 84px; height: 84px; margin-top: 26px; }
.svc-card__icon i { position: absolute; border-radius: 10px; border: 2px solid var(--lime); }
.svc-card__icon i:nth-child(1) { inset: 0 30px 30px 0; animation: stackA 3s var(--ease) infinite; }
.svc-card__icon i:nth-child(2) { inset: 15px; border-color: var(--paper); animation: stackA 3s var(--ease) .2s infinite; }
.svc-card__icon i:nth-child(3) { inset: 30px 0 0 30px; background: var(--lime); animation: stackA 3s var(--ease) .4s infinite; }
@keyframes stackA { 50% { transform: translate(-6px, -6px); } }
.svc-card__icon--orbit i { border-radius: 50%; }
.svc-card__icon--orbit i:nth-child(1) { inset: 0; border-style: dashed; background: none; animation: spin 8s linear infinite; }
.svc-card__icon--orbit i:nth-child(2) { inset: 18px; animation: spin 4s linear infinite reverse; border-color: var(--paper); border-top-color: transparent; }
.svc-card__icon--orbit i:nth-child(3) { inset: 34px; background: var(--coral); border-color: var(--coral); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); } }
.svc-card__icon--phone i:nth-child(1) { inset: 0 22px; border-radius: 14px; animation: none; }
.svc-card__icon--phone i:nth-child(2) { inset: auto; left: 30px; top: 9px; width: 24px; height: 4px; border: 0; border-radius: 4px; background: var(--paper); animation: none; }
.svc-card__icon--phone i:nth-child(3) { inset: auto; left: 32px; top: 26px; width: 20px; height: 20px; border-radius: 50%; animation: gps 2.4s ease-in-out infinite; }
@keyframes gps { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(5px, 18px); } 66% { transform: translate(-5px, 32px); } }
.svc-card__icon--wrench i:nth-child(1) { inset: 0; border-radius: 50%; background: none; border-color: var(--paper); border-right-color: var(--lime); animation: spin 2.5s linear infinite; }
.svc-card__icon--wrench i:nth-child(2) { inset: 26px; border-radius: 6px; animation: spin 2.5s linear infinite reverse; }
.svc-card__icon--wrench i:nth-child(3) { inset: 37px; border-radius: 50%; animation: none; }
.svc-card__icon--bolt i { border-color: var(--ink); }
.svc-card__icon--bolt i:nth-child(1) { inset: 0 40px 40px 0; animation: bolt 1.2s steps(2) infinite; }
.svc-card__icon--bolt i:nth-child(2) { inset: 20px; animation: bolt 1.2s steps(2) .3s infinite; }
.svc-card__icon--bolt i:nth-child(3) { inset: 40px 0 0 40px; background: var(--ink); animation: bolt 1.2s steps(2) .6s infinite; }
@keyframes bolt { 50% { opacity: .2; } }

/* ---------- Services v2: 3D cylinder ---------- */
.services { height: 420vh; overflow: clip; }
.services__pin { justify-content: flex-start; gap: clamp(8px, 2vh, 22px); padding: 92px 0 24px; }
.svc3d__bgnum {
  position: absolute; right: -1vw; bottom: -5vh; z-index: 0; pointer-events: none;
  font-family: var(--display); font-weight: 700; font-size: 48vh; line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(212,255,58,.14);
}
.svc3d__bgnum.swap { animation: numFlip .8s var(--ease); }
@keyframes numFlip { from { opacity: 0; transform: translateY(18%) rotateX(70deg); } }
.services__head { position: relative; z-index: 2; }
.svc3d { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); align-items: center; gap: 2vw; padding: 0 var(--pad); }
.svc3d__info { position: relative; z-index: 2; max-width: 440px; justify-self: end; }
.svc3d__no { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--coral); letter-spacing: .1em; }
.svc3d__title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.8vw, 58px); line-height: .95; margin: 14px 0 16px; }
.svc3d__desc { margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 1.5; min-height: 4.5em; }
.svc3d__tags { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc3d__tags li { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--lime); color: var(--ink); }
.svc3d__info.swap > * { animation: infoIn .65s var(--ease) both; }
.svc3d__info.swap > :nth-child(2) { animation-delay: .06s; }
.svc3d__info.swap > :nth-child(3) { animation-delay: .12s; }
.svc3d__info.swap > :nth-child(4) { animation-delay: .18s; }
@keyframes infoIn { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
.svc3d__info.swap > .svc3d__nav { animation: none; }
.svc3d__nav { display: flex; align-items: center; gap: 10px; }
.svc3d__nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; transition: background .3s, color .3s, border-color .3s; }
.svc3d__nav button:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.svc3d__hint { margin-left: 8px; font-size: 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.svc3d__stage { position: relative; height: 100%; min-height: 380px; display: grid; place-items: center; perspective: 1500px; perspective-origin: 50% 40%; cursor: grab; touch-action: pan-y; user-select: none; }
.svc3d__stage.is-drag { cursor: grabbing; }
.svc3d__floor { position: absolute; left: 50%; bottom: 4%; width: 70%; height: 70px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(212,255,58,.22), transparent); filter: blur(12px); pointer-events: none; }
.services__track.svc3d__ring {
  --cw: clamp(240px, 21vw, 320px); --ch: min(420px, 50vh);
  position: relative; display: block; width: var(--cw); height: var(--ch); padding: 0; gap: 0;
  transform-style: preserve-3d; will-change: transform;
}
.svc3d__ring .svc-card {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0;
  transition: border-color .4s, box-shadow .4s, background .4s;
  -webkit-box-reflect: below 14px linear-gradient(transparent 70%, rgba(255,255,255,.12));
}
.svc3d__ring .svc-card h3 { font-size: clamp(22px, 2vw, 30px); }
.svc3d__ring .svc-card p { font-size: 14px; }
/* the card has a fixed height in the wheel: never let the icon, number or tags get squashed */
.svc-card__icon, .svc-card__no, .svc-card ul, .svc-card h3 { flex: none; }
.svc-card__icon { width: 84px; height: 84px; min-height: 84px; }
.svc-card p { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.svc3d__ring .svc-card { padding: clamp(18px, 1.8vw, 26px); }
/* in the wheel the icon sits in the top-right corner, so the text below gets all the height */
.svc3d__ring .svc-card__icon { position: absolute; top: 18px; right: 18px; margin: 0; transform: scale(.72); transform-origin: right top; }
.svc3d__ring .svc-card h3 { margin: auto 0 10px; }
.svc3d__ring .svc-card p {
  flex: none; margin-bottom: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
  font-size: 13.5px;
}
.services__track.svc3d__ring { --ch: clamp(360px, 54vh, 440px); }
.svc3d__ring .svc-card.is-front { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 30px 80px -20px rgba(212,255,58,.45); }
.svc3d__ring .svc-card--accent.is-front { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral), 0 30px 80px -20px rgba(255,106,61,.5); }

/* phones and short screens: plain stacked cards, no wheel */
@media (max-width: 640px), (max-height: 560px) {
  .services { height: auto; }
  .services__pin { position: relative; height: auto; padding: 80px 0 60px; }
  .svc3d { display: block; }
  .svc3d__info, .svc3d__bgnum, .svc3d__floor { display: none; }
  .svc3d__stage { display: block; height: auto; min-height: 0; perspective: none; cursor: auto; }
  .services__track.svc3d__ring { width: auto; height: auto; display: flex; flex-direction: column; gap: 14px; transform: none !important; }
  .svc3d__ring .svc-card { position: relative; inset: auto; height: auto; min-height: 0; transform: none !important; opacity: 1 !important; filter: none !important; pointer-events: auto !important; -webkit-box-reflect: none; }
  .svc3d__ring .svc-card h3 { margin-top: 26px; }
}
@media (min-width: 641px) and (max-width: 900px) and (min-height: 561px) {
  .svc3d { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; }
  .svc3d__info { justify-self: start; max-width: none; }
  .svc3d__desc { min-height: 0; margin-bottom: 12px; }
  .svc3d__tags { margin-bottom: 12px; }
  .services__track.svc3d__ring { --ch: min(360px, 38vh); --cw: 260px; }
}

/* ---------- Domains (accordion) ---------- */
.domains { position: relative; background: var(--coral); color: var(--ink); padding: clamp(80px, 14vh, 150px) var(--pad) clamp(90px, 14vh, 160px); overflow: hidden; }
.domains::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(13,15,11,.25) 22px 23px); animation: stripes 30s linear infinite; }
@keyframes stripes { to { background-position: 600px 0; } }
.domains__head { position: relative; max-width: 1180px; margin: 0 auto clamp(30px, 5vh, 54px); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.domains .outline { -webkit-text-stroke-color: var(--ink); }
.domains__lead { margin: 0; max-width: 320px; font-size: 16px; line-height: 1.45; font-weight: 500; }
.acc { position: relative; max-width: 1180px; margin: 0 auto; height: clamp(380px, 56vh, 520px); display: flex; gap: 8px; }
.acc__panel {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: var(--ink); color: var(--paper); padding: 22px 18px;
  transition: flex-grow .8s var(--ease), background .4s;
  opacity: 0; transform: translateY(60px);
}
.acc.is-in .acc__panel { opacity: 1; transform: none; transition: flex-grow .8s var(--ease), background .4s, opacity .7s calc(var(--i) * 70ms), transform .9s var(--ease) calc(var(--i) * 70ms); }
.acc__panel.is-active { flex-grow: 5; background: var(--ink-2); }
.acc__no { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--lime); }
.acc__vert { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.4vw, 20px); transition: opacity .3s; }
.acc__panel.is-active .acc__vert { opacity: 0; }
.acc__body { position: absolute; left: 24px; right: 24px; bottom: 24px; opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .5s var(--ease); pointer-events: none; }
.acc__panel.is-active .acc__body { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.acc__body h3 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.6vw, 52px); line-height: .95; margin-bottom: 14px; min-width: 300px; }
.acc__body p { margin: 0 0 18px; max-width: 440px; color: var(--muted); font-size: 15px; line-height: 1.5; min-width: 260px; }
.acc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acc__chips button { font-size: 12px; padding: 6px 11px; border-radius: 99px; background: var(--lime); color: var(--ink); font-weight: 700; transition: background .3s, transform .3s var(--ease); }
.acc__chips button:hover { background: var(--coral); transform: translateY(-3px); }
.acc__timer { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lime); transform-origin: left; transform: scaleX(0); }
.acc__panel.is-active .acc__timer.run { animation: timer var(--dur, 4s) linear forwards; }
@keyframes timer { to { transform: scaleX(1); } }
.acc__glyph { position: absolute; right: -20px; top: 40px; font-family: var(--display); font-weight: 700; font-size: 220px; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(212,255,58,.18); opacity: 0; transform: translateX(40px); transition: opacity .6s, transform .9s var(--ease); pointer-events: none; }
.acc__panel.is-active .acc__glyph { opacity: 1; transform: none; }

.orbit-sec__kicker, .sched__kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }

/* ---------- Integrations v2: live network ---------- */
.net-sec {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 50px); align-items: center;
  padding: clamp(90px, 14vh, 150px) var(--pad);
  background:
    radial-gradient(60% 60% at 70% 50%, rgba(212,255,58,.10), transparent 70%),
    linear-gradient(rgba(242,237,226,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(242,237,226,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    #0a0c08;
}
.net-sec__copy { position: relative; z-index: 2; max-width: 460px; justify-self: end; }
.net-sec__lead { margin: 20px 0 26px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.net-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 20px 22px 24px;
  background: rgba(242,237,226,.04); border: 1px solid rgba(212,255,58,.25);
  backdrop-filter: blur(8px); min-height: 150px;
}
.net-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(212,255,58,.12) 50%, transparent 65%); transform: translateX(-100%); }
.net-card.flash::before { animation: sweep .7s var(--ease); }
@keyframes sweep { to { transform: translateX(100%); } }
.net-card__k { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--coral); }
.net-card__name { display: block; margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 42px); line-height: 1; color: var(--lime); }
.net-card__use { margin: 10px 0 0; color: rgba(242,237,226,.8); font-size: 15px; line-height: 1.45; }
.net-card__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.net-card__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--lime), var(--coral)); transform-origin: left; transform: scaleX(0); }
.net-card.flash .net-card__bar i { animation: barfill 1.2s var(--ease) forwards; }
@keyframes barfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.net-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.net-list button { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); color: rgba(242,237,226,.7); transition: background .25s, color .25s, border-color .25s; }
.net-list button:hover, .net-list button.is-on { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.net { position: relative; width: 100%; height: clamp(460px, 74vh, 700px); touch-action: pan-y; }
.net__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.net__core {
  position: absolute; left: 50%; top: 50%; z-index: 50; width: clamp(110px, 12vw, 160px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #e7ff8a, var(--lime) 45%, #7d9b10 100%);
  color: var(--ink); box-shadow: 0 0 60px rgba(212,255,58,.45), 0 0 0 10px rgba(212,255,58,.08), inset 0 -10px 30px rgba(0,0,0,.25);
  pointer-events: none;
}
.net__core b { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2vw, 26px); line-height: 1; }
.net__core small { font-family: ui-monospace, Consolas, monospace; font-size: 11px; opacity: .7; margin-top: 4px; }
.net__coreRing { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(212,255,58,.6); animation: spin 12s linear infinite; }
.net__coreRing::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.net__nodes { position: absolute; inset: 0; }
.net__node {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-size: 13px; font-weight: 700; padding: 9px 15px; border-radius: 99px;
  background: rgba(20,24,15,.92); color: var(--paper); border: 1px solid rgba(242,237,226,.16);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.8);
  cursor: grab; touch-action: none; will-change: transform;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.net__node::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--lime); box-shadow: 0 0 8px var(--lime); vertical-align: 1px; }
.net__node.alt::before { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.net__node.is-on { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: 0 0 30px rgba(212,255,58,.5); }
.net__node.is-on::before { background: var(--ink); box-shadow: none; }
.net__node.is-drag { cursor: grabbing; }

/* ---------- Hero v4 extras ---------- */
.hero__aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .2; will-change: transform; }
.hero__aurora i:nth-child(3) { display: none; }
.hero__aurora i:nth-child(1) { background: var(--lime); left: -10vmax; top: -16vmax; animation: au1 16s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(2) { background: var(--coral); right: -14vmax; top: 10vmax; opacity: .16; animation: au2 19s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(3) { background: #5b7cff; left: 30vw; bottom: -30vmax; opacity: .1; animation: au3 22s ease-in-out infinite alternate; }
@keyframes au1 { to { transform: translate(30vw, 20vh) scale(1.2); } }
@keyframes au2 { to { transform: translate(-25vw, 25vh) scale(.85); } }
@keyframes au3 { to { transform: translate(-20vw, -30vh) scale(1.3); } }
.hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; font-family: ui-monospace, Consolas, monospace; font-size: 11px; letter-spacing: .08em; color: rgba(242,237,226,.45); opacity: 0; transition: opacity .6s; }
body.is-ready .hud { opacity: 1; transition-delay: 1.4s; }
.hud__h, .hud__v { position: absolute; left: 0; top: 0; background: rgba(212,255,58,.14); will-change: transform; }
.hud__h { width: 100%; height: 1px; }
.hud__v { width: 1px; height: 100%; }
.hud__xy { position: absolute; left: 0; top: 0; color: var(--lime); will-change: transform; white-space: nowrap; }
.hud__corner { position: absolute; }
.hud__corner--tl { left: var(--pad); top: 96px; }
.hud__corner--bl { left: var(--pad); bottom: 90px; writing-mode: vertical-rl; animation: bob 1.8s ease-in-out infinite; }
@media (hover: none), (pointer: coarse) { .hud__h, .hud__v, .hud__xy { display: none; } }

/* ---------- Scheduler terminal ---------- */
.sched { position: relative; background: var(--ink-2); padding: clamp(90px, 14vh, 150px) var(--pad); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sched__copy { max-width: 500px; justify-self: end; }
.sched .sec-title { font-size: clamp(44px, 7vw, 110px); }
.sched__lead { margin: 20px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.sched__stats { display: flex; gap: 12px; }
.sched__stats div { padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(242,237,226,.03); }
.sched__stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 44px; line-height: .9; color: var(--lime); }
.sched__stats span { font-size: 13px; color: var(--muted); }
.term { width: 100%; max-width: 680px; border-radius: 18px; overflow: hidden; background: #070806; border: 1px solid rgba(212,255,58,.22); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 50px -20px rgba(212,255,58,.3); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease); }
.term:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #111410; border-bottom: 1px solid var(--line); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f33; }
.term__bar i:nth-child(1) { background: var(--coral); }
.term__bar i:nth-child(2) { background: #f5c542; }
.term__bar i:nth-child(3) { background: var(--lime); }
.term__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.term__body { margin: 0; padding: 18px 20px 22px; height: clamp(380px, 54vh, 480px); overflow: hidden; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: clamp(11.5px, 1vw, 13.5px); line-height: 1.75; color: rgba(242,237,226,.85); white-space: pre-wrap; }
.term__body .p { color: var(--lime); }
.term__body .c { color: var(--paper); font-weight: 700; }
.term__body .m { color: var(--muted); }
.term__body .f { color: var(--coral); }
.term__body .ok { color: var(--lime); }
.term__caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: var(--lime); animation: blink 1s steps(2) infinite; }
.term__row { display: block; opacity: 0; transform: translateX(-10px); animation: rowSlide .35s var(--ease) forwards; }
@keyframes rowSlide { to { opacity: 1; transform: none; } }

/* ---------- Work ---------- */
.work {
  position: relative; background: var(--paper); color: var(--ink);
  padding: clamp(70px, 12vh, 140px) var(--pad) clamp(60px, 10vh, 120px);
  border-radius: 40px 40px 0 0; margin-top: -40px; z-index: 3;
}
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: 1180px; margin: 0 auto clamp(30px, 6vh, 60px); }
.work__title { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 9vw, 150px); line-height: .84; letter-spacing: -.03em; display: flex; flex-direction: column; align-items: flex-start; }
.work__title > span:last-child { margin-left: .9em; }
.work__hint { margin: 0; font-size: 15px; line-height: 1.4; text-align: right; opacity: .7; }
.work__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; border-top: 1px solid rgba(13,15,11,.2); }
.row { position: relative; border-bottom: 1px solid rgba(13,15,11,.2); opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.row.is-in { opacity: 1; transform: none; }
.row__btn {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 16px;
  padding: clamp(18px, 3vh, 30px) 6px; color: var(--ink); cursor: none; overflow: hidden; isolation: isolate;
}
@media (hover: none), (pointer: coarse) { .row__btn { cursor: pointer; } }
.row__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: inset(50% 0 50% 0); transition: clip-path .55s var(--ease); }
.row__btn:hover::before, .row__btn:focus-visible::before { clip-path: inset(0 0 0 0); }
.row__btn:hover, .row__btn:focus-visible { color: var(--paper); }
.row__no { font-size: 13px; font-weight: 700; opacity: .6; transition: color .3s; }
.row__btn:hover .row__no { color: var(--lime); opacity: 1; }
.row__name { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; transition: transform .5s var(--ease); }
.row__btn:hover .row__name { transform: translateX(18px); }
.row__meta { text-align: right; font-size: 14px; line-height: 1.35; }
.row__role { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; border: 1px solid currentColor; opacity: .75; }
.row__btn:hover .row__role { background: var(--lime); color: var(--ink); border-color: var(--lime); opacity: 1; }
.row.is-hidden { display: none; }
.work__more {
  display: flex; align-items: center; gap: 6px; margin: 44px auto 0; padding: 18px 44px; border-radius: 99px;
  border: 1px solid var(--ink); color: var(--ink); font-size: 16px; font-weight: 500;
  position: relative; overflow: hidden; isolation: isolate; transition: color .4s;
}
.work__more::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: 50%; transform: translateY(100%) scale(1.4); transition: transform .5s var(--ease), border-radius .5s; }
.work__more:hover { color: var(--lime); }
.work__more:hover::before { transform: none; border-radius: 0; }

/* Hover preview card */
.preview { position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none; width: 340px; aspect-ratio: 4 / 3; transform: translate(10%, -60%) scale(0); transition: transform .45s var(--ease); will-change: transform; }
.preview.is-on { transform: translate(10%, -60%) scale(1); }
.preview__inner {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--ink);
  background:
    radial-gradient(120% 90% at 100% 0, rgba(255,106,61,.85), transparent 55%),
    linear-gradient(160deg, var(--lime), #b8e61c);
  box-shadow: 0 30px 70px -20px rgba(13,15,11,.6);
}
.preview__no { font-family: var(--display); font-weight: 600; font-size: 70px; line-height: .8; }
.preview__kind { position: absolute; top: 24px; right: 22px; max-width: 55%; text-align: right; font-size: 12px; line-height: 1.3; font-weight: 500; }
.preview__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.preview__stats div { background: rgba(13,15,11,.1); border-radius: 10px; padding: 8px; }
.preview__stats b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1; }
.preview__stats span { font-size: 10px; opacity: .75; line-height: 1.1; display: block; margin-top: 4px; }
.preview__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.preview__chips span { font-size: 10px; padding: 3px 7px; border-radius: 99px; background: var(--ink); color: var(--lime); }

/* ---------- Stack marquee ---------- */
.stack { position: relative; z-index: 3; background: var(--paper); color: var(--ink); padding: 10px 0 clamp(60px, 10vh, 110px); overflow: hidden; }
.stack__skew { will-change: transform; }
.stack__row { overflow: hidden; padding: 6px 0; }
.stack__track { display: flex; gap: 12px; width: max-content; animation: marquee 50s linear infinite; }
.stack__row--rev .stack__track { animation-direction: reverse; animation-duration: 60s; }
.stack__row:hover .stack__track { animation-play-state: paused; }
.stack__track span { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2.6vw, 36px); white-space: nowrap; padding: 10px 24px; border-radius: 99px; border: 1px solid rgba(13,15,11,.25); transition: background .3s, color .3s, transform .4s var(--ease); }
.stack__track span:hover { background: var(--ink); color: var(--lime); transform: rotate(-4deg) scale(1.06); }
.stack__track span.alt { background: var(--lime); border-color: var(--lime); }
.stack__track span.alt2 { background: var(--coral); border-color: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Hero extras ---------- */
.hero__shape { position: absolute; left: 50%; top: 50%; width: min(78vh, 70vw); height: min(78vh, 70vw); transform: translate(-50%, -50%); pointer-events: none; opacity: .9; }
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters span {
  position: absolute; left: var(--x); top: var(--y);
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  padding: 8px 14px; border-radius: 99px; color: var(--paper);
  background: rgba(242,237,226,.04); border: 1px solid rgba(212,255,58,.3); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 1s;
  translate: var(--px, 0) var(--py, 0);
  animation: floaty var(--t) ease-in-out infinite;
}
.floaters span:nth-child(even) { border-color: rgba(255,106,61,.4); }
body.is-ready .floaters span { opacity: 1; transition-delay: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
#roleText { display: inline-block; min-width: 12ch; text-align: left; }
#roleText .sc { color: var(--lime); }

/* ---------- Nav roll hover ---------- */
.nav a { overflow: hidden; height: 1.35em; }
.nav a .roll { display: block; transition: transform .45s var(--ease); }
.nav a .roll::after { content: attr(data-text); display: block; color: var(--lime); }
.header.is-light .nav a .roll::after { color: var(--coral); }
.nav a:hover .roll { transform: translateY(-50%); }
.nav a::after { display: none; }
.nav a::before { left: -12px; top: .68em; }
.header.is-scrolled .nav, .header.is-scrolled .status { opacity: 0; pointer-events: none; transform: translateY(-10px); }
.nav, .status { transition: opacity .4s, transform .5s var(--ease); }

/* ---------- Menu button + overlay ---------- */
.menu-btn {
  position: fixed; top: 18px; right: var(--pad); z-index: 85;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center;
  transform: scale(0); transition: transform .5s var(--ease), background .3s;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}
.menu-btn.is-shown, body.menu-open .menu-btn { transform: scale(1); }
.menu-btn:hover { background: var(--coral); }
.menu-btn__lines { position: relative; width: 22px; height: 10px; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 8px; }
body.menu-open .menu-btn { background: var(--ink); color: var(--lime); }
body.menu-open .menu-btn__lines i:first-child { top: 4px; transform: rotate(45deg); }
body.menu-open .menu-btn__lines i:last-child { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 84; background: var(--lime); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--pad) 30px; overflow: hidden;
  clip-path: circle(0px at var(--cx, 95%) var(--cy, 5%));
  transition: clip-path .9s cubic-bezier(.7,0,.2,1);
  pointer-events: none;
}
body.menu-open .menu { clip-path: circle(150vmax at var(--cx, 95%) var(--cy, 5%)); pointer-events: auto; }
.menu__bgword {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-family: var(--display); font-weight: 700;
  font-size: 30vw; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(13,15,11,.14);
  pointer-events: none; animation: marquee 18s linear infinite;
}
.menu__links { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 1180px; width: 100%; margin: 0 auto; }
.menu__links a {
  position: relative; display: flex; align-items: flex-start; gap: 14px; overflow: hidden;
  font-family: var(--display); font-weight: 600; font-size: clamp(38px, 7.4vh, 86px); line-height: 1.02; letter-spacing: -.02em;
  transition: opacity .35s, color .35s;
}
.menu__links a::before { content: attr(data-n); font-size: 13px; font-weight: 700; margin-top: .9em; opacity: .55; font-family: var(--body); }
.menu__links a span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease), letter-spacing .5s var(--ease); }
body.menu-open .menu__links a span { transform: none; transition-delay: calc(.25s + var(--i) * 55ms); }
.menu__links:hover a { opacity: .3; }
.menu__links a:hover { opacity: 1; }
.menu__links a:hover span { letter-spacing: .02em; transform: translateX(16px); transition-delay: 0s; }
.menu__links a::after { content: "↗"; font-size: .5em; margin-top: .2em; opacity: 0; transform: translate(-10px, 10px); transition: opacity .3s, transform .4s var(--ease); }
.menu__links a:hover::after { opacity: 1; transform: translate(16px, 0); }
.menu__links a.is-current span { color: var(--coral); }
.menu__foot { position: relative; max-width: 1180px; width: 100%; margin: 30px auto 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-weight: 500; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
body.menu-open .menu__foot { opacity: 1; transform: none; transition-delay: .7s; }
.menu__status { display: inline-flex; align-items: center; gap: 10px; }
.menu__status i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: blink 1.4s steps(2) infinite; }
.menu__socials { display: flex; gap: 18px; }
.menu__socials a { border-bottom: 1px solid transparent; }
.menu__socials a:hover { border-color: currentColor; }
body.menu-open { overflow: hidden; }

/* ---------- Toolbox (flip bento) ---------- */
.toolbox { position: relative; background: var(--ink); padding: clamp(90px, 14vh, 150px) var(--pad); }
.toolbox__head { max-width: 1180px; margin: 0 auto clamp(30px, 5vh, 54px); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.toolbox__lead { margin: 0; max-width: 320px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.bento { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; }
.tile { perspective: 1200px; opacity: 0; transform: translateY(50px) scale(.96); transition: opacity .7s, transform .9s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.bento.is-in .tile { opacity: 1; transform: none; }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--lg { grid-column: span 2; }
.tile--md { grid-row: span 1; }
.tile__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.5,1.6,.4,1); }
.tile:hover .tile__inner, .tile.is-flipped .tile__inner { transform: rotateY(180deg); }
.tile__face { position: absolute; inset: 0; border-radius: 22px; padding: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; overflow: hidden; }
.tile__front { background: var(--ink-3); border: 1px solid var(--line); }
.tile:nth-child(3n+1) .tile__front { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tile:nth-child(4n+2) .tile__front { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.tile__num { font-size: 13px; font-weight: 700; opacity: .7; }
.tile__cat { margin-top: auto; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.8vw, 44px); line-height: .95; }
.tile--xl .tile__cat { font-size: clamp(44px, 6vw, 96px); }
.tile__count { font-size: 13px; opacity: .7; margin-top: 8px; }
.tile__deco { position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; border: 2px dashed currentColor; opacity: .25; animation: spin 18s linear infinite; }
.tile--xl .tile__deco { width: 280px; height: 280px; right: -60px; top: -60px; }
.tile__back { background: var(--paper); color: var(--ink); transform: rotateY(180deg); gap: 12px; }
.tile__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tile__tools span { font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 99px; background: var(--ink); color: var(--lime); }
.tile__used { margin-top: auto; font-size: 13px; line-height: 1.4; }
.tile__used b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }

/* ---------- Hero v3: particle name ---------- */
.hero__ptext { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: crosshair; }
.hero__inner { z-index: 2; pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__title { color: transparent; user-select: none; }
.hero__hint { margin: 22px 0 0; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.hero__mouse { width: 16px; height: 24px; border: 1.5px solid currentColor; border-radius: 10px; display: grid; justify-items: center; padding-top: 4px; }
.hero__mouse i { width: 2px; height: 5px; border-radius: 2px; background: var(--lime); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }
.hero__marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; overflow: hidden; padding: 14px 0; border-top: 1px solid var(--line); background: linear-gradient(transparent, rgba(13,15,11,.85)); pointer-events: none; }
.hero__marqueeTrack { white-space: nowrap; width: max-content; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2.4vw, 34px); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(242,237,226,.45); animation: marquee 30s linear infinite; }
.badge { z-index: 3; bottom: clamp(90px, 15vh, 150px); }
.hero__scroll { display: none; }

/* ---------- Toolbox v3: 3D keyboard ---------- */
.kb-legend { max-width: 1180px; margin: 0 auto 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.kb-legend button { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--paper); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.kb-legend button:hover, .kb-legend button.is-on { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: translateY(-3px); }
.kb-legend button span { opacity: .55; margin-left: 4px; font-weight: 500; }
.kb-stage { perspective: 1600px; perspective-origin: 50% 0; padding: 30px 0 40px; }
.kb {
  --kx: 48deg; --kz: -6deg; --ks: .9;
  max-width: 1180px; margin: 0 auto; border-radius: 30px; padding: clamp(14px, 2vw, 26px);
  background: linear-gradient(180deg, #20261a, #10130c 70%);
  border: 1px solid rgba(242,237,226,.08);
  box-shadow: 0 2px 0 rgba(255,255,255,.06) inset, 0 50px 0 -20px #070806, 0 80px 120px -40px rgba(0,0,0,.95), 0 0 120px -50px rgba(212,255,58,.35);
  transform: rotateX(var(--kx)) rotateZ(var(--kz)) scale(var(--ks));
  transform-style: preserve-3d; transform-origin: 50% 60%; will-change: transform;
}
.kb__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.kb__screen {
  flex: 1; min-width: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 12px;
  background: #0a0d06; border: 1px solid rgba(212,255,58,.25);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: clamp(14px, 1.6vw, 20px); color: var(--lime);
  text-shadow: 0 0 12px rgba(212,255,58,.6); box-shadow: inset 0 0 30px rgba(212,255,58,.08);
}
.kb__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.25) 2px 3px); }
.kb__prompt { opacity: .6; }
.kb__text { white-space: nowrap; font-weight: 700; }
.kb__caret { width: .6em; height: 1.1em; background: var(--lime); animation: blink 1s steps(2) infinite; flex: none; }
.kb__meta { margin-left: auto; font-size: 12px; color: var(--coral); text-shadow: 0 0 10px rgba(255,106,61,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.kb__knob { width: 54px; height: 54px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #4a5238, #1a1e13 70%); box-shadow: 0 4px 0 #070806, inset 0 1px 0 rgba(255,255,255,.12); position: relative; animation: spin 6s linear infinite; }
.kb__knob i { position: absolute; left: 50%; top: 7px; width: 3px; height: 12px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.kb__leds { display: flex; flex-direction: column; gap: 6px; }
.kb__leds i { width: 8px; height: 8px; border-radius: 50%; background: #2c3322; }
.kb__leds i:nth-child(1) { background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 1.2s steps(2) infinite; }
.kb__leds i:nth-child(2) { background: var(--coral); box-shadow: 0 0 8px var(--coral); animation: blink 2s steps(2) .4s infinite; }
.kb__rows { display: flex; flex-direction: column; gap: 9px; }
.kb__row { display: flex; gap: 9px; }
.key {
  --side: #0b0d08; --face1: #2f3626; --face2: #21261a; --ink-k: var(--paper);
  position: relative; flex: var(--w, 1) 1 0; min-width: 0; height: clamp(52px, 6.2vw, 72px);
  border-radius: 12px; padding-bottom: 7px; background: var(--side);
  box-shadow: 0 10px 18px -8px rgba(0,0,0,.8);
  transition: padding .12s ease, transform .12s ease, box-shadow .12s;
  cursor: pointer; user-select: none;
  opacity: 0; transform: translateY(-40px);
}
.kb.is-in .key { opacity: 1; transform: none; transition: padding .12s ease, transform .6s var(--ease) calc(var(--d) * 18ms), opacity .4s calc(var(--d) * 18ms), box-shadow .12s; }
.key__top {
  height: 100%; border-radius: 10px; padding: 8px 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, var(--face1), var(--face2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -3px 0 rgba(0,0,0,.25);
  color: var(--ink-k); transition: background .25s, color .25s;
}
.key__label { font-size: clamp(10px, .95vw, 13px); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.key__cat { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; opacity: .45; white-space: nowrap; overflow: hidden; }
.key.is-down, .kb.is-in .key.is-down { padding-bottom: 1px; transform: translateY(6px); box-shadow: 0 3px 6px -3px rgba(0,0,0,.8); transition-delay: 0s; }
.key.is-dip, .kb.is-in .key.is-dip { transform: translateY(2px); transition-delay: 0s; }
.key.is-lit { --side: #6f8a0c; --face1: #e2ff6a; --face2: var(--lime); --ink-k: var(--ink); }
.key.is-lit.alt { --side: #a8401f; --face1: #ff8a63; --face2: var(--coral); }
.key.is-lit .key__top { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 24px rgba(212,255,58,.45); }
.key.is-lit.alt .key__top { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 0 24px rgba(255,106,61,.45); }
.key--space { flex: 6 1 0; }
.key--space .key__top { align-items: center; justify-content: center; flex-direction: row; gap: 10px; }
.key--space .key__label { font-family: var(--display); font-size: clamp(13px, 1.3vw, 18px); letter-spacing: .14em; }

/* ---------- Details (stacking cards) ---------- */
.details { position: relative; background: var(--ink); padding: clamp(90px, 14vh, 150px) var(--pad) clamp(60px, 10vh, 120px); }
.details__head { max-width: 1180px; margin: 0 auto clamp(40px, 8vh, 80px); }
.details__kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }
.details__lead { margin: 18px 0 0; max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.details__deck { max-width: 1000px; margin: 0 auto; }
.dcard {
  position: sticky; top: calc(90px + var(--i) * 22px);
  height: clamp(300px, 46vh, 400px); margin-bottom: 26vh; border-radius: 30px;
  padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 14px;
  transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.6);
}
.dcard:last-child { margin-bottom: 8vh; }
.dcard:nth-child(4n+1) { background: var(--lime); color: var(--ink); }
.dcard:nth-child(4n+2) { background: var(--coral); color: var(--ink); }
.dcard:nth-child(4n+3) { background: var(--paper); color: var(--ink); }
.dcard:nth-child(4n+4) { background: var(--ink-3); color: var(--paper); border: 1px solid rgba(212,255,58,.3); }
.dcard__tag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; border: 1px solid currentColor; }
.dcard__no { grid-row: span 3; font-family: var(--display); font-weight: 700; font-size: clamp(90px, 14vw, 200px); line-height: .8; color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .35; align-self: end; }
.dcard h3 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.6vw, 68px); line-height: .95; align-self: end; }
.dcard p { margin: 0; max-width: 560px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.5; opacity: .85; }
.dcard__proj { font-size: 13px; font-weight: 700; opacity: .7; }
.dcard__proj::before { content: "↳ "; }

/* ---------- Contact v2: rotating headline + project composer ---------- */
.contact {
  position: relative; overflow: hidden; min-height: 100svh;
  background: var(--lime); color: var(--ink);
  padding: clamp(110px, 16vh, 160px) var(--pad) clamp(60px, 10vh, 100px);
  display: flex; align-items: center;
}
.contact__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.contact__rings i { position: absolute; width: 40vmax; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(13,15,11,.14); animation: ripple 7s linear infinite; }
.contact__rings i:nth-child(2) { animation-delay: -2.33s; }
.contact__rings i:nth-child(3) { animation-delay: -4.66s; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.contact__tape { position: absolute; left: -5%; right: -5%; top: 46px; transform: rotate(-2.5deg); background: var(--ink); color: var(--lime); padding: 10px 0; overflow: hidden; z-index: 1; }
.contact__tapeTrack { white-space: nowrap; width: max-content; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .14em; animation: marquee 26s linear infinite; }
.contact__grid { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.contact__kicker { font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; margin: 0 0 18px; }
.contact__big { font-family: var(--display); font-weight: 600; font-size: clamp(52px, 7.6vw, 128px); line-height: .88; letter-spacing: -.035em; margin: 0; }
.contact__lead { display: block; }
.contact__rot { position: relative; display: block; height: .95em; overflow: hidden; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.contact__rot span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(105%) rotateX(-70deg); transform-origin: 50% 100%; opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.contact__rot span.is-on { transform: none; opacity: 1; }
.contact__rot span.is-out { transform: translateY(-105%) rotateX(70deg); opacity: 0; }
.contact__steps { list-style: none; margin: clamp(28px, 5vh, 46px) 0 0; padding: 0; display: grid; gap: 10px; max-width: 420px; }
.contact__steps li { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(13,15,11,.06); border: 1px solid rgba(13,15,11,.12); transition: transform .4s var(--ease), background .3s; }
.contact__steps li:hover { transform: translateX(8px); background: rgba(13,15,11,.12); }
.contact__steps b { font-family: var(--display); font-size: 13px; padding: 4px 8px; border-radius: 8px; background: var(--ink); color: var(--lime); }

.composer {
  position: relative; border-radius: 26px; overflow: hidden;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 40px 80px -30px rgba(13,15,11,.6), 0 0 0 1px rgba(13,15,11,.4);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.composer__bar { display: flex; align-items: center; gap: 7px; padding: 12px 18px; background: #151910; border-bottom: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); }
.composer__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f33; }
.composer__bar i:nth-child(1) { background: var(--coral); }
.composer__bar i:nth-child(2) { background: #f5c542; }
.composer__bar i:nth-child(3) { background: var(--lime); }
.composer__bar span { margin-left: 8px; }
.composer__bar em { margin-left: auto; font-style: normal; color: var(--lime); }
.composer__group { border: 0; margin: 0; padding: 18px 22px 0; }
.composer__group legend { padding: 0; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.composer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.composer__chips label { position: relative; cursor: pointer; }
.composer__chips input { position: absolute; opacity: 0; pointer-events: none; }
.composer__chips span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(242,237,226,.18); transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.composer__chips span::before { content: "+"; font-size: 14px; line-height: 1; opacity: .6; transition: transform .35s var(--ease); }
.composer__chips label:hover span { border-color: var(--lime); transform: translateY(-2px); }
.composer__chips input:checked + span { background: var(--lime); color: var(--ink); border-color: var(--lime); animation: pop .35s var(--ease); }
.composer__chips input:checked + span::before { content: "✓"; opacity: 1; transform: rotate(360deg); }
.composer__chips--radio input:checked + span { background: var(--coral); border-color: var(--coral); }
.composer__chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
@keyframes pop { 50% { transform: scale(1.1); } }
.composer__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 22px 0; }
.composer__field { display: flex; flex-direction: column; gap: 6px; }
.composer__field span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.composer__field input {
  font: inherit; font-size: 14.5px; color: var(--paper);
  background: rgba(242,237,226,.05); border: 1px solid rgba(242,237,226,.14); border-radius: 12px; padding: 11px 13px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.composer__field input::placeholder { color: rgba(242,237,226,.3); }
.composer__field input:focus { outline: none; border-color: var(--lime); background: rgba(212,255,58,.06); box-shadow: 0 0 0 3px rgba(212,255,58,.15); }
.composer__preview { margin: 18px 22px 0; padding: 14px 16px; border-radius: 14px; background: #090b07; border: 1px dashed rgba(212,255,58,.3); }
.composer__previewK { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--lime); margin-bottom: 6px; }
.composer__preview p { margin: 0; white-space: pre-line; font-size: 13.5px; line-height: 1.55; color: rgba(242,237,226,.85); min-height: 6.2em; }
.composer__preview p.bump { animation: bump .35s var(--ease); }
@keyframes bump { from { opacity: .4; transform: translateY(3px); } }
.composer__send {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: calc(100% - 44px); margin: 18px 22px 0; padding: 18px 22px; border-radius: 16px;
  background: var(--lime); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .02em;
}
.composer__sendFill { position: absolute; inset: 0; z-index: -1; background: var(--coral); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .55s var(--ease), border-radius .55s var(--ease); }
.composer__send:hover .composer__sendFill { transform: none; border-radius: 0; }
.composer__sendArrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 18px; transition: transform .5s var(--ease); }
.composer__send:hover .composer__sendArrow { transform: rotate(45deg) scale(1.1); }
.composer.is-sent .composer__sendArrow { animation: fly .9s var(--ease) forwards; }
@keyframes fly { 40% { transform: translate(-6px, 6px); } 100% { transform: translate(140px, -90px) rotate(20deg); opacity: 0; } }
.composer__note { margin: 12px 22px 20px; font-size: 12px; color: var(--muted); transition: color .3s; }
.composer__field--wide { grid-column: 1 / -1; }
.composer__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.composer__field input.is-bad { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,106,61,.2); animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
/* sending: button pulses, arrow spins */
.composer.is-sending .composer__send { pointer-events: none; }
.composer.is-sending .composer__sendFill { transform: none; border-radius: 0; background: repeating-linear-gradient(-45deg, var(--lime) 0 14px, #c3ee2a 14px 28px); background-size: 40px 40px; animation: stripesMove .6s linear infinite; }
@keyframes stripesMove { to { background-position: 40px 0; } }
.composer.is-sending .composer__sendArrow { animation: spin .8s linear infinite; }
/* sent: overlay slides up over the card */
.composer__done {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 30px; text-align: center; background: var(--ink); transform: translateY(101%); transition: transform .7s var(--ease);
}
.composer.is-done .composer__done { transform: none; }
.composer__doneIcon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 38px; font-weight: 700; box-shadow: 0 0 0 12px rgba(212,255,58,.12); transform: scale(0); transition: transform .6s var(--ease) .35s; }
.composer.is-done .composer__doneIcon { transform: scale(1); }
.composer__done h3 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); }
.composer__done p { margin: 0; max-width: 360px; color: var(--muted); line-height: 1.5; }
.composer__done button { margin-top: 6px; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); }
.composer__done button:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.composer.is-error .composer__note { color: var(--coral); }
.composer__note a { color: var(--lime); text-decoration: underline; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__steps { max-width: none; }
}
@media (max-width: 640px) {
  .composer__fields { grid-template-columns: 1fr; }
  .contact__tape { top: 70px; }
  .contact__big { font-size: clamp(44px, 14vw, 72px); }
  .composer__send { font-size: 18px; }
}

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px var(--pad) 14px; background: var(--ink); }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col--end { align-items: flex-end; }
.footer__k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.footer__v { font-size: 15px; }
.footer__links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer__links a, .footer__top { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.footer__links a:hover, .footer__top:hover { border-color: currentColor; color: var(--lime); }
.footer__giant { grid-column: 1 / -1; font-family: var(--display); font-weight: 600; font-size: clamp(54px, 13.2vw, 250px); line-height: .78; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(242,237,226,.25); margin-top: 30px; transform: translateY(var(--fy, 40%)); text-align: center; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(13,15,11,.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); overflow-y: auto; background: var(--ink-2); border-left: 1px solid rgba(212,255,58,.3); padding: clamp(24px, 4vw, 48px); transform: translateX(100%); transition: transform .7s var(--ease); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__panel > *:not(.drawer__close) { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease); }
.drawer.is-open .drawer__panel > * { opacity: 1; transform: none; }
.drawer.is-open .drawer__panel > *:nth-child(2) { transition-delay: .15s; }
.drawer.is-open .drawer__panel > *:nth-child(3) { transition-delay: .2s; }
.drawer.is-open .drawer__panel > *:nth-child(4) { transition-delay: .25s; }
.drawer.is-open .drawer__panel > *:nth-child(5) { transition-delay: .3s; }
.drawer.is-open .drawer__panel > *:nth-child(6) { transition-delay: .35s; }
.drawer.is-open .drawer__panel > *:nth-child(n+7) { transition-delay: .4s; }
.drawer__close { position: sticky; top: 0; z-index: 2; float: right; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); background: var(--ink-2); font-size: 13px; }
.drawer__close span { font-size: 18px; line-height: 1; }
.drawer__close:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.drawer__no { display: block; font-family: var(--display); font-weight: 600; font-size: 90px; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--lime); }
.drawer__role { display: inline-block; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--lime); color: var(--ink); }
.drawer__role.is-contrib { background: var(--coral); }
.drawer__title { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: .95; margin: 14px 0 16px; }
.drawer__pitch { margin: 0 0 26px; font-size: 18px; line-height: 1.5; color: rgba(242,237,226,.85); }
.drawer__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 34px; }
.drawer__stats div { padding: 14px 12px; border-radius: 14px; background: rgba(212,255,58,.07); border: 1px solid rgba(212,255,58,.25); }
.drawer__stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; color: var(--lime); }
.drawer__stats span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.drawer__h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin: 0 0 14px; }
.drawer__features { list-style: none; margin: 0 0 34px; padding: 0; counter-reset: f; }
.drawer__features li { position: relative; padding: 14px 0 14px 40px; border-top: 1px solid var(--line); line-height: 1.5; color: rgba(242,237,226,.85); font-size: 15px; }
.drawer__features li::before { counter-increment: f; content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 12px; font-weight: 700; color: var(--lime); }
.drawer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__chips span { font-size: 13px; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); }

/* ---------- Reveal helpers ---------- */
.reveal, .reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in, .reveal-up.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .toolbox__head { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .floaters { display: none; }
  .dcard { grid-template-columns: 1fr; }
  .dcard__no { display: none; }
  .domains__head { flex-direction: column; align-items: flex-start; }
  .acc { flex-direction: column; height: auto; }
  .acc__panel { flex: none; height: 64px; transition: height .7s var(--ease), background .4s, opacity .7s, transform .9s var(--ease); }
  .acc.is-in .acc__panel { transition: height .7s var(--ease), background .4s, opacity .7s calc(var(--i) * 70ms), transform .9s var(--ease) calc(var(--i) * 70ms); }
  .acc__panel.is-active { height: 360px; }
  .acc__vert { writing-mode: horizontal-tb; transform: none; left: 60px; bottom: auto; top: 20px; }
  .acc__body h3, .acc__body p { min-width: 0; }
  .net-sec, .sched { grid-template-columns: 1fr; }
  .net-sec__copy, .sched__copy { justify-self: start; max-width: none; }
  .net { height: 520px; }
  .net__node { font-size: 11px; padding: 7px 11px; }
  .term { transform: none; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__text { grid-column: 1 / -1; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .numbers__item:nth-child(2) { border-right: 0; }
  .numbers__item:nth-child(-n+2) { border-bottom: 1px solid rgba(13,15,11,.18); }
  .row__btn { grid-template-columns: 44px 1fr; }
  .row__meta { grid-column: 2; text-align: left; }
  .work__head { flex-direction: column; align-items: flex-start; }
  .work__hint { text-align: left; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer__col--end { align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .menu-btn { transform: scale(1); width: 50px; height: 50px; top: 14px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 160px; }
  .kb { --kx: 0deg !important; --kz: 0deg !important; --ks: 1 !important; padding: 12px; border-radius: 20px; }
  .kb__row { flex-wrap: wrap; }
  .key { flex-basis: 28%; height: 50px; }
  .kb__knob, .kb__leds { display: none; }
  .kb__meta { display: none; }
  .hero__hint { display: none; }
  .tile--xl, .tile--lg { grid-column: auto; grid-row: auto; }
  .tile--xl .tile__cat { font-size: 44px; }
  .dcard { top: calc(70px + var(--i) * 14px); height: auto; min-height: 300px; margin-bottom: 18vh; }
  .menu__links a { font-size: clamp(34px, 6.4vh, 56px); }
  .header { grid-template-columns: 1fr auto; }
  .status { display: none; }
  .badge { display: none; }
  .about { height: auto; }
  .about__stage { position: relative; height: auto; padding-top: 60px; }
  .device { --rx: 0deg !important; --s: 1 !important; --ty: 0px !important; --glow: 1 !important; padding: 8px; border-radius: 24px; }
  .about__grid { grid-template-columns: 1fr; }
  .device__dock { display: none; }
  .services { height: auto; }
  .services__pin { position: relative; height: auto; }
  .services__head { flex-direction: column; align-items: flex-start; }
  .services__meter { display: none; }
  .services__track { flex-direction: column; width: auto; transform: none !important; }
  .svc-card { width: 100%; min-height: 0; }
  .svc-card h3 { margin-top: 26px; }
  .drawer__stats { grid-template-columns: 1fr 1fr; }
}

/* short screens (e.g. a phone held sideways): the pinned 3D About card can't fit, so it scrolls normally */
@media (max-height: 560px) {
  .about { height: auto; }
  .about__stage { position: relative; height: auto; padding: 70px var(--pad) 40px; }
  .device { --rx: 0deg !important; --ry: 0deg !important; --s: 1 !important; --ty: 0px !important; --glow: 1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Hero: pitch bar along the bottom (injected by main.js) ---------- */
.hero__pitch {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 82px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  pointer-events: none;
}
.hero__pitch > * { pointer-events: auto; }
.hero__pitchBig { margin: 0; font-family: var(--display); font-size: clamp(26px, 2.9vw, 46px); line-height: 1.06; letter-spacing: -.01em; color: var(--paper); text-align: left; }
.hero__pitchBig span { display: block; font-weight: 400; color: rgba(242,237,226,.78); }
.hero__pitchBig b { position: relative; display: inline-block; font-weight: 600; }
.hero__pitchBig b::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; border-radius: 4px; background: linear-gradient(90deg, var(--lime), var(--coral)); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .9s; z-index: -1; }
.hero__pitchBig.is-in b::after { transform: scaleX(1); }
.hero__pitchSide { max-width: 400px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
.hero__pitchSide p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.hero__ctas { display: flex; align-items: center; gap: 22px; }
.hero__cta { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 99px; background: var(--lime); color: var(--ink) !important; font-weight: 700; font-size: 15px; overflow: hidden; isolation: isolate; box-shadow: 0 14px 34px -14px rgba(212,255,58,.7); transition: box-shadow .4s; }
.hero__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--coral); transform: translateX(-101%); transition: transform .55s var(--ease); }
.hero__cta:hover::before { transform: none; }
.hero__cta:hover { box-shadow: 0 18px 40px -14px rgba(255,106,61,.7); }
.hero__ctaArrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 16px; transition: transform .45s var(--ease); }
.hero__cta:hover .hero__ctaArrow { transform: rotate(-45deg); }
.hero__cta2 { position: relative; font-weight: 700; font-size: 15px; color: var(--paper) !important; padding: 4px 0; }
.hero__cta2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--lime); transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease); }
.hero__cta2:hover::after { transform: scaleX(1); }
/* the bar replaces the old hint and scroll cue; the badge moves up out of its way */
.hero:has(.hero__pitch) .hero__hint, .hero:has(.hero__pitch) .hud__corner--bl { display: none; }
.hero:has(.hero__pitch) .badge { bottom: auto; top: clamp(110px, 18vh, 170px); }
@media (max-height: 760px) and (min-width: 901px) {
  .hero__pitchSide p { display: none; }
  .hero__pitch { bottom: 70px; }
}
@media (max-width: 900px) {
  .hero__pitch { position: relative; left: auto; right: auto; bottom: auto; margin: 34px 0 70px; flex-direction: column; align-items: flex-start; gap: 22px; width: 100%; }
  .hero__pitchSide { align-items: flex-start; text-align: left; }
}
.hero__cta, .hero__cta2 { white-space: nowrap; }
.hero__ctas { flex-wrap: wrap; row-gap: 12px; }
