:root {
  --paper: #f7f7f1;
  --ink: #172619;
  --line: #bdc6b9;
  --lime: #d7fa79;
  --deep: #192e22;
  --edge: clamp(22px, 5vw, 86px);
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
:focus-visible { outline: 3px solid #477c25; outline-offset: 4px; }

.site-header, footer, .instrument-head, .limits {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  height: 80px;
  margin: 0 var(--edge);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 29px;
  font-weight: 740;
  letter-spacing: -1.9px;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 0% 100%, var(--ink) 0 3px, transparent 4px 7px);
}

nav { display: flex; gap: clamp(16px, 3vw, 46px); }
nav a { font-size: 14px; padding: 14px 0; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.skip { position: absolute; top: -80px; }
.skip:focus { top: 6px; background: white; padding: 15px; z-index: 2; }

.hero, .how, .listen, .project {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(36px, 5vw, 86px);
  padding: clamp(52px, 8vw, 120px) var(--edge);
}

.hero {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: calc(100svh - 80px);
  padding-block: clamp(40px, 6vw, 90px);
}

.mono {
  font: 500 12px/1.5 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6b9238;
}

h1, h2 {
  font-size: clamp(54px, 6.9vw, 122px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.078em;
}

h2 { font-size: clamp(49px, 5.9vw, 100px); }
em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.07em; }
.lede {
  margin: 25px 0;
  max-width: 44ch;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: #465047;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 28px;
  padding: 12px 21px;
  font: 600 15px/1.3 Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  background: var(--ink);
  color: white;
  transition: transform .2s;
}

.button:hover { transform: translateY(-2px); text-decoration: none; }
.button:active { transform: translateY(0); }
.button span { color: var(--lime); font-size: 20px; }

.gallery {
  min-width: 0;
  border-block: 1px solid var(--line);
}

.gallery-heading, .gallery-arrows, .gallery-pickers {
  display: flex;
  align-items: center;
}

.gallery-heading {
  justify-content: space-between;
  gap: 12px;
  min-height: 63px;
  padding-block: 8px;
}

.gallery-heading h2 { font-size: 12px; line-height: 1.5; letter-spacing: .08em; }
.gallery-arrows { gap: 8px; }
.gallery-pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-block: 8px; }
.gallery [hidden] { display: none; }

.gallery button {
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 8px;
  background: transparent;
  color: var(--ink);
  font: 600 13px/1.15 Arial, sans-serif;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.gallery-arrows button {
  min-width: 44px;
  border-radius: 50%;
  font-size: 19px;
}

.gallery button:hover { background: #e0e8d9; }
.gallery button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }

.gallery-stage {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--deep);
}

.gallery-slide { position: relative; height: 100%; }
.gallery-slide img, .gallery-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.depth-reference {
  position: absolute;
  top: 6%;
  right: 4%;
  width: clamp(63px, 21%, 112px);
  overflow: hidden;
  border: 1px solid #dce4d4;
  background: var(--deep);
  color: var(--paper);
}

.depth-reference img { height: auto; }
.depth-reference figcaption {
  padding: 5px 3px;
  text-align: center;
  font-size: 11px;
  line-height: 1.15;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.how {
  border-top: 1px solid var(--line);
  background: #edf0e6;
}

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li {
  position: relative;
  padding: 24px 0 24px 32px;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  position: absolute;
  top: 29px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #497035;
  border-radius: 50%;
  content: "";
}

.steps h3 { margin-bottom: 6px; font-size: clamp(19px, 2vw, 26px); letter-spacing: -.03em; }
.steps p, .project-details p { font-size: 17px; line-height: 1.55; color: #465047; }

.listen { background: var(--deep); color: var(--paper); }
.listen .lede { color: #d6dfd4; }
.listen :focus-visible { outline-color: var(--lime); }
.instrument {
  padding: clamp(22px, 3vw, 45px);
  border: 1px solid #627969;
  background: #213b2c;
}

.instrument-head { min-height: 50px; padding-bottom: 14px; border-bottom: 1px solid #647969; }
#reading { color: var(--lime); font: 500 23px/1 "Courier New", monospace; }
.wave {
  height: 80px;
  margin: 28px 0 14px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 2px, transparent 2px var(--gap, 23px));
  clip-path: polygon(0 47%, 15% 31%, 28% 43%, 42% 0, 57% 42%, 70% 22%, 86% 42%, 100% 47%,
    100% 53%, 86% 58%, 70% 78%, 57% 58%, 42% 100%, 28% 57%, 15% 69%, 0 53%);
}

.wave[data-mode="hold"] { opacity: .48; }
.wave[data-mode="lost"] { opacity: .35; clip-path: inset(calc(50% - 1px) 0); background: #d5c7b1; }
.instrument input { width: 100%; height: 44px; margin: 0; accent-color: var(--lime); cursor: pointer; }
.instrument input:disabled { opacity: .45; cursor: default; }
.limits { color: #c4d0c2; }
.demo-status, .demo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.demo-status { margin-top: 22px; }
.demo-actions { margin-top: 20px; }
.mode { padding: 4px 8px; border: 1px solid currentColor; color: var(--lime); }
.mode[data-mode="hold"] { color: #f7d899; }
.mode[data-mode="lost"] { color: #ffbaa7; }
.demo-actions .button { justify-content: center; min-width: 112px; background: var(--lime); color: var(--ink); }
.demo-actions .secondary { border-color: #9cad9f; background: transparent; color: var(--paper); }

.project-details {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 52ch;
}

.project-details .button { margin-top: 8px; }
footer {
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 var(--edge);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
footer strong { font-size: 20px; }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: enter .48s ease-out; }
  .gallery-slide { animation: media-in .22s ease-out; }
}

@keyframes media-in {
  from { opacity: .65; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .gallery button { transition: none; }
  .button:hover { transform: none; }
}

@media (max-width: 760px) {
  .site-header { height: 65px; }
  .brand { font-size: 24px; gap: 8px; }
  .mark { width: 23px; height: 23px; }
  nav { gap: 16px; }
  nav a { font-size: 13px; }
  .hero, .how, .listen, .project { grid-template-columns: 1fr; gap: 30px; }
  .hero { min-height: calc(100svh - 65px); align-content: center; }
  .kicker { margin-bottom: 18px; }
  h1 { font-size: clamp(50px, 12vw, 90px); }
  h2 { font-size: clamp(43px, 10vw, 70px); }
  .lede { margin: 20px 0 0; }
  .intro .lede { margin-bottom: 23px; }
  .demo-actions .button { flex: 1 0 auto; }
}
