/* Suyash Makrand Chaudhari - portfolio + SecureCloud docs. No build step.
   Theme: light/dark from prefers-color-scheme, overridable with the toggle
   (sets <html data-theme="light|dark">). */
:root {
  --bg: #f6f7fb;
  --bg-soft: #eceff7;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, .72);
  --ink: #0b1220;
  --muted: #5b6578;
  --line: #e2e6ef;
  --brand: #4361ee;
  --brand-2: #06b6d4;
  --brand-ink: #ffffff;
  --glow-1: rgba(67, 97, 238, .16);
  --glow-2: rgba(6, 182, 212, .12);
  --grid: rgba(11, 18, 32, .045);
  --code-bg: #0b1220;
  --code-ink: #d7e3f4;
  --zone: #eef3fb;
  --zone-gcp: #eef7f0;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 10px 30px rgba(11, 18, 32, .06);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, .05), 0 24px 60px rgba(11, 18, 32, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070b14; --bg-soft: #0d1322; --surface: #0f1626; --surface-glass: rgba(15, 22, 38, .7);
  --ink: #e9eef7; --muted: #95a1b8; --line: #1d2840; --brand: #7c8cff; --brand-2: #22d3ee; --brand-ink: #070b14;
  --glow-1: rgba(124, 140, 255, .18); --glow-2: rgba(34, 211, 238, .1); --grid: rgba(233, 238, 247, .035);
  --code-bg: #050810; --code-ink: #cfe0f5; --zone: #0f1829; --zone-gcp: #0e1d17;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070b14; --bg-soft: #0d1322; --surface: #0f1626; --surface-glass: rgba(15, 22, 38, .7);
    --ink: #e9eef7; --muted: #95a1b8; --line: #1d2840; --brand: #7c8cff; --brand-2: #22d3ee; --brand-ink: #070b14;
    --glow-1: rgba(124, 140, 255, .18); --glow-2: rgba(34, 211, 238, .1); --grid: rgba(233, 238, 247, .035);
    --code-bg: #050810; --code-ink: #cfe0f5; --zone: #0f1829; --zone-gcp: #0e1d17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
/* Ambient background: two soft glows over a faint grid, fixed behind everything. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, var(--glow-1), transparent 70%),
    radial-gradient(700px 480px at -10% 30%, var(--glow-2), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .9em; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex;
  padding: 12px clamp(16px, 4vw, 40px);
  transition: background .25s, border-color .25s, box-shadow .25s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom-color: var(--line);
}
.topbar-inner { flex: 1; max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; }
.brand {
  display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--brand); }
.mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .85rem; font-weight: 700;
}
.nav {
  display: flex; gap: 2px; margin: 0 auto; padding: 4px;
  background: var(--surface-glass); border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem;
  padding: 7px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--bg-soft); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color .2s, transform .2s, color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 2px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------------------------------------------------------------- layout */
main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin-bottom: 2.2rem; }

/* ---------------------------------------------------------------- buttons, chips, cards */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .78rem 1.3rem; border-radius: 999px;
  font: 600 .96rem var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--brand-2)));
  color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 35%, transparent);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 45%, transparent); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn.ghost:hover { border-color: var(--brand); transform: translateY(-2px); }
.btn.sm { padding: .5rem 1rem; font-size: .88rem; }
.btn.lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-size: .8rem; font-weight: 500; padding: 5px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink);
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: border-color .25s, transform .25s, box-shadow .25s;
}

/* ---------------------------------------------------------------- reveal on scroll (JS adds .in) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
}
.status {
  display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--ink);
  padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface-glass); border: 1px solid var(--line); margin: 0 0 1.4rem;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 { font-size: clamp(2.4rem, 1.3rem + 4vw, 4.4rem); letter-spacing: -.035em; font-weight: 700; line-height: 1.04; }
.grad { background: linear-gradient(110deg, var(--brand) 10%, var(--brand-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 1.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.hero .socials { display: flex; gap: 10px; margin-top: 1.6rem; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 420px); padding: 18px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 0; border-radius: 36px; z-index: -1;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2), color-mix(in srgb, var(--brand) 40%, transparent), var(--brand));
  opacity: .9; filter: blur(0); transform: rotate(-4deg);
}
.portrait {
  margin: 0; border-radius: 28px; overflow: hidden; background: var(--bg-soft);
  border: 4px solid var(--surface); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
  background: var(--surface-glass); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  animation: bob 6s ease-in-out infinite;
}
.float-chip svg {
  width: 34px; height: 34px; padding: 7px; border-radius: 10px; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.float-chip b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.2; }
.float-chip small { display: block; font-size: .76rem; color: var(--muted); }
.chip-top { top: 9%; left: -8%; }
.chip-bottom { bottom: 8%; right: -8%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- stats strip */
.stats {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stats li { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stats span { display: block; margin-top: .3rem; font-size: .86rem; line-height: 1.4; color: var(--muted); }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: 1.15fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.about-grid p { color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 1.6rem; }
.pillars div { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.pillars .pi { display: block; font: 600 .74rem var(--mono); color: var(--brand); margin-bottom: .5rem; }
.pillars b { display: block; font-family: var(--font-display); font-weight: 600; }
.pillars small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: .2rem; }
.code-card {
  background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}
.code-card .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f56; }
.code-card .bar i:nth-child(2) { background: #ffbd2e; }
.code-card .bar i:nth-child(3) { background: #27c93f; }
.code-card .bar span { margin-left: auto; font: .78rem var(--mono); color: #7f8ba3; }
.code-card pre { margin: 0; padding: 20px 22px 24px; font-size: .88rem; line-height: 1.75; overflow-x: auto; background: none; border-radius: 0; }
.tk-k { color: #c792ea; } .tk-s { color: #c3e88d; } .tk-n { color: #f78c6c; } .tk-p { color: #89ddff; } .tk-c { color: #6b7a96; }

/* ---------------------------------------------------------------- skills (bento) */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile.wide { grid-column: span 2; }
.tile h3 { margin: .9rem 0 .8rem; }
.tile-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line));
}
.tile-icon svg { width: 22px; height: 22px; }
.card.tile:hover, .card.project:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------------------------------------------------------------- projects */
.tag { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 .5rem; }
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: center; padding: clamp(24px, 4vw, 40px);
  position: relative; overflow: hidden; margin-bottom: 18px;
}
.featured::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.featured h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .6rem; }
.featured-copy > p { color: var(--muted); }
.featured .chips { margin: 1.2rem 0 1.4rem; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.flowline { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.flowline::before { content: ""; position: absolute; left: 17px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2)); opacity: .5; }
.flowline li {
  counter-increment: f; position: relative; padding: 12px 14px 12px 52px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--line);
}
.flowline li::before {
  content: counter(f); position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; box-shadow: 0 0 0 4px var(--bg-soft);
}
.flowline b { display: block; font-size: .92rem; }
.flowline span { display: block; font-size: .82rem; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.project p { margin: 0; color: var(--muted); }
.project .soon { font-style: italic; }

/* ---------------------------------------------------------------- community */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; position: relative; }
.badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface);
  border: 1px solid var(--line); color: var(--brand); box-shadow: var(--shadow); position: relative;
}
.badge svg { width: 24px; height: 24px; }
.timeline .card { padding: 20px 24px; }
.timeline h3 { margin-bottom: .25rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- contact */
.cta {
  text-align: center; padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 56px); border-radius: 28px; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 260px at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); }
.cta .lead { margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-actions .btn { max-width: 100%; }
.cta-actions .btn.primary { overflow-wrap: anywhere; }
.cta-links { display: flex; justify-content: center; gap: 24px; margin-top: 1.6rem; }
.cta-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.cta-links a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- footer */
.footer { margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 40px); color: var(--muted); font-size: .86rem; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.delivery { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .8rem; }
.delivery .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.delivery[data-state="hit"] .dot { background: #22c55e; }
.delivery[data-state="miss"] .dot { background: #f59e0b; }

/* ---------------------------------------------------------------- docs page (securecloud.html) */
.doc-hero { padding: clamp(40px, 7vw, 88px) 0 24px; }
.doc-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); max-width: 22ch; letter-spacing: -.03em; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 2rem; }
.hero-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.hero-stats strong { display: block; color: var(--brand); font-family: var(--font-display); }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.cards .card p { margin: 0; color: var(--muted); font-size: .95rem; }
.diagram { margin: 1rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); overflow-x: auto; }
.diagram svg { width: 100%; min-width: 680px; height: auto; display: block; }
.diagram figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; text-align: center; }
.zone { fill: var(--zone); stroke: var(--line); }
.zone.gcp { fill: var(--zone-gcp); }
.zone-label { fill: var(--muted); font-size: 13px; font-weight: 600; }
.box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.box.accent { stroke: var(--brand); stroke-width: 2; }
.box.store { stroke: #34a853; stroke-width: 2; }
.box.cdn { stroke: #4285f4; stroke-width: 2; }
.box.lb { stroke: #fbbc04; stroke-width: 2; }
.box-text { fill: var(--ink); font-size: 15px; font-weight: 600; text-anchor: middle; }
.box-text.sm { font-size: 13px; }
.box-sub { fill: var(--muted); font-size: 11.5px; text-anchor: middle; }
.flow { stroke: var(--brand); stroke-width: 2; fill: none; }
.flow.dashed { stroke-dasharray: 5 4; }
.arrowhead { fill: var(--brand); }
.flow-label { fill: var(--muted); font-size: 11.5px; text-anchor: middle; }
.flow-label.start { text-anchor: start; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.steps p { margin: 0; color: var(--muted); }
.block-visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.bv-file { background: var(--zone); border-radius: 8px; padding: 10px 14px; font-weight: 600; text-align: center; }
.bv-blocks { display: grid; grid-template-columns: 1fr 1fr 1fr .4fr; gap: 8px; }
.bv-blocks span { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border: 1px solid var(--brand); border-radius: 8px; padding: 8px 4px; text-align: center; font-size: .85rem; font-weight: 600; }
.bv-blocks small { display: block; font-weight: 400; color: var(--muted); }
.bv-layout { display: grid; grid-template-columns: 1fr 4fr 1.3fr; font-size: .8rem; text-align: center; border-radius: 8px; overflow: hidden; }
.bv-layout span { padding: 8px 4px; }
.bv-layout .n { background: #ffd79a; color: #3a2600; }
.bv-layout .c { background: #1f3a5f; color: #e6edf6; }
.bv-layout .t { background: #b8e0a6; color: #13320a; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); margin-bottom: 1rem; }
.tabs button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font: inherit; font-size: .9rem; }
.tabs button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.usage-list { display: grid; gap: 14px; }
.usage-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.usage-step > div { min-width: 0; }
.num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--brand); }
pre { position: relative; margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .86rem; line-height: 1.55; }
.copy { position: absolute; top: 8px; right: 8px; border: 1px solid #33445f; background: #18263b; color: #cfe0f5; border-radius: 6px; padding: 2px 10px; font-size: .75rem; cursor: pointer; }
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { background: var(--bg-soft); font-weight: 600; }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.code404 { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 360px); }
  .about-grid, .featured { grid-template-columns: 1fr; }
  .bento, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hire { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .topbar-actions { margin-left: auto; }
  .topbar { background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; gap: 2px; margin: 0; padding: 8px;
    border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 12px; font-size: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .bento, .project-grid, .pillars { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .stats li { padding: 18px; }
  .stats strong { font-size: 1.55rem; }
  .chip-top { left: -2%; }
  .chip-bottom { right: -2%; }
  .cta-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .steps li { padding-left: 56px; }
  .code-card pre { font-size: .76rem; padding: 16px; }
  .brand .name-long { display: none; }
  .float-chip { padding: 8px 10px 8px 8px; }
  .float-chip svg { width: 28px; height: 28px; padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
