/* Sommet Labs — Glacier Design System
   Contract: DESIGN.md
   Single typeface (Manrope), strict Tailwind type scale, strict B2 spacing,
   flat Glacier grounds, canonical Sommet mark, dithered mountain plates. */

:root {
  /* Glacier palette — strictly flat grounds */
  --bg-chalk: #F5F7FA;
  --bg-slate: #E9EFF5;
  --bg-surface: #FFFFFF;
  --ink-primary: #0E2233;
  --ink-body: #334A5E;
  --ink-muted: #587085;
  --accent: #2C6488;
  --accent-hover: #1E4A66;
  --border: #CFDCE8;
  --border-strong: #9CB4C9;
  --error: #B42318;
  --success: #166534;

  /* Single approved typeface (no italics, max weight 700) */
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Strict B2 spacing scale */
  --s-0: 0px;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Strict Tailwind corner radii */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;

  /* Strict B7 motion curve */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover: 300ms;
  --dur-layout: 500ms;
  --dur-reveal: 700ms;

  --wrap: 1120px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--s-900);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg-chalk);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

.dither {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Accessibility: Skip link & focus rings */
.skip-link {
  position: fixed;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 200;
  padding: var(--s-75) var(--s-100);
  background: var(--ink-primary);
  color: var(--bg-chalk);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border-radius: var(--r-lg);
  transform: translateY(-96px);
  opacity: 0;
  transition: transform var(--dur-layout) var(--ease), opacity var(--dur-hover) var(--ease);
}

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

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

/* Container */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--s-400);
  padding-right: var(--s-400);
}

/* Floating Navigation Bar (B7 resting state + B3 nested radius: 12px outer - 4px pad = 8px inner) */
.nav-shell {
  position: fixed;
  top: var(--s-200);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-left: var(--s-200);
  padding-right: var(--s-200);
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-50);
  padding-left: var(--s-100);
  background: rgba(245, 247, 250, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: 0 2px 8px rgba(14, 34, 51, 0.06);
  max-width: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-75) var(--s-50) var(--s-25);
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  white-space: nowrap;
  transition: opacity var(--dur-hover) var(--ease);
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-link img,
.brand-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-50);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-body);
  white-space: nowrap;
  transition: background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}

.nav-link:hover {
  background: var(--bg-slate);
  color: var(--ink-primary);
}

.nav-link[aria-current="page"] {
  background: var(--bg-slate);
  color: var(--ink-primary);
  font-weight: 600;
}

/* Header & Primary Buttons (B1 & B2 exact tokens) */
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--ink-primary);
  color: var(--bg-chalk);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border: 1px solid var(--ink-primary);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}

.btn-header:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-header:active {
  transform: scale(0.98);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--ink-primary);
  color: var(--bg-chalk);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  border: 1px solid var(--ink-primary);
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-chalk);
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Mobile Menu Toggle (B7 animated line morph) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--ink-primary);
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease);
}

.nav-toggle:hover {
  background: var(--bg-slate);
}

.nav-toggle-lines {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-layout) var(--ease), opacity var(--dur-hover) var(--ease);
}

.nav-toggle-lines span:first-child {
  top: 2px;
}

.nav-toggle-lines span:last-child {
  top: 9px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Full-height Mobile Menu Panel (B7 staggered entrance, 60ms step, capped 400ms) */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(245, 247, 250, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--s-900) var(--s-400) var(--s-600);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-layout) var(--ease);
}

.mobile-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  margin-top: var(--s-400);
}

.mobile-nav-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-layout) var(--ease), transform var(--dur-layout) var(--ease);
}

.mobile-panel.open .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-panel.open .mobile-nav-item:nth-child(1) { transition-delay: 40ms; }
.mobile-panel.open .mobile-nav-item:nth-child(2) { transition-delay: 100ms; }
.mobile-panel.open .mobile-nav-item:nth-child(3) { transition-delay: 160ms; }
.mobile-panel.open .mobile-nav-item:nth-child(4) { transition-delay: 220ms; }
.mobile-panel.open .mobile-nav-item:nth-child(5) { transition-delay: 280ms; }
.mobile-panel.open .mobile-nav-item:nth-child(6) { transition-delay: 340ms; }

.mobile-nav-link {
  display: block;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  padding: var(--s-75) 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link[aria-current="page"] {
  color: var(--accent);
}

/* ============================================================
   HERO SECTION (Glacier Massif + Clean Left Architectural Space)
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg-chalk);
  padding-top: 144px;
  padding-bottom: var(--s-900);
  min-height: 700px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-plate {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 68%;
  max-width: 1120px;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 560px;
}

/* B5 light theme: left-to-right gradient on hero heading text only */
.hero-title {
  font-size: 60px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
  background: linear-gradient(90deg, #0E2233 0%, #244861 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--s-300);
}

.hero-sub {
  max-width: 460px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--ink-body);
  text-wrap: pretty;
  margin-bottom: var(--s-400);
}

.hero-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-200);
}

.hero-proof {
  max-width: 420px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ============================================================
   SECTIONS & EDITORIAL LEDGER ARCHITECTURE (NO CARD GRIDS)
   ============================================================ */
.band-chalk {
  background: var(--bg-chalk);
  padding-top: var(--s-900);
  padding-bottom: var(--s-900);
}

.band-slate {
  background: var(--bg-slate);
  padding-top: var(--s-900);
  padding-bottom: var(--s-900);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-600);
  align-items: end;
  margin-bottom: var(--s-700);
}

.section-title {
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  text-wrap: balance;
  max-width: 520px;
}

.section-lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-body);
  text-wrap: pretty;
  max-width: 520px;
}

/* Flat typographic ledger (replaces SaaS card grids) */
.ledger {
  border-top: 1px solid var(--border-strong);
}

.ledger-row {
  display: grid;
  grid-template-columns: 280px 1fr 160px;
  gap: var(--s-400);
  align-items: baseline;
  padding-top: var(--s-400);
  padding-bottom: var(--s-400);
  border-bottom: 1px solid var(--border);
}

.ledger-name {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.ledger-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-body);
  text-wrap: pretty;
  max-width: 560px;
}

.ledger-meta {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

.ledger-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}

.ledger-link:hover {
  color: var(--ink-primary);
  border-bottom-color: var(--ink-primary);
}

/* ============================================================
   MANDATORY B11 TAGLINE REVEAL SECTION
   ============================================================ */
.tagline-band {
  background: var(--bg-chalk);
  padding-top: var(--s-900);
  padding-bottom: var(--s-400);
}

.tagline-reveal {
  max-width: 680px;
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.tagline-reveal .rw {
  display: inline-block;
  margin-right: 0.24em;
  margin-bottom: 0.14em;
  opacity: 0.26;
  transition: opacity var(--dur-layout) var(--ease);
}

.tagline-reveal .rw.lit {
  opacity: 1;
}

.tagline-caption {
  margin-top: var(--s-400);
  max-width: 520px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ============================================================
   PANORAMIC GLACIER HORIZON VISUAL BREAK
   ============================================================ */
.horizon-band {
  background: var(--bg-chalk);
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.horizon-band-slate {
  background: var(--bg-slate);
  padding-top: var(--s-400);
  padding-bottom: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.horizon-img {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: block;
}

/* ============================================================
   ECOSYSTEM & TEAM TWO-COLUMN EDITORIAL LAYOUTS
   ============================================================ */
.split-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-700);
  align-items: start;
}

.prose-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-300);
}

.prose-stack p {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-body);
  text-wrap: pretty;
}

.fact-list {
  margin-top: var(--s-500);
  border-top: 1px solid var(--border-strong);
}

.fact-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-300);
  padding-top: var(--s-300);
  padding-bottom: var(--s-300);
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.fact-term {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-primary);
}

.fact-detail {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-body);
  text-wrap: pretty;
}

/* ============================================================
   OPEN ROLES INDEX (Flat Linked Rows)
   ============================================================ */
.role-row {
  display: grid;
  grid-template-columns: 1fr 200px 120px;
  gap: var(--s-300);
  align-items: center;
  padding-top: var(--s-300);
  padding-bottom: var(--s-300);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur-hover) var(--ease), padding-left var(--dur-layout) var(--ease);
}

.role-row:hover {
  background: var(--bg-surface);
  padding-left: var(--s-200);
  padding-right: var(--s-200);
}

.role-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink-primary);
}

.role-dept {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.role-action {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

/* ============================================================
   FAQ ACCORDION (Clean Accessible Details)
   ============================================================ */
.faq-list {
  border-top: 1px solid var(--border-strong);
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-top: var(--s-300);
  padding-bottom: var(--s-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink-primary);
  transition: color var(--dur-hover) var(--ease);
}

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

.faq-item summary:hover {
  color: var(--accent);
}

.faq-plus {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ink-muted);
  transition: transform var(--dur-layout) var(--ease), color var(--dur-hover) var(--ease);
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-body {
  padding-bottom: var(--s-400);
  max-width: 680px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-body);
  text-wrap: pretty;
}

/* ============================================================
   CONTACT PANEL & VALIDATED FORM (B3 Nested Radii + B9 States)
   ============================================================ */
.contact-panel {
  background: var(--bg-chalk);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: var(--s-400);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-200);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
  margin-bottom: var(--s-200);
}

.field label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-primary);
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--s-100);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  transition: border-color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--accent);
}

.field input:focus,
.field textarea:focus {
  background: var(--bg-surface);
  border-color: var(--ink-primary);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field-error {
  font-size: 14px;
  line-height: 20px;
  color: var(--error);
  min-height: 20px;
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--error);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  flex-wrap: wrap;
  margin-top: var(--s-200);
  padding-top: var(--s-300);
  border-top: 1px solid var(--border);
}

.form-status {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.form-status.ok {
  color: var(--success);
  font-weight: 600;
}

.form-status.err {
  color: var(--error);
  font-weight: 600;
}

.direct-mail {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  flex-wrap: wrap;
  margin-top: var(--s-400);
  padding-top: var(--s-300);
  border-top: 1px solid var(--border);
}

.mail-address {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink-primary);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), transform var(--dur-hover) var(--ease);
}

.copy-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.copy-btn:active {
  transform: scale(0.98);
}

/* ============================================================
   SUBPAGE HEADERS (Careers, Role Detail, Brandkit, Legal, 404)
   ============================================================ */
.page-head {
  background: var(--bg-chalk);
  padding-top: 144px;
  padding-bottom: var(--s-700);
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s-300);
  transition: color var(--dur-hover) var(--ease);
}

.back-link:hover {
  color: var(--ink-primary);
}

.page-title {
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  text-wrap: balance;
  max-width: 680px;
  margin-bottom: var(--s-300);
}

.page-sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-body);
  max-width: 640px;
  text-wrap: pretty;
}

.role-content {
  max-width: 680px;
}

.role-content h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-top: var(--s-600);
  margin-bottom: var(--s-200);
}

.role-content h2:first-child {
  margin-top: 0;
}

.role-content p {
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-body);
  margin-bottom: var(--s-200);
  text-wrap: pretty;
}

.role-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
  margin-bottom: var(--s-300);
}

.role-bullets li {
  position: relative;
  padding-left: var(--s-300);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-body);
  text-wrap: pretty;
}

.role-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1.5px;
  background: var(--accent);
}

/* Brand kit palette & asset rows */
.swatch-ledger {
  border-top: 1px solid var(--border-strong);
}

.swatch-row {
  display: grid;
  grid-template-columns: 64px 200px 152px 1fr;
  gap: var(--s-300);
  align-items: center;
  padding-top: var(--s-200);
  padding-bottom: var(--s-200);
  border-bottom: 1px solid var(--border);
}

.swatch-box {
  width: 48px;
  height: 32px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
}

.hex-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-100);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease);
}

.hex-copy:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
  background: var(--bg-chalk);
}

.logo-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-300);
}

.logo-tile {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-400);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-300);
}

.logo-tile.dark {
  background: #0E2233;
  color: #F5F7FA;
  border-color: #244861;
}

.logo-tile.light {
  background: var(--bg-surface);
  color: var(--ink-primary);
}

.tile-actions {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  flex-wrap: wrap;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: #1B364D;
  color: #F5F7FA;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border: 1px solid #2C6488;
  cursor: pointer;
  transition: background-color var(--dur-hover) var(--ease), border-color var(--dur-hover) var(--ease);
}

.btn-dark:hover {
  background: #2C6488;
  border-color: #5FA2C9;
}

.mark-ledger {
  margin-top: var(--s-500);
  border-top: 1px solid var(--border-strong);
}

.mark-row {
  display: grid;
  grid-template-columns: 64px 220px 1fr auto;
  gap: var(--s-300);
  align-items: center;
  padding-top: var(--s-300);
  padding-bottom: var(--s-300);
  border-bottom: 1px solid var(--border);
}

.mark-well {
  width: 56px;
  height: 56px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mark-well.dark {
  background: #0E2233;
  border-color: #244861;
}

.type-ledger {
  border-top: 1px solid var(--border-strong);
}

.type-row {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: var(--s-400);
  align-items: baseline;
  padding-top: var(--s-400);
  padding-bottom: var(--s-400);
  border-bottom: 1px solid var(--border);
}

.type-meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.type-spec {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--accent);
  text-align: right;
}

.plate-preview {
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--bg-chalk);
}

.plate-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  flex-wrap: wrap;
  padding: var(--s-200) var(--s-300);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.guide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-600);
}

.guide-col {
  border-top: 1px solid var(--border-strong);
  padding-top: var(--s-300);
}

.guide-col h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: var(--s-300);
}

/* ============================================================
   FOOTER (Calm Asymmetric Single-Row Architecture)
   ============================================================ */
.site-footer {
  background: var(--bg-chalk);
  border-top: 1px solid var(--border);
  padding-top: var(--s-600);
  padding-bottom: var(--s-600);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-600);
  flex-wrap: wrap;
  padding-bottom: var(--s-500);
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
  max-width: 360px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.footer-nav {
  display: flex;
  gap: var(--s-700);
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-100);
}

.footer-col-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink-primary);
}

.footer-link {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-body);
  transition: color var(--dur-hover) var(--ease);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  flex-wrap: wrap;
  padding-top: var(--s-300);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}

.footer-legal {
  display: flex;
  gap: var(--s-300);
}

/* ============================================================
   SCROLL REVEAL (B7: 32px rise, 700ms base curve, one-time)
   ============================================================ */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}

.js-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal] {
    transform: none;
    transition: opacity var(--dur-hover) ease;
  }
  .tagline-reveal .rw {
    opacity: 1;
  }
  .mobile-nav-item {
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 960px) {
  .hero {
    min-height: 580px;
    padding-top: 120px;
    padding-bottom: 220px;
  }
  .hero-plate {
    width: 100%;
  }
  .hero-title {
    font-size: 48px;
    line-height: 1;
  }
  .section-header,
  .split-grid,
  .logo-stage {
    grid-template-columns: 1fr;
    gap: var(--s-400);
  }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: var(--s-100);
  }
  .ledger-meta {
    text-align: left;
  }
  .role-row {
    grid-template-columns: 1fr auto;
  }
  .role-dept {
    grid-column: 1;
  }
  .swatch-row {
    grid-template-columns: 48px 1fr;
  }
  .mark-row {
    grid-template-columns: 56px 1fr;
  }
  .type-row {
    grid-template-columns: 1fr;
    gap: var(--s-100);
  }
  .type-spec {
    text-align: left;
  }
  .guide-columns {
    grid-template-columns: 1fr;
    gap: var(--s-500);
  }
}

@media (max-width: 760px) {
  .wrap {
    padding-left: var(--s-300);
    padding-right: var(--s-300);
  }
  .nav-bar {
    width: 100%;
    justify-content: space-between;
  }
  .nav-links,
  .nav-desktop-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero {
    padding-top: 112px;
    padding-bottom: 200px;
  }
  .hero-title {
    font-size: 36px;
    line-height: 40px;
  }
  .hero-sub {
    font-size: 18px;
    line-height: 28px;
  }
  .section-title {
    font-size: 30px;
    line-height: 36px;
  }
  .tagline-reveal {
    font-size: 36px;
    line-height: 40px;
  }
  .page-title {
    font-size: 36px;
    line-height: 40px;
  }
  .band-chalk,
  .band-slate,
  .tagline-band {
    padding-top: var(--s-700);
    padding-bottom: var(--s-700);
  }
  .form-grid,
  .fact-item {
    grid-template-columns: 1fr;
    gap: var(--s-75);
  }
}
