:root {
  --bg: #f6f5f0;
  --text: #1d1d1b;
  --muted: #6b6b66;
  --card: #ebeae4;
  --card-light: #f2f1eb;
  --paper: #fbfaf6;
  --accent: #a3b18a;
  --accent-dark: #687756;
  --sage-soft: #d8dec9;
  --clay: #b79f83;
  --ink-soft: rgba(29, 29, 27, 0.12);
  --shadow: 0 22px 58px rgba(43, 41, 34, 0.105);
  --radius: 28px;
  --max: 1180px;
  --display: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181712;
  --text: #f3efe5;
  --muted: #b7b0a2;
  --card: #25231c;
  --card-light: #2d2a22;
  --paper: #211f19;
  --accent: #a7b28c;
  --accent-dark: #c0cca1;
  --sage-soft: #4b523b;
  --clay: #b79b78;
  --ink-soft: rgba(243, 239, 229, 0.14);
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 28%, rgba(116, 147, 143, 0.12), transparent 26%),
    radial-gradient(circle at 10% 20%, rgba(216, 222, 201, 0.5), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(183, 159, 131, 0.15), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(163, 177, 138, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), transparent 45%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 28%, rgba(116, 147, 143, 0.09), transparent 26%),
    radial-gradient(circle at 10% 20%, rgba(104, 119, 86, 0.14), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(183, 159, 131, 0.1), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(163, 177, 138, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  z-index: -1;
  background-image:
    linear-gradient(rgba(104, 119, 86, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 119, 86, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.72) 38%, black 76%);
}

html[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(192, 204, 161, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 204, 161, 0.048) 1px, transparent 1px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 12px 18px, rgba(104, 119, 86, 0.22) 0.6px, transparent 0.8px),
    radial-gradient(circle at 32px 6px, rgba(104, 119, 86, 0.16) 0.5px, transparent 0.8px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.72) 38%, black 76%);
}

html[data-theme="dark"] body::after {
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 12px 18px, rgba(192, 204, 161, 0.18) 0.6px, transparent 0.8px),
    radial-gradient(circle at 32px 6px, rgba(192, 204, 161, 0.12) 0.5px, transparent 0.8px);
}

html[data-theme="dark"] :where(
  .nav-shell,
  .project-card,
  .project-preview,
  .teardown-tab,
  .care-card,
  .principles__intro,
  .principles__track,
  .about__image,
  .about__copy,
  .contact-card,
  .writing-index,
  .writing-list,
  .writing-list article,
  .verse-card,
  .poem-row,
  .project-meta-card,
  .case-section,
  .visual-card,
  .next-card
) {
  border-color: rgba(243, 239, 229, 0.1);
  background-color: rgba(33, 31, 25, 0.78);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] :where(.button, .card-cta--dark) {
  background: #f3efe5;
  color: #181712;
}

html[data-theme="dark"] :where(.card-cta, .article-link, .about-link) {
  border-color: rgba(243, 239, 229, 0.14);
}

.site-spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(210px circle at var(--site-spotlight-x, 50vw) var(--site-spotlight-y, 50vh),
      rgba(250, 250, 250, 0.64) 0%,
      rgba(238, 225, 205, 0.3) 42%,
      transparent 76%),
    radial-gradient(560px circle at var(--site-spotlight-x, 50vw) var(--site-spotlight-y, 50vh),
      rgba(185, 151, 118, 0.28) 0%,
      rgba(116, 147, 143, 0.18) 32%,
      rgba(163, 177, 138, 0.14) 52%,
      transparent 78%);
  filter: blur(22px);
  mix-blend-mode: multiply;
  transition: opacity 220ms ease;
}

body.has-site-spotlight .site-spotlight {
  opacity: 1;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

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

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

::selection {
  color: var(--text);
  background: rgba(163, 177, 138, 0.52);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 250, 224, 0.44), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(116, 147, 143, 0.28), transparent 35%),
    radial-gradient(circle at 50% 85%, rgba(240, 217, 168, 0.46), transparent 38%),
    linear-gradient(145deg, #ede9db 0%, #d9d1bc 52%, #aeb0a3 100%);
  transition: opacity 700ms ease, visibility 700ms ease;
}

.loader::before,
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loader::before {
  opacity: 0.9;
  background-image:
    radial-gradient(circle, rgba(255, 255, 247, 0.86) 0 0.8px, rgba(255, 238, 184, 0.42) 0.9px 2px, transparent 5.5px),
    radial-gradient(circle, rgba(255, 255, 247, 0.66) 0 0.7px, rgba(163, 177, 138, 0.32) 0.8px 1.8px, transparent 5px),
    radial-gradient(circle, rgba(255, 255, 247, 0.52) 0 0.6px, rgba(255, 238, 184, 0.25) 0.7px 1.4px, transparent 4px),
    radial-gradient(circle at 8% 20%, rgba(255, 255, 247, 0.98) 0 1px, rgba(255, 243, 198, 0.74) 1.1px 2.8px, transparent 8px),
    radial-gradient(circle at 18% 72%, rgba(255, 255, 247, 0.88) 0 1px, rgba(255, 238, 184, 0.54) 1.1px 2.6px, transparent 7px),
    radial-gradient(circle at 29% 34%, rgba(255, 255, 247, 0.82) 0 0.9px, rgba(163, 177, 138, 0.5) 1px 2.5px, transparent 7px),
    radial-gradient(circle at 42% 16%, rgba(255, 255, 247, 0.98) 0 1.2px, rgba(255, 243, 198, 0.64) 1.3px 3px, transparent 9px),
    radial-gradient(circle at 57% 68%, rgba(255, 255, 247, 0.86) 0 1px, rgba(255, 238, 184, 0.48) 1.1px 2.8px, transparent 8px),
    radial-gradient(circle at 70% 28%, rgba(255, 255, 247, 0.92) 0 1px, rgba(163, 177, 138, 0.5) 1.1px 2.8px, transparent 8px),
    radial-gradient(circle at 84% 78%, rgba(255, 255, 247, 1) 0 1.4px, rgba(255, 238, 184, 0.62) 1.5px 3.4px, transparent 10px),
    radial-gradient(circle at 94% 38%, rgba(255, 255, 247, 0.88) 0 0.9px, rgba(255, 238, 184, 0.5) 1px 2.6px, transparent 8px),
    conic-gradient(from 45deg at 8% 20%, transparent 0 23%, rgba(255, 255, 247, 0.72) 24% 26%, transparent 27% 48%, rgba(255, 255, 247, 0.72) 49% 51%, transparent 52% 73%, rgba(255, 255, 247, 0.72) 74% 76%, transparent 77% 98%, rgba(255, 255, 247, 0.72) 99% 100%),
    conic-gradient(from 45deg at 42% 16%, transparent 0 23%, rgba(255, 255, 247, 0.58) 24% 26%, transparent 27% 48%, rgba(255, 255, 247, 0.58) 49% 51%, transparent 52% 73%, rgba(255, 255, 247, 0.58) 74% 76%, transparent 77% 98%, rgba(255, 255, 247, 0.58) 99% 100%),
    conic-gradient(from 45deg at 84% 78%, transparent 0 23%, rgba(255, 255, 247, 0.68) 24% 26%, transparent 27% 48%, rgba(255, 255, 247, 0.68) 49% 51%, transparent 52% 73%, rgba(255, 255, 247, 0.68) 74% 76%, transparent 77% 98%, rgba(255, 255, 247, 0.68) 99% 100%);
  background-size:
    156px 126px, 212px 172px, 98px 144px,
    auto, auto, auto, auto, auto, auto, auto, auto,
    22px 22px, 26px 26px, 28px 28px;
  background-position:
    16px 22px, 48px 36px, 88px 12px,
    0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0,
    calc(8% - 11px) calc(20% - 11px),
    calc(42% - 13px) calc(16% - 13px),
    calc(84% - 14px) calc(78% - 14px);
  background-repeat:
    repeat, repeat, repeat,
    no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat,
    no-repeat, no-repeat, no-repeat;
  filter: drop-shadow(0 0 9px rgba(255, 246, 216, 0.62)) drop-shadow(0 0 18px rgba(240, 217, 168, 0.32));
  animation: loader-stars-twinkle 4.4s ease-in-out infinite;
}

.loader::after {
  opacity: 0.62;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(251, 250, 246, 0.54), transparent 42%),
    radial-gradient(ellipse at 82% 14%, rgba(255, 255, 247, 0.2), transparent 24%),
    radial-gradient(circle at 12% 82%, rgba(255, 255, 247, 0.16), transparent 18%),
    linear-gradient(116deg, transparent 12%, rgba(255, 255, 255, 0.2) 43%, transparent 66%);
  mix-blend-mode: screen;
  animation: loader-sky-breathe 6.2s ease-in-out infinite;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.skip-loader .loader {
  display: none;
}

.loader__sky {
  position: relative;
  z-index: 1;
  width: min(760px, 86vw);
  height: min(430px, 62vh);
}

.loader svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.constellation-node {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 520ms ease, transform 520ms ease;
}

.constellation-node.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.constellation-node__dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 0 0 8px rgba(163, 177, 138, 0.14), 0 0 24px rgba(163, 177, 138, 0.86);
  animation: sparkle 1600ms ease-in-out infinite;
}

.constellation-node__label {
  position: absolute;
  top: 24px;
  left: 50%;
  min-width: 86px;
  transform: translateX(-50%);
  text-align: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 650;
  white-space: nowrap;
}

.constellation-line {
  stroke: rgba(29, 29, 27, 0.24);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 680ms ease;
}

.constellation-line.is-visible {
  stroke-dashoffset: 0;
}

.loader__blink {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: white;
  opacity: 0;
}

.loader.is-blinking .loader__blink {
  animation: whiteBlink 540ms ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 26px clamp(20px, 2.4vw, 34px) 0;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 116px;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(246, 245, 240, 0.92), rgba(246, 245, 240, 0.68) 62%, rgba(246, 245, 240, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.dock-trigger {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  pointer-events: auto;
}

.standalone-brand {
  position: fixed;
  top: 28px;
  left: clamp(20px, 2.4vw, 34px);
  pointer-events: auto;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 680;
  opacity: 1;
  transition: opacity 220ms ease, transform 220ms ease;
}

.nav-shell {
  width: min(980px, calc(100vw - 36px));
  max-width: calc(100vw - 260px);
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 22px;
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(235, 234, 228, 0.42)),
    rgba(246, 245, 240, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(29, 29, 27, 0.06),
    0 18px 54px rgba(36, 34, 30, 0.16);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 260ms ease,
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.site-header.is-dock-open .nav-shell,
.site-header:focus-within .nav-shell {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header.is-dock-open .standalone-brand,
.site-header:focus-within .standalone-brand {
  opacity: 0;
  transform: translateY(-6px);
}

.header-timezone {
  position: absolute;
  top: 50%;
  pointer-events: auto;
}

.header-timezone {
  right: clamp(20px, 2.4vw, 34px);
  display: grid;
  justify-items: end;
  gap: 3px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}

.header-timezone time {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.header-timezone span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.theme-toggle {
  position: fixed;
  top: 26px;
  right: clamp(148px, 12vw, 214px);
  z-index: 22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px 0 10px;
  pointer-events: auto;
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.72);
  color: var(--text);
  font: 760 0.72rem/1 var(--sans);
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(36, 34, 30, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 119, 86, 0.24);
  background: rgba(235, 234, 228, 0.9);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(104, 119, 86, 0.42);
  outline-offset: 3px;
}

.theme-toggle__mark {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a3b18a, #f0d9a8);
  box-shadow: inset -3px -2px 0 rgba(29, 29, 27, 0.16);
}

.theme-toggle__mark::after {
  content: "";
  position: absolute;
  inset: 3px 2px 2px 6px;
  border-radius: inherit;
  background: rgba(251, 250, 246, 0);
  transition: background 180ms ease, transform 180ms ease;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.74);
  color: var(--text);
  font: 760 0.84rem/1 var(--sans);
  box-shadow: 0 10px 24px rgba(36, 34, 30, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 680;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 38px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 27, 0.06), 0 8px 20px rgba(36, 34, 30, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 999px;
  background: rgba(29, 29, 27, 0.92);
  color: #fbfaf6;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 15px 32px rgba(29, 29, 27, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #4f6241;
  color: #fbfaf6;
  border-color: rgba(79, 98, 65, 0.42);
  box-shadow: 0 19px 38px rgba(29, 29, 27, 0.14);
}

.button:active,
.card-cta:active,
.writing-cta:active,
.contact-card a:active,
.case-nav a:active,
.poem-row:active,
.poem-nav button:active,
.poem-close:active {
  transform: translateY(0);
}

.button:focus-visible,
.nav-links a:focus-visible,
.card-cta:focus-visible,
.writing-cta:focus-visible,
.contact-card a:focus-visible,
.case-nav a:focus-visible,
.writing-list article:focus-within,
.poem-row:focus-visible,
.poem-close:focus-visible,
.poem-nav button:focus-visible {
  outline: 2px solid rgba(104, 119, 86, 0.5);
  outline-offset: 4px;
}

.button--small {
  justify-self: end;
  min-height: 42px;
  padding: 0 18px;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.section {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 108px 0;
}

.hero {
  overflow: hidden;
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  align-items: center;
  padding: 52px max(20px, calc((100vw - var(--max)) / 2)) 50px;
}

.hero.section {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  border-radius: 0;
  background:
    linear-gradient(to right, rgba(246, 245, 240, 0.16), rgba(246, 245, 240, 0.02) 46%, rgba(246, 245, 240, 0.08)),
    linear-gradient(to bottom, rgba(246, 245, 240, 0.36), rgba(246, 245, 240, 0) 24%, rgba(246, 245, 240, 0.12) 78%, rgba(246, 245, 240, 0.7)),
    url("assets/hero-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  mask-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), black 10%, black 86%, rgba(0, 0, 0, 0.1)),
    linear-gradient(to right, rgba(0, 0, 0, 0.26), black 7%, black 93%, rgba(0, 0, 0, 0.26));
  mask-composite: intersect;
}

.hero__clarity-field {
  display: none;
}

.hero__portrait-reveal {
  --hero-portrait-x: 70%;
  --hero-portrait-y: 46%;
  --hero-portrait-mask-size: 210px;
  --hero-portrait-glow-size: 320px;
  --hero-portrait-image-opacity: 0.22;
  position: absolute;
  z-index: 1;
  top: clamp(92px, 11vh, 134px);
  right: max(-76px, calc((100vw - var(--max)) / 2 - 112px));
  bottom: clamp(16px, 3.4vh, 48px);
  width: min(50vw, 760px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
  overflow: visible;
}

.hero__portrait-reveal img {
  position: absolute;
  right: clamp(-96px, -4.2vw, -34px);
  bottom: -15%;
  width: min(52vw, 790px);
  max-width: 100%;
  height: auto;
  filter: saturate(0.73) contrast(0.88) sepia(0.07);
  opacity: var(--hero-portrait-image-opacity);
  transition: opacity 620ms ease, filter 620ms ease;
  transform: translate3d(0, 0, 0);
  -webkit-mask-image: linear-gradient(104deg, transparent 0%, transparent 32%, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.56) 50%, rgba(0, 0, 0, 0.16) 61%, transparent 72%, transparent 100%);
  mask-image: linear-gradient(104deg, transparent 0%, transparent 32%, rgba(0, 0, 0, 0.12) 40%, rgba(0, 0, 0, 0.56) 50%, rgba(0, 0, 0, 0.16) 61%, transparent 72%, transparent 100%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 120% 0;
  mask-position: 120% 0;
  animation: hero-portrait-sweep 2s ease-in-out infinite;
}

.hero__portrait-glow {
  position: absolute;
  inset: -18%;
  opacity: 0;
  transition: opacity 520ms ease, transform 520ms ease;
  background:
    linear-gradient(104deg, rgba(240, 217, 168, 0) 16%, rgba(250, 245, 232, 0.52) 42%, rgba(240, 217, 168, 0.24) 55%, rgba(240, 217, 168, 0) 74%);
  background-size: 260% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  filter: blur(2px);
}

.hero__portrait-scratch {
  display: none;
}

.hero.is-portrait-hint .hero__portrait-reveal {
  --hero-portrait-image-opacity: 0.18;
  opacity: 1;
}

.hero.is-portrait-hint .hero__portrait-glow {
  opacity: 0.54;
  animation: hero-portrait-glow-sweep 2s ease-in-out infinite;
}

.hero.is-portrait-active .hero__portrait-reveal {
  --hero-portrait-image-opacity: 1;
  opacity: 1;
}

.hero.is-portrait-active .hero__portrait-reveal img {
  filter: saturate(0.9) contrast(1.02) brightness(1.03) sepia(0.02);
  -webkit-mask-size: auto;
  mask-size: auto;
  animation: none;
}

.hero.is-portrait-active .hero__portrait-glow {
  opacity: 0.5;
  animation: hero-portrait-glow-sweep 2s ease-in-out infinite;
  background:
    linear-gradient(104deg, rgba(240, 217, 168, 0) 16%, rgba(250, 245, 232, 0.42) 42%, rgba(240, 217, 168, 0.18) 55%, rgba(240, 217, 168, 0) 74%);
  background-size: 260% 100%;
  background-position: 120% 0;
}

@media (max-width: 767px), (hover: none), (pointer: coarse) {
  .hero__portrait-reveal {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-portrait-hint .hero__portrait-glow,
  .hero.is-portrait-hint .hero__portrait-reveal img {
    animation: none;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(30px, 4.6vw, 56px);
  isolation: isolate;
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: -120px max(4vw, 44px) -120px -120px;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 34% 46%, rgba(246, 245, 240, 0.62) 0%, rgba(246, 245, 240, 0.34) 42%, rgba(246, 245, 240, 0) 68%);
  filter: blur(22px);
}

.hero::after {
  content: none;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.contact-copy h2,
.principles h2,
.article-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 1060px;
  font-size: clamp(3.15rem, calc(4.3vw + 4px), 5.25rem);
  font-weight: 450;
  line-height: 1.32;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero__lower {
  display: block;
}

.hero__mobile-actions {
  display: none;
}

.hero__copy {
  min-height: 0;
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.75vw, 1.42rem);
  line-height: 1.7;
}

.hero__word-slot {
  position: relative;
  display: inline-block;
  min-width: 6.8em;
  white-space: nowrap;
}

.hero__word-slot:not(.is-animating) .hero__cursor {
  opacity: 0;
  animation: none;
}

#heroWord {
  font-weight: 600;
}

.hero .eyebrow {
  font-weight: 500;
}

.hero__cursor {
  display: inline-block;
  width: 1px;
  height: 1.08em;
  margin-left: 3px;
  vertical-align: -0.16em;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(163, 177, 138, 0.14), 0 0 18px rgba(163, 177, 138, 0.78);
  animation: hero-cursor-blink 1.1s steps(2, start) infinite;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  gap: 52px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading--stacked {
  display: block;
  max-width: 1060px;
}

.section-heading--wide {
  grid-template-columns: 0.54fr 1fr;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2,
.principles h2 {
  max-width: 1060px;
  font-size: 3rem;
  line-height: 1.12;
  text-wrap: balance;
}

.section-deck,
.section-heading p:last-child {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.68;
  text-align: left;
  text-wrap: pretty;
}

.section-deck--wide {
  max-width: min(100%, 1180px);
}

.teardowns .section-heading--stacked {
  max-width: 100%;
}

.teardowns .section-deck,
.teardowns .section-heading p.section-deck:last-child {
  max-width: min(1180px, 100%);
}

.care {
  padding-top: 82px;
}

.care .section-heading--stacked {
  max-width: 100%;
}

.care .section-heading--stacked > div {
  width: 100%;
}

.care .section-deck {
  max-width: min(1120px, 100%);
}

.care .section-deck.section-deck--wide,
.care .section-heading p.section-deck--wide:last-child {
  max-width: 100%;
}

.work-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.62fr;
  gap: 22px;
}

.workspace-stack {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 96px;
}

.workspace-card {
  position: relative;
  position: sticky;
  top: 132px;
  min-height: 430px;
  margin-bottom: clamp(72px, 10vh, 124px);
  padding: clamp(34px, 4.8vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.78), rgba(235, 234, 228, 0.64)),
    #e2ded3;
  box-shadow: 0 14px 36px rgba(36, 34, 30, 0.055);
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
}

.workspace-card > * {
  position: relative;
  z-index: 1;
}

.workspace-card::before,
.workspace-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.workspace-card::before {
  right: clamp(48px, 6vw, 90px);
  top: clamp(82px, 7vw, 126px);
  width: min(38%, 420px);
  height: 220px;
  opacity: 0.14;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: saturate(0.62) contrast(0.92) brightness(1.08);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.62) 22%, #000 62%, transparent 100%);
}

.workspace-card::after {
  right: -36px;
  top: -42px;
  width: min(42%, 400px);
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, rgba(104, 119, 86, 0.12) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(104, 119, 86, 0.1) 0 1px, transparent 1px 34px);
  mask-image: radial-gradient(circle, black 0 54%, transparent 75%);
}

.workspace-card--wordsynk::before {
  width: min(42%, 470px);
  background-image: url("assets/work-wordsynk-logo.png");
}

.workspace-card--path2study::before {
  width: min(30%, 330px);
  height: 260px;
  opacity: 0.13;
  background-image: url("assets/work-path2study-logo.png");
}

.workspace-card--factseal::before {
  width: min(31%, 350px);
  height: 260px;
  opacity: 0.14;
  background-image: url("assets/work-factseal-logo.png");
}

.workspace-card:nth-child(1) {
  z-index: 1;
}

.workspace-card:nth-child(2) {
  top: 132px;
  z-index: 2;
  transform: translateY(22px) scale(0.992);
}

.workspace-card:nth-child(3) {
  top: 132px;
  z-index: 3;
  margin-top: 0;
  margin-bottom: 0;
  transform: translateY(22px) scale(0.984);
}

.workspace-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.workspace-card:nth-child(2).is-visible {
  transform: translateY(0) scale(0.992);
}

.workspace-card:nth-child(3).is-visible {
  transform: translateY(0) scale(0.984);
}

.workspace-card__top {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 32px;
}

.workspace-card__number {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.workspace-card__heading {
  display: grid;
  gap: 18px;
  margin-bottom: 38px;
}

.workspace-card__heading h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.25rem, 3.3vw, 3.2rem);
  font-weight: 430;
  line-height: 1.02;
  letter-spacing: 0;
}

.workspace-card__heading p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.workspace-card__heading span + span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 18px 2px 0;
  border-radius: 999px;
  background: rgba(104, 119, 86, 0.48);
}

.workspace-card__body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  padding-top: 28px;
  border-top: 1px solid rgba(29, 29, 27, 0.065);
}

.workspace-card__body span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #4f6241;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.workspace-card__body p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
  text-align: left;
  text-wrap: pretty;
}

.workspace-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 36px;
}

.project-list,
.teardown-list {
  display: grid;
  gap: 12px;
}

.project-tab,
.teardown-tab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 6px 18px;
  width: 100%;
  min-height: 108px;
  padding: 18px 18px;
  color: var(--text);
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 24px;
  background: rgba(235, 234, 228, 0.72);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.teardown-tab::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 148px;
  height: 94px;
  opacity: 0.18;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: grayscale(1) sepia(0.22) saturate(0.55) contrast(0.92) brightness(1.08);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.72) 24%, #000 58%);
}

.teardown-tab[data-teardown="windows11"]::before {
  width: 120px;
  height: 120px;
  background-image:
    linear-gradient(90deg, rgba(104, 119, 86, 0.52), rgba(104, 119, 86, 0.52)),
    linear-gradient(90deg, rgba(104, 119, 86, 0.48), rgba(104, 119, 86, 0.48)),
    linear-gradient(90deg, rgba(104, 119, 86, 0.44), rgba(104, 119, 86, 0.44)),
    linear-gradient(90deg, rgba(104, 119, 86, 0.4), rgba(104, 119, 86, 0.4));
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-size: 47% 47%;
}

.teardown-tab[data-teardown="irctc"]::before {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background-image: url("assets/teardown-irctc-logo.png");
  clip-path: circle(42% at 50% 50%);
}

.teardown-tab[data-teardown="gpay"]::before {
  width: 124px;
  background-image: url("assets/teardown-gpay-logo.png");
}

.project-tab > *,
.teardown-tab > * {
  position: relative;
  z-index: 1;
}

.project-tab span,
.teardown-tab span {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 650;
}

.project-tab small,
.teardown-tab small {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  padding-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.project-tab p,
.teardown-tab p {
  grid-column: 1;
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.42;
}

.project-tab:hover,
.project-tab.is-active,
.teardown-tab:hover,
.teardown-tab.is-active {
  transform: translateY(-1px);
  background: rgba(251, 250, 246, 0.76);
  box-shadow: var(--shadow);
}

.project-preview {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(251, 250, 246, 0.64), rgba(235, 234, 228, 0.86)),
    var(--card);
  box-shadow: var(--shadow);
}

.project-preview > * {
  position: relative;
  z-index: 1;
}

.preview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(29, 29, 27, 0.1);
}

.status-pill {
  position: relative;
  z-index: 5;
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(29, 29, 27, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(251, 250, 246, 0.48);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pill.is-success {
  border-color: rgba(76, 123, 82, 0.24);
  color: #4c7b52;
  background: rgba(116, 164, 111, 0.14);
}

.status-pill.is-progress {
  border-color: rgba(60, 104, 165, 0.24);
  color: #3c68a5;
  background: rgba(85, 128, 188, 0.13);
}

.preview-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.preview-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 2.25rem;
  line-height: 1.04;
  font-weight: 450;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.preview-meta span + span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 18px 2px 0;
  border-radius: 999px;
  background: rgba(104, 119, 86, 0.48);
}

.preview-body {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.preview-body div {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(29, 29, 27, 0.09);
}

.preview-body span {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.preview-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.58;
}

.preview-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.preview-footer .text-link {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 999px;
  background: rgba(29, 29, 27, 0.92);
  color: #fbfaf6;
  box-shadow: 0 14px 28px rgba(29, 29, 27, 0.12);
}

.preview-footer .text-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--text);
  font-weight: 800;
  text-underline-offset: 0.22em;
}

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

.teardown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.teardown-card {
  position: relative;
  min-height: 360px;
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(251, 250, 246, 0.78), rgba(235, 234, 228, 0.64)),
    #e2ded3;
  box-shadow: 0 18px 50px rgba(36, 34, 30, 0.08);
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 680ms ease,
    transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
}

.teardown-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.teardown-card__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.teardown-card__number {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.teardown-card > h3 {
  margin: 0 0 36px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.8rem, 4.8vw, 4.6rem);
  font-weight: 430;
  line-height: 0.92;
  letter-spacing: 0;
}

.teardown-card__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  padding-top: 28px;
  border-top: 1px solid rgba(29, 29, 27, 0.1);
}

.teardown-card__inner span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #4f6241;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.teardown-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  line-height: 1.7;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.54);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.card-cta:hover {
  background: #4f6241;
  color: #fbfaf6;
  transform: translateY(-1px);
  border-color: rgba(79, 98, 65, 0.42);
  box-shadow: 0 14px 30px rgba(36, 34, 30, 0.075);
}

.card-cta--dark {
  min-height: 46px;
  padding: 0 18px;
  background: rgba(29, 29, 27, 0.92);
  color: #fbfaf6;
  box-shadow: 0 14px 28px rgba(29, 29, 27, 0.12);
}

.card-cta--dark:hover {
  background: #4f6241;
  color: #fbfaf6;
  box-shadow: 0 16px 34px rgba(36, 34, 30, 0.12);
}

.teardown-preview .preview-heading {
  align-items: start;
}

.teardown-preview {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.teardown-preview::before,
.teardown-preview::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.teardown-preview::before {
  right: clamp(26px, 4.4vw, 68px);
  top: clamp(42px, 5vw, 76px);
  width: min(28%, 300px);
  min-width: 210px;
  height: 260px;
  opacity: 0.16;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: grayscale(1) sepia(0.22) saturate(0.55) contrast(0.92) brightness(1.08);
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.58) 18%, #000 52%, rgba(0, 0, 0, 0.7) 82%, transparent 100%);
}

.teardown-preview::after {
  right: -72px;
  bottom: -92px;
  width: min(44%, 430px);
  aspect-ratio: 1;
  border-radius: 999px;
  opacity: 0.2;
  background:
    radial-gradient(circle, transparent 0 34%, rgba(104, 119, 86, 0.16) 35% 36%, transparent 37% 49%, rgba(104, 119, 86, 0.12) 50% 51%, transparent 52%),
    radial-gradient(circle at 30% 30%, rgba(250, 250, 250, 0.8), transparent 44%);
}

.teardown-preview.is-windows11::before {
  width: min(24%, 250px);
  min-width: 190px;
  background-image:
    linear-gradient(90deg, rgba(104, 119, 86, 0.52), rgba(104, 119, 86, 0.52)),
    linear-gradient(90deg, rgba(104, 119, 86, 0.48), rgba(104, 119, 86, 0.48)),
    linear-gradient(90deg, rgba(104, 119, 86, 0.44), rgba(104, 119, 86, 0.44)),
    linear-gradient(90deg, rgba(104, 119, 86, 0.4), rgba(104, 119, 86, 0.4));
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-size: 47% 47%;
}

.teardown-preview.is-irctc::before {
  width: min(24%, 250px);
  min-width: 190px;
  height: 250px;
  border-radius: 50%;
  background-image: url("assets/teardown-irctc-logo.png");
  clip-path: circle(42% at 50% 50%);
}

.teardown-preview.is-gpay::before {
  width: min(34%, 340px);
  min-width: 220px;
  background-image: url("assets/teardown-gpay-logo.png");
}

.teardown-preview .card-cta {
  justify-self: end;
}

.teardown-preview__footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 28px;
}

.teardown-preview .preview-body {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

.teardown-preview .preview-body div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 58px);
  padding: 18px 0;
  border-top: 0;
  border-bottom: 1px solid rgba(29, 29, 27, 0.075);
}

.teardown-preview .preview-body span {
  display: inline-flex;
  margin-bottom: 0;
  align-self: start;
}

.teardown-preview .preview-body p {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  text-wrap: pretty;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink-soft);
  border-left: 1px solid var(--ink-soft);
}

.care-grid article {
  min-height: 330px;
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.4vw, 30px);
  border-right: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  transition: background 180ms ease;
}

.care-grid span {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.care-grid h3 {
  margin: 68px 0 16px;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.12;
}

.care-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.care-grid article:hover {
  background: rgba(235, 234, 228, 0.42);
}

.principles {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  padding: 96px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.principles::before {
  content: none;
}

.principles__intro {
  position: sticky;
  top: 132px;
  min-height: 430px;
  padding: clamp(28px, 3.2vw, 40px);
  overflow: hidden;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(251, 250, 246, 0.78), rgba(235, 234, 228, 0.7)),
    var(--paper);
  box-shadow: 0 14px 34px rgba(36, 34, 30, 0.055);
}

.principles__intro::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -64px;
  width: 230px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.18;
  background:
    repeating-linear-gradient(0deg, rgba(104, 119, 86, 0.16) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(104, 119, 86, 0.13) 0 1px, transparent 1px 28px);
  mask-image: radial-gradient(circle, black 0 55%, transparent 74%);
}

.principles__intro .kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.principles__intro .section-deck {
  position: relative;
  z-index: 1;
  max-width: 33ch;
  margin-top: 28px;
}

.principles__list {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 58px;
}

.principles__list::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 31px;
  bottom: 31px;
  width: 1px;
  background: rgba(104, 119, 86, 0.2);
}

.principle-panel {
  position: relative;
  min-height: 220px;
  padding: clamp(26px, 3.2vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(29, 29, 27, 0.075);
  border-radius: 28px;
  background: rgba(251, 250, 246, 0.58);
  box-shadow: 0 12px 30px rgba(36, 34, 30, 0.035);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.principle-panel:first-child {
  padding-top: clamp(26px, 3.2vw, 38px);
}

.principle-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.principle-panel.is-active,
.principle-panel:hover {
  border-color: rgba(104, 119, 86, 0.22);
  background: rgba(251, 250, 246, 0.86);
  box-shadow: 0 18px 42px rgba(36, 34, 30, 0.065);
}

.principle-panel span {
  position: absolute;
  left: -58px;
  top: 30px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(104, 119, 86, 0.24);
  border-radius: 999px;
  background: rgba(246, 245, 240, 0.96);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease,
    border-color 220ms ease;
}

.principle-panel.is-active span,
.principle-panel:hover span {
  border-color: rgba(104, 119, 86, 0.36);
  background: var(--accent);
  color: var(--text);
  transform: scale(1.03);
}

.principle-panel h3 {
  margin: 0;
  max-width: 760px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 430;
  line-height: 1.1;
  letter-spacing: 0;
}

.principle-panel p {
  max-width: 65ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.66;
}

.about {
  display: grid;
  grid-template-columns: minmax(440px, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(48px, 6vw, 78px);
  align-items: center;
}

.about-media {
  position: sticky;
  top: 112px;
  min-width: 0;
}

.portrait-frame {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 58vw, 760px);
  aspect-ratio: 4 / 5;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(216, 222, 201, 0.28), transparent 62%),
    transparent;
  box-shadow: none;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -7% -10%;
  z-index: -1;
  background:
    linear-gradient(rgba(104, 119, 86, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 119, 86, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse at 48% 46%, rgba(246, 245, 240, 0.98), rgba(246, 245, 240, 0) 68%);
  background-size: 34px 34px, 34px 34px, auto;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 56%, rgba(0, 0, 0, 0.62) 72%, transparent 88%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.94) contrast(0.98);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 86%, transparent 100%);
}

.portrait-frame.is-missing img {
  display: none;
}

.portrait-frame.is-missing::before {
  content: "Portrait";
  position: absolute;
  left: 24px;
  bottom: 58px;
  color: rgba(29, 29, 27, 0.35);
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 650;
}

.portrait-frame.is-missing::after {
  content: "Add assets/ayushi-portrait.png";
  position: absolute;
  left: 26px;
  bottom: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-media p {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.3;
}

.about-copy p:not(.kicker),
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.writing-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(29, 29, 27, 0.12);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.52);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 620;
  box-shadow: 0 10px 22px rgba(36, 34, 30, 0.045);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.writing-cta:hover {
  transform: translateY(-1px);
  background: #4f6241;
  color: #fbfaf6;
  border-color: rgba(79, 98, 65, 0.42);
  box-shadow: 0 16px 34px rgba(36, 34, 30, 0.08);
}

.writing-cta--primary {
  background: rgba(29, 29, 27, 0.9);
  color: #fbfaf6;
}

.writing-cta--primary:hover {
  background: #4f6241;
  color: #fbfaf6;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: stretch;
}

.contact-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 0;
  border: 0;
}

.contact-copy h2 span {
  color: rgba(29, 29, 27, 0.66);
  font-weight: 400;
}

.contact-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 22px;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 22px;
  background: rgba(251, 250, 246, 0.5);
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.32rem, 2.2vw, 1.85rem);
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(36, 34, 30, 0.04);
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-card a:last-child {
  border-bottom: 0;
}

.contact-card a:hover {
  transform: translateY(-1px);
  background: #4f6241;
  border-color: rgba(79, 98, 65, 0.42);
  color: #fbfaf6;
  box-shadow: 0 16px 34px rgba(36, 34, 30, 0.075);
}

.contact-card a::after {
  content: "\2197";
  color: var(--accent-dark);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.contact-card a:hover::after {
  transform: translate(2px, -2px);
  color: #fbfaf6;
}

.footer {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(29, 29, 27, 0.1);
  background: rgba(235, 234, 228, 0.58);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.writing-cover {
  width: min(var(--max), calc(100vw - 40px));
  height: clamp(150px, 18vh, 210px);
  min-height: 0;
  max-height: 210px;
  display: block;
  margin: 116px auto 0;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 0 0 26px 26px;
  background: rgba(251, 250, 246, 0.64);
}

.writing-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.writing-hero {
  padding-top: 42px;
}

.writing-hero h1 {
  max-width: 1040px;
  margin-bottom: 22px;
  text-wrap: balance;
}

.writing-hero__support {
  max-width: 64ch;
  margin: 16px 0 0 auto;
  color: var(--muted);
  text-align: left;
}

.writing-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 1080px);
  gap: 22px;
  margin: 32px auto 0;
}

.article-hero .writing-index {
  text-align: left;
}

.writing-index__panel {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  min-height: 218px;
  padding: clamp(28px, 3vw, 36px);
  border: 0;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(251, 250, 246, 0.9), rgba(235, 234, 228, 0.66)),
    var(--paper);
  color: inherit;
  box-shadow:
    0 16px 40px rgba(36, 34, 30, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition:
    transform 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.writing-index__panel span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.writing-index__panel p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.writing-index__panel strong {
  align-self: end;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 720;
  transition: transform 180ms ease, color 180ms ease;
}

.writing-index__panel:hover,
.writing-index__panel:focus-visible {
  transform: translateY(-5px);
  background:
    linear-gradient(145deg, rgba(251, 250, 246, 0.98), rgba(235, 234, 228, 0.72)),
    var(--paper);
  box-shadow:
    0 28px 62px rgba(36, 34, 30, 0.11),
    inset 0 0 0 1px rgba(104, 119, 86, 0.12);
  outline: none;
}

.writing-index__panel:hover strong,
.writing-index__panel:focus-visible strong {
  color: var(--accent-dark);
  transform: translateY(2px);
}

.article-hero .writing-index__panel p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  text-align: left;
}

.writing-section {
  padding: 70px 0;
}

.writing-destination {
  position: relative;
  width: min(1080px, calc(100vw - 40px));
  margin: 94px auto 0;
  padding: clamp(36px, 4vw, 54px);
  border: 0;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(251, 250, 246, 0.9), rgba(235, 234, 228, 0.62)),
    var(--paper);
  box-shadow:
    0 24px 64px rgba(36, 34, 30, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.writing-path {
  position: absolute;
  left: clamp(170px, 24vw, 330px);
  right: 20px;
  top: -70px;
  height: 70px;
  pointer-events: none;
}

.writing-path span {
  position: absolute;
  left: 0;
  right: 30px;
  top: 28px;
  height: 1px;
  background: rgba(104, 119, 86, 0.32);
}

.writing-path span::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(104, 119, 86, 0.62);
}

.writing-path span::after {
  content: "";
  position: absolute;
  right: -30px;
  top: 0;
  width: 1px;
  height: 42px;
  background: rgba(104, 119, 86, 0.32);
}

.writing-path::after {
  content: "\2193";
  position: absolute;
  right: 22px;
  top: 48px;
  color: var(--accent-dark);
  font-size: 1rem;
  line-height: 1;
}

.writing-path em {
  position: absolute;
  right: 44px;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.92);
  color: var(--accent-dark);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(36, 34, 30, 0.06);
}

.writing-section__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 28px;
}

.writing-section__intro h2 {
  max-width: 1040px;
  margin: 0;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 460;
  line-height: 1.1;
}

.writing-section__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.writing-list {
  display: grid;
  gap: 14px;
  border-top: 0;
  max-height: 560px;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 0 14px 2px 0;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(104, 119, 86, 0.68) rgba(235, 234, 228, 0.78);
  scrollbar-width: thin;
}

.writing-list::-webkit-scrollbar {
  width: 10px;
}

.writing-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(235, 234, 228, 0.78);
  margin: 6px 0;
}

.writing-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(251, 250, 246, 0.74);
  background: rgba(104, 119, 86, 0.62);
}

.writing-list::-webkit-scrollbar-thumb:hover {
  background: rgba(82, 96, 66, 0.72);
}

.writing-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 130px 160px;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 22px;
  background: rgba(251, 250, 246, 0.52);
  box-shadow: 0 10px 24px rgba(36, 34, 30, 0.035);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.writing-list span,
.writing-list time,
.writing-list article > a:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.writing-list article > a:first-of-type {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 430;
  line-height: 1.2;
  transition: transform 180ms ease, color 180ms ease;
}

.writing-list article > a:last-child {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.writing-list article:hover {
  transform: translateY(-1px);
  background: rgba(251, 250, 246, 0.82);
  border-color: rgba(104, 119, 86, 0.18);
  box-shadow: 0 16px 34px rgba(36, 34, 30, 0.065);
}

.writing-list article:hover > a:first-of-type {
  transform: translateX(3px);
  color: var(--accent-dark);
}

.verses-section {
  margin-bottom: 80px;
}

.verses-section h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 460;
  line-height: 1.08;
}

.verses-support {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

body.has-poem-open {
  overflow: hidden;
}

.poem-list {
  margin-top: 40px;
  border-top: 1px solid rgba(29, 29, 27, 0.1);
}

.poem-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid rgba(29, 29, 27, 0.1);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.poem-row span,
.poem-row small {
  color: var(--accent-dark);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poem-row strong {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 430;
  line-height: 1.2;
  transition: transform 180ms ease, color 180ms ease;
}

.poem-row small {
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
  transition: transform 180ms ease, color 180ms ease;
}

.poem-row:hover strong,
.poem-row:focus-visible strong,
.poem-row:hover small,
.poem-row:focus-visible small {
  transform: translateX(4px);
  color: var(--accent-dark);
}

.poem-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 40px 20px;
  overflow: hidden;
  background: rgba(29, 29, 27, 0.18);
  backdrop-filter: blur(14px);
}

.poem-overlay[hidden] {
  display: none;
}

.poem-close {
  position: fixed;
  top: 24px;
  right: 24px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(29, 29, 27, 0.12);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.92);
  color: var(--text);
  font-weight: 750;
}

.poem-sheet {
  width: min(760px, 100%);
  height: min(82dvh, 760px);
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(rgba(163, 177, 138, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 177, 138, 0.04) 1px, transparent 1px),
    #fbfaf6;
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
}

.poem-sheet h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.poem-scroll {
  min-height: 0;
  overflow-y: auto;
  direction: rtl;
  padding-left: 14px;
  margin-left: -14px;
  scrollbar-color: rgba(104, 119, 86, 0.34) rgba(104, 119, 86, 0.08);
  scrollbar-width: thin;
}

.poem-scroll::-webkit-scrollbar {
  width: 8px;
}

.poem-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(104, 119, 86, 0.08);
}

.poem-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(104, 119, 86, 0.34);
}

.poem-body {
  direction: ltr;
  white-space: pre-wrap;
  color: var(--text);
  font-family: Kalam, "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.54;
}

.poem-body em,
.poem-emphasis {
  color: #2f2e2a;
  font-style: italic;
  font-weight: 700;
}

.poem-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(29, 29, 27, 0.1);
}

.poem-nav button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(29, 29, 27, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

.poem-nav button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.article-hero,
.article-body {
  width: min(920px, calc(100vw - 40px));
  margin: 0 auto;
}

.article-hero {
  padding: 138px 0 36px;
}

.case-hero {
  width: min(1040px, calc(100vw - 40px));
  padding-bottom: 30px;
}

.article-hero h1 {
  font-size: clamp(3rem, 4.4vw, 4rem);
}

.article-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

.case-subtitle {
  margin: 0;
  color: var(--text) !important;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
  line-height: 1.18;
}

.case-title-block {
  max-width: 820px;
  margin-left: auto;
  margin-bottom: 22px;
  text-align: right;
}

.article-hero > h1,
.article-hero > p:not(.kicker) {
  margin-left: auto;
  text-align: right;
}

.article-hero > p.writing-hero__support:not(.kicker) {
  max-width: 64ch;
  margin: 16px 0 0 auto;
  text-align: left;
}

.case-intro {
  max-width: 74ch !important;
  margin: 22px auto 0 0 !important;
  color: var(--muted) !important;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem) !important;
  line-height: 1.82;
  text-align: left;
  text-wrap: pretty;
}

.article-hero > .case-intro {
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.case-meta div {
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 22px;
  background: rgba(246, 245, 240, 0.94);
}

.case-meta dt {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-meta dd {
  margin: 0;
  color: #3f3f3a;
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.28;
}

.case-meta .is-success {
  border-color: rgba(76, 123, 82, 0.18);
  background: rgba(116, 164, 111, 0.12);
}

.case-meta .is-success dt,
.case-meta .is-success dd {
  color: #4c7b52;
}

.case-meta .is-progress {
  border-color: rgba(60, 104, 165, 0.2);
  background: rgba(85, 128, 188, 0.12);
}

.case-meta .is-progress dt,
.case-meta .is-progress dd {
  color: #3c68a5;
}

.case-hero .kicker {
  font-weight: 500;
}

.article-body {
  padding-bottom: 90px;
}

.article-body section {
  padding: 28px 0;
  border-top: 1px solid rgba(29, 29, 27, 0.1);
}

.article-body h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 520;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1.125rem;
}

.case-study {
  width: min(1040px, calc(100vw - 40px));
}

.case-study section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px 46px;
  padding: 32px 0 28px;
}

.case-study section > *:not(.case-label) {
  grid-column: 2;
}

.case-study h2 {
  max-width: 760px;
}

.case-study p {
  max-width: 100%;
  line-height: 1.78;
  text-align: left;
  text-wrap: pretty;
}

.case-label {
  grid-row: 1 / span 8;
  margin: 0;
  color: var(--accent-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.chip-grid,
.feature-grid,
.process-flow,
.decision-grid {
  margin-top: 18px;
}

.chip-grid,
.feature-grid {
  display: grid;
  gap: 10px;
}

.chip-grid--role {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.chip-grid span,
.feature-grid span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 999px;
  background: rgba(235, 234, 228, 0.74);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.process-flow {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px;
  margin: 20px 0 6px;
  padding: 0;
  list-style: none;
}

.process-flow li {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  justify-items: start;
  gap: 12px;
  padding: 18px 18px;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(251, 250, 246, 0.94), rgba(235, 234, 228, 0.96)),
    var(--card);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.process-flow li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -31px;
  width: 31px;
  height: 1px;
  background: rgba(104, 119, 86, 0.48);
}

.process-flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: -33px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid rgba(104, 119, 86, 0.58);
  border-right: 1.5px solid rgba(104, 119, 86, 0.58);
  transform: rotate(45deg);
}

.process-flow li:last-child::after {
  content: none;
}

.process-flow span {
  justify-self: start;
  color: var(--accent-dark);
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 450;
  letter-spacing: 0.12em;
  opacity: 0.58;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: decision;
}

.decision-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
}

.decision-grid article,
.evidence-block {
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 26px;
  background: rgba(246, 245, 240, 0.95);
  box-shadow: 0 16px 42px rgba(36, 34, 30, 0.06);
}

.decision-grid article {
  position: relative;
  padding: 24px;
  counter-increment: decision;
}

.decision-grid--two article {
  min-height: 260px;
}

.decision-grid article::before {
  content: counter(decision, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border: 1px solid rgba(104, 119, 86, 0.2);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(251, 250, 246, 0.5);
  font-size: 0.72rem;
  font-weight: 850;
}

.decision-grid h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 1.08;
}

.decision-grid p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.64;
  text-align: left;
}

.case-notes {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.case-notes li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
  text-align: left;
}

.case-notes li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(104, 119, 86, 0.58);
}

.evidence-block {
  min-height: 360px;
  display: grid;
  align-content: end;
  margin: 22px 0 0;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(216, 222, 201, 0.28), transparent 45%),
    rgba(246, 245, 240, 0.96);
}

.evidence-block img {
  width: 100%;
  height: auto;
  max-height: 980px;
  object-fit: contain;
  border-radius: 20px;
  background: rgba(251, 250, 246, 0.72);
}

.evidence-block figcaption {
  margin-top: 18px;
}

.evidence-block.is-missing {
  align-content: end;
}

.evidence-block span {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evidence-block p {
  margin: 10px 0 0;
  color: var(--muted);
}

.protected-evidence {
  min-height: 370px;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  align-items: center;
  align-content: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(30px, 4vw, 54px);
}

.protected-evidence h3 {
  max-width: 520px;
  margin: 28px 0 22px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.62rem, 2.25vw, 2.45rem);
  line-height: 1.14;
  font-weight: 450;
}

.protected-evidence h3 span {
  display: block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.protected-evidence p {
  max-width: 640px;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.78;
}

.protected-evidence figcaption {
  margin-top: 0;
}

.protected-visual-placeholder {
  position: relative;
  min-height: 250px;
  display: grid;
  align-items: end;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(104, 119, 86, 0.075) 1px, transparent 1px),
    linear-gradient(0deg, rgba(104, 119, 86, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(250, 250, 250, 0.82), transparent 32%),
    linear-gradient(135deg, rgba(235, 234, 228, 0.82), rgba(216, 222, 201, 0.34));
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.protected-visual-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 46%, rgba(251, 250, 246, 0.62) 46% 54%, transparent 54% 100%);
  pointer-events: none;
}

.protected-window {
  position: relative;
  z-index: 1;
  width: min(76%, 440px);
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 18px;
  background: rgba(251, 250, 246, 0.68);
  box-shadow: 0 18px 38px rgba(36, 34, 30, 0.08);
}

.protected-window--small {
  position: absolute;
  right: 22px;
  top: 24px;
  width: min(46%, 250px);
  opacity: 0.72;
}

.protected-window span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(104, 119, 86, 0.18);
}

.protected-window span:nth-child(1) {
  width: 46%;
}

.protected-window span:nth-child(2) {
  width: 88%;
}

.protected-window span:nth-child(3) {
  width: 70%;
}

.protected-window span:nth-child(4) {
  width: 54%;
}

.protected-visual-placeholder p {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  margin: 0;
  color: rgba(104, 119, 86, 0.78);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visual-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.visual-evidence-grid .evidence-block {
  min-height: 300px;
  padding: 18px;
}

.visual-evidence-grid .evidence-block img {
  max-height: 460px;
}

.case-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 320px));
  gap: 18px;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(29, 29, 27, 0.1);
}

.case-nav--single {
  grid-template-columns: minmax(210px, 320px);
  justify-content: end;
}

.case-nav a {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: 28px;
  background: rgba(251, 250, 246, 0.94);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.case-nav a:hover {
  transform: translateY(-2px);
  background: #4f6241;
  color: #fbfaf6;
  box-shadow: var(--shadow);
}

.case-nav span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-nav strong {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 450;
  line-height: 0.96;
}

.case-nav__item--next {
  align-items: flex-end;
  text-align: right;
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent-dark);
  font-weight: 500;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.28);
    opacity: 1;
  }
}

@keyframes loader-stars-twinkle {
  0%, 100% {
    opacity: 0.56;
    filter: drop-shadow(0 0 5px rgba(255, 246, 216, 0.32));
  }
  36% {
    opacity: 0.82;
    filter: drop-shadow(0 0 9px rgba(255, 246, 216, 0.5));
  }
  68% {
    opacity: 0.64;
    filter: drop-shadow(0 0 7px rgba(163, 177, 138, 0.34));
  }
}

@keyframes loader-sky-breathe {
  0%, 100% {
    opacity: 0.34;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.018);
  }
}

@keyframes whiteBlink {
  0%, 100% { opacity: 0; }
  46%, 62% { opacity: 1; }
}

@keyframes blink {
  0%, 44% { opacity: 1; }
  45%, 100% { opacity: 0; }
}

@keyframes hero-cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes hero-portrait-sweep {
  0%, 16% {
    -webkit-mask-position: 132% 0;
    mask-position: 132% 0;
  }
  48%, 58% {
    -webkit-mask-position: 48% 0;
    mask-position: 48% 0;
  }
  100% {
    -webkit-mask-position: -34% 0;
    mask-position: -34% 0;
  }
}

@keyframes hero-portrait-glow-sweep {
  0%, 16% {
    background-position: 132% 0;
    transform: translate3d(-7%, -2%, 0);
  }
  48%, 58% {
    background-position: 48% 0;
    transform: translate3d(0, 0, 0);
  }
  100% {
    background-position: -34% 0;
    transform: translate3d(7%, 2%, 0);
  }
}

@media (hover: none) {
  .site-spotlight {
    display: none;
  }
}

@media (min-width: 901px) {
  .site-header {
    min-height: 76px;
    align-items: flex-start;
    padding: 14px clamp(20px, 2.4vw, 34px) 0;
    overflow: visible;
  }

  .site-header::before {
    height: 96px;
    background:
      linear-gradient(to bottom, rgba(246, 245, 240, 0.96), rgba(246, 245, 240, 0.78) 58%, rgba(246, 245, 240, 0));
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
  }

  .dock-trigger {
    pointer-events: none;
  }

  .standalone-brand {
    top: 20px;
    font-size: 1.04rem;
    font-weight: 620;
  }

  .site-header.is-dock-open .standalone-brand,
  .site-header:focus-within .standalone-brand {
    opacity: 1;
    transform: none;
  }

  .nav-shell {
    width: auto;
    max-width: calc(100vw - 270px);
    min-height: 48px;
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 7px 8px 7px 10px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      inset 0 -1px 0 rgba(29, 29, 27, 0.045),
      0 14px 34px rgba(36, 34, 30, 0.1);
  }

  .site-header.is-dock-open .nav-shell,
  .site-header:focus-within .nav-shell {
    opacity: 1;
    transform: none;
  }

  .nav-shell .brand {
    display: none;
  }

  .nav-links {
    gap: 2px;
    padding: 3px;
  }

  .nav-links a {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .button--small {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .header-timezone {
    top: 21px;
    transform: none;
    font-size: 0.82rem;
    font-weight: 560;
  }

  .header-timezone span {
    font-size: 0.64rem;
    font-weight: 500;
  }

  .hero {
    padding-top: 96px;
  }

  .article-hero {
    padding-top: 120px;
  }

  .section,
  .article-hero,
  .article-body {
    scroll-margin-top: 108px;
  }

  .eyebrow,
  .kicker {
    margin-bottom: 24px;
    font-size: 0.72rem;
    font-weight: 560;
    letter-spacing: 0.16em;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-copy h2,
  .principles h2,
  .writing-section__intro h2 {
    font-size: 3rem;
  }

  .article-hero h1 {
    max-width: 860px;
    font-size: clamp(3rem, 3.8vw, 3.5rem);
    line-height: 1.08;
  }

  .article-hero p:not(.kicker) {
    max-width: 70ch;
    margin-top: 28px;
    font-size: 1.08rem;
    line-height: 1.76;
  }

  .care .section-deck.section-deck--wide,
  .care .section-heading p.section-deck--wide:last-child {
    max-width: min(100%, 1180px);
    font-size: 1.08rem;
    line-height: 1.66;
  }

  .principles {
    grid-template-columns: minmax(300px, 0.34fr) minmax(0, 0.66fr);
    gap: clamp(28px, 3.6vw, 48px);
  }

  .principles__intro {
    top: 108px;
    min-height: 380px;
  }

  .principles__list {
    gap: 0;
    padding: clamp(30px, 3.5vw, 42px) clamp(28px, 3.5vw, 44px) clamp(30px, 3.5vw, 42px) 94px;
    overflow: hidden;
    border: 1px solid rgba(29, 29, 27, 0.08);
    border-radius: 30px;
    background:
      linear-gradient(145deg, rgba(251, 250, 246, 0.78), rgba(235, 234, 228, 0.68)),
      var(--paper);
    box-shadow: 0 14px 34px rgba(36, 34, 30, 0.055);
  }

  .principles__list::before {
    left: 45px;
    top: 56px;
    bottom: 56px;
  }

  .principle-panel,
  .principle-panel:first-child {
    min-height: 178px;
    padding: 30px 0 32px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    border-top: 1px solid rgba(29, 29, 27, 0.075);
    background: transparent;
    box-shadow: none;
  }

  .principle-panel:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .principle-panel.is-active,
  .principle-panel:hover {
    border-color: rgba(29, 29, 27, 0.075);
    background: transparent;
    box-shadow: none;
  }

  .principle-panel span {
    left: -70px;
    top: 30px;
    width: 40px;
    height: 40px;
    background: rgba(251, 250, 246, 0.96);
  }

  .principle-panel:first-child span {
    top: 0;
  }

  .principle-panel h3 {
    font-size: 1.88rem;
    font-weight: 430;
  }

  .principle-panel p {
    max-width: 66ch;
    margin-top: 16px;
    font-size: 1.06rem;
    line-height: 1.66;
  }

  .writing-page .article-hero,
  .writing-page .article-body {
    width: min(1080px, calc(100vw - 64px));
  }

  .writing-cover {
    width: 100vw;
    max-width: none;
    margin: 92px 0 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .writing-hero {
    padding-top: 50px;
    padding-left: clamp(28px, 5vw, 74px);
  }

  .writing-hero .kicker {
    margin-bottom: 28px;
    font-weight: 500;
  }

  .writing-hero h1 {
    margin-bottom: 0;
  }

  .writing-hero > p:not(.kicker) {
    max-width: 64ch;
    margin: 30px 0 0 auto;
    text-align: left;
  }

  .writing-hero > p.writing-hero__support:not(.kicker) {
    margin-top: 16px;
  }

  .writing-hero .writing-index {
    margin-top: 30px;
  }

  .writing-section {
    padding: 60px 0;
  }

  .writing-destination {
    margin-top: 92px;
    padding: 42px 44px 46px;
  }

  .writing-section > .kicker {
    margin-bottom: 28px;
    font-weight: 500;
  }

  .writing-section__intro {
    gap: 20px;
    padding-bottom: 30px;
  }

  .writing-section__intro h2 {
    max-width: 980px;
    line-height: 1.12;
  }

  .writing-list article {
    grid-template-columns: 56px minmax(0, 1fr) 124px 158px;
    padding: 19px 22px;
  }

  .writing-list article > a:first-of-type {
    display: -webkit-box;
    overflow: hidden;
    font-family: var(--sans);
    font-size: 1.08rem;
    font-weight: 560;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .writing-list article > a:last-child {
    justify-content: flex-end;
    color: var(--text);
    font-weight: 700;
  }

  .writing-list time {
    font-weight: 400;
  }

  .verses-section {
    width: min(1080px, calc(100vw - 64px));
    padding: 40px 44px 44px;
    border-radius: 30px;
    background:
      linear-gradient(145deg, rgba(251, 250, 246, 0.76), rgba(235, 234, 228, 0.62)),
      var(--paper);
    box-shadow: 0 14px 34px rgba(36, 34, 30, 0.055);
  }

  .verses-section .kicker {
    margin-bottom: 22px;
  }

  .verses-section h2 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .verses-support {
    margin-top: 10px;
  }

  .poem-list {
    margin-top: 28px;
  }

  .poem-row {
    padding: 17px 0;
  }

  .poem-row strong {
    color: var(--text);
    font-size: 1.25rem;
  }

  .poem-overlay {
    padding: 24px;
  }

  .poem-close {
    top: 18px;
    right: 18px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .poem-sheet {
    position: relative;
    width: min(720px, calc(100vw - 48px));
    height: min(86dvh, 760px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 34px 38px 28px;
  }

  .poem-sheet > .kicker {
    position: absolute;
    top: 34px;
    right: 38px;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
  }

  .poem-sheet h2 {
    max-width: calc(100% - 110px);
    margin: 0 0 18px;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.08;
  }

  .poem-scroll {
    direction: ltr;
    padding: 0 14px 0 0;
    margin: 0 -14px 0 0;
  }

  .poem-body {
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    line-height: 1.36;
  }

  .poem-nav {
    margin-top: 16px;
    padding-top: 16px;
  }
}

@media (max-width: 900px) {
  body {
    background:
      radial-gradient(circle at 12% 12%, rgba(216, 222, 201, 0.42), transparent 28%),
      var(--bg);
  }

  .site-header {
    top: 0;
    display: grid;
    grid-template-columns: minmax(118px, 1fr) max-content max-content max-content;
    align-items: center;
    gap: clamp(14px, 3vw, 22px);
    justify-content: stretch;
    padding: calc(22px + env(safe-area-inset-top)) clamp(22px, 4.4vw, 34px) 18px;
    pointer-events: none;
  }

  .site-header::before {
    height: 126px;
    background:
      linear-gradient(to bottom, rgba(246, 245, 240, 0.98), rgba(246, 245, 240, 0.9) 68%, rgba(246, 245, 240, 0));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .standalone-brand {
    position: static;
    display: inline-flex;
    align-items: center;
    min-height: 62px;
    font-size: clamp(1.82rem, 5.9vw, 2.32rem);
    line-height: 1;
    opacity: 1 !important;
    transform: none !important;
  }

  .dock-trigger {
    display: none;
  }

  .header-timezone {
    position: static;
    display: grid;
    justify-self: end;
    min-width: max-content;
    transform: none;
    gap: 4px;
    font-size: clamp(0.92rem, 2.85vw, 1.08rem);
    letter-spacing: 0.08em;
    text-align: right;
    pointer-events: auto;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: end;
    min-height: 58px;
    padding: 0 clamp(22px, 3.8vw, 28px);
    font-size: 1rem;
  }

  .theme-toggle {
    position: static;
    justify-self: end;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
  }

  .theme-toggle__text {
    display: none;
  }

  .nav-shell {
    position: fixed;
    top: calc(104px + env(safe-area-inset-top));
    left: 22px;
    right: 22px;
    width: auto;
    max-width: none;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
  }

  .nav-links {
    grid-column: auto;
    order: 0;
    width: 100%;
    display: grid;
    gap: 6px;
    padding: 0;
    overflow: visible;
    border-radius: 20px;
    background: transparent;
  }

  .site-header:not(.is-mobile-menu-open):focus-within .nav-shell,
  .site-header:not(.is-mobile-menu-open).is-dock-open .nav-shell {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
  }

  .site-header.is-mobile-menu-open .nav-shell {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-shell .brand {
    display: none;
  }

  .nav-links a {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.34);
  }

  .nav-shell .button {
    width: 100%;
    justify-self: stretch;
    min-height: 50px;
    margin-top: 4px;
  }

  .hero {
    --mobile-hero-gap: 24px;
    min-height: auto;
    padding-top: calc(96px + env(safe-area-inset-top));
    padding-bottom: 46px;
    overflow: hidden;
    align-items: start;
  }

  .hero__background {
    inset: 0;
  }

  .hero__content {
    order: 1;
    gap: var(--mobile-hero-gap);
    padding-top: var(--mobile-hero-gap);
  }

  .hero .eyebrow {
    margin: 0;
  }

  .hero__mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero__mobile-actions .card-cta {
    flex: 1 1 142px;
    min-height: 48px;
  }

  .hero__portrait-reveal {
    --hero-portrait-image-opacity: 1;
    display: block;
    position: relative;
    order: 2;
    z-index: 2;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(100%, 520px);
    aspect-ratio: 4 / 5;
    margin: 30px auto 0;
    overflow: hidden;
    border: 1px solid rgba(29, 29, 27, 0.08);
    border-radius: 28px;
    background:
      linear-gradient(135deg, rgba(251, 250, 246, 0.56), rgba(235, 234, 228, 0.32)),
      var(--paper);
    box-shadow: 0 18px 44px rgba(36, 34, 30, 0.1);
    opacity: 1;
    pointer-events: none;
  }

  .hero__portrait-reveal img {
    inset: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 64% 42%;
    opacity: 1;
    filter: saturate(0.82) contrast(0.94) brightness(1.02) sepia(0.04);
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__portrait-scratch {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
  }

  .hero__portrait-glow {
    display: none;
  }

  .hero__lower,
  .section-heading,
  .section-heading--wide,
  .work-grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact {
    gap: 24px;
    padding: 32px 26px;
    border: 1px solid rgba(29, 29, 27, 0.08);
    border-radius: 28px;
    background: rgba(235, 234, 228, 0.55);
  }

  .teardown-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .principles {
    gap: 36px;
  }

  .principles__intro {
    position: static;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .principles__intro::after {
    display: none;
  }

  .principle-panel,
  .principle-panel:first-child {
    min-height: 0;
    padding: 34px 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(29, 29, 27, 0.075);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .principle-panel:first-child {
    border-top: 0;
  }

  .principle-panel.is-active,
  .principle-panel:hover {
    border-color: rgba(29, 29, 27, 0.075);
    background: transparent;
    box-shadow: none;
  }

  .writing-section__intro,
  .writing-list article {
    grid-template-columns: 1fr;
  }

  .writing-page .article-hero,
  .writing-page .article-body,
  .writing-destination,
  .verses-section {
    width: min(100vw - 34px, 720px);
  }

  .writing-cover {
    width: 100vw;
    max-width: none;
    height: clamp(118px, 18vh, 168px);
    margin-top: calc(104px + env(safe-area-inset-top));
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .writing-hero {
    padding: 34px 0 20px;
  }

  .writing-hero h1 {
    max-width: 12ch;
  }

  .writing-hero > p:not(.kicker),
  .article-hero > p.writing-hero__support:not(.kicker) {
    max-width: 34rem;
    margin: 18px 0 0;
    text-align: left;
  }

  .writing-index {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .writing-index__panel {
    min-height: 0;
    gap: 14px;
    padding: 22px;
    border-radius: 24px;
  }

  .writing-index__panel p,
  .article-hero .writing-index__panel p {
    max-width: 34ch;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .writing-index__panel strong {
    font-size: 0.94rem;
  }

  .writing-index__panel + .writing-index__panel {
    border: 0;
  }

  .writing-destination {
    margin-top: 36px;
    padding: 28px 24px 30px;
    border-radius: 26px;
  }

  .writing-path {
    display: none;
  }

  .writing-section__intro {
    gap: 12px;
    padding-bottom: 20px;
  }

  .writing-section__intro h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.08;
  }

  .writing-list article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 17px 16px;
    border-radius: 18px;
  }

  .writing-list span {
    grid-column: 1;
    grid-row: 1;
  }

  .writing-list time {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
  }

  .writing-list article > a:first-of-type {
    grid-column: 1 / -1;
    grid-row: 2;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 560;
    line-height: 1.35;
  }

  .writing-list article > a:last-child {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 36px;
    margin-top: 2px;
    color: var(--accent-dark);
    font-weight: 750;
  }

  .verses-section {
    margin-top: 36px;
    margin-bottom: 56px;
    padding: 28px 24px 30px;
    border-radius: 26px;
  }

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

  .care-grid article {
    min-height: 240px;
  }

  .about-media {
    position: static;
    max-width: 520px;
  }

  .section-heading {
    gap: 18px;
  }

  .workspace-stack {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .teardown-card {
    min-height: auto;
  }

  .workspace-card {
    position: relative;
    top: auto !important;
    min-height: auto;
    margin-bottom: 0;
    flex: 0 0 86vw;
    max-width: 420px;
    scroll-snap-align: start;
  }

  .workspace-card:nth-child(2),
  .workspace-card:nth-child(3),
  .workspace-card:nth-child(2).is-visible,
  .workspace-card:nth-child(3).is-visible {
    transform: translateY(0);
  }

  .workspace-card__body,
  .teardown-preview .preview-body,
  .teardown-card__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .workspace-card__body {
    gap: 0;
  }

  .workspace-card__body div {
    padding: 20px 0;
    border-bottom: 1px solid rgba(29, 29, 27, 0.075);
  }

  .workspace-card__body div:first-child {
    padding-top: 0;
  }

  .workspace-card__body div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .protected-evidence {
    grid-template-columns: 1fr;
  }

  .case-meta,
  .chip-grid--role,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-study section {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px 28px;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-flow li::after {
    top: auto;
    right: auto;
    left: 24px;
    bottom: -12px;
    width: 1px;
    height: 12px;
  }

  .process-flow li:not(:last-child)::before {
    top: auto;
    right: auto;
    left: 20px;
    bottom: -13px;
    transform: rotate(135deg);
  }

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

@media (max-width: 620px) {
  .site-header {
    top: 0;
    grid-template-columns: minmax(96px, 1fr) max-content max-content max-content;
    gap: 10px;
    padding: calc(18px + env(safe-area-inset-top)) 16px 16px;
  }

  .site-header::before {
    height: 118px;
  }

  .nav-shell {
    top: calc(98px + env(safe-area-inset-top));
    left: 18px;
    right: 18px;
    width: auto;
    padding: 14px;
    border-radius: 24px;
  }

  .standalone-brand {
    min-height: 58px;
    font-size: clamp(1.52rem, 7vw, 1.92rem);
  }

  .header-timezone {
    gap: 5px;
    font-size: clamp(0.74rem, 3vw, 0.9rem);
    letter-spacing: 0.075em;
  }

  .header-timezone span {
    font-size: 0.58rem;
    letter-spacing: 0.105em;
  }

  .mobile-menu-toggle {
    min-height: 54px;
    padding: 0 clamp(15px, 4.4vw, 20px);
    font-size: 0.92rem;
  }

  .button--small {
    min-height: 50px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .nav-links a {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.94rem;
    white-space: normal;
  }

  .section {
    width: min(100vw - 30px, var(--max));
    padding: 68px 0;
  }

  .hero {
    padding-top: calc(92px + env(safe-area-inset-top));
    padding-bottom: 36px;
  }

  .hero__content {
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(2.675rem, calc(11.25vw + 2px), 3.875rem);
    line-height: 1.22;
  }

  .hero__copy {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-copy h2,
  .principles h2 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
    line-height: 1.04;
  }

  .section-deck,
  .section-heading p:last-child {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .work-grid {
    gap: 16px;
  }

  .project-list {
    gap: 10px;
  }

  .teardown-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .teardown-tab {
    flex: 0 0 76vw;
    max-width: 300px;
    scroll-snap-align: start;
  }

  .project-tab,
  .teardown-tab {
    min-height: 96px;
    padding: 15px 16px;
    border-radius: 20px;
  }

  .teardown-tab::before {
    right: 12px;
    top: 14px;
    width: 96px;
    height: 60px;
    opacity: 0.2;
  }

  .teardown-tab[data-teardown="windows11"]::before {
    width: 124px;
  }

  .teardown-tab[data-teardown="irctc"]::before {
    width: 102px;
  }

  .teardown-tab[data-teardown="gpay"]::before {
    width: 92px;
  }

  .project-tab span,
  .teardown-tab span {
    font-size: 1.22rem;
  }

  .project-tab small,
  .teardown-tab small {
    font-size: 0.78rem;
  }

  .project-tab p,
  .teardown-tab p {
    max-width: none;
    font-size: 0.78rem;
  }

  .preview-heading,
  .preview-body div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .teardown-preview .preview-heading {
    grid-template-columns: 1fr;
  }

  .teardown-preview::before {
    right: 18px;
    top: 76px;
    width: 190px;
    min-width: 0;
    height: 120px;
    opacity: 0.2;
  }

  .teardown-preview.is-irctc::before {
    width: 185px;
  }

  .teardown-preview.is-gpay::before {
    width: 160px;
    min-width: 0;
  }

  .teardown-preview .card-cta {
    width: 100%;
    justify-self: stretch;
  }

  .project-preview {
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .workspace-card {
    padding: 22px;
    border-radius: 24px;
  }

  .workspace-card__top {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .workspace-card__heading {
    margin-bottom: 28px;
  }

  .workspace-card__heading h3 {
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .workspace-card__footer {
    justify-content: flex-start;
  }

  .workspace-card__footer .card-cta {
    width: 100%;
  }

  .preview-heading h3 {
    font-size: clamp(2.35rem, 13vw, 3.45rem);
  }

  .status-pill {
    justify-self: start;
  }

  .preview-footer {
    justify-content: flex-start;
  }

  .preview-body {
    margin: 30px 0 28px;
  }

  .preview-body div {
    padding-top: 16px;
  }

  .teardown-grid {
    gap: 14px;
  }

  .teardown-card {
    padding: 13px;
    border-radius: 24px;
  }

  .teardown-card__top {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .teardown-card__inner {
    padding: 18px;
    border-radius: 19px;
  }

  .teardown-card p {
    font-size: 0.91rem;
  }

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

  .care-grid article {
    min-height: auto;
    padding: 22px 18px 24px;
  }

  .care-grid h3 {
    margin-top: 38px;
    font-size: 1.55rem;
  }

  .principles {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .principles::before {
    display: none;
  }

  .principles__list {
    padding-left: 48px;
  }

  .principles__list::before {
    left: 18px;
  }

  .principle-panel {
    padding: 34px 0;
  }

  .principle-panel span {
    top: 34px;
    left: -48px;
    width: 36px;
    height: 36px;
    font-size: 0.66rem;
  }

  .principle-panel h3 {
    font-size: clamp(1.62rem, 7.8vw, 2.25rem);
    line-height: 1.1;
  }

  .principle-panel p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .about {
    gap: 30px;
  }

  .portrait-frame {
    aspect-ratio: 2 / 3;
    border-radius: 26px;
  }

  .portrait-frame img {
    object-position: center top;
  }

  .about-media p {
    font-size: 1rem;
  }

  .about-copy p:not(.kicker),
  .contact-copy p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .about-actions {
    gap: 12px 18px;
  }

  .about-actions .text-link,
  .about-actions .writing-cta {
    flex: 1 1 148px;
  }

  .contact {
    gap: 20px;
    padding: 26px 20px;
  }

  .contact-note {
    font-size: clamp(1.55rem, 8vw, 2.2rem) !important;
  }

  .contact-card a {
    min-height: 56px;
    padding: 0 15px;
    border-radius: 17px;
    font-size: 1.1rem;
  }

  .footer {
    flex-direction: column;
    gap: 2px;
    width: min(100vw - 30px, var(--max));
    padding-bottom: 36px;
  }

  .article-hero,
  .article-body {
    width: min(100vw - 30px, 920px);
  }

  .case-hero,
  .case-study {
    width: min(100vw - 30px, 1040px);
  }

  .article-hero {
    padding: calc(108px + env(safe-area-inset-top)) 0 32px;
  }

  .article-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.15rem);
  }

  .article-hero p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .case-title-block {
    margin-left: 0;
    text-align: left;
  }

  .article-hero > h1,
  .article-hero > p:not(.kicker) {
    margin-left: 0;
    text-align: left;
  }

  .writing-page .article-hero,
  .writing-page .article-body,
  .writing-destination,
  .verses-section {
    width: min(100vw - 32px, 620px);
  }

  .writing-cover {
    height: 118px;
    margin-top: calc(102px + env(safe-area-inset-top));
  }

  .writing-hero {
    padding: 30px 0 18px;
  }

  .writing-hero h1 {
    max-width: 10.8ch;
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 1.04;
  }

  .writing-hero > p:not(.kicker),
  .article-hero > p.writing-hero__support:not(.kicker) {
    max-width: 31rem;
    margin-top: 16px;
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .writing-hero .writing-index {
    margin-top: 22px;
  }

  .writing-index__panel {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .writing-index__panel span {
    font-size: 0.64rem;
    line-height: 1.6;
  }

  .writing-index__panel p,
  .article-hero .writing-index__panel p {
    max-width: 30ch;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .writing-index__panel strong {
    font-size: 0.9rem;
  }

  .writing-destination {
    margin-top: 30px;
    padding: 24px 20px 26px;
    border-radius: 24px;
  }

  .writing-section > .kicker {
    margin-bottom: 18px;
  }

  .writing-section__intro h2 {
    font-size: clamp(1.92rem, 8.5vw, 2.45rem);
    line-height: 1.08;
  }

  .writing-list article {
    padding: 16px 14px;
    border-radius: 17px;
  }

  .writing-list article > a:first-of-type {
    font-size: 0.98rem;
  }

  .verses-section h2 {
    font-size: clamp(1.92rem, 8.5vw, 2.45rem);
  }

  .article-body section {
    padding: 28px 0;
  }

  .case-meta,
  .chip-grid--role,
  .feature-grid,
  .decision-grid,
  .decision-grid--two,
  .visual-evidence-grid,
  .case-nav {
    grid-template-columns: 1fr;
  }

  .case-study section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case-study section > *:not(.case-label),
  .case-label {
    grid-column: 1;
  }

  .case-label {
    grid-row: auto;
  }

  .case-intro {
    font-size: 1rem !important;
    line-height: 1.78;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-flow li {
    min-height: 82px;
    justify-items: start;
    text-align: left;
  }

  .process-flow li::after {
    top: auto;
    right: auto;
    left: 24px;
    bottom: -12px;
    width: 1px;
    height: 12px;
  }

  .process-flow li:not(:last-child)::before {
    top: auto;
    right: auto;
    left: 20px;
    bottom: -13px;
    transform: rotate(135deg);
  }

  .decision-grid article {
    padding: 20px;
  }

  .evidence-block {
    min-height: 240px;
    padding: 22px;
  }

  .case-nav a {
    min-height: 124px;
    padding: 20px;
  }

  .poem-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 24px 0;
  }

  .poem-row small {
    grid-column: 2;
  }

  .poem-overlay {
    padding: calc(72px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));
  }

  .poem-close {
    top: calc(14px + env(safe-area-inset-top));
    right: 12px;
  }

  .poem-sheet {
    height: min(82dvh, 760px);
    min-height: 0;
    border-radius: 24px;
  }

  .poem-body {
    font-size: 1.05rem;
    line-height: 1.54;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: clamp(2.32rem, 10.9vw, 2.9rem);
  }

  .site-header {
    grid-template-columns: minmax(70px, 1fr) max-content max-content max-content;
    gap: 6px;
    padding-inline: 12px;
  }

  .nav-links a {
    padding-inline: 9px;
  }

  .project-preview,
  .teardown-card__inner,
  .contact-card {
    padding-inline: 16px;
  }

  .header-timezone span {
    display: block;
    font-size: 0.52rem;
    letter-spacing: 0.07em;
  }

  .mobile-menu-toggle {
    padding-inline: 11px;
    min-height: 48px;
    font-size: 0.84rem;
  }

  .theme-toggle {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .standalone-brand {
    font-size: clamp(1.34rem, 7.1vw, 1.58rem);
  }

  .header-timezone {
    font-size: 0.72rem;
  }

  .workspace-card,
  .project-preview,
  .principles,
  .verses-section {
    padding-inline: 16px;
  }

  .poem-sheet {
    padding-inline: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Final accessibility pass for system dark mode. Keep this at the end so it wins over component-level light surfaces. */
html[data-theme="dark"] {
  --bg: #171611;
  --text: #f6f1e6;
  --muted: #d2cab9;
  --card: #242219;
  --card-light: #2d2a20;
  --paper: #201e17;
  --accent: #aab991;
  --accent-dark: #d4dfb7;
  --sage-soft: #343c2b;
  --ink-soft: rgba(246, 241, 230, 0.16);
}

html[data-theme="dark"] body {
  color: var(--text);
  background:
    radial-gradient(circle at 15% 24%, rgba(104, 119, 86, 0.18), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(183, 159, 131, 0.13), transparent 30%),
    radial-gradient(circle at 80% 78%, rgba(116, 147, 143, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 44%),
    var(--bg);
}

html[data-theme="dark"] .site-header {
  color: #fff8ea;
}

html[data-theme="dark"] .hero__background {
  background:
    radial-gradient(circle at 80% 30%, rgba(183, 159, 131, 0.13), transparent 28%),
    radial-gradient(circle at 24% 44%, rgba(104, 119, 86, 0.16), transparent 30%),
    linear-gradient(to bottom, rgba(23, 22, 17, 0.08), rgba(23, 22, 17, 0.76) 92%),
    var(--bg);
}

html[data-theme="dark"] :where(
  .site-header,
  .nav-shell,
  .mobile-menu-toggle,
  .project-card,
  .workspace-card,
  .project-preview,
  .teardown-tab,
  .care-card,
  .principles__intro,
  .principles__track,
  .about__image,
  .about__copy,
  .contact-card,
  .writing-index,
  .writing-index__panel,
  .writing-destination,
  .writing-list,
  .writing-list article,
  .verses-section,
  .verse-card,
  .poem-row,
  .poem-sheet,
  .poem-close,
  .poem-nav button,
  .project-meta-card,
  .case-section,
  .visual-card,
  .evidence-block,
  .case-nav a,
  .next-card,
  .project-tab,
  .case-hero,
  .case-study-card,
  .decision-grid article,
  .feature-grid article,
  .chip,
  .tag,
  .status-pill
) {
  border-color: rgba(246, 241, 230, 0.13) !important;
  background-color: rgba(32, 30, 23, 0.9) !important;
  color: var(--text);
}

html[data-theme="dark"] :where(
  .nav-shell,
  .project-card,
  .workspace-card,
  .project-preview,
  .teardown-tab,
  .care-card,
  .principles__intro,
  .principles__track,
  .contact-card,
  .writing-index,
  .writing-destination,
  .writing-list article,
  .verses-section,
  .poem-sheet
) {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] :where(
  p,
  .section-deck,
  .hero__copy,
  .project-card p,
  .project-preview p,
  .teardown-tab p,
  .care-card p,
  .principles__intro p,
  .principle-item p,
  .about__copy p,
  .contact-card p,
  .writing-section__intro p,
  .writing-index__panel p,
  .writing-list span,
  .writing-list time,
  .poem-row small,
  .case-intro,
  .case-study p
) {
  color: var(--muted);
}

html[data-theme="dark"] :where(
  h1,
  h2,
  h3,
  h4,
  .brand,
  .standalone-brand,
  .project-card h3,
  .project-preview h3,
  .teardown-tab span,
  .care-card h3,
  .principle-item h3,
  .writing-list article > a:first-of-type,
  .poem-row strong,
  .poem-body
) {
  color: var(--text);
}

html[data-theme="dark"] :where(
  .kicker,
  .eyebrow,
  .preview-kicker,
  .case-label,
  .writing-index__panel span,
  .writing-path em,
  .teardown-preview .preview-body span
) {
  color: var(--accent-dark);
}

html[data-theme="dark"] :where(.nav-links a) {
  color: var(--muted);
  background: rgba(246, 241, 230, 0.045);
}

html[data-theme="dark"] :where(.nav-links a:hover, .nav-links a.is-active) {
  color: #171611;
  background: rgba(212, 223, 183, 0.96);
  box-shadow: inset 0 0 0 1px rgba(212, 223, 183, 0.24), 0 8px 20px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] :where(.button, .card-cta--dark) {
  background: rgba(212, 223, 183, 0.96);
  color: #171611;
  border-color: rgba(212, 223, 183, 0.28);
}

html[data-theme="dark"] :where(.button:hover, .card-cta:hover, .card-cta--dark:hover, .writing-list article > a:last-child:hover) {
  background: #4f6241;
  color: #fbfaf6;
  border-color: rgba(170, 185, 145, 0.5);
}

html[data-theme="dark"] :where(.card-cta, .writing-list article > a:last-child, .about-link, .contact-card a, .case-nav a) {
  color: var(--text);
  border-color: rgba(246, 241, 230, 0.16);
  background: rgba(246, 241, 230, 0.055);
}

html[data-theme="dark"] :where(.project-tab.is-active, .teardown-tab.is-active, .teardown-tab:hover, .writing-list article:hover, .poem-row:hover) {
  background-color: rgba(45, 42, 32, 0.98) !important;
  border-color: rgba(212, 223, 183, 0.28) !important;
}

html[data-theme="dark"] :where(.status-pill.is-success, .project-status.is-success) {
  background: rgba(74, 116, 80, 0.28) !important;
  color: #dcefd0;
  border-color: rgba(151, 192, 139, 0.38) !important;
}

html[data-theme="dark"] :where(.status-pill.is-progress, .project-status.is-progress) {
  background: rgba(65, 104, 155, 0.3) !important;
  color: #d9e7ff;
  border-color: rgba(126, 163, 211, 0.42) !important;
}

html[data-theme="dark"] .writing-list {
  scrollbar-color: rgba(212, 223, 183, 0.76) rgba(246, 241, 230, 0.08);
}

html[data-theme="dark"] .writing-list::-webkit-scrollbar-track,
html[data-theme="dark"] .poem-scroll::-webkit-scrollbar-track {
  background: rgba(246, 241, 230, 0.08);
}

html[data-theme="dark"] .writing-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] .poem-scroll::-webkit-scrollbar-thumb {
  border-color: rgba(32, 30, 23, 0.95);
  background: rgba(212, 223, 183, 0.66);
}

html[data-theme="dark"] :where(.poem-body em, .poem-emphasis) {
  color: #fff7df;
}

/* Dark mode contrast correction: override full background shorthands and pseudo-layers. */
html[data-theme="dark"] .site-header::before {
  background:
    linear-gradient(to bottom, rgba(17, 16, 12, 0.98), rgba(17, 16, 12, 0.9) 64%, rgba(17, 16, 12, 0)) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="dark"] :where(.standalone-brand, .brand, .header-timezone time) {
  color: #fff8ea !important;
}

html[data-theme="dark"] .header-timezone span {
  color: #d8d0bf !important;
}

html[data-theme="dark"] :where(.nav-shell, .mobile-menu-toggle) {
  background:
    linear-gradient(145deg, rgba(45, 42, 32, 0.96), rgba(23, 22, 17, 0.94)),
    #171611 !important;
  border-color: rgba(246, 241, 230, 0.18) !important;
  color: #fff8ea !important;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(246, 241, 230, 0.08) !important;
}

html[data-theme="dark"] .theme-toggle {
  background:
    linear-gradient(145deg, rgba(45, 42, 32, 0.96), rgba(23, 22, 17, 0.94)),
    #171611 !important;
  border-color: rgba(246, 241, 230, 0.18) !important;
  color: #fff8ea !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(246, 241, 230, 0.08) !important;
}

html[data-theme="dark"] .theme-toggle:hover {
  background:
    linear-gradient(145deg, rgba(59, 56, 43, 0.98), rgba(29, 27, 21, 0.96)),
    #201e17 !important;
}

html[data-theme="dark"] .theme-toggle__mark {
  background: linear-gradient(135deg, #f6f1e6, #aab991);
  box-shadow: inset 4px -1px 0 rgba(17, 16, 12, 0.55);
}

html[data-theme="dark"] .mobile-menu-toggle {
  background:
    linear-gradient(145deg, rgba(58, 54, 42, 0.98), rgba(35, 33, 25, 0.98)),
    #242219 !important;
}

html[data-theme="dark"] :where(
  .workspace-card,
  .project-card,
  .project-preview,
  .project-tab,
  .teardown-tab,
  .teardown-preview,
  .care-card,
  .principles__intro,
  .principles__track,
  .about__image,
  .about__copy,
  .contact-card,
  .writing-index,
  .writing-index__panel,
  .writing-destination,
  .writing-list,
  .writing-list article,
  .verses-section,
  .verse-card,
  .poem-row,
  .poem-sheet,
  .poem-close,
  .poem-nav button,
  .project-meta-card,
  .case-hero,
  .case-section,
  .case-study-card,
  .visual-card,
  .evidence-block,
  .decision-grid article,
  .feature-grid article,
  .case-nav a,
  .next-card,
  .chip,
  .tag
) {
  background:
    linear-gradient(145deg, rgba(43, 40, 31, 0.97), rgba(20, 19, 15, 0.96)),
    #15140f !important;
  border-color: rgba(246, 241, 230, 0.14) !important;
  color: #fff8ea !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] :where(
  .workspace-card p,
  .workspace-card__heading p,
  .workspace-card__body p,
  .project-card p,
  .project-preview p,
  .project-tab p,
  .teardown-tab p,
  .teardown-preview p,
  .care-card p,
  .principles__intro p,
  .principle-item p,
  .about__copy p,
  .contact-card p,
  .writing-section__intro p,
  .writing-index__panel p,
  .article-hero .writing-index__panel p,
  .writing-list span,
  .writing-list time,
  .poem-row small,
  .case-intro,
  .case-study p,
  .section-deck
) {
  color: #e5dece !important;
}

html[data-theme="dark"] :where(
  .workspace-card h3,
  .project-card h3,
  .project-preview h3,
  .teardown-tab span,
  .teardown-preview h3,
  .care-card h3,
  .principle-item h3,
  .about__copy h2,
  .contact-card h2,
  .writing-index__panel strong,
  .writing-list article > a:first-of-type,
  .poem-row strong,
  .case-hero h1,
  .case-section h2,
  .case-study-card h3
) {
  color: #fff8ea !important;
}

html[data-theme="dark"] :where(
  .kicker,
  .eyebrow,
  .preview-kicker,
  .workspace-card__number,
  .workspace-card__heading span,
  .workspace-card__body span,
  .writing-index__panel span,
  .case-label,
  .teardown-preview .preview-body span,
  .care-card span
) {
  color: #d7e8b8 !important;
}

html[data-theme="dark"] :where(.workspace-card::before, .workspace-card::after) {
  opacity: 0.2 !important;
  filter: saturate(0.45) brightness(0.78) contrast(0.94);
}

html[data-theme="dark"] :where(.teardown-tab::before, .teardown-preview::before, .teardown-preview::after) {
  opacity: 0.16 !important;
  filter: saturate(0.45) brightness(0.82) contrast(0.96);
}

html[data-theme="dark"] :where(.workspace-card::after, .teardown-preview::after) {
  background-color: rgba(12, 12, 9, 0.38);
  mix-blend-mode: multiply;
}

html[data-theme="dark"] .portrait-frame {
  background:
    radial-gradient(ellipse at 50% 44%, rgba(62, 58, 45, 0.9), rgba(12, 12, 10, 0.98) 70%),
    #0e0d0a !important;
}

html[data-theme="dark"] .portrait-frame::before {
  background:
    linear-gradient(rgba(212, 223, 183, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 223, 183, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse at 48% 46%, rgba(20, 19, 15, 0.96), rgba(20, 19, 15, 0) 68%),
    #0e0d0a !important;
}

html[data-theme="dark"] .portrait-frame img {
  filter: saturate(0.76) contrast(0.94) brightness(0.78) sepia(0.08);
}

html[data-theme="dark"] .hero__portrait-reveal {
  background:
    radial-gradient(circle at 50% 44%, rgba(44, 41, 31, 0.72), rgba(10, 10, 8, 0.92) 72%),
    #0e0d0a !important;
}

html[data-theme="dark"] .hero__portrait-scratch {
  background: transparent !important;
}

html[data-theme="dark"] :where(.card-cta, .writing-list article > a:last-child, .about-link, .contact-card a, .case-nav a) {
  background: rgba(246, 241, 230, 0.075) !important;
  color: #fff8ea !important;
  border-color: rgba(246, 241, 230, 0.18) !important;
}

html[data-theme="dark"] :where(.button, .card-cta--dark, .hero__mobile-actions .button) {
  background: #d4dfb7 !important;
  color: #11100c !important;
  border-color: rgba(212, 223, 183, 0.3) !important;
}

html[data-theme="dark"] :where(.button:hover, .card-cta:hover, .card-cta--dark:hover, .writing-list article > a:last-child:hover, .about-link:hover, .contact-card a:hover) {
  background: #4f6241 !important;
  color: #fbfaf6 !important;
  border-color: rgba(170, 185, 145, 0.52) !important;
}

html[data-theme="dark"] .nav-links a.is-active {
  background: #d4dfb7 !important;
  color: #11100c !important;
}

html[data-theme="dark"] :where(.status-pill.is-success, .project-status.is-success) {
  background: rgba(58, 104, 65, 0.52) !important;
  color: #e5f6d9 !important;
}

html[data-theme="dark"] :where(.status-pill.is-progress, .project-status.is-progress) {
  background: rgba(54, 92, 144, 0.58) !important;
  color: #edf5ff !important;
}

html[data-theme="dark"] :where(.workspace-card__body div, .preview-body div, .writing-section__intro, .project-preview .preview-body, .teardown-preview .preview-body) {
  border-color: rgba(246, 241, 230, 0.14) !important;
}

html[data-theme="dark"] .nav-links a {
  background: rgba(246, 241, 230, 0.07) !important;
  color: #e5dece !important;
}

html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.is-active {
  background: #d4dfb7 !important;
  color: #11100c !important;
}

@media (max-width: 900px) {
  html[data-theme="dark"] body {
    background:
      radial-gradient(circle at 18% 14%, rgba(104, 119, 86, 0.16), transparent 30%),
      radial-gradient(circle at 84% 4%, rgba(183, 159, 131, 0.11), transparent 34%),
      #171611 !important;
  }

  html[data-theme="dark"] .site-header::before {
    height: 126px;
    background:
      linear-gradient(to bottom, rgba(18, 17, 13, 0.98), rgba(18, 17, 13, 0.94) 70%, rgba(18, 17, 13, 0)) !important;
  }

  html[data-theme="dark"] .nav-shell {
    background:
      linear-gradient(145deg, rgba(44, 41, 31, 0.98), rgba(20, 19, 15, 0.98)),
      #15140f !important;
  }

  html[data-theme="dark"] :where(.workspace-card, .writing-index__panel, .writing-destination, .verses-section, .project-preview, .teardown-preview, .contact-card) {
    background:
      linear-gradient(145deg, rgba(45, 42, 32, 0.98), rgba(18, 17, 13, 0.97)),
      #15140f !important;
  }

  html[data-theme="dark"] .hero__mobile-actions .card-cta {
    background: rgba(246, 241, 230, 0.08) !important;
    color: #fff8ea !important;
  }
}

/* Dark mode contrast and accessibility finishing pass */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] .loader {
  background:
    radial-gradient(circle at 18% 16%, rgba(82, 95, 128, 0.28), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(163, 177, 138, 0.13), transparent 36%),
    radial-gradient(circle at 50% 88%, rgba(240, 217, 168, 0.12), transparent 40%),
    linear-gradient(145deg, #05070d 0%, #0b0d13 48%, #151209 100%) !important;
}

html[data-theme="dark"] .loader::before {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(255, 248, 234, 0.42));
  background-image:
    radial-gradient(circle, rgba(255, 252, 238, 0.95) 0 0.9px, rgba(255, 232, 176, 0.72) 1px 2.8px, transparent 7px),
    radial-gradient(circle, rgba(236, 244, 255, 0.8) 0 0.7px, rgba(179, 196, 226, 0.45) 0.8px 2px, transparent 6px),
    radial-gradient(circle at 8% 20%, rgba(255, 252, 238, 1) 0 1.2px, rgba(255, 232, 176, 0.78) 1.3px 3.6px, transparent 10px),
    radial-gradient(circle at 18% 72%, rgba(255, 252, 238, 0.92) 0 1px, rgba(255, 232, 176, 0.58) 1.1px 3px, transparent 9px),
    radial-gradient(circle at 29% 34%, rgba(235, 246, 218, 0.9) 0 1px, rgba(163, 177, 138, 0.62) 1.1px 3px, transparent 9px),
    radial-gradient(circle at 42% 16%, rgba(255, 252, 238, 1) 0 1.4px, rgba(255, 232, 176, 0.72) 1.5px 4px, transparent 12px),
    radial-gradient(circle at 57% 68%, rgba(255, 252, 238, 0.9) 0 1.1px, rgba(255, 232, 176, 0.56) 1.2px 3.4px, transparent 10px),
    radial-gradient(circle at 70% 28%, rgba(235, 246, 218, 0.92) 0 1px, rgba(163, 177, 138, 0.62) 1.1px 3.2px, transparent 10px),
    radial-gradient(circle at 84% 78%, rgba(255, 252, 238, 1) 0 1.5px, rgba(255, 232, 176, 0.72) 1.6px 4.2px, transparent 13px),
    radial-gradient(circle at 94% 38%, rgba(255, 252, 238, 0.9) 0 1px, rgba(255, 232, 176, 0.58) 1.1px 3px, transparent 10px);
  background-size:
    132px 132px,
    196px 196px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
}

html[data-theme="dark"] .loader::after {
  background:
    radial-gradient(circle at 52% 42%, rgba(163, 177, 138, 0.11), transparent 34%),
    radial-gradient(circle at 50% 78%, rgba(255, 232, 176, 0.08), transparent 38%),
    linear-gradient(to bottom, rgba(255, 248, 234, 0.02), rgba(0, 0, 0, 0.28));
}

html[data-theme="dark"] .constellation-line {
  stroke: rgba(255, 248, 234, 0.42) !important;
}

html[data-theme="dark"] .constellation-node__dot {
  background: #fff8ea !important;
  box-shadow:
    0 0 0 8px rgba(255, 248, 234, 0.12),
    0 0 22px rgba(255, 232, 176, 0.62) !important;
}

html[data-theme="dark"] .constellation-node__label {
  color: #f6f1e6 !important;
  text-shadow: 0 0 18px rgba(255, 248, 234, 0.24) !important;
}

html[data-theme="dark"] .loader__blink {
  background: #fff8ea !important;
}

html[data-theme="dark"] .hero {
  background:
    linear-gradient(90deg, rgba(18, 17, 13, 0.9), rgba(18, 17, 13, 0.72) 54%, rgba(12, 12, 9, 0.96)),
    #12110d !important;
}

html[data-theme="dark"] .hero__background {
  opacity: 0.72 !important;
  background:
    linear-gradient(to right, rgba(18, 17, 13, 0.52), rgba(18, 17, 13, 0.12) 48%, rgba(8, 8, 7, 0.64)),
    radial-gradient(circle at 78% 34%, rgba(240, 217, 168, 0.12), transparent 28%),
    radial-gradient(circle at 26% 56%, rgba(163, 177, 138, 0.08), transparent 34%),
    url("assets/hero-bg.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

html[data-theme="dark"] .hero__content::before {
  inset: -120px 14vw -120px -120px !important;
  background:
    radial-gradient(ellipse at 31% 46%, rgba(18, 17, 13, 0.58) 0%, rgba(18, 17, 13, 0.22) 45%, rgba(18, 17, 13, 0) 72%) !important;
  filter: blur(30px) !important;
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero .hero-title,
html[data-theme="dark"] .hero__title {
  color: #fff8ea !important;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.32) !important;
}

html[data-theme="dark"] .hero .eyebrow,
html[data-theme="dark"] .hero .kicker {
  color: #d9edb9 !important;
}

html[data-theme="dark"] .hero__copy,
html[data-theme="dark"] .hero__copy span,
html[data-theme="dark"] .hero p {
  color: #e7dfce !important;
}

html[data-theme="dark"] .hero__copy strong,
html[data-theme="dark"] .hero__word {
  color: #fff8ea !important;
}

html[data-theme="dark"] .hero__portrait-reveal {
  background:
    radial-gradient(circle at 60% 38%, rgba(255, 248, 234, 0.07), transparent 34%),
    radial-gradient(circle at 78% 74%, rgba(5, 5, 4, 0.7), transparent 42%) !important;
}

html[data-theme="dark"] .contact {
  background: transparent !important;
  isolation: isolate;
}

html[data-theme="dark"] .contact::before {
  content: "";
  position: absolute;
  inset: -70px -28px -72px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 46%, rgba(34, 33, 26, 0.86), transparent 58%),
    radial-gradient(ellipse at 78% 48%, rgba(26, 24, 18, 0.9), transparent 62%),
    linear-gradient(90deg, rgba(16, 15, 11, 0), rgba(16, 15, 11, 0.84) 18%, rgba(16, 15, 11, 0.86) 82%, rgba(16, 15, 11, 0));
  filter: blur(24px);
  opacity: 0.94;
}

html[data-theme="dark"] .contact-copy h2 {
  color: #fff8ea !important;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.38) !important;
}

html[data-theme="dark"] .contact-copy h2 span {
  color: rgba(255, 248, 234, 0.58) !important;
}

html[data-theme="dark"] .contact-note,
html[data-theme="dark"] .contact-copy p {
  color: #e5dece !important;
}

html[data-theme="dark"] :where(
  .workspace-card,
  .teardown-list__item,
  .teardown-preview,
  .writing-index,
  .writing-index__panel,
  .writing-destination,
  .writing-list article,
  .verses-section,
  .poem-row,
  .verse-row,
  .contact-card,
  .care-grid,
  .care-card,
  .care-item,
  .principles-panel,
  .principles-sequence,
  .principle-row,
  .project-preview,
  .preview-panel,
  .case-card,
  .project-meta-card,
  .visual-placeholder,
  .flow-step,
  .decision-card,
  .case-nav a
) {
  background:
    linear-gradient(145deg, rgba(42, 39, 30, 0.98), rgba(18, 17, 13, 0.985)),
    #171611 !important;
  border-color: rgba(246, 241, 230, 0.13) !important;
  color: #fff8ea !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32) !important;
}

html[data-theme="dark"] :where(
  .workspace-card,
  .teardown-list__item,
  .teardown-preview,
  .writing-index__panel,
  .writing-destination,
  .writing-list article,
  .verses-section,
  .poem-row,
  .verse-row,
  .contact-card,
  .care-card,
  .care-item,
  .principles-panel,
  .principles-sequence,
  .project-preview,
  .case-card,
  .project-meta-card,
  .visual-placeholder,
  .flow-step,
  .decision-card
) :where(p, span, li, dd, div) {
  color: #e5dece !important;
}

html[data-theme="dark"] :where(
  .workspace-card,
  .teardown-list__item,
  .teardown-preview,
  .writing-index__panel,
  .writing-destination,
  .writing-list article,
  .verses-section,
  .poem-row,
  .verse-row,
  .contact-card,
  .care-card,
  .care-item,
  .principles-panel,
  .principles-sequence,
  .project-preview,
  .case-card,
  .project-meta-card,
  .visual-placeholder,
  .flow-step,
  .decision-card
) :where(h1, h2, h3, h4, strong, b) {
  color: #fff8ea !important;
}

html[data-theme="dark"] :where(.eyebrow, .kicker, .section-label, .workspace-card__eyebrow, .writing-index__meta, .project-label) {
  color: #d9edb9 !important;
}

html[data-theme="dark"] .footer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background:
    linear-gradient(135deg, rgba(17, 16, 12, 0.98), rgba(28, 25, 18, 0.98)),
    #11100c !important;
  border-top: 1px solid rgba(246, 241, 230, 0.14) !important;
  color: #f6f1e6 !important;
}

html[data-theme="dark"] .footer span {
  color: #f6f1e6 !important;
}

@media (max-width: 900px) {
  html[data-theme="dark"] .site-header {
    background:
      linear-gradient(to bottom, rgba(18, 17, 13, 0.98), rgba(18, 17, 13, 0.92) 72%, rgba(18, 17, 13, 0)) !important;
  }

  html[data-theme="dark"] .standalone-brand,
  html[data-theme="dark"] .time-block,
  html[data-theme="dark"] .time-block span {
    color: #fff8ea !important;
  }

  html[data-theme="dark"] .hero {
    padding-top: calc(134px + env(safe-area-inset-top));
    background:
      linear-gradient(90deg, rgba(24, 23, 18, 0.94), rgba(30, 28, 22, 0.82) 58%, rgba(8, 8, 7, 0.98)),
      #12110d !important;
  }

  html[data-theme="dark"] .hero__content::before {
    inset: -84px -10px -84px -18px !important;
    background:
      radial-gradient(ellipse at 42% 48%, rgba(18, 17, 13, 0.34), rgba(18, 17, 13, 0.16) 48%, transparent 78%) !important;
  }

  html[data-theme="dark"] .contact-copy h2 {
    overflow-wrap: anywhere;
  }

  html[data-theme="dark"] .footer {
    display: grid !important;
    gap: 10px !important;
    padding: 22px 20px 34px !important;
  }
}

/* Remove the pale hero wash in dark mode. */
html[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse at 18% 42%, rgba(68, 68, 58, 0.24), transparent 42%),
    radial-gradient(ellipse at 78% 38%, rgba(44, 38, 28, 0.2), transparent 38%),
    linear-gradient(102deg, #15140f 0%, #1b1913 46%, #090908 100%) !important;
}

html[data-theme="dark"] .hero__background {
  opacity: 0.82 !important;
  background:
    linear-gradient(to bottom, rgba(5, 5, 4, 0.2), rgba(5, 5, 4, 0.54) 82%, rgba(5, 5, 4, 0.82)),
    linear-gradient(to right, rgba(8, 8, 7, 0.48), rgba(20, 19, 15, 0.24) 42%, rgba(5, 5, 4, 0.76)),
    radial-gradient(ellipse at 34% 44%, rgba(86, 84, 74, 0.18), transparent 38%),
    radial-gradient(ellipse at 82% 36%, rgba(82, 70, 48, 0.16), transparent 32%),
    linear-gradient(115deg, #15140f 0%, #222018 48%, #0a0a08 100%) !important;
  background-blend-mode: normal !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

html[data-theme="dark"] .hero__content::before {
  background:
    radial-gradient(ellipse at 34% 48%, rgba(5, 5, 4, 0.62) 0%, rgba(10, 10, 8, 0.34) 44%, rgba(10, 10, 8, 0) 74%) !important;
  filter: blur(34px) !important;
}

html[data-theme="dark"] .hero.is-portrait-hint .hero__portrait-glow,
html[data-theme="dark"] .hero.is-portrait-active .hero__portrait-glow {
  background:
    linear-gradient(104deg, rgba(20, 18, 13, 0) 18%, rgba(168, 147, 102, 0.18) 44%, rgba(70, 58, 38, 0.16) 58%, rgba(20, 18, 13, 0) 76%) !important;
  mix-blend-mode: soft-light !important;
}

/* Keep the desktop principles module dark and readable in system dark mode. */
html[data-theme="dark"] .principles {
  background: transparent !important;
}

html[data-theme="dark"] .principles__list {
  background:
    linear-gradient(145deg, rgba(24, 23, 18, 0.98), rgba(13, 13, 10, 0.99)),
    #11100c !important;
  border-color: rgba(246, 241, 230, 0.12) !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] .principles__intro {
  background:
    linear-gradient(145deg, rgba(38, 35, 27, 0.98), rgba(13, 13, 10, 0.985)),
    #11100c !important;
  border-color: rgba(246, 241, 230, 0.14) !important;
  color: #fff8ea !important;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] .principle-panel,
html[data-theme="dark"] .principle-panel.is-active,
html[data-theme="dark"] .principle-panel:hover {
  background: transparent !important;
  border-color: rgba(246, 241, 230, 0.12) !important;
  color: #fff8ea !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .principle-panel h3 {
  color: #fff8ea !important;
}

html[data-theme="dark"] .principle-panel p,
html[data-theme="dark"] .principles__intro .section-deck {
  color: #e5dece !important;
}

html[data-theme="dark"] .principles__list::before {
  background: rgba(212, 223, 183, 0.22) !important;
}

html[data-theme="dark"] .principle-panel::before,
html[data-theme="dark"] .principle-panel::after {
  opacity: 0 !important;
}

html[data-theme="dark"] .principle-panel span {
  background: #f6f1e6 !important;
  border-color: rgba(246, 241, 230, 0.28) !important;
  color: #8da36c !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .principle-panel.is-active span,
html[data-theme="dark"] .principle-panel:hover span {
  background: #aab991 !important;
  color: #11100c !important;
}
