:root {
  --page-bg: #f7f2ea;
  --page-bg-strong: #eee2d0;
  --surface: rgba(255, 252, 247, 0.94);
  --surface-strong: #fcf8f1;
  --surface-alt: #f4ede3;
  --surface-ink: #ece9e2;
  --ink: #201b17;
  --ink-soft: #5f5549;
  --ink-muted: #7a6e62;
  --line: rgba(104, 85, 61, 0.18);
  --line-strong: rgba(104, 85, 61, 0.28);
  --accent: #8a6745;
  --accent-soft: #d7c0a6;
  --bronze-accent: #a77b54;
  --rose-tan: #c9a493;
  --rose-tan-soft: rgba(201, 164, 147, 0.12);
  --navy-accent: #334861;
  --navy-accent-deep: #24364d;
  --navy-wash: rgba(51, 72, 97, 0.08);
  --warm-wash: rgba(155, 123, 88, 0.08);
  --link-hover-gold: #c9891a;
  --shadow: 0 24px 60px rgba(61, 45, 31, 0.07);
  --shadow-soft: 0 18px 42px rgba(61, 45, 31, 0.05);
  --radius: 4px;
  --content-width: 1220px;
  --sans: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 31%),
    radial-gradient(circle at 18% 10%, rgba(201, 164, 147, 0.18), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(51, 72, 97, 0.09), transparent 24%),
    radial-gradient(circle at 48% 88%, rgba(167, 123, 84, 0.06), transparent 26%),
    linear-gradient(180deg, #fbf8f2 0%, #f6f0e7 30%, #ecdfcc 100%);
  line-height: 1.72;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(0deg, rgba(118, 94, 69, 0.02) 0, rgba(118, 94, 69, 0.02) 1px, transparent 1px, transparent 14px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.74;
}

a {
  color: inherit;
}

::selection {
  background: rgba(138, 103, 69, 0.16);
}

.container {
  width: min(calc(100% - 2.5rem), var(--content-width));
  margin: 0 auto;
}

/* ─── SITE HEADER ──────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background:
    radial-gradient(circle at 18% 20%, rgba(201, 164, 147, 0.15), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(244, 234, 220, 0.04), transparent 18%),
    linear-gradient(180deg, rgba(88, 79, 73, 0.97), rgba(67, 60, 56, 0.96));
  border-bottom: 1px solid rgba(193, 154, 109, 0.24);
  box-shadow: 0 12px 28px rgba(30, 23, 19, 0.18);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 15px),
    repeating-linear-gradient(0deg, rgba(232, 221, 206, 0.012) 0, rgba(232, 221, 206, 0.012) 1px, transparent 1px, transparent 17px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 58%);
  opacity: 0.24;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  text-decoration: none;
  color: #f4eadf;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  opacity: 1;
  object-fit: contain;
  transform: translateY(0.5px);
  filter: brightness(1.3) saturate(1.14) contrast(1.18) drop-shadow(0 0 10px rgba(216, 184, 131, 0.18));
}

.brand-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbf2e6;
}

.brand-tagline {
  display: block;
  font-size: 0.64rem;
  color: rgba(240, 229, 214, 0.8);
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 0.18rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  color: rgba(241, 231, 219, 0.72);
  letter-spacing: 0.055em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.1rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-current {
  color: #f6ede2;
}

.site-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 1px;
  background: var(--bronze-accent);
}

/* ─── HAMBURGER NAV TOGGLE ─────────────────────────────────────────── */

.nav-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
  color: rgba(241, 231, 219, 0.85);
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 240ms ease, opacity 180ms ease;
}

.nav-checkbox:checked + .container .nav-toggle .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-checkbox:checked + .container .nav-toggle .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-checkbox:checked + .container .nav-toggle .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── MAIN ─────────────────────────────────────────────────────────── */

main {
  position: relative;
  z-index: 1;
}

/* ─── HERO ─────────────────────────────────────────────────────────── */

.hero {
  padding: 6.6rem 0 3.8rem;
}

.hero-home {
  position: relative;
}

.hero-home::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48vw;
  height: 100%;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.1), transparent 18%),
    radial-gradient(circle at 68% 24%, rgba(201, 164, 147, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(235, 224, 210, 0.48), rgba(74, 89, 110, 0.12) 34%, rgba(42, 56, 76, 0.24) 100%);
  border-left: 1px solid rgba(36, 54, 77, 0.1);
  z-index: 0;
}

.hero-home::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48vw;
  height: 100%;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(127, 103, 80, 0.018) 0, rgba(127, 103, 80, 0.018) 1px, transparent 1px, transparent 20px);
  opacity: 0.5;
  z-index: 0;
}

.page-hero {
  padding: 5rem 0 2.3rem;
}

.hero-layout,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(320px, 0.82fr);
  gap: 3.4rem;
  align-items: start;
}

.hero-copy {
  padding-top: 1.1rem;
  position: relative;
  z-index: 1;
}

.hero-rail {
  display: grid;
  gap: 0;
  position: relative;
}

.page-grid,
.page-stack {
  display: grid;
  gap: 1.3rem;
}

/* ─── TYPOGRAPHY ───────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.display-title,
.page-title,
.section-title {
  font-family: var(--serif);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.display-title {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(3.15rem, 5.4vw, 5.4rem);
  font-weight: 500;
}

.page-title {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.85rem, 4.6vw, 4.45rem);
  font-weight: 500;
}

.section-title {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
}

.lead,
.page-lead {
  margin: 0 0 1.2rem;
  max-width: 45rem;
  font-size: 1.04rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.lead strong,
.section-copy strong,
.feature-card strong,
.entry-card strong,
.content-card strong {
  color: var(--navy-accent-deep);
}

.lead-secondary,
.section-copy p,
.feature-card p,
.entry-card p,
.content-card p,
.fact-card p,
.placeholder-note {
  color: var(--ink-soft);
  line-height: 1.78;
}

.hero-thesis {
  margin: 1.55rem 0 0;
  color: var(--bronze-accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ─── BUTTONS & ACTIONS ────────────────────────────────────────────── */

.action-row,
.link-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy-accent-deep) 74%, rgba(166, 123, 84, 0.92) 100%);
  color: #fbf7f1;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(51, 72, 97, 0.18);
}

/* ─── CREDENTIALS ──────────────────────────────────────────────────── */

.credential-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 2.2rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.credential-line span {
  position: relative;
}

.credential-line span:not(:last-child)::after {
  content: "•";
  margin-left: 1.1rem;
  color: var(--bronze-accent);
}

/* ─── CARDS ────────────────────────────────────────────────────────── */

.hero-panel,
.feature-card,
.entry-card,
.content-card,
.fact-card {
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero-panel,
.feature-card,
.entry-card,
.content-card,
.fact-card {
  padding: 1.55rem;
}

.hero-panel {
  background:
    linear-gradient(180deg, rgba(250, 246, 239, 0.94), rgba(244, 237, 226, 0.88)),
    radial-gradient(circle at 85% 16%, rgba(201, 164, 147, 0.12), transparent 26%),
    linear-gradient(90deg, rgba(201, 164, 147, 0.06), transparent 24%);
  border-top: 1px solid rgba(166, 123, 84, 0.22);
  position: relative;
  margin: -2.3rem 1.6rem 0 -2.1rem;
  max-width: 24rem;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(37, 42, 53, 0.12);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.065) 0, rgba(255, 255, 255, 0.065) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(156, 123, 89, 0.028) 0, rgba(156, 123, 89, 0.028) 1px, transparent 1px, transparent 20px);
  opacity: 0.46;
}

.panel-kicker,
.card-kicker,
.meta-label {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bronze-accent);
  font-weight: 700;
}

/* ─── VISUAL STAGE ─────────────────────────────────────────────────── */

.visual-stage {
  position: relative;
}

.visual-stage-frame {
  position: relative;
  min-height: 34rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(36, 54, 77, 0.32);
  background: linear-gradient(145deg, rgba(33, 48, 68, 0.94), rgba(80, 92, 109, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
  width: min(43rem, calc(100% + 4vw));
  margin-right: -4vw;
  justify-self: end;
}

.visual-stage-frame::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border-radius: 2px;
  border: 1px solid rgba(248, 240, 228, 0.14);
  pointer-events: none;
}

.visual-stage-frame::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(248, 240, 228, 0.04), rgba(248, 240, 228, 0));
  pointer-events: none;
}

.visual-stage-image {
  position: absolute;
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: cover;
  object-position: 24% 34%;
  border-radius: 2px;
  filter: brightness(0.93) contrast(1.04) saturate(0.92);
}

.visual-stage-overlay {
  position: absolute;
  inset: 1rem;
  border-radius: 2px;
  background:
    linear-gradient(104deg, rgba(22, 33, 47, 0.48) 0%, rgba(22, 33, 47, 0.18) 22%, rgba(22, 33, 47, 0.02) 46%, rgba(82, 67, 52, 0.16) 100%),
    radial-gradient(circle at 78% 24%, rgba(201, 164, 147, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(248, 240, 228, 0.02), rgba(36, 54, 77, 0.08));
}

.visual-stage-caption {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 30rem;
  max-width: 16rem;
  margin: 0 1.5rem 1.5rem auto;
  padding: 1.3rem 1.2rem;
  flex-direction: column;
  justify-content: end;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(250, 246, 239, 0.9), rgba(241, 234, 223, 0.84));
  border: 1px solid rgba(248, 240, 228, 0.32);
  backdrop-filter: blur(2px);
  box-shadow: 0 14px 30px rgba(29, 37, 49, 0.18);
}

.visual-stage-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--navy-accent-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.visual-stage-caption h2 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.82rem;
  line-height: 1.04;
  font-weight: 500;
}

.visual-stage-caption p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

/* ─── LISTS ────────────────────────────────────────────────────────── */

.panel-list,
.marker-list,
.theme-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.panel-list strong {
  color: var(--navy-accent-deep);
  font-weight: 600;
}

.panel-list li + li,
.marker-list li + li,
.theme-list li + li {
  margin-top: 0.8rem;
}

/* ─── SECTIONS ─────────────────────────────────────────────────────── */

.section {
  padding: 2.4rem 0 5.2rem;
}

.section-tint {
  padding-top: 4.4rem;
}

.section-tint .container {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.9), rgba(243, 232, 221, 0.82)),
    radial-gradient(circle at 86% 18%, rgba(201, 164, 147, 0.14), transparent 22%),
    radial-gradient(circle at 18% 84%, rgba(167, 123, 84, 0.06), transparent 20%);
  border: 1px solid rgba(104, 85, 61, 0.12);
  border-radius: var(--radius);
}

.section-tint .container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.072) 0, rgba(255, 255, 255, 0.072) 1px, transparent 1px, transparent 17px),
    repeating-linear-gradient(0deg, rgba(150, 121, 91, 0.028) 0, rgba(150, 121, 91, 0.028) 1px, transparent 1px, transparent 19px);
  opacity: 0.42;
}

.section-tint .container > * {
  position: relative;
  z-index: 1;
}

.section-editorial .container {
  position: relative;
}

.section-editorial .container::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 5.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--navy-accent), transparent);
}

.section-featured .container {
  background: transparent;
  border: 0;
  padding: 2.8rem 0 0.8rem;
}

.section-light-band .container,
.section-code-band .container,
.section-connect .container {
  padding-top: 0.4rem;
}

.section-light-band .container {
  padding: 2.4rem 0 0.4rem;
  border-top: 1px solid rgba(51, 72, 97, 0.16);
}

.section-light-band .entry-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.97), rgba(244, 237, 230, 0.93)),
    linear-gradient(90deg, rgba(72, 92, 118, 0.05), transparent 28%);
}

.section-writing-scene {
  padding-top: 4.8rem;
  padding-bottom: 5rem;
}

.section-writing-scene::before {
  background:
    linear-gradient(180deg, rgba(250, 247, 241, 0.9), rgba(235, 228, 220, 0.84)),
    linear-gradient(90deg, rgba(250, 247, 241, 0.78) 0%, rgba(248, 243, 236, 0.62) 42%, rgba(237, 230, 222, 0.48) 62%, rgba(236, 229, 221, 0.76) 100%),
    url("/assets/images/behind-the-veil-bg.jpg") center center / cover no-repeat;
  border-top: 1px solid rgba(104, 85, 61, 0.12);
  border-bottom: 1px solid rgba(104, 85, 61, 0.12);
}

.section-writing-scene::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0, rgba(255, 255, 255, 0.09) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(131, 107, 84, 0.028) 0, rgba(131, 107, 84, 0.028) 1px, transparent 1px, transparent 18px);
  opacity: 0.52;
}

.section-writing-scene .container {
  padding: 0.4rem 0 0.4rem;
}

.section-writing-scene .section-head {
  margin-bottom: 2.4rem;
}

.section-writing-scene .section-title {
  max-width: 19ch;
}

.section-writing-deck {
  margin: 1rem 0 0;
  max-width: 43rem;
  color: rgba(73, 63, 53, 0.92);
  font-size: 0.99rem;
  line-height: 1.86;
}

.section-writing-deck strong {
  color: var(--navy-accent-deep);
  font-weight: 700;
}

.section-writing-scene .entry-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.93), rgba(244, 237, 230, 0.88)),
    linear-gradient(90deg, rgba(72, 92, 118, 0.07), transparent 26%);
  border-color: rgba(72, 92, 118, 0.14);
  box-shadow: 0 18px 34px rgba(61, 45, 31, 0.08);
}

.section-writing-scene .editorial-grid .entry-card:first-child {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(242, 235, 227, 0.92)),
    linear-gradient(90deg, rgba(63, 82, 106, 0.1), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(201, 164, 147, 0.14), transparent 18%);
}

.section-principle {
  padding: 2.8rem 0 3.2rem;
}

.principle-scene {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.35rem 2.7rem 2.1rem;
  text-align: center;
  border-top: 1px solid rgba(51, 72, 97, 0.18);
  border-bottom: 1px solid rgba(51, 72, 97, 0.12);
}

.principle-scene .eyebrow {
  margin-bottom: 0.9rem;
}

.principle-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-code-band .container {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.section-code-band .eyebrow,
.section-code-band .section-title,
.section-code-band .section-link {
  color: #f4eadc;
}

.section-code-band .section-link {
  text-decoration-color: rgba(244, 234, 220, 0.6);
}

.section-code-band .section-head {
  margin-bottom: 2.25rem;
}

.section-code-band .entry-card {
  background:
    linear-gradient(180deg, rgba(249, 244, 236, 0.12), rgba(249, 244, 236, 0.06)),
    linear-gradient(145deg, rgba(52, 66, 85, 0.9), rgba(61, 73, 88, 0.82));
  border-color: rgba(244, 234, 220, 0.14);
  box-shadow: none;
}

.section-code-band .entry-card h3,
.section-code-band .entry-card p,
.section-code-band .entry-card .role-note,
.section-code-band .entry-card .meta-label {
  color: #f2e8dc;
}

.section-code-band .entry-card .meta-label {
  color: #d9c0a6;
}

.section-code-band .entry-card .text-link {
  color: #f4eadc;
}

.section-code-band .entry-meta {
  color: rgba(242, 232, 220, 0.78);
}

.section-code-band .entry-meta span {
  background: rgba(244, 234, 220, 0.1);
  color: #f4eadc;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head > div {
  flex: 1 1 58rem;
  max-width: 58rem;
}

.section-head .section-title {
  max-width: 22ch;
}

.section-link,
.text-link {
  color: var(--navy-accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.section-link:hover,
.text-link:hover {
  text-decoration: underline;
}

/* ─── CARD GRIDS ───────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  gap: 1.35rem;
}

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

.card-grid-two,
.fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-grid {
  display: grid;
  gap: 1rem;
}

.feature-card h3,
.entry-card h3,
.content-card h3,
.fact-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
}

.section-featured .feature-card {
  border-top: 1px solid rgba(36, 54, 77, 0.14);
}

.section-light-band .entry-card {
  border-top: 1px solid rgba(36, 54, 77, 0.09);
}

.entry-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.entry-meta span {
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  background: rgba(166, 123, 84, 0.12);
}

.role-note {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.placeholder-note {
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--accent-soft);
  background: rgba(255, 255, 255, 0.45);
}

/* ─── FULL-BLEED BANDS ─────────────────────────────────────────────── */

.full-bleed-band,
.full-bleed-light,
.full-bleed-principle,
.full-bleed-ink {
  position: relative;
}

.full-bleed-band::before,
.full-bleed-light::before,
.full-bleed-principle::before,
.full-bleed-ink::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
}

.full-bleed-band::after,
.full-bleed-light::after,
.full-bleed-principle::after,
.full-bleed-ink::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
}

.full-bleed-band::before {
  background:
    linear-gradient(180deg, rgba(238, 225, 207, 0.92), rgba(247, 239, 230, 0.34)),
    radial-gradient(circle at 16% 24%, rgba(201, 164, 147, 0.18), transparent 20%),
    radial-gradient(circle at 84% 18%, rgba(51, 72, 97, 0.11), transparent 18%);
  border-top: 1px solid rgba(51, 72, 97, 0.16);
  border-bottom: 1px solid rgba(51, 72, 97, 0.12);
}

.full-bleed-band::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.085) 0, rgba(255, 255, 255, 0.085) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(156, 123, 89, 0.032) 0, rgba(156, 123, 89, 0.032) 1px, transparent 1px, transparent 20px);
  opacity: 0.58;
}

.full-bleed-light::before {
  background:
    linear-gradient(180deg, rgba(251, 247, 241, 0.98), rgba(239, 232, 224, 0.72)),
    radial-gradient(circle at 76% 28%, rgba(201, 164, 147, 0.16), transparent 20%),
    radial-gradient(circle at 18% 76%, rgba(51, 72, 97, 0.07), transparent 18%);
  border-top: 1px solid rgba(104, 85, 61, 0.1);
  border-bottom: 1px solid rgba(104, 85, 61, 0.1);
}

.full-bleed-light::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0, rgba(255, 255, 255, 0.09) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(131, 107, 84, 0.026) 0, rgba(131, 107, 84, 0.026) 1px, transparent 1px, transparent 18px);
  opacity: 0.46;
}

.full-bleed-principle::before {
  background:
    linear-gradient(180deg, rgba(248, 242, 234, 0.94), rgba(243, 237, 229, 0.82)),
    radial-gradient(circle at 18% 36%, rgba(201, 164, 147, 0.16), transparent 18%),
    radial-gradient(circle at 82% 62%, rgba(51, 72, 97, 0.08), transparent 20%);
  border-top: 1px solid rgba(104, 85, 61, 0.1);
  border-bottom: 1px solid rgba(104, 85, 61, 0.1);
}

.full-bleed-principle::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(150, 121, 91, 0.03) 0, rgba(150, 121, 91, 0.03) 1px, transparent 1px, transparent 20px);
  opacity: 0.52;
}

.full-bleed-ink::before {
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.06), transparent 16%),
    radial-gradient(circle at 86% 14%, rgba(217, 192, 166, 0.18), transparent 18%),
    radial-gradient(circle at 24% 82%, rgba(201, 164, 147, 0.09), transparent 20%),
    linear-gradient(160deg, rgba(29, 42, 58, 1), rgba(38, 55, 75, 0.99) 48%, rgba(55, 66, 80, 0.98) 100%);
  border-top: 1px solid rgba(18, 28, 40, 0.3);
  border-bottom: 1px solid rgba(18, 28, 40, 0.3);
}

.full-bleed-ink::after {
  background:
    repeating-linear-gradient(90deg, rgba(244, 234, 220, 0.055) 0, rgba(244, 234, 220, 0.055) 1px, transparent 1px, transparent 18px),
    repeating-linear-gradient(0deg, rgba(244, 234, 220, 0.024) 0, rgba(244, 234, 220, 0.024) 1px, transparent 1px, transparent 22px);
  opacity: 0.48;
}

.section-featured,
.section-code-band,
.section-light-band {
  padding-top: 4.4rem;
  padding-bottom: 4.8rem;
}

.section-connect {
  padding-top: 5rem;
}

.section-connect .section-copy {
  display: grid;
  gap: 1.25rem;
}

.closing-quote {
  margin: 0.35rem 0 0;
  padding: 1.35rem 0 0 1.25rem;
  border-left: 2px solid rgba(166, 123, 84, 0.32);
}

.closing-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.26;
  color: var(--ink);
}

.section-featured .section-head,
.section-code-band .section-head,
.section-light-band .section-head {
  padding-inline: 0;
}

/* ─── FEATURED / EDITORIAL / CODE GRIDS ───────────────────────────── */

.featured-grid {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 1rem 1.35rem;
}

.featured-grid .feature-card:first-child {
  grid-row: 1 / span 2;
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.9), rgba(236, 226, 211, 0.88)),
    radial-gradient(circle at 84% 18%, rgba(51, 72, 97, 0.09), transparent 20%),
    radial-gradient(circle at 16% 76%, rgba(201, 164, 147, 0.12), transparent 20%);
}

.featured-grid .feature-card:nth-child(2),
.featured-grid .feature-card:nth-child(3) {
  min-height: 12rem;
}

.editorial-grid {
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  align-items: stretch;
}

.editorial-grid .entry-card:first-child {
  min-height: 20rem;
  padding: 2rem 1.75rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(242, 235, 227, 0.94)),
    linear-gradient(90deg, rgba(51, 72, 97, 0.08), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(201, 164, 147, 0.12), transparent 18%);
  border-left: 2px solid rgba(36, 54, 77, 0.16);
}

.editorial-grid .entry-card:nth-child(2),
.editorial-grid .entry-card:nth-child(3) {
  transform: none;
}

.code-grid {
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  align-items: stretch;
}

.code-grid .entry-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.code-grid .entry-card:first-child {
  min-height: 21rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(247, 239, 228, 0.14), rgba(247, 239, 228, 0.06)),
    linear-gradient(145deg, rgba(48, 63, 81, 0.94), rgba(58, 72, 89, 0.88));
}

.code-grid .entry-card:nth-child(2),
.code-grid .entry-card:nth-child(3) {
  min-height: 21rem;
}

/* ─── FOOTER ───────────────────────────────────────────────────────── */

.site-footer {
  padding: 2.4rem 0 3.2rem;
  border-top: 1px solid rgba(104, 85, 61, 0.12);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
}

.footer-nav a {
  color: var(--navy-accent-deep);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 180ms ease;
}

.footer-nav a:hover {
  color: var(--link-hover-gold);
}

.footer-sep {
  color: var(--ink-muted);
  font-size: 0.72rem;
  opacity: 0.45;
  user-select: none;
}

.footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 0 2.4rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(122, 110, 98, 0.38);
  transition: color 200ms ease;
  line-height: 0;
}

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

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-legal {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(122, 110, 98, 0.5);
}

/* ─── WRITING CARDS WITH PREVIEW IMAGE ────────────────────────────── */

.entry-card.has-image {
  padding: 0;
  overflow: hidden;
}

.entry-card.has-image .card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
  border-radius: var(--radius) var(--radius) 0 0;
}

.entry-card.has-image .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 340ms ease;
}

.entry-card.has-image:hover .card-thumb img {
  transform: scale(1.04);
}

.entry-card.has-image .card-body {
  padding: 1.4rem 1.55rem 1.55rem;
}

.entry-card.no-image {
  padding: 1.55rem;
}

/* ─── SKELETON LOADING STATE ───────────────────────────────────────── */

.entry-card.is-loading {
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    90deg,
    rgba(200, 185, 170, 0.3) 25%,
    rgba(220, 205, 190, 0.5) 50%,
    rgba(200, 185, 170, 0.3) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

.skeleton-body {
  padding: 1.4rem 1.55rem 1.55rem;
}

.skeleton-line {
  height: 0.85rem;
  border-radius: 3px;
  margin-bottom: 0.7rem;
  background: linear-gradient(
    90deg,
    rgba(200, 185, 170, 0.3) 25%,
    rgba(220, 205, 190, 0.5) 50%,
    rgba(200, 185, 170, 0.3) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

.skeleton-line.wide  { width: 85%; }
.skeleton-line.med   { width: 65%; }
.skeleton-line.short { width: 45%; }

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── RESPONSIVE: TABLET (≤ 980px) ────────────────────────────────── */

@media (max-width: 980px) {
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .hero-layout,
  .split-section,
  .card-grid-three,
  .card-grid-two,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.8rem;
  }

  .hero-home::before {
    width: 100%;
    height: 54%;
    top: auto;
    bottom: 0;
    border-left: 0;
    border-top: 1px solid rgba(36, 54, 77, 0.1);
  }

  .visual-stage-frame {
    width: 100%;
    margin-right: 0;
    min-height: 29rem;
  }

  .hero-panel {
    margin: -1.2rem 0 0;
    max-width: none;
  }

  .featured-grid .feature-card:first-child,
  .editorial-grid .entry-card:first-child,
  .code-grid .entry-card:first-child {
    min-height: auto;
  }

  .principle-scene {
    padding-inline: 1.4rem;
  }

  .editorial-grid .entry-card:nth-child(2),
  .editorial-grid .entry-card:nth-child(3),
  .code-grid .entry-card:nth-child(2),
  .code-grid .entry-card:nth-child(3) {
    transform: none;
  }
}

/* ─── RESPONSIVE: MOBILE (≤ 720px) ────────────────────────────────── */

@media (max-width: 720px) {
  html {
    font-size: 14px;
  }

  .container {
    width: min(calc(100% - 4rem), var(--content-width));
  }

  /* Hamburger: show toggle button, hide inline nav */
  .nav-toggle {
    display: flex;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(82, 74, 68, 0.99), rgba(62, 56, 52, 0.99));
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(193, 154, 109, 0.24);
    box-shadow: 0 14px 30px rgba(20, 15, 12, 0.22);
  }

  .nav-checkbox:checked + .container .site-nav {
    display: flex;
  }

  .site-nav a {
    font-size: 0.86rem;
    padding: 0.25rem 0;
  }

  /* Section padding reductions */
  .section {
    padding: 1.4rem 0 2.8rem;
  }

  .section-tint {
    padding-top: 2rem;
  }

  .section-tint .container {
    padding: 1.2rem;
  }

  .page-hero {
    padding: 2.4rem 0 1.2rem;
  }

  .section-featured,
  .section-code-band,
  .section-light-band {
    padding-top: 2.4rem;
    padding-bottom: 2.8rem;
  }

  .section-writing-scene {
    padding-top: 2.4rem;
    padding-bottom: 2.8rem;
  }

  .section-principle {
    padding: 1.6rem 0 2rem;
  }

  .section-connect {
    padding-top: 2.4rem;
  }

  .hero {
    padding-bottom: 2rem;
  }

  .section-head {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .section-writing-scene .section-head {
    margin-bottom: 0.75rem;
  }

  .section-featured .container {
    padding: 1.4rem 0 0.5rem;
  }

  /* Nav / button text size */
  .site-nav a,
  .button {
    font-size: 0.76rem;
  }

  /* Credentials */
  .credential-line {
    display: block;
  }

  .credential-line span {
    display: block;
    margin-bottom: 0.45rem;
  }

  .credential-line span::after {
    content: none;
  }

  /* Visual stage */
  .visual-stage-frame {
    min-height: 23rem;
  }

  .visual-stage-caption {
    min-height: 19rem;
    max-width: 12rem;
    margin: 0 1rem 1rem auto;
  }

  /* Footer nav: allow wrapping on very small screens */
  .footer-nav {
    flex-wrap: wrap;
    padding: 0 0.5rem;
  }
}
