:root {
  --background: #f7f5ee;
  --surface: #fffdf7;
  --foreground: #17211b;
  --primary: #173f2b;
  --primary-bright: #25613f;
  --primary-foreground: #ffffff;
  --muted: #667068;
  --border: #d9ddd5;
  --maize: #d6aa45;
  --clay: #a84f33;
  --focus: #25613f;
  --page-width: 80rem;
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 4px;
}

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

.has-scroll-motion [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 600ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-scroll-motion [data-reveal="image"] {
  transform: translateY(1rem) scale(0.985);
}

.has-scroll-motion [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.has-scroll-motion [data-reveal="product"] .product-window {
  transform: scale(0.965);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.has-scroll-motion [data-reveal="product"].is-visible .product-window {
  transform: none;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 5.1vw, 5.3rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  background: var(--primary);
  color: white;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 0 max(2rem, calc((100% - var(--page-width)) / 2 + 2rem));
  isolation: isolate;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgb(247 245 238 / 84%);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  content: '';
  opacity: 0;
  transition: opacity 220ms ease;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header:focus-within {
  transform: none;
}

@supports not ((-webkit-backdrop-filter: blur(7px)) or (backdrop-filter: blur(7px))) {
  .site-header.is-scrolled::before {
    background: rgb(247 245 238 / 97%);
  }
}

.wordmark {
  display: block;
  flex-shrink: 0;
  width: 10.5rem;
}

.wordmark img {
  height: auto;
}

.desktop-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--primary-bright);
}

.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  min-height: 47rem;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 3.5rem 4.5rem 2rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 36rem;
  margin-bottom: 2rem;
  color: #39443d;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--primary);
  border-radius: 0.3rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

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

.button-primary:hover {
  background: #0e3321;
}

.button-secondary:hover {
  background: #e8eee8;
}

.hero-statement {
  max-width: 28rem;
  color: #735c40;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--maize);
}

.hero-field {
  height: 100%;
  object-fit: cover;
}

.product-window {
  overflow: hidden;
  border: 1px solid #b8c0b8;
  border-radius: 0.55rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 3.75rem rgb(16 36 24 / 24%);
}

.hero-product {
  position: absolute;
  right: 2rem;
  bottom: 3.5rem;
  width: min(45rem, calc(100% - 3rem));
}

.window-bar {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
}

.window-bar span:last-child {
  opacity: 0.72;
  font-weight: 500;
}

.editor-layout {
  display: grid;
  min-height: 20rem;
  grid-template-columns: 7.25rem minmax(9rem, 0.82fr) minmax(12rem, 1.18fr);
  color: #28332c;
  font-size: 0.7rem;
}

.editor-nav,
.editor-outline,
.editor-content {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
}

.editor-nav {
  background: #eef2ed;
}

.editor-outline strong,
.editor-content strong {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.nav-item,
.editor-outline span {
  padding: 0.45rem;
  border-radius: 0.25rem;
}

.nav-item.active,
.selected {
  background: #dce9df;
  color: #154229;
  font-weight: 600;
}

.editor-content small,
.mini-editor small,
.learner-course small {
  color: #6c776f;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.toolbar,
.search-preview {
  padding: 0.45rem 0.55rem;
  border: 1px solid #d8ded8;
  border-radius: 0.25rem;
  color: #68726a;
}

.editor-content img {
  height: 6.8rem;
  margin-top: auto;
  border-radius: 0.25rem;
  object-fit: cover;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.75fr);
  width: min(100%, var(--page-width));
  margin: 0 auto;
  background: var(--surface);
}

.section-split > img {
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.section-copy {
  display: flex;
  align-items: center;
  padding: 5.5rem 3.5rem;
}

.section-copy > div {
  max-width: 45rem;
}

.section-copy h2 {
  max-width: 17ch;
}

.section-copy p:not(.eyebrow) {
  max-width: 42rem;
  color: #4f5a52;
}

.dark-section {
  background: var(--primary);
  color: white;
}

.process {
  padding: 5.5rem max(2rem, calc((100% - var(--page-width)) / 2 + 2rem));
}

.section-heading {
  max-width: var(--page-width);
  margin: 0 auto 3rem;
}

.section-heading h2 {
  max-width: 23ch;
}

.section-heading > p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.light-heading .eyebrow {
  color: #edc96e;
}

.light-heading h2 {
  max-width: 29ch;
}

.process-list {
  display: grid;
  max-width: var(--page-width);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.process-list li {
  padding: 0 1.5rem;
}

.process-list li:first-child {
  padding-left: 0;
}

.process-list span {
  display: block;
  margin-bottom: 1rem;
  color: #edc96e;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}

.process-list h3 {
  min-height: 2.6rem;
}

.process-list p {
  margin: 0;
  color: #d7e0d9;
  font-size: 0.92rem;
}

.product-section,
.roles {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-example > h3 {
  margin: 1.35rem 0 0.55rem;
}

.product-example > p {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
}

.compact-window {
  height: 27rem;
  box-shadow: 0 1rem 2.5rem rgb(18 45 29 / 10%);
}

.mini-editor {
  display: grid;
  min-height: 22rem;
  grid-template-columns: 0.72fr 1fr 1.2fr;
  font-size: 0.62rem;
}

.mini-editor > * {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
}

.mini-editor aside {
  background: #eef2ed;
}

.mini-editor strong {
  font-size: 0.72rem;
}

.mini-editor p {
  color: #5e6961;
}

.distribution-preview,
.learner-course {
  padding: 1.25rem;
}

.distribution-preview > strong,
.learner-course > strong {
  display: block;
  margin-bottom: 1rem;
}

.search-preview {
  margin-bottom: 1rem;
  font-size: 0.7rem;
}

.table-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr 4rem;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e5e8e3;
  font-size: 0.67rem;
}

.table-heading {
  color: #6d766f;
  font-weight: 600;
}

.checkbox {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid #9fa9a1;
  border-radius: 0.15rem;
}

.checkbox.checked {
  border-color: var(--primary-bright);
  background: var(--primary-bright);
  box-shadow: inset 0 0 0 2px white;
}

.preview-button {
  width: fit-content;
  margin-top: 1.25rem;
  margin-left: auto;
  padding: 0.45rem 0.75rem;
  border-radius: 0.25rem;
  background: var(--primary);
  color: white;
  font-size: 0.67rem;
  font-weight: 600;
}

.learner-preview {
  max-width: 23rem;
  margin: 0 auto;
}

.learner-course small,
.learner-course strong {
  display: block;
}

.progress-track {
  height: 0.35rem;
  margin: 1rem 0 0.4rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e7e1;
}

.progress-track span {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--primary-bright);
}

.learner-course p {
  color: #6a746c;
  font-size: 0.68rem;
}

.learner-course img {
  height: 10rem;
  margin: 1rem 0;
  border-radius: 0.35rem;
  object-fit: cover;
}

.learner-course h4 {
  margin: 0;
  font-size: 0.9rem;
}

.roles {
  max-width: none;
  padding: 6rem max(2rem, calc((100% - var(--page-width)) / 2 + 2rem));
  background: #000000;
  color: #ffffff;
}

.roles .eyebrow {
  color: #ffffff;
}

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

.role-list article {
  padding: 0.5rem 2.5rem;
}

.role-list article:first-child {
  padding-left: 0;
}

.role-list p {
  margin: 0;
  color: #ffffff;
}

.responsible {
  grid-template-columns: minmax(20rem, 0.86fr) minmax(0, 1.14fr);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  align-items: stretch;
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--surface);
}

.about > div,
.about > p {
  align-self: center;
  margin: 0;
  padding: 3.5rem 2rem;
}

.about > p {
  color: #4e5951;
}

.about h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.about img {
  height: 100%;
  min-height: 21rem;
  object-fit: cover;
}

.contact {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 4rem;
  align-items: center;
  padding: 4.5rem max(2rem, calc((100% - var(--page-width)) / 2 + 2rem));
  background: var(--clay);
  color: white;
}

.contact .eyebrow {
  color: #f4d4bd;
}

.contact h2 {
  max-width: 20ch;
  margin-bottom: 0;
}

.contact-email {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 2.5rem;
}

.contact-email span {
  color: #f4d4bd;
  font-size: 0.85rem;
}

.contact-email a {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem max(2rem, calc((100% - var(--page-width)) / 2 + 2rem));
  background: #0e3020;
  color: white;
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
  color: #b7c6bb;
}

.site-footer nav {
  justify-content: flex-end;
  gap: 1.25rem;
  font-size: 0.75rem;
}

@media (max-width: 68rem) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 5rem 2rem 3.5rem;
  }

  .hero-visual {
    min-height: 37rem;
  }

  .section-split,
  .responsible {
    grid-template-columns: 1fr;
  }

  .section-split > img {
    min-height: 23rem;
  }

  .responsible > img {
    order: 2;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .compact-window {
    height: auto;
  }

  .product-example {
    max-width: 48rem;
  }

  .role-list,
  .about {
    grid-template-columns: 1fr;
  }

  .role-list article,
  .role-list article:first-child {
    padding: 1.75rem 0;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 45rem) {
  .site-header {
    min-height: 4.5rem;
    padding: 0 1.25rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    list-style: none;
  }

  .mobile-nav summary svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }

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

  .mobile-nav nav {
    position: absolute;
    top: 2.5rem;
    right: 0;
    display: grid;
    width: 12.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    background: var(--surface);
    box-shadow: 0 1rem 2rem rgb(23 33 27 / 14%);
  }

  .mobile-nav nav a {
    padding: 0.65rem;
    font-weight: 500;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-copy {
    padding: 4rem 1.25rem 3rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 31rem;
  }

  .hero-product {
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .editor-layout {
    min-height: 17rem;
    grid-template-columns: 5.4rem 1fr;
  }

  .editor-content {
    display: none;
  }

  .editor-nav,
  .editor-outline {
    padding: 0.7rem;
  }

  .section-copy,
  .product-section,
  .roles {
    padding: 4rem 1.25rem;
  }

  .process {
    padding: 4rem 1.25rem;
  }

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

  .process-list li,
  .process-list li:first-child {
    padding: 1.5rem 0;
  }

  .process-list h3 {
    min-height: auto;
  }

  .mini-editor {
    grid-template-columns: 0.78fr 1.22fr;
  }

  .mini-editor > div:last-child {
    display: none;
  }

  .compact-window {
    min-height: 22rem;
  }

  .learner-preview {
    max-width: none;
  }

  .about > div,
  .about > p {
    padding: 3rem 1.25rem;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 1.25rem;
  }

  .contact-email {
    padding-top: 1.5rem;
    padding-left: 0;
  }

  .site-footer {
    padding: 2.5rem 1.25rem;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .has-scroll-motion [data-reveal],
  .has-scroll-motion [data-reveal="image"],
  .has-scroll-motion [data-reveal="product"] .product-window {
    opacity: 1;
    transform: none;
  }
}
