:root {
  --bg: #0a0a0f;
  --surface: #14141d;
  --surface-2: #1c1c28;
  --border: #232336;
  --text: #f4f5f8;
  --muted: #a4abbd;
  --accent: #6e8aff;
  --accent-strong: #1e3aae;
  --accent-soft: rgba(110, 138, 255, 0.20);
  --accent-deep: #2c4cdb;
  --success: #5cd99c;
  --danger: #ff8585;
  --white: #ffffff;
  --black: #000000;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --sticky-header-height: 78px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  background: var(--white);
  color: var(--black);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 18px 24px;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand__media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand__mark {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}
.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.brand:hover .brand__mark {
  transform: scale(1.2) translateY(-1px) rotate(-2deg);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.brand__text strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand__text span {
  font-size: 0.67rem;
  color: #9eb1ff;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.15s ease, opacity 0.15s ease;
  opacity: 0.92;
}
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #8aa6ff, #5cd99c);
  transition: transform 0.16s ease;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--white);
  opacity: 1;
}
.site-nav__links a:hover::after,
.site-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}
.site-nav__links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
  color: var(--white);
  opacity: 1;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.site-nav__cta {
  margin-left: 4px;
}

/* BUTTONS */
.button, .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}
.button {
  background: var(--accent-strong);
  color: var(--white);
}
.button:hover {
  background: var(--accent-deep);
  color: var(--white);
  transform: translateY(-1px);
}
.button:focus-visible,
.button-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: none;
}
.button-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 18% -10%, rgba(110, 138, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 30% at 92% 8%, rgba(30, 58, 174, 0.20), transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 110%, rgba(44, 76, 219, 0.10), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 138, 255, 0.35), transparent);
  pointer-events: none;
}
.hero__inner { position: relative; }
.home-hero .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.home-hero .hero__content { min-width: 0; }
.home-hero .hero__media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.home-hero .hero__portrait {
  width: min(100%, 460px);
  padding: 3px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(110, 138, 255, 0.95), rgba(30, 58, 174, 0.88) 48%, rgba(44, 76, 219, 0.95)),
    var(--accent);
  box-shadow:
    0 34px 72px -34px rgba(30, 58, 174, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.home-hero .hero__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 54px -30px rgba(0, 0, 0, 0.85);
  filter: grayscale(1);
  transition: filter 0.25s ease;
}
.home-hero .hero__portrait:hover img,
.home-hero .hero__portrait:focus-within img {
  filter: grayscale(0);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110, 138, 255, 0.18);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 880px;
  font-weight: 700;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 32px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__credentials {
  display: flex;
  gap: 12px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.cred {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.cred:hover,
.cred:focus-visible {
  border-color: rgba(110, 138, 255, 0.5);
  transform: translateY(-1px);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.cred__dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  border: 1px solid rgba(110, 138, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-family: var(--font-mono);
}
.cred__copy {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.cred strong { color: var(--white); }

/* SECTIONS */
section { padding: 1.5em 0; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head h2 {
  position: relative;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  padding-left: 18px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  bottom: 0.32em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}
.section-head p { color: var(--muted); margin: 0; padding-left: 18px; font-size: 1.05rem; }
.section-foot { margin-top: 36px; display: flex; justify-content: flex-start; }

.section-divider {
  border: 0;
  height: 1px;
  margin: 44px 0;
  background:
    linear-gradient(90deg, transparent, rgba(110, 138, 255, 0.42), rgba(255, 255, 255, 0.1), transparent);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 5fr);
  gap: 32px;
  align-items: start;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-width: 0;
}

.surface-card--soft {
  background:
    radial-gradient(circle at top right, rgba(66, 99, 235, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(18, 26, 49, 0.94), rgba(12, 18, 35, 0.98));
}

.sticky-panel {
  position: sticky;
  top: 108px;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.summary-list li {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(6, 10, 21, 0.52);
}

.summary-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 0.98rem;
}

.summary-list span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.anchor-list {
  display: grid;
  gap: 10px;
}

.anchor-list a {
  position: relative;
  display: block;
  padding: 12px 14px 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.45;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.anchor-list a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.anchor-list a:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--white);
  transform: translateY(-1px);
}
.anchor-list a:hover::before { height: 60%; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.detail-grid__aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(110, 138, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  position: relative;
  background:
    linear-gradient(180deg, rgba(20, 20, 29, 0.98), rgba(16, 16, 24, 0.98));
  padding: 30px 26px 28px;
  overflow: hidden;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.stat:hover,
.stat:focus-visible {
  background:
    radial-gradient(circle at top right, rgba(110, 138, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(24, 25, 37, 0.99), rgba(18, 19, 28, 0.99));
  box-shadow: inset 0 0 0 1px rgba(110, 138, 255, 0.28);
}
.stat--featured {
  background:
    radial-gradient(circle at top right, rgba(110, 138, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(22, 23, 35, 0.99), rgba(16, 17, 26, 0.99));
}
.stat__icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(110, 138, 255, 0.12);
  border: 1px solid rgba(110, 138, 255, 0.20);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  opacity: 0.62;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat__value {
  padding-right: 48px;
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.stat__value .unit { color: var(--accent); }
.stat__label {
  color: #a6aec0;
  font-size: 0.93rem;
  line-height: 1.45;
  margin-top: 12px;
  max-width: 260px;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card--link {
  color: inherit;
  text-decoration: none;
}
.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(66, 99, 235, 0.45);
}
.card h3 { margin: 0; color: var(--white); font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(110, 138, 255, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 4px;
}
.card__link::after { content: "→"; transition: transform 0.15s ease; }
.card:hover .card__link::after,
.card:focus-visible .card__link::after { transform: translateX(3px); }

/* MASCOT (RodoBot) */
.npc__close { display: none; }
.npc {
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(110, 138, 255, 0.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  position: relative;
  align-items: start;
  overflow: hidden;
}
.npc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent), transparent 80%);
  opacity: 0.7;
}
.mascot {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 24px;
  background: transparent;
  display: grid;
  place-items: center;
  animation: bob 3s ease-in-out infinite;
}
.mascot svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 14px 22px rgba(30, 58, 174, 0.45));
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.npc__body { display: flex; flex-direction: column; gap: 16px; }
.npc__messages {
  display: contents;
}
.npc__message--user {
  display: none;
}
.npc__message--user[hidden] {
  display: none;
}
.npc__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.npc__name::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.npc__text {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
  min-height: clamp(140px, 24vh, 200px);
  position: relative;
  overflow-anchor: none;
  contain: layout style;
}
.npc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.npc__action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(92, 131, 255, 0.35);
  background: rgba(92, 131, 255, 0.12);
  color: #dce5ff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.npc__action i {
  font-size: 1.1em;
  line-height: 1;
}
.npc__action .npc__action-exit {
  font-size: 0.95em;
  opacity: 0.78;
}
.npc__action:hover {
  transform: translateY(-1px);
  border-color: rgba(138, 166, 255, 0.7);
  background: rgba(92, 131, 255, 0.2);
}
.npc__action:focus-visible {
  outline: 2px solid rgba(138, 166, 255, 0.85);
  outline-offset: 2px;
}
.npc__text.is-typing::after {
  content: "▮";
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
/* Desktop thinking state — dots centred in the text box */
.npc__text.is-thinking {
  display: flex;
  align-items: center;
  justify-content: center;
}
.npc__text.is-thinking .npc__typing-dots span {
  width: 9px;
  height: 9px;
  background: var(--accent);
}

/* Typing dots — shown inside the bot bubble while waiting for API response */
.npc__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}
.npc__typing-dots span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.1s ease-in-out infinite;
}
.npc__typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.npc__typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.npc__form { display: flex; gap: 8px; flex-wrap: wrap; }
.npc__input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.npc__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.npc__mic {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.npc__mic:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.npc__mic:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.npc__mic.is-listening {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(255, 133, 133, 0.10);
  animation: micPulse 1.4s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 133, 133, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(255, 133, 133, 0); }
}
.npc__hint { color: var(--muted); font-size: 0.82rem; margin: 0; font-family: var(--font-mono); }

/* ARCADE */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.arcade-card {
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease;
}
.arcade-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(66, 99, 235, 0.4);
}
.arcade-card__cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.arcade-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.arcade-card__carousel {
  position: absolute;
  inset: 0;
  height: 100%;
}
.arcade-card__carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.arcade-card__carousel--two {
  --carousel-duration: 7s;
}
.arcade-card__carousel--hasee {
  --carousel-duration: 8.5s;
  --carousel-delay: -1.4s;
}
.arcade-card__carousel--three {
  --carousel-duration: 9s;
}
.arcade-card__carousel--two img:nth-child(2) {
  animation: arcadeCarouselCrossFadeTwo var(--carousel-duration) ease-in-out infinite;
  animation-delay: var(--carousel-delay, 0s);
}
.arcade-card__carousel--three img:nth-child(2) {
  animation: arcadeCarouselCrossFadeThreeSecond var(--carousel-duration) ease-in-out infinite;
}
.arcade-card__carousel--three img:nth-child(3) {
  animation: arcadeCarouselCrossFadeThreeThird var(--carousel-duration) ease-in-out infinite;
}
@keyframes arcadeCarouselCrossFadeTwo {
  0%, 34% { opacity: 0; }
  48%, 82% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes arcadeCarouselCrossFadeThreeSecond {
  0%, 16% { opacity: 0; }
  26%, 40% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes arcadeCarouselCrossFadeThreeThird {
  0%, 50% { opacity: 0; }
  60%, 74% { opacity: 1; }
  84%, 100% { opacity: 0; }
}
.arcade-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.arcade-card__body h3 { margin: 0; color: var(--white); font-size: 1.1rem; }
.arcade-card__body p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.arcade-card__cta { margin-top: auto; padding-top: 8px; }

.game-frame {
  width: 100%;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--black);
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.timeline__role { color: var(--white); font-size: 1.1rem; font-weight: 600; margin: 4px 0 2px; }
.timeline__org { color: var(--muted); font-size: 0.95rem; margin: 0 0 8px; }
.timeline__bullets { margin: 0; padding-left: 20px; color: var(--text); }
.timeline__bullets li { margin-bottom: 6px; }

/* PROSE */
.prose { max-width: 720px; }
.prose h2 { color: var(--white); margin-top: 48px; }
.prose h2[id] { scroll-margin-top: 132px; }
.prose h3 { color: var(--white); margin-top: 28px; }
.prose p { color: var(--text); }
.prose ul li { margin-bottom: 6px; }

.projects-hero {
  align-items: center;
}

.projects-hero__content {
  min-width: 0;
}

.projects-hero__content .contact-chip-list {
  margin-top: 20px;
}

.projects-hero__aside h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.project-layout {
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
}

.project-stack {
  display: grid;
  gap: 20px;
}

.case-study {
  position: relative;
  display: grid;
  gap: 30px;
  padding: 36px;
  overflow: hidden;
}
.case-study::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent) 35%, transparent 90%);
  opacity: 0.7;
}
@media (max-width: 720px) {
  .case-study { padding: 24px; gap: 24px; }
}

.case-study__header {
  display: grid;
  gap: 14px;
  padding-bottom: 4px;
}

.project-meta {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study h2 {
  margin: .5em 0;
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.case-study h2[id] {
  scroll-margin-top: 132px;
}

.case-study__lead {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 70ch;
}

.case-study__copy {
  display: grid;
  gap: 14px;
  max-width: 75ch;
}

.case-study__section {
  display: grid;
  gap: 8px;
  padding: 1em;
}

.case-study__section + .case-study__section {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.case-study__section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.75;
}

.project-fact {
  position: relative;
  padding: 18px 20px 18px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(6, 10, 21, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  overflow: hidden;
}
.project-fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-radius: 2px;
}

.project-fact__label {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-fact p {
  margin: 0;
  color: var(--white);
  font-size: 0.96rem;
  line-height: 1.55;
}

.project-snapshot .card__tags {
  margin-top: 0;
  padding-top: 0;
}

.project-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-footer-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-footer-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.project-footer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* CONTACT FORM */
.form { display: grid; gap: 18px; max-width: 560px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row label {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form__row input,
.form__row textarea {
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  resize: vertical;
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__row textarea { min-height: 160px; }
.form__status {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 1.4em;
  margin: 0;
}
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form button[type="submit"] { align-self: start; }

/* BLOG LIST */
.blog-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
  box-shadow: 0 18px 42px -22px rgba(66, 99, 235, 0.45);
}
.blog-card__cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-card:hover .blog-card__cover img { transform: scale(1.04); }
.blog-card__cover--placeholder::after {
  content: "▦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  opacity: 0.4;
  font-size: 2.5rem;
}
.blog-card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.blog-card__date {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(110, 138, 255, 0.22);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-card__title {
  color: var(--white);
  font-size: 1.18rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.blog-card__excerpt { color: var(--muted); font-size: 0.95rem; margin: 0; }
.blog-empty { color: var(--muted); padding: 40px 0; }
.blog-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(110, 138, 255, 0.22);
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--text);
}
.blog-filter strong { color: var(--accent); }
.blog-filter__clear {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.blog-filter__clear:hover { color: var(--accent); }

/* Blog card carousel — mirrors arcade card carousel */
.blog-card__carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.blog-card__carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.blog-card__carousel--two { --carousel-duration: 7s; --carousel-delay: 0s; }
.blog-card__carousel--three { --carousel-duration: 9s; }
.blog-card__carousel--two img:nth-child(2) {
  animation: arcadeCarouselCrossFadeTwo var(--carousel-duration) ease-in-out infinite;
  animation-delay: var(--carousel-delay, 0s);
}
.blog-card__carousel--three img:nth-child(2) {
  animation: arcadeCarouselCrossFadeThreeSecond var(--carousel-duration) ease-in-out infinite;
}
.blog-card__carousel--three img:nth-child(3) {
  animation: arcadeCarouselCrossFadeThreeThird var(--carousel-duration) ease-in-out infinite;
}

/* BLOG POST */
.post { max-width: 720px; margin: 0 auto; }
.post-section { padding-top: 56px; }
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.post-hero-card {
  max-width: 920px;
  padding: 32px;
}
.post__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-bottom: 20px;
}
.post__crumb:hover { color: var(--accent); }
.post__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.post__meta {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.post__tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110, 138, 255, 0.22);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--white);
  letter-spacing: -0.02em;
}
.post__lead { color: var(--muted); font-size: 1.15rem; margin: 0; line-height: 1.7; }
.post-article { max-width: none; padding: 40px 48px; }
.post__cover {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 40px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg));
  border: 1px solid var(--border);
}
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__body { color: var(--text); font-size: 1rem; line-height: 1.8; max-width: 680px; }
.post__body > *:first-child { margin-top: 0; }
.post__body h2 { color: var(--white); margin: 2.5em 0 0.6em; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.post__body h3 { color: var(--white); margin: 2em 0 0.4em; font-size: 1rem; font-weight: 600; }
.post__body p { margin: 0 0 1.2em; }
.post__body ul, .post__body ol { padding-left: 22px; margin: 0 0 1.2em; }
.post__body li { margin-bottom: 6px; }
.post__body figure { margin: 36px 0; }
.post__body figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.post__body figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}
.post__body blockquote {
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 18px;
  color: var(--muted);
  margin: 2em 0;
}
.post__body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 24px 0;
}
.post__body code:not(pre code) {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent);
}
.post__body a { color: var(--accent); border-bottom: 1px solid transparent; }
.post__body a:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* Inline post images injected from posts.json */
.post-img { margin: 32px 0; border-radius: var(--radius); overflow: hidden; }
.post-img img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.post-img--wide { margin-left: 0; margin-right: 0; }
.post-img--wide img { max-height: 480px; object-fit: cover; }
.post-img--inline { max-width: 520px; }
.post-img--right { float: right; margin: 8px 0 24px 32px; max-width: 340px; }
.post-img--left { float: left; margin: 8px 32px 24px 0; max-width: 340px; }
.post-img figcaption { font-size: 0.85rem; color: var(--muted); padding: 10px 0 0; }
@media (max-width: 600px) {
  .post-img--right,
  .post-img--left { float: none; margin: 32px 0; max-width: 100%; }
  .post-img--inline { max-width: 100%; }
}

/* Citations block */
.post__citations { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.post__citations h3 { font-size: 1rem; color: var(--muted); margin: 0 0 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.citations-list { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.citations-list li { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.citations-list a { color: var(--accent); }

.post-sidebar-card { gap: 0; }
.post-sidebar-card p { line-height: 1.65; font-size: 0.94rem; }
.post-sidebar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.post-sidebar__pills .post__tag-pill {
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.post-sidebar__pills .post__tag-pill:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.post-sidebar__links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.post-sidebar__links .button-secondary { justify-content: center; }
.post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.post__back {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  display: inline-block;
}
.post__back:hover { color: var(--accent); }
.post__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post__cta:hover {
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
}
.site-footer__disclaimer {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid rgba(110, 138, 255, 0.18);
  border-radius: 999px;
  background: rgba(110, 138, 255, 0.07);
  color: #a6aec0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* CONTACT PAGE */
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.mini-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
}
.contact-stack { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -22px rgba(66, 99, 235, 0.4);
}
.contact-card h3 { margin: 0 0 8px; color: var(--white); font-size: 1.1rem; font-weight: 600; }
.contact-card h3 a { color: var(--white); }
.contact-card h3 a:hover { color: var(--accent); }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  word-break: break-all;
  transition: color 0.2s ease;
}
.contact-link:hover { color: var(--accent); }
.contact-link__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(110, 138, 255, 0.28);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.contact-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.contact-chip-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(110, 138, 255, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
}
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form-panel h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.microcopy { color: var(--muted); font-size: 0.92rem; margin: 0 0 24px; }
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.consent-check {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}
.consent-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.consent-check__box {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.consent-check__box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translate(-50%, -60%) rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.consent-check input:checked + .consent-check__box {
  border-color: var(--accent);
  background: var(--accent);
}
.consent-check input:checked + .consent-check__box::after { opacity: 1; }
.consent-check:hover .consent-check__box { border-color: var(--accent); }
.consent-check a { color: var(--accent); }
.form-feedback {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-line;
  display: none;
}
.form-feedback[role] { display: block; }
.form-feedback.is-success {
  border-color: rgba(92, 217, 156, 0.35);
  background: rgba(92, 217, 156, 0.1);
  color: var(--success);
}
.form-feedback.is-error {
  border-color: rgba(255, 133, 133, 0.35);
  background: rgba(255, 133, 133, 0.08);
  color: var(--danger);
}

/* TIMELINE CARDS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.timeline-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.timeline-card__step {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.timeline-card h3 { margin: 0 0 6px; color: var(--white); font-size: 1.05rem; font-weight: 600; }
.timeline-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* GUEST BOOK */
.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
  gap: 32px;
  align-items: start;
}

.guestbook-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.guestbook-form-panel {
  border-top: 3px solid var(--accent);
}

.guestbook-form-panel textarea {
  min-height: 120px;
}

.guestbook-entries {
  display: grid;
  gap: 22px;
}

.section-head--compact {
  margin-bottom: 0;
}

.guestbook-entry-list {
  display: grid;
  gap: 12px;
}

.guestbook-entry {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid rgba(110, 138, 255, 0.35);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at top right, rgba(92, 217, 156, 0.06), transparent 34%),
    rgba(6, 10, 21, 0.42);
  transition: border-left-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guestbook-entry:hover {
  border-left-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.guestbook-entry__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.guestbook-entry__name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.guestbook-entry__avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-sans);
  text-transform: uppercase;
}

.guestbook-entry h3 {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guestbook-entry__meta {
  flex-shrink: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: right;
}

.guestbook-entry p {
  margin: 0;
  color: rgba(244, 245, 248, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}

.guestbook-empty {
  margin: 0;
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
  font-size: 0.95rem;
}

/* SCROLL REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  overflow-anchor: none;
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .arcade-card__carousel img { animation: none; opacity: 1; }
}

/* SOCIAL ICONS */
.cred__dot i { font-size: 1.05rem; line-height: 1; }
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-links a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.15rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.social-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .split-layout,
  .detail-grid,
  .project-footer-grid,
  .guestbook-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-layout > .post-article {
    order: 1;
  }
  .post-layout > .sticky-panel {
    order: 2;
  }
  .sticky-panel {
    position: static;
    top: auto;
  }

}
@media (max-width: 860px) {
  :root {
    --sticky-header-height: 72px;
  }

  .contact-chip-list{
    justify-content: center;
  }

  .site-header__bar {
    min-height: 72px;
    padding: 14px 24px;
  }
  .brand__mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
  .brand__text strong { font-size: 1.02rem; }
  .brand__text span { font-size: 0.62rem; }
  .site-nav {
    margin-left: auto;
    gap: 12px;
    position: static;
  }
  .site-nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(20, 20, 29, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .site-nav__links.is-open {
    display: flex;
  }
  .site-nav__links a {
    min-height: 0;
    padding: 12px 4px;
    color: var(--text);
  }
  .site-nav__links a::after {
    bottom: 6px;
  }
  .site-nav__cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-footer__links { margin: auto }
  .site-footer__copy{
      margin: auto;
      text-align: center;
  }
}
@media (max-width: 720px) {
  :root {
    --sticky-header-height: 70px;
  }

  .hero { padding: 64px 0 32px; }
  .home-hero { padding: 48px 0 32px; }
  .home-hero .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .home-hero .hero__media {
    order: -1;
    justify-content: center;
  }
  .home-hero .hero__portrait {
    width: min(82vw, 340px);
    padding: 3px;
  }
  .hero__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hero__cta .button,
  .hero__cta .button-secondary {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }
  .hero__credentials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 32px;
  }
  .cred {
    width: 100%;
    align-items: flex-start; 
    gap: 12px;
    border-radius: 22px;
    padding: 10px 14px 10px 10px;
    font-size: 0.95rem;
  }
  .cred__dot {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }
  .cred__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.25;
  }
  .cred__copy strong {
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .cred__copy span {
    color: var(--muted);
  }
  .eyebrow { display: none; }
  .site-header__bar {
    min-height: 70px;
    padding: 14px 20px;
  }
  .brand {
    gap: 12px;
    min-width: 0;
  }
  .brand__text strong { font-size: 0.98rem; }
  .brand__text span { font-size: 0.58rem; letter-spacing: 0.14em; }
  .stats { grid-template-columns: 1fr; }
  .post-hero-card,
  .post-article {
    padding: 24px;
  }
  .post__meta-row {
    align-items: flex-start;
  }
  .post__title {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }
  .post__lead { font-size: 1.02rem; }
  .post-article { padding: 24px; }
  .post__footer {
    align-items: stretch;
  }
  .post__cta {
    width: 100%;
  }
  /* ── Mobile RodoBot: card by default, fullscreen when .is-open ── */
  .rodobot-section {
    padding: 0 14px 32px; /* single gutter source — keeps card away from edges */
  }
  /* zero out the container's default padding so it doesn't double up */
  .rodobot-section .container {
    padding: 0;
  }
  .rodobot-section-spacer { display: none; }
  .rodobot-section .section-head {
    display: block;
    margin: 0 0 20px;
    padding: 0;
  }
  .rodobot-section .section-head h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .rodobot-section .section-head p {
    padding-left: 16px;
    font-size: 0.98rem;
  }

  .npc { grid-template-columns: 1fr; gap: 14px; }

  /* ── Card state ── */
  .rodobot-section .npc {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* override base .npc { align-items: start } so children fit card width */
    gap: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    position: relative;
    margin: 0; /* guttering is on the section, not here */
    width: 100%;
    min-width: 0;
  }
  .rodobot-section .npc__body,
  .rodobot-section .npc__messages,
  .rodobot-section .npc__actions,
  .rodobot-section .npc__form {
    min-width: 0; /* allow flex/grid children to shrink below their min-content (e.g. nowrap chips) */
  }
  .rodobot-section .npc::before { display: none; }
  .mascot { margin: 0 auto; }
  .rodobot-section .mascot {
    width: 38px;
    height: 38px;
    margin: 0;
    animation: none;
    position: absolute;
    top: 15px;
    left: 16px;
    z-index: 1;
  }

  /* close button — hidden until fullscreen */
  .npc__close {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 1.25rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.18s, border-color 0.18s;
  }
  .npc__close:hover { color: var(--white); border-color: var(--accent); }

  /* name bar */
  .rodobot-section .npc__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .rodobot-section .npc__name {
    min-height: 66px;
    align-items: center;
    padding: 14px 16px 14px 66px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--white);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
  }
  .rodobot-section .npc__name::after {
    content: "online";
    width: auto; height: auto;
    border-radius: 0; background: none; box-shadow: none; animation: none;
    color: var(--success);
    font-family: var(--font-sans);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  }

  /* card message preview — just shows the greeting, clipped */
  .rodobot-section .npc__messages {
    padding: 14px 16px 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
  }
  .rodobot-section .npc__message {
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 1.5;
  }
  .rodobot-section .npc__message--user { display: none; }
  .rodobot-section .npc__text {
    min-height: auto; padding: 0; border: 0; border-radius: 0;
    background: transparent; color: var(--muted); font-size: 0.88rem;
    line-height: 1.5; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }

  /* suggestion chips */
  .rodobot-section .npc__actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 7px;
    padding: 8px 16px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--surface);
    scrollbar-width: none;
  }
  .rodobot-section .npc__actions::-webkit-scrollbar { display: none; }
  .rodobot-section .npc__actions[hidden] { display: none; }
  .rodobot-section .npc__action {
    flex: 0 0 auto;
    padding: 6px 12px;
    white-space: nowrap;
    font-size: 0.8rem;
    background: var(--surface-2);
    border-color: var(--border);
  }

  /* input bar */
  .rodobot-section .npc__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    align-items: center;
    justify-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px 14px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    overflow: visible;
  }
  .rodobot-section .npc__form:has(.npc__mic[hidden]) {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
  .rodobot-section .npc__input {
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--bg);
    border-color: var(--border);
    font-size: 1rem; /* ≥16px — prevents iOS auto-zoom on focus */
    box-sizing: border-box;
    justify-self: stretch;
  }
  .rodobot-section .npc__mic {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .rodobot-section .npc__form .button { min-height: 40px; padding: 0; font-size: 0.88rem; }
  .rodobot-section .npc__form .npc__send { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1; box-sizing: border-box; flex-shrink: 0; }
  .rodobot-section .npc__form .npc__send .npc__send-label { display: none; }

  /* ── Fullscreen state ── */
  .rodobot-section.is-open {
    position: fixed;
    top: var(--sticky-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 0;
    display: flex;
    align-items: stretch;
    z-index: 40;
    /* fully opaque — nothing behind bleeds through */
    background: var(--bg);
  }
  .rodobot-section.is-open .container {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0; /* section padding is already 0 in fullscreen */
  }
  .rodobot-section.is-open .section-head { display: none; }
  .rodobot-section.is-open .npc {
    flex: 1;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: var(--bg);
  }
  .rodobot-section.is-open .npc__close { display: flex; }
  .rodobot-section.is-open .npc__body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
  }
  .rodobot-section.is-open .npc__name {
    background: var(--surface-2);
    min-height: 68px;
    padding: 14px 56px 14px 68px;
  }
  .rodobot-section.is-open .npc__messages {
    display: flex;
    min-height: 0;
    overflow-y: auto;
    overflow-anchor: none;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    max-height: none;
    background: var(--bg);
  }
  .rodobot-section.is-open .npc__message {
    max-width: min(82%, 440px);
    padding: 12px 14px;
    border-radius: 18px;
    line-height: 1.5;
  }
  .rodobot-section.is-open .npc__message--bot {
    align-self: flex-start;
    color: var(--text);
    background: var(--surface);
    border-bottom-left-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  }
  .rodobot-section.is-open .npc__message--user {
    display: block;
    align-self: flex-end;
    color: var(--white);
    background: var(--accent-strong);
    border-bottom-right-radius: 6px;
    box-shadow: 0 12px 26px -18px rgba(110,138,255,0.8);
  }
  .rodobot-section.is-open .npc__message--user[hidden] { display: none; }
  .rodobot-section.is-open .npc__text {
    display: block;
    color: var(--text);
    font-size: 0.97rem;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .rodobot-section.is-open .npc__actions {
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    padding: 10px 18px;
  }
  .rodobot-section.is-open .npc__action {
    padding: 9px 12px;
    font-size: 0.85rem;
    background: rgba(92, 131, 255, 0.16);
    border-color: rgba(110, 138, 255, 0.25);
  }
  .rodobot-section.is-open .npc__form {
    background: var(--surface-2);
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
  }
  .rodobot-section.is-open .npc__input {
    background: var(--bg);
  }

  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 24px; }
  .guestbook-entry__header {
    display: grid;
    gap: 6px;
  }
  .guestbook-entry__meta {
    text-align: left;
    padding-left: 40px;
  }
}

/* ABOUT PAGE */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease;
}
.role-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(66, 99, 235, 0.4);
}
.role-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.role-card__head .mini-label { margin-bottom: 0; }
.role-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(110, 138, 255, 0.28);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}
.role-card:hover .role-card__icon {
  transform: translateY(-1px) rotate(-3deg);
  background: rgba(110, 138, 255, 0.28);
}
.role-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.role-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.edu-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -22px rgba(66, 99, 235, 0.4);
}
.edu-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(110, 138, 255, 0.28);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.edu-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.edu-card__degree {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.edu-card__field {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .lang-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lang-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.lang-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.lang-card__name {
  color: var(--white);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.lang-card__level {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.stack-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease;
}
.stack-group:hover { border-color: var(--accent); }
.stack-group .mini-label { margin-bottom: 0; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.cert-card__icon {
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.recognition-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease;
}
.recognition-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(66, 99, 235, 0.4);
}
.recognition-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}
.recognition-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.about-cta {
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(110, 138, 255, 0.15), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 1em;
}
.about-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent), transparent 80%);
  opacity: 0.7;
}
.about-cta h2 {
  margin: 6px 0 4px;
  color: var(--white);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: -0.01em;
}
.about-cta p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

@media (max-width: 360px) {
  /* Tighten the input bar on very narrow screens, but keep button cells
     fixed at 40px so the input, mic, and send stay perfectly aligned. */
  .rodobot-section .npc__form {
    gap: 6px;
    padding: 10px 10px 12px;
  }
  .rodobot-section.is-open .npc__form {
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 720px) {
  .about-cta { padding: 32px 24px; }
  .role-card, .recognition-card { padding: 22px; }
}

/* ARCADE LESSONS */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease;
}
.lesson-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(66, 99, 235, 0.4);
}
.lesson-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(110, 138, 255, 0.28);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}
.lesson-card:hover .lesson-card__icon {
  transform: translateY(-1px) rotate(-3deg);
  background: rgba(110, 138, 255, 0.28);
}
.lesson-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lesson-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.lessons-footer {
  margin-top: 32px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.arcade-attribution {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.arcade-attribution .mini-label { margin-bottom: 8px; }
.arcade-attribution p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.arcade-attribution a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.arcade-attribution a:hover { border-bottom-color: var(--accent); }

/* UTILITY */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mt-1 {margin-top: 1em !important;}
