/* Minimalist Monochrome Design-Engineer System — Luka Gosseye */

@font-face {
  font-family: "xVf";
  src: url("./fonts/xvf-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistSans";
  src: url("./fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistMono";
  src: url("./fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GeistPixel";
  src: url("./fonts/geist-pixel-square.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-display: "GeistSans", "xVf", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "GeistSans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "GeistMono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-pixel: "GeistMono", monospace;

  /* Dark Monochrome Default (Factory Industrial Palette) */
  --bg: #020202;
  --surface: #0D0D0D;
  --surface-elevated: #141414;
  --header-bg: rgba(2, 2, 2, 0.9);
  --ink: #EEEEEE;
  --ink-muted: #999999;
  --ink-dim: #5A5A5A;
  --border: #262626;
  --border-strong: #404040;
  --accent: #FAFAFA;
  --accent-ink: #020202;
  --ticket-bg: #EEEEEE;
  --ticket-bg-hover: #020202;
  --ticket-ink: #020202;
  --hatch-line: rgba(250, 250, 250, 0.14);
  --lines-on-dark: rgba(255, 255, 255, 0.14);
  --lines-on-light: rgba(0, 0, 0, 0.16);
  --spiral-bg: #080808;
  --spiral-fg: #FAFAFA;
  --takeover: 0;
  --accent-yellow: #FFDA1A;
  --accent-blue: #0058A3;
  --accent-primary: var(--accent-yellow);
}

[data-theme="light"] {
  color-scheme: light;
  --accent-primary: var(--accent-blue);
  --bg: #FAFAFA;
  --surface: #F0F0EE;
  --surface-elevated: #E4E4E0;
  --header-bg: rgba(250, 250, 250, 0.92);
  --ink: #020202;
  --ink-muted: #555555;
  --ink-dim: #888888;
  --border: #D6D6D3;
  --border-strong: #A3A3A0;
  --accent: #020202;
  --accent-ink: #FAFAFA;
  --ticket-bg: #020202;
  --ticket-bg-hover: #FAFAFA;
  --ticket-ink: #FAFAFA;
  --hatch-line: rgba(2, 2, 2, 0.14);
  --lines-on-dark: rgba(0, 0, 0, 0.14);
  --lines-on-light: rgba(255, 255, 255, 0.18);
  --spiral-bg: #F2F2EF;
  --spiral-fg: #0A0A0A;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 52px;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: clip;
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.edoardo-dither-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

main {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-yellow);
  color: #020202;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.border-bottom {
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   EDOARDO LUNARDI TOP BAR (44PX, 12-COL, SHORTCUTS, PING, CLOCK)
   ========================================================= */
.edoardo-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  height: 44px;
  padding-inline: 16px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 13px;
}

.topbar-left {
  grid-column: span 2;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.topbar-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
}

.topbar-right-wrap {
  grid-column: 3 / span 10;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.topbar-nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.16s ease;
}

.topbar-nav a:hover,
.topbar-nav a.is-active {
  color: var(--ink);
}

.topbar-telemetry {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.tele-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding-inline: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.tele-btn:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-strong);
}

.tele-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tele-btn kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 2px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1.5px 0 var(--border-strong);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.tele-btn:hover kbd {
  transform: translateY(1px);
  box-shadow: 0 0.5px 0 var(--border-strong);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.tele-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.tele-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-inline: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ping-wrap {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.ping-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.65;
  animation: edoardoPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-core {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
}

@keyframes edoardoPing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.tele-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.tele-loc {
  color: var(--ink-muted);
}

.topbar-mobile-toggle {
  display: none;
  grid-column: span 8;
  justify-self: end;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* =========================================================
   PER-CHARACTER ODOMETER SLOT ROLL (CONTENT ARCHITECTURE)
   ========================================================= */
.odo-wrap {
  display: inline-flex;
  align-items: center;
}

.odo-col {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15em;
  vertical-align: baseline;
}

.odo-ghost {
  visibility: hidden;
}

.odo-track {
  position: absolute;
  inset-inline: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--odo, 0) * -1.15em));
  transition: transform 340ms cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: calc(var(--char-idx, 0) * 18ms);
}

.odo-track span {
  display: block;
  height: 1.15em;
  line-height: 1.15em;
}

*:hover > .odo-wrap,
.ca-ticket-btn:hover,
.ca-ghost-btn:hover,
.topbar-nav a:hover,
.ws-btn-primary:hover,
.ws-btn-secondary:hover {
  --odo: 1;
}

/* =========================================================
   HERO SPLIT STAGE + TAKEOVER (CONTENT ARCHITECTURE INSPIRED)
   ========================================================= */
.hero-takeover-wrapper {
  position: relative;
  min-height: calc(100vh - 44px);
  border-bottom: 1px solid var(--border);
}

.hero-sticky-stage {
  position: relative;
  height: calc(100vh - 44px);
  min-height: 580px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  overflow: hidden;
}

.hero-copy-col {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px clamp(24px, 4vw, 64px);
  position: relative;
  z-index: 2;
  border-radius: 2px;
  background: rgba(2, 2, 2, 0.92);
}

[data-theme="light"] .hero-copy-col {
  background: rgba(250, 250, 250, 0.94);
}

.hero-kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.hero-headline {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: break-word;
  min-width: 0;
  perspective: 1200px;
}

.word-3d {
  display: inline-block;
  transform-origin: bottom center;
  opacity: 0;
  transform: translateY(40%) rotateX(-38deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

.word-3d.is-revealed {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.hero-subcopy {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 50ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

/* Factory.ai Industrial Monospace Action Buttons (2px radius + invert + 45deg scanlines) */
@keyframes slidePattern {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 28.28px -28.28px;
  }
}

.ca-ticket-btn,
.ca-ghost-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.ca-ticket-btn {
  background: var(--ticket-bg);
  color: var(--ticket-ink);
  border: 1px solid var(--ticket-bg);
}

.ca-ghost-btn {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.ca-ticket-btn::before,
.ca-ghost-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-size: 28.28px 28.28px;
  transition: opacity 0.16s ease;
}

.ca-ticket-btn::before {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    var(--lines-on-dark) 3px,
    var(--lines-on-dark) 4px
  );
}

.ca-ghost-btn::before {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    var(--lines-on-light) 3px,
    var(--lines-on-light) 4px
  );
}

.btn-label {
  position: relative;
  z-index: 1;
}

.factory-arrow {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ca-ticket-btn:hover {
  background: var(--ticket-bg-hover);
  color: var(--ticket-bg);
  border-color: var(--ink);
}

.ca-ghost-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.ca-ticket-btn:hover::before,
.ca-ghost-btn:hover::before {
  opacity: 1;
  animation: slidePattern 1.8s linear infinite;
}

.ca-ticket-btn:hover .factory-arrow,
.ca-ghost-btn:hover .factory-arrow {
  transform: translateX(2.5px);
}

.ca-ghost-btn[href="#dossier"]:hover .factory-arrow {
  transform: translateY(2px);
}



.hero-scroll-cue {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.scroll-ring-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--ink-muted);
  position: relative;
}

.scroll-ring-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
}

/* RIGHT SPIRAL STAGE */
.hero-spiral-col {
  grid-column: 6 / span 7;
  margin: 0;
  position: relative;
  background: var(--spiral-bg);
  border-left: 1px solid var(--border);
  overflow: hidden;
  z-index: 3;
}

.spiral-stage-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--spiral-bg);
}

#spiral-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.spiral-hud-tl {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
}

.spiral-hold-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 31px;
  padding: 0 8px 0 11px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #0A0A0A;
  color: #FAFAFA;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.spiral-hold-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.14) 3px,
    rgba(0, 0, 0, 0.14) 4px
  );
  background-size: 28.28px 28.28px;
  transition: opacity 0.16s ease;
}

.hold-pill-led {
  position: relative;
  z-index: 1;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
}

.hold-pill-text {
  position: relative;
  z-index: 1;
}

.hold-pill-tag {
  position: relative;
  z-index: 1;
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 9px;
  opacity: 0.8;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.spiral-hold-pill:hover,
.spiral-hold-pill.is-holding {
  background: #FAFAFA;
  color: #020202;
  border-color: #FAFAFA;
}

.spiral-hold-pill:hover::before,
.spiral-hold-pill.is-holding::before {
  opacity: 1;
  animation: slidePattern 1.8s linear infinite;
}

.spiral-hold-pill.is-holding .hold-pill-tag {
  background: #020202;
  color: #FAFAFA;
  border-color: #020202;
  opacity: 1;
}

.spiral-specimen-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.94);
  color: #FAFAFA;
}

.specimen-photo {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 35%;
  background: var(--surface-elevated);
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.3s ease;
}

.spiral-specimen-card:hover .specimen-photo {
  filter: grayscale(20%) contrast(1.04);
}

[data-theme="light"] .spiral-hold-pill {
  border-color: rgba(0, 0, 0, 0.24);
  background: rgba(250, 250, 250, 0.94);
  color: #0A0A0A;
}

[data-theme="light"] .spiral-hold-pill::before {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.18) 3px,
    rgba(255, 255, 255, 0.18) 4px
  );
}

[data-theme="light"] .spiral-hold-pill:hover,
[data-theme="light"] .spiral-hold-pill.is-holding {
  background: #0A0A0A;
  color: #FAFAFA;
  border-color: #0A0A0A;
}

[data-theme="light"] .spiral-hold-pill.is-holding .hold-pill-tag {
  background: #FAFAFA;
  color: #0A0A0A;
  border-color: #FAFAFA;
}

[data-theme="light"] .spiral-specimen-card {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(250, 250, 250, 0.94);
  color: #0A0A0A;
}

[data-theme="light"] .specimen-meta {
  color: #555555;
}

[data-theme="light"] .specimen-meta strong {
  color: #020202;
}

.sound-icon-off {
  display: none;
}

[data-sound-off] .sound-icon-on {
  display: none;
}

[data-sound-off] .sound-icon-off {
  display: block;
}

.specimen-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #A0A0A0;
}

.specimen-meta strong {
  color: #FAFAFA;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* =========================================================
   ASCII GLYPH SEAM DIVIDERS (CANVAS DITHER) & SCROLL REVEALS
   ========================================================= */
.ascii-seam {
  position: relative;
  height: 70px;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: transparent;
  user-select: none;
  cursor: crosshair;
}

.glyph-seam-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ascii-seam-tag {
  display: none;
}

[data-theme="light"] .ascii-seam-tag {
  background: rgba(250, 250, 250, 0.9);
  color: #020202;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(10px);
  transition: transform 0.56s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   COMMON SECTION TYPOGRAPHY & REVEALS
   ========================================================= */
.section-shell {
  padding-block: clamp(68px, 8vw, 112px);
}

.section-header {
  max-width: 680px;
  margin-bottom: 40px;
  padding: 18px 22px;
  border-radius: 2px;
  background: rgba(2, 2, 2, 0.92);
}

[data-theme="light"] .section-header {
  background: rgba(250, 250, 250, 0.94);
}

.mono-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.display-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.04;
}

.section-lead {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* =========================================================
   01 // XAI BOT EXPANDING PILL SWITCHER + WORKSPACE + REPOS
   ========================================================= */
.xai-pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.xai-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  height: 31px;
  padding-inline: 14px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.xai-pill:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.xai-pill.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.pill-indicator {
  display: inline-grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 0.28s cubic-bezier(0.23, 1, 0.32, 1), margin-right 0.28s ease;
}

.xai-pill.is-active .pill-indicator {
  grid-template-columns: 1fr;
  margin-right: 8px;
}

.pill-dot {
  overflow: hidden;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
  transform: scale(0);
  transition: transform 0.28s ease;
}

.xai-pill.is-active .pill-dot {
  transform: scale(1);
  background: var(--accent-yellow);
}

.workspace-frame {
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 1;
  overflow: hidden;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elevated);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ws-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.ws-path {
  color: var(--ink-muted);
}

.workspace-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.workspace-log-pane {
  padding: 20px;
  border-right: 1px solid var(--border);
  background: #070707;
  color: #EAEAEA;
}

.ws-pane-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #777777;
  margin-bottom: 12px;
}

.ws-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-x: auto;
}

@keyframes wsTraceLineIn {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ws-trace-line {
  display: block;
  animation: wsTraceLineIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--line-idx, 0) * 18ms);
}

.ws-trace-line.is-diagram {
  color: #FAFAFA;
}

.ws-trace-line.is-cmd {
  color: #B4B4B4;
  margin-top: 6px;
}

.workspace-detail-pane {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.ws-status-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.ws-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.ws-desc {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.ws-points {
  margin: 16px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink);
}

.ws-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ws-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-tags span {
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.ws-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ws-btn-primary,
.ws-btn-secondary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.ws-btn-primary[hidden],
.ws-btn-secondary[hidden] {
  display: none;
}

.ws-btn-primary::before,
.ws-btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-size: 28.28px 28.28px;
  transition: opacity 0.16s ease;
}

.ws-btn-primary::before {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    var(--lines-on-dark) 3px,
    var(--lines-on-dark) 4px
  );
}

.ws-btn-secondary::before {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    var(--lines-on-light) 3px,
    var(--lines-on-light) 4px
  );
}

.ws-btn-label {
  position: relative;
  z-index: 1;
}

.ws-btn-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ws-btn-primary {
  background: var(--ticket-bg);
  color: var(--ticket-ink);
  border: 1px solid var(--ticket-bg);
}

.ws-btn-primary:hover {
  background: var(--ticket-bg-hover);
  color: var(--ticket-bg);
  border-color: var(--ink);
}

.ws-btn-secondary {
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--ink);
}

.ws-btn-secondary:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.ws-btn-primary:hover::before,
.ws-btn-secondary:hover::before {
  opacity: 1;
  animation: slidePattern 1.8s linear infinite;
}

.ws-btn-primary:hover .ws-btn-icon,
.ws-btn-secondary:hover .ws-btn-icon {
  transform: translate(2px, -2px);
}

/* REPO INDEX */
.repo-index-block {
  margin-top: 44px;
}

.repo-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.repo-filters {
  display: flex;
  gap: 8px;
}

.mono-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 31px;
  padding-inline: 12px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.mono-filter::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.45;
}

.mono-filter:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.mono-filter.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.mono-filter.is-active::before {
  opacity: 1;
}

.repo-search {
  position: relative;
  width: min(280px, 100%);
}

.repo-search input {
  width: 100%;
  height: 34px;
  padding: 0 34px 0 12px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
}

.repo-search kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}

.repo-count-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.mono-repo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.mono-repo-grid:not(:has(.mono-repo-card:not([hidden]))) {
  border: 0;
}

.mono-repo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px;
  border-radius: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  opacity: 1;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.mono-repo-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mono-repo-card:hover {
  background: var(--surface-elevated);
}

.mono-repo-card:hover::after {
  transform: scaleX(1);
}

.mono-repo-card[hidden] {
  display: none;
}

.repo-card-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.repo-card-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.repo-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.repo-lang-badge > span {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mono-repo-card:hover .repo-lang-badge {
  color: var(--ink);
  border-color: var(--border-strong);
}

.mono-repo-card:hover .repo-lang-badge > span {
  transform: translate(2px, -2px);
}

.mono-repo-card p {
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.repo-card-topics {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.repo-card-topics span {
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}

.repo-empty {
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* =========================================================
   01.B // GITHUB CONTRIBUTION MATRIX (53 WEEKS · ASCII & BLOCKS)
   ========================================================= */
.gh-contrib-block {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  opacity: 1;
  overflow: hidden;
}

.gh-contrib-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-elevated);
}

.gh-contrib-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.gh-contrib-kicker {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.gh-contrib-total {
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-size: 10.5px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.gh-contrib-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gh-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.gh-profile-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.gh-contrib-scroll {
  padding: 18px 18px 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gh-contrib-inner {
  min-width: 780px;
}

.gh-contrib-months {
  display: grid;
  grid-template-columns: repeat(53, minmax(0, 1fr));
  gap: 3px;
  padding-left: 34px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  text-transform: uppercase;
}

.gh-contrib-months span {
  white-space: nowrap;
  overflow: visible;
}

.gh-contrib-matrix-wrap {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
}

.gh-contrib-days {
  display: grid;
  grid-template-rows: repeat(7, 15px);
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 15px;
  color: var(--ink-dim);
  text-align: right;
}

.gh-contrib-grid {
  display: grid;
  grid-template-rows: repeat(7, 15px);
  grid-auto-flow: column;
  grid-auto-columns: minmax(11px, 1fr);
  gap: 3px;
}

.gh-contrib-cell {
  display: block;
  width: 100%;
  height: 15px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0;
  color: transparent;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

[data-theme="light"] .gh-contrib-cell {
  border-color: rgba(0, 0, 0, 0.08);
}

.gh-contrib-cell:hover,
.gh-contrib-cell:focus-visible {
  transform: scale(1.24);
  z-index: 2;
  border-color: var(--ink);
  outline: none;
}

/* Dark theme block density levels */
.gh-contrib-cell[data-level="0"],
.gh-legend-cell[data-level="0"] {
  background: rgba(255, 255, 255, 0.035);
}
.gh-contrib-cell[data-level="1"],
.gh-legend-cell[data-level="1"] {
  background: rgba(255, 255, 255, 0.22);
}
.gh-contrib-cell[data-level="2"],
.gh-legend-cell[data-level="2"] {
  background: rgba(255, 255, 255, 0.46);
}
.gh-contrib-cell[data-level="3"],
.gh-legend-cell[data-level="3"] {
  background: rgba(255, 255, 255, 0.72);
}
.gh-contrib-cell[data-level="4"],
.gh-legend-cell[data-level="4"] {
  background: #FFFFFF;
}

/* Light theme block density levels */
[data-theme="light"] .gh-contrib-cell[data-level="0"],
[data-theme="light"] .gh-legend-cell[data-level="0"] {
  background: rgba(0, 0, 0, 0.045);
}
[data-theme="light"] .gh-contrib-cell[data-level="1"],
[data-theme="light"] .gh-legend-cell[data-level="1"] {
  background: rgba(0, 0, 0, 0.22);
}
[data-theme="light"] .gh-contrib-cell[data-level="2"],
[data-theme="light"] .gh-legend-cell[data-level="2"] {
  background: rgba(0, 0, 0, 0.48);
}
[data-theme="light"] .gh-contrib-cell[data-level="3"],
[data-theme="light"] .gh-legend-cell[data-level="3"] {
  background: rgba(0, 0, 0, 0.74);
}
[data-theme="light"] .gh-contrib-cell[data-level="4"],
[data-theme="light"] .gh-legend-cell[data-level="4"] {
  background: #020202;
}

.gh-contrib-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-elevated);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.gh-contrib-foot-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.gh-contrib-readout {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.gh-contrib-stats {
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.gh-contrib-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}

.gh-legend-cell {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* =========================================================
   02 // ASYMMETRIC ARCHITECTURE SPINE + TERMINAL + SPEC
   ========================================================= */
.arch-asymmetric-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}

.ca-cascade-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.ca-cascade-item {
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(2, 2, 2, 0.92);
}

[data-theme="light"] .ca-cascade-item {
  background: rgba(250, 250, 250, 0.94);
}

.ca-cascade-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ca-cascade-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.ca-tools-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TECH STACK & TOOLS */
.ascii-ledger {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  background: var(--surface);
  padding: 18px;
  border-radius: 2px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-strong);
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}

.ledger-head-loc {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 11px;
}

.ascii-block {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-strong);
}

.ascii-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ascii-cell.subhead {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

.ascii-cell.item {
  font-size: 12px;
  color: var(--ink-muted);
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tool-chip:hover {
  border-color: var(--ink);
  background: var(--surface-elevated);
}

.tool-logo {
  width: 14px;
  height: 14px;
  flex: none;
}

/* INTERACTIVE TERMINAL */
.ca-terminal {
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: #070707;
  color: #FAFAFA;
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 340px;
  overflow: hidden;
}

.ca-terminal-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #222222;
  color: #777777;
  font-size: 10.5px;
}

.ca-terminal-log {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  white-space: pre-wrap;
}

.ca-terminal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #222222;
}

.ca-term-prompt {
  color: #888888;
  flex-shrink: 0;
}

.ca-terminal-input-row input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #FAFAFA;
  outline: none;
}

.ca-terminal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid #222222;
  background: #0D0D0D;
}

.ca-terminal-chips button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding-inline: 10px;
  border-radius: 2px;
  border: 1px solid #2E2E2E;
  background: #141414;
  color: #D4D4D4;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ca-terminal-chips button::before {
  content: "$";
  color: #6E6E6E;
  transition: color 0.15s ease;
}

.ca-terminal-chips button:hover {
  background: #FAFAFA;
  color: #0A0A0A;
  border-color: #FAFAFA;
}

.ca-terminal-chips button:hover::before {
  color: #0A0A0A;
}

/* =========================================================
   04 // CV DOSSIER
   ========================================================= */
.dossier-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.dossier-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dossier-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--surface);
}

.dossier-pane {
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  opacity: 1;
}

.pane-idx {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.cv-item + .cv-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.cv-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.cv-item h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.cv-item p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.cv-strengths {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cv-strengths li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cv-strengths strong {
  font-size: 15px;
}

.cv-strengths span {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.cv-lang-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lang-top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 5px;
}

.lang-track {
  height: 4px;
  background: var(--surface-elevated);
  overflow: hidden;
}

.lang-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
}

.cv-identity-box {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.cv-identity-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cv-identity-box span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* =========================================================
   05 // STICKY FAQ
   ========================================================= */
.faq-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.faq-sticky-left,
.faq-sticky-col {
  position: sticky;
  top: 76px;
  padding: 20px 22px;
  border-radius: 2px;
  background: rgba(2, 2, 2, 0.92);
}

[data-theme="light"] .faq-sticky-left,
[data-theme="light"] .faq-sticky-col {
  background: rgba(250, 250, 250, 0.94);
}

.faq-list {
  display: flex;
  flex-direction: column;
  padding: 4px 18px;
  border-top: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(2, 2, 2, 0.92);
}

[data-theme="light"] .faq-list {
  background: rgba(250, 250, 250, 0.94);
}

.faq-item {
  position: relative;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.22s ease;
}

.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover::before,
.faq-item.is-open::before {
  transform: scaleY(1);
}

.faq-item.is-open {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .faq-item.is-open {
  background: rgba(0, 0, 0, 0.025);
}

.faq-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-q-idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.faq-q-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.4;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-trigger:hover .faq-q-text {
  transform: translateX(4px);
}

.faq-trigger:hover .faq-q-idx,
.faq-item.is-open .faq-q-idx {
  color: var(--ink);
}

.faq-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--ink-muted);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
}

.faq-item.is-open .faq-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-body-inner p {
  margin: 0 14px 20px;
  padding-left: 68px;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.65;
  transform: translateY(-6px);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-body-inner p {
  transform: translateY(0);
}

/* =========================================================
   06 // CONTACT & FOOTER
   ========================================================= */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.contact-channels-card,
.contact-form-wrap {
  padding: 28px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: var(--surface);
  opacity: 1;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.contact-row span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}

.contact-row a,
.contact-row strong {
  font-size: 14.5px;
  font-weight: 500;
}

.copy-mini-btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 11px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.copy-mini-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    var(--lines-on-light) 3px,
    var(--lines-on-light) 4px
  );
  background-size: 28.28px 28.28px;
  transition: opacity 0.16s ease;
}

.copy-mini-btn::after {
  content: "⎘";
  font-size: 11px;
  opacity: 0.7;
}

.copy-mini-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.copy-mini-btn:hover::before {
  opacity: 1;
  animation: slidePattern 1.8s linear infinite;
}

.contact-note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.form-feedback {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--ink);
  font-size: 13.5px;
}

.form-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mono-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
}

.mono-field input,
.mono-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}

.char-count {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.mono-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 26px 0;
  border-radius: 2px;
  background: rgba(2, 2, 2, 0.92);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

[data-theme="light"] .mono-footer {
  background: rgba(250, 250, 250, 0.94);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--ink);
}

/* =========================================================
   COMMAND PALETTE & TOAST
   ========================================================= */
.cmd-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding-top: min(14vh, 110px);
  padding-inline: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.cmd-overlay[hidden] {
  display: none;
}

.cmd-box {
  width: min(560px, 100%);
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  overflow: hidden;
}

.cmd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.cmd-head input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 14.5px;
}

.cmd-esc {
  padding: 3px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  background: var(--surface-elevated);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}

.cmd-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.cmd-option {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 13.5px;
}

.cmd-option.is-selected,
.cmd-option:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.toast-pill {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 150;
  padding: 9px 16px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-pill.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1080px) {
  .tele-label,
  .tele-clock {
    display: none;
  }

  .hero-takeover-wrapper {
    min-height: auto;
  }

  .hero-sticky-stage {
    position: static;
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy-col {
    grid-column: span 1;
    transform: none;
    opacity: 1;
  }

  .hero-spiral-col {
    grid-column: span 1;
    min-height: 460px;
    border-left: 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
    clip-path: none;
  }

  .spiral-stage-inner {
    width: 100%;
  }

  .workspace-split,
  .arch-asymmetric-grid,
  .faq-split-grid,
  .contact-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-log-pane {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .faq-sticky-left {
    position: static;
  }
}

@media (max-width: 820px) {
  .topbar-right-wrap {
    display: none;
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    height: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 49;
  }

  .topbar-right-wrap.is-open {
    display: flex;
  }

  .topbar-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar-telemetry {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    justify-content: flex-start;
  }

  .topbar-mobile-toggle {
    display: inline-block;
  }

  .mono-repo-grid,
  .dossier-bento-grid,
  .form-2col {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-body-inner p {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ping-ring,
  .odo-track,
  .ws-trace-line,
  .telemetry-status-dot,
  .telemetry-bars i,
  .ascii-line::after,
  .ledger-row-dot,
  .ledger-seg,
  .pipe-node,
  .pipe-arrow,
  .ca-ticket-btn:hover::before,
  .ca-ghost-btn:hover::before,
  .spiral-hold-pill:hover::before,
  .spiral-hold-pill.is-holding::before,
  .ws-btn-primary:hover::before,
  .ws-btn-secondary:hover::before,
  .copy-mini-btn:hover::before {
    animation: none;
    transition: none;
  }

  .ledger-seg.is-on {
    transform: none;
    opacity: 1;
  }

  [data-reveal],
  .faq-body,
  .faq-body-inner p,
  .faq-icon,
  .faq-q-text {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .word-3d {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   NEXT LEVEL: ACCENTS, PROJECT SHOTS, MOTION
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 200;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.shot-frame {
  position: relative;
  display: block;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
}

.shot-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  background: var(--surface);
}

.shot-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

.shot-chrome i:first-child {
  background: var(--accent-yellow);
}

.shot-chrome span {
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

a.shot-frame:hover img {
  transform: scale(1.03);
}

.featured-build {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-bottom: 40px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-blue);
  border-radius: 2px;
  background: var(--surface);
}

.featured-build .shot-frame {
  margin: 0;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.featured-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.featured-kicker::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
}

.featured-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.featured-copy h3,
.featured-copy p {
  margin: 0;
}

.featured-copy p {
  color: var(--ink-muted);
  max-width: 46ch;
}

.ws-shot {
  margin-bottom: 18px;
}

@media (max-width: 860px) {
  .featured-build {
    grid-template-columns: 1fr;
  }
}

/* One calm load-in sequence (hero copy only) */
@keyframes loadRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loadDrop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.edoardo-topbar {
  animation: loadDrop 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-subcopy {
  animation: loadRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-cta-group {
  animation: loadRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-scroll-cue {
  animation: loadRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.tool-chip:hover {
  border-color: var(--accent-blue);
}

@media (prefers-reduced-motion: reduce) {
  .edoardo-topbar,
  .hero-subcopy,
  .hero-cta-group,
  .hero-scroll-cue {
    animation: none;
  }

  .shot-frame img,
  a.shot-frame:hover img {
    transition: none;
    transform: none;
  }
}

@media print {
  .edoardo-dither-bg,
  .edoardo-topbar,
  .hero-spiral-col,
  .hero-cta-group,
  .hero-scroll-cue,
  .ca-tools-stack,
  .dossier-btn-row,
  .contact-form-wrap,
  .mono-footer,
  .cmd-overlay,
  .toast-pill {
    display: none !important;
  }

  body,
  .dossier-pane,
  .contact-channels-card {
    background: #FFFFFF;
    color: #000000;
  }
}
