/* Be Vietnam Pro — self-hosted */
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bvp-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bvp-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bvp-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/bvp-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/bvp-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/bvp-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/bvp-600-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/bvp-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/bvp-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/bvp-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/bvp-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/bvp-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/bvp-800-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/bvp-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/bvp-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback (Arial scaled to Be Vietnam Pro) to minimise layout shift */
@font-face { font-family: "BVP Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"); size-adjust: 107%; ascent-override: 93.5%; descent-override: 24.8%; line-gap-override: 0%; }

/* =========================================================
   Hà Quốc Cường — Personal Brand
   Midnight navy · Electric cyan · Bento · Editorial
   ========================================================= */

:root {
  --bg: #060a13;
  --bg-2: #0a111f;
  --bg-3: #0f1829;
  --surface: rgba(148, 178, 255, 0.035);
  --surface-2: rgba(148, 178, 255, 0.06);
  --line: rgba(148, 178, 255, 0.12);
  --line-strong: rgba(148, 178, 255, 0.22);
  --text: #eef3fb;
  --text-2: #c3cede;
  --muted: #8a98ae;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --grad: linear-gradient(115deg, #22d3ee 0%, #3b82f6 55%, #6d8bff 100%);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.7);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Be Vietnam Pro", "BVP Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cyan); color: #04121a; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 10, 19, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  min-width: 0;
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: -0.01em; font-size: 1.02rem;
  min-height: 44px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0e1a2e, #0a1220);
  border: 1px solid var(--line-strong);
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  position: relative; overflow: hidden;
}
.brand-mark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; line-height: 1.2; }
.brand-text { line-height: 1.2; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 4px; }
.nav-desktop a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 14px; border-radius: 999px;
  font-size: .92rem; color: var(--text-2); font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-desktop a:hover { color: var(--text); background: var(--surface-2); }
.nav-desktop a.is-active { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .header-cta { display: none; }

.menu-toggle {
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle .bars::before { top: 1px; }
.menu-toggle .bars::after { top: 9px; }
.menu-open .menu-toggle .bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(6, 10, 19, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.menu-open .mobile-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s;
}
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.mobile-menu li { counter-increment: m; border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; min-height: 56px;
  font-size: clamp(1.4rem, 1rem + 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em;
}
.mobile-menu li a::before {
  content: "0" counter(m); font-size: .78rem; color: var(--cyan); font-weight: 600; font-variant-numeric: tabular-nums;
}
.mobile-menu .mobile-contact { display: grid; gap: 10px; color: var(--text-2); font-size: .95rem; }
.mobile-menu .mobile-contact a { min-height: 44px; display: inline-flex; align-items: center; }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  --pad-x: 22px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s, box-shadow .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--grad); color: #03111a;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .55), 0 0 0 1px rgba(255,255,255,.12) inset;
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .75), 0 0 0 1px rgba(255,255,255,.2) inset; }
.btn-ghost {
  background: var(--surface); border-color: var(--line-strong); color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(34, 211, 238, .45); }
.btn-sm { min-height: 42px; --pad-x: 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: clamp(80px, 9vw, 140px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow .num { color: var(--muted); font-variant-numeric: tabular-nums; }
.eyebrow::after { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.section-title { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); line-height: 1.14; }
.section-lead { color: var(--text-2); font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem); max-width: 62ch; }

/* ---------- Line reveal (titles) ---------- */
.lines .line { display: block; overflow: hidden; padding-block: .08em .12em; margin-block: -.08em -.12em; }
.lines .line > span { display: inline-block; }
.js .lines .line > span {
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + var(--d, 0ms));
}
.js .lines.is-in .line > span { transform: none; }

/* ---------- Generic reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
/* Above the fold: never hidden via opacity (keeps LCP fast); motion only */
.js .hero .reveal { opacity: 1; transform: translateY(14px); transition-duration: .7s; }
.js .hero .reveal.is-in { transform: none; }
.js .hero .lines .line > span { transition-duration: .75s; transition-delay: calc(var(--i, 0) * 80ms); }
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding-block: clamp(40px, 6vw, 90px) clamp(64px, 8vw, 110px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 80px));
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg .grid-fallback {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,178,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,178,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  will-change: transform;
}
.glow-a { width: 46vmax; height: 46vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(59,130,246,.55), transparent 65%); animation: drift-a 18s ease-in-out infinite alternate; }
.glow-b { width: 38vmax; height: 38vmax; right: -12vmax; top: 10%; background: radial-gradient(circle, rgba(34,211,238,.38), transparent 65%); animation: drift-b 22s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-6vmax, 8vmax, 0) scale(.94); } }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}

.hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: .84rem; color: var(--text-2); font-weight: 500;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.18); margin-left: 6px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,211,238,0); } }
.hero-title {
  font-size: clamp(2.1rem, 0.9rem + 6vw, 4.5rem);
  line-height: 1.1; letter-spacing: -0.035em; font-weight: 800;
}
.hero-title .line { white-space: nowrap; }
.hero-name {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); font-weight: 700; letter-spacing: -0.01em;
}
.hero-name .role { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.hero-name .role b { color: var(--cyan); font-weight: 600; }
.hero-intro { color: var(--text-2); max-width: 54ch; font-size: clamp(1.02rem, .98rem + .3vw, 1.16rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(59,130,246,.35), transparent 60%),
    linear-gradient(180deg, #0d1729, #070c16);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-monogram {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.portrait-monogram svg { width: 78%; height: auto; }
.portrait-caption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(6,10,19,.6); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .82rem;
}
.portrait-caption b { display: block; font-size: .95rem; }
.portrait-caption span { color: var(--muted); }
.portrait-caption .live { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; white-space: nowrap; }
.portrait-caption .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

.chip-float {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 12px;
  background: rgba(10,17,31,.85); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.8);
  animation: bob 6s ease-in-out infinite;
}
.chip-float i { width: 8px; height: 8px; border-radius: 3px; background: var(--grad); }
.chip-1 { top: 9%; left: -6%; }
.chip-2 { top: 42%; right: -7%; animation-delay: -2s; }
.chip-3 { bottom: 22%; left: -9%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.js .portrait { clip-path: inset(7% 7% 7% 7% round var(--radius-lg)); transition: clip-path 1.1s var(--ease); }
.js .portrait img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.js .portrait-wrap.is-in .portrait img { transform: none; }
.js .portrait-wrap.is-in .portrait { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js .portrait-wrap .chip-float { opacity: 0; transition: opacity .8s var(--ease) 1.2s; }
.js .portrait-wrap.is-in .chip-float { opacity: 1; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.strip-track { display: flex; gap: 48px; padding-block: 18px; width: max-content; animation: marquee 40s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 48px; color: var(--muted); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.strip-track span::after { content: "✦"; color: var(--cyan); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About (editorial) ---------- */
.about-grid { display: grid; gap: clamp(40px, 6vw, 80px); }
.about-aside { display: grid; gap: 24px; align-content: start; }
.about-aside .section-title { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem); }
.about-body { display: grid; gap: 28px; font-size: clamp(1.04rem, 1rem + .3vw, 1.17rem); color: var(--text-2); }
.about-body .dropcap::first-letter {
  float: left; font-size: 4.2em; line-height: .9; font-weight: 800; margin: .06em .12em 0 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-body h3 { color: var(--text); font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.about-body strong { color: var(--text); font-weight: 600; }
.qa { display: grid; gap: 28px; }
.qa-item { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.qa-item .q { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--cyan); font-weight: 600; }

.values { display: grid; gap: 12px; margin-top: 8px; }
.value {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start;
  padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.value .n { grid-row: span 2; font-size: .8rem; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; padding-top: 3px; }
.value b { color: var(--text); font-weight: 600; }
.value p { font-size: .95rem; color: var(--muted); }

.manifesto {
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(34,211,238,.12), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.manifesto blockquote { margin: 0; font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem); line-height: 1.3; font-weight: 700; letter-spacing: -0.025em; max-width: 26ch; }
.manifesto .mark { font-size: 5rem; line-height: .6; color: var(--cyan); opacity: .5; display: block; margin-bottom: 12px; font-weight: 800; }
.manifesto figcaption { margin-top: 24px; color: var(--muted); font-size: .92rem; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)), var(--bg-2);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34,211,238,.12), transparent 45%);
  transition: opacity .4s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(34,211,238,.6), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(34,211,238,.08); }
  .card:hover::before, .card:hover::after { opacity: 1; }
}
.bento .card { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cyan-soft); border: 1px solid rgba(34,211,238,.25); color: var(--cyan);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); }
.card p { color: var(--text-2); font-size: .97rem; }
.card .example {
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong);
  font-size: .88rem; color: var(--muted);
}
.card .example b { color: var(--cyan); font-weight: 600; display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 500; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
}
.card-feature { background: radial-gradient(90% 90% at 100% 0%, rgba(59,130,246,.22), transparent 60%), var(--bg-2); }
.card-feature h3 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem); }
.card-stats { justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
.stat b { display: block; font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { font-size: .84rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }
.support-list { display: grid; gap: 8px; grid-template-columns: 1fr; }
.support-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
.support-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .65em; border-radius: 2px; background: var(--cyan); }

/* ---------- Projects ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  font-size: .9rem; font-weight: 500; transition: all .25s;
}
.filter:hover { border-color: var(--line-strong); color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.projects { display: grid; gap: 18px; grid-template-columns: 1fr; }
.project { display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), opacity .4s; }
.project.is-hidden { display: none; }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #08101e; }
.project-media svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.project:hover .project-media svg { transform: scale(1.04); }
.js .project-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) .1s; }
.js .project.is-in .project-media { clip-path: inset(0 0 0 0); }
.project-cat {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  background: rgba(6,10,19,.7); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
}
.project-body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.project-body h3 { font-size: clamp(1.2rem, 1.08rem + .5vw, 1.5rem); }
.psr { display: grid; gap: 12px; }
.psr div { display: grid; gap: 2px; }
.psr dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.psr dd { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.6; }
.project-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--cyan);
}
.link-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* dialog */
.modal {
  width: min(720px, calc(100vw - 24px)); max-height: min(86vh, 860px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--bg-2); color: var(--text);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9);
}
.modal::backdrop { background: rgba(3,6,12,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .45s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-inner { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.modal-close {
  position: sticky; top: 0; float: right; margin: 12px 12px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--bg-3); display: grid; place-items: center;
}
.modal h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); padding-right: 40px; }
.modal .detail-body { color: var(--text-2); display: grid; gap: 14px; }
.modal .detail-body h4 { color: var(--text); font-size: 1rem; margin-top: 6px; }
.modal .detail-body ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.modal .detail-body li::marker { color: var(--cyan); }

/* ---------- Journey / timeline ---------- */
.timeline { position: relative; display: grid; gap: 14px; padding-left: 34px; }
.timeline::before, .timeline-progress {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
}
.timeline::before { background: var(--line); }
.timeline-progress { background: var(--grad); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 16px rgba(34,211,238,.5); }
.milestone { position: relative; }
.milestone::before {
  content: ""; position: absolute; left: -29px; top: 26px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong); transition: all .4s var(--ease);
}
.milestone.is-active::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 6px rgba(34,211,238,.15); }
.milestone-btn {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, background .3s;
}
.milestone-btn:hover { border-color: var(--line-strong); }
.milestone.is-open .milestone-btn { background: var(--surface-2); border-color: rgba(34,211,238,.35); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.milestone-btn .when { grid-column: 1; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.milestone-btn .what { grid-column: 1; font-size: clamp(1.06rem, 1rem + .4vw, 1.28rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.35; }
.milestone-btn .plus { grid-column: 2; grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .4s var(--ease); }
.milestone-btn .plus svg { width: 14px; height: 14px; }
.milestone.is-open .plus { transform: rotate(45deg); border-color: var(--cyan); color: var(--cyan); }
.milestone-panel {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease);
  border: 1px solid transparent; border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
}
.milestone.is-open .milestone-panel { grid-template-rows: 1fr; border-color: rgba(34,211,238,.35); background: var(--surface); }
.milestone-panel > div { overflow: hidden; }
.milestone-panel p { padding: 4px 22px 20px; color: var(--text-2); font-size: .97rem; }
.milestone-panel .tags { padding: 0 22px 20px; }

/* ---------- Insights ---------- */
.insights { display: grid; gap: 18px; grid-template-columns: 1fr; }
.post { display: flex; flex-direction: column; }
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #08101e; }
.post-cover svg { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.post:hover .post-cover svg { transform: scale(1.05); }
.post-body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.post-meta .cat { color: var(--cyan); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.post h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem); line-height: 1.3; }
.post h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post p { color: var(--text-2); font-size: .95rem; }
.post .link-more { margin-top: auto; padding: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ---------- Testimonials ---------- */
.testi {
  display: grid; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, rgba(148,178,255,.02) 0 12px, transparent 12px 24px), var(--bg-2);
}
.testi h3 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); }
.testi p { color: var(--text-2); max-width: 60ch; }
.testi-slots { display: grid; gap: 10px; }
.slot {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .9rem;
}
.slot i { width: 36px; height: 36px; border-radius: 50%; flex: none; border: 1px dashed var(--line-strong); display: grid; place-items: center; font-style: normal; color: var(--cyan); }

/* ---------- Contact ---------- */
.contact-wrap {
  position: relative; overflow: hidden;
  border-radius: clamp(20px, 3vw, 32px); border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(59,130,246,.22), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(34,211,238,.12), transparent 60%),
    var(--bg-2);
  padding: clamp(24px, 5vw, 64px);
  display: grid; gap: clamp(32px, 5vw, 64px);
}
.contact-title { font-size: clamp(2.1rem, 1.2rem + 4vw, 4.2rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info > p { color: var(--text-2); max-width: 48ch; }
.channels { display: grid; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px;
  border-radius: 14px; background: rgba(6,10,19,.45); border: 1px solid var(--line);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
.channel:hover { border-color: rgba(34,211,238,.45); background: rgba(6,10,19,.7); transform: translateX(4px); }
.channel .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); flex: none; }
.channel .ic svg { width: 19px; height: 19px; }
.channel small { display: block; font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.channel span { font-weight: 600; font-size: .98rem; word-break: break-word; }

.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 500; color: var(--text-2); }
.field label .req { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  background: rgba(6,10,19,.6); border: 1px solid var(--line-strong);
  font-size: 1rem; /* >=16px prevents iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a98ae' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #f87171; }
.field .err { font-size: .82rem; color: #fca5a5; min-height: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { font-size: .92rem; padding: 12px 16px; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.35); color: #a5f3fc; }
.form-status.warn { display: block; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); color: #fde68a; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(36px + env(safe-area-inset-bottom)); margin-top: clamp(60px, 8vw, 120px); }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { color: var(--muted); font-size: .92rem; max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--text-2); font-size: .92rem; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.to-top { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Article pages ---------- */
.article-hero { padding-block: clamp(40px, 7vw, 100px) clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.article-hero .glow-a { opacity: .35; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-2); min-height: 32px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--cyan); }
.article-title { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; max-width: 22ch; }
.article-lead { margin-top: 20px; font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); color: var(--text-2); max-width: 60ch; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; margin-bottom: clamp(32px, 5vw, 56px); background: #08101e; }
.article-cover svg { width: 100%; height: 100%; }
.prose { max-width: 70ch; margin-inline: auto; font-size: clamp(1.04rem, 1rem + .25vw, 1.15rem); color: var(--text-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { color: var(--text); font-size: clamp(1.35rem, 1.15rem + .9vw, 1.8rem); margin-top: 2em; }
.prose h3 { color: var(--text); font-size: 1.2rem; margin-top: 1.6em; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--cyan); }
.prose blockquote { margin-inline: 0; padding: 18px 22px; border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text); font-weight: 500; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article-cta { max-width: 70ch; margin: clamp(48px, 6vw, 80px) auto 0; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-2); display: grid; gap: 14px; }
.article-cta h2 { font-size: 1.35rem; }
.article-cta p { color: var(--text-2); }
.article-cta .row { display: flex; flex-wrap: wrap; gap: 10px; }
.more-posts { max-width: 70ch; margin: 48px auto 0; display: grid; gap: 10px; }
.more-posts a { display: block; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; transition: border-color .3s; }
.more-posts a:hover { border-color: rgba(34,211,238,.45); }
.more-posts small { display: block; color: var(--cyan); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- 404 ---------- */
.notfound { min-height: 70svh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .code { font-size: clamp(5rem, 3rem + 12vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }
.notfound p { color: var(--text-2); margin: 16px auto 28px; max-width: 44ch; }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* =========================================================
   Breakpoints (mobile-first)
   ========================================================= */
@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .support-list { grid-template-columns: 1fr 1fr; }
  .testi-slots { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .projects, .insights { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .values { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: flex; }
  .timeline { padding-left: 0; grid-template-columns: 1fr 1fr; column-gap: 72px; }
  .timeline::before, .timeline-progress { left: 50%; transform-origin: top; margin-left: -1px; }
  .milestone:nth-of-type(odd) { grid-column: 1; }
  .milestone:nth-of-type(even) { grid-column: 2; margin-top: 70px; }
  .milestone::before { left: auto; right: -43px; }
  .milestone:nth-of-type(even)::before { right: auto; left: -43px; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
  .header-actions .header-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.35fr .8fr; }
  .hero-visual { justify-self: end; }
  .about-grid { grid-template-columns: .85fr 1.15fr; }
  .about-aside { position: sticky; top: calc(var(--header-h) + 32px); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .bento .row-2 { grid-row: span 2; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .insights { grid-template-columns: repeat(3, 1fr); }
  .insights .post:first-child { grid-column: span 2; }
  .insights .post:first-child .post-cover { aspect-ratio: 21 / 9; }
  .testi { grid-template-columns: 1.1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr 1.05fr; }
}

@media (min-width: 1600px) {
  :root { --maxw: 1400px; }
  .hero-title { font-size: 5.2rem; }
}

/* Short landscape phones: let hero size to content */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .scroll-cue { display: none; }
  .mobile-menu li a { padding: 10px 0; min-height: 48px; font-size: 1.3rem; }
}

@media (max-width: 380px) {
  .chip-1 { left: -2%; } .chip-2 { right: -2%; } .chip-3 { left: -2%; }
  .btn { --pad-x: 18px; }
}

/* ---------- 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: 0ms !important; }
  .js .reveal, .js .lines .line > span { opacity: 1; transform: none; }
  .js .portrait, .js .project-media { clip-path: none; }
  .js .portrait-wrap .chip-float { opacity: 1; }
  .strip-track { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- Photos ---------- */
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,10,19,.75)); pointer-events: none; }
.portrait-caption { z-index: 1; }

.img-reveal { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-3); }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; }
.js .img-reveal.reveal { opacity: 1; transform: none; clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js .img-reveal.reveal img { transform: scale(1.15); }
.js .img-reveal.reveal.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .img-reveal.reveal.is-in img { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .img-reveal:hover img { transform: scale(1.04) !important; } }
.img-reveal figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 500; color: var(--text);
  background: rgba(6,10,19,.7); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.about-photo { aspect-ratio: 3 / 2; }

.moments-head { display: grid; gap: 12px; margin: clamp(56px, 8vw, 100px) 0 24px; max-width: 640px; }
.moments { display: grid; gap: 12px; grid-auto-flow: dense; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(150px, 34vw); }
.moments figure { height: 100%; }
.m-a { grid-row: span 2; }
.m-b, .m-e { grid-column: span 2; }
@media (min-width: 768px) { .moments { grid-auto-rows: 210px; } }
@media (min-width: 1024px) {
  .moments { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
  .m-a { grid-row: span 2; }
  .m-b { grid-column: span 2; }
  .m-e { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .js .img-reveal.reveal { clip-path: none; }
  .js .img-reveal.reveal img { transform: none; }
}
@media (max-width: 559px) {
  .img-reveal figcaption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 9px; font-size: .7rem; line-height: 1.35; border-radius: 8px; }
}
