/* ============================================================
   Fathma Mutia — Automation + Web Developer
   Shared design system (all pages)
   Fonts: Clash Display (display) · Satoshi (body) · JetBrains Mono (labels)
   ============================================================ */

/* self-hosted fonts (Fontshare: Clash Display + Satoshi; Google: JetBrains Mono
   variable). No third-party font requests at runtime. */
@font-face { font-family: 'Clash Display'; src: url('../fonts/clash-display-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('../fonts/clash-display-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  /* one hue family, one canonical gradient: purple anchors, fuchsia is the
     identity accent (glows/decoration), orange is the interactive accent */
  --brand-fuchsia: #d946ef;
  --brand-purple: #7e22ce;
  --brand-orange: #f97316;
  --grad-brand: linear-gradient(105deg, var(--brand-purple), var(--brand-fuchsia) 48%, var(--brand-orange));
  --bg: #050505;
  --surface: #0d0d0f;
  --surface-2: #131316;
  --text: #e7e5ea;
  --muted: #9d9aa5;
  --hairline: rgba(255, 255, 255, .08);
  --shell: rgba(255, 255, 255, .04);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --r-lg: 2rem;
  --r-md: 1.25rem;
  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scrollbar-width: thin; scrollbar-color: #2a2731 #08080a; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.7;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: #fff; font-weight: 600; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--brand-fuchsia); color: #0a0a0c; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #08080a; }
::-webkit-scrollbar-thumb { background: #2a2731; border-radius: 99px; border: 3px solid #08080a; }
::-webkit-scrollbar-thumb:hover { background: #4a3f56; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
section, .grouphead { scroll-margin-top: 120px; position: relative; }

/* film grain (fixed compositing layer; jitter is fine-pointer + motion-ok only) */
body::after {
  content: ""; position: fixed; inset: -140px; z-index: 80; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  body::after { animation: grain 1.2s steps(1) infinite; }
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-28px, 16px); }
  20% { transform: translate(24px, -30px); }
  30% { transform: translate(-18px, -24px); }
  40% { transform: translate(30px, 22px); }
  50% { transform: translate(-26px, 8px); }
  60% { transform: translate(16px, -18px); }
  70% { transform: translate(-30px, 28px); }
  80% { transform: translate(22px, 12px); }
  90% { transform: translate(-12px, -26px); }
}

/* fixed vignette: faint edge darkening for cinematic depth */
html::before {
  content: ""; position: fixed; inset: 0; z-index: 79; pointer-events: none;
  background: radial-gradient(ellipse 130% 100% at 50% 35%, transparent 58%, rgba(0, 0, 0, .3));
}

/* ambient glows — glow-hero is a multi-blob aurora; drift animates the whole
   rasterized layer (transform only) so the 100px blur never repaints */
.glow { position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(100px); }
.glow-hero {
  top: -140px; right: -180px; width: 680px; height: 680px;
  background:
    radial-gradient(circle at 28% 72%, rgba(249, 115, 22, .2), transparent 52%),
    radial-gradient(circle at 72% 28%, rgba(217, 70, 239, .32), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(147, 51, 234, .45), rgba(217, 70, 239, .18) 55%, transparent 75%);
}
.glow-mid { width: 560px; height: 560px; right: -220px; background: radial-gradient(circle, rgba(147, 51, 234, .35), rgba(217, 70, 239, .16) 55%, transparent 75%); }
.glow-left { width: 520px; height: 520px; left: -220px; background: radial-gradient(circle, rgba(249, 115, 22, .18), rgba(217, 70, 239, .1) 55%, transparent 75%); }
@media (prefers-reduced-motion: no-preference) {
  .glow-hero { animation: aurora 26s ease-in-out infinite alternate; }
}
@keyframes aurora {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(16deg) scale(1.07) translate3d(-28px, 18px, 0); }
  100% { transform: rotate(-12deg) scale(.95) translate3d(22px, -24px, 0); }
}

/* a11y */
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: #fff; color: #050505; font-weight: 700; padding: 10px 18px; border-radius: 999px; transition: top .4s var(--ease); }
.skip:focus { top: 16px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 3px; border-radius: 6px; }
.compare:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 3px; }

/* ============ FLOATING PILL NAV ============ */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 18px 16px 0; pointer-events: none; }
.navpill {
  pointer-events: auto; display: flex; align-items: center; gap: 26px;
  background: rgba(9, 9, 12, .62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 12px 9px 20px;
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .9), inset 0 1px 1px rgba(255, 255, 255, .05);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
}
.navpill.scrolled {
  background: rgba(8, 8, 11, .85);
  padding-top: 7px; padding-bottom: 7px;
  box-shadow: 0 18px 48px -18px rgba(0, 0, 0, .95), inset 0 1px 1px rgba(255, 255, 255, .07);
}
.navpill .logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 24px; font-weight: 600; font-size: .92rem; color: #cfcdd6; }
.nav-links a { transition: color .4s var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current] { color: var(--brand-orange); }
.menu-btn { display: none; position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .06); flex: none; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-open .menu-btn span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* full-screen overlay menu */
.mnav {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  background: rgba(5, 5, 5, .82); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.mnav a { font-family: var(--font-display); font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 600; color: #fff; padding: .35rem 1rem; opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease), color .4s var(--ease); }
.mnav a:hover, .mnav a[aria-current] { color: var(--brand-orange); }
.menu-open .mnav a { opacity: 1; transform: none; }
.menu-open .mnav a:nth-child(1) { transition-delay: .08s; }
.menu-open .mnav a:nth-child(2) { transition-delay: .14s; }
.menu-open .mnav a:nth-child(3) { transition-delay: .2s; }
.menu-open .mnav a:nth-child(4) { transition-delay: .26s; }
.menu-open .mnav a:nth-child(5) { transition-delay: .32s; }
.mnav .btn-cta { margin-top: 1.6rem; opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease) .38s, transform .7s var(--ease) .38s; }
.menu-open .mnav .btn-cta { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }
@media (max-width: 900px) {
  .nav-links, .navpill > .btn-cta { display: none; }
  .navpill { gap: 14px; padding: 8px 8px 8px 16px; }
  .menu-btn { display: block; }
}

/* ============ BUTTONS ============ */
/* --tx/--ty (button) and --cx/--cy (inner chip) are set by the magnetic
   pointer module in site.js; every state composes them so hover/active
   physics and magnetism never fight. */
.btn-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .85rem;
  background: var(--grad-brand);
  color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap;
  border-radius: 999px; padding: .5rem .5rem .5rem 1.5rem;
  box-shadow: 0 0 26px -10px rgba(217, 70, 239, .5);
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* shimmer (ShimmerButton port, no framework): a blurred conic spark orbits
   behind ::after, which re-paints the gradient inset by 1.5px — so the spark
   only shows as light traveling around the pill's rim. ::after also carries
   the inner bottom highlight that deepens on hover and press. */
.btn-cta::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%;
  width: 130%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 225deg, transparent 0, #fff 90deg, transparent 90deg);
  filter: blur(2px); opacity: 0; pointer-events: none;
}
.btn-cta::after {
  content: ""; position: absolute; z-index: -1; inset: 1.5px;
  border-radius: 999px; background: var(--grad-brand);
  box-shadow: inset 0 -8px 10px rgba(255, 255, 255, .12);
  transition: box-shadow .3s var(--ease); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-cta::before { opacity: 1; animation: cta-orbit 3.5s linear infinite; }
  .navpill .btn-cta::before, .mnav .btn-cta::before { animation-delay: -1.75s; } /* phase-shift nav vs in-page CTAs */
}
@keyframes cta-orbit { to { rotate: 360deg; } }
.btn-cta .chip { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: 1rem; transform: translate(var(--cx, 0px), var(--cy, 0px)); transition: transform .5s var(--ease); }
.btn-cta:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px)); box-shadow: 0 0 36px -8px rgba(217, 70, 239, .65); }
.btn-cta:hover::after { box-shadow: inset 0 -6px 10px rgba(255, 255, 255, .25); }
.btn-cta:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(.98); }
.btn-cta:active::after { box-shadow: inset 0 -10px 10px rgba(255, 255, 255, .25); }
.btn-cta.small { font-size: .88rem; padding: .35rem .35rem .35rem 1.2rem; }
.btn-cta.small .chip { width: 30px; height: 30px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .85rem;
  border: 1px solid var(--hairline); border-radius: 999px; padding: .5rem .5rem .5rem 1.5rem;
  color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; background: rgba(255, 255, 255, .02);
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.btn-ghost .chip { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; font-size: 1rem; transform: translate(var(--cx, 0px), var(--cy, 0px)); transition: transform .5s var(--ease), background .5s var(--ease); }
.btn-ghost:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px)); border-color: rgba(249, 115, 22, .5); }
.btn-ghost:hover .chip { transform: translate(calc(var(--cx, 0px) + 2px), calc(var(--cy, 0px) - 2px)); background: rgba(249, 115, 22, .18); }
.btn-ghost:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(.98); }
/* leading-chip variant (back links) */
.btn-ghost.rev { padding: .5rem 1.5rem .5rem .5rem; }
.btn-ghost.rev:hover .chip { transform: translate(calc(var(--cx, 0px) - 2px), calc(var(--cy, 0px) - 2px)); }

/* ============ EYEBROW + HEADINGS ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; color: var(--muted);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 14px; margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, .02);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(90deg, var(--brand-fuchsia), var(--brand-orange)); }
/* availability status: the one semantic (green) dot on the site */
.eyebrow.avail::before { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, .6); }
.about .id .avail::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, .6); margin-right: .5rem; }
.h-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .12em; }
.sec-head { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -.025em; }
.sec-head.sm { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.sub { color: var(--muted); max-width: 44rem; margin-top: 1.2rem; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ============ CARD SHELL (double bezel) ============
   The .core carries the surface (gradient + static grain) while the .bezel
   keeps only border + shadow, so the ::before glow layer beneath the core
   lights up the hairline border around the cursor (site.js sets --mx/--my). */
.bezel {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .02),
    0 24px 60px -30px rgba(26, 8, 42, .9),
    inset 0 1px 1px rgba(255, 255, 255, .05);
}
.bezel::before {
  content: ""; position: absolute; inset: -1px; border-radius: calc(var(--r-lg) + 1px);
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(217, 70, 239, .5), rgba(249, 115, 22, .14) 45%, transparent 70%);
  opacity: 0; transition: opacity .6s var(--ease); pointer-events: none;
}
.bezel:hover::before { opacity: 1; }
.bezel > .core {
  position: relative; display: block;
  background:
    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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #110f15, #0b0a0e);
  border-radius: inherit; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .05); overflow: hidden; height: 100%;
}

/* dot-grid overlay, dissolving toward the edges (all heroes) */
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0 0 12%; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 62% 18%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 85% at 62% 18%, #000 25%, transparent 72%);
}

/* ============ PAGE HERO (subpages) ============ */
.page-hero { padding: 168px 0 40px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.page-hero .sub { font-size: 1.05rem; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero .eyebrow, .page-hero h1, .page-hero .sub {
    opacity: 0; transform: translateY(26px); filter: blur(6px);
    animation: fadeup .9s var(--ease) forwards;
  }
  .page-hero h1 { animation-delay: .1s; }
  .page-hero .sub { animation-delay: .22s; }
}

/* ============ HOME HERO ============ */
.hero { padding: 170px 0 60px; }
/* entrance choreography: site.js splits the h1 into per-character masks
   (vertical cut reveal); the .lw line rise below is the no-JS fallback.
   Static (fully visible) under reduced motion, where JS skips the split. */
.hero h1 .lm { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .lw { display: inline-block; }
.vcr-m { display: inline-block; overflow: hidden; white-space: pre; padding: .1em 0 .08em; margin: -.1em 0 -.08em; vertical-align: bottom; }
.vcr-c { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .lw { transform: translateY(112%); animation: rise .9s var(--ease) .08s forwards; }
  .hero h1 .lm:nth-child(2) .lw { animation-delay: .2s; }
  .hero h1.vcr .lw { transform: none; animation: none; }
  .hero h1.vcr .vcr-c { transform: translateY(115%); animation: rise .6s cubic-bezier(.3, 1.36, .36, 1) var(--d, 0s) forwards; }
  .hero .badge-pill, .hero .role, .hero .rolecycle, .hero .lede, .hero .actions, .hero .social {
    opacity: 0; transform: translateY(24px); filter: blur(6px);
    animation: fadeup .9s var(--ease) forwards;
  }
  .hero .role { animation-delay: .34s; }
  .hero .rolecycle { animation-delay: .44s; }
  .hero .lede { animation-delay: .54s; }
  .hero .actions { animation-delay: .66s; }
  .hero .social { animation-delay: .78s; }
  .hero-photo { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(10px); animation: fadeup 1.1s var(--ease) .3s forwards; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeup { to { opacity: 1; transform: none; filter: none; } }
.hero .cols { display: grid; gap: 52px; align-items: center; }
@media (min-width: 900px) { .hero .cols { grid-template-columns: 1.05fr .95fr; } }
.badge-pill { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .88rem; color: #d5d3da; border: 1px solid var(--hairline); border-radius: 999px; padding: .5rem 1.15rem; background: rgba(24, 24, 27, .5); margin-bottom: 1.7rem; transition: border-color .5s var(--ease); }
.badge-pill:hover { border-color: rgba(249, 115, 22, .5); }
.hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .role { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 600; font-family: var(--font-display); color: #fff; margin-top: 1.3rem; }
.hero .rolecycle { font-size: 1.05rem; font-weight: 600; color: var(--brand-fuchsia); margin-top: .45rem; min-height: 1.8em; }
.type-cursor { display: inline-block; width: 2px; height: 1.05em; background: var(--brand-orange); margin-left: 3px; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lede { margin-top: 1.3rem; max-width: 34rem; color: var(--muted); font-size: 1.06rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero .social { display: flex; align-items: center; gap: .9rem; margin-top: 2.4rem; }
.hero .social b { color: #fff; font-size: 1.12rem; display: block; line-height: 1.2; font-family: var(--font-display); font-weight: 600; }
.hero .social span { color: var(--muted); font-size: .88rem; }
.hero-photo { position: relative; justify-self: center; width: min(430px, 88%); perspective: 1000px; }
.hero-photo .frame {
  border: 4px solid transparent; border-radius: 230px 230px 24px 24px;
  background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, var(--grad-brand) border-box;
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease);
}
.hero-photo .frame img { width: 100%; object-fit: cover; aspect-ratio: 43/50; }

/* cinematic light plate behind the portrait (rasterized once; transform-only pulse) */
.hero-photo::before {
  content: ""; position: absolute; z-index: -1; inset: -8% -16%;
  background:
    radial-gradient(circle at 70% 18%, rgba(217, 70, 239, .28), transparent 60%),
    radial-gradient(circle at 18% 85%, rgba(249, 115, 22, .18), transparent 55%);
  filter: blur(60px); pointer-events: none;
}
/* floating brand objects orbiting the portrait */
.hero-photo .float { position: absolute; z-index: 2; object-fit: contain; pointer-events: none; filter: drop-shadow(0 14px 26px rgba(5, 5, 5, .65)); }
.hero-photo .f1 { width: 86px; height: 86px; top: 44px; left: -30px; }
.hero-photo .f2 { width: 70px; height: 70px; top: 36%; right: -28px; }
.hero-photo .f3 { width: 56px; height: 56px; bottom: 34px; left: -14px; filter: blur(1px) drop-shadow(0 10px 20px rgba(5, 5, 5, .6)); }
@media (max-width: 640px) {
  .hero-photo .f1 { width: 64px; height: 64px; left: -8px; }
  .hero-photo .f2 { right: -8px; }
  .hero-photo .f3 { left: -4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo::before { animation: plate-breathe 12s ease-in-out infinite alternate; }
  .hero-photo .float { animation: float-bob 7s ease-in-out infinite alternate; }
  .hero-photo .f2 { animation-duration: 8.5s; animation-delay: 1.2s; }
  .hero-photo .f3 { animation-duration: 9.5s; animation-delay: .6s; }
}
@keyframes float-bob { to { transform: translateY(-14px) rotate(3deg); } }
@keyframes plate-breathe { to { transform: scale(1.12); opacity: .8; } }

/* scroll parallax — glows are scroll-linked in site.js (works cross-browser;
   the JS sets `translate` so it composes with glow-hero's aurora transform).
   The hero photo keeps the CSS scroll-driven enhancement. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-photo .frame img { animation: par-img linear both; animation-timeline: view(); }
  }
}
@keyframes par-img { from { translate: 0 -14px; scale: 1.07; } to { translate: 0 14px; scale: 1.07; } }

/* ============ MARQUEE ============ */
.marquee {
  border-block: 1px solid var(--hairline); padding: 30px 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee .track { display: flex; gap: 56px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .item { display: flex; align-items: center; gap: 56px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.marquee .spark { color: var(--brand-orange); -webkit-text-fill-color: var(--brand-orange); font-size: 1.3rem; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.problem { padding: 150px 0 70px; }
.problem .cols { display: grid; gap: 52px; align-items: center; }
.problem .cols + .cols { margin-top: 96px; }
@media (min-width: 900px) {
  .problem .cols { grid-template-columns: 1fr 1fr; }
  .problem .cols.flip > div:first-child { order: 2; }
}
.problem p { margin-top: 1.3rem; color: var(--muted); max-width: 34rem; }
.problem .art .core { padding: 26px; }

.build { padding: 70px 0 150px; text-align: center; }
.cards-2 { display: grid; gap: 20px; text-align: left; margin-top: 3.2rem; }
@media (min-width: 820px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
a.svc { display: block; }
.svc .core { padding: 34px 32px; transition: transform .6s var(--ease); }
.svc:hover .core { transform: translateY(-4px); }
.svc .icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(147, 51, 234, .12); border: 1px solid rgba(217, 70, 239, .25); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.svc .icon img { width: 38px; height: 38px; object-fit: contain; }
.svc h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.svc p { color: var(--muted); font-size: .95rem; }
.svc .go { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.3rem; font-weight: 600; font-size: .88rem; color: var(--brand-orange); transition: gap .4s var(--ease); }
.svc:hover .go { gap: .7rem; }

/* tech stack band */
.stackband {
  padding: 10px 0 60px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.stackband .track { display: flex; align-items: center; gap: 72px; width: max-content; animation: scrollx 32s linear infinite; }
.stackband img { height: 40px; width: auto; opacity: .85; }

/* ============ WORK CARDS / GRIDS ============ */
.grouphead { text-align: left; margin: 90px 0 44px; }
.grouphead h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.grouphead p { color: var(--muted); margin-top: .6rem; max-width: 38rem; }

.wfgrid { display: grid; gap: 20px; text-align: left; }
@media (min-width: 860px) { .wfgrid { grid-template-columns: 1fr 1fr; } }
.wf .core { padding: 24px 24px 30px; perspective: 1000px; }
.wf .shot { border-radius: var(--r-md); overflow: hidden; background: #101012; margin-bottom: 1.5rem; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.wf .shot img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #101012; }
.wf .shot.site img { aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.wf h3 { font-size: 1.28rem; line-height: 1.3; }
.wf p.desc { color: var(--muted); font-size: .93rem; margin-top: .8rem; }
.wf .cta { margin-top: 1.5rem; display: flex; gap: .7rem; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.chips span { font-family: var(--font-mono); font-size: .72rem; font-weight: 400; color: #d5d3da; background: rgba(255, 255, 255, .03); border: 1px solid var(--hairline); border-radius: 999px; padding: .45rem 1rem; }
.chips span.chip-hot { background: linear-gradient(90deg, var(--brand-purple), #c026d3); border-color: transparent; color: #fff; }

/* spotlight glow follows cursor on .wf/.svc cores */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle 220px at var(--mx, 50%) var(--my, 50%), rgba(217, 70, 239, .07), transparent); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; z-index: 1; }
.spot:hover::after { opacity: 1; }

/* featured bento (home) */
.featured { padding: 40px 0 150px; }
.bento { display: grid; gap: 20px; margin-top: 3.2rem; text-align: left; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento .b-5 { grid-column: span 5; }
  .bento .b-7 { grid-column: span 7; }
  .bento .b-12 { grid-column: span 12; }
}
.morework { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.6rem; }

/* ============ COMPARE (drag wipe) ============ */
.compare { position: relative; aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; cursor: ew-resize; background: #101012; margin-bottom: 1.5rem; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare .before { clip-path: inset(0 50% 0 0); z-index: 2; }
.compare .divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 3; transform: translateX(-50%); pointer-events: none; }
.compare .handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; z-index: 4; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(0, 0, 0, .4); pointer-events: none; }
.compare .handle svg { width: 20px; height: 20px; }
.compare .tags { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 16px; z-index: 5; pointer-events: none; }
.compare .tags span { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(5, 5, 5, .65); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 100px; color: #fff; }

/* ============ FLAGSHIP ============ */
.flagship-shell { margin-top: 20px; }
.flagship {
  position: relative; padding: 46px 44px; text-align: left; border-radius: var(--r-lg); border: 2px solid transparent;
  background: linear-gradient(180deg, #110f15, #0b0a0e) padding-box, var(--grad-brand) border-box;
}
/* breathing border: a reversed-gradient ring fades in and out, so the border
   colors appear to travel; opacity-only, composited */
.flagship::before {
  content: ""; position: absolute; inset: -2px; border-radius: var(--r-lg); padding: 2px;
  background: linear-gradient(285deg, var(--brand-purple), var(--brand-fuchsia) 48%, var(--brand-orange)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .flagship::before { animation: flag-breathe 7s ease-in-out infinite; }
}
@keyframes flag-breathe { 50% { opacity: 1; } }
.flagship .flag-tag { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-orange); margin-bottom: .8rem; }
.flagship h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.flagship .desc { color: var(--muted); margin-top: 1rem; max-width: 46rem; }
.flagship .cta { margin-top: 1.8rem; display: flex; gap: .7rem; flex-wrap: wrap; }
.stagerow { display: flex; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .02); border-radius: var(--r-md); overflow: hidden; margin-top: 1.6rem; width: fit-content; max-width: 100%; }
.stagerow div { padding: 16px 26px; text-align: center; }
.stagerow div + div { border-left: 1px solid var(--hairline); }
.stagerow .k { display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.stagerow .v { display: block; font-weight: 600; font-family: var(--font-display); color: #fff; font-size: 1.02rem; margin-top: .2rem; }
@media (max-width: 760px) {
  .flagship { padding: 32px 24px; }
  .stagerow { flex-direction: column; width: 100%; }
  .stagerow div + div { border-left: 0; border-top: 1px solid var(--hairline); }
}

/* ============ FUNNEL ROWS + CAROUSEL (automation) ============ */
.funnel { display: grid; gap: 44px; align-items: center; text-align: left; padding: 44px 0; }
@media (min-width: 920px) {
  .funnel { grid-template-columns: 1.05fr .95fr; }
  .funnel.flip .carbez { order: 2; }
  .funnel.flip .info { order: 1; }
}
.funnel h4 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.funnel .feature { margin-top: 1.4rem; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .02); border-radius: var(--r-md); padding: 16px 22px; display: inline-block; }
.funnel .feature b { color: #fff; font-size: 1rem; font-family: var(--font-display); font-weight: 600; }
.funnel .desc { margin-top: 1.4rem; color: var(--muted); max-width: 32rem; }
.funnel .cta { margin-top: 1.8rem; }

.car { position: relative; border-radius: inherit; overflow: hidden; }
.car .slides { display: flex; transition: transform .6s var(--ease); }
.car .slides img { width: 100%; flex: 0 0 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.car .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; background: rgba(5, 5, 5, .55); color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 3; transition: background .4s var(--ease); }
.car .arrow:hover { background: rgba(5, 5, 5, .85); }
.car .prev { left: 12px; } .car .next { right: 12px; }
.car .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.car .dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45); padding: 0; }
.car .dots button.on { background: #fff; }

.endcta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; padding: 70px 0 0; }

/* ============ STATS (odometer) ============ */
.results { padding: 0 0 150px; text-align: center; }
.statsrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 3.2rem 0 3rem; }
@media (min-width: 860px) { .statsrow { grid-template-columns: repeat(4, 1fr); } }
.statsrow .core { padding: 32px 14px; text-align: center; }
.odometer { font-family: var(--font-display); font-size: clamp(2.1rem, 4.5vw, 2.9rem); font-weight: 600; letter-spacing: -.02em; overflow: hidden; height: 1.15em; display: flex; justify-content: center; color: #fff; }
.odo-digit { display: inline-block; overflow: hidden; height: 1.15em; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.5s var(--ease); }
.odo-strip span { display: block; height: 1.15em; line-height: 1.15; }
.stat-suffix { font-size: .6em; font-weight: 600; line-height: 1.5; margin-left: 2px; color: var(--brand-orange); }
.stat-label { font-family: var(--font-mono); font-size: .74rem; font-weight: 400; color: var(--muted); margin-top: .6rem; }
.cards-3 { display: grid; gap: 20px; text-align: left; }
@media (min-width: 860px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.res .core { padding: 30px 28px; }
.res .icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(147, 51, 234, .14); border: 1px solid rgba(217, 70, 239, .25); display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem; }
.res .icon img { width: 30px; height: 30px; object-fit: contain; }
.res h3 { font-size: 1.1rem; line-height: 1.45; font-weight: 500; }

/* ============ ABOUT ============ */
.about { padding: 150px 0; }
.about .cols { display: grid; gap: 56px; align-items: start; }
@media (min-width: 920px) { .about .cols { grid-template-columns: .9fr 1.1fr; } }
.about .photo { border-radius: var(--r-lg); overflow: hidden; border: 4px solid transparent; background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, var(--grad-brand) border-box; }
.about .photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.about .id h3 { font-size: 1.8rem; margin-top: 1.6rem; }
.about .id h3 em { font-style: italic; }
.about .id .role { color: #d5d3da; font-weight: 600; font-size: 1.1rem; margin-top: .3rem; }
.about .id .loc { color: var(--muted); font-weight: 600; font-size: .92rem; margin-top: .8rem; }
.about .id .avail { color: #34d399; font-weight: 600; font-size: .92rem; margin-top: .4rem; }
.about .story h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); }
.about .story p { color: var(--muted); margin-top: 1.1rem; max-width: 36rem; }
.about .story p em { font-style: italic; }
.vals { display: grid; gap: 14px; margin-top: 2.2rem; }
.val { display: flex; gap: 18px; align-items: flex-start; position: relative; border: 1px solid var(--hairline); background: rgba(24, 24, 27, .35); border-radius: var(--r-md); padding: 20px 22px 20px 26px; overflow: hidden; transition: transform .5s var(--ease), background .5s var(--ease); }
.val::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(180deg, var(--brand-fuchsia), var(--brand-orange)); box-shadow: 2px 0 18px rgba(217, 70, 239, .35); }
.val:hover { transform: translateY(-2px); background: rgba(24, 24, 27, .7); }
.val .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(147, 51, 234, .14); border: 1px solid rgba(217, 70, 239, .25); display: flex; align-items: center; justify-content: center; }
.val .icon img { width: 27px; height: 27px; object-fit: contain; }
.val b { color: #fff; font-size: .98rem; display: block; font-family: var(--font-display); font-weight: 600; }
.val p { color: var(--muted); font-size: .9rem; font-style: italic; margin-top: .25rem; }
.about .book { margin-top: 2.4rem; }

/* about teaser (home) */
.teaser { padding: 0 0 150px; }
.teaser .core { display: grid; gap: 36px; align-items: center; padding: 40px; }
@media (min-width: 800px) { .teaser .core { grid-template-columns: 240px 1fr; } }
.teaser .tphoto { border-radius: var(--r-md); overflow: hidden; }
.teaser .tphoto img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.teaser h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.teaser p { color: var(--muted); margin-top: .9rem; max-width: 38rem; }
.teaser .btn-ghost { margin-top: 1.5rem; }

/* ============ CTA BAND ============ */
.cta-band { padding: 0 0 150px; }
/* comet ring on the final CTA card: same anatomy as the Hire Me shimmer but
   brand-gradient colored — an orange head with a fuchsia-to-purple tail orbits
   the card's edge (the ring only overhangs the opaque core by ~2.5px, so it
   reads as light traveling the border). Hover makes it brighter and thicker;
   site.js drives the same angle via WAAPI so hover can also speed the orbit
   without the spark jumping. Hidden under reduced motion. */
@property --cta-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.cta-band .bezel::before { content: none; } /* cursor border glow off here; the comet owns this edge */
.cta-band .bezel::after {
  content: ""; position: absolute; inset: -2.5px; z-index: -1;
  border-radius: calc(var(--r-lg) + 2.5px);
  background: conic-gradient(from var(--cta-a, 0deg),
    transparent 0deg, transparent 210deg,
    var(--brand-purple) 268deg,
    var(--brand-fuchsia) 326deg,
    var(--brand-orange) 358deg,
    transparent 360deg);
  filter: blur(5px); opacity: 0;
  transition: opacity .5s var(--ease), filter .5s var(--ease), inset .5s var(--ease), border-radius .5s var(--ease);
  pointer-events: none;
}
.cta-band .bezel:hover::after { inset: -4px; border-radius: calc(var(--r-lg) + 4px); filter: blur(7px) saturate(1.35); }
@media (prefers-reduced-motion: no-preference) {
  .cta-band .bezel::after { opacity: .9; animation: cta-glow 7s linear infinite; }
  .cta-band .bezel:hover::after { opacity: 1; }
}
@keyframes cta-glow { to { --cta-a: 360deg; } }
.cta-core { padding: 70px 40px; text-align: center; position: relative; }
.cta-core::before { content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 560px; height: 380px; background: radial-gradient(ellipse, rgba(217, 70, 239, .16), transparent 70%); pointer-events: none; }
.cta-core::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 70%);
}
.cta-core h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.cta-core > p { color: var(--muted); margin: 1rem auto 0; max-width: 32rem; }
.cta-core .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; gap: 20px; padding-bottom: 150px; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.cal-core { padding: 10px; }
.cal-core iframe { width: 100%; height: 700px; border: 0; border-radius: calc(var(--r-lg) - 12px); background: #0a0a0c; }
.cal-fallback { color: var(--muted); font-size: .88rem; padding: 12px 16px 14px; }
.cal-fallback a { color: var(--brand-orange); font-weight: 600; }
.contact-side .core { padding: 34px 32px; }
.contact-side .core + .core { margin-top: 0; }
.contact-side .bezel + .bezel { margin-top: 20px; }
.contact-side h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.contact-side p { color: var(--muted); font-size: .93rem; }
.contact-side .line { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-weight: 600; font-size: .95rem; }
.contact-side .line a { color: var(--brand-orange); }

/* ============ FOOTER ============ */
footer.site { border-top: 1px solid var(--hairline); padding: 54px 0 60px; }
footer.site .cols { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
footer.site img.flogo { height: 44px; width: auto; }
footer.site nav { display: flex; gap: 22px; font-weight: 600; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
footer.site nav a { transition: color .4s var(--ease); }
footer.site nav a:hover { color: #fff; }
footer.site small { display: block; color: #6f6c78; font-size: .82rem; font-weight: 600; margin-top: 1.6rem; text-align: center; width: 100%; }

/* ============ CASE STUDY PAGES ============ */
.case-top { padding: 26px 0 0; }
.case-visual .core { padding: 10px; }
.case-visual img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: calc(var(--r-lg) - 11px); }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hairline); background: rgba(255, 255, 255, .02); border-radius: var(--r-md); overflow: hidden; margin-top: 20px; }
.case-meta > div { padding: 18px 24px; border-left: 1px solid var(--hairline); border-top: 1px solid var(--hairline); margin: -1px 0 0 -1px; }
.case-meta .k { display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-meta .v { display: block; font-weight: 600; font-family: var(--font-display); color: #fff; font-size: 1rem; margin-top: .3rem; }

.case-section { padding: 96px 0 0; }
.case-section .sec-head { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: .5rem; }
.case-prose { margin-top: 1.4rem; max-width: 46rem; display: grid; gap: 1rem; }
.case-prose p { color: var(--muted); }
.case-prose strong { color: #fff; }

/* numbered pipeline walkthrough */
.pipeline { list-style: none; margin-top: 2.8rem; }
.pipeline li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 26px; padding-bottom: 3rem; }
.pipeline li:last-child { padding-bottom: 0; }
.pipeline li::after { content: ""; position: absolute; left: 26px; top: 60px; bottom: 8px; width: 1px; background: linear-gradient(180deg, rgba(217, 70, 239, .35), var(--hairline)); }
.pipeline li:last-child::after { display: none; }
.pk { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: #fff; border: 1px solid var(--hairline); border-radius: 14px; background: linear-gradient(180deg, #110f15, #0b0a0e); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .05), 0 0 24px -10px rgba(217, 70, 239, .45); }
.pipeline h3 { font-size: 1.18rem; padding-top: .75rem; }
.pipeline .stage p { color: var(--muted); font-size: .95rem; margin-top: .55rem; max-width: 42rem; }
.pipeline .ptag { display: inline-flex; margin-top: .9rem; font-family: var(--font-mono); font-size: .68rem; color: #b7b3c0; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .03); border-radius: 999px; padding: .3rem .85rem; }

/* results / proof cards */
.case-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 2.6rem; }
.case-results .core { padding: 30px 28px; height: 100%; }
.case-results .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: #fff; letter-spacing: -.02em; }
.case-results .lbl { font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; display: block; }
.case-results p.note { color: var(--muted); font-size: .9rem; margin-top: .8rem; }

.case-nav { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; padding: 90px 0 0; }

@media (max-width: 860px) {
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-results { grid-template-columns: 1fr; }
  .pipeline li { grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
  .pipeline .pk { width: 44px; height: 44px; border-radius: 12px; }
  .pipeline li::after { left: 22px; top: 52px; }
  .case-nav { justify-content: center; }
}

/* ============ HOW I WORK (home) ============ */
.how { padding: 0 0 150px; text-align: center; }
.how-grid { display: grid; gap: 20px; margin-top: 3.2rem; text-align: left; }
@media (min-width: 640px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how-step .core { padding: 30px 28px; height: 100%; }
.how-step .stepnum { position: absolute; top: 20px; right: 24px; font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: rgba(255, 255, 255, .1); pointer-events: none; }
.how-step .icon { width: 58px; height: 58px; border-radius: 16px; background: rgba(147, 51, 234, .12); border: 1px solid rgba(217, 70, 239, .25); display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem; }
.how-step .icon img { width: 40px; height: 40px; object-fit: contain; }
.how-step h3 { font-size: 1.12rem; }
.how-step p { color: var(--muted); font-size: .92rem; margin-top: .55rem; }

/* ============ FAQ accordion (home) ============ */
.faq { padding: 0 0 150px; text-align: center; }
.faq-list { display: grid; gap: 14px; margin-top: 3.2rem; text-align: left; }
.faq-item .core { padding: 0; }
.faq-item h3 { display: block; font-size: 1rem; }
.faq-q { display: flex; align-items: center; gap: 22px; width: 100%; text-align: left; padding: 24px 28px; cursor: pointer; }
.faq-q .fx { flex: none; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .04); transition: transform .5s var(--ease), border-color .5s var(--ease); }
.faq-q .fx::before, .faq-q .fx::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: #fff; translate: -50% -50%; }
.faq-q .fx::after { rotate: 90deg; }
.faq-q .qt { flex: 1; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.3; letter-spacing: -.01em; }
.faq-q .ftag { flex: none; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--hairline); border-radius: 999px; padding: .45rem 1rem; }
.faq-item.open .faq-q .fx { transform: rotate(45deg); border-color: rgba(217, 70, 239, .4); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.faq-a .inner { overflow: hidden; }
.faq-a p { color: var(--muted); font-size: .95rem; padding: 2px 28px 28px 96px; max-width: 58rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
@media (max-width: 640px) {
  .faq-q { gap: 14px; padding: 18px 18px; }
  .faq-q .fx { width: 38px; height: 38px; }
  .faq-q .ftag { display: none; }
  .faq-a p { padding: 0 18px 22px 18px; }
}

/* flagship visual (web-projects card) */
.flag-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .flag-grid { grid-template-columns: 1.1fr .9fr; } }
.flag-visual { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--hairline); }
.flag-visual img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track, .stackband .track { animation: none; }
  .type-cursor { display: none; }
  .odo-strip, .car .slides { transition: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .mnav, .mnav a, .mnav .btn-cta, .menu-btn span { transition: none; }
  .btn-cta, .btn-ghost, .btn-cta .chip, .btn-ghost .chip, .svc .core, .val, .spot::after { transition: none; }
  .bezel::before, .navpill, .hero-photo .frame, .wf .shot { transition: none; }
  .faq-a, .faq-q .fx { transition: none; }
  .cta-band .bezel::after { transition: none; }
}
