/* =========================================================
   Suraj Suthar — portfolio v3
   Engineer-grade · Geist · dark-first · signal orange
   ========================================================= */
:root {
  --bg: #09090b;
  --bg-2: #111113;
  --card: #111114;
  --card-2: #18181b;
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #71717a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --accent: #ff6a33;
  --accent-soft: rgba(255, 106, 51, .14);
  --accent-ink: #0a0a0a;
  --on-ink: #09090b;
  --ok: #4ade80;
  --info: #60a5fa;
  --warn: #fbbf24;
  --term-bg: #0c0c0e;
  --dot: rgba(255, 255, 255, .07);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  --map-bg: #0c110e; --map-block: #111813; --map-park: #13241a; --map-road: #233029; --map-line: #3b4a40;
  --map-label: #9aa69d; --map-ink: #eef2ee; --map-cab: #f4f4f5;

  --f-sans: "Geist", "Inter", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --f-serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.65, .05, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f6f3;
  --bg-2: #eeece7;
  --card: #ffffff;
  --card-2: #f4f3ef;
  --ink: #0a0a0a;
  --ink-2: #52525b;
  --ink-3: #8a8a93;
  --line: rgba(10, 10, 10, .09);
  --line-2: rgba(10, 10, 10, .2);
  --accent: #f25418;
  --accent-soft: rgba(242, 84, 24, .1);
  --accent-ink: #ffffff;
  --on-ink: #f7f6f3;
  --ok: #16a34a;
  --dot: rgba(10, 10, 10, .09);
  --shadow: 0 40px 70px -40px rgba(40, 30, 10, .35);
  --map-bg: #e8ece3; --map-block: #dde3d5; --map-park: #cfe0c4; --map-road: #c3ccba; --map-line: #f7f9f4;
  --map-label: #56635a; --map-ink: #101510; --map-cab: #18181b;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
code, .mono { font-family: var(--f-mono); }
.it { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { padding-inline: var(--pad); max-width: 1600px; margin-inline: auto; }
.label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Background grid + cursor spotlight ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}
.bg-grid::after {
  content: ""; position: fixed; inset: 0;
  background: radial-gradient(500px circle at var(--cx, 50%) var(--cy, -20%), var(--accent-soft), transparent 60%);
}
main, .nav, .footer { position: relative; z-index: 1; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; background: #09090b; color: #f4f4f5;
  display: grid; grid-template-rows: 1fr auto; padding: var(--pad);
}
html:not(.js) .loader, .loader.done { display: none; }
.loader-log { font-size: 12px; line-height: 1.9; color: #71717a; align-self: start; }
.loader-log b { color: #4ade80; font-weight: 500; }
.loader-count { position: absolute; right: var(--pad); bottom: calc(var(--pad) - 10px); font: 200 clamp(80px, 18vw, 260px)/.8 var(--f-sans); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.loader-count i { font-style: normal; font-size: .3em; vertical-align: top; color: #ff6a33; }
.loader-name { font: 600 clamp(22px, 3vw, 34px)/1.1 var(--f-sans); letter-spacing: -0.03em; display: grid; gap: 6px; }
.loader-name em { color: #ff6a33; }
.loader-name small { font-size: 12px; font-weight: 400; color: #71717a; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), opacity .3s;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor.hide { opacity: 0; }
.cursor-label { font: 600 12px var(--f-sans); color: var(--accent-ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.big .cursor-label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } body.has-cursor input { cursor: text; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad); transition: transform .6s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.hidden { transform: translateY(-110%); }
.nav.solid { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.5); border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.logo-txt { font: 600 16px var(--f-sans); letter-spacing: -0.02em; }
.logo-txt b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; font-size: 14.5px; font-weight: 500; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--card) 60%, transparent); backdrop-filter: blur(10px); }
.nav-links a { padding: 0 14px; overflow: hidden; height: 34px; line-height: 34px; border-radius: 999px; color: var(--ink-2); transition: background .3s, color .3s; }
.nav-links a span { display: block; position: relative; transition: transform .5s var(--ease); }
.nav-links a span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--accent); }
.nav-links a:hover span { transform: translateY(-100%); }
.nav-links a.active { background: var(--card-2); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 12px; border-radius: 11px; background: var(--ink); color: var(--on-ink); font: 600 14px var(--f-sans); transition: background .3s, color .3s; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-ink) 22%, transparent); }
.pill-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill-btn:hover { background: var(--accent); color: var(--accent-ink); }
.theme-btn { width: 54px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; }
.theme-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); transition: transform .6s var(--ease), box-shadow .6s; transform: translateX(24px); }
[data-theme="light"] .theme-knob { transform: translateX(0); background: var(--ink); box-shadow: inset -6px -2px 0 0 var(--accent); }
.menu-btn { display: none; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.menu-btn i { width: 26px; height: 10px; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 8px; }
.menu-open .menu-btn i::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 4px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--on-ink);
  display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--pad) 32px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .nav { color: var(--on-ink); background: transparent; border-color: transparent; backdrop-filter: none; }
.menu nav { display: grid; }
.menu nav a { font: 600 clamp(44px, 12vw, 86px)/1.1 var(--f-sans); letter-spacing: -0.05em; display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 15%, transparent); padding: 6px 0; }
.menu nav a small { font: 12px var(--f-mono); color: var(--accent); letter-spacing: 0; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { color: var(--accent-ink); }
.btn-line { border: 1px solid var(--line-2); background: color-mix(in srgb, var(--card) 50%, transparent); }
.btn-line:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn-arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .btn-arrow { transform: translateY(3px); }
.btn { height: 54px; padding: 0 24px; border-radius: 14px; font: 600 15px var(--f-sans); letter-spacing: -0.01em; }
.btn:has(.btn-arrow) { padding-right: 8px; }
.btn-ink { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-ink) 22%, transparent), 0 16px 30px -16px color-mix(in srgb, var(--ink) 70%, transparent); }
.btn-arrow { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--on-ink) 14%, transparent); transition: transform .5s var(--ease), background .3s; }
.btn:hover .btn-arrow { transform: translateY(2px); background: rgba(0, 0, 0, .14); }
.btn-line { border: 0; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 color-mix(in srgb, #fff 7%, transparent); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-left: -4px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: 92px var(--pad) 40px; display: flex; flex-direction: column; position: relative; max-width: 1600px; margin-inline: auto; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 80%, transparent 100%); }
.hero > :not(.hero-canvas) { position: relative; z-index: 1; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.hero-meta b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.facts dd.ok i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: ping 1.8s infinite; flex-shrink: 0; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

.hero-name {
  font: 800 clamp(84px, 19vw, 320px)/.84 var(--f-sans); letter-spacing: -0.07em;
  margin: clamp(18px, 3vw, 40px) 0 clamp(20px, 3vw, 44px); display: grid;
}
.hero-name .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero-name .line-2 { display: flex; align-items: center; justify-content: flex-end; gap: .1em; }
.hero-name .word { display: inline-block; }
.hero-name .it { font-weight: 400; letter-spacing: -0.035em; color: var(--accent); padding-right: .04em; }
.hero-name .ch { display: inline-block; will-change: transform; }
.hero-star { font-size: .32em; color: var(--ink); display: inline-block; animation: spin 12s linear infinite; margin-right: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid { display: grid; grid-template-columns: 1fr minmax(220px, 290px) minmax(340px, 480px); gap: clamp(20px, 3vw, 48px); align-items: end; flex: 1; }
.now-card {
  position: relative; display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; padding: 9px 12px 9px 9px;
  border-radius: 18px; border: 1px solid var(--line-2); isolation: isolate;
  background: color-mix(in srgb, var(--card) 72%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -26px rgba(0,0,0,.6);
}
.now-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 68%, var(--accent) 84%, #ffb35c 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ang 4.5s linear infinite;
}
.now-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #0a0a0a; background: linear-gradient(135deg, var(--accent), #ffb35c); box-shadow: 0 10px 24px -10px var(--accent); }
.now-txt { display: grid; gap: 2px; line-height: 1.1; }
.now-txt small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.now-txt b { font: 700 20px var(--f-sans); letter-spacing: -0.035em; color: var(--ink); }
.now-where { display: inline-flex; align-items: center; gap: 10px; margin-left: 4px; padding: 3px 6px 3px 16px; border-left: 1px solid var(--line-2); }
.now-where svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.now-where > span { display: grid; gap: 4px; line-height: 1; }
.now-where b { font: 600 14px var(--f-sans); letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.now-where small { font-size: 10px; letter-spacing: .02em; color: var(--ink-3); white-space: nowrap; }

.hero-role { display: grid; gap: 6px; font: 800 clamp(34px, 3.3vw, 54px)/1.02 var(--f-sans); letter-spacing: -0.06em; }
.role-pre { font: 500 clamp(16px, 1.3vw, 20px)/1 var(--f-mono); letter-spacing: 0; color: var(--ink-3); }
.role-pre::before { content: "// "; color: var(--accent); }
.role-line { display: inline-flex; align-items: center; min-height: 1.1em; white-space: nowrap; }
.role-type {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 35%, var(--accent) 50%, #ffb35c 60%, var(--ink) 75%, var(--ink) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 5s linear infinite; padding-bottom: .06em;
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.role-caret { display: inline-block; width: .1em; height: .86em; margin-left: .08em; border-radius: 3px; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: blink 1s steps(1) infinite; }

.hero-text { margin: 16px 0 28px; color: var(--ink-2); max-width: 480px; font-size: 18px; }
.hero-text em { color: var(--ink); font-size: 1.15em; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-portrait { margin: 0; position: relative; justify-self: center; width: 100%; }
.arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.arch img { width: 100%; height: 115%; object-fit: cover; object-position: center 15%; will-change: transform; }
.badge { position: absolute; width: 124px; height: 124px; left: -42px; bottom: 24px; animation: spin 16s linear infinite; }
.badge text { font: 600 13px var(--f-mono); letter-spacing: .14em; fill: var(--ink); }
.badge-core { position: absolute; left: -42px; bottom: 24px; width: 124px; height: 124px; display: grid; place-items: center; pointer-events: none; font-size: 24px; color: var(--accent-ink); z-index: 1; }
.badge-core::before { content: ""; position: absolute; width: 62px; height: 62px; border-radius: 50%; background: var(--accent); z-index: -1; }

/* Terminal */
.terminal {
  background: var(--term-bg); color: #d4d4d8; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06); font-family: var(--f-mono);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #18181b; border-bottom: 1px solid #27272a; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font-size: 12px; color: #71717a; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-bar em { font: 11px var(--f-mono); color: #ff6a33; border: 1px solid rgba(255,106,51,.4); padding: 2px 8px; border-radius: 999px; white-space: nowrap; animation: nudge 3s var(--ease) infinite; }
@keyframes nudge { 0%, 80%, 100% { transform: none; } 85% { transform: translateY(-3px); } 90% { transform: none; } 95% { transform: translateY(-2px); } }
.term-body { height: 300px; overflow-y: auto; padding: 14px 16px; font-size: 13px; line-height: 1.7; scrollbar-width: thin; scrollbar-color: #3f3f46 transparent; }
#termOut { white-space: pre-wrap; word-break: break-word; }
.term-line { display: flex; align-items: center; gap: 8px; }
.term-line input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fafafa; font: inherit; caret-color: #ff6a33; padding: 0; }
.t-p { color: #4ade80; } .t-dir { color: #60a5fa; } .t-c { color: #fafafa; }
.t-o { color: #a1a1aa; } .t-ok { color: #4ade80; } .t-w { color: #fbbf24; } .t-a { color: #ff8a5c; } .t-b { color: #fafafa; font-weight: 700; }
.t-l { color: #60a5fa; text-decoration: underline; text-underline-offset: 3px; }
.t-cursor { display: inline-block; width: 8px; height: 15px; background: #ff6a33; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 30px 0; overflow: hidden; position: relative; z-index: 1; }
.marquee { overflow: hidden; white-space: nowrap; }
.m1 { background: var(--accent); color: var(--accent-ink); transform: rotate(-2deg) scale(1.04); padding: 14px 0; }
.marquee-in { display: inline-flex; align-items: center; gap: 36px; animation: marq 26s linear infinite; padding-right: 36px; will-change: transform; }
.marquee span { font: 700 clamp(34px, 5vw, 72px)/1 var(--f-sans); letter-spacing: -0.05em; }
.marquee span.it { font-weight: 400; letter-spacing: -0.02em; }
.marquee b { font-size: clamp(22px, 3vw, 40px); display: inline-block; animation: spin 6s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.manifesto, .about, .experience, .do, .pipe-sec, .journey, .stack, .certs, .dsa, .principles { padding-top: clamp(90px, 12vw, 170px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-title { font: 700 clamp(40px, 6.2vw, 96px)/.95 var(--f-sans); letter-spacing: -0.06em; }
.sec-title em { color: var(--accent); font-size: 1.08em; letter-spacing: -0.03em; }
.sec-title code { font-size: .5em; vertical-align: middle; background: var(--card-2); border: 1px solid var(--line-2); color: var(--accent); padding: .1em .35em; border-radius: .3em; letter-spacing: -0.02em; font-weight: 500; }
.sec-sub { color: var(--ink-2); font-size: 18px; max-width: 620px; }

/* Manifesto */
.manifesto .label { margin-bottom: 30px; }
.manifesto-text { font: 500 clamp(28px, 4.2vw, 64px)/1.12 var(--f-sans); letter-spacing: -0.045em; max-width: 1380px; text-indent: 18%; }
.manifesto-text .w { opacity: .14; transition: opacity .2s; }
.no-anim .manifesto-text .w { opacity: 1; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.about-side { position: sticky; top: 100px; display: grid; gap: 26px; }
.polaroids { position: relative; height: 340px; display: none; touch-action: none; }
.polaroids.has-photos { display: block; }
.polaroid {
  position: absolute; left: 50%; top: 0; margin: 0; width: 210px; padding: 10px 10px 34px; background: #fafafa;
  border-radius: 6px; box-shadow: 0 25px 45px -20px rgba(0,0,0,.6); cursor: grab; user-select: none;
  transform: translateX(-50%) translate(calc(var(--tx) + var(--dx, 0px)), calc(var(--ty) + var(--dy, 0px))) rotate(var(--r)) scale(var(--s, 1));
  transition: transform .5s var(--ease-out), box-shadow .3s;
}
.polaroid.dragging { cursor: grabbing; transition: none; --s: 1.05; box-shadow: 0 40px 60px -20px rgba(0,0,0,.7); }
.polaroid img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: 2px; pointer-events: none; }
.polaroid figcaption { position: absolute; left: 12px; bottom: 9px; font-size: 11px; color: #52525b; }
.drag-hint { position: absolute; left: 0; bottom: -6px; font-size: 11px; color: var(--ink-3); }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { font: 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.now-tag { font: 600 10px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }

.about-copy { display: grid; gap: 22px; color: var(--ink-2); font-size: 18px; max-width: 780px; }
.about-copy b { color: var(--ink); font-weight: 600; }
.about-copy .big { font: 500 clamp(26px, 2.6vw, 38px)/1.2 var(--f-sans); letter-spacing: -0.04em; color: var(--ink); }
.about-copy .big em { color: var(--accent); }
.mode {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: fit-content;
  padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
}
.mode button { position: relative; z-index: 1; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .5s var(--ease); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.mode button[aria-selected="true"] { color: var(--on-ink); }
.mode-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .6s var(--ease); }
.about[data-mode="plain"] .mode-knob { transform: translateX(100%); background: var(--accent); }
.about[data-mode="plain"] .mode button[aria-selected="true"] { color: var(--accent-ink); }
.mode-panel { display: grid; gap: 20px; }
.mode-panel[hidden] { display: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border-top: 1px solid var(--line); }
.stat { padding: 22px 16px 0 0; display: grid; gap: 4px; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat b { font: 700 clamp(36px, 4vw, 58px)/1 var(--f-sans); letter-spacing: -0.06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-3); }

/* ---------- Experience ---------- */
.exp { display: grid; grid-template-columns: minmax(260px, 1fr) 1.6fr; gap: 24px 48px; padding: 34px 0; border-top: 1px solid var(--line); }
.exp-now {
  padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--line-2); border-radius: 28px; margin-bottom: 20px;
  background: radial-gradient(500px 260px at 0% 0%, var(--accent-soft), transparent 70%), var(--card);
  position: relative; overflow: hidden;
}
.exp-when { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; }
.exp-now .exp-when { color: var(--ok); }
.exp h3 { font: 700 clamp(30px, 3.6vw, 54px)/1 var(--f-sans); letter-spacing: -0.05em; margin: 12px 0 10px; }
.exp-co { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.redact { width: 96px; height: 14px; border-radius: 3px; background: var(--ink); position: relative; overflow: hidden; }
.redact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent), transparent); transform: translateX(-100%); animation: shimmer 2.6s var(--ease) infinite; }
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-list li { display: grid; grid-template-columns: 42px 1fr; padding: 14px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); font-size: 16.5px; }
.exp-list li:first-child { padding-top: 0; }
.exp-list span { font: 12px var(--f-mono); color: var(--accent); padding-top: 4px; }
.exp-p { color: var(--ink-2); font-size: 16.5px; }
.exp .tags { margin-top: 18px; color: var(--ink-2); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font: 11.5px var(--f-mono); padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; }

/* ---------- Bento (live sims) ---------- */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile, .tile-in { min-width: 0; }
.t-ci { grid-column: span 4; } .t-pods { grid-column: span 2; }
.t-mon, .t-alert, .t-iac, .t-auto { grid-column: span 3; }
.t-you { grid-column: span 6; }
.tile { border-radius: 24px; perspective: 1100px; }
.tile-in {
  position: relative; height: 100%; padding: 18px 18px 20px; border-radius: inherit; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-2), var(--card) 45%);
  display: flex; flex-direction: column; gap: 16px; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s; transform-style: preserve-3d;
}
[data-theme="light"] .tile-in { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -26px rgba(40,30,10,.25); }
.tile-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 60%);
}
.tile-in::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 60%, var(--accent) 78%, #ffb35c 84%, transparent 96%);
  -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; animation: ang 3.5s linear infinite paused;
}
@keyframes ang { to { --ang: 360deg; } }
.tile:hover .tile-in { border-color: transparent; }
.tile:hover .tile-in::before { opacity: 1; }
.tile:hover .tile-in::after { opacity: 1; animation-play-state: running; }

.tile-head { display: flex; align-items: center; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tile-n { color: var(--accent); font-weight: 600; }
.tile-k { color: var(--ink-2); white-space: nowrap; }
.tile-head { flex-wrap: wrap; row-gap: 8px; }
.live { margin-left: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px; border-radius: 8px;
  font: 500 12px/1 var(--f-sans); letter-spacing: -0.005em; text-transform: none; white-space: nowrap; color: var(--ink-2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 7%, transparent), color-mix(in srgb, var(--ink) 2.5%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 11%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}
.chip svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chip.ok {
  color: var(--ok);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 15%, transparent), color-mix(in srgb, var(--ok) 5%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 30%, transparent);
}
.bars-live { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; color: var(--ok); flex-shrink: 0; }
.bars-live i { display: block; width: 2.5px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.bars-live i:nth-child(1) { animation-delay: -.3s; }
.bars-live i:nth-child(2) { animation-delay: -.75s; }
.bars-live i:nth-child(3) { animation-delay: -.1s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.tile-txt { display: grid; gap: 6px; }
.tile h3 { font: 700 23px/1.1 var(--f-sans); letter-spacing: -0.045em; }
.plain { color: var(--ink-2); font-size: 15px; }
.plain > span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 3px; }
.tile .tags { margin-top: auto; color: var(--ink-3); }

/* the console window inside each tile — always dark, like a real tool */
.scr {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; color: #d4d4d8;
  background: var(--term-bg); border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 24px 40px -28px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.scr-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #141417; border-bottom: 1px solid #222226; font-size: 11px; color: #71717a; }
.scr-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; flex-shrink: 0; }
.scr-bar i:nth-child(2) { background: #febc2e; } .scr-bar i:nth-child(3) { background: #28c840; }
.scr-bar span { margin-left: 6px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-bar b { color: #e4e4e7; font-weight: 500; }
.scr-bar em { font: 10.5px var(--f-mono); color: #a1a1aa; background: #1f1f23; padding: 2px 8px; border-radius: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scr-body { padding: 14px; font-size: 12px; flex: 1; margin: 0; }

/* shared log list */
.console { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; font-size: 11.5px; line-height: 1.6; overflow: hidden; }
.console li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #a1a1aa; animation: logIn .35s var(--ease-out); min-width: 0; }
.console .ts { color: #52525b; margin-right: 8px; }
.console .c { color: #e4e4e7; } .console .g { color: #4ade80; } .console .y { color: #fbbf24; } .console .b { color: #60a5fa; }
.console .o { color: #ff8a5c; } .console .r { color: #f87171; } .console .m { color: #71717a; } .console .p { color: #c084fc; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
.scr-body.console { padding: 12px 14px; }

/* CI */
.ci-top { display: flex; gap: 10px; align-items: center; color: #a1a1aa; }
.ci-hash { color: #ff8a5c; }
.ci-msg { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e4e4e7; }
.ci-who { color: #71717a; } .ci-who::before { content: "@"; }

.ci-flow { position: relative; margin: 18px 0 14px; }
.ci-rail { position: absolute; top: 20px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; border-radius: 2px; background: #27272a; }
.ci-rail span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #4ade80 85%, #fbbf24); box-shadow: 0 0 12px rgba(74,222,128,.55); transition: width .7s var(--ease-out); }
.ci-flow ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ci-flow li { display: grid; justify-items: center; gap: 7px; text-align: center; min-width: 0; }
.ci-node { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #111114; border: 1.5px solid #2f2f35; color: #5b5b63; transition: background .35s, border-color .35s, color .35s, box-shadow .35s; }
.ci-node svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.ci-node .ic-ok { display: none; stroke-width: 3; }
.ci-flow b { font: 600 12px var(--f-sans); letter-spacing: -0.01em; color: #71717a; transition: color .3s; white-space: nowrap; }
.ci-flow small { margin-top: -5px; font-size: 10px; color: #3f3f46; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ci-flow li.run .ci-node { color: #fbbf24; border-color: rgba(251,191,36,.6); background: #1c180d; box-shadow: 0 0 0 5px rgba(251,191,36,.08), 0 0 24px -2px rgba(251,191,36,.5); }
.ci-flow li.run .ci-node::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: #fbbf24; border-right-color: rgba(251,191,36,.3); animation: spin .8s linear infinite; }
.ci-flow li.run b { color: #fbbf24; }
.ci-flow li.run small { color: #a16207; }
.ci-flow li.ok .ci-node { color: #0b1a10; background: #4ade80; border-color: #4ade80; box-shadow: 0 0 22px -6px rgba(74,222,128,.9); animation: nodepop .45s var(--ease-out); }
.ci-flow li.ok .ic { display: none; }
.ci-flow li.ok .ic-ok { display: block; }
.ci-flow li.ok b { color: #e4e4e7; }
.ci-flow li.ok small { color: #4ade80; }
@keyframes nodepop { 40% { transform: scale(1.15); } }
#ciLog { height: calc(5 * 1.6em + 12px); }

/* Pods */

.pods { display: flex; flex-direction: column; gap: 10px; }
.pod-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pod-sum div { display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; background: #141417; border: 1px solid #222226; min-width: 0; }
.pod-sum small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: #71717a; }
.pod-sum b { font-size: 17px; font-weight: 500; color: #fafafa; font-variant-numeric: tabular-nums; transition: color .3s; }
.pod-sum b i { font-style: normal; font-size: 12px; color: #52525b; }
.pod-sum b.hot { color: #fbbf24; }
.pod-head, .pod-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .95fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.pod-head { font-size: 9.5px; letter-spacing: .08em; color: #52525b; padding: 0 4px; }
.pod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; height: calc(6 * 24px + 5 * 4px); }
.pod-list li { height: 24px; padding: 0 4px; border-radius: 6px; font-size: 11px; animation: logIn .4s var(--ease-out); transition: opacity .5s, background .3s; }
.pod-list li:hover { background: #18181b; }
.pn { color: #e4e4e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #4ade80; white-space: nowrap; overflow: hidden; }
.ps i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; flex-shrink: 0; }
.ps em { font: inherit; font-family: var(--f-mono); font-style: normal; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
.pod-list li[data-state="creating"] .ps { color: #fbbf24; }
.pod-list li[data-state="creating"] .ps i { animation: blink .6s steps(1) infinite; }
.pod-list li[data-state="terminating"] { opacity: .4; }
.pod-list li[data-state="terminating"] .ps { color: #f87171; }
.pc { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pbar { flex: 1; height: 5px; border-radius: 3px; background: #222226; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #a78bfa); transition: width .7s var(--ease-out); }
.pod-list li.hot .pbar i { background: linear-gradient(90deg, #fbbf24, #f87171); }
.pc b { width: 3.2ch; text-align: right; font-weight: 500; color: #a1a1aa; font-variant-numeric: tabular-nums; }
.pod-ev { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #27272a; color: #a1a1aa; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-ev b { color: #60a5fa; font-weight: 500; }
.pod-ev .m { color: #52525b; margin-right: 8px; }
.access { justify-content: flex-start; }

/* Monitoring */
.mon { display: flex; flex-direction: column; }
.mon-kpis { display: flex; gap: 22px; flex-wrap: wrap; }
.mon-kpis span { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; color: #a1a1aa; }
.mon-kpis small { flex-basis: 100%; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #71717a; }
.mon-kpis b { font-size: 20px; font-weight: 500; color: #fafafa; font-variant-numeric: tabular-nums; transition: color .3s; }
.mon-kpis .hot b { color: #fbbf24; }
.mon-chart { width: 100%; height: 96px; margin-top: auto; padding-top: 12px; overflow: visible; }
.mon-grid { stroke: #222226; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mon-thr { stroke: #f87171; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .7; }
.mon-area { fill: rgba(255,106,51,.14); }
.mon-line { fill: none; stroke: #ff6a33; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mon-axis { display: flex; justify-content: space-between; font-size: 10px; color: #52525b; margin-top: 6px; }

/* Alerts */
.alert { display: flex; flex-direction: column; gap: 12px; }
.alert-status { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #4ade80; transition: color .3s; padding-bottom: 10px; border-bottom: 1px dashed #27272a; }
.alert-status i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; flex-shrink: 0; }
.alert[data-state="firing"] .alert-status { color: #fbbf24; }
.alert[data-state="firing"] .alert-status i { animation: blink .5s steps(1) infinite; }
.alert[data-state="fixing"] .alert-status { color: #60a5fa; }
#alertLog { height: calc(5 * 1.6em + 12px); }
.iac, .autolog { height: calc(7 * 1.6em + 46px); }

/* You — real visitor data */
.you-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.you-hero { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 4px 2px; }
.you-eyebrow { font-size: 11.5px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.you-ips { display: grid; gap: 8px; }
.you-resolving { font-size: 14px; color: var(--ink-3); }
.ip-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; text-align: left; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); transition: border-color .3s, transform .4s var(--ease-out); }
.ip-row:hover { border-color: var(--accent); transform: translateX(4px); }
.ip-row[hidden], .you-loc[hidden], .you-ips[hidden] { display: none; }
.ip-tag { flex-shrink: 0; padding: 3px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; background: var(--accent); color: #0a0a0a; }
#youIp6Row .ip-tag { background: #c084fc; }
.ip-val { min-width: 0; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; word-break: break-all; }
#youIp4 { font-size: clamp(22px, 2.1vw, 30px); }
#youIp6 { font-size: clamp(13px, 1.05vw, 15.5px); }
.you-loc { font-size: 16px; font-weight: 500; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.you-loc .cc { font: 600 11px var(--f-mono); padding: 2px 7px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); }
.you-note { font-size: 13.5px; color: var(--ink-3); max-width: 340px; }
.you-scr .scr-body { height: 270px; }
.access li .ip { color: #c084fc; }
.you-facts { margin: 0; display: grid; align-content: center; font-size: 12px; border-top: 1px solid var(--line); }
.you-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.you-facts dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; white-space: nowrap; padding-top: 1px; }
.you-facts dd { margin: 0; color: var(--ink); text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* ---------- Pipeline ---------- */
.pipe { position: relative; padding: 40px 0 10px; }
.pipe-track { position: absolute; left: 4%; right: 4%; top: 52px; height: 2px; background: var(--line-2); }
.packet { position: absolute; top: -5px; left: 0; width: 60px; height: 12px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--accent)); box-shadow: 0 0 22px var(--accent); animation: travel 6s linear infinite; }
@keyframes travel { from { left: -60px; } to { left: 100%; } }
.pipe ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.pipe li { display: grid; justify-items: center; text-align: center; gap: 6px; }
.node { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3); margin-bottom: 18px; position: relative; animation: lit 6s linear infinite; animation-delay: calc(var(--i) * 1s - .3s); }
.node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); }
@keyframes lit { 0%, 12% { border-color: var(--accent); box-shadow: 0 0 0 8px var(--accent-soft); } 20%, 100% { border-color: var(--ink-3); box-shadow: 0 0 0 0 transparent; } }
.pipe b { font: 600 clamp(18px, 1.8vw, 26px) var(--f-sans); letter-spacing: -0.035em; }
.pipe small { font: 12px var(--f-mono); color: var(--ink-3); }

/* ---------- Work (horizontal) ---------- */
.work { padding-top: clamp(90px, 12vw, 170px); }
.work-pin { overflow: hidden; }
.work-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; margin-bottom: 40px; }
.work-head .label { grid-column: 1 / -1; }
.work-progress { font-size: 14px; color: var(--ink-3); }
.work-progress span { color: var(--ink); font-size: 28px; font-weight: 500; }
.work-track { display: flex; gap: 24px; padding: 0 var(--pad) 20px; width: max-content; will-change: transform; }
.proj {
  position: relative; width: min(78vw, 620px); flex-shrink: 0; border-radius: 26px; background: var(--card);
  border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .4s;
}
.proj::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%); }
.proj:hover { border-color: var(--line-2); }
.proj:hover::after { opacity: 1; }
.proj-link, .cert-a { position: absolute; inset: 0; z-index: 3; }
.proj-art { height: clamp(220px, 32vh, 320px); position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.proj-info { padding: 26px 28px 30px; display: grid; gap: 12px; }
.proj-meta { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.proj h3 { font: 700 clamp(28px, 3vw, 40px)/1 var(--f-sans); letter-spacing: -0.05em; }
.proj-info > p:not(.proj-meta) { color: var(--ink-2); font-size: 16px; }
.proj .tags { color: var(--ink-2); margin-top: 4px; }

.art-notes { background: #ffd8c4; }
[data-theme="dark"] .art-notes { background: #2a1810; }
.note { position: absolute; width: 170px; padding: 16px; border-radius: 12px; background: #fffaf2; color: #141210; box-shadow: 0 20px 40px -20px rgba(60,30,10,.5); display: grid; gap: 8px; transition: transform .8s var(--ease); }
.note b { font: 600 15px var(--f-sans); letter-spacing: -0.02em; }
.note i { height: 6px; border-radius: 4px; background: #e6ddcf; }
.note i.s { width: 55%; }
.n1 { left: 12%; top: 18%; transform: rotate(-8deg); }
.n2 { left: 38%; top: 30%; transform: rotate(4deg); background: #141210; color: #fffaf2; }
.n2 i { background: #3a3631; }
.n3 { left: 63%; top: 14%; transform: rotate(10deg); background: #ff6a33; }
.n3 i { background: rgba(20,18,16,.25); }
.proj:hover .n1 { transform: rotate(-14deg) translate(-16px, -6px); }
.proj:hover .n2 { transform: rotate(0) translateY(-14px); }
.proj:hover .n3 { transform: rotate(16deg) translate(16px, -4px); }
.crud { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 11px; letter-spacing: .1em; color: #6b3a22; white-space: nowrap; }
[data-theme="dark"] .crud { color: #ffb08c; }

/* surajlogistic — full-card fleet map */
.proj-full { width: min(88vw, 920px); justify-content: flex-end; min-height: clamp(470px, calc(100svh - 210px), 720px); }
.proj-full .proj-art { position: absolute; inset: 0; height: auto; border: 0; }
.art-fleet { background: var(--map-bg); cursor: crosshair; }
.art-fleet canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.proj-full .proj-info {
  position: relative; z-index: 4; margin-top: auto;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid var(--line);
}
.proj-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.proj-foot .tags { margin: 0; }
.proj-gh { position: relative; z-index: 5; font: 600 13px var(--f-sans); padding: 11px 16px; border-radius: 11px; background: var(--ink); color: var(--on-ink); transition: background .3s, color .3s; white-space: nowrap; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-ink) 22%, transparent); }
.proj-gh:hover { background: var(--accent); color: var(--accent-ink); }
.fleet-hud { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; max-width: 56%; pointer-events: none; }
.fleet-hud > span, .fleet-feed li {
  font-size: 11px; color: var(--map-label);
  background: color-mix(in srgb, var(--map-bg) 82%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--map-road), 0 10px 20px -14px rgba(0, 0, 0, .7);
}
.fleet-hud > span { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 8px; font: 500 12px var(--f-sans); white-space: nowrap; }
.fleet-hud svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.fleet-hud b { color: var(--map-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fleet-live { color: var(--map-ink) !important; font-weight: 600 !important; }
.fleet-live .bars-live { color: var(--accent); }
.fleet-feed li { border-radius: 8px; }
.fleet-feed { position: absolute; right: 16px; top: 16px; z-index: 3; list-style: none; margin: 0; padding: 0; width: min(290px, 40%); display: grid; gap: 6px; pointer-events: none; }
.fleet-feed li { padding: 7px 10px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: feedIn .5s var(--ease-out); }
.fleet-feed li:nth-child(2) { opacity: .75; } .fleet-feed li:nth-child(3) { opacity: .5; }
.fleet-feed b { color: var(--map-ink); font-weight: 600; }
.fleet-feed .ok { color: var(--ok); } .fleet-feed .o { color: var(--accent); } .fleet-feed .y { color: #d4a017; }
@keyframes feedIn { from { opacity: 0; transform: translateX(18px); } }

.art-code { background: #0c0c0e; color: #d4d4d8; padding: 26px 28px; font-size: 13px; }
.art-code pre { margin: 0; font: inherit; line-height: 1.7; white-space: pre; transition: transform .8s var(--ease); }
.proj:hover .art-code pre { transform: translateY(-14px); }
.art-code .c { color: #71717a; } .art-code .k { color: #ff8a5c; } .art-code .s { color: #4ade80; }

.art-site { background: linear-gradient(135deg, #ff6a33, #ffb35c); display: grid; place-items: center; }
.mini-browser { width: 78%; border-radius: 12px; overflow: hidden; background: #09090b; box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); transform: rotate(-3deg); transition: transform .8s var(--ease); }
.proj:hover .mini-browser { transform: rotate(0) scale(1.04); }
.mb-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #18181b; }
.mb-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3f3f46; }
.mb-bar span { margin-left: 8px; font-size: 10px; color: #71717a; }
.mb-body { padding: 18px 18px 16px; display: grid; color: #f4f4f5; }
.mb-body b { font: 800 40px/.9 var(--f-sans); letter-spacing: -0.06em; }
.mb-body b.it { font-family: var(--f-serif); font-style: italic; letter-spacing: -0.02em; font-weight: 400; color: #ff6a33; justify-self: end; font-size: 44px; }
.mb-term { margin-top: 12px; font-size: 11px; color: #4ade80; background: #0c0c0e; border: 1px solid #27272a; border-radius: 6px; padding: 6px 8px; }

.proj-more { background: var(--ink); color: var(--on-ink); padding: 34px; justify-content: space-between; min-height: 100%; }
.proj-more p { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.proj-more h3 { font-size: clamp(48px, 6vw, 88px); line-height: .9; }
.proj-more h3 em { color: var(--accent); }
.more-arrow { font-size: 64px; line-height: 1; align-self: flex-end; transition: transform .6s var(--ease); }
.proj-more:hover .more-arrow { transform: rotate(45deg); }

/* ---------- Journey ---------- */
.tl { position: relative; display: grid; gap: 28px; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.tl-line span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 14px var(--accent); }
.no-anim .tl-line span { transform: scaleY(1); }
.tl-item { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transform: translate(-50%, -50%); z-index: 1; }
.tl-item.now::before { background: var(--accent); box-shadow: 0 0 0 8px var(--accent-soft); }
.tl-year { font: 400 clamp(56px, 8vw, 120px)/1 var(--f-serif); font-style: italic; color: var(--ink); text-align: right; letter-spacing: -0.03em; }
.tl-item.now .tl-year { color: var(--accent); }
.tl-card { padding: 26px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .3s; }
.tl-card:hover { transform: translateY(-4px) rotate(-.5deg); border-color: var(--accent); }
.tl-card h4 { font: 700 22px/1.15 var(--f-sans); letter-spacing: -0.035em; margin-bottom: 8px; }
.tl-card p { color: var(--ink-2); font-size: 16px; }
.tl-card b { color: var(--ink); font-weight: 600; }
.tl-item:nth-child(odd of .tl-item) .tl-year { order: 2; text-align: left; }
.tl-item:nth-child(odd of .tl-item) .tl-card { order: 1; }

/* ---------- Stack ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tool {
  position: relative; aspect-ratio: 1.25; display: grid; place-items: center; align-content: center; gap: 12px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .4s;
}
.tool::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); clip-path: circle(0% at 50% 50%); transition: clip-path .6s var(--ease); }
.tool::after { content: attr(data-k); position: absolute; top: 10px; left: 12px; font: 10px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); transition: color .3s; }
.tool:hover::before { clip-path: circle(75% at 50% 50%); }
.tool:hover, .tool:hover::after { color: var(--accent-ink); }
.tool img { width: clamp(34px, 3.4vw, 50px); height: clamp(34px, 3.4vw, 50px); object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .75; transition: filter .4s, transform .6s var(--ease), opacity .3s; }
.tool:hover img { filter: none; opacity: 1; transform: scale(1.15) rotate(-6deg); }
[data-theme="dark"] .tool img.inv { filter: grayscale(1) invert(1); }
.tool span { font-size: 14px; font-weight: 500; }
.tool-learn { background: repeating-linear-gradient(-45deg, transparent 0 8px, var(--accent-soft) 8px 9px); }
.learn-ico { font-size: 32px !important; color: var(--accent); line-height: 1; }
.tool-learn:hover .learn-ico { color: var(--accent-ink); }

/* ---------- Certs ---------- */
.cert-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cert {
  position: relative; display: grid; grid-template-columns: 80px 1.6fr 1fr auto; gap: 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line); isolation: isolate; transition: padding .6s var(--ease), color .4s;
}
.cert::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.cert:hover { padding-inline: 20px; color: var(--accent-ink); }
.cert:hover::before { transform: scaleX(1); }
.cert-y { font-size: 13px; color: var(--ink-3); }
.cert h4 { font: 600 clamp(19px, 1.9vw, 28px)/1.15 var(--f-sans); letter-spacing: -0.035em; }
.cert h4 em { opacity: .8; }
.cert-by { color: var(--ink-2); font-size: 15px; }
.cert-id { font-size: 12px; color: var(--ink-3); }
.cert:hover .cert-y, .cert:hover .cert-by, .cert:hover .cert-id { color: var(--accent-ink); }

/* ---------- DSA ---------- */
.dsa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.dsa-num { font: 800 clamp(120px, 20vw, 300px)/.85 var(--f-sans); letter-spacing: -0.08em; margin: 20px 0 12px; font-variant-numeric: tabular-nums; }
.dsa-num em { color: var(--accent); font-weight: 400; }
.dsa-sub { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.035em; max-width: 520px; color: var(--ink-2); }
.dsa-sub b { color: var(--ink); }
.achv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.achv span { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); }
.achv b { color: var(--accent); margin-right: 4px; }
.lc { display: block; border-radius: 22px; overflow: hidden; background: #1c1c1c; box-shadow: var(--shadow); transform: rotate(2deg); transition: transform .8s var(--ease); }
.lc:hover { transform: rotate(0) scale(1.02); }
.lc img { width: 100%; }

/* ---------- Principles ---------- */
.pr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pr { padding: 28px 26px 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-height: 280px; transition: transform .6s var(--ease), background .4s, color .4s; }
.pr:hover { transform: translateY(-8px); background: var(--ink); color: var(--on-ink); }
.pr-i { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 600 20px var(--f-mono); margin-bottom: 30px; transition: transform .8s var(--ease); }
.pr:hover .pr-i { transform: rotate(360deg); }
.pr h4 { font: 700 25px/1.05 var(--f-sans); letter-spacing: -0.045em; }
.pr p { color: inherit; opacity: .7; font-size: 15px; }

/* ---------- Contact ---------- */
.contact { margin-top: clamp(100px, 14vw, 200px); background: var(--ink); color: var(--on-ink); padding-top: 50px; border-radius: 36px 36px 0 0; overflow: hidden; }
.marquee.big span { font-size: clamp(60px, 11vw, 180px); letter-spacing: -0.065em; }
.marquee.big b { color: var(--accent); font-size: clamp(40px, 6vw, 90px); }
.marquee.big .marquee-in { animation-duration: 30s; }
.contact-in { padding-top: clamp(50px, 7vw, 100px); padding-bottom: 60px; display: grid; gap: 40px; }
.contact-lead { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.035em; max-width: 780px; opacity: .85; }
.contact-lead em { color: var(--accent); }
.mail { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; border-block: 1px solid color-mix(in srgb, var(--on-ink) 20%, transparent); }
.mail-txt { font: 700 clamp(26px, 5.4vw, 88px)/1 var(--f-sans); letter-spacing: -0.06em; word-break: break-all; transition: color .4s; }
.mail-txt em { color: var(--accent); }
.mail:hover .mail-txt { color: var(--accent); }
.mail-circle { flex-shrink: 0; width: clamp(60px, 8vw, 120px); height: clamp(60px, 8vw, 120px); border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: clamp(26px, 3vw, 44px); transition: transform .7s var(--ease); }
.mail:hover .mail-circle { transform: rotate(45deg) scale(1.08); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { padding: 14px 22px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent); font-weight: 500; position: relative; overflow: hidden; isolation: isolate; transition: color .4s; }
.socials a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--on-ink); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); }
.socials a:hover { color: var(--ink); }
.socials a:hover::before { transform: none; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; padding-bottom: 30px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; border-top: 1px solid color-mix(in srgb, var(--on-ink) 15%, transparent); }
.totop:hover { color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 950; transform: translate(-50%, 30px); opacity: 0; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: all .5s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal base state (only when JS animations are running) */
.anim .reveal { opacity: 0; transform: translateY(50px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-intro { grid-column: 1 / -1; }
  .hero-portrait { max-width: 290px; }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
  .t-ci { grid-column: span 6; } .t-pods, .t-mon, .t-alert, .t-iac, .t-auto { grid-column: span 3; }
  .you-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .you-facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .hide-m { display: none !important; }
  .hero { padding-top: 88px; min-height: 0; }
  .hero-name { font-size: clamp(76px, 24vw, 200px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 250px; justify-self: start; margin-left: 40px; }
  .about-grid, .dsa-grid, .exp { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .tile { grid-column: auto; }
  .you-grid, .you-facts { grid-template-columns: minmax(0, 1fr); }
  .proj-full { min-height: 600px; }
  .now-card { gap: 11px; }
  .now-txt b { font-size: 17px; }
  .hero-role { font-size: clamp(30px, 8.4vw, 46px); }
  .role-line { white-space: normal; min-height: 2.1em; align-items: flex-start; }
  .fleet-feed { display: none; }
  .fleet-hud { max-width: none; right: 16px; }
  .pipe-track { left: 12px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .packet { width: 12px; height: 60px; left: -5px; top: 0; background: linear-gradient(180deg, transparent, var(--accent)); animation-name: travelY; }
  @keyframes travelY { from { top: -60px; } to { top: 100%; } }
  .pipe { padding-top: 0; }
  .pipe ol { grid-template-columns: 1fr; gap: 26px; }
  .pipe li { grid-template-columns: 26px auto 1fr; justify-items: start; align-items: center; text-align: left; gap: 16px; }
  .node { margin: 0; }
  .pipe small { justify-self: end; }
  .work-head { grid-template-columns: 1fr; }
  .work-progress { display: none; }
  .work-track { flex-direction: column; width: auto; }
  .proj { width: 100%; }
  .proj-more { min-height: 280px; }
  .tl-line { left: 8px; }
  .tl-item, .tl-item:nth-child(odd of .tl-item) { grid-template-columns: 1fr; gap: 10px; padding-left: 36px; }
  .tl-item::before { left: 9px; top: 34px; }
  .tl-year, .tl-item:nth-child(odd of .tl-item) .tl-year { order: 0; text-align: left; font-size: 54px; }
  .tl-item:nth-child(odd of .tl-item) .tl-card { order: 1; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .cert { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .cert h4 { grid-column: 1 / -1; grid-row: 2; }
  .cert-by, .cert-id { grid-row: 3; }
  .cert-y { grid-row: 1; }
  .lc { transform: none; }
  .manifesto-text { text-indent: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-meta { font-size: 11px; }
  .term-body { height: 280px; font-size: 12px; }
  .pr-grid { grid-template-columns: 1fr; }
  .pr { min-height: 0; }
  .facts div { grid-template-columns: 100px 1fr; }
  .tool { aspect-ratio: 1; }
  .tool::after { display: none; }
  .proj-info { padding: 22px; }
  .note { width: 130px; padding: 12px; }
  .art-code { font-size: 11px; padding: 20px; }
  .badge, .badge-core { width: 96px; height: 96px; left: -34px; }
  .badge-core::before { width: 48px; height: 48px; }
  .contact { border-radius: 24px 24px 0 0; }
  .ci-node { width: 32px; height: 32px; }
  .ci-node svg { width: 14px; height: 14px; }
  .ci-rail { top: 15px; }
  .ci-flow b { font-size: 10px; }
  .ci-flow small { font-size: 9px; }
  .now-where { display: none; }
  .tile-in { padding: 14px 14px 18px; }
  .live { padding: 3px 8px; }
  .live.real { font-size: 9.5px; }
  .you-scr .scr-body { height: 240px; }
  .mode button { padding: 9px 13px; font-size: 13px; }
  .polaroid { width: 170px; }
  .polaroids { height: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .anim .reveal { opacity: 1; transform: none; }
  .manifesto-text .w { opacity: 1; }
}

/* ---------- Accessibility helper ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Work with me ---------- */
.hire, .faq { padding-top: clamp(90px, 12vw, 170px); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 24px 28px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease-out), border-color .3s;
}
[data-theme="light"] .offer { box-shadow: 0 18px 40px -28px rgba(40, 30, 10, .25); }
.offer:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.offer-ico { width: 46px; height: 46px; margin-bottom: 8px; border-radius: 13px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.offer-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.offer h3 { font: 700 21px/1.15 var(--f-sans); letter-spacing: -0.035em; }
.offer p { color: var(--ink-2); font-size: 15px; }
.offer .tags { margin-top: 6px; color: var(--ink-3); }
.hire-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 22px; padding: 22px 22px 22px 26px; border-radius: 20px; border: 1px dashed var(--line-2); }
.hire-cta p { flex: 1; min-width: 240px; color: var(--ink-2); font-size: 17px; }
.hire-cta p b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 1040px; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: 600 clamp(19px, 1.9vw, 25px)/1.25 var(--f-sans); letter-spacing: -0.03em; transition: color .3s; }
.faq-item summary:hover h3 { color: var(--accent); }
.faq-item summary::after {
  content: "+"; flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font: 400 22px/1 var(--f-mono); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .3s, color .3s;
}
.faq-item[open] summary::after { content: "−"; background: var(--accent); color: #0a0a0a; box-shadow: none; }
.faq-item p { max-width: 840px; padding: 0 64px 26px 4px; color: var(--ink-2); font-size: 17px; }
.faq-item p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1180px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-item p { padding-right: 4px; font-size: 16px; }
  .hire-cta { padding: 20px; }
}
