:root {
  --base: #87a824;
  --ink: #14180d;
  --ink-soft: #272e19;
  --panel: #1b1f14;
  --panel-2: #242a1a;
  --cream: #f3f0e4;
  --cream-dim: #d4d9bf;
  --copper: #e3a04a;
  --line: rgba(20, 24, 13, 0.28);
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --bar: calc(4.25rem + env(safe-area-inset-top));
  --pad: max(20px, env(safe-area-inset-left));
  --pad-r: max(20px, env(safe-area-inset-right));
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; }

svg { height: auto; display: block; }

h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.5rem); }

h2 { font-size: clamp(2rem, 4vw, 3.35rem); }

h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }

a { color: inherit; }

p { max-width: 68ch; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.panel :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.site-nav :focus-visible {
  outline-color: var(--copper);
}

::selection { background: var(--ink); color: var(--cream); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--cream);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
}

.skip:focus { top: calc(8px + env(safe-area-inset-top)); }

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header { z-index: 40; }

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad) var(--pad-r);
}

.kicker {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.lead { font-size: 1.0625rem; line-height: 1.65; }

.muted { color: var(--ink-soft); }

.panel { background: var(--panel); color: var(--cream); }

.panel .muted,
.panel .cream-dim { color: var(--cream-dim); }

.site-header {
  position: sticky;
  top: 0;
  background: var(--panel);
  color: var(--cream);
}

.bar {
  position: relative;
  z-index: 2;
  min-height: var(--bar);
  padding-top: env(safe-area-inset-top);
  padding-inline: var(--pad) var(--pad-r);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
}

.brand {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.2;
  max-width: calc(100% - 56px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--cream);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.2s ease;
}

html.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
html.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] { color: var(--copper); }

.nav-mark { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--cream); }

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active { background: #2a3318; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-ghost:active { background: rgba(20, 24, 13, 0.08); }

.panel .btn-primary { background: var(--copper); color: var(--ink); }
.panel .btn-primary:hover,
.panel .btn-primary:focus-visible,
.panel .btn-primary:active { background: #f0b86a; }

.panel .btn-ghost { color: var(--cream); border-color: var(--cream); }
.panel .btn-ghost:hover,
.panel .btn-ghost:focus-visible,
.panel .btn-ghost:active { background: rgba(243, 240, 228, 0.08); }

.actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }

.hero {
  margin-top: calc(var(--bar) * -1);
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: var(--bar);
  display: flex;
  flex-direction: column;
}

.hero-card {
  padding: 1.25rem var(--pad) 1.5rem var(--pad);
}

.elev { display: none; margin: 0; }

.hero-card .kicker { color: var(--ink-soft); }

.hero-card h1 { margin-bottom: 0.85rem; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  margin-top: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cue-mark {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-3px);
  animation: cue 1.6s ease-in-out infinite;
}

.hero-scene { padding-inline: var(--pad); padding-bottom: 1.5rem; color: var(--ink); }

.hero-scene svg { width: min(100%, 560px); margin-inline: auto; }

.ridge { transform-origin: 360px 390px; animation: ridge 16s ease-in-out infinite alternate; will-change: transform; }
.rings { transform-origin: 430px 340px; animation: rings 22s ease-in-out infinite alternate; will-change: transform; }

section { padding-block: 3.5rem; }

.section-head { margin-bottom: 1.5rem; }

.section-head p,
.stack > p { margin-top: 0.9rem; }

.cards { display: grid; gap: 1rem; }

.card { padding: 1.15rem; background: var(--panel); color: var(--cream); }

.card h3 { margin: 0.35rem 0 0.7rem; }

.card p + p { margin-top: 0.75rem; }

.device { width: min(100%, 280px); margin: 0.4rem auto 1rem; color: var(--cream); }

.sticky-layout .side .kicker { color: var(--ink-soft); }

.scale { width: min(100%, 220px); margin-top: 1.25rem; color: var(--ink); }

.stations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.stations li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.35rem 0.85rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.stations .idx {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
}

.stations h3 { margin-bottom: 0.4rem; }

.split, .bento, .center-block, .band-inner, .legal-grid, .contact-grid {
  display: grid;
  gap: 1.25rem;
}

.reading-copy p + p,
.marks-copy p + p { margin-top: 0.85rem; }

.chat {
  background: var(--panel);
  color: var(--cream);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.bubble {
  max-width: 95%;
  padding: 0.75rem 0.85rem;
  background: var(--panel-2);
  border-left: 3px solid var(--copper);
}

.bubble.you { margin-left: auto; border-left: 0; border-right: 3px solid var(--cream-dim); }

.bubble b {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.bubble p { max-width: none; line-height: 1.5; }

.replay { margin-top: 0.8rem; }

.ledger {
  display: grid;
  gap: 1rem;
}

.plate { background: var(--panel); color: var(--cream); padding: 1.1rem; }

.plate h3 { margin-bottom: 0.8rem; }

.plate ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.plate li {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(243, 240, 228, 0.16);
}

.plate li span:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.shared {
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--ink);
  display: grid;
  gap: 0.7rem;
}

.shared svg { width: 100%; height: auto; color: var(--ink); }

.band { background: var(--panel); color: var(--cream); }

.quote {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  max-width: 16ch;
  overflow-wrap: anywhere;
}

.band .support { margin-top: 1.15rem; color: var(--cream-dim); max-width: 62ch; }

.contour-rule { width: 100%; margin-top: 1.5rem; color: var(--copper); }

.center-block { justify-items: center; text-align: center; }

.center-block p { margin-inline: auto; }

.center-block .actions { align-items: stretch; width: min(100%, 22rem); }

.voice-copy { text-align: left; width: min(100%, 68ch); }
.voice-copy p + p { margin-top: 0.85rem; }

.voice-figure, .flow {
  width: min(100%, 920px);
  margin-inline: auto;
}

.voice-figure { color: var(--cream); }
.flow { color: inherit; }

.figcap {
  margin-top: 0.7rem;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card .figcap, .panel .figcap, .band .figcap { color: var(--cream-dim); }

.facts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }

.facts li {
  padding-top: 0.65rem;
  border-top: 1px solid rgba(243, 240, 228, 0.18);
}

.facts strong { font-weight: 600; }

.bento { align-items: stretch; }

.mail { overflow-wrap: anywhere; text-underline-offset: 0.14em; }

.studio-mail {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 1.5rem 0 calc(1.4rem + env(safe-area-inset-bottom));
}

.foot {
  display: grid;
  gap: 0.8rem;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }

.foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.foot p { color: var(--cream-dim); max-width: 70ch; }

.mast { padding-top: 2rem; padding-bottom: 1rem; }

.mast-grid { display: grid; gap: 1rem; align-items: end; }

.mast h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }

.mast .effective {
  margin-top: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.mast-mark { width: min(100%, 420px); color: var(--ink); justify-self: start; }

.legal-grid { align-items: start; padding-bottom: 3.5rem; }

.toc-desk { display: none; }

.toc-phone {
  background: var(--panel);
  color: var(--cream);
  padding: 0.4rem 0.9rem;
  margin-bottom: 1rem;
}

.toc-phone summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.toc-phone a,
.toc-desk a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-top: 1px solid rgba(243, 240, 228, 0.14);
}

.toc-desk a { border-top-color: var(--line); color: var(--ink); }

.sheet {
  background: var(--panel);
  color: var(--cream);
  padding: 1.25rem 1.1rem 1.6rem;
}

.sheet h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 1.6rem 0 0.7rem;
  scroll-margin-top: calc(var(--bar) + 0.75rem);
}

.sheet h2:first-child { margin-top: 0; }

.sheet p { max-width: 68ch; margin-bottom: 0.9rem; line-height: 1.65; }

.sheet a { color: var(--copper); overflow-wrap: anywhere; text-underline-offset: 0.15em; }

.contact-card h2 { margin: 0.3rem 0 0.6rem; }

.form {
  display: grid;
  gap: 0.35rem;
  background: var(--panel);
  color: var(--cream);
  padding: 1.15rem;
}

.form label { font-weight: 600; margin-top: 0.45rem; }

.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  padding: 0.7rem 0.75rem;
  min-height: 44px;
}

.form textarea { min-height: 140px; resize: vertical; }

.form .btn { margin-top: 0.8rem; }

.form .note { color: var(--cream-dim); margin-top: 0.35rem; }

[id] { scroll-margin-top: calc(var(--bar) + 0.6rem); }

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .bubble {
  opacity: 0;
  transform: translateY(10px);
}

html.js .run .bubble {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html.js .run .bubble:nth-child(2) { transition-delay: 0.12s; }
html.js .run .bubble:nth-child(3) { transition-delay: 0.28s; }
html.js .run .bubble:nth-child(4) { transition-delay: 0.44s; }

html.nav-open,
html.nav-open body { overflow: hidden; }

@keyframes ridge {
  from { transform: translateY(0); }
  to { transform: translateY(12px); }
}

@keyframes rings {
  from { transform: translate(0, 0); }
  to { transform: translate(-8px, 8px); }
}

@keyframes cue {
  50% { transform: rotate(45deg) translateY(2px); }
}

@media (min-width: 640px) {
  .btn { width: auto; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .btn { width: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .span-2 { grid-column: 1 / -1; }
  .center-block .actions { flex-direction: row; justify-content: center; width: auto; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger .shared { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  section { padding-block: 5rem; }

  html.js .nav-toggle { display: none; }

  .hero {
    display: block;
    position: relative;
    overflow: hidden;
  }

  .hero-card {
    position: absolute;
    left: 0;
    top: var(--bar);
    bottom: 0;
    z-index: 2;
    width: min(36rem, 42%);
    margin: 0 0 0 var(--pad);
    padding: 1.2rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--panel);
    color: var(--cream);
  }

  .elev {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.25;
    color: var(--copper);
  }

  .hero-card .kicker,
  .scroll-cue { color: var(--copper); }
  .hero-card .lead,
  .scroll-cue { color: var(--cream-dim); }
  .hero-card .kicker { color: var(--copper); }
  .cue-mark { border-color: var(--copper); }
  .hero-card .btn-primary { background: var(--copper); color: var(--ink); }
  .hero-card .btn-primary:hover,
  .hero-card .btn-primary:focus-visible,
  .hero-card .btn-primary:active { background: #f0b86a; }
  .hero-card .btn-ghost { color: var(--cream); border-color: var(--cream); }
  .hero-card .btn-ghost:hover,
  .hero-card .btn-ghost:focus-visible,
  .hero-card .btn-ghost:active { background: rgba(243, 240, 228, 0.08); }

  .hero-scene {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68%;
    padding: calc(var(--bar) + 0.25rem) 0.5rem 0.5rem 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
  }

  .hero-scene { overflow: hidden; }
  .hero-scene svg { width: 100%; height: 100%; max-width: none; max-height: none; flex: 1 1 auto; min-height: 0; }

  .band-inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 2rem; }

  .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
  .mast-grid { grid-template-columns: 1.2fr 0.8fr; }
  .mast-mark { justify-self: end; width: min(100%, 460px); }
  .legal-grid { grid-template-columns: 220px 1fr; gap: 2rem; }
  .toc-phone { display: none; }
  .toc-desk {
    display: block;
    position: sticky;
    top: calc(var(--bar) + 0.8rem);
  }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 1.25rem; align-items: start; }
  .center-block .actions .btn { width: auto; }
}

@media (max-width: 899px) {
  .bar { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; padding-bottom: 0.4rem; }
  html.js .bar { flex-wrap: nowrap; }
  html.js .site-nav { flex-basis: auto; padding-bottom: 0; }
  html.js .nav-toggle { display: inline-flex; }

  html.js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--panel);
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding: calc(var(--bar) + 1rem) var(--pad) calc(2rem + env(safe-area-inset-bottom));
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
  }

  html.js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  html.js .site-nav a {
    font-family: var(--display);
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 400;
  }

  html.js .nav-mark {
    display: block;
    position: absolute;
    left: -20%;
    bottom: 4%;
    width: 130%;
    color: var(--cream);
    opacity: 0.28;
    pointer-events: none;
  }

  .site-nav:not(.is-open) a { min-height: 44px; }
}

@media (min-width: 1200px) {
  .sticky-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) 1.35fr;
    gap: 3rem;
    align-items: start;
  }

  .sticky-layout .side {
    position: sticky;
    top: calc(var(--bar) + 1rem);
  }

  .scale { width: min(100%, 200px); }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero h1 { font-size: 2rem; }
  .hero-card { padding-block: 0.6rem; }
  .hero-lede { font-size: 0.95rem; }
  .scroll-cue { margin-top: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js .reveal,
  html.js .bubble {
    opacity: 1;
    transform: none;
  }

  html { scroll-behavior: auto; }
}
