/* ==========================================================================
   Asyraf.dev — v2
   Dark-only. Brand: bg #060d16/#0a1420, cyan #38bdf8, amber #f59e0b, teal #2dd4bf.
   Type: Outfit (display + body), Fira Code (code accents).
   ========================================================================== */

:root {
  --bg-0: #060d16;
  --bg-1: #0a1420;
  --bg-2: #0f1d2e;
  --navy: #16284a;
  --surface: rgba(56, 189, 248, 0.05);
  --surface-2: rgba(56, 189, 248, 0.09);
  --border: rgba(56, 189, 248, 0.12);
  --border-strong: rgba(56, 189, 248, 0.26);
  --cyan: #38bdf8;
  --cyan-dim: #0ea5e9;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --teal: #2dd4bf;
  --green: #4ade80;
  --red: #f87171;
  --text: #e8f1f8;
  --text-dim: #a3b5c8;
  --text-mute: #6b8197;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-glow: 0 30px 90px -20px rgba(56, 189, 248, 0.25);
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'Fira Code', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 32px);

  /* chart palette — validated (dataviz validator, dark, surface #0a1420: all checks pass) */
  --g-mobile: #1a9ad6;
  --g-web: #c97a12;
  --g-cloud: #109c8a;
  --g-arch: #8f63e6;
  --viz-past: #1a9ad6;
  --viz-now: #c97a12;
  --viz-grid: rgba(148, 168, 190, 0.14);
  --viz-axis: rgba(148, 168, 190, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg-0); }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(45, 212, 191, 0.06) 0%, transparent 60%);
  z-index: -2; pointer-events: none;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -1; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}
html.is-loading body { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(56, 189, 248, .35); color: #fff; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--cyan); color: var(--bg-0); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ═══════════ PRELOADER ═══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  pointer-events: none;
  visibility: hidden;
}
html.is-loading .preloader { visibility: visible; pointer-events: auto; }
.preloader .curtain {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--bg-0);
  transition: transform .9s var(--ease);
}
.preloader .curtain-top { top: 0; background: linear-gradient(180deg, var(--bg-0), var(--bg-1)); }
.preloader .curtain-bottom { bottom: 0; background: linear-gradient(0deg, var(--bg-0), var(--bg-1)); }
.pl-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: min(300px, 80vw);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.pl-spinner { width: 96px; height: 96px; position: relative; }
.pl-spinner .lottie { position: absolute; inset: 0; }
.pl-fallback {
  position: absolute; inset: 12px; border-radius: 50%;
  border: 5px solid rgba(56, 189, 248, .15); border-top-color: var(--cyan);
  animation: spin 1s linear infinite;
}
.pl-spinner.has-lottie .pl-fallback { display: none; }
.pl-logo { font-weight: 800; font-size: 30px; letter-spacing: -0.03em; }
.pl-logo span { color: var(--cyan); font-family: var(--mono); font-weight: 500; font-size: .8em; }
.pl-bar { width: 100%; height: 3px; border-radius: 3px; background: rgba(56, 189, 248, .12); overflow: hidden; }
.pl-bar span {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: transform .25s ease-out;
}
.pl-meta { width: 100%; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
html.is-done .pl-inner { opacity: 0; transform: translateY(-12px) scale(.96); }
html.is-done .curtain-top { transform: translateY(-101%); }
html.is-done .curtain-bottom { transform: translateY(101%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════ FIXED UI ═══════════ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(56, 189, 248, .10), rgba(245, 158, 11, .04) 40%, transparent 70%);
  opacity: 0; transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

.section-rail {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: none; flex-direction: column; gap: 14px;
}
.section-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 14px; }
.section-rail i {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--text-mute); transition: all .3s var(--ease); order: 2;
}
.section-rail b {
  font: 500 11px var(--mono); color: var(--text-dim);
  opacity: 0; transform: translateX(6px); transition: all .3s var(--ease); white-space: nowrap;
  background: rgba(6, 13, 22, .85); padding: 2px 8px; border-radius: 6px;
}
.section-rail a:hover b, .section-rail a:focus-visible b, .section-rail a.active b { opacity: 1; transform: none; }
.section-rail a.active i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan); transform: scale(1.3); }
.section-rail a.active b { color: var(--cyan); }
@media (min-width: 1360px) { .section-rail { display: flex; } }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10, 20, 32, .9); color: var(--cyan);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 100%; height: 100%; }
.to-top .tt-track { fill: none; stroke: rgba(56, 189, 248, .15); stroke-width: 2; }
.to-top .tt-ring {
  fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100);
  transform: rotate(-90deg); transform-origin: center;
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 400;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg-0); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; transition: all .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.tip {
  position: fixed; z-index: 450; pointer-events: none;
  min-width: 160px; max-width: 260px;
  background: rgba(10, 20, 32, .96); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: var(--text-dim);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
}
.tip strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.tip .tv { color: var(--text); font-family: var(--mono); }

/* ═══════════ NAV ═══════════ */
nav.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); }
/* blur lives on a pseudo-element: backdrop-filter on the nav itself would trap the fixed mobile drawer */
nav.top::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  background: rgba(6, 13, 22, 0.72);
}
nav.top .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.brand { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
.brand .code { color: var(--cyan); font-family: var(--mono); font-weight: 500; margin-left: -6px; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--text-dim); }
.nav-links a { position: relative; transition: color .25s; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-cv { display: none; }
.nav-cta {
  padding: 10px 20px; border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--surface); color: var(--cyan);
  transition: background .25s, color .25s, border-color .25s;
}
.nav-cta:hover { background: var(--cyan); color: var(--bg-0); border-color: var(--cyan); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px 6px; position: relative; z-index: 120; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 82vw);
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 90px 32px 32px; font-size: 18px;
    background: var(--bg-1); border-left: 1px solid var(--border);
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s; z-index: 110;
  }
  .nav-links.open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav-links .nav-cv { display: inline-block; color: var(--cyan); }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* ═══════════ BUTTONS ═══════════ */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 600; font-size: 14px; font-family: var(--font);
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), border-color .3s, color .3s, box-shadow .3s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-dim), var(--cyan)); color: var(--bg-0);
  box-shadow: 0 8px 28px -8px rgba(56, 189, 248, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(56, 189, 248, 0.7); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--cyan); color: var(--cyan); }
.btn-text { color: var(--text-dim); padding-left: 10px; padding-right: 10px; }
.btn-text:hover { color: var(--amber); }
.magnetic { will-change: transform; }

/* ═══════════ HERO ═══════════ */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 6vw, 80px); position: relative; overflow: hidden; overflow-x: clip; overflow-y: visible; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text);
}
.eyebrow .live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }
h1.hero-title {
  font-size: clamp(48px, 8.4vw, 108px);
  line-height: .92; letter-spacing: -0.045em; font-weight: 900;
  margin: 26px 0 22px;
}
h1.hero-title .line { display: block; }
h1.hero-title .accent {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--teal) 45%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; padding-right: .1em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
h1.hero-title .slash { font-family: var(--mono); color: var(--cyan); font-size: .42em; font-style: normal; font-weight: 500; opacity: .55; margin-left: 10px; vertical-align: .35em; }
.typing {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: clamp(15px, 1.7vw, 19px);
  margin-bottom: 20px; min-height: 1.6em;
}
.typing .prompt { color: var(--teal); }
.typing .typed { color: var(--amber-light); }
.typing .caret { width: .6em; height: 1.15em; background: var(--cyan); margin-left: -8px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: clamp(16px, 1.5vw, 18px); color: var(--text-dim); max-width: 34em; margin-bottom: 26px; font-weight: 300; line-height: 1.7; }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 30px; font-size: 14px; color: var(--text-mute); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--cyan); opacity: .8; }

/* hero entrance — the page's one orchestrated moment */
.js .hero-in { opacity: 0; transform: translateY(24px); }
.js.ready .hero-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s var(--ease); transition-delay: calc(var(--d) * 90ms + 100ms); }
.js .stage { opacity: 0; transform: scale(.94); }
.js.ready .stage { opacity: 1; transform: none; transition: opacity 1s ease .25s, transform 1.2s var(--ease) .25s; }

/* stage */
.stage { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 520px; justify-self: center; }
.stage .layer { will-change: transform; transition: transform .6s var(--ease); }
.stage-orbit { position: absolute; inset: -6% -10% 4%; opacity: .55; }
.stage-orbit .lottie { width: 100%; height: 100%; }
.stage-disc {
  position: absolute; left: 10%; right: 10%; top: 12%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--amber-light), var(--amber) 55%, #d97706);
  box-shadow: 0 40px 120px -30px rgba(245, 158, 11, .55);
}
.stage-ring {
  position: absolute; left: 3%; right: 3%; top: 5%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed rgba(56, 189, 248, .35);
  animation: spin 60s linear infinite;
}
.stage-person { position: absolute; left: 50%; bottom: 0; width: 78%; transform: translateX(-50%); z-index: 2; }
.stage-person img {
  width: 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
}
.chip {
  position: absolute; z-index: 3;
  background: rgba(10, 20, 32, .82); border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 18px; padding: 10px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7);
}
.chip svg, .chip .lottie { display: block; width: 100%; height: 100%; }
.chip-server { width: 84px; height: 84px; left: -2%; top: 14%; animation: bob 6s ease-in-out infinite; }
.chip-phone { width: 62px; height: 92px; right: 0; top: 36%; animation: bob 7s ease-in-out -2s infinite; }
.chip-cloud { width: 100px; height: 72px; right: 4%; top: 2%; animation: bob 8s ease-in-out -4s infinite; }
.chip-code { width: 92px; height: 64px; left: 2%; top: 52%; padding: 6px; animation: bob 6.5s ease-in-out -1s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.led { animation: led 1.6s steps(1) infinite; }
.led.l2 { animation-delay: -.5s; animation-duration: 1.1s; }
.led.l3 { animation-delay: -1s; animation-duration: 2.1s; }
@keyframes led { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .2; } }

.stage-badge {
  position: absolute; z-index: 4; left: 6%; right: 6%; bottom: 3%;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px;
  background: rgba(6, 13, 22, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong); border-radius: 16px;
}
.stage-badge picture { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.stage-badge img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.stage-badge > div { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; flex: 1; min-width: 0; }
.stage-badge .label { font-size: 12px; color: var(--text-mute); grid-column: 1; }
.stage-badge .val { font-weight: 600; font-size: 15px; grid-column: 1; }
.stage-badge .tag-avail {
  grid-column: 2; grid-row: 1 / 3;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3);
  color: var(--green); font-size: 11px; font-weight: 600; white-space: nowrap;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 8px; width: 24px; height: 38px; margin-left: -12px;
  border: 2px solid var(--border-strong); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 420px; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .chip-server { width: 66px; height: 66px; }
  .chip-cloud { width: 80px; height: 58px; }
  .chip-phone { width: 50px; height: 76px; }
  .chip-code { width: 74px; height: 52px; }
  .stage-badge .val { font-size: 14px; }
  .btn { padding: 14px 22px; }
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  padding: 22px 0; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(6, 13, 22, .55);
  -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: 44px; width: max-content; white-space: nowrap; animation: marq 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; color: var(--text-mute); display: flex; align-items: center; gap: 44px; transition: color .2s; }
.marquee-track span:hover { color: var(--text); }
.marquee-track span::after { content: ''; width: 7px; height: 7px; transform: rotate(45deg); background: var(--amber); opacity: .7; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ═══════════ SECTIONS ═══════════ */
main > section { padding: clamp(64px, 8vw, 100px) 0; position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.with-art { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--cyan); margin-bottom: 14px;
}
.section-tag::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--amber); }
h2.section-title { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 16ch; }
h2.section-title em, .contact-copy h2 em, .pull-quote em {
  font-style: italic;
  background: linear-gradient(120deg, var(--cyan), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .12em; margin-right: -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.section-lede { color: var(--text-dim); font-weight: 300; font-size: 17px; max-width: 36em; margin-top: 16px; }
.head-lottie { width: 150px; height: 110px; flex-shrink: 0; opacity: .9; }
.head-lottie.small { width: 96px; height: 96px; }
@media (max-width: 600px) { .head-lottie { width: 90px; height: 70px; } .head-lottie.small { width: 64px; height: 64px; } }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* illustrations */
.illo { margin: 0; }
.illo svg { width: 100%; height: auto; display: block; }
.illo figcaption { font-size: 13px; color: var(--text-mute); text-align: center; margin-top: 8px; }
.tl { opacity: 0; }
.in .tl { animation: tlIn .4s ease forwards; animation-delay: calc(var(--l) * .45s + .3s); }
@keyframes tlIn { to { opacity: 1; } }
.blink { animation: blink 1s steps(1) infinite; }

/* ═══════════ ABOUT ═══════════ */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-text p { font-size: 17px; color: var(--text-dim); margin-bottom: 20px; font-weight: 300; line-height: 1.8; max-width: 36em; }
.about-text p strong { color: var(--text); font-weight: 500; }
.illo-terminal { margin-top: 28px; padding: 18px; border-radius: var(--radius); background: rgba(6, 13, 22, .5); border: 1px solid var(--border); }

.photo-stack { position: relative; aspect-ratio: 1.15; margin-bottom: 28px; }
.photo-stack picture { position: absolute; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); transition: transform .5s var(--ease); }
.ps-about { left: 0; top: 0; width: 76%; transform: rotate(-3deg); border: 1px solid var(--border); }
.ps-collage { right: 0; bottom: 0; width: 64%; transform: rotate(4deg); border: 6px solid #f3e9df; border-radius: 10px !important; }
.ps-profile {
  left: 4%; bottom: 2%; width: 34%; aspect-ratio: 1; border-radius: 50% !important;
  background: radial-gradient(circle at 40% 35%, var(--amber-light), var(--amber));
  border: 4px solid var(--bg-1); box-shadow: 0 0 0 2px var(--cyan), 0 20px 40px -12px rgba(0, 0, 0, .7) !important;
}
.ps-profile img { width: 118%; max-width: none; margin: 2% 0 0 -9%; }
.photo-stack:hover .ps-about { transform: rotate(-5deg) translate(-6px, -4px); }
.photo-stack:hover .ps-collage { transform: rotate(6deg) translate(6px, 4px); }

.about-card {
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.about-card h3 { font-size: 20px; margin-bottom: 18px; }
.about-list { display: flex; flex-direction: column; gap: 14px; }
.about-list .item { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.about-list .item:last-child { border-bottom: none; padding-bottom: 0; }
.about-list .ico { width: 36px; height: 36px; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; display: grid; place-items: center; color: var(--cyan); }
.about-list .ico svg { width: 16px; height: 16px; }
.about-list dt { font-size: 12px; color: var(--text-mute); }
.about-list dd { font-size: 15px; color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* stats band */
.stats-band {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 14px;
  margin-top: clamp(48px, 6vw, 72px);
}
.stat, .stat-donut, .stat-card-img {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(10, 20, 32, .7); margin: 0;
}
.stat { padding: 26px 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; }
.stat .k, .donut-copy .k {
  font-size: clamp(40px, 4.4vw, 58px); font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .v, .donut-copy .v { margin-top: 10px; font-size: 14px; color: var(--text-dim); }
.stat-donut { display: flex; align-items: center; gap: 20px; padding: 22px; }
.donut { width: 128px; height: 128px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; display: block; }
.donut-copy p { font-size: 13px; color: var(--text-mute); margin-top: 4px; }
.stat-card-img { overflow: hidden; }
.stat-card-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) {
  .stats-band { grid-template-columns: repeat(3, 1fr); }
  .stat-donut { grid-column: 1 / 3; }
  .stat-card-img { grid-column: 3; grid-row: 1; }
}
@media (max-width: 640px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-donut { grid-column: 1 / -1; }
  .stat-card-img { grid-column: 2; grid-row: auto; }
  .stat { min-height: 130px; padding: 20px 18px; }
  .donut { width: 104px; height: 104px; }
}

/* pull quote */
.pull-quote {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.pull-quote picture { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); transform: rotate(-2deg); box-shadow: var(--shadow-glow); }
.pull-quote blockquote { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 300; position: relative; }
.pull-quote blockquote::before { content: '\201C'; position: absolute; left: -.08em; top: -.55em; font-size: 2.6em; color: var(--amber); opacity: .25; font-weight: 800; line-height: 1; }
.pull-quote figcaption { margin-top: 16px; color: var(--text-mute); font-size: 15px; }
@media (max-width: 760px) { .pull-quote { grid-template-columns: 1fr; } .pull-quote picture { max-width: 340px; } }

/* ═══════════ CHARTS ═══════════ */
.chart-card {
  margin: 0; padding: clamp(18px, 3vw, 30px);
  background: rgba(10, 20, 32, .72); border: 1px solid var(--border); border-radius: var(--radius);
}
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 18px; }
.chart-head h3 { font-size: 19px; letter-spacing: -0.01em; }
.chart-head p { font-size: 14px; color: var(--text-mute); max-width: 44em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-dim); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--text-dim); }
.chart .axis-label { font-size: 12px; fill: var(--text-mute); font-family: var(--mono); }
.chart .grid-line { stroke: var(--viz-grid); stroke-width: 1; }
.chart .baseline { stroke: var(--viz-axis); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .mark { transition: opacity .2s ease; }
.chart.hovering .mark { opacity: .45; }
.chart.hovering .mark.hot { opacity: 1; }

/* gantt */
.gantt .bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.gantt.in .bar { transform: scaleX(1); }
.gantt .bar-label { font-size: 13px; font-weight: 600; fill: var(--text); }
.gantt .bar-sub { font-size: 12px; fill: var(--text-mute); }
.gantt .today { stroke: var(--text-dim); stroke-dasharray: 3 4; }
.gantt .today-label { font-size: 11px; fill: var(--text-dim); font-family: var(--mono); }
.gantt .lbl { opacity: 0; transition: opacity .5s ease .8s; }
.gantt.in .lbl { opacity: 1; }

/* skill bars (HTML) */
.skillbars { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.sb-group h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.sb-group h4 i { width: 12px; height: 12px; border-radius: 3px; background: var(--gc); }
.sb-row { display: grid; grid-template-columns: 118px 1fr 92px; align-items: center; gap: 12px; padding: 5px 0; cursor: default; border-radius: 6px; }
.sb-name { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-track { height: 12px; position: relative; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, var(--viz-axis) 1px, transparent 1px); }
.sb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); background: var(--gc); border-radius: 0 4px 4px 0; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); transition-delay: calc(var(--k, 0) * 70ms); }
.skillbars.in .sb-fill { transform: scaleX(1); }
.sb-val { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sb-val b { color: var(--text); font-weight: 600; }
.sb-row.score .sb-track { background: repeating-linear-gradient(90deg, rgba(148, 168, 190, .18) 0 2px, transparent 2px 6px); border-radius: 4px; }
.sb-row.score .sb-fill { border-radius: 4px; background: repeating-linear-gradient(45deg, var(--gc) 0 6px, rgba(201, 122, 18, .45) 6px 9px); }
.sb-row:hover .sb-name { color: var(--cyan); }
.sb-note { grid-column: 1 / -1; font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.sb-axis { display: grid; grid-template-columns: 118px 1fr 92px; gap: 12px; margin-top: 6px; }
.sb-axis div { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--text-mute); }
@media (max-width: 860px) { .skillbars { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sb-row, .sb-axis { grid-template-columns: 96px 1fr 78px; gap: 8px; } .sb-name { font-size: 13px; } }

/* radar */
.radar { max-width: 380px; margin: 0 auto; }
.radar .ring { fill: none; stroke: var(--viz-grid); }
.radar .spoke { stroke: var(--viz-grid); }
.radar .area { fill: rgba(56, 189, 248, .16); stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; transform-origin: 200px 190px; transform: scale(0); transition: transform 1.2s var(--ease); }
.radar.in .area { transform: scale(1); }
.radar .vx { fill: var(--cyan); stroke: var(--bg-1); stroke-width: 2; opacity: 0; transition: opacity .4s ease 1s; }
.radar.in .vx { opacity: 1; }
.radar .ax-name { font-size: 13px; font-weight: 600; fill: var(--text); }
.radar .ax-val { font-size: 12px; fill: var(--text-dim); font-family: var(--mono); }
.radar .ring-label { font-size: 10px; fill: var(--text-mute); font-family: var(--mono); }

/* donut */
.donut .d-track { fill: none; stroke: rgba(56, 189, 248, .12); }
.donut .d-arc { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease); transform: rotate(-90deg); transform-origin: center; }
.donut.in .d-arc { stroke-dashoffset: var(--off); }

.table-view { margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.table-view summary { cursor: pointer; color: var(--text-mute); width: max-content; }
.table-view summary:hover { color: var(--cyan); }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.table-view th, .table-view td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-view th { color: var(--text); font-weight: 600; }
.table-view { overflow-x: auto; }

/* ═══════════ EXPERIENCE ═══════════ */
.exp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); margin-top: 36px; align-items: start; }
.timeline { display: flex; flex-direction: column; gap: 16px; position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--amber), var(--cyan) 30%, rgba(56, 189, 248, .1)); border-radius: 2px; }
.role {
  display: grid; grid-template-columns: 170px 1fr; gap: 28px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  position: relative; transition: border-color .3s, background .3s;
}
.role::before { content: ''; position: absolute; left: -28px; top: 34px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-0); border: 3px solid var(--cyan); }
.role:first-child::before { border-color: var(--amber); box-shadow: 0 0 0 6px rgba(245, 158, 11, .15); }
.role:hover { border-color: var(--border-strong); background: var(--surface-2); }
.role-meta .period { font-family: var(--mono); font-size: 13px; color: var(--cyan); margin-bottom: 4px; }
.role-meta .length { font-size: 13px; color: var(--text-mute); }
.role-meta .place { font-size: 13px; color: var(--text-mute); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.role-meta .type { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--text-dim); }
.role-body h3 { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 2px; letter-spacing: -0.01em; }
.role-body .co { font-size: 14px; color: var(--amber-light); margin-bottom: 12px; font-family: var(--mono); }
.role-body p { color: var(--text-dim); font-size: 15px; margin-bottom: 16px; font-weight: 300; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 4px 11px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; color: var(--text-dim); font-family: var(--mono); transition: border-color .2s, color .2s; }
.tag:hover { border-color: var(--cyan); color: var(--cyan); }
.exp-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.illo-code .cl { transform-box: fill-box; transform-origin: left; transform: scaleX(0); }
.illo-code.in .cl { animation: clIn .5s var(--ease) forwards; animation-delay: calc(var(--l) * .22s + .2s); }
@keyframes clIn { to { transform: scaleX(1); } }
.cursor-blink { animation: blink 1s steps(1) infinite; }
.illo-phone { max-width: 240px; margin: 0 auto; }
.phone-line { stroke-dasharray: 120; stroke-dashoffset: 120; }
.illo-phone.in .phone-line { animation: draw 1.6s var(--ease) .4s forwards; }
.notif { animation: notif 5s var(--ease) infinite; transform-box: fill-box; }
@keyframes notif { 0%, 12% { opacity: 0; transform: translateY(-10px); } 20%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 980px) {
  .exp-grid { grid-template-columns: 1fr; }
  .exp-aside { position: static; flex-direction: row; align-items: center; }
  .exp-aside .illo { flex: 1; min-width: 0; }
}
@media (max-width: 640px) {
  .role { grid-template-columns: 1fr; gap: 12px; }
  .timeline { padding-left: 22px; }
  .role::before { left: -22px; }
  .timeline::before { left: 4px; }
  .exp-aside { flex-direction: column; }
}

/* ═══════════ ARCHITECTURE ═══════════ */
.arch-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.arch-intro .section-head { margin-bottom: 0; }
.lottie-flow { width: 100%; max-width: 420px; aspect-ratio: 3; margin-top: 18px; }
.arch-illos { display: grid; grid-template-columns: .8fr 1fr; gap: 20px; align-items: end; }
@media (max-width: 860px) { .arch-intro { grid-template-columns: 1fr; } .arch-illos { max-width: 480px; } }

.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.arch-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .35s, box-shadow .35s var(--ease); min-width: 0; }
.arch-card:hover { border-color: var(--border-strong); box-shadow: 0 24px 60px -20px rgba(56, 189, 248, .22); }
.arch-card.full-width { grid-column: 1 / -1; }
.arch-header { padding: 26px 26px 0; }
.arch-num { font-family: var(--mono); font-size: 12px; color: var(--cyan); margin-bottom: 8px; }
.arch-card h3 { font-size: 21px; margin-bottom: 6px; }
.arch-desc { font-size: 14px; color: var(--text-mute); margin-bottom: 18px; }
.arch-diagram { padding: 18px; margin: 0 18px 18px; background: rgba(6, 13, 22, .6); border: 1px solid var(--border); border-radius: 14px; }
.arch-diagram.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram { width: 100%; height: auto; display: block; }
.diagram-wide { min-width: 640px; }
.diagram .wire { fill: none; stroke-width: 1.5; stroke-opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; }
.arch-card.in .diagram .wire { transition: stroke-dashoffset 1.2s var(--ease) .5s; stroke-dashoffset: 0; }
.diagram .node { opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--n) * 120ms + 100ms); }
.arch-card.in .diagram .node { opacity: 1; }
.diagram .dots { opacity: 0; transition: opacity .6s ease 1.6s; }
.arch-card.in .diagram .dots { opacity: 1; }
@media (max-width: 860px) { .arch-grid { grid-template-columns: 1fr; } }

/* ═══════════ SKILLS ═══════════ */
.skills-top { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; margin-bottom: 22px; align-items: stretch; }
.skills-img { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); }
.skills-img picture, .skills-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .skills-top { grid-template-columns: 1fr; } }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.skill-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); border-top: 3px solid var(--gc); }
.skill-card .num { font-family: var(--mono); font-size: 12px; color: var(--text-mute); margin-bottom: 8px; }
.skill-card h3 { font-size: 18px; margin-bottom: 16px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { padding: 6px 12px; background: rgba(56, 189, 248, .05); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text); transition: background .25s, color .25s, border-color .25s; }
.pill:hover { background: var(--cyan); border-color: var(--cyan); color: var(--bg-0); }
@media (max-width: 1060px) { .skill-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .skill-grid { grid-template-columns: 1fr; } }

/* ═══════════ GALLERY ═══════════ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; grid-auto-flow: dense; }
.gallery .cell { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--bg-2); border: 1px solid var(--border); }
.gallery .cell picture, .gallery .cell img { width: 100%; height: 100%; object-fit: cover; }
.gallery .cell img { transition: transform .8s var(--ease); }
.gallery .cell:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(6, 13, 22, .85); font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: all .35s var(--ease);
}
.gallery .cell:hover figcaption, .gallery .cell:focus-within figcaption { opacity: 1; transform: none; }
.gallery .c-code { grid-column: span 2; grid-row: span 2; }
.gallery .c-banner { grid-column: span 2; }
.gallery .c-banner img { object-position: left center; }
.gallery .c-notes, .gallery .c-mug, .gallery .c-arms { grid-row: span 2; }
.gallery .c-cut img { object-position: center 8%; padding-top: 14px; }
.gallery .c-arms img { object-fit: contain; object-position: bottom; }
.gallery .c-amber { background: radial-gradient(circle at 50% 75%, var(--amber-light), var(--amber) 45%, #b45309); }
.gallery .c-cyan { background: radial-gradient(circle at 50% 75%, #38bdf8, #0369a1); }
.gallery .c-teal { background: radial-gradient(circle at 50% 75%, #2dd4bf, #0f766e); }
.gallery .c-w1 img, .gallery .c-w2 img { object-position: center 30%; }
@media (min-width: 901px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px;
    grid-template-areas:
      "code code banner banner"
      "code code arms   notes"
      "mug  w1   arms   notes"
      "mug  w2   side   smile";
  }
  .gallery .cell { grid-column: auto; grid-row: auto; }
  .gallery .c-code { grid-area: code; } .gallery .c-banner { grid-area: banner; }
  .gallery .c-arms { grid-area: arms; } .gallery .c-notes { grid-area: notes; }
  .gallery .c-mug { grid-area: mug; } .gallery .c-w1 { grid-area: w1; } .gallery .c-w2 { grid-area: w2; }
  .gallery .c-side { grid-area: side; } .gallery .c-smile { grid-area: smile; }
}
@media (hover: none) { .gallery figcaption { opacity: 1; transform: none; } }

/* ═══════════ CERTS ═══════════ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cert-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); position: relative; overflow: hidden; transition: border-color .3s; }
.cert-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--cyan); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.cert-card:hover::before { transform: scaleY(1); }
.cert-card:hover { border-color: var(--border-strong); }
.cert-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cert-issuer { font-size: 13px; color: var(--text-mute); }
.cert-date { font-family: var(--mono); font-size: 12px; color: var(--cyan); margin-top: 8px; }
.score-bar { margin-top: 12px; height: 6px; border-radius: 3px; background: rgba(245, 158, 11, .12); overflow: hidden; }
.score-bar span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--amber); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.cert-score.in .score-bar span { transform: scaleX(1); }
@media (max-width: 900px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; } }

.promo {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 26px; border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(245, 158, 11, .08), rgba(56, 189, 248, .06) 50%, rgba(10, 20, 32, .8));
}
.promo-lottie { width: 84px; height: 84px; margin-bottom: 8px; }
.promo h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.02em; margin-bottom: 10px; }
.promo p { color: var(--text-dim); font-weight: 300; margin-bottom: 22px; max-width: 30em; }
.promo-img { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); transform: perspective(1000px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.promo:hover .promo-img { transform: none; }
@media (max-width: 860px) { .promo { grid-template-columns: 1fr; } .promo-img { transform: none; } }

/* ═══════════ CONTACT ═══════════ */
.contact-card {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 5vw, 60px);
  background: linear-gradient(160deg, rgba(56, 189, 248, .09) 0%, var(--bg-2) 40%, var(--bg-1) 100%);
  border: 1px solid var(--border-strong); border-radius: 30px;
  position: relative; overflow: hidden;
}
.contact-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 0%, rgba(56, 189, 248, .14) 0%, transparent 60%); pointer-events: none; }
.contact-art { position: relative; }
.contact-art picture { border-radius: 18px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); }
.illo-rocket { position: absolute; right: -4%; top: -14%; width: 26%; height: auto; overflow: visible; }
.rocket-body { animation: hover 3s ease-in-out infinite; }
.flame { transform-box: fill-box; transform-origin: top center; animation: flame .18s ease-in-out infinite alternate; }
.flame.inner { animation-duration: .12s; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flame { from { transform: scaleY(.8); } to { transform: scaleY(1.15); } }
.contact-lottie { position: absolute; left: -6%; bottom: -12%; width: 30%; aspect-ratio: 1; }
.contact-copy { position: relative; }
.contact-copy h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 16px; font-weight: 800; }
.contact-copy > p { font-size: 17px; color: var(--text-dim); max-width: 32em; margin-bottom: 24px; font-weight: 300; }
.contact-methods { display: grid; gap: 10px; margin-bottom: 26px; }
.contact-methods li { display: flex; align-items: center; gap: 8px; }
.cm-link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: rgba(6, 13, 22, .45);
  transition: border-color .25s, background .25s;
}
.cm-link:hover { border-color: var(--cyan); background: var(--surface-2); }
.cm-link svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }
.cm-link span { display: flex; flex-direction: column; min-width: 0; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.cm-link small { font-size: 12px; color: var(--text-mute); font-weight: 400; }
.copy {
  flex-shrink: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: transparent;
  color: var(--text-dim); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--amber); border-color: var(--amber); }
.copy.done { color: var(--green); border-color: var(--green); }
@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-art { max-width: 420px; margin: 20px auto 0; width: 88%; }
}

/* ═══════════ FOOTER ═══════════ */
footer { padding: 40px 0 36px; border-top: 1px solid var(--border); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; color: var(--text-mute); font-size: 14px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot .links a:hover, .foot a.jt { color: var(--cyan); }

/* lottie containers */
.lottie svg { display: block; }
.lottie.lottie-failed { display: none; }

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero-in, .js .stage { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .motion, .diagram .dots { display: none; }
  .diagram .wire { stroke-dashoffset: 0 !important; }
  .diagram .node, .tl { opacity: 1 !important; }
  .illo-code .cl { transform: none !important; }
  .phone-line { stroke-dashoffset: 0 !important; }
  .sb-fill, .gantt .bar, .radar .area, .score-bar span { transform: none !important; }
  .donut .d-arc { stroke-dashoffset: var(--off) !important; }
  .cursor-glow { display: none; }
}
