/* Open Security Agent — site
   Palette shared with bernardoiannini.com: near-black green ink, lime accent,
   sage muted text, terminal tints. One sans (Inter) + one mono (JetBrains Mono). */
:root {
  color-scheme: dark;
  --bg: #060807;
  --ink: #0b100d;
  --panel: #0e1511;
  --panel-2: #121c16;
  --line: #1c2a20;
  --line-2: #2a3d2f;
  --text: #f3f6f4;
  --muted: #9fb2a6;
  --lime: #a3e635;
  --lime-2: #d9f99d;
  --cmd: #a4e3ff;
  --r-card: 28px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { /* faint scanlines over the whole page */
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.18) 2px 3px);
}
.wrap { width: min(1320px, 100% - clamp(28px, 6vw, 96px)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, .deck:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
.skip { position: fixed; z-index: 60; top: 12px; left: 12px; transform: translateY(-180%); background: var(--lime); color: var(--ink); padding: 8px 16px; border-radius: 999px; }
.skip:focus { transform: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 600; line-height: .98; letter-spacing: -.055em; }
h1 { font-size: clamp(3.1rem, 6.4vw, 6.6rem); margin-bottom: 26px; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.3rem); margin-bottom: 18px; }
em { color: var(--lime); font-style: normal; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; padding: 14px 0; transition: background .3s, backdrop-filter .3s; }
.header.is-scrolled { background: rgba(6,8,7,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; letter-spacing: -.02em; }
.prompt { color: var(--lime); font: 700 1.15em var(--mono); }
.prompt i { font-style: normal; animation: blink 1.1s steps(1) infinite; }
.pill-nav { position: relative; display: flex; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14,21,17,.7); backdrop-filter: blur(10px); }
.pill-nav a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 500; transition: color .3s var(--ease); }
.pill-nav a:hover, .pill-nav a.is-active { color: var(--text); }
.pill-nav a.is-active { color: var(--ink); }
.pill-indicator { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; border-radius: 999px; background: var(--lime); box-shadow: 0 0 24px rgba(163,230,53,.45); opacity: 0; transition: transform .5s cubic-bezier(.22,1,.36,1), width .5s cubic-bezier(.22,1,.36,1), opacity .3s; }
.nav-github { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: border-color .25s, box-shadow .25s; }
/* Bigger on its own: scale() changes only how it looks, not the space it takes, so the header and nav around it do not move. Anchored to the right edge. */
.nav-github { transform: scale(1.25); transform-origin: right center; }
.nav-github:hover { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(163,230,53,.08); }
.nav-star { color: #facc15; transition: transform .4s var(--ease); }
.nav-github:hover .nav-star { transform: rotate(72deg) scale(1.2); }

/* ---------- buttons ---------- */
/* Signature button: on hover the lime GitHub circle grows from the right
   until it fills the whole pill. The fill is a pseudo-element anchored to
   the icon's position, so text and icon stay on top and nothing reflows. */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 22px; border-radius: 999px; background: var(--text); color: var(--ink); font-weight: 600; box-shadow: 0 10px 30px rgba(163,230,53,.12); will-change: transform; }
.btn::before { content: ""; position: absolute; z-index: -1; top: 6px; right: 6px; width: 40px; height: calc(100% - 12px); border-radius: 999px; background: var(--lime); transition: width .38s cubic-bezier(.65,0,.25,1), top .38s cubic-bezier(.65,0,.25,1), right .38s cubic-bezier(.65,0,.25,1), height .38s cubic-bezier(.65,0,.25,1); }
.btn:hover::before, .btn:focus-visible::before { top: 0; right: 0; width: 100%; height: 100%; }
.btn:hover { box-shadow: 0 14px 40px rgba(163,230,53,.32); }
.btn-label { position: relative; display: block; height: 1.4em; overflow: hidden; line-height: 1.4; }
.btn-label > span { display: block; transition: transform .45s var(--ease); }
.btn:hover .btn-label > span, .btn:focus-visible .btn-label > span { transform: translateY(-100%); }
.btn-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: transparent; transition: transform .5s var(--ease); }
.btn-ic img { filter: brightness(0); }
.btn:hover .btn-ic, .btn:focus-visible .btn-ic { transform: rotate(-12deg) scale(1.08); }
.quiet-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); padding-block: 4px; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .35s var(--ease); }
.quiet-link span { color: var(--lime); transition: transform .25s var(--ease); }
.quiet-link:hover { color: var(--text); background-size: 100% 1px; }
.quiet-link:hover span { transform: translate(3px,-2px); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; gap: 24px;
  min-height: min(640px, 82vh); margin-top: 8px; padding: clamp(28px, 5vw, 76px);
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: radial-gradient(ellipse at 78% 30%, rgba(163,230,53,.13), transparent 58%), var(--panel);
}
.hero::before { /* grid that lights up around the cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(163,230,53,.09) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(163,230,53,.09) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: radial-gradient(360px circle at var(--mx, 70%) var(--my, 40%), #000, transparent 75%);
          mask-image: radial-gradient(360px circle at var(--mx, 70%) var(--my, 40%), #000, transparent 75%);
}
.hero::after { /* static faint grid */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background: linear-gradient(rgba(159,178,166,.06) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(159,178,166,.06) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent);
          mask-image: linear-gradient(to right, #000 30%, transparent);
}
.rain { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%); mask-image: linear-gradient(to left, #000 10%, transparent 75%); }
.rain.is-on { opacity: .5; }
.hero-copy { position: relative; }
.hero-copy > * { animation: enter .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .26s; }
[data-scramble] { position: relative; display: inline-block; white-space: nowrap; text-shadow: 0 0 28px rgba(163,230,53,.35); }
.scramble-fx { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; display: none; }
.is-scrambling .scramble-fx { display: block; }
.is-scrambling .scramble-real { visibility: hidden; }
.intro { max-width: 44ch; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 .78rem var(--mono); color: var(--muted); background: rgba(6,8,7,.5); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2.4s ease-in-out infinite; }
.hero-facts li:nth-child(2) .dot { animation-delay: .4s; }
.hero-facts li:nth-child(3) .dot { animation-delay: .8s; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.ring { position: absolute; width: 96%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(163,230,53,.18); pointer-events: none; }
.ring-a { animation: spin 40s linear infinite; border-style: dashed; width: 78%; }
.ring-b { transform: rotate(-20deg) scaleY(.62); }
.ring-b i { position: absolute; inset: 0; border-radius: 50%; animation: spin 7s linear infinite; }
.ring-b i::after { content: ""; position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px 2px var(--lime); }

.deck { position: relative; width: clamp(200px, 21vw, 258px); aspect-ratio: 160 / 252; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.deck.is-dragging { cursor: grabbing; }
.deck-card {
  position: absolute; inset: 0; margin: 0; overflow: hidden;
  border-radius: 22px; border: 0; background: #0a0f0c;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
  transform: translate(calc(var(--i) * 26px), calc(var(--i) * -8px)) rotate(calc(var(--i) * 5deg)) scale(calc(1 - var(--i) * .06));
  z-index: calc(10 - var(--i)); opacity: calc(1 - var(--i) * .3);
  transition: transform .6s var(--ease), opacity .5s, box-shadow .4s;
}
.deck-card[data-pos="0"] { box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 40px color-mix(in srgb, var(--role) 22%, transparent); }
.deck-card[data-pos="hidden"] { opacity: 0; }
.deck-card img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.deck-card::after { /* scanning beam on the front card */
  content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--role) 30%, transparent) 85%, color-mix(in srgb, var(--role) 85%, transparent));
}
.deck-card[data-pos="0"]::after { opacity: 1; animation: scan 2.8s var(--ease) infinite; }
.deck-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.deck-card figcaption b { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; color: var(--role); }
.deck-card.is-flying { transition: transform .45s var(--ease), opacity .45s; }
.deck-hint { position: absolute; bottom: 0; margin: 0; font: 500 .72rem var(--mono); letter-spacing: .1em; color: var(--muted); opacity: .7; }
.deck-hint span { color: var(--lime); display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
.deck-hint span:last-child { animation-direction: reverse; }

/* ---------- compatibility ---------- */
.compat { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); align-items: center; gap: 28px 48px; margin-top: 18px; padding: clamp(26px, 4vw, 52px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); overflow: hidden; }
.compat h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
.compat-head p { color: var(--muted); max-width: 50ch; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
/* Same spot as before (beside the heading), bigger logos, and the loop
   never stops: no pause on hover, and it keeps running under reduced motion. */
.marquee { padding-block: 14px; }
/* Logos only, moved by site.js (pixel loop measured every frame), so a
   name can open up and push its neighbours aside without the loop jumping.
   Hover shows just the name: no border, no background. */
.marquee-track { display: flex; align-items: center; width: max-content; list-style: none; padding: 0; margin: 0; will-change: transform; }
.marquee-track li { display: flex; align-items: center; flex: 0 0 auto; height: 58px; margin-right: 52px; white-space: nowrap; }
.chip { display: flex; align-items: center; }
.chip img { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; }
/* Name reveal: the wrapper animates grid columns 0fr -> 1fr, so it opens to
   the exact width of each name (no fixed max-width, so the motion ends on
   time). Opening is a slow expo ease-out with the text fading, sliding and
   un-blurring slightly after; closing is quicker with no delay. */
.agent-name { display: grid; grid-template-columns: 0fr; margin-left: 0; transition: grid-template-columns .32s cubic-bezier(.4,0,.2,1), margin-left .32s cubic-bezier(.4,0,.2,1); }
.agent-name > span { min-width: 0; overflow: hidden; white-space: nowrap; font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; color: var(--text); opacity: 0; transform: translateX(-10px); filter: blur(4px); transition: opacity .18s ease, transform .25s cubic-bezier(.4,0,.2,1), filter .18s ease; }
.marquee-track li:hover .agent-name { grid-template-columns: 1fr; margin-left: 14px; transition-duration: .6s; transition-timing-function: cubic-bezier(.16,1,.3,1); }
.marquee-track li:hover .agent-name > span { opacity: 1; transform: none; filter: blur(0); transition: opacity .4s ease .1s, transform .55s cubic-bezier(.16,1,.3,1) .06s, filter .4s ease .1s; }
.chip img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.marquee-track li:hover .chip img { transform: scale(1.06); }
.compat-logos { display: grid; gap: 18px; min-width: 0; }
.more-agents { justify-self: start; display: inline-flex; align-items: center; gap: 12px; margin-left: 4px; color: var(--muted); font-size: 1.05rem; font-weight: 500; transition: color .25s; }
.more-agents .plus { width: auto; height: auto; font-size: 1.6rem; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.more-agents:hover { color: var(--text); }
.more-agents:hover .plus { transform: rotate(90deg); }
.plus { display: grid; place-items: center; color: var(--lime); font: 600 2.6rem/1 var(--mono); }

/* ---------- sections ---------- */
.section { margin-top: clamp(80px, 10vw, 140px); }
.section-head { max-width: 760px; }
.section-head p { color: var(--muted); max-width: 58ch; }

/* team: spotlight border that follows the cursor + light tilt */
/* team cards: still card, colored outline that follows the cursor, and on
   hover only the mascot steps forward and breaks out over the top edge. */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: 40px; padding-top: 18px; }
.member { position: relative; min-width: 0; display: flex; border-radius: 22px; background: var(--panel); transition: box-shadow .35s var(--ease); }
.member::before { /* base border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--line); pointer-events: none;
}
.member::after { /* colored outline under the cursor */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), var(--role), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.member:hover, .member:focus-within { z-index: 2; box-shadow: 0 18px 44px rgba(0,0,0,.5); }
.member:hover::after, .member:focus-within::after { opacity: 1; }
.member > a { display: flex; flex-direction: column; width: 100%; border-radius: inherit; }
.member-art { position: relative; display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 1 / 1.02; min-height: 0; padding: 14px 0 12px; border-radius: 22px 22px 0 0; background: radial-gradient(ellipse at 50% 62%, color-mix(in srgb, var(--role) 22%, #0b120e), #0b120e 68%); }
.member-art img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.34,1.4,.5,1), filter .45s var(--ease); }
.member:hover .member-art img, .member:focus-within .member-art img { transform: translateY(-11%) scale(1.26); filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)) drop-shadow(0 0 26px color-mix(in srgb, var(--role) 35%, transparent)); }
.member-copy { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.member-copy p { color: var(--muted); margin-bottom: 0; font-size: .88rem; line-height: 1.5; }
.member h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: clamp(1.08rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: -.03em; }
.member h3 span { color: var(--role); font-size: .85em; transition: transform .3s var(--ease); }
.member:hover h3 span { transform: translate(3px,-3px); }

/* workflow line that draws itself */
.flow { position: relative; margin: 44px 0 20px; }
.flow-line { position: absolute; left: 12.5%; right: 12.5%; top: 31px; width: 75%; height: 4px; overflow: visible; pointer-events: none; }
.flow-line line { stroke: var(--lime); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(163,230,53,.7)); transition: stroke-dashoffset 1.6s var(--ease) .2s; vector-effect: non-scaling-stroke; }
.flow.is-in .flow-line line { stroke-dashoffset: 0; }
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.flow-step { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 0 8px 4px; opacity: .35; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--k, 0) * .35s + .2s); }
.flow.is-in .flow-step { opacity: 1; transform: none; }
.flow-ic { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 10px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); transition: border-color .4s, box-shadow .4s; transition-delay: inherit; }
.flow.is-in .flow-ic { border-color: rgba(163,230,53,.6); box-shadow: 0 0 24px rgba(163,230,53,.18); }
.flow-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-step:hover .flow-ic { transform: translateY(-4px) rotate(-4deg); }
.flow-ic { transition: border-color .4s, box-shadow .4s, transform .35s var(--ease); }
.flow-step strong { font-size: 1.1rem; font-weight: 600; }
.flow-step span:last-child { color: var(--muted); font-size: .92rem; max-width: 24ch; }

/* assessment modes: sliding tabs */
.modes { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 16px 28px; margin: 44px 0 26px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.tabs { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line-2); }
.tabs button { position: relative; z-index: 1; padding: 9px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 .88rem var(--mono); cursor: pointer; transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tab-indicator { position: absolute; top: 5px; left: 0; height: calc(100% - 10px); border-radius: 999px; background: var(--lime); box-shadow: 0 0 22px rgba(163,230,53,.4); transition: transform .5s cubic-bezier(.22,1,.36,1), width .5s cubic-bezier(.22,1,.36,1); }
.tab-panels p { margin: 0; font: 500 1.02rem var(--mono); color: var(--text); }
.tab-panels p:not([hidden]) { animation: enter .45s var(--ease) both; }
.gt { color: var(--lime); }
.mode-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 26px; padding-top: 14px; border-top: 1px solid var(--line); }

/* terminal */
.terminal { border: 1px solid var(--line-2); border-radius: 20px; background: #070b09; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45), inset 0 0 80px rgba(163,230,53,.03); }
.terminal-bar { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 12px 16px 12px 20px; color: var(--muted); font: 500 .82rem var(--mono); }
.terminal-title { flex: 1; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c3b31; }
.dots i:last-child { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.terminal-actions { display: flex; gap: 8px; }
.terminal-actions button { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; font: 500 .78rem var(--mono); padding: 6px 10px; cursor: pointer; transition: border-color .24s, color .24s; }
.terminal-actions button:hover { border-color: var(--lime); color: var(--lime); }
.terminal-body { padding: clamp(16px, 3vw, 28px); font: .9rem/1.6 var(--mono); }
.command { display: flex; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; background: rgba(14,21,17,.6); }
.command code { color: var(--cmd); overflow-wrap: anywhere; }
.command code::before { content: "$ "; color: var(--lime); }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 3px; background: var(--lime); animation: blink 1s steps(1) infinite; }
.terminal-result { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; border-bottom: 1px dashed var(--line-2); padding: 9px 2px; }
.terminal-result strong { color: var(--lime); font-weight: 500; }
.terminal-result strong em { color: var(--muted); }
.terminal.is-typing .terminal-result, .terminal.is-typing .caption { opacity: 0; }
.terminal-result.is-shown, .caption.is-shown { animation: line-in .4s var(--ease) both; }
.caption, #copy-status { color: var(--muted); margin: 16px 0 0; font-family: Inter, sans-serif; font-size: .9rem; }
#copy-status:empty { margin: 0; }

/* end CTA */
.end { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--r-card); background: radial-gradient(ellipse at 85% 0%, rgba(163,230,53,.14), transparent 55%), var(--panel); }
.end::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(rgba(163,230,53,.08) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(163,230,53,.08) 1px, transparent 1px) 0 0 / 40px 40px; -webkit-mask-image: radial-gradient(320px circle at var(--mx, 80%) var(--my, 20%), #000, transparent 75%); mask-image: radial-gradient(320px circle at var(--mx, 80%) var(--my, 20%), #000, transparent 75%); }
.end h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
.end p { color: var(--muted); margin-bottom: 0; }
.end .btn { flex-shrink: 0; }

/* footer with giant wordmark */
.footer { position: relative; overflow: hidden; margin-top: 56px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--lime); }
/* Solid tone-on-tone fill (no outline, so glyphs never overlap), zero
   tracking for the monospace, sized so 19 characters fit the viewport,
   and fully visible including the underscores. */
.wordmark { margin: 0; padding: 8px 0 10px; text-align: center; white-space: nowrap; overflow: hidden; font: 700 min(8.1vw, 9.5rem)/1.1 var(--mono); letter-spacing: 0; color: transparent; background: linear-gradient(180deg, #1f3122 0%, #121c15 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; translate: 0 26px; transition: opacity .7s var(--ease), translate .7s var(--ease), transform .35s var(--ease), box-shadow .35s; transition-delay: calc(var(--k, 0) * 70ms), calc(var(--k, 0) * 70ms), 0s, 0s; }
[data-stagger].is-in > * { opacity: 1; translate: 0 0; }
.no-js [data-reveal], .no-js [data-stagger] > * { opacity: 1; transform: none; translate: 0 0; }

@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes scan { 0% { top: -30%; } 60%, 100% { top: 100%; } }
@keyframes nudge { 50% { transform: translateX(-4px); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .compat { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .pill-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 400px; }
  .flow-line { display: none; }
  .flow-steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 28px; }
  .modes { grid-template-columns: 1fr; }
  .end { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  h1 { font-size: clamp(2.6rem, 11vw, 3.2rem); }
  .header-inner { gap: 10px; }
  .brand { font-size: .95rem; }
  .nav-github { padding: 7px 10px; }
  .nav-github span:not(.nav-star) { display: none; }
  .hero { border-radius: 22px; padding: 26px 20px 30px; }
  .hero-visual { min-height: 360px; }
  .deck { width: 190px; }
  .team-grid { gap: 10px; }
  .member-copy { padding: 14px 14px 16px; }
  .member-copy p { font-size: .86rem; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 9px 8px; font-size: .78rem; }
  .terminal-bar { flex-wrap: wrap; }
  .terminal-title { flex-basis: calc(100% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  [data-reveal], [data-stagger] > *, .flow-step { opacity: 1 !important; transform: none !important; translate: 0 0 !important; }
  .flow-line line { stroke-dashoffset: 0; }
  .rain { display: none; }
}

/* Bernardo Iannini signature (same mark and motion as bernardoiannini.com) */
.bi-sign-row { display: flex; justify-content: center; padding: 6px 16px 28px; }
.bi-sign { --bi-size: 13px; display: inline-flex; align-items: center; gap: .6em; font-size: var(--bi-size); line-height: 1; color: var(--text); white-space: nowrap; }
.bi-sign__by { opacity: .62; }
.bi-sign__link { display: inline-flex; align-items: center; gap: .5em; color: inherit; font-weight: 600; }
.bi-sign__mark { flex: none; width: 1.85em; height: 1.85em; border-radius: .45em; background: var(--lime); display: grid; place-items: center; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.bi-sign__mark svg { display: block; height: 68%; width: auto; fill: #0b0f0c; }
.bi-sign__mark .bi-sign__dot { transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.bi-sign__name { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: .18em; transition: background-size .35s cubic-bezier(.22,1,.36,1); }
.bi-sign__link:hover .bi-sign__mark { transform: rotate(-6deg) scale(1.08); }
.bi-sign__link:hover .bi-sign__dot { transform: translate(4px,-6px); }
.bi-sign__link:hover .bi-sign__name { background-size: 100% 1px; }
