:root {
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --forest: #163a2e;
  --ink: #10251d;
  --muted: #5e6d65;
  --acid: #c8f23d;
  --sage: #b9c9b8;
  --sage-light: #dde3d1;
  --line: #cfd7ca;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(16, 37, 29, 0.12);
  --radius: 1.6rem;
  --shell: min(1180px, calc(100vw - 3rem));
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    Inter, Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 18% 10%, rgba(200, 242, 61, 0.09), transparent 24rem),
    radial-gradient(circle at 92% 35%, rgba(185, 201, 184, 0.26), transparent 28rem);
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

button,
summary {
  cursor: pointer;
}

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

::selection {
  background: var(--acid);
  color: var(--ink);
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.25rem, 7vw, 6.75rem);
}

h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.35rem, 4.2vw, 4.25rem);
}

h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

p {
  color: var(--muted);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 9vw, 9rem);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.25rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--acid);
  content: "";
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.button--primary {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(126, 151, 33, 0.18);
}

.button--primary:hover {
  box-shadow: 0 15px 35px rgba(126, 151, 33, 0.3);
}

.button--secondary {
  border-color: rgba(16, 37, 29, 0.24);
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--paper);
}

.button--text {
  min-height: auto;
  padding: 0.25rem 0;
  color: var(--acid);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: blur(16px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: rgba(22, 58, 46, 0.12);
  box-shadow: 0 8px 30px rgba(16, 37, 29, 0.06);
}

.header-inner {
  display: flex;
  width: var(--shell);
  min-height: 5.6rem;
  align-items: center;
  gap: 2.2rem;
  margin-inline: auto;
}

.brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  text-decoration: none;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.17rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.brand span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a:not(.button) {
  position: relative;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 0.2rem;
  border-radius: 99px;
  background: var(--acid);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle,
.nav-mobile-cta {
  display: none;
}

.hero {
  display: grid;
  min-height: calc(100svh - 5.6rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(23rem, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

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

.hero-lead {
  max-width: 38rem;
  margin-bottom: 2rem;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin: 2.3rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
  text-transform: uppercase;
}

.trust-row li::before {
  margin-right: 0.45rem;
  color: #668010;
  content: "✓";
}

.portrait {
  position: relative;
  min-height: min(44rem, 75vh);
  isolation: isolate;
}

.portrait img {
  position: absolute;
  right: -3%;
  bottom: 0;
  z-index: 4;
  width: 94%;
  height: 96%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 30px rgba(16, 37, 29, 0.18));
}

.portrait-blob {
  position: absolute;
  display: block;
}

.portrait-blob--back {
  right: 3%;
  bottom: 1%;
  z-index: 0;
  width: 88%;
  aspect-ratio: 0.85;
  border-radius: 48% 52% 42% 58% / 44% 40% 60% 56%;
  background: var(--sage);
  transform: rotate(6deg);
}

.portrait-blob--main {
  right: 9%;
  bottom: 4%;
  z-index: 1;
  width: 75%;
  aspect-ratio: 0.8;
  border-radius: 55% 45% 54% 46% / 43% 54% 46% 57%;
  background: var(--acid);
  clip-path: polygon(0 13%, 100% 0, 92% 100%, 11% 91%);
  opacity: 0.92;
  transform: rotate(-4deg);
}

.portrait-line {
  position: absolute;
  z-index: 2;
  border: 2px solid rgba(22, 58, 46, 0.42);
  border-radius: 50%;
}

.portrait-line--one {
  top: 12%;
  right: 1%;
  width: 72%;
  aspect-ratio: 1;
  transform: rotate(28deg);
}

.portrait-line--two {
  right: 17%;
  bottom: 8%;
  width: 56%;
  aspect-ratio: 1.4;
  transform: rotate(-17deg);
}

.portrait-orbit {
  position: absolute;
  top: 18%;
  right: 2%;
  z-index: 5;
  width: 1.1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--forest);
  box-shadow:
    -21rem 5rem 0 -0.2rem var(--acid),
    -17rem 24rem 0 -0.32rem var(--forest);
}

.portrait--compact {
  min-height: 30rem;
}

.portrait--compact img {
  width: 88%;
  height: 96%;
}

.section-intro {
  max-width: 50rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-intro > p:last-child {
  max-width: 43rem;
  font-size: 1.08rem;
}

.section-intro.is-centered {
  margin-inline: auto;
  text-align: center;
}

.section-intro.is-centered .eyebrow {
  justify-content: center;
}

.light-section {
  background: var(--paper);
}

.dark-section {
  background: var(--forest);
  color: var(--paper);
}

.dark-section .eyebrow,
.dark-section .button--text {
  color: var(--acid);
}

.dark-section p {
  color: rgba(255, 253, 248, 0.68);
}

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

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

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

.outcome-card,
.service-card,
.detail-card {
  position: relative;
  min-height: 22rem;
  padding: clamp(1.65rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.outcome-card > span,
.detail-card > span {
  display: inline-flex;
  width: 2.8rem;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(4rem, 8vw, 8rem);
  border: 1px solid rgba(22, 58, 46, 0.25);
  border-radius: 50%;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
}

.outcome-card::after {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 10rem;
  aspect-ratio: 1;
  border: 1px solid var(--sage);
  border-radius: 50%;
  content: "";
}

.outcome-card.is-dark {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
  transform: translateY(-1.7rem);
}

.outcome-card.is-dark p {
  color: rgba(255, 253, 248, 0.68);
}

.outcome-card.is-dark > span {
  border-color: rgba(255, 253, 248, 0.3);
  color: var(--acid);
}

.service-card {
  min-height: 29rem;
  background: var(--paper);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover,
.detail-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.service-card.is-featured {
  border-color: var(--acid);
  box-shadow: inset 0 0 0 1px var(--acid);
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4.5rem;
}

.service-meta span {
  color: var(--forest);
  font-weight: 850;
}

.service-meta em {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--forest);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card.is-featured .service-meta em {
  background: var(--acid);
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.91rem;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
}

.check-list li::before {
  color: #668010;
  content: "✓";
  font-weight: 900;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 253, 248, 0.19);
}

.process-list li:last-child {
  border-bottom: 1px solid rgba(255, 253, 248, 0.19);
}

.process-list > li > span {
  color: var(--acid);
  font-size: 0.8rem;
  font-weight: 850;
}

.process-list h3 {
  color: var(--paper);
}

.about-preview {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.about-visual {
  position: relative;
}

.credential {
  position: absolute;
  right: -1rem;
  bottom: 1.5rem;
  z-index: 8;
  display: flex;
  max-width: 18rem;
  flex-direction: column;
  padding: 1.1rem 1.3rem;
  border-radius: 1rem;
  background: var(--forest);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.credential span {
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.83rem;
}

.about-preview .button {
  margin-top: 1rem;
}

.faq .two-column {
  align-items: start;
}

.faq-items {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  list-style: none;
}

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

.faq summary span {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-light);
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq details[open] summary span {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 42rem;
  padding: 0 3.5rem 1.5rem 0;
}

.contact-section {
  padding-top: 1rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(2rem, 6vw, 5.5rem);
  border-radius: calc(var(--radius) * 1.25);
  background: var(--forest);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 12ch;
}

.contact-panel p {
  color: rgba(255, 253, 248, 0.68);
}

.contact-panel .eyebrow {
  color: var(--acid);
}

.direct-contact {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.direct-contact a {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 253, 248, 0.17);
  text-decoration: none;
}

.direct-contact span {
  color: rgba(255, 253, 248, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 1.25rem;
  background: var(--paper);
  color: var(--ink);
}

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

.contact-form label {
  display: grid;
  gap: 0.38rem;
}

.contact-form label > span {
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
  padding: 0.85rem 0.95rem;
}

.contact-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--forest);
  outline: 2px solid rgba(200, 242, 61, 0.55);
}

.contact-form .form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.contact-form .button {
  border: 0;
}

.site-footer {
  margin-top: clamp(4rem, 8vw, 8rem);
  padding: clamp(4rem, 7vw, 7rem) 0 1.5rem;
  background: #0e2c22;
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 0.7fr;
  gap: 2rem;
}

.footer-grid h2 {
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.footer-brand p {
  max-width: 26rem;
}

.footer-grid p,
.footer-grid address {
  color: rgba(255, 253, 248, 0.61);
  font-size: 0.88rem;
  font-style: normal;
}

.footer-grid ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  list-style: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 253, 248, 0.12);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 253, 248, 0.45);
  font-size: 0.75rem;
}

.sub-hero {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  overflow: hidden;
}

.sub-hero-grid {
  display: grid;
  min-height: 36rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}

.sub-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.4rem, 6vw, 6rem);
}

.sub-hero-grid > div:first-child > p:last-child {
  max-width: 40rem;
  font-size: 1.2rem;
}

.detail-card {
  min-height: 26rem;
  background: var(--paper);
}

.detail-card > span {
  margin-bottom: 4.5rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.17);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.17);
}

.format-grid article {
  min-height: 20rem;
  padding: 2rem;
  background: var(--forest);
}

.format-grid article.is-accent {
  background: var(--acid);
  color: var(--ink);
}

.format-grid article > span {
  display: block;
  margin-bottom: 7rem;
  color: var(--acid);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.format-grid .is-accent > span,
.format-grid .is-accent p {
  color: var(--forest);
}

.topic-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.topic-list li {
  padding: 1.15rem 2rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-weight: 750;
}

.topic-list li::before {
  margin-right: 0.75rem;
  color: #668010;
  content: "↗";
}

.conditions-wrap {
  padding-block: clamp(1rem, 4vw, 4rem);
}

.conditions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius);
  background: var(--sage-light);
}

.conditions > div:last-child {
  display: grid;
  gap: 1rem;
}

.conditions article {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(22, 58, 46, 0.18);
}

.conditions article:last-child {
  border-bottom: 0;
}

.conditions h3 {
  margin-bottom: 0.35rem;
  font-size: 1.4rem;
}

.conditions p {
  margin-bottom: 0;
}

.mission {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.mission blockquote {
  position: sticky;
  top: 8rem;
  margin: 0;
  padding: 2.5rem;
  border-radius: var(--radius);
  background: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline > li > span {
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.timeline h3 {
  margin-bottom: 0.35rem;
}

.timeline p {
  margin-bottom: 0;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 253, 248, 0.16);
  background: rgba(255, 253, 248, 0.16);
}

.competency-grid article {
  min-height: 17rem;
  padding: 2rem;
  background: var(--forest);
}

.competency-grid span {
  display: block;
  margin-bottom: 4rem;
  color: var(--acid);
  font-size: 0.76rem;
  font-weight: 850;
}

.legal-hero {
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--forest);
  color: var(--paper);
}

.legal-hero .eyebrow {
  color: var(--acid);
}

.legal-hero h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.legal-hero p:last-child {
  max-width: 45rem;
  color: rgba(255, 253, 248, 0.68);
  font-size: 1.1rem;
}

.legal-body {
  max-width: 54rem;
}

.legal-body h2 {
  margin-top: 3rem;
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body a {
  color: var(--forest);
}

.not-found {
  display: grid;
  min-height: 65svh;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  max-width: 14ch;
  margin-inline: auto;
}

.not-found p:not(.eyebrow) {
  margin-bottom: 2rem;
}

.not-found .eyebrow {
  justify-content: center;
}

.reveal {
  animation: rise-in 0.7s both;
}

.reveal:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal:nth-child(3) {
  animation-delay: 0.16s;
}

.reveal:nth-child(4) {
  animation-delay: 0.24s;
}

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

@media (max-width: 1100px) {
  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  }

  .portrait {
    min-height: 37rem;
  }

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

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 2rem, 44rem);
  }

  .header-inner {
    min-height: 4.8rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 43;
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-content: center;
    gap: 0.36rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
  }

  .nav-toggle span {
    display: block;
    width: 1rem;
    height: 2px;
    background: var(--forest);
    transition: transform 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 42;
    display: flex;
    width: min(27rem, 92vw);
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    background: var(--forest);
    color: var(--paper);
    box-shadow: -15px 0 40px rgba(16, 37, 29, 0.18);
    transform: translateX(105%);
    transition: transform 0.25s ease;
  }

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

  .primary-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-nav li {
    border-bottom: 1px solid rgba(255, 253, 248, 0.17);
  }

  .primary-nav a:not(.button) {
    display: block;
    padding: 1.2rem 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
  }

  .nav-mobile-cta {
    display: inline-flex;
    margin-top: 2rem;
  }

  .hero,
  .sub-hero-grid,
  .about-preview,
  .contact-panel,
  .conditions,
  .mission {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero > .portrait {
    order: 2;
    min-height: 34rem;
  }

  .sub-hero-grid {
    min-height: auto;
  }

  .sub-hero .portrait {
    min-height: 31rem;
  }

  .card-grid--three,
  .competency-grid {
    grid-template-columns: 1fr 1fr;
  }

  .outcome-card.is-dark {
    transform: none;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .mission blockquote {
    position: static;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 1.5rem);
    --radius: 1.2rem;
  }

  body {
    font-size: 0.97rem;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.15rem, 11vw, 3.15rem);
  }

  .section {
    padding-block: 4.5rem;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand span {
    font-size: 0.58rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero > .portrait {
    min-height: 29rem;
  }

  .portrait-orbit {
    display: none;
  }

  .card-grid--two,
  .card-grid--three,
  .format-grid,
  .competency-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .outcome-card,
  .service-card,
  .detail-card {
    min-height: auto;
  }

  .outcome-card > span,
  .detail-card > span {
    margin-bottom: 3rem;
  }

  .service-meta {
    margin-bottom: 3rem;
  }

  .format-grid article {
    min-height: auto;
  }

  .format-grid article > span {
    margin-bottom: 3rem;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .credential {
    right: 0;
    bottom: 0;
    max-width: 15rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    width: calc(100% - 1rem);
  }

  .contact-form {
    padding: 1rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

@media print {
  .site-header,
  .site-footer,
  .contact-section,
  .button,
  .portrait {
    display: none !important;
  }

  body,
  .light-section,
  .dark-section,
  .legal-hero {
    background: #fff !important;
    color: #000 !important;
  }

  .section,
  .legal-hero {
    padding-block: 2rem;
  }

  p,
  .legal-hero p {
    color: #222 !important;
  }
}
