/* =========================================================
   Subrat Regmi · "Control Plane" theme
   Deep-space navy, cloud cyan, secure-green status, violet IAM.
   ========================================================= */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --surface: rgba(14, 22, 38, 0.66);
  --surface-solid: #0d1524;
  --line: rgba(120, 170, 255, 0.12);
  --line-strong: rgba(120, 190, 255, 0.28);
  --text: #dbe6f5;
  --muted: #8291a8;
  --cyan: #3ee6ff;
  --green: #2bffa8;
  --violet: #9a8cff;
  --amber: #ffbd59;
  --red: #ff6b81;

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--f-body);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(62, 230, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(154, 140, 255, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.mono { font-family: var(--f-mono); }
.dim { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* Background mesh canvas + film grain */
#mesh { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- NAV ---------------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  transition: background .3s, border-color .3s, transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 7, 13, 0.72); backdrop-filter: blur(14px); border-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: conic-gradient(from 200deg, var(--cyan), var(--violet), var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(62, 230, 255, .45);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 5px);
          mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 5px);
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-family: var(--f-mono); font-size: .82rem; color: var(--muted); text-decoration: none;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(62, 230, 255, .08); }
.nav-links a.active { color: var(--cyan); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary {
  color: #03121a; background: linear-gradient(135deg, var(--cyan), #7af5d0);
  box-shadow: 0 8px 30px -8px rgba(62, 230, 255, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(62, 230, 255, .8); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(62, 230, 255, .06); transform: translateY(-2px); }

/* ---------------- HERO ---------------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.eyebrow .ok { color: var(--green); font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43, 255, 168, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(43, 255, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 255, 168, 0); } }

.hero-name {
  font-family: var(--f-display); font-weight: 800; line-height: .9; letter-spacing: -.04em;
  font-size: clamp(3.6rem, 9vw, 7.6rem); margin: 22px 0 22px;
  background: linear-gradient(180deg, #fff 30%, #a9c6e8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-name .outline {
  background: linear-gradient(90deg, var(--cyan), var(--violet) 60%, var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-role { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text); max-width: 32ch; }
.hero-role strong { color: var(--cyan); font-weight: 600; }
.hero-lede { color: var(--muted); margin-top: 14px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.policy {
  border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 26, 44, .9), rgba(8, 13, 23, .9));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(62, 230, 255, .04), 0 0 60px -20px rgba(62, 230, 255, .35);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.policy:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.policy-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: .75rem; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.policy-bar .dots { display: flex; gap: 6px; }
.policy-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #26324a; }
.policy-bar .dots i:first-child { background: var(--red); }
.policy-bar .dots i:nth-child(2) { background: var(--amber); }
.policy-bar .dots i:nth-child(3) { background: var(--green); }
.badge-ok { margin-left: auto; color: var(--green); border: 1px solid rgba(43, 255, 168, .35); padding: 2px 8px; border-radius: 999px; }
.policy-body { padding: 20px 22px; font-size: .8rem; line-height: 1.7; overflow-x: auto; color: #8ea3c2; }
.policy-body .k { color: var(--violet); }
.policy-body .s { color: #c9e6ff; }
.policy-body .a { color: var(--green); }
.policy-body .d { color: var(--red); }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(8px); }
.hero-stats > div { padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.stat-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.stat-v { font-size: .95rem; color: var(--text); }

/* ---------------- SECTIONS ---------------- */
.section { padding: 110px 0; }
.sec-head { margin-bottom: 48px; }
.sec-id { display: inline-block; font-size: .78rem; color: var(--cyan); letter-spacing: .06em; margin-bottom: 12px; }
.sec-id::before { content: "// "; color: var(--muted); }
h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 em { font-style: normal; color: var(--cyan); }
h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.about-text p { color: #b6c3d7; font-size: 1.06rem; }
.about-text p + p { margin-top: 18px; }
.about-text strong { color: var(--text); font-weight: 600; }
.focus { display: grid; gap: 12px; }
.focus li {
  display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease);
}
.focus li:hover { border-color: var(--line-strong); transform: translateX(4px); }
.focus-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 1.1rem; color: var(--cyan); background: rgba(62, 230, 255, .08); border: 1px solid rgba(62, 230, 255, .2); }
.focus h3 { font-size: 1.02rem; }
.focus p { color: var(--muted); font-size: .9rem; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 180px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--cyan), var(--violet) 60%, transparent); opacity: .5; }
.tl { display: grid; grid-template-columns: 180px 1fr; gap: 40px; position: relative; }
.tl::after { content: ""; position: absolute; left: 175px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 14px rgba(62, 230, 255, .6); }
.tl-meta { padding-top: 16px; font-size: .8rem; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.state { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.state.running { color: var(--green); }
.state.done { color: var(--violet); }
.tl-card { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(6px); transition: border-color .25s; }
.tl-card:hover { border-color: var(--line-strong); }
.tl-card h3 { font-size: 1.3rem; }
.tl-org { font-family: var(--f-mono); font-size: .85rem; color: var(--cyan); margin: 2px 0 14px; }
.tl-card ul { display: grid; gap: 8px; }
.tl-card li { color: #b0bdd1; padding-left: 20px; position: relative; font-size: .96rem; }
.tl-card li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; overflow: hidden; }
.stack.featured { border-color: rgba(62, 230, 255, .35); background: linear-gradient(160deg, rgba(62, 230, 255, .10), var(--surface) 60%); }
.stack.featured::after { content: "primary"; position: absolute; top: 14px; right: 14px; font-family: var(--f-mono); font-size: .65rem; color: var(--bg); background: var(--cyan); padding: 2px 8px; border-radius: 999px; }
.stack h3 { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .85rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .02); transition: border-color .2s, color .2s; }
.chips li:hover { border-color: var(--cyan); color: var(--cyan); }
.featured .chips li { border-color: rgba(62, 230, 255, .3); }

/* Certs */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cert {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  display: flex; flex-direction: column; gap: 6px; position: relative; transition: transform .25s var(--ease), border-color .25s;
}
.cert::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: 0; transition: opacity .25s; }
.cert:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.cert:hover::before { opacity: 1; }
.cert-issuer { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.cert h3 { font-size: 1.08rem; line-height: 1.3; }
.cert-abbr { font-size: .8rem; color: var(--cyan); margin-top: auto; padding-top: 10px; }
.cert-link { font-size: .78rem; color: var(--green); text-decoration: none; }
.cert-link:hover { text-decoration: underline; }

.edu { margin-top: 56px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.edu-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.edu h3 { font-size: 1.3rem; }
.edu p { color: var(--muted); }
.edu time { color: var(--cyan); font-size: .85rem; }

/* Contact */
.contact { text-align: center; max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact > p { color: var(--muted); max-width: 52ch; }
.term {
  width: 100%; text-align: left; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: rgba(4, 8, 15, .85); font-size: .88rem; display: grid; gap: 4px; margin: 10px 0 8px;
}
.term .pr { color: var(--green); }
.term .out { color: var(--muted); padding-left: 16px; }
.term a { color: var(--cyan); text-decoration: none; }
.term a:hover { text-decoration: underline; }
.cursor { display: inline-block; width: 8px; height: 1em; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .78rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text); }

/* Reveal on scroll (only hidden once JS confirms it runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .policy { transform: none; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(3) { border-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; top: 68px; inset-inline: 0; flex-direction: column; padding: 16px 24px 24px; gap: 4px;
    background: rgba(5, 7, 13, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s var(--ease); z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { display: block; padding: 12px; font-size: .95rem; }
  .section { padding: 80px 0; }
  .timeline::before { left: 5px; }
  .tl { grid-template-columns: 1fr; gap: 10px; padding-left: 28px; }
  .tl::after { left: 0; top: 18px; }
  .tl-meta { padding-top: 12px; flex-direction: row; gap: 14px; }
  .stack-grid { grid-template-columns: 1fr; }
  .hero-stats { margin-top: 48px; }
  .policy-body { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v2 · "impressive" layer
   ========================================================= */

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--green)); box-shadow: 0 0 12px rgba(62,230,255,.7); }

/* Hero role typer */
.hero-role.mono { font-size: clamp(.95rem, 1.6vw, 1.15rem); max-width: none; color: var(--text); min-height: 1.7em; }
.hero-role .pr { color: var(--green); }
.caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
[data-scramble] { display: inline-block; }

/* Cursor spotlight on cards */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(62,230,255,.10), transparent 45%);
}
.spot:hover::after { opacity: 1; }

/* Section subtitle */
.sec-sub { color: var(--muted); max-width: 64ch; margin-top: 16px; }

/* Nav terminal button */
.term-open {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; cursor: pointer;
  font-size: .78rem; color: var(--green); background: rgba(43,255,168,.06); border: 1px solid rgba(43,255,168,.3);
  padding: 7px 10px; border-radius: 8px; transition: background .2s, box-shadow .2s;
}
.term-open:hover { background: rgba(43,255,168,.12); box-shadow: 0 0 20px -4px rgba(43,255,168,.5); }
kbd { font-family: var(--f-mono); font-size: .7rem; padding: 0 5px; border: 1px solid currentColor; border-radius: 4px; opacity: .7; }
.link-btn { background: none; border: 0; color: var(--cyan); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--f-mono); font-size: .9em; color: var(--green); background: rgba(43,255,168,.08); padding: 1px 6px; border-radius: 5px; }

/* ---------------- Architecture ---------------- */
.arch { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: stretch; }
.arch-canvas { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(6,10,18,.75); padding: 18px; overflow-x: auto;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
.arch-canvas svg { width: 100%; min-width: 640px; height: auto; display: block; }
.zone { fill: none; stroke: var(--line-strong); stroke-dasharray: 6 6; }
.zone.vpc { stroke: rgba(154,140,255,.45); fill: rgba(154,140,255,.03); }
.zone.sub { stroke: rgba(120,190,255,.18); fill: rgba(62,230,255,.02); }
.zone.data { stroke: rgba(43,255,168,.22); }
.zone-label { fill: var(--muted); font-family: var(--f-mono); font-size: 11px; }
.zone-label.sm { font-size: 9.5px; opacity: .8; }
.flow { fill: none; stroke: rgba(62,230,255,.35); stroke-width: 1.5; stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; }
.flow.side { stroke: rgba(154,140,255,.35); }
.flow.ghost { stroke: none; animation: none; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.pkt.ok { fill: var(--green); }
.pkt.bad { fill: var(--red); }
.node { cursor: pointer; outline: none; }
.node rect { fill: #0d1626; stroke: var(--line-strong); stroke-width: 1.2; transition: stroke .2s, fill .2s; }
.node text { fill: var(--text); font-family: var(--f-mono); font-size: 12px; text-anchor: middle; pointer-events: none; }
.node text.sub { fill: var(--muted); font-size: 10px; }
.node.edge rect { stroke: url(#gEdge); stroke-width: 1.6; }
.node.rail rect { fill: #110f24; }
.node:hover rect, .node:focus-visible rect { stroke: var(--cyan); fill: #10203a; }
.node.active rect { stroke: var(--green); fill: #0d2a2a; filter: drop-shadow(0 0 10px rgba(43,255,168,.45)); }

.arch-info { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; background: var(--surface-solid);
  display: flex; flex-direction: column; gap: 12px; }
.ai-layer { font-size: .72rem; color: var(--green); text-transform: uppercase; letter-spacing: .12em; }
.arch-info h3 { font-size: 1.35rem; line-height: 1.2; }
.arch-info dl { display: grid; gap: 4px; }
.arch-info dt { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; }
.arch-info dd { color: #b6c3d7; font-size: .93rem; }
.ai-tf { margin-top: auto; font-size: .74rem; line-height: 1.6; color: #c9e6ff; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre; }
.arch-info.swap > * { animation: swapIn .35s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------------- Terraform panel ---------------- */
.tf { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: rgba(4,8,15,.88); }
.tf-replay { margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--muted); font-size: .72rem; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.tf-replay:hover { color: var(--cyan); border-color: var(--cyan); }
.tf-body { padding: 20px 22px; font-size: .82rem; line-height: 1.75; color: #c9d7ea; overflow-x: auto; min-height: 15em; }
.tf-body .c, .shell .c { color: var(--cyan); }
.tf-body .g, .shell .g { color: var(--green); }
.tf-body .ok { color: var(--green); font-weight: 700; }
.tf-body .y, .shell .y { color: var(--amber); }
.tf-body .r, .shell .r { color: var(--red); }
.tf-body .m, .shell .m { color: var(--muted); }

/* ---------------- Boot overlay ---------------- */
.boot { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-box { width: min(560px, 90vw); font-family: var(--f-mono); font-size: .86rem; color: var(--muted); }
.boot-box p { opacity: 0; transform: translateX(-6px); animation: bootIn .25s var(--ease) forwards; }
.boot-box .ok { color: var(--green); }
.boot-box .hi { color: var(--cyan); font-weight: 700; margin-top: 10px; }
.boot-skip { position: absolute; bottom: 24px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
@keyframes bootIn { to { opacity: 1; transform: none; } }

/* ---------------- Interactive shell ---------------- */
.term-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; border-radius: 14px; cursor: pointer;
  color: var(--green); font-size: 1rem; font-weight: 700; background: rgba(8,14,24,.9); border: 1px solid rgba(43,255,168,.4);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.8), 0 0 24px -6px rgba(43,255,168,.5); transition: transform .2s var(--ease);
}
.term-fab:hover { transform: translateY(-3px) scale(1.04); }
.shell { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(2,4,8,.6); backdrop-filter: blur(6px); padding: 20px; }
.shell[hidden] { display: none; }
.shell-win { width: min(820px, 100%); height: min(560px, 82vh); display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(43,255,168,.35); background: rgba(3,7,12,.97); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9), 0 0 80px -30px rgba(43,255,168,.4);
  animation: shellIn .3s var(--ease); }
@keyframes shellIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.shell-x { margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: .7rem; cursor: pointer; }
.shell-out { flex: 1; overflow-y: auto; padding: 18px 20px 6px; font-size: .84rem; line-height: 1.65; color: #c9d7ea; white-space: pre-wrap; word-break: break-word; }
.shell-out a { color: var(--cyan); }
.shell-out .cmd { color: var(--text); }
.shell-in { display: flex; gap: 10px; align-items: center; padding: 10px 20px 18px; font-size: .84rem; }
.shell-in label { white-space: nowrap; color: var(--muted); }
.shell-in input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; caret-color: var(--green); }

/* Footer header check */
.hdrs span[data-h] { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.hdrs span.pass { color: var(--green); border-color: rgba(43,255,168,.4); }
.hdrs span.pass::before { content: "✓ "; }

@media (max-width: 980px) {
  .arch { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .term-open { margin: 8px 0 0; }
  .tf-body { font-size: .7rem; }
}

/* ---------------- Contact composer ---------------- */
.mailer { width: 100%; display: grid; gap: 12px; text-align: left; margin-top: 6px; }
.mailer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mailer label { display: grid; gap: 6px; }
.mailer label > span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.mailer input, .mailer textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: rgba(4,8,15,.85);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.mailer input:focus, .mailer textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62,230,255,.15); }
.mailer-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.mailer-actions button.btn { cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; }
.mailer-status { min-height: 1.4em; text-align: center; font-size: .8rem; color: var(--green); }
.sr-copy { position: fixed; top: -1000px; opacity: 0; }
@media (max-width: 720px) { .mailer-row { grid-template-columns: 1fr; } }
