/* Veltstein Partners AG — Editorial Annual Design System
 * Built according to tasteskill v2 guidelines.
 * Strict anti-slop: no hairlines, no resting shadows, no gradients, no monospace outside code.
 */

:root {
  /* Palette: Signal red, white */
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-hover: #eaeaea;
  --surface-alt: #ecebe6;
  --ink: #0a0a0a;
  --muted: #3a3a3a;
  --subtle: #666666;
  --accent: #b11226; /* Darkened for strict 5:1+ contrast compliance */
  --accent-ink: #ffffff;
  
  /* Dark Chapter Palette */
  --dark-bg: #0a0a0a;
  --dark-surface: #141414;
  --dark-surface-alt: #1a1a1a;
  --dark-ink: #efefef;
  --dark-muted: #a6a6a6; /* High contrast on #0a0a0a (>7:1) */
  
  /* Typography: Schibsted Grotesk */
  --font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display-weight: 800;
  --font-text-weight: 400;
  --font-medium-weight: 600;
  
  /* Standard 6-step Type Scale */
  --step-small: 13.5px;
  --step-body: 16px;
  --step-lead: clamp(18px, 1.4vw, 20px);
  --step-subhead: clamp(22px, 1.8vw, 24px);
  --step-head: clamp(28px, 2.5vw, 40px);
  --step-display: clamp(3.5rem, 8.3vw, 7.5rem);
  
  /* Grid & Geometry */
  --axis: 42%;
  --gutter: 24px;
  --margin: clamp(16px, 2.5vw, 40px);
  --max-width: 1440px;
  --section-gap: clamp(110px, 12vw, 180px);
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: clip;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration-skip-ink: auto;
  text-underline-offset: 3px;
}

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

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  font-weight: 600;
  z-index: 1000;
  transition: transform 0.2s ease-out;
}

.skip-link:focus {
  top: 16px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* --------------------------------------------------
   HERO: Mosaic masthead, title on axis
   -------------------------------------------------- */

.hero-masthead {
  position: relative;
  width: 100%;
  background: var(--bg);
}

/* Masthead Band: Top 52vh on desktop */
.masthead-band {
  width: 100%;
  height: 52svh;
  min-height: 380px;
  max-height: 560px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  background: var(--dark-bg);
  position: relative;
}

.mosaic-cell {
  position: relative;
  overflow: hidden;
}

.mosaic-cell picture {
  display: block;
  width: 100%;
  height: 100%;
}

.mosaic-cell img,
.mosaic-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform 0.8s ease-out, filter 0.5s ease-out;
}

.mosaic-cell:hover img,
.mosaic-cell:hover video {
  transform: scale(1.03);
  filter: grayscale(0.7) contrast(1.08);
}

/* Spans in Mosaic */
.cell-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.cell-2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.cell-3 {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
  background: var(--surface);
}

.cell-4 {
  grid-column: 5 / 7;
  grid-row: 1 / 2;
}

.cell-5 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  background: var(--dark-bg);
}

.cell-6 {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
}

.cell-7 {
  grid-column: 5 / 6;
  grid-row: 2 / 3;
}

.cell-8 {
  grid-column: 6 / 7;
  grid-row: 2 / 3;
  background: var(--accent);
}

/* Header lies flush on band upper edge */
.masthead-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: stretch;
  z-index: 50;
  height: 64px;
}

.wordmark-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--dark-bg);
  color: #ffffff;
  padding: 0 clamp(16px, 2vw, 32px);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--step-lead);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-white-disc {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-white-disc img {
  width: 24px;
  height: 24px;
  display: block;
}

.header-nav-tab {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  padding-inline: clamp(20px, 2.5vw, 36px);
  width: calc(var(--axis) - 180px);
  min-width: 260px;
}

.nav-item {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step-body);
  font-weight: 600;
  transition: opacity 0.2s ease-out;
}

.nav-item:hover {
  opacity: 0.65;
}

.mobile-nav-cta {
  display: none !important;
}

.header-action-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-right: clamp(16px, 2.5vw, 40px);
}

.header-action-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step-small);
  text-decoration: none;
  transition: transform 0.2s ease-out, background 0.2s ease-out, color 0.2s ease-out;
}

.header-action-link:hover {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--dark-bg);
  border: none;
  color: #ffffff;
  width: 48px;
  height: 48px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 70;
}

.mobile-nav-toggle .icon-close {
  display: none;
}

.mobile-nav-toggle[aria-expanded="true"] .icon-hamburger {
  display: none;
}

.mobile-nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Hero Content Below Band */
.hero-content-row {
  display: flex;
  padding-top: clamp(32px, 3.5vw, 48px);
  padding-bottom: clamp(48px, 5vw, 72px);
  align-items: flex-start;
}

.hero-standfirst-zone {
  width: clamp(280px, 26vw, 360px);
  padding-right: clamp(28px, 2.5vw, 40px);
  flex-shrink: 0;
}

.hero-standfirst {
  font-size: var(--step-lead);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  max-width: 30ch;
}

.hero-city-tag {
  margin-top: 20px;
  font-size: var(--step-small);
  color: var(--muted);
  font-weight: 600;
}

.hero-title-zone {
  flex: 1;
}

.hero-headline {
  font-size: var(--step-display);
  font-weight: var(--font-display-weight);
  letter-spacing: -0.05em;
  line-height: 1.0;
  color: var(--ink);
  text-transform: none;
}

.hero-headline .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  white-space: nowrap;
}

.hero-headline .line-inner {
  display: block;
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-action-group {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: var(--ink);
  color: #ffffff;
  font-size: var(--step-body);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.hero-sub-action {
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  transition: color 0.2s ease-out;
}

.hero-sub-action:hover {
  color: var(--ink);
}

/* --------------------------------------------------
   SECTION 1: Intro lead over four columns
   -------------------------------------------------- */

.section-intro {
  padding-top: clamp(80px, 9vw, 130px);
  padding-bottom: clamp(96px, 10vw, 140px);
  background: var(--bg);
}

.intro-lead {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  max-width: 58ch;
}

.intro-archival-plate {
  margin-top: 48px;
  background: var(--surface);
  overflow: hidden;
}

.intro-plate-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 460px;
  overflow: hidden;
}

.intro-plate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  display: block;
}

.intro-plate-meta {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: var(--step-small);
  color: var(--muted);
}

.intro-plate-label {
  font-weight: 600;
  color: var(--ink);
}

.intro-plate-coord {
  font-variant-numeric: tabular-nums;
}

.intro-four-cols {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.intro-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.intro-col-title {
  font-size: var(--step-subhead);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}

.intro-col-text {
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* --------------------------------------------------
   SECTION 2: Fixed output, live controls (The Live Thing)
   -------------------------------------------------- */

.section-features-split {
  position: relative;
  background: var(--bg);
}

.split-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Sticky Output Field (Left 50%) */
.sticky-output-column {
  position: sticky;
  top: 0;
  height: 100svh;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

/* Term Sheet Root marked data-ui */
.mandate-deed {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  padding: 36px;
  color: var(--ink);
}

.deed-header {
  margin-bottom: 24px;
}

.deed-seal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.deed-brand {
  font-size: var(--step-small);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.deed-code {
  font-size: var(--step-small);
  color: var(--muted);
}

.deed-title {
  font-size: var(--step-subhead);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 6px;
}

.deed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-top: 24px;
  margin-bottom: 28px;
}

.deed-param-label {
  font-size: var(--step-small);
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.deed-param-val {
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--ink);
}

.deed-param-val.accent {
  color: var(--accent);
}

.deed-footer {
  margin-top: 20px;
  padding-top: 20px;
  background: var(--surface);
  padding: 16px;
}

.deed-footnote {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.45;
}

.deed-action {
  margin-top: 14px;
}

.btn-deed {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: var(--ink);
  color: #ffffff;
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease-out;
}

.btn-deed:hover {
  background: var(--accent);
}

/* Reading & Controls Column (Right 50%) */
.controls-column {
  padding: clamp(64px, 8vw, 100px) clamp(32px, 5vw, 80px);
  max-width: 620px;
}

.section-title {
  font-size: var(--step-head);
  font-weight: var(--font-display-weight);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 56px;
}

.capability-block {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.capability-title {
  font-size: var(--step-subhead);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.capability-desc {
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 24px;
}

/* Segmented Choice Controls */
.control-segmented {
  display: flex;
  background: var(--surface);
  padding: 4px;
  gap: 4px;
  max-width: 480px;
}

.control-segmented button {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}

.control-segmented button.active {
  background: #ffffff;
  color: var(--ink);
}

/* Range Slider Control */
.control-range-wrapper {
  max-width: 480px;
}

.slider-val-readout {
  display: flex;
  justify-content: space-between;
  font-size: var(--step-small);
  font-weight: 600;
  margin-bottom: 10px;
}

.range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface-hover);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease-out;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent);
}

/* --------------------------------------------------
   SECTION 3: Call and response column (How it works)
   -------------------------------------------------- */

.section-protocol {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  background: var(--bg);
}

.protocol-container {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.protocol-context-col {
  width: var(--axis);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.protocol-context-title {
  font-size: var(--step-subhead);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}

.protocol-context-desc {
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
}

.protocol-visual-frame {
  background: var(--surface);
  overflow: hidden;
}

.protocol-visual-frame picture {
  display: block;
  width: 100%;
}

.protocol-visual-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.protocol-visual-caption {
  padding: 16px;
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.45;
}

.protocol-stat-pill {
  background: var(--surface);
  padding: 24px;
}

.stat-pill-label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-pill-val {
  font-size: var(--step-lead);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.stat-pill-sub {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.45;
}

.protocol-content {
  flex: 1;
  max-width: 680px;
}

.protocol-heading {
  font-size: var(--step-head);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  color: var(--ink);
}

.exchange-group {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.exchange-item {
  display: flex;
  flex-direction: column;
}

.exchange-lead {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.exchange-lead-icon {
  width: 32px;
  height: 32px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}

.exchange-call {
  background: var(--surface);
  padding: 22px 28px;
  color: var(--ink);
  font-size: var(--step-body);
  line-height: 1.5;
}

.exchange-call-meta {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.exchange-response {
  margin-top: 14px;
  margin-left: 48px;
  background: var(--surface-alt);
  padding: 22px 28px;
}

.exchange-response-breakout {
  margin-top: 14px;
  margin-left: 48px;
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: 28px 32px;
  width: auto;
  max-width: 100%;
}

.response-badge {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.response-title {
  font-size: var(--step-body);
  font-weight: 600;
  margin-bottom: 6px;
}

.response-desc {
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
}

.exchange-response-breakout .response-badge {
  color: #ffffff;
  font-weight: 700;
}

.exchange-response-breakout .response-desc {
  color: var(--dark-muted);
}

/* --------------------------------------------------
   SECTION 4: Accreditation & Registry (Proof as Table)
   -------------------------------------------------- */

.section-proof-table {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.proof-heading {
  font-size: var(--step-head);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 64px;
  color: var(--dark-ink);
}

.proof-heading .indented-line {
  display: block;
  margin-left: clamp(24px, 8vw, 120px);
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-body);
  line-height: 1.4;
}

.registry-table th {
  text-align: left;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--dark-muted);
  padding: 16px 20px;
}

.registry-table td {
  padding: 18px 20px;
  vertical-align: middle;
}

.registry-table tbody tr:nth-child(even) {
  background: var(--dark-surface);
}

.td-year {
  font-weight: 600;
  color: var(--dark-muted);
  width: 12%;
}

.td-institution {
  font-weight: 600;
  color: var(--dark-ink);
  width: 38%;
}

.td-statute {
  color: var(--dark-muted);
  width: 32%;
}

.td-status {
  text-align: right;
  color: #ffffff;
  font-weight: 600;
  width: 18%;
}

/* --------------------------------------------------
   SECTION 5: Contact — Sentence, portrait, two links
   -------------------------------------------------- */

.section-contact-band {
  padding-top: var(--section-gap);
  padding-bottom: clamp(96px, 10vw, 140px);
  background: var(--bg);
}

.contact-band-grid {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: 32px;
  align-items: start;
}

.contact-sentence {
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  max-width: 32ch;
}

.contact-portrait-col {
  grid-column: 3 / 4;
}

.contact-portrait {
  width: 160px;
  height: 160px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.contact-links-col {
  grid-column: 4 / 5;
}

.contact-inquiry-prompt {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}

.contact-stacked-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.contact-lead-link {
  font-size: var(--step-lead);
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  transition: color 0.15s ease-out;
}

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

.contact-meta-line {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.4;
}

/* Direct Inquiry Contact Form Container */
.direct-form-wrapper {
  margin-top: 80px;
  background: var(--surface);
  padding: clamp(32px, 5vw, 64px);
  max-width: 860px;
}

.form-title {
  font-size: var(--step-subhead);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: var(--step-body);
  color: var(--muted);
  margin-bottom: 32px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  font-size: var(--step-body);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s ease-out;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ink);
}

.form-submit-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-status {
  font-size: var(--step-small);
  font-weight: 600;
}

.form-status.success {
  color: #1a7f37;
}

.form-status.error {
  color: var(--accent);
}

/* --------------------------------------------------
   FOOTER: Designed Close
   -------------------------------------------------- */

.site-footer {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding-top: 100px;
  padding-bottom: 64px;
}

.footer-monument {
  font-size: clamp(48px, 12vw, 150px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--dark-ink);
  margin-bottom: 48px;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
  font-size: var(--step-body);
  color: var(--dark-muted);
}

.footer-col-address strong {
  color: var(--dark-ink);
  display: block;
  margin-bottom: 6px;
}

.footer-col-nav a {
  display: block;
  color: var(--dark-ink);
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 600;
}

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

.footer-credits {
  font-size: var(--step-small);
  line-height: 1.5;
  color: var(--dark-muted);
  padding-top: 32px;
  margin-top: 32px;
}

.footer-credits a {
  color: var(--dark-ink);
}

.footer-bottom-row {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: var(--step-small);
  color: var(--dark-muted);
}

/* --------------------------------------------------
   MOTION LAYER (Taste-skill Step 9)
   Masked reveals, staggered entrance, control feedback
   -------------------------------------------------- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 60ms; }
.delay-2 { transition-delay: 120ms; }
.delay-3 { transition-delay: 180ms; }
.delay-4 { transition-delay: 240ms; }

/* Control hover / active feedback */
.btn-primary:active,
.header-action-link:active,
.btn-deed:active {
  transform: translateY(0) scale(0.98);
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-headline .line-inner {
    transform: none !important;
  }
}

/* --------------------------------------------------
   RESPONSIVE LAYOUTS (Tablet: 768px, Mobile: 390px)
   -------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --axis: 0%;
  }

  .masthead-band {
    height: 42svh;
    grid-template-columns: repeat(4, 1fr);
  }

  .cell-1 { grid-column: 1 / 3; }
  .cell-2 { grid-column: 3 / 4; }
  .cell-3 { display: none; }
  .cell-4 { grid-column: 4 / 5; }
  .cell-5 { display: none; }
  .cell-6 { grid-column: 1 / 3; }
  .cell-7 { grid-column: 3 / 5; }
  .cell-8 { display: none; }

  .masthead-header {
    justify-content: space-between;
  }

  .header-nav-tab {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    min-width: 100%;
    height: calc(100dvh - 64px);
    background: var(--dark-bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(32px, 6vw, 48px) var(--margin);
    gap: 24px;
    z-index: 100;
  }

  .header-nav-tab.is-open {
    display: flex;
  }

  .header-nav-tab .nav-item {
    color: var(--dark-ink);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
    padding: 8px 0;
    width: 100%;
    text-decoration: none;
  }

  .header-nav-tab .nav-item:hover {
    color: #ffffff;
  }

  .header-nav-tab .mobile-nav-cta {
    margin-top: 16px;
    color: var(--accent);
    text-decoration: underline;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 101;
  }

  .header-action-wrapper {
    margin-left: 0;
    padding-right: var(--margin);
  }

  .hero-content-row {
    flex-direction: column-reverse;
    gap: 36px;
    padding-top: 48px;
  }

  .hero-standfirst-zone {
    width: 100%;
    padding-right: 0;
  }

  .intro-four-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-top: 40px;
  }

  .intro-col {
    background: transparent;
    padding: 0;
  }

  .split-wrapper {
    grid-template-columns: 1fr;
  }

  .sticky-output-column {
    position: relative;
    height: auto;
    padding: 32px 16px;
  }

  .controls-column {
    padding: 48px 16px;
    max-width: 100%;
  }

  .capability-block {
    min-height: auto;
    margin-bottom: 48px;
  }

  .protocol-container {
    flex-direction: column;
  }

  .protocol-context-col {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .exchange-response,
  .exchange-response-breakout {
    margin-left: 0;
    width: 100%;
  }

  .contact-band-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-sentence {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .contact-portrait-col {
    grid-column: 1 / 2;
  }

  .contact-links-col {
    grid-column: 2 / 3;
  }

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

@media (max-width: 600px) {
  :root {
    --margin: 16px;
    --step-display: clamp(2.25rem, 10vw, 3rem);
    --section-gap: 80px;
  }

  .hero-headline {
    font-size: var(--step-display);
    line-height: 1.04;
  }

  .hero-action-group {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 24px;
  }

  .hero-action-group .btn-primary {
    width: 100%;
    text-align: center;
  }

  .hero-sub-action {
    display: inline-block;
    padding: 6px 0;
  }

  .header-action-wrapper {
    display: none;
  }

  .mobile-nav-toggle {
    margin-left: auto;
  }

  .masthead-band {
    height: 36svh;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .cell-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
  .cell-4 { grid-column: 2 / 3; grid-row: 1 / 2; }
  .cell-6 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .cell-7 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .cell-2, .cell-3, .cell-5, .cell-8 { display: none; }

  .intro-archival-plate {
    margin-top: 36px;
  }

  .intro-plate-media {
    aspect-ratio: 16 / 10;
  }

  .intro-plate-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
  }

  .intro-four-cols {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
  }

  .intro-col {
    background: transparent;
    padding: 0;
    gap: 8px;
  }

  .section-intro {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .mandate-deed {
    padding: 24px 18px;
  }

  .deed-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .control-segmented {
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
  }

  .control-segmented button {
    flex: 1 1 calc(50% - 4px);
    min-height: 42px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.25;
    text-align: center;
  }

  .proof-heading .indented-line {
    margin-left: 0;
  }

  .registry-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .registry-table th,
  .registry-table td {
    padding: 14px 12px;
    font-size: 14px;
  }

  .th-statute,
  .td-statute {
    display: none;
  }

  .td-year {
    width: 25%;
  }

  .td-institution {
    width: 45%;
  }

  .td-status {
    width: 30%;
  }

  .contact-sentence {
    font-size: 20px;
    line-height: 1.35;
  }

  .contact-band-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-portrait-col {
    grid-column: 1 / -1;
  }

  .contact-portrait {
    width: 120px;
    height: 120px;
  }

  .contact-links-col {
    grid-column: 1 / -1;
  }

  .direct-form-wrapper {
    padding: 24px 18px;
    margin-top: 48px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .form-submit-row .btn-primary {
    width: 100%;
  }

  .footer-monument {
    font-size: clamp(40px, 14vw, 72px);
    margin-bottom: 32px;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 8px;
  }
}

/* --------------------------------------------------
   CREDITS PAGE STYLES
   -------------------------------------------------- */

.credits-header {
  border-bottom: none;
  background: var(--dark-bg);
  padding: 18px 0;
}

.credits-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.credits-page-main {
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(80px, 9vw, 120px);
}

.credits-intro-zone {
  max-width: 820px;
  margin-bottom: 72px;
}

.credits-headline {
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 24px;
}

.credits-lead {
  font-size: var(--step-lead);
  line-height: 1.45;
  color: var(--ink);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}

.credit-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.credit-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dark-bg);
}

.credit-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.credit-media img,
.credit-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.credit-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credit-title {
  font-size: var(--step-subhead);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.credit-meta {
  font-size: var(--step-body);
  color: var(--ink);
  line-height: 1.45;
}

.credit-attribution,
.credit-license {
  font-size: var(--step-small);
  color: var(--muted);
  line-height: 1.45;
}

.credit-license a {
  color: var(--ink);
  text-decoration: underline;
}

.credits-return-group {
  margin-top: 48px;
}

@media (max-width: 768px) {
  .credits-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .credits-intro-zone {
    margin-bottom: 48px;
  }

  .credits-header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .credits-headline {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    margin-bottom: 16px;
  }

  .credit-body {
    padding: 20px 16px;
  }
}

/* Commonstake US adaptation: preserve the editorial axis and archive mosaic. */
@font-face{font-family:'Schibsted Grotesk';src:url('/assets/schibsted-grotesk-variable.ttf') format('truetype');font-style:normal;font-weight:400 900;font-display:swap}
html{scroll-behavior:smooth;scroll-padding-top:32px;scrollbar-color:var(--accent) var(--surface)}
::selection{background:var(--accent);color:#fff}
input,textarea{caret-color:var(--accent)}
a,button,input,textarea,summary{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:5px}
.hero-headline,.footer-monument{letter-spacing:-.04em}
.reveal-on-scroll{opacity:1;transform:none}
.control-segmented{flex-wrap:wrap}
.control-segmented button{min-height:44px}
.contact-lead-link,.footer-col-nav a{overflow-wrap:anywhere}
.header-nav-tab{width:auto;min-width:0;flex-wrap:wrap;gap:12px 26px}
.nav-item{min-height:44px;display:inline-flex;align-items:center}
.motion-control{margin-top:20px;background:transparent;border:0;border-bottom:1px solid currentColor;padding:7px 0;font-size:14px;cursor:pointer;min-height:44px}
[hidden]{display:none!important}
#summary-status{font-size:14px;font-weight:400;line-height:1.5;margin-top:16px}
.form-privacy{grid-column:1/-1;font-size:14px;max-width:65ch;margin-top:10px}
.form-status{max-width:48ch;line-height:1.5}
.form-status.success{color:#145b2b}
.form-submit-row{gap:24px;align-items:flex-start}
button:disabled{cursor:wait;opacity:.65}
.footer-monument{font-size:clamp(40px,10.7vw,144px);overflow-wrap:anywhere}
.footer-credits{display:flex;flex-wrap:wrap;gap:24px}
.reading-header{display:flex;align-items:stretch;justify-content:space-between;min-height:72px;border-bottom:1px solid #ccc}
.reading-header .wordmark-block{min-height:72px}
.reading-header nav{display:flex;align-items:center;flex-wrap:wrap;gap:10px 28px;padding:12px var(--margin)}
.reading-header nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:15px}
.reading-header nav a:hover{text-decoration:underline}
.reading-page{max-width:1440px;margin:auto;padding:80px var(--margin) 120px}
.reading-intro{display:grid;grid-template-columns:42% 58%;align-items:end;gap:0;padding-bottom:70px;border-bottom:1px solid #b7b7b7}
.reading-intro h1{grid-column:2;font-size:clamp(42px,5.4vw,78px);line-height:1.03;letter-spacing:-.04em;font-weight:800;text-wrap:balance;max-width:15ch}
.reading-intro>p{grid-column:2;font-size:20px;line-height:1.55;max-width:55ch;margin-top:32px}
.reading-layout{display:grid;grid-template-columns:42% 58%;padding-top:55px}
.reading-layout>aside{padding-right:60px;align-self:start;display:grid;gap:18px;font-size:15px;max-width:35ch}
.reading-layout>aside>p{font-weight:600}
.reading-copy{max-width:72ch;font-size:18px;line-height:1.65}
.reading-copy section+section{margin-top:64px}
.reading-copy h2{font-size:clamp(26px,2.3vw,34px);line-height:1.18;letter-spacing:-.025em;font-weight:600;margin-bottom:20px;text-wrap:balance}
.reading-copy h3{font-size:21px;line-height:1.3;margin-bottom:16px;font-weight:600}
.reading-copy p+p,.reading-copy p+ul,.reading-copy ul+p{margin-top:20px}
.reading-copy li{margin:10px 0 10px 22px}
.reading-note{background:var(--surface-alt);padding:28px;margin:32px 0}
.reading-note dt{font-weight:600;margin-top:18px}
.reading-note dd{margin-top:5px}
.reading-table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.55;margin:28px 0}
.reading-table th,.reading-table td{padding:18px 14px;text-align:left;vertical-align:top;border-bottom:1px solid #aaa}
.reading-table thead{background:var(--ink);color:#fff}
.reading-table tbody th{font-weight:600;width:35%}
.reading-end{padding-top:38px;border-top:1px solid #b7b7b7}
.legal-intro h1{max-width:none}
.credits-lead{max-width:65ch}
@media(max-width:1024px){.header-nav-tab{width:100%;gap:16px;flex-wrap:nowrap}.header-nav-tab .nav-item{color:#fff}.reading-header{flex-direction:column;align-items:flex-start}.reading-header nav{width:100%;gap:8px 24px}.reading-page{padding-top:55px}.reading-intro,.reading-layout{grid-template-columns:28% 72%}.reading-layout>aside{padding-right:30px}.reading-intro h1,.reading-intro>p{grid-column:2}}
@media(max-width:700px){.masthead-header .wordmark-block{padding:0 16px;gap:10px;font-size:18px}.logo-white-disc{width:32px;height:32px}.footer-monument{font-size:13vw}.reading-page{padding:42px 20px 75px}.reading-intro,.reading-layout{display:block}.reading-intro{padding-bottom:38px}.reading-intro h1{font-size:43px;max-width:17ch}.reading-intro>p{font-size:18px;margin-top:24px}.reading-layout{padding-top:30px}.reading-layout>aside{padding:0;margin-bottom:44px;gap:12px;max-width:none}.reading-copy{font-size:17px}.reading-copy section+section{margin-top:46px}.reading-table th,.reading-table td{padding:14px 8px;font-size:15px}.reading-note{padding:22px}.reading-header nav{gap:4px 18px}.registry-table .td-status a{display:inline-block;min-height:44px}.header-nav-tab .mobile-nav-cta{display:inline-flex!important;color:#fff}.form-submit-row{align-items:stretch}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal-on-scroll{opacity:1;transform:none}}

/* Bounded review corrections for the longer American name and contact. */
.deed-seal{flex-wrap:wrap;gap:8px 18px}
.contact-lead-link{font-size:18px}
@media(max-width:700px){.footer-monument{font-size:10.4vw;white-space:nowrap}}
/* Specific confirmation defects: fit the address and retain the slider graphic with a usable hit area. */
.contact-lead-link{font-size:16px;white-space:nowrap;overflow-wrap:normal}
.range-slider{height:44px;background:transparent;touch-action:pan-y}
.range-slider::-webkit-slider-runnable-track{height:6px;background:var(--surface-hover)}
.range-slider::-webkit-slider-thumb{margin-top:-8px}
.range-slider::-moz-range-track{height:6px;background:var(--surface-hover)}
.range-slider::-moz-range-thumb{width:22px;height:22px;background:var(--ink);border:0;border-radius:0}
/* Approved Commonstake logo 1: original colors, no filtering or red inversion. */
.masthead-header{height:110px}
.wordmark-block{background:#fff;padding:8px 20px;gap:0}
.approved-wordmark{display:block;width:310px;height:auto;max-width:100%;filter:none}
.reading-header .wordmark-block{min-height:110px}
@media(max-width:700px){.masthead-header{height:100px}.masthead-header .wordmark-block,.reading-header .wordmark-block{padding:6px 12px}.approved-wordmark{width:270px}.reading-header .wordmark-block{min-height:100px}.header-nav-tab{top:100px;height:calc(100dvh - 100px)}}
.footer-approved-brand{display:block;width:min(100%,1000px);margin-bottom:60px;text-decoration:none}
.footer-approved-brand img{display:block;width:100%;height:auto;filter:none}
@media(max-width:700px){.footer-approved-brand{margin-bottom:38px}}

.owner-reading-links{max-width:75ch;font-size:17px;line-height:1.6;margin-top:34px}.owner-reading-links a{text-decoration:underline;text-underline-offset:4px}.reading-copy>p:first-child{font-size:20px;line-height:1.6;margin-bottom:44px}.reading-copy>section+p{margin-top:42px}.reading-copy>section:first-child{margin-top:0}@media(max-width:700px){.owner-reading-links{font-size:16px}.reading-copy>p:first-child{font-size:18px}}
