:root {
  --bg-canvas: #f3e9d8;
  --bg-surface: #fffaf1;
  --bg-surface-hover: #efe2cc;
  --text-primary: #262626;
  --text-muted: #524d47;
  --accent-primary: #a4442d;
  --accent-secondary: #823320;
  --border-subtle: #dccdb5;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -6px rgba(38, 38, 38, 0.14);
  --glow-accent: 0 0 0 3px rgba(164, 68, 45, 0.18);
  --radius-sharp: 4px;
  --radius-pill: 999px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.72;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sharp);
  object-fit: cover;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: 0;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.4rem);
  margin-bottom: 0.65rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-thickness 0.2s var(--ease-kinetic), color 0.2s var(--ease-kinetic);
}

a:hover {
  color: var(--accent-secondary);
  text-decoration-thickness: 2.5px;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
  hyphens: none;
}

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

button {
  white-space: normal;
  word-break: normal;
  hyphens: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-primary);
  color: var(--bg-surface);
  padding: 0.6rem 1rem;
  z-index: 200;
  border-radius: var(--radius-sharp);
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.reading-col {
  width: 100%;
  max-width: 70ch;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

.reading-col > h2:not(:first-child) {
  margin-top: 2.5rem;
}

.hero-grid > *,
.card-grid > *,
.footer-grid > *,
.footer-meta > *,
.header-shell > * {
  min-width: 0;
}

/* Header */
.site-header {
  position: relative;
  padding: 1.15rem 0;
  background-color: var(--bg-canvas);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem 0.55rem 0.6rem;
  box-shadow: 0 6px 20px -8px rgba(38, 38, 38, 0.12);
}

.brand-inset {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem 0.4rem 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  hyphens: none;
}

.brand-inset:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.desktop-nav a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}

.desktop-nav a[aria-current="page"] {
  color: var(--accent-primary);
  text-decoration-thickness: 2.5px;
}

.mobile-menu-btn {
  display: none;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  margin-top: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-elevation);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer a {
  display: block;
  padding: 0.35rem 0;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  max-width: 100%;
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sharp);
  padding: 0.85rem 1.45rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-kinetic), background-color 0.25s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  color: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  text-decoration: none;
}

.text-action {
  font-weight: 700;
  color: var(--accent-primary);
}

/* Sections & Clipped Transitions */
.section-sand {
  background-color: var(--bg-canvas);
  padding: 4.5rem 0;
}

.section-paper {
  background-color: var(--bg-surface);
  padding: 5.2rem 0;
  clip-path: polygon(0 22px, 100% 0, 100% calc(100% - 22px), 0 100%);
}

.section-paper-top {
  background-color: var(--bg-surface);
  padding: 4.5rem 0 5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
}

.eyebrow {
  display: inline-block;
  max-width: 100%;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.65rem;
}

/* Hero */
.hero-section {
  padding: 2.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
}

.media-caption {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Breakout Field Photo */
.breakout-media {
  margin: 2.5rem auto;
  max-width: 960px;
}

.breakout-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-subtle);
}

/* Editorial Pull Quote */
.pull-quote {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sharp);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-primary);
}

.section-paper .pull-quote {
  background-color: var(--bg-canvas);
}

.pull-quote cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Story Cards with Overlapping Terracotta Badge */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.field-card {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}

.section-paper .field-card {
  background-color: var(--bg-canvas);
}

.field-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevation);
}

.field-card-media {
  position: relative;
}

.field-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.card-badge {
  position: absolute;
  left: 1rem;
  bottom: -0.75rem;
  max-width: calc(100% - 2rem);
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sharp);
}

.field-card-body {
  padding: 1.65rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.field-card-body p {
  color: var(--text-muted);
  font-size: 0.96rem;
  flex: 1;
}

/* Responsibility Timeline */
.timeline-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--accent-primary);
  display: grid;
  gap: 1.6rem;
}

.timeline-item {
  position: relative;
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 1.25rem 1.4rem;
}

.section-paper .timeline-item {
  background-color: var(--bg-canvas);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 1.45rem;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-primary);
  border: 2px solid var(--bg-canvas);
}

.timeline-phase {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

/* Scenario Notice */
.scenario-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-sharp);
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}

.section-paper .scenario-panel {
  background-color: var(--bg-canvas);
}

.scenario-tag {
  display: inline-block;
  max-width: 100%;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg-surface);
  background-color: var(--accent-primary);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sharp);
  margin-bottom: 0.6rem;
}

/* Tables */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  background-color: var(--bg-surface);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.6;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

th {
  background-color: var(--bg-canvas);
  font-weight: 800;
  color: var(--text-primary);
}

/* FAQ Disclosures */
.faq-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

details.faq-item {
  min-width: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 1rem 1.25rem;
}

.section-paper details.faq-item {
  background-color: var(--bg-canvas);
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

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

details.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--accent-primary);
  flex-shrink: 0;
}

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

details.faq-item .faq-answer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Letter Panel (Contact) */
.letter-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.form-field {
  min-width: 0;
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.form-field select,
.form-field input,
.form-field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
}

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

.proof-box {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sharp);
  padding: 1rem 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 1rem 0 1.25rem;
  color: var(--text-primary);
}

.letter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.letter-actions > * {
  min-width: 0;
  max-width: 100%;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--accent-secondary);
  text-decoration-thickness: 2.5px;
}

.status-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  min-height: 1.4em;
}

/* Subpage Header */
.page-intro {
  padding: 2.5rem 0 2rem;
}

.breadcrumb {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-col h3 {
  font-size: 0.95rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col li {
  min-width: 0;
}

.footer-col a {
  line-height: 1.6;
}

.footer-meta {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-meta > * {
  max-width: 100%;
}

.publisher-block p {
  margin-bottom: 0.25rem;
}

.langs {
  padding-inline: 1.25rem;
}

.langs a,
.langs span {
  white-space: nowrap;
}

/* Keep the privacy notice readable with longer translated labels. */
#prefs-note {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

#prefs-note .prefs-note__choices > button {
  max-width: 100%;
  line-height: 1.5;
  white-space: normal;
}

/* Breakpoints */
@media (max-width: 1200px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .section-paper,
  .section-paper-top {
    clip-path: polygon(0 12px, 100% 0, 100% calc(100% - 12px), 0 100%);
    padding: 3.5rem 0;
  }

  .section-sand {
    padding: 3.5rem 0;
  }

  .hero-section {
    padding: 2rem 0 3.5rem;
  }

  .hero-grid h1 {
    max-width: 20ch;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-shell {
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .brand-inset {
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem 0.35rem 0.4rem;
  }

  h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
  }

  .hero-lead {
    font-size: 1.0625rem;
  }

  .pull-quote,
  .scenario-panel,
  .letter-panel {
    padding: 1.25rem;
  }

  .timeline-item {
    padding: 1.1rem;
  }

  .eyebrow,
  .timeline-phase {
    letter-spacing: 0.05em;
  }
}

@media (max-width: 380px) {
  .site-header .container {
    padding-inline: 0.75rem;
  }

  .brand-inset {
    font-size: 0.75rem;
    padding-inline: 0.5rem;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 0.7rem;
  }
}