/* ==========================================================================
   JACOB DAVIS — PORTFOLIO DESIGN SYSTEM (css/styles.css)
   "Storefront-inspired" Obsidian & Emerald
   Layout rhythm borrowed from white-label restaurant storefronts:
   announcement bar → sticky header + CTA → editorial hero → marquee →
   story → "house favorites" menu grid → reviews → FAQ → footer.
   NOTE: The site CSP blocks inline style attributes — keep all styling here.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Obsidian surfaces */
  --bg: #060a08;
  --bg-2: #09100d;
  --surface: #0d1512;
  --surface-2: #121c18;
  --surface-3: #18241f;
  --glass: rgba(8, 13, 11, 0.72);

  /* Text */
  --text: #ecf4ef;
  --text-2: #a8bbb1;
  --text-3: #71857b;

  /* Emerald */
  --em: #34d399;
  --em-strong: #10b981;
  --em-deep: #065f46;
  --em-ink: #022c22;
  --em-soft: rgba(52, 211, 153, 0.1);
  --em-soft-2: rgba(52, 211, 153, 0.18);
  --em-glow: rgba(16, 185, 129, 0.35);

  /* Warm editorial accent (storefront "cream") */
  --cream: #efe6d2;
  --gold: #f5c56b;

  /* Lines */
  --line: rgba(214, 255, 233, 0.08);
  --line-2: rgba(214, 255, 233, 0.14);
  --line-em: rgba(52, 211, 153, 0.32);

  /* Type */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 68px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms var(--ease);
  --smooth: 320ms var(--ease);

  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --shadow-em: 0 18px 50px -18px var(--em-glow);
}

/* -------------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient aurora + grain (pure CSS, no images) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(16, 185, 129, 0.14), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(6, 95, 70, 0.22), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(16, 185, 129, 0.08), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: repeating-radial-gradient(circle at 0 0, #fff 0, #fff 1px, transparent 1px, transparent 3px);
  background-size: 3px 3px;
}

main {
  flex: 1;
}

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

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--em-soft);
  color: var(--em);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

::selection {
  background: var(--em-strong);
  color: var(--em-ink);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--em);
  color: var(--em-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY HELPERS
   ------------------------------------------------------------------------- */
.script-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--cream);
  letter-spacing: 0.01em;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.script-eyebrow::before,
.script-eyebrow::after {
  content: "~";
  color: var(--em);
  margin: 0 0.45em;
}

.mono-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--em);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.display em,
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--em);
  letter-spacing: -0.01em;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.9rem;
}

.section-sub {
  color: var(--text-2);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  max-width: 62ch;
}

.section-head.center .section-sub {
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
   4. BUTTONS, PILLS & TAGS
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform var(--fast), background var(--fast), border-color var(--fast), box-shadow var(--fast), color var(--fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--em);
  color: var(--em-ink);
  box-shadow: var(--shadow-em);
}

.btn-primary:hover {
  background: #4ee3ab;
  box-shadow: 0 22px 56px -16px var(--em-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--line-em);
  background: var(--em-soft);
}

.btn-ghost {
  color: var(--text-2);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.btn-ghost:hover {
  color: var(--em);
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 1.7rem;
  font-size: 1rem;
}

.btn .arrow {
  transition: transform var(--fast);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.32rem 0.65rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
}

a.tech-tag:hover {
  border-color: var(--line-em);
  color: var(--em);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--em-soft);
  border: 1px solid var(--line-em);
  color: var(--em);
}

.status-pill.warn {
  background: rgba(245, 197, 107, 0.1);
  border-color: rgba(245, 197, 107, 0.35);
  color: var(--gold);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--em);
  box-shadow: 0 0 0 0 var(--em-glow);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* -------------------------------------------------------------------------
   5. ANNOUNCEMENT BAR + HEADER
   ------------------------------------------------------------------------- */
.announce-bar {
  background: linear-gradient(90deg, var(--em-deep), #0b4d3a 50%, var(--em-deep));
  color: #d7fbe9;
  font-size: 0.82rem;
  text-align: center;
  padding: 0.5rem var(--gutter);
  position: relative;
  z-index: 60;
}

.announce-bar a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0.65rem;
  z-index: 50;
  padding: 0.35rem 0;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.4rem 0.55rem 0.4rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(9, 16, 13, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.68);
  transition: border-color var(--smooth), background var(--smooth), box-shadow var(--smooth);
}

.site-header.is-scrolled .nav-inner,
.site-header.is-solid .nav-inner {
  background: rgba(8, 13, 11, 0.92);
  border-color: var(--line-em);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(52, 211, 153, 0.08);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--em), var(--em-deep));
  color: var(--em-ink);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--shadow-em);
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1.5px solid var(--line-em);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.14);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  position: relative;
  padding: 0.48rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--fast), background var(--fast);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--em);
  background: var(--em-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4.5px;
  transition: border-color var(--fast), background var(--fast);
}

.menu-toggle:hover {
  border-color: var(--line-em);
  background: var(--em-soft);
}

.menu-toggle span {
  width: 17px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--fast), opacity var(--fast);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background:
    radial-gradient(600px 400px at 80% 10%, rgba(16, 185, 129, 0.14), transparent 65%),
    rgba(6, 10, 8, 0.96);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  padding: 5.75rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 0.75rem;
  overflow-y: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}

.mobile-nav a:hover {
  border-color: var(--line-em);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.mobile-nav a::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--em);
}

.mobile-nav .btn {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.95rem 1.2rem;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  border: none;
  background: var(--em);
  color: var(--em-ink);
}

.mobile-nav .btn::after {
  display: none;
}

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero {
  padding: clamp(2rem, 4.5vw, 3.5rem) 0 clamp(2.25rem, 4.5vw, 3.75rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.75rem, 4.2vw, 3.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.03rem, 1.6vw, 1.16rem);
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 1.65rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.65rem;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem 0.55rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  font-size: 0.86rem;
  color: var(--text-2);
  transition: border-color var(--fast), transform var(--fast), background var(--fast);
}

.proof-pill:hover {
  border-color: var(--line-em);
  background: var(--em-soft);
  transform: translateY(-2px);
}

.proof-pill strong {
  color: var(--text);
  font-weight: 700;
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--em-soft-2);
  color: var(--em);
  font-size: 0.8rem;
}

.proof-pill.star .proof-icon {
  background: rgba(245, 197, 107, 0.16);
  color: var(--gold);
}

/* Hero visual: interactive obsidian diagnostic terminal */
.hero-visual {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
}

.hero-terminal {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(13, 21, 18, 0.96), rgba(6, 10, 8, 0.98));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(52, 211, 153, 0.08);
  overflow: hidden;
  transition: border-color var(--smooth), box-shadow var(--smooth);
}

.hero-terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--em), transparent);
  animation: termBeam 6s ease-in-out infinite;
  pointer-events: none;
}

.hero-terminal:hover,
.hero-terminal:focus-within {
  border-color: var(--line-em);
  box-shadow: var(--shadow-lg), 0 0 36px -12px rgba(16, 185, 129, 0.28);
}

@keyframes termBeam {
  0%, 100% { transform: translateX(0); opacity: 0.35; }
  50% { transform: translateX(180%); opacity: 0.95; }
}

.term-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}

.term-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dot--r { background: #ef4444; opacity: 0.8; }
.term-dot--y { background: #f59e0b; opacity: 0.8; }
.term-dot--g { background: #10b981; opacity: 0.85; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
}

.term-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--em);
  letter-spacing: 0.08em;
}

.term-output {
  padding: 0.95rem 1.1rem;
  min-height: 220px;
  max-height: 265px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line--enter {
  animation: termLineIn 220ms var(--ease) both;
}

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

.term-cmd {
  color: var(--cream);
  font-weight: 600;
  margin-top: 0.25rem;
}

.term-out {
  color: var(--text-2);
}

.term-ok {
  color: var(--em);
}

.term-warn {
  color: var(--gold);
}

.term-gold {
  color: var(--gold);
  line-height: 1.3;
}

.term-muted {
  color: var(--text-3);
}

.term-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.term-chip {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  padding: 0.34rem 0.65rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  transition: border-color var(--fast), color var(--fast), background var(--fast), transform var(--fast);
}

.term-chip:hover {
  border-color: var(--line-em);
  color: var(--em);
  background: var(--em-soft);
  transform: translateY(-1px);
}

.term-chip.is-active {
  transform: scale(0.95);
  border-color: var(--em);
  background: var(--em-soft-2);
  color: var(--em);
}

.term-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.term-prompt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--em);
  white-space: nowrap;
}

.term-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}

.term-input::placeholder {
  color: var(--text-3);
}

.hero-float-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.float-card {
  position: static;
  background: linear-gradient(160deg, rgba(18, 28, 24, 0.92), rgba(13, 21, 18, 0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 0.8rem 0.95rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  transition: border-color var(--smooth), transform var(--smooth);
}

.float-card:hover {
  border-color: var(--line-em);
  transform: translateY(-2px);
}

.float-card .fc-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.float-card .fc-value {
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.float-card .fc-sub {
  color: var(--text-2);
  font-size: 0.74rem;
}

.fc-role {
  max-width: none;
}

.fc-mentor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.fc-mentor .fc-big {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--em);
  line-height: 1.1;
}

/* -------------------------------------------------------------------------
   7. MARQUEE TICKER
   ------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.06), rgba(16, 185, 129, 0.02), rgba(16, 185, 129, 0.06));
  padding: 1.1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
  white-space: nowrap;
  padding: 0 1.4rem;
}

.marquee-item::after {
  content: "✦";
  color: var(--em);
  font-size: 0.75em;
  margin-left: 2.8rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------
   8. STORY + STATS + PILLARS
   ------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.story-copy p {
  color: var(--text-2);
  font-size: 1.04rem;
  margin-bottom: 1.1rem;
}

.story-copy p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.6em;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.12em 0 0;
  color: var(--em);
}

.story-aside {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.stat-tile {
  padding: 1.4rem 1.25rem;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: border-color var(--smooth), transform var(--smooth), box-shadow var(--smooth);
}

.stat-tile:hover {
  border-color: var(--line-em);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.story-callout {
  padding: 1.25rem 1.35rem;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(52, 211, 153, 0.12), transparent 65%),
    var(--surface);
  border: 1px solid var(--line-em);
}

.story-callout h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0.45rem;
  color: var(--text);
}

.story-callout p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--em);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.stat-detail {
  font-size: 0.8rem;
  color: var(--text-3);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(2rem, 3.8vw, 2.75rem);
}

.pillar-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color var(--smooth), background var(--smooth), transform var(--smooth), box-shadow var(--smooth);
}

.pillar-card:hover {
  border-color: var(--line-em);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--em);
  letter-spacing: 0.1em;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-2);
}

.pillar-card .tag-row {
  margin-top: auto;
}

/* -------------------------------------------------------------------------
   9. "HOUSE FAVORITES" — SIGNATURE WORK MENU GRID
   ------------------------------------------------------------------------- */
.menu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

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

.menu-filters {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  gap: 0.2rem;
}

.menu-filters[hidden] {
  display: none;
}

.filter-chip {
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background var(--fast), color var(--fast);
}

.filter-chip:hover {
  color: var(--text);
}

.filter-chip[aria-pressed="true"] {
  background: var(--em);
  color: var(--em-ink);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--smooth), border-color var(--smooth), box-shadow var(--smooth);
  width: 100%;
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-em);
  box-shadow: var(--shadow-lg), var(--shadow-em);
}

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

.menu-art {
  position: relative;
  height: 150px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(52, 211, 153, 0.28), transparent 60%),
    linear-gradient(160deg, var(--surface-3), var(--surface-2));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.2rem;
}

.menu-card.kind-project .menu-art {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(245, 197, 107, 0.16), transparent 60%),
    linear-gradient(160deg, var(--surface-3), var(--surface-2));
}

.menu-art-code {
  position: absolute;
  inset: 0.9rem 1.1rem auto auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: rgba(214, 255, 233, 0.32);
  text-align: right;
  white-space: pre;
  transition: color var(--smooth), transform var(--smooth);
}

.menu-card:hover .menu-art-code {
  color: rgba(214, 255, 233, 0.62);
  transform: translateY(-2px);
}

.menu-art-glyph {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(236, 244, 239, 0.92);
  transition: transform var(--smooth);
  transform-origin: left bottom;
}

.menu-card:hover .menu-art-glyph {
  transform: scale(1.04) translateX(2px);
}

.menu-art-glyph span {
  color: var(--em);
}

.menu-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: var(--r-pill);
  background: var(--em);
  color: var(--em-ink);
}

.menu-card.kind-project .menu-badge {
  background: var(--cream);
  color: #1d1a12;
}

.menu-body {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.menu-org {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.menu-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.menu-link {
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.menu-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.menu-desc {
  font-size: 0.9rem;
  color: var(--text-2);
}

.menu-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px dashed var(--line-2);
}

.menu-impact {
  font-size: 0.78rem;
  color: var(--em);
  font-weight: 600;
  line-height: 1.35;
}

.menu-cta {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--fast);
}

.menu-cta .arrow {
  transition: transform var(--fast);
}

.menu-card:hover .menu-cta {
  color: var(--em);
}

.menu-card:hover .menu-cta .arrow {
  transform: translateX(3px);
}

.menu-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Case study dialog */
.case-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  padding: 0;
  overflow: auto;
}

.case-dialog::backdrop {
  background: rgba(2, 6, 4, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-dialog[open] {
  animation: dialogIn 280ms var(--ease);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.dialog-inner {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.dialog-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 0.4rem;
}

.dialog-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--fast), border-color var(--fast);
}

.dialog-close:hover {
  background: var(--em-soft);
  border-color: var(--line-em);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.step-tab {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}

.step-tab:hover {
  border-color: var(--line-2);
}

.step-tab .step-n {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.step-tab .step-l {
  font-weight: 700;
  font-size: 0.95rem;
}

.step-tab[aria-selected="true"] {
  border-color: var(--line-em);
  background: var(--em-soft);
}

.step-tab[aria-selected="true"] .step-n {
  color: var(--em);
}

.step-panel {
  font-size: 1.02rem;
  color: var(--text-2);
  min-height: 6.5em;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.step-panel.is-animating {
  animation: panelFadeIn 240ms var(--ease);
}

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

.impact-banner {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--em-soft-2), var(--em-soft));
  border: 1px solid var(--line-em);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}

.impact-banner::before {
  content: "✓";
  color: var(--em);
  font-weight: 800;
}

/* -------------------------------------------------------------------------
   10. LIVE WORKBENCH BAND
   ------------------------------------------------------------------------- */
.workbench {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(52, 211, 153, 0.2), transparent 60%),
    linear-gradient(150deg, #0f2a20, #0a1612 60%);
  border: 1px solid var(--line-em);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-em);
}

.workbench h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.4rem 0 0.75rem;
}

.workbench p {
  color: var(--text-2);
}

.wb-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2);
}

.wb-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.wb-form input::placeholder {
  color: var(--text-3);
}

.wb-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--text-3);
}

.wb-chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: border-color var(--fast), color var(--fast);
}

.wb-chip:hover {
  border-color: var(--line-em);
  color: var(--em);
}

/* -------------------------------------------------------------------------
   11. EXPERIENCE TIMELINE (2-column layout + accordion)
   ------------------------------------------------------------------------- */
.experience-layout {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.experience-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.exp-summary-card {
  margin-top: 1.35rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}

.exp-mini-track {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 1.15rem;
}

.exp-mini-track li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.84rem;
  color: var(--text-2);
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}

.exp-mini-track li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-mini-track li span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--em);
}

.exp-mini-track li strong {
  color: var(--text);
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--em), var(--line) 40%, var(--line));
}

.role {
  position: relative;
  padding-left: 58px;
}

.role-dot {
  position: absolute;
  left: 12px;
  top: 22px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  z-index: 1;
}

.role.is-current .role-dot {
  border-color: var(--em);
  background: var(--em);
  box-shadow: 0 0 0 5px var(--em-soft-2);
}

.role details {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--smooth), background var(--smooth), transform var(--smooth);
}

.role details:hover {
  border-color: var(--line-2);
}

.role details[open] {
  background: var(--surface-2);
  border-color: var(--line-em);
}

.role summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 1.15rem 1.35rem;
}

.role summary::-webkit-details-marker {
  display: none;
}

.role-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.role-meta {
  grid-column: 1;
  font-size: 0.88rem;
  color: var(--text-2);
}

.role-meta strong {
  color: var(--em);
  font-weight: 700;
}

.role-period {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
  white-space: nowrap;
}

.chev {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: transform var(--smooth), border-color var(--fast);
  color: var(--text-2);
  font-size: 0.8rem;
}

details[open] > summary .chev {
  transform: rotate(180deg);
  border-color: var(--line-em);
  color: var(--em);
}

.role-body {
  padding: 0 1.35rem 1.35rem;
}

.role details[open] .role-body {
  animation: accordionOpen 260ms var(--ease);
}

@keyframes accordionOpen {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.role-summary {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.bullets {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bullets li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.93rem;
  color: var(--text-2);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--em);
  transform: rotate(45deg);
}

.current-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--em);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------
   12. RECOGNITION ("Word from the table")
   ------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.review-card {
  position: relative;
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--smooth), transform var(--smooth), box-shadow var(--smooth);
}

.review-card:hover {
  border-color: var(--line-em);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.review-card::before {
  content: "\201C";
  position: absolute;
  right: 1.1rem;
  top: -1.2rem;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: rgba(52, 211, 153, 0.12);
  pointer-events: none;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.review-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--em);
  margin-bottom: 0.4rem;
}

.review-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.review-desc {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--cream);
  margin-bottom: 1rem;
}

.review-by {
  font-size: 0.84rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-by::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--text-3);
}

/* -------------------------------------------------------------------------
   13. TOOLKIT
   ------------------------------------------------------------------------- */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.toolkit-col {
  padding: 1.45rem 1.3rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  transition: border-color var(--smooth), transform var(--smooth), box-shadow var(--smooth);
}

.toolkit-col:hover {
  border-color: var(--line-em);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.toolkit-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--em);
  margin-bottom: 0.4rem;
}

.toolkit-col h3 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.toolkit-col ul {
  display: grid;
  gap: 0.5rem;
}

.toolkit-col li {
  position: relative;
  font-size: 0.87rem;
  color: var(--text-2);
  padding: 0 0 0.5rem 1rem;
  border-bottom: 1px dashed var(--line);
}

.toolkit-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--em);
  transform: rotate(45deg);
}

.toolkit-col li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* -------------------------------------------------------------------------
   14. FAQ ("Good to know")
   ------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.faq-aside .btn {
  margin-top: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--smooth), background var(--smooth);
}

.faq-item:hover {
  border-color: var(--line-2);
}

.faq-item[open] {
  border-color: var(--line-em);
  background: var(--surface-2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 1.25rem 1.2rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.faq-item[open] .faq-answer {
  animation: accordionOpen 240ms var(--ease);
}

.faq-answer a {
  display: inline-flex;
  margin-top: 0.6rem;
  color: var(--em);
  font-weight: 700;
}

.faq-answer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------
   15. CONTACT CTA + FOOTER
   ------------------------------------------------------------------------- */
.cta-card {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(52, 211, 153, 0.22), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  overflow: hidden;
}

.cta-card .section-title {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
}

.cta-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  color: var(--em);
  margin: 0.5rem 0 1.75rem;
  word-break: break-all;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-3);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.03));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-3);
  font-size: 0.9rem;
  margin-top: 0.9rem;
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color var(--fast);
}

.footer-col a:hover {
  color: var(--em);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-3);
}

/* Mobile sticky CTA bar (storefront "Order Online" bar) */
.mobile-cta {
  display: none;
}

/* -------------------------------------------------------------------------
   16. SCROLL REVEAL (only when JS is running)
   ------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.js .reveal[data-stagger="1"] { transition-delay: 0ms; }
.js .reveal[data-stagger="2"] { transition-delay: 55ms; }
.js .reveal[data-stagger="3"] { transition-delay: 110ms; }
.js .reveal[data-stagger="4"] { transition-delay: 165ms; }
.js .reveal[data-stagger="5"] { transition-delay: 220ms; }

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Skill X-Ray highlight (AI assistant evaluate_skill_match) */
.xray-highlight {
  outline: 2px solid var(--em) !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px var(--em-soft-2), var(--shadow-em) !important;
  border-radius: var(--r-lg);
}

/* -------------------------------------------------------------------------
   17. SUBPAGES (projects, tools, stellar, resume, 404)
   ------------------------------------------------------------------------- */
.subpage-hero {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) 0 clamp(1rem, 2.2vw, 1.5rem);
}

.subpage-hero .hero-title {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  margin-bottom: 0.85rem;
}

.subpage-hero .hero-lead {
  margin-bottom: 1.25rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--em);
}

.subpage-section {
  padding: 0.75rem 0 clamp(2.75rem, 5vw, 4rem);
}

.panel {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0.35rem 0 0.75rem;
}

.panel-sub {
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* Projects */
.project-stack {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: border-color var(--smooth), transform var(--smooth), box-shadow var(--smooth);
}

.project-card:hover {
  border-color: var(--line-em);
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.project-cat {
  font-size: 0.92rem;
  color: var(--text-2);
  margin-top: 0.25rem;
}

.project-block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.4rem 0 0.5rem;
  letter-spacing: -0.015em;
}

.project-block p {
  color: var(--text-2);
  font-size: 0.94rem;
  margin-bottom: 0.9rem;
}

.project-card .tag-row {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line-2);
}

/* Form inputs */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.text-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.95rem;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.text-input:focus {
  outline: none;
  border-color: var(--em);
  box-shadow: 0 0 0 4px var(--em-soft);
}

/* Tools (DNS) */
.dns-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.dns-timing {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}

.table-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.dns-record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.dns-record-table th,
.dns-record-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.dns-record-table tr:last-child th,
.dns-record-table tr:last-child td {
  border-bottom: none;
}

.dns-record-table th {
  width: 92px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--em);
  background: rgba(52, 211, 153, 0.05);
  font-weight: 600;
}

.dns-record-table td {
  font-family: var(--font-mono);
  color: var(--text-2);
  word-break: break-word;
}

.muted {
  color: var(--text-3);
}

.scenario-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color var(--smooth), transform var(--smooth), box-shadow var(--smooth);
}

.scenario-card:hover {
  border-color: var(--line-em);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.scenario-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.sev {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(245, 197, 107, 0.12);
  color: var(--gold);
}

.sev.critical {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.sev.medium {
  background: var(--em-soft);
  color: var(--em);
}

.scenario-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.scenario-card p {
  font-size: 0.9rem;
  color: var(--text-2);
}

.artifact {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  color: var(--em);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Stellar (unlisted) */
.feature-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.4rem;
  transition: border-color var(--smooth), transform var(--smooth), box-shadow var(--smooth);
}

.feature-card:hover {
  border-color: var(--line-em);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin: 0.5rem 0 1.25rem;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.94rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--em-soft-2);
  color: var(--em);
  font-weight: 800;
  font-size: 0.82rem;
}

.steps strong {
  color: var(--text);
}

/* 404 */
.notfound {
  text-align: center;
  padding: clamp(4rem, 12vw, 8rem) 0;
}

.notfound-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(180deg, var(--em), var(--em-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound .hero-lead {
  margin: 1rem auto 2rem;
}

.notfound .hero-cta-row {
  justify-content: center;
}

/* -------------------------------------------------------------------------
   18. LIVING RESUME SHEET
   ------------------------------------------------------------------------- */
.resume-view-wrapper {
  padding: 2rem 0 4rem;
}

.resume-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line-em);
  border-radius: var(--r-lg);
}

.resume-toolbar-info {
  font-size: 0.86rem;
  color: var(--text-2);
}

.resume-toolbar-info strong {
  color: var(--em);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.resume-sheet {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3.25rem);
  box-shadow: var(--shadow-lg);
}

.resume-sheet-header {
  border-bottom: 2px solid var(--em-strong);
  padding-bottom: 1.35rem;
  margin-bottom: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.resume-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.resume-role-title {
  color: var(--em);
  font-weight: 600;
  font-size: 1.02rem;
  margin-top: 0.3rem;
}

.resume-contact-list {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
  text-align: right;
  line-height: 1.6;
}

.resume-contact-list a:hover {
  color: var(--em);
}

.resume-section {
  margin-bottom: 1.65rem;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section-heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--em);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
  margin-bottom: 0.9rem;
}

.resume-summary-text {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.6;
}

.resume-skills-table {
  display: grid;
  grid-template-columns: 190px 1fr;
  row-gap: 0.45rem;
  column-gap: 1rem;
  font-size: 0.88rem;
}

.resume-skill-cat {
  font-weight: 700;
}

.resume-skill-items {
  color: var(--text-2);
}

.resume-exp-item {
  margin-bottom: 1.25rem;
}

.resume-exp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.resume-exp-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.resume-exp-org {
  color: var(--em);
  font-weight: 600;
}

.resume-exp-dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
}

.resume-exp-bullets {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--text-2);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* -------------------------------------------------------------------------
   19. JUAN-BOT (TIER 1.5) — INTERCOM FIN-STYLE SUPPORT DESK
   ------------------------------------------------------------------------- */
.ai-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem 0.72rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(13, 21, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-em);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg), var(--shadow-em);
  transition: transform var(--fast), background var(--fast), border-color var(--fast);
}

.ai-fab:hover {
  transform: translateY(-2px);
  background: var(--surface-3);
  border-color: var(--em);
}

.ai-fab-avatar-wrap,
.ai-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.ai-fab-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line-em);
}

.ai-online-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--em);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 8px var(--em);
}

.ai-fab-label {
  color: var(--text);
}

.ai-drawer {
  position: fixed;
  right: 1.25rem;
  bottom: 5.15rem;
  z-index: 71;
  width: min(430px, calc(100vw - 1.5rem));
  height: min(560px, calc(100vh - 6.75rem));
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.78);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--smooth), transform var(--smooth), visibility var(--smooth);
}

.ai-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ai-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), transparent);
  border-bottom: 1px solid var(--line);
}

.ai-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1.5px solid var(--line-em);
}

.ai-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.ai-tier-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.14rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--em-soft);
  color: var(--em);
  border: 1px solid var(--line-em);
}

.ai-drawer-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-2);
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ai-msg {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.89rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ai-msg.user {
  align-self: flex-end;
  background: var(--em);
  color: var(--em-ink);
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.ai-msg.model {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-bottom-left-radius: 4px;
}

/* Inline Fin-Style Tool & Escalation Cards */
.ai-tool-card,
.ai-ticket-card {
  align-self: stretch;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-ticket-card {
  border-color: var(--line-em);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.07), var(--surface));
}

.ai-tool-head,
.ai-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ai-ticket-id {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--em);
}

.ai-ticket-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--em-soft);
  color: var(--em);
}

.ai-ticket-badge--high {
  background: rgba(245, 197, 107, 0.16);
  color: var(--gold);
}

.ai-ticket-badge--hiring {
  background: var(--em);
  color: var(--em-ink);
}

.ai-ticket-title,
.ai-tool-domain {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
}

.ai-ticket-summary {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
}

.ai-ticket-fields {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ai-ticket-fields .text-input {
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
}

.ai-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.ai-ticket-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--em);
}

.ai-tool-body {
  font-size: 0.82rem;
  color: var(--text-2);
}

.ai-dns-grid {
  display: grid;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  word-break: break-word;
}

.ai-tool-foot {
  border-top: 1px solid var(--line);
  padding-top: 0.45rem;
}

.ai-tool-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--em);
  font-weight: 600;
}

.ai-xray-overall {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--em);
}

.ai-xray-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ai-xray-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.42rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-2);
  text-align: left;
  transition: border-color var(--fast), color var(--fast);
}

.ai-xray-row:hover {
  border-color: var(--line-em);
  color: var(--text);
}

.ai-xray-score {
  font-family: var(--font-mono);
  color: var(--em);
  font-weight: 700;
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}

.ai-chip {
  font-size: 0.74rem;
  padding: 0.36rem 0.65rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: border-color var(--fast), color var(--fast), background var(--fast);
}

.ai-chip:hover {
  border-color: var(--line-em);
  color: var(--em);
}

.ai-chip--escalate {
  border-color: var(--line-em);
  color: var(--em);
  background: var(--em-soft);
}

.ai-input-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.ai-input-form .text-input {
  flex: 1;
  padding: 0.7rem 0.85rem;
}

/* -------------------------------------------------------------------------
   20. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .pillars-grid,
  .toolkit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .nav-links,
  .nav-actions .hide-md {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .story-grid,
  .experience-layout,
  .faq-layout,
  .workbench {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin: 0.75rem auto 0;
    max-width: 560px;
    width: 100%;
  }
  .story-aside,
  .experience-aside,
  .faq-aside {
    position: static;
  }
  .menu-grid,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 62px;
  }
  .announce-bar .hide-sm {
    display: none;
  }
  .menu-grid,
  .review-grid,
  .pillars-grid,
  .toolkit-grid,
  .grid-2,
  .grid-3,
  .hero-float-grid {
    grid-template-columns: 1fr;
  }
  .stepper {
    grid-template-columns: repeat(3, 1fr);
  }
  .step-tab {
    padding: 0.65rem 0.6rem;
  }
  .step-tab .step-l {
    font-size: 0.85rem;
  }
  .menu-filters {
    width: 100%;
    overflow-x: auto;
  }
  .filter-chip {
    flex: 1;
    white-space: nowrap;
  }
  .hero-cta-row .btn {
    flex: 1 1 auto;
  }
  .role {
    padding-left: 40px;
  }
  .timeline::before {
    left: 11px;
  }
  .role-dot {
    left: 2px;
  }
  .role summary {
    grid-template-columns: 1fr;
  }
  .role-period {
    grid-row: auto;
    grid-column: 1;
    justify-content: space-between;
    margin-top: 0.4rem;
  }
  .wb-form {
    flex-direction: column;
    border-radius: var(--r-lg);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer {
    padding-bottom: 5.5rem;
  }
  .ai-fab {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.68rem 1rem 0.68rem 0.7rem;
  }
  .ai-drawer {
    right: 0.75rem;
    bottom: 4.5rem;
    width: calc(100vw - 1.5rem);
    height: min(560px, calc(100vh - 6rem));
  }
  .resume-sheet-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .resume-contact-list {
    text-align: left;
  }
  .resume-skills-table {
    grid-template-columns: 1fr;
  }
  .resume-exp-top {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .marquee-group[aria-hidden="true"] {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   21. PRINT / ATS PDF (clean, high-contrast paper output)
   ------------------------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
    font-size: 10pt;
    line-height: 1.42;
  }
  body::before,
  body::after,
  .announce-bar,
  .site-header,
  .mobile-nav,
  .site-footer,
  .mobile-cta,
  .resume-toolbar,
  .ai-fab,
  .ai-drawer {
    display: none !important;
  }
  .resume-view-wrapper {
    padding: 0 !important;
  }
  .resume-sheet {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
  }
  .resume-name,
  .resume-exp-title,
  .resume-skill-cat {
    color: #064e3b !important;
  }
  .resume-role-title,
  .resume-section-heading,
  .resume-exp-org {
    color: #047857 !important;
  }
  .resume-summary-text,
  .resume-skill-items,
  .resume-exp-bullets,
  .resume-contact-list,
  .resume-exp-dates {
    color: #1f2937 !important;
  }
}
