/* ==========================================================================
   LAVANT TOTUS — UNIFIED STYLESHEET
   A Creative Partner for Brands in Motion | Nairobi, Kenya
   ========================================================================== */

/* ---- Design Tokens ---- */
:root {
  --gunmetal: #00272B;
  --parchment: #F4F1E8;
  --chartreuse: #E0FF4F;
  --deepteal: #1A4A50;
  --sage: #A8BFC1;

  --display: 'Big Shoulders Display', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --label: 'Oswald', sans-serif;

  --ease: cubic-bezier(.16, .84, .44, 1);
  --nav-height: 72px;
}

/* ---- Reset & Base Elements ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background: var(--parchment);
  color: var(--gunmetal);
  font-family: var(--label);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--chartreuse);
  color: var(--gunmetal);
  padding: 0.8rem 1.4rem;
  z-index: 500;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

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

:focus-visible {
  outline: 3px solid var(--chartreuse);
  outline-offset: 3px;
}

/* Layout Container */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  position: relative;
  z-index: 2;
}

/* Section Rhythm */
section.screen {
  padding: clamp(5rem, 12vh, 9rem) 0;
  position: relative;
  background-repeat: repeat;
  scroll-margin-top: var(--nav-height);
}

.eyebrow {
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--deepteal);
  margin-bottom: 1.4rem;
  display: inline-block;
  font-weight: 500;
}

.on-dark {
  color: var(--parchment);
}

.on-dark .eyebrow {
  color: var(--sage);
}

.on-dark h1.big,
.on-dark h2.big,
.on-dark h3 {
  color: var(--parchment);
}

.on-dark .chapter-role {
  color: var(--parchment);
}

.on-dark .chapter-problem {
  color: var(--parchment);
  background: rgba(244, 241, 232, 0.08);
  border-left: 3px solid var(--chartreuse);
}

h1.big, h2.big {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
}

h1.big em, h2.big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--deepteal);
}

.on-dark h1.big em, .on-dark h2.big em {
  color: var(--chartreuse);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  max-width: 48ch;
  color: var(--deepteal);
}

.on-dark .lede {
  color: var(--sage);
}

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

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

/* ---- Textures & Background Patterns ---- */
@keyframes panRight {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

@keyframes panDots {
  from { background-position: 0 0; }
  to { background-position: 0 -40px; }
}

@keyframes panDiag {
  from { background-position: 0 0; }
  to { background-position: 80px 80px; }
}

.bg-grid-dark {
  background-color: var(--gunmetal);
  background-image:
    linear-gradient(rgba(168, 191, 193, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 191, 193, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(168, 191, 193, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 191, 193, 0.16) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 64px 64px, 64px 64px;
  animation: panRight 22s linear infinite;
}

.bg-grid-light {
  background-color: var(--parchment);
  background-image:
    linear-gradient(rgba(0, 39, 43, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 39, 43, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(0, 39, 43, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 39, 43, 0.12) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px, 64px 64px, 64px 64px;
}

.bg-halftone-light {
  background-color: var(--parchment);
  background-image: radial-gradient(rgba(0, 39, 43, 0.14) 1.4px, transparent 1.4px);
  background-size: 13px 13px;
  animation: panDots 26s linear infinite;
}

.bg-contour {
  background-color: var(--deepteal);
  background-image:
    repeating-radial-gradient(circle at 14% 20%, transparent 0 26px, rgba(244, 241, 232, 0.07) 27px 28px, transparent 29px 60px),
    repeating-radial-gradient(circle at 88% 78%, transparent 0 34px, rgba(244, 241, 232, 0.06) 35px 36px, transparent 37px 74px);
}

.bg-diagonal {
  background-color: var(--chartreuse);
  background-image: repeating-linear-gradient(45deg, rgba(0, 39, 43, 0.08) 0 2px, transparent 2px 16px);
  animation: panDiag 18s linear infinite;
}

.bg-parchment-quiet {
  background-color: var(--parchment);
  background-image: radial-gradient(rgba(0, 39, 43, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.bg-teal-quiet {
  background-color: var(--deepteal);
  background-image: repeating-radial-gradient(circle at 18% 24%, transparent 0 28px, rgba(244, 241, 232, 0.06) 29px 30px, transparent 31px 62px);
}

.bg-teal {
  background-color: var(--deepteal);
  background-image: repeating-radial-gradient(circle at 18% 24%, transparent 0 28px, rgba(244, 241, 232, 0.06) 29px 30px, transparent 31px 62px);
}

.bg-gunmetal {
  background-color: var(--gunmetal);
  background-image:
    linear-gradient(rgba(168, 191, 193, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 191, 193, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--label);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.95rem 1.6rem;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--chartreuse);
  color: var(--gunmetal);
  border: 1px solid var(--chartreuse);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 255, 79, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(244, 241, 232, 0.35);
  color: var(--parchment);
}

.btn-ghost:hover {
  border-color: var(--chartreuse);
  color: var(--chartreuse);
}

.btn-outline {
  border: 1px solid var(--gunmetal);
  color: var(--gunmetal);
}

.btn-outline:hover {
  background: var(--gunmetal);
  color: var(--parchment);
}

.btn-outline-light {
  border: 1px solid var(--parchment);
  color: var(--parchment);
}

.btn-outline-light:hover {
  background: var(--parchment);
  color: var(--gunmetal);
}

.btn .arrow {
  transition: transform 0.3s var(--ease);
  display: inline-block;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---- Site Navigation (Adaptive Dark/Light) ---- */
header.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  background: transparent;
  transition: background 0.4s var(--ease), padding 0.3s var(--ease), box-shadow 0.4s, backdrop-filter 0.4s;
}

/* Default nav colors (FOR LIGHT HERO PAGES: what-we-do, how-we-work, contact) */
.nav-mark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--gunmetal);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.1rem);
}

.nav-links a {
  color: var(--deepteal);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--chartreuse);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a[aria-current="page"] {
  color: var(--gunmetal);
}

.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  color: var(--deepteal) !important;
  font-weight: 600;
  border: 1px solid var(--deepteal);
  padding: 0.55rem 1.05rem !important;
  border-radius: 2px;
  font-size: 0.72rem !important;
  transition: all 0.3s var(--ease);
}

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

.nav-cta:hover {
  background: var(--deepteal);
  color: var(--parchment) !important;
}

.nav-toggle {
  display: none;
  color: var(--gunmetal);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0.5rem;
  transition: color 0.3s var(--ease);
}

/* Dark Hero Modifier (Index page hero before scroll) */
header.site-nav.nav-theme-dark:not(.scrolled) .nav-mark {
  color: var(--parchment);
}

header.site-nav.nav-theme-dark:not(.scrolled) .nav-links a {
  color: var(--sage);
}

header.site-nav.nav-theme-dark:not(.scrolled) .nav-links a[aria-current="page"] {
  color: var(--chartreuse);
}

header.site-nav.nav-theme-dark:not(.scrolled) .nav-cta {
  border-color: var(--chartreuse);
  color: var(--chartreuse) !important;
}

header.site-nav.nav-theme-dark:not(.scrolled) .nav-cta:hover {
  background: var(--chartreuse);
  color: var(--gunmetal) !important;
}

header.site-nav.nav-theme-dark:not(.scrolled) .nav-toggle {
  color: var(--parchment);
}

/* Scrolled Header State (All pages share this dark translucent surface) */
header.site-nav.scrolled {
  background: rgba(0, 39, 43, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(168, 191, 193, 0.15), 0 8px 24px rgba(0, 0, 0, 0.2);
}

header.site-nav.scrolled .nav-mark {
  color: var(--parchment) !important;
}

header.site-nav.scrolled .nav-links a {
  color: var(--sage) !important;
}

header.site-nav.scrolled .nav-links a[aria-current="page"] {
  color: var(--chartreuse) !important;
}

header.site-nav.scrolled .nav-cta {
  border-color: var(--chartreuse) !important;
  color: var(--chartreuse) !important;
}

header.site-nav.scrolled .nav-cta:hover {
  background: var(--chartreuse) !important;
  color: var(--gunmetal) !important;
}

header.site-nav.scrolled .nav-toggle {
  color: var(--parchment) !important;
}

/* Mobile Nav Drawer & Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 39, 43, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 340px);
    height: 100vh;
    background: var(--gunmetal);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2.5rem clamp(1.5rem, 5vw, 2.5rem);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 110;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.05rem;
    color: var(--sage) !important;
  }

  .nav-links a[aria-current="page"] {
    color: var(--chartreuse) !important;
  }

  .nav-cta {
    border-color: var(--chartreuse) !important;
    color: var(--chartreuse) !important;
  }

  .nav-toggle {
    display: block;
    z-index: 120;
  }
}

/* ---- Shared Footer ---- */
footer.site-footer {
  padding: 3rem 0;
  position: relative;
  z-index: 2;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.footer-brand .fmark {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--parchment);
}

.footer-brand .ftag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--sage);
}

.footer-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sage);
  transition: color 0.25s var(--ease);
}

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

.footer-meta {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--sage);
}

.footer-meta a {
  color: var(--sage);
  transition: color 0.25s var(--ease);
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--chartreuse);
}

@media (max-width: 760px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   PAGE: INDEX (HOME)
   ========================================================================== */
#arrival {
  min-height: 100vh;
  color: var(--parchment);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
}

.order-marks {
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 1;
}

.order-marks span {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--chartreuse);
  opacity: 0;
  animation: markSettle 1.6s var(--ease) forwards;
}

@keyframes markSettle {
  0% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); }
  70% { opacity: 1; }
  100% { opacity: 0.85; transform: translate(0, 0) rotate(0deg); }
}

.arrival-mark {
  font-family: var(--label);
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--sage);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.15s forwards;
}

.arrival-headline {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 9vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
}

.arrival-headline span.ln {
  display: block;
  opacity: 0;
}

.arrival-headline span.ln:nth-child(1) {
  transform: translateX(-6%) rotate(-1.2deg);
  animation: settleLine 0.9s var(--ease) 0.3s forwards;
}

.arrival-headline span.ln:nth-child(2) {
  transform: translateX(5%) rotate(1deg);
  animation: settleLine 0.9s var(--ease) 0.48s forwards;
}

.arrival-headline span.ln:nth-child(3) {
  transform: translateX(-3%) rotate(-0.6deg);
  color: var(--chartreuse);
  animation: settleLine 0.9s var(--ease) 0.66s forwards;
}

@keyframes settleLine {
  from { opacity: 0; transform: translateX(var(--sx, 0)) rotate(var(--sr, 0)); }
  to { opacity: 1; transform: translateX(0) rotate(0deg); }
}

.arrival-sub {
  margin-top: 2.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--sage);
  max-width: 48ch;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.95s forwards;
}

.arrival-ctas {
  margin-top: 2.6rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.15s forwards;
}

@media (max-width: 480px) {
  .arrival-ctas {
    flex-direction: column;
    width: 100%;
  }
  .arrival-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sage);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  z-index: 2;
}

.scroll-cue .line {
  width: 28px;
  height: 1px;
  background: var(--sage);
  position: relative;
  overflow: hidden;
}

.scroll-cue .line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--chartreuse);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

#who-we-are .wrap {
  max-width: 820px;
}

#who-we-are p.lede {
  margin-top: 1.4rem;
  max-width: 60ch;
}

#order .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

#order .grid p.lede {
  margin-top: 1.2rem;
}

.frag-field {
  position: relative;
  height: 220px;
}

.frag-tile {
  position: absolute;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--parchment);
  background: var(--deepteal);
  border: 1px solid rgba(244, 241, 232, 0.25);
  padding: 0.5rem 0.85rem;
  transition: transform 1s var(--ease), opacity 0.6s var(--ease);
  opacity: 0;
  transform: translate(var(--fx), var(--fy)) rotate(var(--fr));
}

.frag-field.in .frag-tile {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
}

@media (max-width: 900px) {
  #order .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .frag-field {
    height: 180px;
  }
}

#pillars .pillars-head {
  margin-bottom: 3.5rem;
  max-width: 60ch;
}

#pillars .pillars-head .lede {
  margin-top: 1.2rem;
}

.tree {
  position: relative;
  margin-top: 3.5rem;
}

.tree-spine {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: rgba(244, 241, 232, 0.3);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease) 0.1s;
}

.tree.in .tree-spine {
  transform: scaleX(1);
}

.tree-row {
  display: flex;
  gap: 1.8rem;
  padding-top: 1px;
}

.tree-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.tree.in .tree-col {
  opacity: 1;
  transform: translateY(0);
}

.tree.in .tree-col:nth-child(1) { transition-delay: 0.15s; }
.tree.in .tree-col:nth-child(2) { transition-delay: 0.3s; }
.tree.in .tree-col:nth-child(3) { transition-delay: 0.45s; }
.tree.in .tree-col:nth-child(4) { transition-delay: 0.6s; }

.tree-drop {
  width: 1px;
  height: 26px;
  margin: 0 auto;
  background: rgba(244, 241, 232, 0.3);
}

.tree-node {
  border: 1px solid rgba(244, 241, 232, 0.28);
  background: rgba(0, 39, 43, 0.35);
  padding: 2rem 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.tree-col:hover .tree-node {
  border-color: var(--chartreuse);
  transform: translateY(-6px);
}

.tnum {
  font-family: var(--label);
  font-size: 0.72rem;
  color: var(--chartreuse);
  letter-spacing: 0.16em;
}

.tree-node h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin: 0.4rem 0 0.6rem;
  line-height: 1;
}

.tree-node p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--sage);
}

.tree-node a.tree-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--chartreuse);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.tree-node a.tree-link:hover {
  border-color: var(--chartreuse);
}

@media (max-width: 900px) {
  .tree-row {
    flex-direction: column;
    gap: 1.6rem;
  }
  .tree-spine {
    display: none;
  }
}

.pillars-system {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--label);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--sage);
}

.pillars-system b {
  color: var(--chartreuse);
  font-weight: 600;
}

.pillars-system .sep {
  color: rgba(168, 191, 193, 0.4);
}

#partnership .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

#partnership .lines p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

#partnership .callout {
  margin-top: 1.6rem;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--chartreuse);
  line-height: 1.15;
}

#partnership .side p {
  color: var(--deepteal);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

@media (max-width: 900px) {
  #partnership .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

#who-list .wrap {
  text-align: center;
}

.who-row {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.who-chip {
  font-family: var(--label);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(0, 39, 43, 0.25);
  border-radius: 2px;
}

#final-cta {
  color: var(--gunmetal);
  text-align: center;
  padding: clamp(6rem, 14vh, 10rem) 0;
}

#final-cta .lede {
  margin: 1.6rem auto 0;
  color: var(--deepteal);
}

#final-cta .final-ctas {
  margin-top: 2.6rem;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

#final-cta .btn-primary {
  background: var(--gunmetal);
  color: var(--chartreuse);
  border-color: var(--gunmetal);
}

#final-cta .btn-primary:hover {
  box-shadow: 0 10px 24px rgba(0, 39, 43, 0.25);
}

/* ==========================================================================
   PAGE: WHAT WE DO
   ========================================================================== */
#page-hero {
  padding-top: 9.5rem;
  padding-bottom: 4rem;
}

#page-hero .lede {
  margin-top: 1.3rem;
}

#system-rail .rail-row {
  display: flex;
  gap: 1.6rem;
  margin-top: 3rem;
}

.rail-node {
  flex: 1;
  border: 1px solid rgba(244, 241, 232, 0.28);
  padding: 1.4rem 1.2rem;
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(14px);
  display: block;
}

#system-rail.in .rail-node {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.3s;
}

#system-rail.in .rail-node:nth-child(1) { transition-delay: 0.1s; }
#system-rail.in .rail-node:nth-child(2) { transition-delay: 0.22s; }
#system-rail.in .rail-node:nth-child(3) { transition-delay: 0.34s; }
#system-rail.in .rail-node:nth-child(4) { transition-delay: 0.46s; }

.rail-node:hover {
  border-color: var(--chartreuse);
  transform: translateY(-4px);
}

.rail-node .rnum {
  font-family: var(--label);
  font-size: 0.68rem;
  color: var(--chartreuse);
  letter-spacing: 0.14em;
}

.rail-node h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin: 0.3rem 0 0.4rem;
}

.rail-node p {
  color: var(--sage);
  font-size: 0.82rem;
}

.rail-caption {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage);
  font-size: 1.02rem;
  max-width: 52ch;
}

@media (max-width: 860px) {
  #system-rail .rail-row {
    flex-direction: column;
  }
}

.chapter {
  scroll-margin-top: var(--nav-height);
}

.chapter-head {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.chapter-head .cnum {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  opacity: 0.85;
  line-height: 1;
}

.chapter-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 52ch;
  margin-bottom: 1.6rem;
}

.chapter-problem {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.1rem;
  border-left: 2px solid var(--chartreuse);
  margin-bottom: 2.4rem;
  max-width: 56ch;
}

.expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-top: 1.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
}

.expand-toggle .plus {
  transition: transform 0.3s var(--ease);
  font-size: 1rem;
  display: inline-block;
}

.expand-toggle[aria-expanded="true"] .plus {
  transform: rotate(45deg);
}

.expand-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.expand-panel.open {
  grid-template-rows: 1fr;
}

.expand-panel > ul {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  padding-top: 0;
  transition: padding-top 0.4s var(--ease);
}

.expand-panel.open > ul {
  padding-top: 1.6rem;
}

.expand-panel li {
  font-size: 0.88rem;
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(0, 39, 43, 0.18);
}

.on-dark .expand-panel li {
  border-top: 1px dashed rgba(244, 241, 232, 0.18);
  color: var(--sage);
}

@media (max-width: 700px) {
  .expand-panel > ul {
    grid-template-columns: 1fr;
  }
}

#brand .framework {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0, 39, 43, 0.18);
  margin-top: 2.4rem;
  max-width: 760px;
}

#brand .framework .fcell {
  background: var(--parchment);
  padding: 1.6rem;
}

#brand .framework .flabel {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--deepteal);
  margin-bottom: 0.4rem;
}

#brand .framework .fq {
  font-size: 0.85rem;
  color: var(--gunmetal);
  opacity: 0.85;
}

#create {
  overflow: hidden;
}

#create .chapter-head h2.big {
  color: var(--parchment);
}

#create .chapter-role {
  color: var(--parchment);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

#create .chapter-problem {
  color: var(--parchment);
  background: rgba(244, 241, 232, 0.08);
  border-left: 3px solid var(--chartreuse);
}

#create .kinetic-line {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 3rem);
  color: var(--chartreuse);
  margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
}

#create .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

#create .tag {
  font-family: var(--label);
  font-size: 0.82rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(244, 241, 232, 0.3);
  border-radius: 20px;
  color: var(--parchment);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, color 0.3s;
  display: inline-block;
}

#create .tag:nth-child(odd):hover {
  transform: rotate(-3deg) translateY(-3px);
}

#create .tag:nth-child(even):hover {
  transform: rotate(3deg) translateY(-3px);
}

#create .tag:hover {
  border-color: var(--chartreuse);
  background: var(--chartreuse);
  color: var(--gunmetal);
}

#produce .precise-grid {
  margin-top: 2.4rem;
  border-top: 1px solid rgba(0, 39, 43, 0.25);
  max-width: 820px;
}

#produce .precise-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(0, 39, 43, 0.2);
  align-items: baseline;
}

#produce .precise-row span.tick {
  font-family: var(--label);
  font-size: 0.7rem;
  color: var(--deepteal);
  opacity: 0.6;
}

#produce .precise-row span.item {
  font-size: 0.94rem;
}

#produce .reg-marks {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  width: 22px;
  height: 22px;
  opacity: 0.35;
}

#media {
  padding-top: 0;
  padding-bottom: 0;
}

#media .letterbox-top,
#media .letterbox-bottom {
  height: clamp(1.5rem, 4vh, 3rem);
  background: var(--gunmetal);
}

#media .frame-inner {
  padding: clamp(3.5rem, 8vh, 6rem) 0;
  position: relative;
}

#media .frame-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

#media .reel {
  display: flex;
  gap: 1px;
  margin-top: 2.4rem;
  background: rgba(244, 241, 232, 0.15);
  max-width: 100%;
  overflow-x: auto;
}

#media .reel-frame {
  flex: none;
  width: 150px;
  aspect-ratio: 16 / 10;
  background: var(--deepteal);
  display: flex;
  align-items: center;
  justify-content: center;
}

#media .reel-frame svg {
  width: 40%;
  opacity: 0.5;
}

#connection .grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

#connection .lines p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

#connection .callout {
  margin-top: 1.4rem;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--chartreuse);
}

@media (max-width: 900px) {
  #connection .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

#entry h2.big {
  color: var(--parchment);
}

#entry .examples {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 56ch;
}

#entry .examples li {
  position: relative;
  padding-left: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--parchment);
  line-height: 1.55;
}

#entry .examples li::before {
  content: '"';
  position: absolute;
  left: 0;
  color: var(--chartreuse);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}

#entry .reassure {
  margin-top: 2.2rem;
  font-size: 1.05rem;
  max-width: 54ch;
  color: var(--parchment);
}

#chapter-cta {
  text-align: center;
}

#chapter-cta h2.big {
  color: var(--parchment);
}

#chapter-cta h2.big em {
  color: var(--chartreuse);
}

#chapter-cta .lede {
  margin: 1.4rem auto 0;
  color: var(--parchment);
}

/* ==========================================================================
   PAGE: HOW WE WORK
   ========================================================================== */
#page-hero .wrap {
  max-width: 820px;
}

#page-hero p.explain {
  margin-top: 1.6rem;
  font-size: 0.98rem;
  color: var(--deepteal);
  max-width: 58ch;
}

#journey {
  padding-top: 2rem;
}

.thread-wrap {
  position: relative;
  padding-left: 3.2rem;
}

.thread-dotted {
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-image: linear-gradient(var(--deepteal) 40%, transparent 0);
  background-size: 2px 10px;
  opacity: 0.35;
}

.thread-solid {
  position: absolute;
  left: 9px;
  top: 6px;
  width: 2px;
  height: 0%;
  background: var(--chartreuse);
  transition: height 0.1s linear;
}

.thread-dot {
  position: absolute;
  left: calc(-3.2rem + 2px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--deepteal);
  box-shadow: 0 0 0 3px var(--parchment);
  z-index: 2;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.thread-dot.passed {
  background: var(--chartreuse);
  border-color: var(--gunmetal);
  transform: scale(1.1);
}

.stage {
  position: relative;
  padding-bottom: 4.2rem;
}

.stage:last-child {
  padding-bottom: 0;
}

.stage .snum {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--chartreuse);
  background: var(--gunmetal);
  padding: 0.15rem 0.5rem;
  display: inline-block;
}

.stage .micro {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--deepteal);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.stage h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin: 0.4rem 0 0.8rem;
}

.stage .body {
  max-width: 60ch;
  font-size: 0.98rem;
  color: var(--gunmetal);
}

.stage .questions {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stage .questions li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--deepteal);
}

.stage .keyline {
  margin-top: 1.2rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--deepteal);
  border-left: 2px solid var(--chartreuse);
  padding-left: 1rem;
}

.stage .discipline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.stage .dchip {
  font-family: var(--label);
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 39, 43, 0.3);
  border-radius: 2px;
}

.nonlinear {
  margin-top: 2.4rem;
  max-width: 420px;
}

.nonlinear-caption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--deepteal);
  max-width: 44ch;
}

#no-brief {
  text-align: center;
}

#no-brief .wrap {
  max-width: 700px;
}

#no-brief h2.big {
  color: var(--parchment);
}

#no-brief h2.big em {
  color: var(--chartreuse);
}

#no-brief .lede {
  margin: 1.3rem auto 0;
  color: var(--sage);
}

#brief-quote {
  text-align: center;
}

#brief-quote .wrap {
  max-width: 820px;
}

#brief-quote p.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.5;
  color: var(--parchment);
}

#brief-quote p.pull em {
  color: var(--chartreuse);
  font-style: normal;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85em;
  display: block;
  margin-top: 1rem;
}

#exchange h2.big {
  color: var(--parchment);
}

#exchange h2.big em {
  color: var(--chartreuse);
}

#exchange .cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.4rem;
  margin-top: 3rem;
}

#exchange .col h4 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--chartreuse);
}

#exchange .col ul li {
  font-size: 0.92rem;
  color: var(--sage);
  padding: 0.4rem 0;
  border-top: 1px dashed rgba(244, 241, 232, 0.18);
}

#exchange .col.together {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#exchange .col.together p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--parchment);
}

@media (max-width: 860px) {
  #exchange .cols {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

#collab .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 3rem;
}

#collab h4 {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--deepteal);
  opacity: 0.7;
  margin-bottom: 1.2rem;
}

#collab dl {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#collab dt {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.15rem;
  display: inline;
}

#collab dd {
  display: inline;
  font-size: 0.9rem;
  color: var(--gunmetal);
  opacity: 0.85;
  margin-left: 0.5rem;
}

@media (max-width: 860px) {
  #collab .cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

#need .wrap {
  max-width: 760px;
}

#need h2.big {
  color: var(--parchment);
}

#need h2.big em {
  color: var(--chartreuse);
}

#need ul {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

#need li {
  font-family: var(--label);
  font-size: 0.82rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(244, 241, 232, 0.3);
  border-radius: 20px;
  color: var(--sage);
}

#need p.tone {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--chartreuse);
}

#work-cta {
  text-align: center;
}

#work-cta .lede {
  margin: 1.4rem auto 0;
}

/* ==========================================================================
   PAGE: CONTACT
   ========================================================================== */
#constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#constellation svg {
  width: 100%;
  height: 100%;
}

#constellation .node {
  transition: opacity 0.6s var(--ease), fill 0.5s var(--ease);
}

#constellation .link {
  transition: opacity 0.8s var(--ease), stroke 0.5s var(--ease);
}

#constellation .drift {
  animation: driftSlow 34s ease-in-out infinite;
}

@keyframes driftSlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 8px); }
}

#contact-hero {
  padding-top: 9.5rem;
  padding-bottom: 3rem;
}

#contact-hero .wrap {
  max-width: 840px;
}

#contact-hero .lede {
  margin-top: 1.5rem;
}

#contact-hero .lines {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--chartreuse);
}

#contact-hero .lines p {
  font-size: 1rem;
  color: var(--gunmetal);
}

#contact-hero .lines b {
  color: var(--deepteal);
  font-weight: 700;
}

#contact-info .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

#contact-info h3 {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--sage);
  opacity: 0.85;
  margin-bottom: 1.1rem;
}

#contact-info .reach a,
#contact-info .reach p {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
  color: var(--parchment);
}

#contact-info .reach a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}

#contact-info .reach a:hover,
#contact-info .reach a:focus-visible {
  border-color: var(--chartreuse);
  color: var(--chartreuse);
}

#contact-info .rooted {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--chartreuse);
  line-height: 1.15;
}

#contact-info .reassure .q {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--parchment);
  margin-bottom: 0.7rem;
}

#contact-info .reassure p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--sage);
  max-width: 34ch;
}

@media (max-width: 860px) {
  #contact-info .info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

#contact-form-section {
  padding-top: clamp(4rem, 9vh, 6.5rem);
  padding-bottom: clamp(4rem, 9vh, 6.5rem);
}

#contact-form-section .form-intro {
  margin-bottom: 2.6rem;
  max-width: 60ch;
}

.paper {
  background: var(--parchment);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 2px 0 rgba(224, 255, 79, 0.4);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.q-step {
  padding: 2.6rem clamp(1.6rem, 3vw, 3.2rem);
  border-bottom: 1px solid rgba(0, 39, 43, 0.14);
}

.q-step:last-of-type {
  border-bottom: none;
}

.q-step .qnum {
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--parchment);
  background: var(--deepteal);
  padding: 0.2rem 0.6rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.q-step .qtitle {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-bottom: 1.4rem;
  color: var(--gunmetal);
}

.req {
  color: var(--deepteal);
  opacity: 0.75;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--deepteal);
  display: block;
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  background: rgba(0, 39, 43, 0.045);
  border: none;
  border-bottom: 2px solid rgba(0, 39, 43, 0.28);
  padding: 0.75rem 0.9rem;
  color: var(--gunmetal);
  border-radius: 2px 2px 0 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(0, 39, 43, 0.4);
  font-style: italic;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--deepteal);
  background: rgba(224, 255, 79, 0.08);
  outline: 2px solid var(--chartreuse);
  outline-offset: 1px;
}

.field input:invalid:focus,
.field textarea:invalid:focus {
  border-color: #d9534f;
}

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

/* Accessible Visually Hidden Helper for Inputs */
.sr-only-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typographic Selection Lists */
.choice-list {
  display: flex;
  flex-direction: column;
}

.choice-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px dashed rgba(0, 39, 43, 0.18);
  position: relative;
  cursor: pointer;
  border-radius: 2px;
}

.choice-list .choice-row:first-child {
  border-top: none;
}

.choice-row .cword {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--gunmetal);
  transition: color 0.25s var(--ease);
}

.choice-row .cdesc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--deepteal);
  opacity: 0.7;
}

.choice-row::before {
  content: '';
  position: absolute;
  left: -1.4rem;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--chartreuse);
  transition: width 0.3s var(--ease);
}

.choice-row:hover .cword {
  color: var(--deepteal);
}

.choice-row:has(.sr-only-input:focus-visible) {
  outline: 2px solid var(--deepteal);
  outline-offset: 4px;
}

.choice-row:has(.sr-only-input:checked)::before {
  width: 1rem;
}

.choice-row:has(.sr-only-input:checked) .cword {
  color: var(--deepteal);
}

.choice-row:has(.sr-only-input:checked) .cword::after {
  content: ' ✓';
  color: var(--deepteal);
  font-weight: 900;
}

/* Timeline Radio Pills */
.inline-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill {
  font-family: var(--label);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gunmetal);
  padding: 0.7rem 1.3rem;
  border: 1.5px solid rgba(0, 39, 43, 0.3);
  border-radius: 20px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.pill:hover {
  border-color: var(--deepteal);
}

.pill:has(.sr-only-input:focus-visible) {
  outline: 3px solid var(--chartreuse);
  outline-offset: 2px;
}

.pill:has(.sr-only-input:checked) {
  background: var(--gunmetal);
  color: var(--chartreuse);
  border-color: var(--gunmetal);
}

.extra-note {
  font-size: 0.85rem;
  color: var(--deepteal);
  opacity: 0.75;
  max-width: 52ch;
  margin-bottom: 1.6rem;
}

.cta-strip {
  background: var(--chartreuse);
  padding: 2.4rem clamp(1.6rem, 3vw, 3.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.cta-strip .form-error {
  font-family: var(--label);
  font-size: 0.8rem;
  color: #b91c1c;
  max-width: 38ch;
  display: none;
}

.cta-strip .form-error.visible {
  display: block;
}

.cta-strip .btn-primary {
  background: var(--gunmetal);
  color: var(--chartreuse);
  border-color: var(--gunmetal);
}

.cta-strip .btn-primary:hover {
  box-shadow: 0 14px 30px rgba(0, 39, 43, 0.35);
}

.success-panel {
  display: none;
  padding: 3.2rem clamp(1.6rem, 3vw, 3.2rem);
  background: var(--gunmetal);
}

.success-panel.show {
  display: block;
}

.success-panel h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--chartreuse);
  margin-bottom: 1.1rem;
}

.success-panel p {
  color: var(--sage);
  max-width: 52ch;
  margin-bottom: 0.8rem;
}

.success-panel a {
  color: var(--chartreuse);
  border-bottom: 1px solid var(--chartreuse);
  font-family: var(--label);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

#contactForm.submitted .form-fields,
#contactForm.submitted .cta-strip {
  display: none;
}

/* ==========================================================================
   REDUCED MOTION OVERRIDES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .bg-grid-dark,
  .bg-halftone-light,
  .bg-diagonal,
  #constellation .drift {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .tree-col,
  .tree-spine,
  .frag-tile,
  .rail-node {
    opacity: 1 !important;
    transform: none !important;
  }
}
