/* ==========================================================================
   FRYVIN — Digital Studio
   Mobile-first stylesheet. No frameworks, no external requests.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --black: #080B12;
  --night: #101827;
  --white: #F8FAFC;
  --gray: #94A3B8;
  --accent: #628BFF;
  --accent-ink: #3D63E0;          /* accessible accent for light backgrounds */

  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--gray);
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .26);
  --surface: rgba(16, 24, 39, .72);
  --surface-2: #0C111C;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --max: 1220px;
  --header-h: 68px;
  --section-y: clamp(5.5rem, 12vw, 10rem);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --t: .45s var(--ease);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; border-radius: 10px;
  background: var(--white); color: var(--black); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography primitives ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.hero__eyebrow::before { display: none; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(98,139,255,.16); }

.section-title {
  margin-top: 1.1rem;
  font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 650;
  text-wrap: balance;
}
.section-lead {
  margin-top: 1.25rem; max-width: 34rem;
  color: var(--muted); font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); line-height: 1.65;
  text-wrap: pretty;
}
.section { padding-block: var(--section-y); position: relative; }
.section-head { margin-bottom: clamp(3rem, 7vw, 5rem); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--h); padding: 0 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .97rem; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color var(--t), border-color var(--t), color var(--t), transform .25s var(--ease), box-shadow var(--t);
}
.btn--sm { --h: 40px; padding: 0 1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--white); color: var(--black);
  box-shadow: 0 0 0 0 rgba(98,139,255,0);
}
.btn--primary:hover { background: #fff; box-shadow: 0 10px 40px -12px rgba(98,139,255,.65), 0 0 0 4px rgba(98,139,255,.16); }
.btn--ghost { border-color: var(--line-strong); color: var(--fg); background: rgba(16,24,39,.35); }
.btn--ghost:hover { border-color: rgba(98,139,255,.6); background: rgba(98,139,255,.08); }
.btn:active { transform: translateY(1px); }
.btn__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); }
.mark { width: 32px; height: 32px; fill: currentColor; flex: none; }
.mark .acc { fill: var(--accent); }
.brand__word { font-weight: 750; font-size: 1.02rem; letter-spacing: .2em; margin-right: -.2em; }
.brand--lg .mark { width: 40px; height: 40px; }
.brand--lg .brand__word { font-size: 1.2rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 11, 18, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.nav .brand { margin-right: auto; }
.nav__links, .nav__cta { display: none; }

.nav__toggle {
  width: 44px; height: 44px; margin-right: -.5rem; border-radius: 12px;
  display: grid; place-items: center;
}
.nav__toggle-bars { position: relative; width: 22px; height: 10px; }
.nav__toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px; background: var(--fg);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle-bars span:first-child { top: 0; }
.nav__toggle-bars span:last-child { top: 8.4px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:first-child { top: 4.2px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:last-child { top: 4.2px; transform: rotate(-45deg); }

.mobile-menu {
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { border-top: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem .25rem; border-bottom: 1px solid var(--line);
  font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: -.03em;
  transition: color .25s, padding .35s var(--ease);
}
.mobile-menu__list a span { font-family: var(--mono); font-size: .75rem; color: var(--accent); letter-spacing: .08em; }
.mobile-menu__list a:hover, .mobile-menu__list a:focus-visible { padding-left: .75rem; }
.mobile-menu__cta { margin-top: 2rem; align-self: stretch; }
.mobile-menu__slogan { margin-top: auto; padding-top: 2rem; color: var(--muted); font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) .mobile-menu__list li { animation: menuIn .5s var(--ease) both; }
  .mobile-menu__list li:nth-child(2) { animation-delay: .04s !important; }
  .mobile-menu__list li:nth-child(3) { animation-delay: .08s !important; }
  .mobile-menu__list li:nth-child(4) { animation-delay: .12s !important; }
  .mobile-menu__list li:nth-child(5) { animation-delay: .16s !important; }
  .mobile-menu__list li:nth-child(6) { animation-delay: .2s !important; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(10px); } }
body.menu-open { overflow: hidden; }
.site-header.is-open { background: var(--black); -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (min-width: 960px) {
  .nav__toggle, .mobile-menu { display: none !important; }
  .nav__links { display: block; }
  .nav__cta { display: inline-flex; margin-left: .5rem; }
  .nav__links ul { display: flex; gap: .25rem; }
  .nav__links a {
    position: relative; display: block; padding: .5rem .85rem; border-radius: 999px;
    font-size: .92rem; font-weight: 500; color: var(--muted);
    transition: color .25s, background-color .25s;
  }
  .nav__links a:hover { color: var(--fg); background: rgba(148,163,184,.08); }
  .nav__links a.is-active { color: var(--fg); }
  .nav__links a.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px;
    border-radius: 50%; background: var(--accent);
  }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 4rem));
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(98,139,255,.16), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(16,24,39,.9), transparent 70%),
    linear-gradient(180deg, var(--black) 0%, #0A0E18 60%, var(--black) 100%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(148,163,184,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 65% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 65% 40%, #000 10%, transparent 75%);
}
.hero__bg::after { /* horizon */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98,139,255,.45), transparent);
}

.hero__inner { display: grid; gap: 2.5rem; align-items: center; flex: 1; }
.hero__inner > * { min-width: 0; }
.hero__title {
  margin-top: 1.4rem;
  font-size: clamp(2.7rem, 1.4rem + 6.2vw, 6rem);
  line-height: .98; letter-spacing: -.048em; font-weight: 680;
}
.hero__title .line { display: block; }
.hero__title .line--soft {
  background: linear-gradient(100deg, var(--white) 0%, #B9C7E6 45%, var(--accent) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.hero__lead { margin-top: 1.6rem; max-width: 31rem; color: var(--muted); font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); line-height: 1.6; }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__disciplines {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #7D8BA3;
}
.hero__disciplines li { display: inline-flex; align-items: center; gap: 1.2rem; }
.hero__disciplines li + li::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: #3A4760; }
@media (max-width: 479px) { .hero__disciplines li + li::before { display: none; } .hero__disciplines { gap: .4rem 1.4rem; } }

@media (max-width: 479px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* --- Strata visual --- */
.hero__visual { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.strata {
  position: relative; width: 100%; aspect-ratio: 1 / .92;
  container-type: inline-size;
  perspective: 1600px;
}
.strata__glow {
  position: absolute; left: 18%; right: 18%; top: 34%; bottom: 14%;
  background: radial-gradient(closest-side, rgba(98,139,255,.38), transparent);
  filter: blur(20px);
}
.strata__stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-42deg) translateY(4%);
}
.plane {
  position: absolute; left: 21%; top: 21%; width: 58%; aspect-ratio: 1;
  border-radius: 6cqi;
  border: 1px solid rgba(148,163,184,.22);
  background:
    linear-gradient(135deg, rgba(98,139,255,.10), rgba(16,24,39,.55) 60%),
    rgba(12,17,28,.78);
  box-shadow: 0 0 0 1px rgba(8,11,18,.6), 0 40px 60px -20px rgba(0,0,0,.6);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
}
.plane svg { width: 100%; height: 100%; }
.plane--tech { transform: translateZ(0); }
.plane--design { transform: translateZ(13cqi); background: linear-gradient(135deg, rgba(98,139,255,.12), rgba(16,24,39,.4) 70%), rgba(12,17,28,.55); }
.plane--idea { transform: translateZ(26cqi); background: linear-gradient(135deg, rgba(98,139,255,.2), rgba(16,24,39,.3) 70%), rgba(12,17,28,.42); border-color: rgba(98,139,255,.45); }

.plane .code rect { fill: rgba(148,163,184,.32); }
.plane .code rect.hi { fill: var(--accent); opacity: .85; }
.plane .cols rect { fill: rgba(98,139,255,.06); stroke: rgba(98,139,255,.22); stroke-width: .8; }
.plane .shape { fill: none; stroke: rgba(248,250,252,.75); stroke-width: 1.4; }
.plane .shape--fill { fill: rgba(98,139,255,.22); stroke: var(--accent); }
.plane .links path { fill: none; stroke: rgba(148,163,184,.55); stroke-width: 1.2; stroke-dasharray: 3 4; }
.plane .node { fill: var(--white); }
.plane .core { fill: var(--accent); }
.plane .core-ring { fill: none; stroke: rgba(98,139,255,.6); stroke-width: 1.2; transform-origin: 100px 100px; }

.strata__labels { position: absolute; inset: 0; pointer-events: none; }
.lbl {
  position: absolute; right: 0;
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: clamp(.62rem, 1.9cqi, .74rem); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.lbl::before { content: ""; width: 8cqi; height: 1px; background: linear-gradient(90deg, transparent, rgba(148,163,184,.6)); order: -1; }
.lbl span { color: var(--accent); }
.lbl--idea { top: 18%; }
.lbl--design { top: 41%; }
.lbl--tech { top: 64%; }
.lbl--tech, .lbl--design { right: 0; }

@media (prefers-reduced-motion: no-preference) {
  .strata__stage { animation: floatStage 9s ease-in-out infinite; }
  .plane--design { animation: liftDesign 9s ease-in-out infinite; }
  .plane--idea { animation: liftIdea 9s ease-in-out infinite; }
  .plane .core-ring { animation: pulseRing 3.6s ease-out infinite; }
  .plane .links path { animation: dash 14s linear infinite; }

  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__copy > :nth-child(5) { animation-delay: .32s; }
  .hero__visual { animation: fadeIn 1.4s var(--ease) .2s both; }
}
@keyframes floatStage { 50% { transform: rotateX(58deg) rotateZ(-42deg) translateY(4%) translateZ(1.5cqi); } }
@keyframes liftDesign { 50% { transform: translateZ(15cqi); } }
@keyframes liftIdea { 50% { transform: translateZ(31cqi); } }
@keyframes pulseRing { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -140; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } }

.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 2rem 1.75rem; margin-top: 2rem;
  font-size: .85rem; color: var(--muted);
}
.hero__slogan span { color: var(--fg); }
.scroll-cue {
  display: none; align-items: center; gap: .75rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
.scroll-cue__line { position: relative; width: 1px; height: 36px; background: var(--line-strong); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue__line::after { animation: cue 2.2s var(--ease) infinite; }
}
@keyframes cue { to { top: 100%; } }

@media (min-width: 640px) {
  .scroll-cue { display: inline-flex; }
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 2rem; }
  .hero__visual { max-width: none; margin-right: -2rem; }
}
@media (max-width: 959px) {
  .hero { min-height: auto; }
  .hero__visual { margin-top: -1rem; max-width: 440px; }
}

/* ==========================================================================
   SERVICES — bento
   ========================================================================== */
.bento { display: grid; gap: 1rem; }
.svc {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,24,39,.85), rgba(12,17,28,.6));
  box-shadow: var(--shadow);
  transition: border-color var(--t), transform var(--t), background-color var(--t);
}
.svc::before { /* cursor-follow light, set by JS; static fallback otherwise */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 70%) var(--my, 0%), rgba(98,139,255,.12), transparent 60%);
  transition: opacity var(--t);
}
.svc:hover { border-color: rgba(98,139,255,.35); }
.svc:hover::before { opacity: 1; }
.svc__head { display: flex; align-items: center; justify-content: space-between; }
.svc__num { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.svc__icon {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(8,11,18,.5);
  fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: border-color var(--t), stroke var(--t), transform var(--t);
}
.svc__icon .dot { fill: var(--fg); stroke: none; }
.svc:hover .svc__icon { border-color: rgba(98,139,255,.6); stroke: var(--accent); transform: rotate(-6deg); }
.svc__title { margin-top: 1.6rem; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; }
.svc__text { margin-top: .7rem; color: var(--muted); max-width: 30rem; }
.svc__visual { margin-top: 2rem; position: relative; flex: 1; min-height: 150px; display: grid; place-items: center; }

/* Web visual */
.viz-web { grid-template-columns: 1fr auto; align-items: end; gap: 1rem; place-items: end stretch; }
.viz-web__desk, .viz-web__phone { border: 1px solid var(--line-strong); background: var(--black); border-radius: 12px; overflow: hidden; }
.viz-web__bar { display: flex; gap: 5px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.viz-web__bar i { width: 7px; height: 7px; border-radius: 50%; background: #253047; }
.viz-web__body { padding: 16px; display: grid; gap: 8px; }
.b { display: block; height: 7px; border-radius: 4px; background: #1E2738; transition: width .6s var(--ease), background-color .6s; }
.b--title { height: 12px; width: 62%; background: #2A3550; }
.b--line { width: 86%; }
.b--short { width: 54%; }
.b--btn { height: 16px; width: 90px; border-radius: 8px; background: var(--accent); margin-top: 4px; }
.viz-web__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.viz-web__cards span { height: 46px; border-radius: 8px; border: 1px solid var(--line); background: #0E1422; transition: transform .6s var(--ease); }
.viz-web__phone { width: 92px; height: 150px; padding: 14px 10px; display: grid; gap: 7px; align-content: start; border-radius: 16px; }
.viz-web__phone .b--title { width: 80%; }
.viz-web__phone .b--btn { width: 60%; height: 12px; }
.viz-web__tile { height: 26px; border-radius: 6px; border: 1px solid var(--line); background: #0E1422; }
.svc--web:hover .viz-web__cards span:nth-child(1) { transform: translateY(-4px); }
.svc--web:hover .viz-web__cards span:nth-child(2) { transform: translateY(-8px); transition-delay: .05s; }
.svc--web:hover .viz-web__cards span:nth-child(3) { transform: translateY(-4px); transition-delay: .1s; }
.svc--web:hover .b--short { width: 72%; }

/* Software visual */
.viz-soft svg { width: 100%; max-width: 300px; }
.viz-soft .wires path { fill: none; stroke: rgba(148,163,184,.3); stroke-width: 1.2; }
.viz-soft .wires--live path { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 8 140; stroke-dashoffset: 0; opacity: 0; transition: opacity .4s; }
.viz-soft .mod { fill: #0E1422; stroke: rgba(148,163,184,.4); stroke-width: 1.2; transition: stroke .4s, fill .4s; }
.viz-soft .mod--accent { fill: rgba(98,139,255,.18); stroke: var(--accent); }
.svc--soft:hover .wires--live path { opacity: 1; }
.svc--soft:hover .mod { stroke: rgba(248,250,252,.7); }
@media (prefers-reduced-motion: no-preference) {
  .svc--soft:hover .wires--live path { animation: flow 1.6s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -148; } }

/* Design visual */
.viz-design { grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.viz-design__type { font-size: clamp(4rem, 10vw, 5.5rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; color: var(--fg); transition: font-weight .6s var(--ease); }
.svc--design:hover .viz-design__type { font-weight: 800; }
.viz-design__swatches { display: flex; }
.viz-design__swatches span {
  width: 44px; height: 64px; border-radius: 10px; background: var(--c);
  border: 1px solid rgba(148,163,184,.3); margin-left: -18px;
  transition: margin .5s var(--ease), transform .5s var(--ease);
}
.viz-design__swatches span:first-child { margin-left: 0; }
.svc--design:hover .viz-design__swatches span { margin-left: 4px; }
.svc--design:hover .viz-design__swatches span:first-child { margin-left: 0; }

/* Automation visual */
.viz-auto { width: 100%; }
.viz-auto__track { position: relative; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.viz-auto__step {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .55rem;
  padding: .8rem .9rem; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--black);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: border-color .4s, color .4s;
}
.viz-auto__step b { font-weight: 500; }
.viz-auto__step::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; transition: all .4s; }
.viz-auto__step--end { border-color: rgba(98,139,255,.5); color: var(--fg); }
.viz-auto__step--end::before { background: var(--accent); border-color: var(--accent); }
.viz-auto__pulse { display: none; }
.svc--auto:hover .viz-auto__step { border-color: rgba(98,139,255,.4); color: var(--fg); }
.svc--auto:hover .viz-auto__step::before { border-color: var(--accent); }

@media (min-width: 640px) {
  .viz-auto__track { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .viz-auto__track::before { content: ""; position: absolute; left: 4%; right: 4%; top: 50%; height: 1px; background: var(--line-strong); }
  .viz-auto__pulse {
    display: block; position: absolute; top: 50%; left: 4%; width: 60px; height: 2px; margin-top: -1px;
    background: linear-gradient(90deg, transparent, var(--accent)); border-radius: 2px; z-index: 0;
  }
}
@media (min-width: 640px) and (prefers-reduced-motion: no-preference) {
  .viz-auto__pulse { animation: travel 3.4s var(--ease) infinite; }
}
@keyframes travel { 0% { left: 4%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(96% - 60px); opacity: 0; } }

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
  .svc--web { grid-column: span 4; }
  .svc--soft { grid-column: span 2; }
  .svc--design { grid-column: span 2; }
  .svc--auto { grid-column: span 4; }
}
@media (min-width: 720px) and (max-width: 959px) {
  .svc--web, .svc--auto { grid-column: span 6; }
  .svc--soft, .svc--design { grid-column: span 3; }
}

/* ==========================================================================
   SOLUTIONS
   ========================================================================== */
.solutions { background: linear-gradient(180deg, var(--black), var(--night) 45%, var(--black)); }
.solutions::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.solutions__grid { display: grid; gap: 3rem; }
.solutions__grid > * { min-width: 0; }
.solutions__tablist { margin-top: 2.5rem; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: .25rem; }
.solutions__tablist::-webkit-scrollbar { display: none; }
.solutions__tablist [role="tab"] {
  flex: none; display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); font-weight: 600; font-size: .95rem;
  transition: color .3s, border-color .3s, background-color .3s;
}
.solutions__tablist [role="tab"] span { font-family: var(--mono); font-size: .7rem; color: inherit; opacity: .7; }
.solutions__tablist [role="tab"]:hover { color: var(--fg); border-color: rgba(148,163,184,.5); }
.solutions__tablist [role="tab"][aria-selected="true"] { color: var(--black); background: var(--white); border-color: var(--white); }
.solutions__tablist [role="tab"][aria-selected="true"] span { color: var(--accent-ink); opacity: 1; }

.solutions__panels { display: grid; gap: 1rem; }
.sol {
  position: relative; overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(98,139,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(8,11,18,.6), rgba(8,11,18,.85));
}
.sol__index {
  position: absolute; right: clamp(1.25rem, 3vw, 2.5rem); top: .5rem;
  font-size: clamp(5rem, 14vw, 9rem); font-weight: 750; letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(148,163,184,.22);
  pointer-events: none; user-select: none;
}
.sol__title { position: relative; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.1; max-width: 16ch; }
.sol__challenge { position: relative; margin-top: 1.5rem; color: var(--muted); max-width: 36rem; font-size: 1.05rem; }
.sol__challenge span { display: block; margin-bottom: .35rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sol__list { position: relative; margin-top: 1.75rem; display: grid; gap: .1rem; border-top: 1px solid var(--line); }
.sol__list li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .95rem 0; border-bottom: 1px solid var(--line); font-weight: 500;
}
.sol__list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .2rem; border-radius: 50%;
  background: rgba(98,139,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.5 9.2 2.3 2.3 4.7-5' fill='none' stroke='%23628BFF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

.tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: .8rem; color: var(--muted); font-weight: 500;
}

/* Tabs enhancement (JS only) */
.js .solutions__panels.is-tabbed .sol[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .solutions__panels.is-tabbed .sol:not([hidden]) { animation: panelIn .55s var(--ease) both; }
}
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }

@media (min-width: 960px) {
  .solutions__grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
  .solutions__intro { position: sticky; top: calc(var(--header-h) + 3rem); }
  .solutions__tablist { flex-direction: column; overflow: visible; margin: 2.75rem 0 0; padding: 0; gap: 0; border-top: 1px solid var(--line); }
  .solutions__tablist [role="tab"] {
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    padding: 1.1rem .25rem; font-size: 1.15rem; justify-content: flex-start; position: relative;
  }
  .solutions__tablist [role="tab"]::after {
    content: "→"; margin-left: auto; opacity: 0; transform: translateX(-8px); transition: all .35s var(--ease); color: var(--accent);
  }
  .solutions__tablist [role="tab"][aria-selected="true"] { background: none; color: var(--fg); }
  .solutions__tablist [role="tab"][aria-selected="true"] span { color: var(--accent); }
  .solutions__tablist [role="tab"][aria-selected="true"]::after,
  .solutions__tablist [role="tab"]:hover::after { opacity: 1; transform: none; }
  .solutions__tablist [role="tab"][aria-selected="true"]::before {
    content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent);
  }
  .sol { min-height: 540px; padding: 3.25rem; }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.section-head--split { display: grid; gap: 1rem; align-items: end; }
@media (min-width: 860px) {
  .section-head--split { grid-template-columns: 1fr 1fr; }
  .section-head--split .section-lead { justify-self: end; }
}
.project { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project__media { perspective: 1400px; }
.mock {
  container-type: inline-size;
  border-radius: clamp(14px, 2.2vw, 22px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.85), 0 0 0 6px rgba(16,24,39,.6);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease);
  transform: rotateY(-5deg) rotateX(3deg);
}
.project--flip .mock { transform: rotateY(5deg) rotateX(3deg); }
.project:hover .mock { transform: none; box-shadow: 0 60px 100px -40px rgba(98,139,255,.35), 0 0 0 6px rgba(16,24,39,.6); }

.project__meta { display: flex; align-items: center; gap: .8rem; }
.project__num { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid rgba(98,139,255,.45); background: rgba(98,139,255,.08);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #A9BEFF;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.project__name { margin-top: 1.25rem; font-size: clamp(2.6rem, 2rem + 3vw, 4.25rem); font-weight: 720; letter-spacing: -.045em; line-height: 1; }
.project__cat { margin-top: .5rem; color: var(--accent); font-weight: 600; }
.project__desc { margin-top: 1.1rem; color: var(--muted); max-width: 30rem; }
.projects__note { margin-top: 2.5rem; font-size: .82rem; color: #7D8BA3; max-width: 40rem; }

@media (min-width: 900px) {
  .project { grid-template-columns: 1.35fr .9fr; gap: clamp(3rem, 6vw, 5.5rem); }
  .project--flip { grid-template-columns: .9fr 1.35fr; }
  .project--flip .project__media { order: 2; }
}

/* --- NOVA (light dashboard) --- */
.mock--nova { background: #EEF2F8; }
.nova { display: grid; grid-template-columns: 9cqi 1fr; aspect-ratio: 16 / 10.5; color: #0F172A; font-size: 1.9cqi; }
.nova__side { background: #0E1422; display: flex; flex-direction: column; align-items: center; gap: 2.6cqi; padding-top: 3cqi; }
.nova__logo { width: 4.2cqi; height: 4.2cqi; border-radius: 1.2cqi; background: linear-gradient(135deg, var(--accent), #3D63E0); margin-bottom: 1.5cqi; }
.nova__nav { width: 3.4cqi; height: 3.4cqi; border-radius: 1cqi; background: #1F2940; }
.nova__nav.is-on { background: rgba(98,139,255,.35); box-shadow: inset 0 0 0 1px var(--accent); }
.nova__main { padding: 3cqi 3.4cqi; display: grid; gap: 2.4cqi; grid-template-rows: auto auto 1fr; }
.nova__top { display: flex; align-items: center; gap: 2cqi; }
.nova__top b { font-size: 2.6cqi; font-weight: 700; letter-spacing: -.02em; margin-right: auto; }
.nova__search { width: 24cqi; height: 4.2cqi; border-radius: 2cqi; background: #fff; border: 1px solid #DCE3EE; }
.nova__avatar { width: 4.2cqi; height: 4.2cqi; border-radius: 50%; background: linear-gradient(135deg, #C7D4F5, #8FA8EE); }
.nova__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqi; }
.nova__kpi { background: #fff; border-radius: 1.8cqi; padding: 2cqi 2.2cqi; border: 1px solid #E2E8F0; display: grid; gap: .4cqi; }
.nova__kpi small { font-size: 1.5cqi; color: #64748B; font-weight: 600; }
.nova__kpi strong { font-size: 3.4cqi; letter-spacing: -.03em; font-weight: 750; }
.nova__kpi em { font-style: normal; font-size: 1.4cqi; color: #2F9E6B; font-weight: 700; }
.nova__kpi em.neutral { color: #64748B; }
.nova__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2cqi; min-height: 0; }
.nova__card { background: #fff; border-radius: 1.8cqi; padding: 2cqi 2.2cqi; border: 1px solid #E2E8F0; display: flex; flex-direction: column; min-height: 0; }
.nova__card small { font-size: 1.5cqi; color: #64748B; font-weight: 600; }
.nova__bars { flex: 1; display: flex; align-items: flex-end; gap: 1.1cqi; margin-top: 2cqi; }
.nova__bars i { flex: 1; height: var(--h); border-radius: .7cqi .7cqi .2cqi .2cqi; background: #D6E0F7; transition: height 1s var(--ease); }
.nova__bars i.hi { background: var(--accent); }
.nova__list p { display: flex; align-items: center; gap: 1.2cqi; padding: 1.3cqi 0; border-bottom: 1px solid #EEF2F7; }
.nova__list p:last-child { border: 0; }
.nova__list i { width: 2.6cqi; height: 2.6cqi; border-radius: 50%; background: #E2E8F0; flex: none; }
.nova__list span { flex: 1; height: 1.2cqi; border-radius: 1cqi; background: #E2E8F0; }
.nova__list b { font-size: 1.3cqi; padding: .4cqi 1cqi; border-radius: 1cqi; background: #E6F6EE; color: #217A52; font-weight: 700; white-space: nowrap; }
.nova__list b.wip { background: #E8EEFF; color: #3D63E0; }

/* --- ORBIT (website) --- */
.mock--orbit { background: #0B0F19; }
.browser__bar { display: flex; align-items: center; gap: .9cqi; padding: 1.5cqi 2cqi; background: #121A2A; border-bottom: 1px solid rgba(148,163,184,.14); }
.browser__bar i { width: 1.3cqi; height: 1.3cqi; border-radius: 50%; background: #2A3550; }
.browser__bar span { margin-inline: auto; padding: .5cqi 4cqi; border-radius: 1cqi; background: #0B0F19; font-family: var(--mono); font-size: 1.4cqi; color: #7D8BA3; }
.orbit { aspect-ratio: 16 / 9.6; padding: 3cqi 5cqi 4cqi; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(60% 70% at 75% 40%, rgba(98,139,255,.22), transparent 70%), #0B0F19; }
.orbit__nav { display: flex; align-items: center; gap: 2.4cqi; }
.orbit__nav b { font-size: 1.9cqi; letter-spacing: .3em; font-weight: 750; margin-right: auto; }
.orbit__nav span { width: 6cqi; height: .9cqi; border-radius: 1cqi; background: #2A3550; }
.orbit__nav .orbit__cta { width: 9cqi; height: 3.2cqi; border-radius: 2cqi; background: var(--white); }
.orbit__hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2cqi; }
.orbit__copy small { font-family: var(--mono); font-size: 1.3cqi; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
.orbit__h { margin-top: 1.4cqi; font-size: 5.8cqi; line-height: .98; letter-spacing: -.05em; font-weight: 700; }
.orbit__btn { display: block; margin-top: 2.6cqi; width: 15cqi; height: 4cqi; border-radius: 2cqi; background: var(--accent); }
.orbit__art { width: 100%; overflow: visible; }
.orbit__art ellipse { fill: none; stroke: rgba(248,250,252,.28); stroke-width: .8; }
.orbit__art .sun { fill: var(--accent); }
.orbit__art .moon { fill: var(--white); }
.orbit__art .moon--b { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .orbit__art { animation: spin 40s linear infinite; transform-origin: 50% 50%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqi; border-top: 1px solid rgba(148,163,184,.16); padding-top: 2.4cqi; }
.orbit__cols span { display: grid; gap: .9cqi; }
.orbit__cols i { width: 3cqi; height: 3cqi; border-radius: .8cqi; border: 1px solid rgba(98,139,255,.6); }
.orbit__cols b { height: .9cqi; border-radius: 1cqi; background: #222C42; }
.orbit__cols b:last-child { width: 70%; }

/* --- PULSE (analytics) --- */
.mock--pulse { background: #070A11; }
.pulse { aspect-ratio: 16 / 10.4; padding: 2.8cqi 3.2cqi; display: grid; grid-template-rows: auto 1fr; gap: 2.4cqi; font-size: 1.6cqi; }
.pulse__top { display: flex; align-items: center; justify-content: space-between; }
.pulse__top b { display: flex; align-items: center; gap: 1.2cqi; font-size: 2.3cqi; font-weight: 700; }
.pulse__top b i { width: 2.6cqi; height: 2.6cqi; border-radius: 50%; border: .6cqi solid var(--accent); }
.pulse__chips { display: flex; gap: .6cqi; padding: .6cqi; border-radius: 2cqi; background: #111827; }
.pulse__chips em { font-style: normal; font-family: var(--mono); font-size: 1.3cqi; padding: .5cqi 1.4cqi; border-radius: 1.4cqi; color: #7D8BA3; }
.pulse__chips em.on { background: #1E293B; color: var(--white); }
.pulse__grid { display: grid; grid-template-columns: 1.9fr 1fr; grid-template-rows: 1.35fr 1fr; gap: 1.8cqi; min-height: 0; }
.pulse__card { background: #0E1422; border: 1px solid rgba(148,163,184,.12); border-radius: 1.8cqi; padding: 2cqi 2.2cqi; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pulse__card small { font-size: 1.35cqi; color: #7D8BA3; font-weight: 600; }
.pulse__trend { grid-row: span 1; }
.pulse__trend strong { font-size: 3.2cqi; letter-spacing: -.03em; margin-top: .4cqi; }
.pulse__trend svg { flex: 1; width: 100%; min-height: 0; margin-top: 1cqi; }
.pulse__trend .gridl path { stroke: rgba(148,163,184,.1); stroke-width: 1; fill: none; }
.pulse__trend .area { fill: url(#pg); }
.pulse__trend .ln { fill: none; stroke: var(--accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.pulse__trend .ln--b { stroke: rgba(248,250,252,.45); stroke-dasharray: 4 4; stroke-width: 1.5; }
.pulse__trend .pt { fill: var(--white); stroke: var(--accent); stroke-width: 2; }
.pulse__donut { align-items: flex-start; }
.pulse__donut svg { width: 46%; margin: 1.4cqi auto 1cqi; transform: rotate(-90deg); }
.pulse__donut .track { fill: none; stroke: #1A2336; stroke-width: 5; }
.pulse__donut .seg { fill: none; stroke-width: 5; stroke-linecap: butt; }
.pulse__donut .seg--a { stroke: var(--accent); stroke-dasharray: 52 48; }
.pulse__donut .seg--b { stroke: #B9C7E6; stroke-dasharray: 28 72; stroke-dashoffset: -52; }
.pulse__donut .seg--c { stroke: #3A4760; stroke-dasharray: 20 80; stroke-dashoffset: -80; }
.pulse__donut ul { display: grid; gap: .5cqi; font-size: 1.3cqi; color: #94A3B8; width: 100%; }
.pulse__donut li { display: flex; align-items: center; gap: .8cqi; }
.pulse__donut li i { width: 1.2cqi; height: 1.2cqi; border-radius: .3cqi; }
.pulse__donut i.a { background: var(--accent); } .pulse__donut i.b { background: #B9C7E6; } .pulse__donut i.c { background: #3A4760; }
.pulse__heat { grid-column: 1 / -1; }
.heat { flex: 1; margin-top: 1.2cqi; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(7, 1fr); gap: .5cqi; min-height: 0; }
.heat i { border-radius: .4cqi; background: var(--accent); opacity: var(--o); }

/* ==========================================================================
   ABOUT — light section
   ========================================================================== */
.about {
  --fg: var(--black);
  --muted: #475569;
  --line: rgba(8,11,18,.1);
  --accent: var(--accent-ink);
  background: var(--white); color: var(--fg);
  overflow: hidden;
}
.about ::selection { background: var(--black); color: var(--white); }
.about :focus-visible { outline-color: var(--accent-ink); }
.about__top { display: grid; gap: 2rem; }
.about__quote p {
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.28; letter-spacing: -.025em; font-weight: 500;
  text-wrap: pretty;
}
.about__quote em { font-style: normal; color: var(--accent-ink); }
.about__grid { margin-top: clamp(3.5rem, 8vw, 6rem); display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.pillar__label { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.pillar__text { margin-top: 1rem; font-size: 1.06rem; line-height: 1.6; color: #1E293B; }
.pillar__principles { margin-top: 1rem; counter-reset: p; display: grid; gap: .55rem; }
.pillar__principles li { counter-increment: p; display: flex; gap: .75rem; font-weight: 600; color: #0F172A; }
.pillar__principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: #64748B; padding-top: .2rem; }
.about__watermark {
  position: absolute; right: 2%; top: calc(100% - 40px); width: min(70vw, 420px); height: auto;
  fill: none; stroke: rgba(8,11,18,.08); stroke-width: .15; pointer-events: none;
}
.about .container { position: relative; z-index: 1; }
@media (min-width: 720px) {
  .about__grid { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
}
@media (min-width: 1040px) {
  .about__top { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .about__quote { padding-top: 2.2rem; }
  .about__grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-bottom: 1px solid var(--line); }
  .pillar { padding: 2.25rem 2rem 2.5rem; border-bottom: 0; border-left: 1px solid var(--line); }
  .pillar:first-child { border-left: 0; padding-left: 0; }
}

/* ==========================================================================
   WORKFLOW
   ========================================================================== */
.workflow { overflow: hidden; }
.workflow::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 900px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(98,139,255,.09), transparent); pointer-events: none;
}
.steps { position: relative; display: grid; gap: 0; padding-left: 2.25rem; }
.steps::before, .steps::after { /* track + progress */
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong);
}
.steps::after { background: linear-gradient(180deg, var(--accent), rgba(98,139,255,.4)); transform-origin: top; transform: scaleY(var(--progress, 0)); transition: transform 1.6s var(--ease); }
.step { position: relative; padding-bottom: 3rem; }
.step:last-child { padding-bottom: 0; }
.step__dot {
  position: absolute; left: calc(-2.25rem + 1px); top: 4px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--black); border: 1.5px solid var(--line-strong); z-index: 1;
  transition: border-color .5s, background-color .5s, box-shadow .5s;
}
.step.is-on .step__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(98,139,255,.15); }
.step__glyph {
  width: 64px; height: 64px; padding: 12px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(16,24,39,.9), rgba(8,11,18,.9));
  transition: border-color .5s, transform .5s var(--ease);
}
.step__glyph svg { width: 100%; height: 100%; fill: none; stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step__glyph .f { fill: rgba(98,139,255,.25); stroke: var(--accent); }
.step:hover .step__glyph { transform: translateY(-4px); border-color: rgba(98,139,255,.5); }
.step__num { margin-top: 1.5rem; font-family: var(--mono); font-size: .75rem; color: var(--accent); letter-spacing: .12em; }
.step__title { margin-top: .4rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 650; letter-spacing: -.03em; }
.step__text { margin-top: .6rem; color: var(--muted); max-width: 22rem; }

.js .step { opacity: .35; transition: opacity .7s var(--ease); }
.js .step.is-on { opacity: 1; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-left: 0; padding-top: 2.75rem; }
  .steps::before, .steps::after { left: 6px; right: 6px; top: 6px; bottom: auto; width: auto; height: 1px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--accent), rgba(98,139,255,.4)); }
  .step { padding-bottom: 0; }
  .step__dot { left: 0; top: -2.75rem; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .step { opacity: 1; }
  .steps::after { transition: none; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { border-top: 1px solid var(--line); background: radial-gradient(70% 60% at 15% 100%, rgba(98,139,255,.13), transparent 70%), var(--black); }
.contact__grid { display: grid; gap: 3.5rem; }
.contact__title { margin-top: 1.1rem; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 5rem); line-height: 1; letter-spacing: -.045em; font-weight: 680; text-wrap: balance; }
.contact__title span { display: block; color: var(--muted); }
.contact__direct { margin-top: 2.5rem; display: grid; gap: .6rem; justify-items: start; }
.contact__direct[hidden] { display: none; }
.contact__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__email {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); font-weight: 600; letter-spacing: -.02em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s; word-break: break-word;
}
.contact__email:hover { background-size: 100% 1px; color: #fff; }
.contact__direct .btn { margin-top: 1rem; }
.socials { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.socials[hidden] { display: none; }
.socials a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .9rem; color: var(--muted);
  transition: color .3s, border-color .3s;
}
.socials a:hover { color: var(--fg); border-color: rgba(98,139,255,.6); }
.socials a::after { content: "↗"; font-size: .8em; }

.contact__form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16,24,39,.85), rgba(12,17,28,.7));
  box-shadow: var(--shadow);
}
.contact__form fieldset { border: 0; padding: 0; min-width: 0; display: grid; gap: 1.15rem; }
.contact__form fieldset:disabled { opacity: .55; }
.form__legend { padding: 0; margin-bottom: 1.25rem; font-size: 1.2rem; font-weight: 650; letter-spacing: -.02em; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; font-weight: 600; color: #CBD5E1; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(8,11,18,.7); border: 1px solid var(--line-strong);
  font-size: 1rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
}
.field select option { background: var(--night); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(148,163,184,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(98,139,255,.18); }
.field [aria-invalid="true"] { border-color: #F87171; }
.form__note { margin-top: 1.1rem; font-size: .82rem; color: #8592A8; line-height: 1.55; }
.form__status { margin-top: .75rem; font-size: .9rem; color: var(--fg); }
.form__status:empty { display: none; }
.form__status.is-error { color: #FCA5A5; }

@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: start; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: clamp(4rem, 8vw, 6rem); background: var(--black); }
.footer__top { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__slogan { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.footer__heading { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #7D8BA3; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: .55rem; }
.footer__col a { color: #CBD5E1; font-size: .95rem; transition: color .25s; }
.footer__col a:hover { color: var(--accent); }
.footer__socials { margin-top: .9rem; }
.footer__socials[hidden], [data-footer-email][hidden] { display: none; }
.footer__giant {
  margin-top: clamp(3rem, 8vw, 5rem);
  font-size: clamp(4.5rem, 21vw, 19rem); line-height: .78; font-weight: 800; letter-spacing: .02em;
  text-align: center; user-select: none;
  background: linear-gradient(180deg, rgba(148,163,184,.16), rgba(148,163,184,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: -.06em;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.75rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: #8592A8;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: var(--fg); }
@media (min-width: 860px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}

/* ==========================================================================
   REVEAL ON SCROLL (only when JS is running and motion is allowed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .bento [data-reveal]:nth-child(2), .js .about__grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
  .js .bento [data-reveal]:nth-child(3), .js .about__grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
  .js .bento [data-reveal]:nth-child(4), .js .about__grid [data-reveal]:nth-child(4) { transition-delay: .24s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mock, .project--flip .mock { transform: none; }
}

/* ==========================================================================
   SIMPLE PAGES (privacy, 404)
   ========================================================================== */
.page { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 6rem; min-height: 80vh; }
.page .site-header { background: rgba(8,11,18,.78); }
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); letter-spacing: -.04em; line-height: 1.05; font-weight: 680; margin-top: 1rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.35rem; letter-spacing: -.02em; }
.prose p, .prose li { margin-top: 1rem; color: #CBD5E1; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.notfound { display: grid; place-items: center; text-align: center; min-height: 100vh; padding: 2rem; }
.notfound__code { font-size: clamp(6rem, 30vw, 14rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; background: linear-gradient(180deg, var(--white), rgba(148,163,184,.2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); margin: 1rem 0 2rem; }
