/* ───────────────────────── tokens ───────────────────────── */
:root {
  --bg: #06080b;
  --bg-2: #0a0e13;
  --panel: rgba(13, 18, 25, 0.72);
  --panel-solid: #0d1219;
  --line: rgba(148, 163, 184, 0.11);
  --line-2: rgba(148, 163, 184, 0.22);
  --text: #e7edf3;
  --muted: #94a1b2;
  --dim: #5c6878;
  --accent: #4ff0b4;
  --accent-ink: #04140d;
  --blue: #8ea8ff;
  --violet: #b99bff;
  --amber: #ffc861;
  --pink: #ff8fc7;
  --red: #ff6b7a;
  --cyan: #5ad8ff;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --bar-h: 44px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* film grain + vignette */
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(79, 240, 180, 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(142, 168, 255, 0.06), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
  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");
}
::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

main { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.kbd {
  font-family: var(--mono); font-size: .7rem; line-height: 1;
  padding: 3px 6px; border-radius: 5px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted);
}

/* ───────────────────────── boot ───────────────────────── */
#boot {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gutter);
  transition: opacity .6s var(--ease), visibility .6s;
}
#boot.done { opacity: 0; visibility: hidden; }
#boot-log {
  margin: 0; font-family: var(--mono); font-size: clamp(11px, 1.4vw, 13px);
  line-height: 1.7; color: var(--muted); white-space: pre-wrap; max-height: 80vh; overflow: hidden;
}
#boot-log .ok { color: var(--accent); }
#boot-log .hi { color: var(--text); }
.boot-skip { position: absolute; top: var(--gutter); right: var(--gutter); font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ───────────────────────── status bar ───────────────────────── */
.statusbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(12px, 2vw, 22px);
  font-family: var(--mono); font-size: 12px;
  background: rgba(6, 8, 11, 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.sb-brand { color: var(--text); white-space: nowrap; }
.sb-diamond { color: var(--accent); }
.sb-windows { display: flex; gap: 2px; flex: 1; overflow: hidden; }
.sb-windows a {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 10px; border-radius: 6px; color: var(--muted);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.sb-windows a .n { color: var(--dim); }
.sb-windows a:hover { color: var(--text); }
.sb-windows a.active { background: var(--accent); color: var(--accent-ink); }
.sb-windows a.active .n { color: rgba(4, 20, 13, .55); }
.sb-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sb-clock { color: var(--dim); }
.lang-toggle {
  display: inline-flex; padding: 2px; border-radius: 7px; border: 1px solid var(--line-2);
}
.lang-toggle span { padding: 2px 8px; border-radius: 5px; color: var(--dim); transition: .2s; }
html[lang="pt-BR"] .lang-toggle [data-l="pt"],
html[lang="en"] .lang-toggle [data-l="en"] { background: rgba(255,255,255,.08); color: var(--text); }
.sb-term {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 6px; border-radius: 8px; border: 1px solid var(--line-2);
  color: var(--text); transition: border-color .2s, background .2s;
}
.sb-term:hover { border-color: var(--accent); background: rgba(79,240,180,.06); }

@media (max-width: 860px) {
  .sb-windows { display: none; }
  .sb-clock { display: none; }
}

/* ───────────────────────── hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--bar-h) + 40px); padding-bottom: 80px;
  overflow: hidden;
}
#ambient { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow { color: var(--muted); margin: 0 0 22px; }
.hero-name {
  margin: 0;
  font-weight: 600;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  line-height: .9;
  letter-spacing: -0.045em;
}
.hero-name em {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(100deg, var(--accent) 0%, var(--cyan) 45%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  padding: .04em .1em .12em 0;
}
.hero-role {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 26px 0 0; font-size: .95rem; color: var(--text);
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.02);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(79,240,180,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,240,180,.55); } 70% { box-shadow: 0 0 0 10px rgba(79,240,180,0); } 100% { box-shadow: 0 0 0 0 rgba(79,240,180,0); } }
.hero-pitch { max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 11px;
  font-weight: 500; font-size: .95rem;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -12px rgba(79,240,180,.6); }
.btn-primary .dim { color: rgba(4,20,13,.5); }
.btn-primary:hover { box-shadow: 0 16px 50px -12px rgba(79,240,180,.8); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--text); }
.hero-status { margin-top: 26px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.scroll-hint {
  position: absolute; z-index: 1; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); font-size: 11px;
}
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--dim), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* glitch on name */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.glitch:hover::before { opacity: .8; color: var(--accent); animation: g1 .45s steps(2) infinite; }
.glitch:hover::after  { opacity: .8; color: var(--pink);   animation: g2 .45s steps(2) infinite; }
@keyframes g1 { 0% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 0); } 50% { clip-path: inset(55% 0 20% 0); transform: translate(3px, 0); } 100% { clip-path: inset(30% 0 45% 0); transform: translate(-2px,0); } }
@keyframes g2 { 0% { clip-path: inset(65% 0 5% 0); transform: translate(3px, 0); } 50% { clip-path: inset(5% 0 75% 0); transform: translate(-3px, 0); } 100% { clip-path: inset(40% 0 35% 0); transform: translate(2px,0); } }

/* reveal on load / scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 100px; }
  .scroll-hint { display: none; }
}

/* ───────────────────────── terminal ───────────────────────── */
.term {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 22, 30, .86), rgba(9, 12, 17, .92));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset, 0 0 80px -30px rgba(79,240,180,.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.term::before {
  /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
.term-bar, .cw-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.term-bar .term-title { flex: 1; text-align: center; }
.term-bar .term-hint { color: var(--dim); font-size: 11px; }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #2a323d; }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.term[data-mode="overlay"] .lights i:nth-child(1) { cursor: pointer; }
.term-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px 18px 12px;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  cursor: text;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.term-out > div { white-space: pre-wrap; word-break: break-word; min-height: 1.65em; }
.term-line { display: flex; gap: 8px; align-items: baseline; }
.prompt { white-space: nowrap; }
.prompt .u { color: var(--accent); } .prompt .h { color: var(--blue); } .prompt .p { color: var(--muted); }
.term-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0; padding: 0;
  font: inherit; color: var(--text); caret-color: var(--accent);
}
.term-input::placeholder { color: var(--dim); }
.term-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 10px 14px 12px; border-top: 1px solid var(--line);
}
.term-chips button {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line);
  transition: .2s;
}
.term-chips button:hover { color: var(--accent); border-color: rgba(79,240,180,.4); background: rgba(79,240,180,.05); }

/* terminal colours */
.c-a { color: var(--accent); } .c-b { color: var(--blue); } .c-v { color: var(--violet); }
.c-y { color: var(--amber); } .c-p { color: var(--pink); } .c-r { color: var(--red); }
.c-c { color: var(--cyan); } .c-m { color: var(--muted); } .c-d { color: var(--dim); } .c-w { color: var(--text); }
.c-bold { font-weight: 600; color: var(--text); }
.term-out a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(142,168,255,.35); text-underline-offset: 3px; }
.term-out a:hover { text-decoration-color: var(--blue); }
.term-out .cmd-link { color: var(--accent); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.term-out .logo { background: linear-gradient(180deg, var(--accent), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.neo { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; }
.neo pre { margin: 0; font: inherit; line-height: 1.2; }
.palette { display: inline-flex; gap: 0; margin-top: 4px; }
.palette i { width: 22px; height: 12px; }

.hero-term { height: min(560px, 68svh); min-height: 420px; }
@media (max-width: 960px) { .hero-term { height: 480px; min-height: 0; } }

.term-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: var(--gutter);
  background: rgba(3, 5, 8, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .25s var(--ease);
}
.term-overlay[hidden] { display: none; }
.term-overlay-inner { width: min(860px, 100%); height: min(600px, 80svh); animation: pop .35s var(--ease); }
.term-overlay .term { background: linear-gradient(180deg, #10161e, #090c11); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ───────────────────────── sections ───────────────────────── */
section.wrap { padding-top: clamp(80px, 12vw, 150px); }
.section-head { margin-bottom: 34px; max-width: 760px; }
.kicker { color: var(--accent); margin: 0 0 14px; text-transform: lowercase; }
.section-head h2 {
  margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
}
.section-head h2 em, .contact-title em {
  font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--muted);
}
.lead { color: var(--muted); font-size: 1.05rem; margin: 18px 0 0; max-width: 40rem; }

/* about */
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.avatar { position: relative; width: clamp(140px, 18vw, 210px); }
.avatar-inner {
  aspect-ratio: 1; border-radius: 22px; overflow: hidden; position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(79,240,180,.35), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(142,168,255,.35), transparent 55%),
    var(--panel-solid);
  border: 1px solid var(--line-2);
}
.avatar-inner::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 4px);
}
.avatar-inner span { font-family: var(--serif); font-style: italic; font-size: clamp(3.4rem, 6vw, 5rem); color: var(--text); }
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.avatar-inner:has(img) { aspect-ratio: 4 / 5; box-shadow: 0 30px 80px -40px rgba(79,240,180,.45); }
.avatar-inner:has(img)::after { background: linear-gradient(180deg, transparent 60%, rgba(6,8,11,.35)); }
.avatar-meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--dim); font-size: 11px; }
.about-text {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 2.05rem); line-height: 1.32; letter-spacing: -0.02em; font-weight: 400;
  color: var(--text);
  text-wrap: pretty;
}
.about-text mark { background: none; color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.08em; }
@media (max-width: 640px) { .about-grid { grid-template-columns: 1fr; } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 26px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* pods */
.pods-cmd { color: var(--muted); margin-bottom: 16px; }
.pods-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ns-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ns-filters button, .view-toggle button {
  font-family: var(--mono); font-size: 12px;
  padding: 7px 12px; border-radius: 8px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.015);
  display: inline-flex; align-items: center; gap: 8px; transition: .2s;
}
.ns-filters button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.ns-filters button small { color: var(--dim); font-size: 11px; }
.ns-filters button:hover, .view-toggle button:hover { color: var(--text); border-color: var(--line-2); }
.ns-filters button.active { color: var(--text); border-color: var(--c, var(--text)); background: color-mix(in srgb, var(--c, #fff) 9%, transparent); }
.view-toggle { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); gap: 2px; }
.view-toggle button { border: 0; background: none; }
.view-toggle button.active { background: rgba(255,255,255,.08); color: var(--text); }

.pods-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  grid-auto-flow: dense;
}
@media (max-width: 1020px) { .pods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pods-grid { grid-template-columns: 1fr; } }

.pod {
  --ns: var(--accent);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer; text-align: left;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, opacity .35s;
  overflow: hidden;
  min-height: 230px;
}
.pod::before {
  /* spotlight following mouse */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--ns) 14%, transparent), transparent 60%);
}
.pod:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--ns) 45%, transparent); box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--ns) 60%, transparent); }
.pod:hover::before { opacity: 1; }
.pod.featured { grid-column: span 2; }
@media (max-width: 640px) { .pod.featured { grid-column: auto; } }
.pod.hide { display: none; }
.pod-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pod-head .st { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.pod-head .st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pod-head .ns { margin-left: auto; color: var(--ns); }
.pod-head .lock { color: var(--violet); display: inline-flex; gap: 5px; align-items: center; }
.pod h3 {
  margin: 0; font-family: var(--mono); font-weight: 500; letter-spacing: -0.01em;
  font-size: 1.15rem; word-break: break-word;
}
.pod.featured h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.pod p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.pod ul.hl { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.pod ul.hl li::before { content: "→ "; color: var(--ns); font-family: var(--mono); }
.pod .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.02); white-space: nowrap; }
.pod-foot { margin-top: auto; display: grid; gap: 10px; }
.langbar { display: flex; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.05); }
.langbar i { height: 100%; }
.pod-meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.pod-meta .inspect { color: var(--ns); opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.pod:hover .pod-meta .inspect { opacity: 1; transform: none; }
.pod.enter { animation: podIn .6s var(--ease) both; }
@keyframes podIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* topology */
.topo {
  position: relative; height: min(640px, 80svh); border-radius: var(--radius);
  border: 1px solid var(--line); background:
    radial-gradient(circle at 50% 50%, rgba(79,240,180,.05), transparent 60%),
    var(--panel);
  overflow: hidden;
}
.topo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
#topo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo-hint { position: absolute; left: 18px; bottom: 14px; color: var(--dim); margin: 0; }

/* stack */
.stack-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .stack-grid { grid-template-columns: 1fr; } }
.code-window { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.yaml { margin: 0; padding: 20px 22px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.85; overflow-x: auto; counter-reset: ln; }
.yaml .ln { display: block; white-space: pre; }
.yaml .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 2.2em; margin-right: 1.2em; text-align: right; color: #2c3644; user-select: none; }
.yaml .k { color: var(--blue); }
.yaml .cm { color: var(--dim); font-style: italic; }
.yaml .it { color: var(--text); cursor: default; padding: 1px 4px; margin: 0 -4px; border-radius: 4px; transition: background .15s, color .15s; }
.yaml .it:hover, .yaml .it.on { background: rgba(79,240,180,.12); color: var(--accent); }
.yaml .dash { color: var(--dim); }
.stack-peek {
  position: sticky; top: calc(var(--bar-h) + 24px);
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  padding: 22px; min-height: 220px;
}
.stack-peek p { margin: 0 0 8px; }
.stack-peek h3 { margin: 0 0 16px; font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 600; }
.stack-peek ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stack-peek li button {
  width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--text); text-align: left; transition: .2s;
}
.stack-peek li button:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.stack-peek li button span { color: var(--dim); }
.stack-peek .empty { color: var(--dim); font-family: var(--mono); font-size: 12px; }

/* git log */
.gitlog { list-style: none; margin: 0; padding: 0; position: relative; }
.gitlog::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--blue) 50%, var(--violet)); opacity: .35; border-radius: 2px; }
.gitlog li { position: relative; }
.gitlog button {
  width: 100%; display: grid; grid-template-columns: 16px 84px 110px minmax(0, 1fr) auto; gap: 18px; align-items: baseline;
  padding: 14px 12px 14px 0; border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: 13px; text-align: left; transition: background .2s;
  border-radius: 8px;
}
.gitlog button:hover { background: rgba(255,255,255,.02); }
.gitlog .node { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c); background: var(--bg); align-self: center; transition: .2s; box-shadow: 0 0 0 4px var(--bg); }
.gitlog button:hover .node { background: var(--c); box-shadow: 0 0 0 4px var(--bg), 0 0 18px var(--c); }
.gitlog .hash { color: var(--amber); }
.gitlog .date { color: var(--dim); }
.gitlog .msg { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gitlog .msg .type { color: var(--c); }
.gitlog .msg .d { color: var(--muted); }
.gitlog .ref { color: var(--violet); font-size: 11px; }
@media (max-width: 760px) {
  .gitlog button { grid-template-columns: 16px minmax(0, 1fr); gap: 4px 14px; }
  .gitlog .hash, .gitlog .date, .gitlog .ref { grid-column: 2; }
  .gitlog .hash { grid-row: 1; } .gitlog .node { grid-row: 1 / span 3; align-self: start; margin-top: 4px; }
  .gitlog .msg { white-space: normal; }
  .gitlog .date { display: inline; }
}

/* contact */
.contact { padding-bottom: 60px; }
.contact-title { font-size: clamp(3rem, 9vw, 7rem) !important; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  position: relative; display: flex; flex-direction: column; gap: 22px; justify-content: space-between;
  padding: 22px; min-height: 180px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.contact-card .proto { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.contact-card .val { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; letter-spacing: -0.01em; word-break: break-all; }
.contact-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.contact-card .go { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.contact-card .arrow { font-size: 1.4rem; transition: transform .35s var(--ease); }
.contact-card:hover .arrow { transform: translate(4px, -4px); }
.copy-btn { font-family: var(--mono); font-size: 12px; color: var(--accent); padding: 5px 10px; border-radius: 7px; border: 1px solid rgba(79,240,180,.35); }
.copy-btn:hover { background: rgba(79,240,180,.08); }

.footer {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  padding-top: 40px; padding-bottom: 40px; margin-top: 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}

/* ───────────────────────── drawer ───────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(3,5,8,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .3s var(--ease); }
.scrim[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 85;
  width: min(620px, 100vw);
  background: linear-gradient(180deg, #0c1118, #080b10);
  border-left: 1px solid var(--line-2);
  transform: translateX(102%); transition: transform .5s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -40px 0 120px -20px rgba(0,0,0,.8);
}
.drawer.open { transform: none; }
.drawer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--bar-h); padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px;
  overflow: hidden; white-space: nowrap;
}
.drawer-bar > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.drawer-close { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); flex-shrink: 0; }
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 30px clamp(18px, 4vw, 34px) 50px; }
.dw-ns { font-family: var(--mono); font-size: 12px; color: var(--ns); display: inline-flex; gap: 8px; align-items: center; }
.dw-ns i { width: 7px; height: 7px; border-radius: 50%; background: var(--ns); box-shadow: 0 0 12px var(--ns); }
.drawer h2 { margin: 12px 0 14px; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; font-weight: 600; word-break: break-word; }
.drawer .dw-desc { color: var(--muted); font-size: 1.05rem; margin: 0 0 26px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 0; font-family: var(--mono); font-size: 12.5px; border-top: 1px solid var(--line); }
.kv > * { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--text); }
.kv .ok { color: var(--accent); }
.kv .priv { color: var(--violet); }
.dw-h { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 30px 0 12px; text-transform: none; }
.dw-hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dw-hl li { display: grid; grid-template-columns: 22px 1fr; color: var(--text); font-size: .98rem; }
.dw-hl li::before { content: "▸"; color: var(--ns); }
.dw-langs { display: grid; gap: 8px; }
.dw-lang { display: grid; grid-template-columns: 110px 1fr 48px; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dw-lang .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.05); overflow: hidden; }
.dw-lang .bar i { display: block; height: 100%; border-radius: 6px; animation: grow 1s var(--ease) both; transform-origin: left; }
.dw-lang b { font-weight: 400; text-align: right; color: var(--text); }
@keyframes grow { from { transform: scaleX(0); } }
.dw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.dw-private { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 10px; border: 1px dashed rgba(185,155,255,.35); color: var(--violet); font-family: var(--mono); font-size: 12px; margin-top: 32px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line-2);
  color: var(--text); opacity: 0; pointer-events: none; transition: .35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

#ambient { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 55%); mask-image: linear-gradient(90deg, rgba(0,0,0,.35), #000 55%); }
@media (max-width: 560px) {
  .neo { grid-template-columns: 1fr; }
  .neo pre { display: none; }
  .term-body { font-size: 12px; padding: 14px; }
  .term-bar .term-hint { display: none; }
}

/* ───────────────────────── résumé additions ───────────────────────── */
.hero-headline { margin: 14px 0 0; color: var(--dim); font-size: .78rem; }
.about-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 9px; }
.exp-cmd { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.rollout { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.rev { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; position: relative; }
.rev::before {
  content: ""; position: absolute; left: 30px; top: 34px; bottom: -14px; width: 1px;
  background: linear-gradient(var(--line-2), transparent);
}
.rev:last-child::before { display: none; }
.rev-rail { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; font-size: 12px; }
.rev-n { color: var(--dim); }
.rev.current .rev-n { color: var(--accent); }
.rev-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 11px; }
.rev-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s steps(2) infinite; }
.rev-card {
  padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color .3s, transform .35s var(--ease);
}
.rev-card:hover { border-color: var(--line-2); transform: translateX(4px); }
.rev.current .rev-card {
  border-color: rgba(79,240,180,.35);
  background: linear-gradient(135deg, rgba(79,240,180,.07), transparent 45%), var(--panel);
}
.rev-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.rev-head h3 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); letter-spacing: -0.025em; font-weight: 600; line-height: 1.2; }
.rev-co { margin: 6px 0 0; color: var(--muted); }
.rev-badge { font-family: var(--mono); font-size: 11px; color: var(--amber); border: 1px solid rgba(255,200,97,.35); padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.rev-when { margin: 0; text-align: right; white-space: nowrap; color: var(--text); font-size: 12px; line-height: 1.7; }
.rev-list { margin: 16px 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.rev-list li { display: grid; grid-template-columns: 18px 1fr; }
.rev-list li::before { content: "▸"; color: var(--dim); }
.rev.current .rev-list li::before { color: var(--accent); }
.rev .tags { display: flex; flex-wrap: wrap; gap: 6px; }

.edu-title { margin: 44px 0 14px; color: var(--muted); font-weight: 400; font-size: .82rem; }
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.edu-item { padding: 20px 22px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.edu-item h4 { margin: 10px 0 4px; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.edu-item p { margin: 0; color: var(--muted); font-size: .92rem; }

@media (max-width: 720px) {
  .rev { grid-template-columns: 1fr; gap: 8px; }
  .rev::before { display: none; }
  .rev-rail { flex-direction: row; padding-top: 0; }
  .rev-head { flex-direction: column; gap: 8px; }
  .rev-when { text-align: left; }
  .rev-card { padding: 18px; }
  .edu { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }
.avatar:has(img) { width: clamp(170px, 22vw, 260px); }
.avatar-meta { gap: 12px; }
