@font-face { font-family: "DM Sans"; src: url("assets/dm-sans.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/playfair.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/playfair-italic.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }

:root {
  --paper: #f7f2e8;
  --cream: #e8dcc5;
  --red: #a43f30;
  --forest: #263e2c;
  --wood: #bc905f;
  --ink: #302d28;
  --muted: #62584c;
  --rule: #cfc2ae;
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "DM Sans", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
section, [id] { scroll-margin-top: 1.5rem; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, ul, ol { margin: 0; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: 0.25em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.forest a:focus-visible, .site-footer a:focus-visible, .site-footer summary:focus-visible { outline-color: var(--cream); }
.wrap { width: min(100% - 7.5rem, 81rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section-rule { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2.5rem, 9vw, 9rem); }
.split > div > p:not(.eyebrow) { max-width: 41ch; }
.tinted { background: #eee5d6; }
.forest, .site-footer { background: var(--forest); color: var(--paper); }

.skip {
  position: absolute;
  inset: 1rem auto auto 1rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--rule); }
.masthead { min-height: 5.75rem; display: flex; align-items: center; gap: clamp(1.25rem, 5vw, 5.5rem); }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--forest); }
.brand span:last-child { display: grid; gap: 0.22rem; }
.brand small { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; line-height: 1; text-transform: uppercase; color: var(--red); }
.brand strong { font: 1.36rem/1 var(--serif); letter-spacing: -0.045em; }
.brand-mark { position: relative; width: 2.15rem; height: 2.15rem; border: 1px solid currentColor; border-radius: 50% 50% 0 0; color: var(--red); }
.brand-mark::before { position: absolute; content: ""; inset: 27% 22% 41%; border: 1px solid currentColor; border-radius: 50% 50% 0 0; }
.brand-mark::after { position: absolute; content: ""; inset: 69% 22% auto; border-top: 1px solid currentColor; }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-nav a, .language a { text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.site-nav a:hover { color: var(--red); text-decoration: underline; }
.language { display: flex; gap: 0.3rem; align-items: center; padding: 0.2rem; border: 1px solid var(--rule); border-radius: 2rem; }
.language a { padding: 0.2rem 0.63rem; border-radius: 1.2rem; line-height: 1.6; }
.language a[aria-current] { background: var(--forest); color: var(--paper); }
.language a:hover:not([aria-current]) { background: var(--cream); }

.hero {
  display: grid;
  grid-template-columns: 0.87fr 1.13fr;
  align-items: center;
  gap: clamp(2rem, 4.4vw, 5rem);
  padding-block: clamp(3rem, 5.3vw, 5.25rem) clamp(3rem, 5vw, 4.75rem);
}
.hero-copy { padding-bottom: 1.6rem; }
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--red);
  font-size: 0.81rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}
.line { width: 1.65rem; height: 1px; background: currentColor; }
.divider { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
h1, h2, h3 { color: var(--forest); font-family: var(--serif); font-weight: 500; }
h1 { margin: 1.3rem 0 1.55rem; font-size: clamp(2.75rem, 4.55vw, 4.45rem); letter-spacing: -0.07em; line-height: 0.99; }
h1 span, h1 em { display: block; }
h1 em { color: var(--red); font-weight: 500; }
h2 { max-width: 19ch; margin-bottom: 1.55rem; font-size: clamp(2.5rem, 4.6vw, 4.7rem); letter-spacing: -0.065em; line-height: 1; }
h3 { font-size: 1.65rem; line-height: 1.15; letter-spacing: -0.045em; }
.lede { max-width: 39ch; font-size: clamp(1rem, 1.3vw, 1.19rem); line-height: 1.65; }
.byline { margin: 1.35rem 0 0; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.7rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: 0.55rem 1.2rem; border: 1px solid var(--forest); background: var(--forest); color: var(--paper); font-size: 0.9rem; font-weight: 700; text-align: center; text-decoration: none; transition: background-color 150ms, color 150ms; }
.button:hover { border-color: var(--red); background: var(--red); color: var(--paper); }
.button.outline { background: transparent; color: var(--forest); }
.button.outline:hover { border-color: var(--forest); background: var(--cream); }
.button.light { margin-top: 0.75rem; border-color: var(--paper); background: var(--paper); color: var(--forest); }
.button.light:hover { border-color: var(--cream); background: var(--cream); }
.hero-figure img { width: 100%; aspect-ratio: 1.37; object-fit: cover; object-position: 56% center; }
figcaption { padding-top: 0.85rem; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.hero-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; }
.figure-status { color: var(--red); font-weight: 700; }

.story { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(3rem, 10vw, 10rem); align-items: center; padding-block: clamp(4rem, 8vw, 8rem); }
.story img { width: 100%; aspect-ratio: 1.32; object-fit: cover; object-position: 50% 46%; }
.story-copy > p:not(.eyebrow), .founder p { max-width: 49ch; }
.editor-note { margin-top: 1.55rem; padding: 0.75rem 0 0.75rem 1rem; border-left: 2px solid var(--wood); color: var(--muted); font-size: 0.9rem; }
.ruled, .studies, .timeline, .help-list { padding: 0; list-style: none; }
.ruled { border-top: 1px solid var(--rule); }
.ruled li { min-height: 3.3rem; display: flex; align-items: center; gap: 0.8rem; padding-block: 0.75rem; border-bottom: 1px solid var(--rule); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.85rem, 2.1vw, 1.9rem); margin-top: 2.25rem; }
.compare img { width: 100%; aspect-ratio: 1.44; object-fit: cover; }
.compare figcaption { color: var(--forest); font-weight: 700; }
.photo-note { max-width: 72ch; margin: 1.2rem 0 0; color: var(--muted); font-size: 0.87rem; }

.forest h2, .forest h3 { color: var(--paper); }
.forest .eyebrow { color: #eac8a1; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 3.2rem); margin-top: 3rem; }
.principles article { border-top: 1px solid #899586; padding-top: 1.45rem; }
.principles p { margin: 0.8rem 0 0; }

.section-intro { max-width: 56ch; }
.studies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin-top: 2.15rem; }
.studies li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.2rem 0.6rem; padding: 0.95rem 0.1rem; border-bottom: 1px solid var(--rule); font-weight: 600; }
.studies li:nth-child(-n+2) { border-top: 1px solid var(--rule); }
.studies small, .contacts small { color: var(--muted); font-size: 0.83rem; font-weight: 500; }
.study-link { display: grid; gap: 0.45rem; }
.study-link img { width: 100%; max-height: 18rem; object-fit: contain; object-position: left; }
.timeline { border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline; gap: 0.75rem; padding-block: 1.05rem; border-bottom: 1px solid var(--rule); }
.step { color: var(--red); font: 1.22rem var(--serif); }
.step-title { font-weight: 600; }
.step-status { color: var(--muted); font-size: 0.83rem; }
.step-status.active { color: var(--red); font-weight: 700; }
.step-status.done { color: var(--forest); font-weight: 700; }
.help-list { display: grid; grid-template-columns: repeat(2, 1fr); align-self: start; gap: 0 1.3rem; }
.help-list li { padding-block: 0.75rem; border-top: 1px solid #899586; }
.contacts li { justify-content: space-between; font-weight: 600; }
.contacts li:target { border-color: var(--red); color: var(--red); }

.site-footer { padding-block: 2.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.65fr 1fr; align-items: start; gap: 2rem; }
.site-footer .brand, .site-footer .brand-mark { color: var(--paper); }
.site-footer .brand small { color: #eac8a1; }
.site-footer p { margin: 0.9rem 0 0; font-size: 0.88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.45rem 0.95rem; }
.site-footer nav a, summary { font-size: 0.9rem; }
summary { cursor: pointer; }

@media (max-width: 1080px) {
  .wrap { width: min(100% - 4.5rem, 81rem); }
  .hero { gap: 2rem; }
  .hero-figure img { aspect-ratio: 1.13; }
}
@media (max-width: 870px) {
  .wrap { width: calc(100% - 3rem); }
  .masthead { gap: 1.3rem; }
  .site-nav { gap: 0.95rem; }
  .hero { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 2.75rem; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2.25rem); }
  .masthead { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.8rem; min-height: 0; padding-top: 0.85rem; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; width: 100%; margin-top: 0.45rem; padding-block: 0.55rem; border-top: 1px solid var(--rule); flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 0.65rem; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 2rem; }
  .hero, .story, .split { grid-template-columns: 1fr; gap: 1.65rem; }
  .hero { padding-top: 2.15rem; }
  .hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.09em; gap: 0.4rem; }
  .hero .line { width: 1rem; }
  .byline { margin-top: 1rem; }
  .actions { margin-top: 1.25rem; }
  .hero-copy { padding-bottom: 0; }
  h1 { max-width: 14ch; font-size: clamp(2.65rem, 10.6vw, 4.45rem); }
  h1 em { max-width: 13ch; }
  h2 { max-width: 17ch; }
  .hero-figure img { aspect-ratio: 1.44; }
  .story-copy { grid-row: 1; }
  .compare { grid-template-columns: 1fr; gap: 1.35rem; }
  .compare img { aspect-ratio: 1.36; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .studies { grid-template-columns: 1fr; }
  .studies li:nth-child(2) { border-top: 0; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 1.6rem); }
  .button { padding-inline: 0.85rem; }
  .timeline li { grid-template-columns: 1.75rem 1fr; gap: 0.2rem 0.5rem; }
  .step-status { grid-column: 2; }
  .principles, .help-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
