:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #606861;
  --paper: #f7f2e8;
  --surface: #fffdf7;
  --line: #ded6c5;
  --saffron: #c78b1f;
  --cedar: #8c3f35;
  --river: #246879;
  --plum: #5f456c;
  --olive: #52673d;
  --night: #101612;
  --shadow: rgba(23, 32, 28, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(199, 139, 31, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 104, 121, 0.07) 1px, transparent 1px),
    var(--paper);
  background-size: 70px 70px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid rgba(23, 32, 28, 0.1);
  background: rgba(247, 242, 232, 0.94);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 900;
  text-decoration: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--surface);
  background: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.95rem;
}

.site-nav a,
.button {
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.section,
.hero,
.metric-band,
.site-footer {
  padding-inline: 2rem;
}

.section-grid,
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 29rem);
  gap: 3rem;
}

.hero {
  align-items: end;
  min-height: 82vh;
  padding-block: 6rem 4.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 63rem;
}

.kicker,
.pillar-label,
.metric-band span,
.pillar-details span {
  margin: 0 0 0.8rem;
  color: var(--river);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  font-size: 5.2rem;
  line-height: 0.92;
}

h2 {
  font-size: 3rem;
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

p,
li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-lede {
  max-width: 50rem;
  color: var(--ink);
  font-size: 1.22rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-family: inherit;
}

.button.primary {
  color: var(--surface);
  background: var(--night);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 60px var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--night);
}

.hero-visual figcaption {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
}

.hero-visual figcaption span {
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-visual figcaption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1rem;
  color: var(--surface);
  background: var(--night);
}

.metric-band div {
  border: 1px solid rgba(255, 253, 247, 0.14);
  border-radius: 8px;
  padding: 1rem;
}

.metric-band span {
  display: block;
  color: #f1cd70;
}

.metric-band strong {
  display: block;
  color: var(--surface);
  font-size: 1.3rem;
  line-height: 1.2;
}

.section {
  padding-block: 5rem;
}

.section-heading {
  max-width: 62rem;
  margin-bottom: 2rem;
}

.doctrine-copy,
.structure-copy {
  max-width: 54rem;
}

.translation {
  border-left: 4px solid var(--saffron);
  padding: 1rem;
  background: rgba(255, 253, 247, 0.78);
}

.home-base {
  padding-top: 0;
}

.home-base-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(19rem, 1fr);
  gap: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(199, 139, 31, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(82, 103, 61, 0.1), transparent 50%),
    var(--surface);
  box-shadow: 0 22px 60px var(--shadow);
}

.home-base-copy {
  display: grid;
  gap: 1rem;
}

.home-base-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.home-base-grid article {
  min-height: 10rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 253, 247, 0.84);
}

.home-base-grid span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--cedar);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-base-grid p {
  margin-bottom: 0;
}

.operating-board {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.48);
}

.board-grid,
.refusal-grid {
  display: grid;
  gap: 1rem;
}

.board-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.board-grid article,
.refusal-grid article,
.pillar-card,
.page-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 18px 50px var(--shadow);
}

.board-grid article {
  min-height: 12rem;
  padding: 1rem;
}

.board-grid span {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 8px;
  color: var(--surface);
  background: var(--river);
  font-weight: 900;
}

.pillars {
  display: grid;
  gap: 1rem;
}

.pillar-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1.22fr);
  gap: 1.5rem;
  padding: 1.25rem;
}

.pillar-card.media {
  border-top: 5px solid var(--saffron);
}

.pillar-card.learn {
  border-top: 5px solid var(--olive);
}

.pillar-card.service {
  border-top: 5px solid var(--river);
}

.pillar-card.digital {
  border-top: 5px solid var(--plum);
}

.pillar-card.goods {
  border-top: 5px solid var(--cedar);
}

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

.pillar-details {
  display: grid;
  gap: 0.75rem;
}

.pillar-details div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.pillar-details span {
  margin: 0;
  color: var(--ink);
}

.pillar-details p,
.pillar-details strong {
  margin: 0;
}

.pillar-details strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.constitution {
  color: var(--surface);
  background: linear-gradient(135deg, var(--river), var(--plum));
}

.constitution h2,
.constitution p,
.constitution .kicker {
  color: var(--surface);
}

.refusal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.refusal-grid article {
  padding: 1rem;
  background: rgba(16, 22, 18, 0.22);
  box-shadow: none;
}

.refusal-grid h3,
.refusal-grid p {
  color: var(--surface);
}

.structure {
  align-items: start;
}

.page-list {
  margin-top: 1.5rem;
  padding: 1rem;
}

.page-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: var(--surface);
  font-weight: 850;
}

.page-list a {
  text-decoration: none;
}

.route-shell {
  padding: 0 2rem 5rem;
}

.route-hero {
  max-width: 72rem;
  padding: 5rem 0 3rem;
}

.route-hero .button {
  margin-top: 1.5rem;
}

.route-grid,
.offer-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.route-card,
.offer-table article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 18px 50px var(--shadow);
}

.route-card h2,
.offer-table h2 {
  font-size: 1.4rem;
}

.route-card a {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--river);
  font-weight: 900;
  text-decoration: none;
}

.offer-table span {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--river);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intake-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.intake-section h2 {
  font-size: 2rem;
}

.intake-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 18px 50px var(--shadow);
}

.intake-form label,
.intake-result {
  display: grid;
  gap: 0.45rem;
}

.intake-form span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.82rem 0.9rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.intake-form textarea {
  resize: vertical;
}

.intake-form .full,
.intake-form .button,
.intake-result {
  grid-column: 1 / -1;
}

.intake-result {
  min-height: 0;
  border-left: 4px solid var(--river);
  padding-left: 0.85rem;
}

.intake-result:empty {
  display: none;
}

.intake-result strong {
  color: var(--ink);
}

.intake-result span {
  color: var(--muted);
  font-weight: 700;
}

.intake-result .button {
  width: fit-content;
}

.pillar-route .route-hero {
  border-bottom: 1px solid var(--line);
}

.media-route .route-hero {
  border-top: 5px solid var(--saffron);
}

.learn-route .route-hero {
  border-top: 5px solid var(--olive);
}

.service-route .route-hero {
  border-top: 5px solid var(--river);
}

.digital-route .route-hero {
  border-top: 5px solid var(--plum);
}

.goods-route .route-hero {
  border-top: 5px solid var(--cedar);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer p {
  margin: 0;
  font-weight: 850;
}

@media (max-width: 880px) {
  .site-header,
  .site-footer,
  .site-nav {
    align-items: flex-start;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    padding-inline: 1rem;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .section,
  .hero,
  .metric-band,
  .site-footer,
  .route-shell {
    padding-inline: 1rem;
  }

  .section-grid,
  .hero,
  .metric-band,
  .board-grid,
  .home-base-panel,
  .home-base-grid,
  .pillar-card,
  .refusal-grid,
  .route-grid,
  .offer-table,
  .intake-section,
  .intake-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 3rem;
  }

  .section {
    padding-block: 3.25rem;
  }

  h1 {
    max-width: none;
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .pillar-details div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .intake-result .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-nav,
  .site-nav a,
  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  h1 {
    font-size: 2.65rem;
  }
}
