/*
 * ══════════════════════════════════════════════════════════════════════
 *  FinCrime Dojo v3  —  Complete Production CSS
 *  Intelligence Platform Design Language
 *
 *  Brand Palette
 *  Navy deep  #020510 / #050818 / #0A0F2C
 *  Teal       #00C9A7  (primary accent, CTAs)
 *  Gold       #F5A623  (risk indicators)
 *  Blue-light #6FA8FF  (data labels)
 *  Red        #F25C5C  (high-risk alerts)
 *
 *  Typefaces: Outfit (display) · DM Sans (body) · JetBrains Mono (data)
 *
 *  Breakpoint system  (desktop-first)
 *  ≤ 1600px  large desktop
 *  ≤ 1280px  desktop
 *  ≤ 1024px  small laptop / tablet landscape
 *  ≤ 900px   tablet portrait
 *  ≤ 768px   large mobile / tablet small
 *  ≤ 640px   mobile landscape
 *  ≤ 480px   mobile portrait
 *  ≤ 360px   small mobile
 * ══════════════════════════════════════════════════════════════════════
 */

/* ══════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  /* Background layers */
  --ink0: #020510;
  --ink1: #050818;
  --ink2: #0A0F2C;
  --ink3: #0D1535;
  --ink4: #111A3E;
  --ink5: #19255A;

  /* Borders */
  --rim:    #1E2D5A;
  --rim-hi: #2A3F7A;

  /* Brand colours */
  --teal:    #00C9A7;
  --teal-d:  #009F86;
  --teal-xd: #007A67;
  --gold:    #F5A623;
  --gold-d:  #D48A10;
  --blue:    #1B4FD8;
  --blue-m:  #2563EB;
  --blue-l:  #6FA8FF;
  --red:     #F25C5C;
  --red-d:   #C93E3E;
  --lime:    #22D3A0;

  /* Text scale */
  --t1: #FFFFFF;
  --t2: #D4DCF0;
  --t3: #8A9BC0;
  --t4: #4E5F82;
  --t5: #2A3A5A;

  /* Typefaces */
  --ff-d: 'Outfit', sans-serif;
  --ff-b: 'DM Sans', sans-serif;
  --ff-m: 'JetBrains Mono', monospace;

  /* Border radius scale */
  --r0: 3px;
  --r1: 6px;
  --r2: 10px;
  --r3: 16px;
  --r4: 24px;

  /* Shadows */
  --sh-card:   0 4px 32px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.03) inset;
  --sh-glow-t: 0 0 32px rgba(0,201,167,.18);
  --sh-glow-g: 0 0 32px rgba(245,166,35,.18);

  /* Transitions */
  --dur:  .22s;
  --ease: cubic-bezier(.4,0,.2,1);

  /* Layout */
  --container: 1160px;
  --gutter:    28px;
  --header-h:  66px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  background: var(--ink0);
  color: var(--t2);
  font-family: var(--ff-b);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle grid texture — data-platform feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,201,167,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,167,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus styles — keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: var(--r0);
}


/* ══════════════════════════════════════════════════════
   3. TYPOGRAPHY  (fluid scale with clamp)
═══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-d);
  color: var(--t1);
  line-height: 1.18;
  letter-spacing: -.03em;
}

/* clamp(min, preferred, max)
   preferred = viewport-relative so it scales smoothly  */
h1 { font-size: clamp(1.9rem,  5vw, 3.6rem);  font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2vw,  1.35rem); font-weight: 600; }
h4 { font-size: .97rem; font-weight: 600; }
h5 { font-size: .87rem; font-weight: 600; }

p  { color: var(--t3); line-height: 1.8; }

a  { color: var(--teal); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--teal-d); }

strong { color: var(--t2); font-weight: 600; }
code   { font-family: var(--ff-m); font-size: .85em; color: var(--teal); }


/* ══════════════════════════════════════════════════════
   4. LAYOUT UTILITIES
═══════════════════════════════════════════════════════ */
.w {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.w-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.sect    { padding: 96px 0; }
.sect-md { padding: 68px 0; }
.sect-sm { padding: 44px 0; }

/* Generic two-column grids */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.two-col-60 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}


/* ══════════════════════════════════════════════════════
   5. SECTION LABEL
═══════════════════════════════════════════════════════ */
.slabel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-m);
  font-size: .67rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.slabel::before {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal));
}


/* ══════════════════════════════════════════════════════
   6. CHIPS / BADGES
═══════════════════════════════════════════════════════ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-m);
  font-size: .67rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
}

.chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.chip-t { background: rgba(0,201,167,.1);   border: 1px solid rgba(0,201,167,.22);   color: var(--teal); }
.chip-g { background: rgba(245,166,35,.1);  border: 1px solid rgba(245,166,35,.25);  color: var(--gold); }
.chip-r { background: rgba(242,92,92,.1);   border: 1px solid rgba(242,92,92,.22);   color: var(--red);  }
.chip-b { background: rgba(111,168,255,.08);border: 1px solid rgba(111,168,255,.18); color: var(--blue-l); }


/* ══════════════════════════════════════════════════════
   7. BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: .9rem;
  padding: 13px 26px;
  border-radius: var(--r1);
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
  min-height: 44px; /* touch target */
}

.btn-primary {
  background: var(--teal);
  color: var(--ink0);
  box-shadow: 0 2px 0 var(--teal-xd);
}

.btn-primary:hover {
  background: var(--teal-d);
  color: var(--ink0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,201,167,.3), 0 2px 0 var(--teal-xd);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 var(--teal-xd);
}

.btn-ghost {
  background: transparent;
  color: var(--t3);
  border: 1px solid var(--rim);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0,201,167,.04);
}

.btn-sm {
  padding: 9px 18px;
  font-size: .82rem;
  min-height: 38px;
}

.btn-full { width: 100%; }


/* ══════════════════════════════════════════════════════
   8. HEADER + MOBILE NAV
═══════════════════════════════════════════════════════ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(2,5,16,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(30,45,90,.6);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}

.hdr-in {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue-m) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-m);
  font-weight: 800;
  font-size: 11.5px;
  color: #fff;
  letter-spacing: -.5px;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--ff-d);
  font-weight: 700;
  font-size: .98rem;
  color: var(--t1);
  letter-spacing: -.02em;
}

.logo-name em { color: var(--teal); font-style: normal; }

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--t4);
  padding: 7px 11px;
  border-radius: var(--r0);
  transition: all .18s;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.nav a:hover { color: var(--t1); background: rgba(255,255,255,.05); }

/* Header CTA */
.hdr-cta {
  background: var(--teal) !important;
  color: var(--ink0) !important;
  font-weight: 700 !important;
  font-size: .82rem !important;
  padding: 8px 17px !important;
  border-radius: var(--r1) !important;
  transition: all .18s !important;
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.hdr-cta:hover {
  background: var(--teal-d) !important;
  color: var(--ink0) !important;
  transform: translateY(-1px) !important;
}

/* ── Hamburger button (hidden on desktop) ── */
.hdr-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--rim);
  border-radius: var(--r1);
  cursor: pointer;
  flex-shrink: 0;
}

.hdr-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--t3);
  border-radius: 2px;
  transition: all .22s var(--ease);
  transform-origin: center;
}

/* Burger open state */
.hdr-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hdr-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hdr-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2,5,16,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 199;
  flex-direction: column;
  padding: 32px var(--gutter);
  gap: 8px;
  overflow-y: auto;
  border-top: 1px solid var(--rim);
  animation: slideDown .22s var(--ease);
}

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

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--ff-d);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--t3);
  padding: 14px 0;
  border-bottom: 1px solid var(--rim);
  transition: color .18s;
  display: block;
}

.mobile-nav a:hover { color: var(--teal); }

.mobile-nav .mob-cta {
  margin-top: 24px;
  background: var(--teal);
  color: var(--ink0);
  text-align: center;
  padding: 15px 28px;
  border-radius: var(--r1);
  font-weight: 700;
  font-size: 1rem;
}

.mobile-nav .mob-cta:hover { background: var(--teal-d); color: var(--ink0); }

/* Phase 2 contract guards: keep the uploaded design system in control even
   when legacy public-site header/footer classes are present in the markup. */
body.phase2-seo-page .hdr .nav,
body.phase2-seo-page main.phase2-page .hero-split,
body.phase2-seo-page main.phase2-page .sim-layout,
body.phase2-seo-page main.phase2-page .two-col,
body.phase2-seo-page main.phase2-page .two-col-60,
body.phase2-seo-page main.phase2-page .faq-layout,
body.phase2-seo-page main.phase2-page .skills-grid,
body.phase2-seo-page main.phase2-page .related-grid {
  min-width: 0;
}

body.phase2-seo-page main.phase2-page .hero-split > *,
body.phase2-seo-page main.phase2-page .sim-layout > *,
body.phase2-seo-page main.phase2-page .two-col > *,
body.phase2-seo-page main.phase2-page .two-col-60 > *,
body.phase2-seo-page main.phase2-page .faq-layout > *,
body.phase2-seo-page main.phase2-page .skills-grid > *,
body.phase2-seo-page main.phase2-page .related-grid > * {
  min-width: 0;
}

body.phase2-seo-page .logo img {
  width: auto;
  height: 38px;
  max-width: min(180px, 52vw);
}

body.phase2-seo-page main.phase2-page .terminal,
body.phase2-seo-page main.phase2-page .widget,
body.phase2-seo-page main.phase2-page .case-card,
body.phase2-seo-page main.phase2-page .skill-card,
body.phase2-seo-page main.phase2-page .typo-card,
body.phase2-seo-page main.phase2-page .aud-card,
body.phase2-seo-page main.phase2-page .faq,
body.phase2-seo-page main.phase2-page .cta-band {
  max-width: 100%;
}


/* ══════════════════════════════════════════════════════
   9. HERO SECTION
═══════════════════════════════════════════════════════ */
.hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(ellipse 90% 70% at 65% -5%,  rgba(0,201,167,.06) 0%,  transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 60%,  rgba(27,79,216,.07) 0%,  transparent 55%),
    var(--ink1);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rim);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,201,167,.4) 40%,
    rgba(27,79,216,.4) 60%,
    transparent 100%);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-m);
  font-size: .68rem;
  color: var(--t4);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--t4); transition: color .18s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { color: var(--t5); }

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-m);
  font-size: .7rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,201,167,.5); }
  50%      { box-shadow: 0 0 0 6px rgba(0,201,167,0); }
}

.hero h1 { margin-bottom: 18px; }

/* Gradient headline */
.hero-hl {
  background: linear-gradient(120deg, var(--teal) 0%, var(--blue-l) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--t3);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.82;
}

.hero-sub strong { color: var(--t2); }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Hero stats row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  padding-top: 36px;
  border-top: 1px solid var(--rim);
}

.stat .n {
  display: block;
  font-family: var(--ff-d);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.1;
}

.stat .l {
  display: block;
  font-family: var(--ff-m);
  font-size: .62rem;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}


/* ══════════════════════════════════════════════════════
   10. ANSWER BLOCK + HOW-IT-WORKS STEPS
═══════════════════════════════════════════════════════ */
.answer-pill {
  background: linear-gradient(135deg, var(--ink3), var(--ink4));
  border: 1px solid var(--rim-hi);
  border-radius: var(--r3);
  padding: 34px 38px;
  position: relative;
  overflow: hidden;
}

.answer-pill::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--blue-m));
}

.answer-pill p {
  font-size: 1.04rem;
  color: var(--t2);
  line-height: 1.84;
  margin: 0;
}

.answer-pill strong { color: var(--teal); }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  gap: 14px;
  padding-bottom: 26px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px; top: 28px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--rim), transparent);
}

.step-n {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-m);
  font-size: .68rem;
  font-weight: 700;
  color: var(--ink0);
}

.step h4 { margin-bottom: 3px; font-size: .93rem; }
.step p  { font-size: .84rem; margin: 0; }


/* ══════════════════════════════════════════════════════
   11. INTERACTIVE WIDGET
═══════════════════════════════════════════════════════ */
.widget {
  background: var(--ink0);
  border: 1px solid var(--rim);
  border-radius: var(--r4);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.w-bar {
  background: var(--ink3);
  border-bottom: 1px solid var(--rim);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.w-bar-title {
  font-family: var(--ff-m);
  font-size: .72rem;
  color: var(--t3);
}

.w-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-m);
  font-size: .67rem;
  color: var(--lime);
}

.w-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 2s infinite;
}

.w-body { padding: 24px; }

/* Progress bar */
.w-progress {
  height: 2px;
  background: var(--ink5);
}

.w-progress-fill {
  height: 100%;
  background: var(--teal);
  transition: width .5s var(--ease);
}

/* Case card */
.case-card {
  background: var(--ink4);
  border: 1px solid var(--rim);
  border-radius: var(--r2);
  padding: 20px;
  margin-bottom: 20px;
}

.case-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rim);
  gap: 10px;
  flex-wrap: wrap;
}

.case-id {
  font-family: var(--ff-m);
  font-size: .67rem;
  color: var(--t4);
}

/* Fields grid */
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.field {
  background: var(--ink3);
  border: 1px solid var(--rim);
  border-radius: var(--r1);
  padding: 9px 12px;
}

.fk {
  font-family: var(--ff-m);
  font-size: .62rem;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 3px;
}

.fv {
  font-size: .86rem;
  color: var(--t2);
  font-weight: 500;
  font-family: var(--ff-m);
  word-break: break-word;
}

/* Flags */
.flags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ff-m);
  font-size: .66rem;
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.22);
  color: var(--gold);
  padding: 3px 9px;
  border-radius: var(--r0);
}

/* Question */
.question {
  font-family: var(--ff-d);
  font-size: .98rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Choice buttons */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.choice {
  background: var(--ink4);
  border: 1px solid var(--rim);
  border-radius: var(--r1);
  padding: 12px 14px;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--ff-d);
  font-size: .85rem;
  font-weight: 600;
  color: var(--t3);
  text-align: left;
  display: block;
  width: 100%;
  min-height: 48px;
  line-height: 1.4;
}

.choice:hover:not(.locked) {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0,201,167,.04);
}

.choice.correct  { border-color: var(--teal) !important;  background: rgba(0,201,167,.08) !important; color: var(--teal) !important; }
.choice.wrong    { border-color: var(--red)  !important;  background: rgba(242,92,92,.06) !important; color: var(--red)  !important; }
.choice.locked   { pointer-events: none; opacity: .45; }

/* Feedback */
.feedback {
  background: var(--ink3);
  border: 1px solid var(--rim);
  border-radius: var(--r1);
  padding: 16px 18px;
  margin-top: 14px;
  font-size: .85rem;
  color: var(--t2);
  line-height: 1.68;
  display: none;
}

.feedback.show { display: block; animation: fadeUp .3s ease; }
.feedback strong { color: var(--teal); }

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

/* Widget footer */
.w-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.w-score {
  font-family: var(--ff-m);
  font-size: .72rem;
  color: var(--t4);
}

.w-footer-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}


/* ══════════════════════════════════════════════════════
   12. CURRICULUM — ASYMMETRIC SKILLS GRID
═══════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
  margin-top: 32px;
}

/* Hero skill card spans 2 rows */
.skill-hero {
  grid-row: 1 / 3;
  background: var(--ink4);
  border: 1px solid var(--rim);
  border-radius: var(--r3);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur), transform var(--dur);
  position: relative;
  overflow: hidden;
}

.skill-hero::after {
  content: '01';
  position: absolute;
  bottom: -10px; right: 16px;
  font-family: var(--ff-d);
  font-size: 7rem;
  font-weight: 900;
  color: rgba(0,201,167,.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.skill-hero:hover {
  border-color: rgba(0,201,167,.35);
  transform: translateY(-3px);
}

.skill-hero h3 { font-size: 1.2rem; margin-bottom: 10px; }
.skill-hero p  { font-size: .87rem; flex: 1; margin-bottom: 16px; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.skill-tag {
  font-family: var(--ff-m);
  font-size: .62rem;
  background: var(--ink5);
  border: 1px solid var(--rim);
  color: var(--t4);
  padding: 2px 8px;
  border-radius: var(--r0);
}

/* Standard skill cards */
.skill-card {
  background: var(--ink4);
  border: 1px solid var(--rim);
  border-radius: var(--r2);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color var(--dur), transform var(--dur);
}

.skill-card:hover {
  border-color: var(--rim-hi);
  transform: translateY(-2px);
}

.skill-ico {
  width: 34px; height: 34px;
  flex-shrink: 0;
  background: rgba(0,201,167,.1);
  border-radius: var(--r1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

.skill-card h4 { margin-bottom: 4px; }
.skill-card p  { font-size: .82rem; margin: 0; }


/* ══════════════════════════════════════════════════════
   13. TYPOLOGY CARDS
═══════════════════════════════════════════════════════ */
.typo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.typo-card {
  background: var(--ink4);
  border: 1px solid var(--rim);
  border-radius: var(--r2);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur), transform var(--dur);
}

.typo-card:hover {
  border-color: var(--rim-hi);
  transform: translateY(-3px);
}

.typo-lbl {
  font-family: var(--ff-m);
  font-size: .65rem;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
  display: block;
}

.typo-vis { height: 64px; margin-bottom: 14px; }

.typo-card p {
  font-size: .81rem;
  margin: 0;
  color: var(--t3);
  line-height: 1.6;
}


/* ══════════════════════════════════════════════════════
   14. TERMINAL / MONITOR COMPONENT
═══════════════════════════════════════════════════════ */
.terminal {
  background: var(--ink0);
  border: 1px solid var(--rim);
  border-radius: var(--r3);
  overflow: hidden;
  box-shadow: var(--sh-card);
  position: relative;
}

.terminal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%,
    rgba(0,201,167,.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.tbar {
  background: var(--ink3);
  border-bottom: 1px solid var(--rim);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.tdot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tdot.r { background: #FF5F57; }
.tdot.y { background: #FEBC2E; }
.tdot.g { background: #28C840; }

.tlabel {
  font-family: var(--ff-m);
  font-size: .68rem;
  color: var(--t4);
  margin-left: 6px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ══════════════════════════════════════════════════════
   15. SIMULATION SECTION
═══════════════════════════════════════════════════════ */
.sim-section {
  background: var(--ink1);
  padding: 96px 0;
}

.sim-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.sim-tabs-row {
  background: var(--ink3);
  border-bottom: 1px solid var(--rim);
  display: flex;
  gap: 2px;
  padding: 0 16px;
  overflow-x: auto;
}

.stab {
  font-family: var(--ff-m);
  font-size: .68rem;
  color: var(--t4);
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .18s;
  white-space: nowrap;
  flex-shrink: 0;
}

.stab.on { color: var(--teal); border-bottom-color: var(--teal); }

.sim-body {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sim-panel {
  background: var(--ink3);
  border: 1px solid var(--rim);
  border-radius: var(--r1);
  padding: 14px 16px;
}

.spanel-title {
  font-family: var(--ff-m);
  font-size: .64rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
  display: block;
}

.txn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--ink4);
  border-radius: 4px;
  border: 1px solid var(--rim);
  margin-bottom: 5px;
  gap: 8px;
}

.txn-date { font-family: var(--ff-m); font-size: .62rem; color: var(--t4); white-space: nowrap; }
.txn-desc { font-family: var(--ff-m); font-size: .65rem; color: var(--t3); }
.txn-amt  { font-family: var(--ff-m); font-size: .73rem; font-weight: 700; color: var(--t1); white-space: nowrap; }

.txn-type { font-family: var(--ff-m); font-size: .6rem; padding: 2px 6px; border-radius: 3px; }
.txn-type.cr { background: rgba(0,201,167,.1);   color: var(--teal); }
.txn-type.dr { background: rgba(242,92,92,.08);  color: var(--red);  }

.ev-item {
  display: flex;
  gap: 10px;
  padding: 9px 11px;
  background: var(--ink4);
  border-radius: 4px;
  border-left: 2px solid;
  margin-bottom: 5px;
}

.ev-item.c { border-color: var(--red);  }
.ev-item.p { border-color: var(--gold); }
.ev-item p { font-size: .77rem; margin: 0; line-height: 1.5; }

.sim-decision {
  padding: 14px 20px;
  background: rgba(0,201,167,.04);
  border-top: 1px solid var(--rim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sim-d-label {
  font-family: var(--ff-m);
  font-size: .7rem;
  color: var(--teal);
  font-weight: 700;
}


/* ══════════════════════════════════════════════════════
   16. AUDIENCE TIER CARDS
═══════════════════════════════════════════════════════ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.aud-card {
  background: var(--ink4);
  border: 1px solid var(--rim);
  border-radius: var(--r3);
  padding: 26px;
  transition: border-color var(--dur), transform var(--dur);
  position: relative;
  overflow: hidden;
}

.aud-card:hover { transform: translateY(-3px); }

/* Top accent stripe */
.aud-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}

.aud-card.f::before { background: var(--blue-l); }
.aud-card.p::before { background: var(--teal);   }
.aud-card.e::before { background: var(--gold);   }

.aud-card.f:hover { border-color: rgba(111,168,255,.3); }
.aud-card.p:hover { border-color: rgba(0,201,167,.3);   }
.aud-card.e:hover { border-color: rgba(245,166,35,.3);  }

.aud-tier {
  font-family: var(--ff-m);
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
  display: block;
}

.aud-card.f .aud-tier { color: var(--blue-l); }
.aud-card.p .aud-tier { color: var(--teal);   }
.aud-card.e .aud-tier { color: var(--gold);   }

.aud-ico { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.aud-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.aud-card p  { font-size: .83rem; margin-bottom: 16px; }

.roles { display: flex; flex-direction: column; gap: 5px; }

.role {
  font-size: .78rem;
  color: var(--t4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.role::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--rim);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════
   17. FAQ — SPLIT LAYOUT
═══════════════════════════════════════════════════════ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 56px;
  align-items: start;
}

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

.faq-sidebar h2 { margin-bottom: 12px; }
.faq-sidebar p  { font-size: .88rem; margin-bottom: 24px; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

details.faq {
  background: var(--ink4);
  border: 1px solid var(--rim);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color .18s;
}

details.faq[open] { border-color: rgba(0,201,167,.28); }
details.faq:hover { border-color: var(--rim-hi); }

summary.fq {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: .93rem;
  color: var(--t1);
  user-select: none;
  -webkit-user-select: none;
  min-height: 54px;
}

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

.fq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--rim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  color: var(--teal);
  transition: transform .28s var(--ease), border-color .18s;
}

details.faq[open] .fq-icon {
  transform: rotate(180deg);
  border-color: var(--teal);
}

.fa {
  padding: 0 22px 18px;
  font-size: .86rem;
  color: var(--t3);
  line-height: 1.78;
}


/* ══════════════════════════════════════════════════════
   18. RELATED MODULES
═══════════════════════════════════════════════════════ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.related-card {
  background: var(--ink4);
  border: 1px solid var(--rim);
  border-radius: var(--r2);
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  transition: all var(--dur);
  min-height: 54px;
}

.related-card:hover {
  border-color: rgba(0,201,167,.35);
  background: var(--ink5);
  transform: translateY(-2px);
}

.rc-left { display: flex; align-items: center; gap: 9px; }
.rc-ico   { font-size: 1rem; }
.rc-title { font-family: var(--ff-d); font-size: .84rem; font-weight: 600; color: var(--t1); }
.rc-arr   { color: var(--teal); font-size: .82rem; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════
   19. CTA BAND
═══════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--ink2), var(--ink3));
  border: 1px solid var(--rim);
  border-radius: var(--r4);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 64px;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    rgba(0,201,167,.06), transparent 70%);
  pointer-events: none;
}

.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 { margin-bottom: 14px; }
.cta-band p  { max-width: 500px; margin: 0 auto 28px; font-size: .97rem; }

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ══════════════════════════════════════════════════════
   20. FOOTER
═══════════════════════════════════════════════════════ */
.ftr {
  background: var(--ink0);
  border-top: 1px solid var(--rim);
  padding: 52px 28px 28px;
  margin-top: 80px;
}

.ftr-in { max-width: var(--container); margin: 0 auto; }

.ftr-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.ftr-brand p {
  font-size: .82rem;
  color: var(--t4);
  margin-top: 10px;
  max-width: 260px;
  line-height: 1.68;
}

.ftr-col-h {
  font-family: var(--ff-m);
  font-size: .62rem;
  color: var(--t4);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  display: block;
}

.ftr-links { display: flex; flex-direction: column; gap: 7px; }

.ftr-links a {
  font-size: .82rem;
  color: var(--t4);
  transition: color .18s;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.ftr-links a:hover { color: var(--teal); }

.ftr-bot {
  border-top: 1px solid var(--rim);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ftr-bot p, .ftr-bot a { font-size: .74rem; color: var(--t5); margin: 0; }
.ftr-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.ftr-legal a { transition: color .18s; }
.ftr-legal a:hover { color: var(--teal); }


/* ══════════════════════════════════════════════════════
   21. SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════════ */
.rev  { opacity: 0; transform: translateY(24px);  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.revL { opacity: 0; transform: translateX(-28px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.revR { opacity: 0; transform: translateX(28px);  transition: opacity .6s var(--ease), transform .6s var(--ease); }

.rev.in, .revL.in, .revR.in { opacity: 1; transform: none; }

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }


/* ══════════════════════════════════════════════════════
   22. RISK BARS + MISC COMPONENTS
═══════════════════════════════════════════════════════ */
.rbar {
  height: 3px;
  background: var(--ink5);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 5px;
}

.rfill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(.4,0,.2,1) .3s;
}

.rfill.hi { background: linear-gradient(90deg, var(--gold), var(--red));  }
.rfill.md { background: linear-gradient(90deg, var(--teal), var(--gold)); }
.rfill.lo { background: var(--teal); }

@keyframes blink  { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }


/* ══════════════════════════════════════════════════════
   23. LARGE MONITOR / WIDE SCREEN  (≥ 1600px)
   Increase breathing room; typography at upper clamp.
═══════════════════════════════════════════════════════ */
@media (min-width: 1600px) {
  :root {
    --container: 1320px;
    --gutter:    40px;
  }

  .sect    { padding: 112px 0; }
  .sect-md { padding:  80px 0; }

  .hero { padding: 96px 0 88px; }

  body::before { background-size: 64px 64px; }
}


/* ══════════════════════════════════════════════════════
   24. DESKTOP  (≤ 1280px)
   Minor tightening — layout identical to full desktop.
═══════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  :root { --gutter: 24px; }

  .hero-split { gap: 44px; }
  .faq-layout { gap: 44px; }
  .sim-layout { gap: 40px; }

  .nav a { font-size: .79rem; padding: 6px 9px; }
}


/* ══════════════════════════════════════════════════════
   25. SMALL LAPTOP / TABLET LANDSCAPE  (≤ 1024px)
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --gutter: 22px; }

  /* Nav: hide 2 less-critical links, keep core */
  .nav a:nth-child(n+4) { display: none; }

  .hero-split { grid-template-columns: 1fr; gap: 40px; }

  /* Terminal panel: show but cap width */
  .hero-split > div:last-child .terminal {
    max-width: 560px;
    margin: 0 auto;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }

  .skill-hero { grid-row: unset; grid-column: 1 / -1; }

  .sim-layout { grid-template-columns: 1fr; gap: 36px; }
  .sim-body   { grid-template-columns: 1fr; }

  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-sidebar { position: static; }

  .two-col    { grid-template-columns: 1fr; gap: 36px; }
  .two-col-60 { grid-template-columns: 1fr; gap: 36px; }

  .sect    { padding: 80px 0; }
  .sect-md { padding: 60px 0; }
  .hero    { padding: 72px 0 64px; }
}


/* ══════════════════════════════════════════════════════
   26. TABLET PORTRAIT  (≤ 900px)
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Show hamburger, hide desktop nav */
  .nav       { display: none; }
  body.phase2-seo-page .hdr .nav,
  body.phase2-seo-page .hdr .nav-desktop-actions,
  body.phase2-seo-page .hdr .hdr-cta {
    display: none !important;
  }
  .hdr-burger { display: flex; }
  body.phase2-seo-page .hdr .hdr-burger {
    display: flex !important;
  }

  .hero-split { gap: 36px; }

  /* Audience: 2 cols */
  .audience-grid { grid-template-columns: 1fr 1fr; }

  /* Skills: single column, hero not spanning */
  .skills-grid   { grid-template-columns: 1fr; }
  .skill-hero    { grid-row: unset; }

  .typo-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .hero-stats { gap: 16px 24px; }

  .cta-band { padding: 56px 36px; }

  .ftr-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Brand column spans both on tablet */
  .ftr-brand { grid-column: 1 / -1; }
}


/* ══════════════════════════════════════════════════════
   27. LARGE MOBILE / TABLET SMALL  (≤ 768px)
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --gutter: 18px; }

  h1 { letter-spacing: -.025em; }

  /* Hero: hide the right panel terminal on this breakpoint */
  .hero-split { grid-template-columns: 1fr; }
  .hero-split > div:last-child { display: none; }
  body.phase2-seo-page main.phase2-page .hero-split,
  body.phase2-seo-page main.phase2-page .sim-layout,
  body.phase2-seo-page main.phase2-page .two-col,
  body.phase2-seo-page main.phase2-page .two-col-60,
  body.phase2-seo-page main.phase2-page .faq-layout,
  body.phase2-seo-page main.phase2-page .skills-grid,
  body.phase2-seo-page main.phase2-page .related-grid {
    grid-template-columns: 1fr !important;
  }

  body.phase2-seo-page main.phase2-page .terminal,
  body.phase2-seo-page main.phase2-page .widget {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-ctas { gap: 10px; }
  .hero h1   { margin-bottom: 14px; }
  .hero-sub  { font-size: 1rem; margin-bottom: 28px; }
  .hero-stats { padding-top: 28px; gap: 16px 20px; }
  .stat .n   { font-size: 1.4rem; }

  /* Audience: stack */
  .audience-grid { grid-template-columns: 1fr; }

  /* Widget choices: 1 col */
  .choices { grid-template-columns: 1fr; }

  /* Fields: 1 col */
  .fields { grid-template-columns: 1fr; }

  .w-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .w-footer-btns { width: 100%; }
  .w-footer-btns .btn { flex: 1; justify-content: center; }

  /* Skills: single col */
  .skills-grid { grid-template-columns: 1fr; }

  /* Typo grid: 2 cols */
  .typo-grid { grid-template-columns: 1fr 1fr; }

  /* FAQ: no sticky sidebar */
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-sidebar { position: static; }

  /* Related: 2 cols */
  .related-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

  /* Footer */
  .ftr-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ftr-brand { grid-column: auto; }
  .ftr-brand p { max-width: 100%; }

  .ftr-bot { flex-direction: column; gap: 12px; }
  .ftr-legal { flex-wrap: wrap; }

  .cta-band { padding: 48px 24px; border-radius: var(--r3); }
  .cta-band h2 { margin-bottom: 12px; }
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { width: 100%; justify-content: center; }

  /* Section padding */
  .sect    { padding: 68px 0; }
  .sect-md { padding: 52px 0; }
  .sect-sm { padding: 36px 0; }

  .hero { padding: 56px 0 52px; }
  .sim-section { padding: 68px 0; }

  /* Answer section: stack */
  .answer-pill { padding: 26px 24px; }

  /* Breadcrumb: wrap naturally */
  .breadcrumb { font-size: .62rem; }
}


/* ══════════════════════════════════════════════════════
   28. MOBILE LANDSCAPE / MEDIUM  (≤ 640px)
═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .typo-grid { grid-template-columns: 1fr; }

  .related-grid { grid-template-columns: 1fr; }

  /* Widget: smaller padding */
  .w-body   { padding: 18px; }
  .case-card { padding: 16px; }

  .widget { border-radius: var(--r3); }

  /* Terminal content */
  .sim-body { padding: 14px; gap: 10px; }

  /* Chips wrap */
  .case-hdr { flex-wrap: wrap; gap: 8px; }

  /* Skill hero: smaller ghost number */
  .skill-hero::after { font-size: 5rem; }

  .sect    { padding: 56px 0; }
  .sect-md { padding: 44px 0; }
  .hero    { padding: 48px 0 44px; }

  .hero-badge { font-size: .64rem; }
  .slabel     { font-size: .62rem; }
}


/* ══════════════════════════════════════════════════════
   29. MOBILE PORTRAIT  (≤ 480px)
═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --gutter: 14px; }

  /* Scale down some fixed sizes */
  .logo-mark    { width: 30px; height: 30px; font-size: 10px; }
  .logo-name    { font-size: .9rem; }
  .hdr-burger   { width: 36px; height: 36px; }

  .hero-badge { font-size: .6rem; letter-spacing: .07em; }

  /* Stats: 2×2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 24px;
  }

  .stat .n { font-size: 1.3rem; }
  .stat .l { font-size: .58rem; }

  /* Buttons fill width in hero */
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Widget */
  .question { font-size: .92rem; }
  .choice   { font-size: .82rem; padding: 10px 12px; }

  /* FAQ summary smaller */
  summary.fq { font-size: .88rem; padding: 15px 18px; }
  .fa        { padding: 0 18px 16px; font-size: .84rem; }

  /* CTA band */
  .cta-band { padding: 40px 20px; margin-top: 44px; }

  /* Footer */
  .ftr { padding: 40px 14px 24px; }

  .sect    { padding: 48px 0; }
  .sect-md { padding: 36px 0; }

  /* Answer block */
  .answer-pill { padding: 22px 20px; }
  .answer-pill p { font-size: .97rem; }
}


/* ══════════════════════════════════════════════════════
   30. SMALL MOBILE  (≤ 360px)
═══════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  :root { --gutter: 12px; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .hdr { padding: 0 12px; }
  .logo-name { display: none; } /* icon only at 360 */

  /* Stats: single column */
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }

  .skill-card { padding: 14px 16px; }

  .fields { grid-template-columns: 1fr; }

  .fq-icon { display: none; } /* save space in very small FAQ */

  .cta-band { padding: 32px 16px; border-radius: var(--r2); }
}


/* ══════════════════════════════════════════════════════
   31. ACCESSIBILITY — REDUCED MOTION
═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .rev, .revL, .revR {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-badge-dot { animation: none; }
  .w-live::before { animation: none; }
}


/* ══════════════════════════════════════════════════════
   32. PRINT STYLES
═══════════════════════════════════════════════════════ */
@media print {
  body::before { display: none; }
  .hdr, .mobile-nav, .hdr-burger, .cta-band,
  .related-grid, .w-bar, .choices, .feedback { display: none !important; }

  body { background: #fff; color: #111; }
  h1, h2, h3, h4, p { color: #111; }
  .hero { background: #f8f8f8; padding: 32px 0; border: none; }
  .hero::after { display: none; }
  .terminal, .widget, .aud-card, .typo-card { border: 1px solid #ddd; break-inside: avoid; }
  .sect, .sect-md { padding: 32px 0; }
  a { color: #111; }
  .hero-hl { -webkit-text-fill-color: #111; }
}


/* ══════════════════════════════════════════════════════
   33. MOBILE NAV JS HOOK  (added via JS below)
   No extra CSS needed — .mobile-nav.open handles show.
═══════════════════════════════════════════════════════ */
