/* ===== Tokens ===== */
:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --text: #0d1321;
  --muted: #4b5568;
  --border: #e2e6ef;
  --accent: #3b5bdb;
  --accent-2: #7048e8;
  --on-accent: #ffffff;
  --focus: #e8590c;
  --glow-1: rgba(59, 91, 219, 0.16);
  --glow-2: rgba(112, 72, 232, 0.12);
  --grid-line: rgba(13, 19, 33, 0.05);
  --shadow-sm: 0 1px 2px rgba(13, 19, 33, 0.05);
  --shadow-lg: 0 24px 48px -16px rgba(30, 40, 90, 0.18);
  --radius: 16px;
  --max: 72rem;
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d14;
    --surface: #111622;
    --surface-2: #0d121c;
    --text: #e9edf5;
    --muted: #a3adbf;
    --border: #1f2635;
    --accent: #8ea2ff;
    --accent-2: #b197fc;
    --on-accent: #0a0d14;
    --focus: #ffa94d;
    --glow-1: rgba(91, 120, 255, 0.22);
    --glow-2: rgba(151, 117, 250, 0.16);
    --grid-line: rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  }
}

/* ===== Base ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.75rem; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

a { color: var(--accent); text-underline-offset: 0.2em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 48rem) { .container { padding: 0 2rem; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 20;
}
.skip-link:focus { top: 1rem; }

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px var(--glow-1), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 32px -10px var(--glow-1); }
.button:active { transform: translateY(0); }
.button .icon-arrow { width: 1.1rem; height: 1.1rem; transition: transform 0.25s var(--ease); }
.button:hover .icon-arrow { transform: translateX(3px); }

.button-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.button-ghost:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); filter: none; box-shadow: var(--shadow-sm); }

.button-sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.9rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); }

.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand-mark {
  width: 2.3rem; height: 2.3rem; flex: none;
  border-radius: 11px;
  box-shadow: 0 6px 18px -6px rgba(95, 61, 196, 0.55);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.brand-mark { box-shadow: 0 6px 18px -6px rgba(10, 13, 34, 0.55), 0 0 16px -4px rgba(99, 230, 190, 0.5); }
.brand:hover .brand-mark { transform: scale(1.06); box-shadow: 0 10px 26px -6px rgba(10, 13, 34, 0.6), 0 0 24px -2px rgba(99, 230, 190, 0.65); }
/* Logo idea: the A is the switch inside a power symbol. The ring draws itself and the LED turns on. */
.bm-arc { stroke-dasharray: 100; animation: power-ring 1.1s 0.15s var(--ease) both; }
.bm-arc { transition: opacity 0.25s; }
.brand:hover .bm-arc { opacity: 0.22; }
/* Hover: a line of light runs from the top around the shield back to the top */
.bm-trace { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.brand:hover .bm-trace { opacity: 1; animation: shield-trace 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.bm-spark { opacity: 0; }
@supports (offset-path: path("M0 0")) {
  .bm-spark { offset-path: path("M20 5.5l11.5 4.3v8.7c0 6.9-5 12.4-11.5 14.3C13.5 30.9 8.5 25.4 8.5 18.5V9.8L20 5.5z"); offset-distance: 0%; offset-rotate: 0deg; }
  .brand:hover .bm-spark { animation: shield-spark 1.4s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
}
@keyframes shield-trace { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes shield-spark { 0% { offset-distance: 0%; opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.bm-led, .bm-glow { animation: led-on 0.4s 1.1s ease-out both; }
.bm-glow { transform-origin: 20px 6.4px; }
.brand:hover .bm-glow { animation: led-pulse 1.2s ease-in-out infinite; }
.bm-cursor { animation: blink 1.1s steps(1) infinite; animation-play-state: paused; }
.brand:hover .bm-cursor { animation-play-state: running; }
@keyframes power-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes power-ring-again { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes led-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes led-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.035em; }
.bn-cap {
  background: linear-gradient(135deg, #3b5bdb, #0ca678);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .bn-cap { background-image: linear-gradient(135deg, #96f2d7, #4dabf7); }
}
.brand-it {
  align-self: center;
  margin-left: -0.15rem;
  padding: 0.1rem 0.42rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Hover on words: decode effect */
.w { display: inline-block; transition: color 0.2s, text-shadow 0.2s; }
.gradient-text .w {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.w.hacking {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.92em;
  text-shadow: 0 0 14px var(--glow-1);
  white-space: pre;
  overflow: clip;
  overflow-clip-margin: 0;
}

.nav { display: none; gap: 2rem; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

@media (min-width: 52rem) {
  .nav { display: flex; }
  .header-actions { margin-left: 1.5rem; }
}

.lang-toggle {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); }

/* ===== Hero ===== */
.hero { position: relative; padding: 3.5rem 0 4.5rem; isolation: isolate; }
@media (min-width: 60rem) { .hero { padding: 6.5rem 0 7rem; } }

.hero-bg {
  position: absolute;
  inset: -4rem 0 0;
  z-index: -1;
  background:
    radial-gradient(40rem 26rem at 12% 8%, var(--glow-1), transparent 70%),
    radial-gradient(34rem 24rem at 88% 24%, var(--glow-2), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }

.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #2fb380;
  box-shadow: 0 0 0 4px color-mix(in srgb, #2fb380 22%, transparent);
}

.hero h1 { margin-bottom: 1.25rem; max-width: 18ch; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.chips li::before {
  content: "";
  width: 1rem; height: 1rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Terminal visual */
.terminal {
  position: relative;
  max-width: 28rem;
  width: 100%;
  justify-self: center;
  border-radius: var(--radius);
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: rise 0.9s 0.2s var(--ease) both;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(142, 162, 255, 0.6), transparent 40%, transparent 60%, rgba(177, 151, 252, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-bar span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #2a3247; }
.terminal-bar em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: #6b7a99; font-family: var(--mono); }
.terminal-body {
  margin: 0;
  padding: 1.2rem 1.25rem 1.4rem;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 0.72rem + 0.25vw, 0.9rem);
  line-height: 1.9;
  color: #d6deeb;
  overflow-x: auto;
}
.t-line { display: block; animation: line-in 0.4s var(--ease) both; }
.t-line:nth-child(1) { animation-delay: 0.5s; }
.t-line:nth-child(2) { animation-delay: 0.9s; }
.t-line:nth-child(3) { animation-delay: 1.1s; }
.t-line:nth-child(4) { animation-delay: 1.3s; }
.t-line:nth-child(5) { animation-delay: 1.5s; }
.t-line:nth-child(6) { animation-delay: 1.7s; }
.t-line:nth-child(7) { animation-delay: 2s; }
.t-prompt { color: #82aaff; }
.t-ok { color: #7fdbca; }
.t-dim { color: #3d4a66; }
.t-cursor {
  display: inline-block;
  width: 0.55em; height: 1.1em;
  vertical-align: -0.2em;
  background: #82aaff;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }
@media (min-width: 48rem) { .section { padding: 6.5rem 0; } }
.section-tight { padding-top: 0; }

.section-alt {
  background: var(--surface-2);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 40rem; margin-bottom: 2.75rem; }
.kicker {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Cards */
.cards, .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--shadow-lg);
}
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  color: var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.card-icon svg {
  width: 1.4rem; height: 1.4rem;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Audience */
.audience { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .audience { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.audience-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(22rem 12rem at 100% 0%, var(--glow-2), transparent 70%),
    var(--surface);
}
.audience-card h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
.audience-card p:last-child { color: var(--muted); margin: 0; }

/* Steps */
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; }
  .steps::before {
    content: "";
    position: absolute;
    top: 2.85rem; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  }
}
.step {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.step p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
}

/* Contact */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  background:
    radial-gradient(30rem 18rem at 0% 0%, var(--glow-1), transparent 70%),
    radial-gradient(28rem 18rem at 100% 100%, var(--glow-2), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
@media (min-width: 48rem) { .contact-panel { padding: 4.5rem 3rem; } }

.contact-panel h2 { max-width: 22ch; margin-inline: auto; }
.contact-text { max-width: 36rem; margin: 0 auto 1.5rem; color: var(--muted); }

.contact-mail { margin: 0 0 2rem; }
.contact-mail a {
  font-size: clamp(1.4rem, 1rem + 2.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}
.contact-mail a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.contact-phone { margin: -1.25rem 0 2rem; }
.contact-phone a {
  font-size: clamp(1.2rem, 1rem + 1.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.contact-phone a:hover { color: var(--accent); text-decoration: underline; }

.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; }
.copy-status { flex-basis: 100%; min-height: 1.5rem; font-size: 0.9rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.footer-brand { margin: 0; margin-right: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }

/* ===== Scroll reveal (only when JS runs) ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .audience .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3n), .steps .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .card.reveal.in {
  transition: opacity 0.7s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  transition-delay: 0s;
}

/* ===== About ===== */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .about-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4.5rem; } }

.portrait {
  position: relative;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  padding: 5px;
  border-radius: 26px;
  background: linear-gradient(140deg, #96f2d7, var(--accent) 45%, var(--accent-2));
  box-shadow: var(--shadow-lg);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 21px;
  background: var(--surface-2);
}
.portrait-badge {
  position: absolute;
  left: -0.75rem;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.portrait-badge strong {
  font-size: 1.5rem;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 30rem) { .portrait-badge { left: 0.75rem; } }

.about-copy h2 { margin-bottom: 0.35rem; }
.about-role { color: var(--accent); font-weight: 600; margin-bottom: 1.25rem; }
.about-copy > p:not(.kicker):not(.about-role):not(.langs-label) { color: var(--muted); max-width: 38rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0;
}
.fact {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.fact dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.fact dd { margin: 0; font-weight: 600; }

.langs-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.langs li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

/* Certifications */
.certs { margin-top: 3.5rem; }
.certs h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.cert-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
}
.cert {
  --vendor: var(--accent);
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.95rem 1.1rem 0.95rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--vendor);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cert:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cert-vendor { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vendor); }
.cert-name { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.cert-ms { --vendor: #1c7ed6; }
.cert-cisco { --vendor: #0b8aa8; }
.cert-vmw { --vendor: #5c940d; }
.cert-itil { --vendor: #ae3ec9; }
.cert-ps { --vendor: #3b5bdb; }
@media (prefers-color-scheme: dark) {
  .cert-ms { --vendor: #74c0fc; }
  .cert-cisco { --vendor: #66d9e8; }
  .cert-vmw { --vendor: #a9e34b; }
  .cert-itil { --vendor: #e599f7; }
  .cert-ps { --vendor: #91a7ff; }
}

/* ===== Legal page ===== */
.legal { padding: 3rem 0 5rem; }
.legal .container { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 2.25rem; }
.legal address { font-style: normal; }
.back-link { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; font-weight: 500; }
.back-link:hover { text-decoration: underline; }
.placeholder {
  background: color-mix(in srgb, var(--focus) 20%, transparent);
  border-radius: 4px;
  padding: 0 0.3rem;
}

/* ===== 404 ===== */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .code { font-family: var(--mono); font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 700; line-height: 1; margin-bottom: 1rem; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.bm-trace):not(.bm-spark), *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.nw { white-space: nowrap; }
