:root {
  --paper: #f3f1ed;
  --ink: #161310;
  --muted: #6f706b;
  --hero-solid: #ecebeb;
  --soft: rgba(243, 241, 237, 0.78);
  --line: rgba(22, 19, 16, 0.18);
  --sage: #6f7d68;
  --rose: #b97772;
  --blue: #637b8a;
  --plum: #5d4a5e;
  --shadow: rgba(22, 19, 16, 0.18);
  --section-inline: clamp(18px, 2.4vw, 48px);
}

body.dark {
  --paper: #161310;
  --ink: #f3f1ed;
  --muted: #aaa6a0;
  --hero-solid: #161310;
  --soft: rgba(22, 19, 16, 0.78);
  --line: rgba(243, 241, 237, 0.18);
  --sage: #8ea084;
  --rose: #d19a94;
  --blue: #91a8b5;
  --plum: #bda9be;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: mo, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 500ms ease, color 500ms ease;
}

@font-face {
  font-display: swap;
  font-family: me;
  font-weight: 200;
  src: url("assets/fonts/me2.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: mo;
  font-weight: 400;
  src: url("assets/fonts/mo4.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: mo;
  font-weight: 700;
  src: url("assets/fonts/mo7.woff2") format("woff2");
}

body.is-loading {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.loader {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 100;
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), visibility 700ms;
}

body.loaded .loader {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loader-brain {
  width: min(46vw, 280px);
}

.loader-brain svg {
  height: auto;
  overflow: visible;
  width: 100%;
}

.brain-path {
  fill: none;
  stroke: var(--paper);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.loader-copy {
  align-items: center;
  bottom: 22px;
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 22px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  text-transform: uppercase;
}

.mask-line {
  display: block;
  overflow: hidden;
}

.mask-line > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1080ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.is-visible.mask-line > span,
.is-visible .mask-line > span,
body.loaded .site-nav.is-visible .mask-line > span {
  transform: translateY(0);
}

.word-mask {
  display: inline-block;
  margin-right: 0;
  overflow: hidden;
  vertical-align: bottom;
}

.word-mask > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--word-index, 0) * 24ms);
  will-change: transform;
}

.is-visible .word-mask > span,
.is-visible.word-ready .word-mask > span {
  transform: translateY(0);
}

.page-transition {
  background: var(--ink);
  height: 100vh;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translateY(101%);
  width: 100%;
  z-index: 80;
}

body.is-transitioning .page-transition {
  animation: routeCover 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes routeCover {
  0% {
    transform: translateY(101%);
  }
  45% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-101%);
  }
}

.site-nav {
  align-items: start;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(18px, 3.2vw, 58px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: 0;
  mix-blend-mode: normal;
  padding: 14px var(--section-inline) 18px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateY(0);
  transition: opacity 340ms ease, transform 440ms cubic-bezier(0.16, 1, 0.3, 1), background-color 340ms ease, border-color 340ms ease;
  z-index: 30;
}

body.dark .site-nav {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.site-nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.nav-cell {
  color: var(--ink);
  filter: none;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 0;
}

.nav-cell strong,
.nav-link-list,
.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
  line-height: 1.08;
}

.nav-cell strong,
.nav-label {
  display: block;
}

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

.nav-links a {
  color: var(--ink);
  position: relative;
  transition: color 220ms ease, opacity 220ms ease;
}

.nav-links a:not(:last-child)::after {
  content: ",";
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  opacity: 0.58;
}

.theme-options {
  align-items: baseline;
  gap: 0;
}

.theme-options span {
  margin-right: 5px;
}

.theme-choice {
  color: var(--ink);
  font-weight: 700;
  transition: opacity 220ms ease;
}

.theme-choice:hover,
.theme-choice.active {
  opacity: 0.58;
}

.hero {
  align-items: center;
  background: var(--hero-solid);
  display: flex;
  justify-content: center;
  min-height: 86svh;
  overflow: hidden;
  padding: 118px var(--section-inline) 76px;
  position: relative;
}

body.dark .hero {
  background: var(--hero-solid);
}

.hero-content {
  margin: 0 auto;
  max-width: 1360px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.eyebrow,
.section-index,
.hero-meta,
.contact footer {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  font-family: me, Georgia, "Times New Roman", serif;
  font-size: clamp(4.9rem, 9.7vw, 10.8rem);
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 8px;
  max-width: none;
}

.hero-title {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.14em;
  justify-content: center;
  white-space: nowrap;
}

.hero-title .mask-line {
  display: inline-block;
  padding: 0.04em 0 0.14em;
}

.hero-info {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  margin: 16px auto 0;
  max-width: 760px;
}

.hero-copy {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-family: me, Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.7vw, 3.05rem);
  font-weight: 200;
  line-height: 1.04;
  margin: 22px auto 0;
  max-width: 960px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
  transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: color-mix(in srgb, var(--paper) 72%, transparent);
}

.button:hover {
  border-color: var(--ink);
}

.hero-meta {
  align-items: center;
  bottom: 22px;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  left: var(--section-inline);
  position: absolute;
  right: var(--section-inline);
  z-index: 2;
}

.intro-band {
  --first-opacity: 1;
  --first-y: 0%;
  --second-opacity: 0;
  --second-y: 112%;
  background: var(--ink);
  color: var(--paper);
  min-height: 168svh;
  padding: 0 var(--section-inline);
  position: relative;
  scroll-margin-top: 0;
}

.intro-sticky {
  align-items: center;
  display: flex;
  min-height: 100svh;
  padding: clamp(84px, 10vh, 118px) 0;
  position: sticky;
  top: 0;
}

.intro-grid {
  align-items: center;
  display: grid;
  gap: clamp(42px, 6vw, 106px);
  grid-template-columns: minmax(190px, 0.36fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1320px;
  width: 100%;
}

.intro-kicker {
  align-self: start;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro-phrases {
  min-height: clamp(330px, 34vw, 560px);
  position: relative;
}

.intro-phrase {
  font-family: me, Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 4.15vw, 5.35rem);
  font-weight: 200;
  inset: 0 auto auto 0;
  line-height: 1.01;
  max-width: min(900px, 100%);
  position: absolute;
  text-align: left;
  text-wrap: balance;
  width: 100%;
}

.intro-phrase .word-mask {
  padding-bottom: 0.12em;
}

.intro-phrase .word-mask > span {
  transition-duration: 640ms;
  transition-delay: calc(var(--word-index, 0) * 18ms);
}

.intro-phrase-first {
  opacity: var(--first-opacity);
}

.intro-phrase-first .word-mask > span {
  transform: translateY(var(--first-y));
}

.intro-phrase-second {
  opacity: var(--second-opacity);
}

.intro-phrase-second .word-mask > span {
  transform: translateY(var(--second-y));
}

.section-panel {
  border-top: 1px solid var(--line);
}

.about,
.approach,
.care,
.process,
.faq {
  align-items: center;
  display: grid;
  gap: clamp(28px, 4vw, 72px);
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  min-height: 72svh;
  padding: clamp(86px, 10vw, 142px) var(--section-inline);
}

.section-copy {
  align-self: center;
  max-width: 920px;
}

.section-copy h2,
.contact h2 {
  font-family: me, Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 5.4vw, 6rem);
  font-weight: 200;
  letter-spacing: 0;
  line-height: 0.98;
}

.section-copy p {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 1.12rem;
  line-height: 1.55;
  margin-top: 28px;
  max-width: 700px;
}

.about-points {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 34px;
  padding-top: 22px;
}

.about-points span,
.approach-number,
.approach-lead p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.approach {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--sage) 12%, transparent), transparent 48%),
    color-mix(in srgb, var(--sage) 6%, var(--paper));
}

.approach-content {
  align-self: center;
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  min-width: 0;
}

.approach-lead {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 3.2vw, 52px);
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.approach-lead h2 {
  font-family: me, Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 3.35vw, 4.1rem);
  font-weight: 200;
  line-height: 1.08;
  max-width: 820px;
  padding: 0.04em 0 0.14em;
}

.approach-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approach-item {
  background: color-mix(in srgb, var(--paper) 78%, var(--sage) 9%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 236px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  transition: background-color 280ms ease, border-color 280ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.approach-item::after {
  background: var(--ink);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 280ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.approach-item:hover {
  background: color-mix(in srgb, var(--paper) 86%, var(--sage) 14%);
  border-color: color-mix(in srgb, var(--ink) 28%, var(--line));
  transform: translateY(-4px);
}

.approach-item:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.approach-number {
  font-family: mo, Inter, ui-sans-serif, system-ui, sans-serif;
  position: relative;
  z-index: 1;
}

.approach-item h3 {
  font-family: me, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 2.35vw, 3rem);
  font-weight: 200;
  line-height: 1.15;
  margin-top: 28px;
  padding: 0.04em 0 0.16em;
  position: relative;
  z-index: 1;
}

.approach-item p {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  font-size: 1.03rem;
  line-height: 1.55;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.care {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sage) 12%, transparent), transparent 44%),
    var(--paper);
}

.care-list {
  align-self: center;
  display: grid;
  gap: 0;
}

.care-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 70px minmax(190px, 0.75fr) minmax(0, 1fr);
  padding: 24px 0;
}

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

.care-item span {
  color: var(--muted);
}

.care-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
}

.care-item p,
.step p,
.faq p {
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.process {
  background: var(--ink);
  color: var(--paper);
}

.process .section-index,
.process .step p {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

.process-steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-content {
  align-self: center;
}

.process-lead {
  color: var(--paper);
  font-family: me, Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 200;
  line-height: 0.98;
  margin-bottom: clamp(42px, 6vw, 82px);
  max-width: 1020px;
}

.step {
  border-top: 1px solid rgba(243, 241, 237, 0.24);
  min-height: 240px;
  padding-top: 18px;
}

.step span {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 70px;
  text-transform: uppercase;
}

.faq-list {
  align-self: center;
  max-width: 880px;
}

details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

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

summary {
  cursor: pointer;
  font-family: me, Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  list-style: none;
}

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

summary::after {
  content: "+";
  float: right;
  font-family: mo, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.4rem;
  margin-left: 20px;
}

details[open] summary::after {
  content: "-";
}

.faq p {
  margin-top: 18px;
  max-width: 640px;
}

.contact {
  background: linear-gradient(135deg, var(--plum), var(--blue) 58%, var(--sage));
  color: #fff;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.36fr);
  min-height: 82svh;
  padding: 96px var(--section-inline) 24px;
}

.contact .section-index {
  color: rgba(255, 255, 255, 0.7);
}

.contact h2 {
  margin-top: 30px;
  max-width: 720px;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.55;
  margin-top: 24px;
  max-width: 560px;
}

.contact-actions {
  align-self: end;
  display: grid;
}

.contact-actions a {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 0;
  transition: opacity 220ms ease;
}

.contact-actions a:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-actions a:hover {
  opacity: 0.68;
}

.contact footer {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 70px;
}

[data-reveal] {
  filter: blur(8px);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible,
body.loaded .site-nav[data-reveal] {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

body.loaded .site-nav.nav-hidden[data-reveal] {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.hero .eyebrow {
  transition-delay: 80ms;
}

.hero-title {
  transition-delay: 170ms;
}

.hero-title .mask-line:nth-child(2) > span {
  transition-delay: 120ms;
}

.hero-info {
  transition-delay: 320ms;
}

.hero-copy {
  transition-delay: 430ms;
}

.hero-copy .mask-line:nth-child(2) > span {
  transition-delay: 90ms;
}

.section-copy [data-reveal]:nth-child(2),
.care-item:nth-child(2),
.approach-item:nth-child(2),
.step:nth-child(2),
.faq-list details:nth-child(2) {
  transition-delay: 90ms;
}

.section-copy [data-reveal]:nth-child(3),
.care-item:nth-child(3),
.approach-item:nth-child(3),
.step:nth-child(3),
.faq-list details:nth-child(3) {
  transition-delay: 160ms;
}

.care-item:nth-child(4),
.approach-item:nth-child(4),
.step:nth-child(4),
.faq-list details:nth-child(4) {
  transition-delay: 230ms;
}

.care-item:nth-child(5),
.faq-list details:nth-child(5) {
  transition-delay: 300ms;
}

.care-item:nth-child(6) {
  transition-delay: 370ms;
}

.hero-actions {
  transition-delay: 620ms;
}

.hero-meta [data-reveal]:nth-child(1) {
  transition-delay: 720ms;
}

.hero-meta [data-reveal]:nth-child(2) {
  transition-delay: 820ms;
}

@media (max-width: 1020px) {
  .hero h1 {
    font-size: clamp(4rem, 12vw, 7.6rem);
  }

  .site-nav {
    grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) minmax(0, 1.4fr);
  }

  .nav-theme {
    grid-column: 1 / -1;
  }

  .intro-grid {
    gap: 34px;
    grid-template-columns: 1fr;
    max-width: 780px;
  }

  .intro-phrase {
    font-size: clamp(3.15rem, 8.2vw, 5.25rem);
    max-width: 100%;
    text-align: left;
    text-wrap: balance;
  }

  .about,
  .approach,
  .care,
  .process,
  .faq,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .approach-lead {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .step span {
    margin-bottom: 24px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    gap: 12px 18px;
    grid-template-columns: 1fr 1fr;
    left: 0;
    padding: 12px 18px 14px;
    right: 0;
  }

  .nav-service {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 4;
  }

  .nav-theme {
    grid-column: auto;
    justify-self: end;
    order: 2;
  }

  .nav-brand {
    order: 1;
  }

  .hero {
    min-height: 92svh;
    padding: 138px 18px 82px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 5.2rem);
    line-height: 0.92;
  }

  .hero-title {
    flex-wrap: wrap;
    gap: 0;
    white-space: normal;
  }

  .hero-title .mask-line {
    display: block;
    width: 100%;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-info {
    font-size: 0.9rem;
  }

  .hero-meta {
    justify-content: space-between;
    left: 18px;
    right: 18px;
  }

  .intro-band {
    min-height: 158svh;
  }

  .intro-sticky {
    align-items: flex-start;
    padding: 112px 0 64px;
  }

  .intro-phrases {
    min-height: 440px;
  }

  .intro-phrase {
    font-size: clamp(2.65rem, 11.2vw, 4.15rem);
    line-height: 1.04;
  }

  .about,
  .approach,
  .care,
  .process,
  .faq {
    min-height: 0;
    padding: 72px 18px;
  }

  .approach-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .approach-item {
    min-height: 230px;
    padding: 20px;
  }

  .approach-item h3 {
    font-size: clamp(2.2rem, 10vw, 3.35rem);
    margin-top: 28px;
  }

  .care-item {
    grid-template-columns: 42px 1fr;
  }

  .care-item p {
    grid-column: 2;
  }

  summary {
    font-size: 1.55rem;
  }

  .contact {
    min-height: 76svh;
    padding-top: 72px;
  }
}
