:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fcfcf8;
  --ink: #1c2622;
  --muted: #515b54;
  --green: #24483b;
  --green-deep: #19382d;
  --soft: #edf0e8;
  --line: #d4d9d0;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #537e68; outline-offset: 4px; }
[hidden] { display: none !important; }

.frame {
  width: min(100% - 72px, 1216px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  z-index: 5;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(8px); }

.site-header { border-bottom: 1px solid var(--line); }
.masthead, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 70px;
}
.wordmark {
  font-size: .87rem;
  font-weight: 750;
  letter-spacing: .025em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: #456451; padding-inline: 1px; }
.masthead nav, .footer-inner nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 35px);
}
nav a { font-size: .88rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-data { color: var(--green); }

.hero { padding-block: clamp(37px, 5vw, 73px) clamp(46px, 6vw, 75px); }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(26px, 5vw, 75px);
}
.hero h1, h2, .task-description h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.043em;
}
.hero h1 {
  font-size: clamp(3.15rem, 5.65vw, 5.65rem);
  line-height: .98;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-intro { padding-bottom: 2px; }
.hero-intro p {
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 21px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-size: .91rem;
  font-weight: 650;
}
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-deep); }
.button-secondary { border-color: #aab8ad; color: var(--green-deep); }
.button-secondary:hover { background: var(--soft); }

.story {
  margin-top: clamp(22px, 4vw, 52px);
  padding: 16px;
  background: var(--green-deep);
  color: #f1f3ed;
  border-radius: 9px;
}
.story-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 13px;
  padding: 0 2px 12px;
  font-size: .9rem;
}
.story-heading span, .story-copy span { color: #ccdad1; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 2vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.story-shot { display: block; color: inherit; text-decoration: none; }
.story-shot:focus-visible { outline-color: #edca86; }
.story-shot:hover .story-copy strong { color: #f0d5a0; }
.story-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #2c3c34;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.story-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.drawer-outline {
  position: absolute;
  left: 36%;
  top: 47%;
  width: 17%;
  height: 14%;
  border: 2px solid #f9d38e;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #382d18;
}
.story-copy {
  display: grid;
  gap: 3px;
  padding: 11px 2px 3px;
  line-height: 1.34;
  font-size: .91rem;
}
.story-copy strong { font-weight: 700; }
.story-copy span { font-size: .875rem; }

.demo-section {
  background: var(--soft);
  border-block: 1px solid var(--line);
  padding-block: clamp(54px, 7vw, 94px);
}
h2 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.02;
}
.section-heading p {
  max-width: 60ch;
  margin-top: 12px;
  color: var(--muted);
}
.task-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: 31px;
  border-bottom: 1px solid #b5c2b5;
}
.task-tabs button {
  display: grid;
  gap: 7px;
  padding: 5px 5px 10px;
  min-height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #3c4f44;
  background: transparent;
  cursor: pointer;
  font-size: clamp(.76rem, 1.4vw, .94rem);
  font-weight: 650;
}
.task-tabs img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 43%;
  border-radius: 3px;
  background: #27352e;
}
.task-tabs button:hover { background: #e3e9df; }
.task-tabs button[aria-selected="true"] {
  border-bottom-color: var(--green);
  color: var(--green-deep);
  background: #e0e8dc;
}

.task-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr);
  gap: clamp(25px, 6vw, 82px);
  padding: clamp(18px, 3.2vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 7px 7px;
}
.demo-figure { min-width: 0; align-self: center; }
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 13px;
}
.demo-controls label {
  display: grid;
  flex: 1 1 115px;
  gap: 4px;
  font-size: .87rem;
  font-weight: 650;
}
.demo-controls select {
  width: 100%;
  appearance: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 9px 34px 9px 10px;
  min-height: 42px;
  border: 1px solid #b5c2b5;
  border-radius: 4px;
  background:
    linear-gradient(45deg, transparent 50%, #355548 50%) right 17px center / 5px 5px no-repeat,
    linear-gradient(135deg, #355548 50%, transparent 50%) right 12px center / 5px 5px no-repeat,
    var(--white);
}
.demo-videos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}
.demo-videos[data-mode="split"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-videos figure { min-width: 0; }
.demo-videos video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #27352e;
  border-radius: 5px;
  object-fit: contain;
}
.demo-caption, .camera-label {
  margin-top: 9px;
  font-size: .85rem;
  color: var(--muted);
}
.camera-label { margin-top: 4px; }
#media-status { margin-top: 8px; color: #872b24; font-size: .9rem; }

.task-description {
  min-width: 0;
  align-self: center;
}
.task-type {
  font-size: .88rem;
  font-weight: 650;
  color: #3e6250;
}
.task-description h3 {
  font-size: clamp(2.18rem, 4.7vw, 3.85rem);
  line-height: 1.06;
  margin-top: 4px;
}
.task-description > p:not(.task-type) {
  margin-top: 12px;
  max-width: 43ch;
  color: var(--muted);
}
.memory-detail {
  background: #edf1e9;
  padding: 12px 15px;
  border-left: 3px solid #789682;
  margin-top: 19px;
}
.memory-detail dt, .chapters h4 { font-size: .91rem; font-weight: 700; }
.memory-detail dd { margin-top: 3px; font-size: .96rem; }
.chapters { margin-top: 20px; }
.chapter-list { margin-top: 5px; }
.chapter-list button {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 8px 5px;
  border: 0;
  border-top: 1px solid #dee3d9;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: .89rem;
}
.chapter-list button:last-child { border-bottom: 1px solid #dee3d9; }
.chapter-list button:hover, .chapter-list button[aria-current="true"] { background: #eaf0e8; }
.chapter-time { color: #3e6250; font-variant-numeric: tabular-nums; }
noscript p { margin-top: 15px; }

.benchmark {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 8vw, 105px);
  align-items: center;
  padding-block: clamp(54px, 8vw, 103px);
}
.benchmark-copy > p {
  max-width: 52ch;
  color: var(--muted);
  margin-top: 14px;
}
.benchmark-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.benchmark-facts > div:first-child { border-top: 1px solid var(--line); }
.benchmark-facts dt { color: var(--muted); }
.benchmark-facts dd {
  font-family: var(--serif);
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  font-size: 2.35rem;
  line-height: 1.12;
}
.protocol {
  border-top: 1px solid var(--line);
  padding-block: clamp(34px, 5.4vw, 65px);
  background: var(--white);
}
.protocol h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 58px);
  margin-top: 24px;
}
.protocol-grid div { border-top: 1px solid var(--line); padding-top: 11px; }
.protocol-grid dt { font-weight: 700; }
.protocol-grid dd { margin-top: 5px; color: var(--muted); max-width: 38ch; }

.results {
  border-top: 1px solid var(--line);
  padding-block: clamp(38px, 6vw, 80px);
}
.results h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.results-measure {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: .9rem;
}
.results-scroll {
  margin-top: 10px;
  overflow-x: auto;
}
.results-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.results-table th, .results-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.results-table th:first-child {
  position: sticky;
  left: 0;
  border-right: 1px solid var(--line);
  text-align: left;
}
.results-table thead th {
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--green-deep);
  font-weight: 700;
}
.results-table tbody th, .results-table td { background: var(--white); }
.results-table tbody th { font-weight: 650; }
.results-table td:last-child { background: var(--soft); }
.results-table strong { color: var(--green-deep); }
.results-control {
  display: block;
  font-size: .875rem;
  font-weight: 400;
  color: var(--muted);
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 76px; }

@media (max-width: 850px) {
  .frame { width: min(100% - 44px, 1216px); }
  .hero-copy { gap: 23px; }
  .hero h1 { font-size: clamp(2.7rem, 6vw, 4.3rem); }
  .task-panel { gap: 24px; }
}

@media (max-width: 650px) {
  .frame { width: calc(100% - 34px); }
  .masthead, .footer-inner { align-items: flex-start; }
  .masthead { flex-wrap: wrap; row-gap: 9px; padding-block: 15px; min-height: auto; }
  .masthead nav, .footer-inner nav { column-gap: 16px; row-gap: 8px; }
  .hero-copy, .task-panel, .benchmark, .protocol-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 43px 47px; }
  .hero h1 { max-width: 17ch; }
  .hero-copy { gap: 13px; }
  .actions, .task-tabs { margin-top: 17px; }
  .story { padding: 9px; }
  .story-heading { padding-bottom: 8px; }
  .story-copy { padding: 8px 0 4px; font-size: .875rem; }
  .story-copy span { font-size: .8125rem; }
  .drawer-outline { border-width: 1px; }
  .task-tabs { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .task-tabs button { font-size: clamp(.78rem, 3.5vw, .91rem); padding-inline: 3px; }
  .task-panel { gap: 21px; }
  .task-description { align-self: start; }
  .footer-inner { flex-direction: column; gap: 9px; padding-block: 19px; }
}

@media (max-width: 365px) {
  .frame { width: calc(100% - 26px); }
  .hero h1 { font-size: 2.55rem; }
  .button { padding-inline: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .task-tabs button, .chapter-list button { transition: background-color 140ms ease; }
}
