@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0F151B;
  --bg-2: #131B22;
  --panel: #18222B;
  --panel-2: #1D2933;
  --line: #273541;
  --ink: #E8EEF2;
  --muted: #92A1AD;
  --faint: #5E6E7B;
  --ok: #42D1BC;
  --ok-soft: rgba(66, 209, 188, 0.14);
  --warn: #F3B544;
  --warn-soft: rgba(243, 181, 68, 0.16);
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --radius-l: 18px;
  --radius-s: 8px;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #EEF2F4; --bg-2: #E5EBEE; --panel: #FFFFFF; --panel-2: #F5F8F9; --line: #D3DCE1;
    --ink: #15202A; --muted: #4F5F6B; --faint: #8796A1;
    --ok: #13897A; --ok-soft: rgba(19, 137, 122, 0.11); --warn: #B97800; --warn-soft: rgba(185, 120, 0, 0.12);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #EEF2F4; --bg-2: #E5EBEE; --panel: #FFFFFF; --panel-2: #F5F8F9; --line: #D3DCE1;
  --ink: #15202A; --muted: #4F5F6B; --faint: #8796A1;
  --ok: #13897A; --ok-soft: rgba(19, 137, 122, 0.11); --warn: #B97800; --warn-soft: rgba(185, 120, 0, 0.12);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); height: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.02rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ok); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - clamp(32px, 7vw, 96px)); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 58ch; }
.section { padding: clamp(80px, 11vw, 140px) 0 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lede { margin: 14px 0 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.2rem; }
.brand-mark { width: 26px; height: 26px; display: grid; gap: 3px; padding: 5px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line); }
.brand-mark span { display: block; height: 3px; border-radius: 2px; background: var(--ok); }
.brand-mark span:last-child { background: var(--warn); animation: settle 4s ease-in-out infinite; }
@keyframes settle { 0%, 45% { background: var(--warn); } 55%, 100% { background: var(--ok); } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.93rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--panel-2); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--ok); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .menu-btn { display: grid; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--ok); }
.btn.primary { background: var(--ok); border-color: var(--ok); color: #06231F; }
.btn.primary:hover { background: color-mix(in srgb, var(--ok) 88%, white); }
:root[data-theme="light"] .btn.primary, :root:not([data-theme="dark"]) .btn.primary { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #06231F; } }
:root[data-theme="dark"] .btn.primary { color: #06231F; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 0.88rem; margin-bottom: 26px; }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { font-size: clamp(3.4rem, 8.4vw, 6.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
.role-line { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.15; margin-top: 14px; color: var(--muted); min-height: 1.2em; }
.role-rotor { display: inline-grid; color: var(--ink); vertical-align: bottom; overflow: hidden; height: 1.18em; }
.role-rotor span { grid-area: 1 / 1; transform: translateY(110%); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s; white-space: nowrap; }
.role-rotor span.in { transform: translateY(0); opacity: 1; }
.role-rotor span.out { transform: translateY(-110%); opacity: 0; }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.console { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.55); }
.console-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.console-bar strong { font-family: var(--display); font-weight: 650; font-size: 1.02rem; }
.console-bar .live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ok); font-weight: 600; }
.console-bar .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.fleet-grid { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; padding: 18px; }
.node { aspect-ratio: 1; border-radius: 4px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); transition: background .5s, border-color .5s, transform .5s; position: relative; }
.node.boot { background: transparent; border-color: var(--line); }
.node.hot { background: var(--warn-soft); border-color: var(--warn); transform: scale(1.12); }
.node.fixed { background: var(--ok); border-color: var(--ok); }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.readout { padding: 14px 18px; border-right: 1px solid var(--line); }
.readout:last-child { border-right: 0; }
.readout b { display: block; font-family: var(--display); font-size: 1.55rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.readout span { font-size: 0.8rem; color: var(--muted); }
.log { border-top: 1px solid var(--line); padding: 12px 18px; height: 112px; overflow: hidden; position: relative; font-size: 0.86rem; }
.log::after { content: ""; position: absolute; inset: auto 0 0; height: 36px; background: linear-gradient(transparent, var(--panel)); }
.log-line { display: flex; gap: 12px; align-items: baseline; padding: 3px 0; animation: logIn .5s ease; color: var(--muted); }
.log-line em { font-style: normal; font-weight: 600; color: var(--ink); min-width: 64px; }
.log-line .tag { margin-left: auto; font-size: 0.75rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.log-line .tag.w { background: var(--warn-soft); color: var(--warn); }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- metrics strip ---------- */
.metrics { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-2); overflow: hidden; }
.metric { padding: clamp(20px, 2.6vw, 30px); border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric b { font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 750; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: block; }
.metric b small { font-size: 0.5em; color: var(--ok); margin-left: 2px; }
.metric span { color: var(--muted); font-size: 0.93rem; display: block; margin-top: 10px; max-width: 22ch; }

/* ---------- carousel (shared) ---------- */
.carousel { position: relative; }
.track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; flex: 0 0 auto; }
.car-controls { display: flex; gap: 10px; align-items: center; }
.car-controls .icon-btn { width: 46px; height: 46px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.dots button.on { width: 26px; background: var(--ok); }

/* roles */
.role-card { width: min(360px, 82vw); min-height: 330px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.role-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.role-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 22px; }
.role-icon svg { width: 26px; height: 26px; }
.role-card h3 { margin-bottom: 10px; }
.role-card p { color: var(--muted); margin: 0; }
.role-card ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.role-card li { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }

/* ---------- server lifecycle ---------- */
.lifecycle { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); }
.lifecycle-intro { position: sticky; top: 110px; align-self: start; }
.cycle-svg { margin-top: 28px; width: 100%; max-width: 260px; }
.cycle-svg .ring { fill: none; stroke: var(--line); stroke-width: 10; }
.cycle-svg .ring-fill { fill: none; stroke: var(--ok); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s ease; }
.cycle-svg text { fill: var(--ink); font-family: var(--display); font-weight: 700; }
.cycle-svg .sub { fill: var(--muted); font-family: var(--body); font-weight: 500; font-size: 11px; }
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px; border-radius: var(--radius-l); background: var(--panel); border: 1px solid var(--line); transition: border-color .4s, background .4s; }
.step.lit { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 750; font-size: 1.2rem; background: var(--panel-2); border: 1px solid var(--line); transition: background .4s, color .4s; }
.step.lit .step-num { background: var(--ok); color: var(--bg); border-color: var(--ok); }
.step h3 { margin: 4px 0 8px; }
.step p { color: var(--muted); margin: 0 0 12px; }
.step ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.step li { position: relative; padding-left: 22px; font-size: 0.95rem; }
.step li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 10px; height: 2px; background: var(--ok); }

/* ---------- problems ---------- */
.problems { display: grid; grid-template-columns: minmax(260px, 0.9fr) 1.4fr; gap: 18px; }
.p-tabs { display: grid; gap: 8px; align-content: start; }
.p-tab { text-align: left; font: inherit; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; align-items: center; gap: 14px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; position: relative; overflow: hidden; }
.p-tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); flex: none; transition: background .4s; }
.p-tab:hover { color: var(--ink); background: var(--panel); }
.p-tab[aria-selected="true"] { color: var(--ink); background: var(--panel); border-color: var(--line); }
.p-tab[aria-selected="true"] .dot { background: var(--ok); }
.p-tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ok); }
.p-tab[aria-selected="true"] .bar { animation: fill 8s linear forwards; }
.paused .p-tab[aria-selected="true"] .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.p-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 44px); min-height: 420px; }
.p-panel[hidden] { display: none; }
.p-panel.show { animation: panelIn .5s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.p-panel h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 26px; }
.p-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-cols h4 { font-size: 0.95rem; font-weight: 650; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.p-cols h4 i { width: 8px; height: 8px; border-radius: 50%; }
.p-cols .c1 i { background: var(--warn); } .p-cols .c2 i { background: var(--muted); } .p-cols .c3 i { background: var(--ok); }
.p-cols p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.p-meter { margin-top: 32px; display: flex; align-items: center; gap: 14px; font-size: 0.85rem; color: var(--muted); }
.p-meter .m { flex: 1; height: 8px; border-radius: 99px; background: var(--warn-soft); overflow: hidden; }
.p-meter .m b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--warn), var(--ok)); border-radius: 99px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.p-panel.show .p-meter .m b { width: 100%; }

/* ---------- tools showcase ---------- */
.tool-slide { width: min(1080px, 88vw); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: grid; grid-template-columns: 0.95fr 1.05fr; min-height: 470px; }
.tool-copy { padding: clamp(24px, 3.4vw, 42px); display: flex; flex-direction: column; }
.tool-kind { font-size: 0.85rem; font-weight: 600; color: var(--ok); margin-bottom: 12px; }
.tool-copy h3 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.tool-copy p { color: var(--muted); }
.tool-copy ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tool-copy li { position: relative; padding-left: 24px; }
.tool-copy li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--ok-soft); border: 1px solid var(--ok); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.stack span { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.tool-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tool-links .btn { padding: 10px 16px; font-size: 0.9rem; }
.tool-visual { background: var(--bg-2); border-left: 1px solid var(--line); position: relative; display: grid; place-items: center; padding: 26px; overflow: hidden; }
.shots { position: relative; width: 100%; aspect-ratio: 16 / 10.5; }
.shots figure { position: absolute; inset: 0; margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); border: 1px solid var(--line); opacity: 0; transform: scale(.96) translateY(10px); transition: opacity .8s, transform .8s; }
.shots figure.on { opacity: 1; transform: none; }
.shots figure .chrome { height: 26px; background: #E9EDF0; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.shots figure .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #C7CFD5; }
.shots img { width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top left; }
.shot-caption { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.diagram { width: 100%; height: auto; }
.diagram .box { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; }
.diagram .box.hl { stroke: var(--ok); }
.diagram text { fill: var(--ink); font-family: var(--body); font-size: 12.5px; font-weight: 600; }
.diagram .small { fill: var(--muted); font-size: 10.5px; font-weight: 500; }
.diagram .wire { fill: none; stroke: var(--line); stroke-width: 2; }
.diagram .flow { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-dasharray: 6 14; animation: flow 1.4s linear infinite; }
.diagram .flow.w { stroke: var(--warn); }
@keyframes flow { to { stroke-dashoffset: -40; } }

/* ---------- toolbox marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.m-track { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.marquee.rev .m-track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .m-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chip.alt i { background: var(--warn); }
.domains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.domain { padding: 22px; border-radius: var(--radius-s); border-top: 2px solid var(--ok); background: var(--bg-2); }
.domain h4 { font-size: 1.05rem; margin-bottom: 6px; }
.domain p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- experience ---------- */
.exp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.job { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden; }
.job.now::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--ok), transparent); }
.job .when { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.job.now .when { color: var(--ok); }
.job.now .when i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.4s infinite; }
.job h3 { font-size: 1.55rem; margin-bottom: 4px; }
.job .org { color: var(--muted); margin-bottom: 18px; }
.job ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; }
.job li::marker { color: var(--ok); }

/* ---------- contact ---------- */
.contact { margin-top: clamp(90px, 12vw, 150px); position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-2); }
.contact .wrap { padding: clamp(64px, 9vw, 120px) 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; position: relative; z-index: 1; }
.contact h2 { font-size: clamp(2.6rem, 6.6vw, 5.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s; }
.contact-item:hover { border-color: var(--ok); transform: translateX(4px); }
.contact-item span { color: var(--muted); font-size: 0.85rem; display: block; }
.contact-item strong { font-weight: 600; word-break: break-all; }
.copy { font: inherit; font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); cursor: pointer; flex: none; }
.copy.done { color: var(--ok); border-color: var(--ok); }
footer { padding: 24px 0 34px; color: var(--faint); font-size: 0.86rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }


/* ===== v3: fluid, theme-led motion ===== */
.role-line { display: block; }
.role-rotor { display: grid; height: 1.22em; overflow: hidden; color: var(--ink); }
.split { display: block; }
.split span { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(4deg); filter: blur(6px); animation: rise .95s cubic-bezier(.16,.84,.24,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

.flow-wrap { position: relative; height: 320px; }
.flow-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.console-bar .live b { font-weight: 600; transition: color .4s; }
.console-bar .live.alert { color: var(--warn); }
.console-bar .live.alert i { background: var(--warn); }
.readout b { transition: color .4s; }

.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--ok) 14%, transparent), transparent 60%);
  opacity: 0; transition: opacity .35s; }
.spot:hover::after { opacity: 1; }

.track.dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; }
.track { cursor: grab; }
.track.dragging * { pointer-events: none; user-select: none; }

.steps { position: relative; }
.steps { padding-left: 34px; }
.pipe { position: absolute; left: 8px; top: 30px; bottom: 30px; width: 2px; background: var(--line); border-radius: 2px; z-index: 0; }
.pipe-fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); background: linear-gradient(var(--ok), color-mix(in srgb, var(--ok) 40%, transparent)); border-radius: 2px; }
.packet { position: absolute; left: 50%; top: var(--p, 0%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px var(--ok-soft), 0 0 24px var(--ok); }
.step { position: relative; z-index: 1; }

.p-chart-wrap { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; }
.p-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.p-chart-head .state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--warn); transition: color .5s; }
.p-chart-head .state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.p-chart-head .state.good { color: var(--ok); }
.p-chart { width: 100%; height: 150px; display: block; overflow: visible; }
.p-chart .grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }

.contact canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }

@media (max-width: 760px) {
  .steps { padding-left: 26px; }
  .pipe { left: 4px; }
  .flow-wrap { height: 260px; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: 1fr; }
  .lifecycle-intro { position: static; }
  .cycle-svg { display: none; }
  .problems { grid-template-columns: 1fr; }
  .p-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .p-tabs::-webkit-scrollbar { display: none; }
  .tool-slide { grid-template-columns: 1fr; }
  .tool-visual { border-left: 0; border-top: 1px solid var(--line); }
  .contact .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .p-cols { grid-template-columns: 1fr; }
  .domains { grid-template-columns: 1fr; }
  .exp { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: repeat(12, 1fr); gap: 5px; padding: 14px; }
  .readouts { grid-template-columns: 1fr 1fr 1fr; }
  .readout { padding: 12px; }
  .readout b { font-size: 1.2rem; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .m-track { animation: none; }
}

.split span:nth-child(1) { animation-delay: 120ms; }
.split span:nth-child(2) { animation-delay: 175ms; }
.split span:nth-child(3) { animation-delay: 230ms; }
.split span:nth-child(4) { animation-delay: 285ms; }
.split span:nth-child(5) { animation-delay: 340ms; }
.split span:nth-child(6) { animation-delay: 395ms; }
.split span:nth-child(7) { animation-delay: 450ms; }
.split span:nth-child(8) { animation-delay: 505ms; }

/* ===== v4: hardening, a11y, responsive polish ===== */
.site-head { background: rgba(15, 21, 27, 0.86); background: color-mix(in srgb, var(--bg) 84%, transparent); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ok); color: #06231F; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
main:focus { outline: none; }
.fit-contain { object-fit: contain !important; background: #F4F6F8; }
#qaRing { transition: stroke-dashoffset 1.6s ease; }
.contact-lede { margin-top: 20px; }
a.plain { text-decoration: none; }
.dbb { transition: width 1.2s ease, fill 1.2s ease; }

/* reveal only hides when JS is running */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }

/* theme + menu icons */
.icon-btn .i-moon, .icon-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) #themeBtn .i-sun { display: none; } :root:not([data-theme="dark"]) #themeBtn .i-moon { display: block; } }
:root[data-theme="light"] #themeBtn .i-sun { display: none; }
:root[data-theme="light"] #themeBtn .i-moon { display: block; }

/* tap targets */
.dots button { position: relative; }
.dots button::before { content: ""; position: absolute; inset: -10px -4px; }

/* fluid headings never overflow */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }

/* large screens */
@media (min-width: 1600px) {
  .wrap { width: min(1320px, 100% - 160px); }
  body { font-size: 1.06rem; }
  .flow-wrap { height: 360px; }
}

/* tablets */
@media (max-width: 1020px) and (min-width: 761px) {
  .hero { grid-template-columns: 1fr; }
  .hero > div:first-child { max-width: 680px; }
  .tool-visual { min-height: 360px; }
}

/* phones */
@media (max-width: 760px) {
  .section { padding-top: 76px; }
  .hero { padding-top: 28px; gap: 28px; }
  .status-pill { font-size: 0.8rem; margin-bottom: 18px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .console-bar strong { font-size: 0.95rem; }
  .readouts .readout span { font-size: 0.72rem; line-height: 1.3; display: block; }
  .metric b { font-size: 2.1rem; }
  .metric span { font-size: 0.85rem; }
  .role-card { min-height: 0; padding: 22px; }
  .tool-slide { min-height: 0; }
  .tool-copy h3 { font-size: 1.7rem; }
  .tool-visual { padding: 18px; }
  .p-panel { min-height: 0; padding: 22px; }
  .p-panel h3 { font-size: 1.45rem; margin-bottom: 18px; }
  .p-cols { gap: 14px; }
  .p-chart { height: 120px; }
  .section-head { align-items: flex-start; }
  .car-controls { order: 2; }
  .contact-item { padding: 14px 16px; }
  .contact h2 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  footer .wrap { flex-direction: column; gap: 6px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1 { font-size: 3rem; }
  .role-line { font-size: 1.35rem; }
  .btn { padding: 12px 16px; font-size: 0.92rem; }
  .readout { padding: 10px; }
  .readout b { font-size: 1.05rem; }
  .metric { padding: 16px; }
  .metric b { font-size: 1.8rem; }
  .step { padding: 18px; }
  .domains .domain { padding: 18px; }
}
/* short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .site-head .wrap { height: 56px; }
  .nav { inset: 56px 0 auto; max-height: calc(100vh - 56px); overflow-y: auto; }
  .hero { grid-template-columns: 1fr 1fr; align-items: start; }
  .flow-wrap { height: 220px; }
  .hero h1 { font-size: 3.2rem; }
}
/* coarse pointers: no hover-only effects */
@media (hover: none) { .spot::after { display: none; } .role-card:hover, .btn:hover { transform: none; } }

/* print */
@media print {
  .site-head, .car-controls, .dots, .console, canvas, .marquee, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  .track { flex-wrap: wrap; overflow: visible; }
  .p-panel[hidden] { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* 404 page */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px 0; }
.nf h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 18ch; }
.nf-pill { color: var(--warn); background: var(--warn-soft); align-self: flex-start; }
.nf-pill i { background: var(--warn); }

/* console header never wraps awkwardly */
.console-bar { gap: 12px; }
.console-bar strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-bar .live { flex: none; white-space: nowrap; }
@media (max-width: 1020px) {
  .p-tab { max-width: min(80vw, 300px); white-space: normal; line-height: 1.3; }
}
