/* ==========================================================================
   EDURIA Learning Technologies — Editorial Studio Design System
   ========================================================================== */

:root {
  /* Brand & Editorial Palette */
  --navy-950: #091B45;
  --navy-900: #0E2A66;
  --navy-800: #183C85;
  --teal-700: #065E51;
  --teal-600: #087868;
  --teal-100: #E6F4F1;
  --mint-300: #7FE0CF;
  --mint-200: #B9EFE5;
  --blue-600: #1D4ED8;

  /* Paper & Ink Neutrals */
  --bg: #FFFFFF;
  --paper: #FAF8F4;
  --paper-alt: #F2EFE8;
  --slate-bg: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #111D38;
  --muted: #4A5770;
  --subtle: #66738C;
  --border: #DEE3EC;
  --border-warm: #E5E0D5;
  --border-strong: #C5CEDE;

  /* Status */
  --error: #B42318;
  --error-bg: #FEF3F2;
  --error-border: #FECDCA;
  --success: #067647;
  --success-bg: #ECFDF3;
  --success-border: #ABEFC6;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Radii & Elevation */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(9, 27, 69, 0.05);
  --shadow-sm: 0 4px 16px rgba(9, 27, 69, 0.06);
  --shadow-md: 0 14px 36px rgba(9, 27, 69, 0.09);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2 {
  font-family: var(--font-serif);
  color: var(--navy-950);
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin-top: 0;
  font-weight: 600;
  font-variation-settings: "opsz" 48;
}

h3, h4 {
  font-family: var(--font-sans);
  color: var(--navy-950);
  letter-spacing: -0.015em;
  line-height: 1.28;
  margin-top: 0;
  font-weight: 700;
}

p {
  margin-top: 0;
}

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

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

:focus-visible {
  outline: 2.5px solid var(--blue-600);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-950);
  color: #FFFFFF;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* Containers & Surfaces */
.container {
  width: min(var(--container-width), calc(100% - 40px));
  margin-inline: auto;
}

.container-narrow {
  max-width: 840px;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 32px 0;
}

.section-paper {
  background-color: var(--paper);
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.section-slate {
  background-color: var(--slate-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-navy {
  background-color: var(--navy-950);
  color: #E7EEF9;
}

.section-navy h2,
.section-navy h3 {
  color: #FFFFFF;
}

.section-navy p {
  color: #C7D4EC;
}

/* Utility Top Bar */
.utility-bar {
  background-color: var(--navy-950);
  color: #D2DEF2;
  font-size: 12.5px;
  padding: 8px 0;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.utility-tagline {
  font-weight: 500;
}

.utility-links {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.utility-links a:hover {
  color: var(--mint-300);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(9, 27, 69, 0.07);
  border-bottom-color: var(--border-strong);
}

.nav-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.1em;
  color: var(--navy-950);
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text span {
  display: block;
  line-height: 1.05;
}

.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--teal-600);
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav-menu a:not(.btn) {
  padding: 6px 2px;
  position: relative;
  transition: color 0.18s var(--ease-out);
  white-space: nowrap;
}

.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--teal-600);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease-out);
}

.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn).active {
  color: var(--navy-950);
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn).active::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--navy-950);
  font-size: 20px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
  text-align: center;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-primary {
  background-color: var(--teal-600);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background-color: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 120, 104, 0.22);
}

.btn-navy {
  background-color: var(--navy-900);
  color: #FFFFFF;
}

.btn-navy:hover {
  background-color: var(--navy-950);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--surface);
  color: var(--navy-950);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--navy-950);
  background-color: var(--paper);
}

.btn-on-dark {
  background-color: var(--mint-300);
  color: var(--navy-950);
}

.btn-on-dark:hover {
  background-color: var(--mint-200);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-outline-dark:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

/* Editorial Eyebrows & Typography Helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background-color: currentColor;
}

.eyebrow-light {
  color: var(--mint-300);
}

.lead {
  font-size: 1.07rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 60ch;
}

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

/* Section Headers */
.section-header {
  max-width: 66ch;
  margin-bottom: 36px;
}

.section-header.centered {
  text-align: center;
  margin-inline: auto;
}

.section-header.centered .eyebrow {
  justify-content: center;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 0;
}

.section-navy .section-header p {
  color: #C7D4EC;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background-color: var(--teal-100);
  color: var(--teal-700);
}

.badge-navy {
  background-color: #E9EFF9;
  color: var(--navy-900);
}

/* Warm Editorial Home Hero */
.hero-editorial {
  padding: 68px 0 64px;
  background-color: var(--paper);
  border-bottom: 1px solid var(--border-warm);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 52px;
  align-items: center;
}

.hero-editorial h1 {
  font-size: clamp(2.2rem, 3.9vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--subtle);
  margin: 0;
}

/* Warm Paper Subpage Heroes */
.page-hero {
  padding: 52px 0 44px;
  background-color: var(--paper);
  border-bottom: 1px solid var(--border-warm);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}

.breadcrumb {
  font-size: 13px;
  color: var(--subtle);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--teal-600);
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(1.95rem, 3.5vw, 2.75rem);
  margin-bottom: 14px;
  max-width: 24ch;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}

/* Client Types Strip */
.sectors-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.sector-cell {
  padding: 18px;
  border-right: 1px solid var(--border);
}

.sector-cell:last-child {
  border-right: 0;
}

.sector-num {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-600);
  margin-bottom: 5px;
}

.sector-cell strong {
  display: block;
  font-size: 0.96rem;
  color: var(--navy-950);
  margin-bottom: 4px;
}

.sector-cell span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Splits & Grids */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.split-top {
  align-items: start;
}

.split.reverse > :last-child {
  order: -1;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

/* Framed Photography & Document Previews */
.media-frame {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.media-frame img {
  width: 100%;
  border-radius: calc(var(--radius-md) - 3px);
  object-fit: cover;
}

.media-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 6px 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.media-caption strong {
  color: var(--navy-950);
}

.doc-frame {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.doc-frame-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.doc-frame img {
  width: 100%;
  border: 1px solid var(--border);
}

.paper-sheet {
  background: #FFFFFF;
  border: 1px solid #D8D1C4;
  border-radius: 3px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(9, 27, 69, 0.08), 5px 5px 0 #EAE5DA;
}

.paper-sheet img {
  width: 100%;
  border: 1px solid #EFECE4;
}

/* Cards & Editorial Index */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.card-accent {
  border-top: 3px solid var(--teal-600);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-600);
}

.card-link:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 48px;
}

.editorial-entry {
  padding-top: 18px;
  border-top: 2px solid var(--navy-900);
}

.editorial-entry:nth-child(even) {
  border-top-color: var(--teal-600);
}

.entry-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 6px;
}

.editorial-entry h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.editorial-entry p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Check Lists */
.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-600);
  font-weight: 800;
}

/* Interactive Regional-Language Switcher (Single Accent Navy Band) */
.lang-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.lang-panel-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.lang-tab {
  background: rgba(255, 255, 255, 0.08);
  color: #E3ECFB;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lang-tab:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lang-tab[aria-selected="true"] {
  background: var(--mint-300);
  color: var(--navy-950);
  border-color: var(--mint-300);
}

.lang-output {
  background: rgba(6, 17, 45, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
}

.lang-output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mint-300);
}

.lang-output h3 {
  color: #FFFFFF;
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.lang-output p {
  color: #DCE6F9;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.glossary-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.glossary-item span {
  display: block;
  font-size: 11px;
  color: #9EB2D8;
}

.glossary-item strong {
  display: block;
  font-size: 13px;
  color: var(--mint-300);
  margin-top: 2px;
}

/* Sample Module Explorer */
.module-explorer {
  background: var(--navy-950);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.module-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #B7C6E6;
}

.module-bar strong {
  color: var(--mint-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #E7EEFC;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tab-btn[aria-selected="true"] {
  background: var(--mint-300);
  color: var(--navy-950);
  border-color: var(--mint-300);
}

.tab-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 220px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel h3 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.tab-panel p,
.tab-panel li {
  color: #DCE6FA;
  font-size: 0.93rem;
}

.tab-panel ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.quiz-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.quiz-option {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.14);
}

.quiz-option.is-correct {
  background: rgba(16, 185, 129, 0.25);
  border-color: #6EE7B7;
}

.quiz-option.is-wrong {
  background: rgba(220, 38, 38, 0.25);
  border-color: #FCA5A5;
}

.quiz-feedback {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-300);
  min-height: 20px;
}

/* Experts Review Pipeline Card (Light Editorial Version) */
.pipeline-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--navy-900);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-600);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.pipeline-steps {
  display: grid;
  gap: 10px;
}

.pipeline-node {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.pipeline-num {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--navy-900);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.pipeline-node strong {
  display: block;
  font-size: 13.5px;
  color: var(--navy-950);
}

.pipeline-node small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.pipeline-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Book Shelf Gallery */
.book-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  background: var(--paper);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 22px;
}

.book-shelf-item {
  display: block;
  text-align: center;
}

.book-shelf-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-inline: auto;
  border-radius: 4px;
  box-shadow: 0 10px 22px rgba(9, 27, 69, 0.16);
  transition: transform 0.2s ease;
}

.book-shelf-item:hover img {
  transform: translateY(-4px);
}

.book-shelf-item span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.35;
}

/* Interactive Light Tabs */
.light-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.light-tab {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.light-tab:hover {
  color: var(--navy-950);
  border-color: var(--navy-950);
}

.light-tab[aria-selected="true"] {
  background: var(--navy-950);
  color: #FFFFFF;
  border-color: var(--navy-950);
}

.inspector-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal-600);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.inspector-panel[hidden] {
  display: none;
}

.inspector-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.inspector-meta {
  background: var(--paper);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.inspector-meta dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-600);
  margin-bottom: 3px;
}

.inspector-meta dd {
  margin: 0 0 14px;
  font-size: 0.93rem;
  color: var(--ink);
  font-weight: 600;
}

.inspector-meta dd:last-child {
  margin-bottom: 0;
}

/* Service Specification + Deliverable Preview */
.service-block {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.service-block:first-child {
  padding-top: 0;
}

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

.service-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.service-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin: 8px 0 8px;
}

.service-head p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.service-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.spec-cell {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.spec-cell:nth-child(2n) {
  border-right: 0;
}

.spec-cell:nth-last-child(-n+2) {
  border-bottom: 0;
}

.spec-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 6px;
}

.spec-cell p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
}

.anatomy-card {
  background: var(--paper);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.anatomy-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 12.5px;
}

.mini-table th,
.mini-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.mini-table tr:last-child td {
  border-bottom: 0;
}

.mini-table th {
  background: var(--slate-bg);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy-900);
  text-transform: uppercase;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy-900);
  border-radius: var(--radius-md);
  padding: 22px;
}

.process-step:nth-child(even) {
  border-top-color: var(--teal-600);
}

.process-step .step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-600);
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 1.04rem;
  margin-bottom: 6px;
}

.process-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Media Cards & Books */
.media-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.media-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.media-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--slate-bg);
}

.media-card-img.portrait-preview {
  aspect-ratio: 16 / 10;
  object-position: top center;
}

.media-card-img.work-banner {
  aspect-ratio: 900 / 382;
}

.media-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.media-card-meta {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 6px;
}

.media-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.media-card-body p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 14px;
}

.media-card-body .card-footer {
  padding-top: 4px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.book-cover {
  height: 250px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 18px;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(9, 27, 69, 0.18);
}

.book-card h3 {
  font-size: 1.02rem;
  line-height: 1.4;
  margin: 10px 0 8px;
}

.book-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.15s ease;
}

.faq-list details[open] {
  border-color: var(--teal-600);
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy-950);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal-600);
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact Form */
.split-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy-950);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

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

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-950);
  margin-bottom: 6px;
}

.req {
  color: var(--teal-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-size: 14.5px;
  background: #FAFBFD;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(14, 42, 102, 0.08);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--error);
}

.note-box {
  background: var(--teal-100);
  border-left: 3px solid var(--teal-600);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--ink);
  margin-top: 20px;
}

.form-alert {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
}

.form-alert[hidden] {
  display: none;
}

.form-alert.is-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.form-alert.is-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.form-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Callout & CTA Bands */
.call-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--navy-950);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 36px 38px;
}

.call-banner h2 {
  color: #FFFFFF;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  margin-bottom: 6px;
}

.call-banner p {
  margin: 0;
  color: #CEDBF3;
}

.cta-band {
  background: var(--navy-950);
  color: #FFFFFF;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.cta-band p {
  color: #CEDBF3;
  max-width: 54ch;
  margin: 0 auto 24px;
}

/* Footer */
.site-footer {
  background: #061230;
  color: #C4D2EC;
  padding: 56px 0 28px;
  border-top: 3px solid var(--teal-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand {
  color: #FFFFFF;
  margin-bottom: 14px;
}

.site-footer .brand-text small {
  color: var(--mint-300);
}

.footer-summary {
  font-size: 13.5px;
  color: #B4C4E4;
  margin: 0;
  max-width: 34ch;
}

.footer-tagline {
  display: block;
  color: var(--mint-300);
  font-weight: 700;
  margin-bottom: 4px;
}

.site-footer h3 {
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  font-size: 13.5px;
  color: #C4D2EC;
  transition: color 0.15s ease;
}

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

.footer-meta {
  font-size: 12.5px;
  color: #93A7CE;
  margin: 12px 0 0;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #93A7CE;
}

/* Editorial Entrances & Interactive Transitions */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.hero-editorial .hero-grid > div:first-child > *,
.page-hero .container > *:not(.page-hero-grid),
.page-hero .page-hero-grid > div:first-child > * {
  animation: riseIn 0.55s var(--ease-out) both;
}

.hero-editorial .hero-grid > div:first-child > *:nth-child(2),
.page-hero .container > *:nth-child(2),
.page-hero .page-hero-grid > div:first-child > *:nth-child(2) {
  animation-delay: 0.06s;
}

.hero-editorial .hero-grid > div:first-child > *:nth-child(3),
.page-hero .container > *:nth-child(3),
.page-hero .page-hero-grid > div:first-child > *:nth-child(3) {
  animation-delay: 0.12s;
}

.hero-editorial .hero-grid > div:first-child > *:nth-child(4),
.page-hero .container > *:nth-child(4) {
  animation-delay: 0.18s;
}

.hero-editorial .media-frame,
.page-hero .pipeline-card {
  animation: riseIn 0.65s var(--ease-out) 0.14s both;
}

.pipeline-node {
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
  animation: riseIn 0.45s var(--ease-out) both;
}

.pipeline-node:nth-child(1) { animation-delay: 0.18s; }
.pipeline-node:nth-child(2) { animation-delay: 0.26s; }
.pipeline-node:nth-child(3) { animation-delay: 0.34s; }
.pipeline-node:nth-child(4) { animation-delay: 0.42s; }

.pipeline-node:hover {
  transform: translateX(4px);
  border-color: var(--teal-600);
  box-shadow: var(--shadow-xs);
}

.media-frame,
.doc-frame,
.paper-sheet,
.media-card {
  overflow: hidden;
}

.media-frame img,
.doc-frame img,
.media-card-img {
  transition: transform 0.5s var(--ease-out);
}

.media-frame:hover img,
.doc-frame:hover img,
.media-card:hover .media-card-img {
  transform: scale(1.025);
}

.card,
.process-step,
.book-card,
.editorial-entry,
.sector-cell {
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out);
}

.card:hover,
.process-step:hover,
.book-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.sector-cell:hover {
  background-color: var(--paper);
}

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

.book-shelf-item img {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.book-shelf-item:hover img {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 16px 32px rgba(9, 27, 69, 0.24);
}

.tab-panel:not([hidden]),
.lang-output:not([hidden]),
.inspector-panel:not([hidden]) {
  animation: panelIn 0.26s var(--ease-out) both;
}

.faq-list summary::after {
  transition: transform 0.22s var(--ease-out);
}

.faq-list details[open] p {
  animation: panelIn 0.22s var(--ease-out) both;
}

/* Progressive Reveal */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.js-ready .reveal.in {
  opacity: 1;
  transform: none;
}

.js-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.46s var(--ease-out), transform 0.46s var(--ease-out);
}

.js-ready .reveal-stagger.in > * {
  opacity: 1;
  transform: none;
}

.js-ready .reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.js-ready .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.js-ready .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.14s; }
.js-ready .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.20s; }
.js-ready .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.26s; }
.js-ready .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
  .js-ready .reveal,
  .js-ready .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .page-hero-grid,
  .split,
  .lang-showcase,
  .service-layout,
  .inspector-grid,
  .split-contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.reverse > :last-child {
    order: 0;
  }
  .sectors-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sector-cell {
    border-bottom: 1px solid var(--border);
  }
  .sector-cell:nth-child(2n) {
    border-right: 0;
  }
  .sector-cell:last-child {
    border-bottom: 0;
  }
  .process-grid,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .section {
    padding: 54px 0;
  }
  .burger {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a:not(.btn) {
    padding: 10px 4px;
  }
  .nav-menu a:not(.btn).active::after {
    display: none;
  }
  .nav-menu a:not(.btn).active {
    color: var(--teal-600);
  }
  .nav-menu .btn {
    margin-top: 8px;
  }
  .form-row-2,
  .glossary-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .book-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }
  .book-shelf-item img {
    height: 145px;
  }
}

@media (max-width: 600px) {
  .utility-links {
    display: none;
  }
  .sectors-band,
  .grid-2,
  .grid-3,
  .grid-4,
  .process-grid,
  .service-specs,
  .editorial-grid,
  .footer-grid,
  .form-row-2,
  .glossary-mini,
  .book-shelf {
    grid-template-columns: 1fr;
  }
  .sector-cell,
  .spec-cell {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sector-cell:last-child,
  .spec-cell:last-child {
    border-bottom: 0;
  }
  .pipeline-node {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .pipeline-tag {
    display: none;
  }
  .call-banner {
    padding: 26px 22px;
  }
}
