:root {
  --forest: #0f1f10;
  --lime: #c6f19d;
  --paper: #fafbf8;
  --ink: #162016;
  --body: "Libre Franklin", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --pad: clamp(20px, 5vw, 80px);
  color: var(--ink);
  background: var(--paper);
  font: 500 16px/1.6 var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
input:focus-visible { outline: 2px solid #637b45; outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(100%, 1600px); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: fixed; z-index: 2; inset: 10px auto auto 10px; padding: 12px 16px; color: var(--forest); background: var(--lime); translate: 0 -150%; }
.skip:focus { translate: 0 0; }

.header, .hero, .footer { color: var(--lime); background: var(--forest); }
.header-bar { display: flex; min-height: 90px; justify-content: space-between; align-items: center; gap: 18px; }
.wordmark { font-size: 27px; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.wordmark span { color: #f6fbec; }
.header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 48px); }
.header nav a { font-size: 14px; font-weight: 650; white-space: nowrap; }
.header nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-access > span { margin-inline-start: .25em; }

.hero { padding: clamp(56px, 7vw, 120px) 0 clamp(52px, 7vw, 118px); }
.hero h1 {
  font-size: clamp(44px, 11.8vw, 188px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: .91;
}
.title-line { display: block; overflow: hidden; padding: .045em .095em .085em 0; }
.title-line > span { display: block; transform-origin: left bottom; animation: rise .72s cubic-bezier(.17,.65,.26,1) both; }
.title-serif { padding-left: clamp(6px, 13vw, 186px); padding-bottom: .19em; font: italic 600 1.035em/.92 var(--serif); letter-spacing: -.035em; }
.title-serif > span { animation-delay: .09s; }
@keyframes rise { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes rise-in { from { opacity: .24; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-foot>* { animation: rise-in .57s .24s cubic-bezier(.17,.65,.26,1) both; }
.hero-foot>.button { animation-delay: .32s; }
.reveal-active { animation: rise-in .57s var(--reveal-delay,0ms) cubic-bezier(.17,.65,.26,1) both; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 92px);
}
.hero-foot p { max-width: 420px; color: #e1eed5; font-size: clamp(16px, 1.8vw, 23px); line-height: 1.45; }

.button {
  display: inline-flex;
  min-height: 53px;
  width: fit-content;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 11px 17px;
  border: 0;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.3;
}
.button span { font-weight: 650; font-size: 20px; }
.button-lime { color: var(--forest); background: var(--lime); }
.button-lime:hover { background: #def9c9; }
.button-dark { color: var(--paper); background: var(--forest); }
.button-dark:hover { background: #284126; }
.button-lime:focus-visible { outline-color: var(--lime); }
.button-dark:focus-visible { outline-color: var(--forest); }

.intro { padding-block: clamp(65px, 9vw, 150px); }
.intro-copy { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .75fr); gap: clamp(20px, 7vw, 120px); align-items: end; margin-bottom: clamp(30px, 5vw, 68px); }
.intro h2, .access h2, .mission h2 { max-width: 16ch; font: 760 clamp(36px, 5.7vw, 84px)/1 var(--body); letter-spacing: -.035em; }
.intro-copy p, .access p { max-width: 39ch; color: #414b3b; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 34%); }
.demo-frame { padding: clamp(10px, 2.2vw, 36px); background: #e5e8de; }
.demo-viewport {
  --demo-accent: #c6f19d;
  position: relative;
  display: grid;
  min-height: clamp(315px, 30vw, 435px);
  align-content: start;
  justify-items: start;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(22px, 4vw, 60px);
  color: #f9f6e8;
  background: #24372a;
}
.demo-viewport[data-color="cream"] { --demo-accent: #f9ebc8; }
.demo-viewport[data-color="lilac"] { --demo-accent: #d9c6f5; }
.demo-viewport[data-color="coral"] { --demo-accent: #ffa795; }
.demo-brand { font: 600 27px/.9 var(--serif); letter-spacing: -.06em; }
.demo-viewport h3 { max-width: 15ch; margin-top: clamp(12px, 2.1vw, 35px); font: 600 clamp(33px, 5vw, 77px)/.99 var(--serif); letter-spacing: -.037em; overflow-wrap: anywhere; }
.demo-button { min-height: 44px; padding: 7px 14px; border: 0; color: var(--forest); background: var(--demo-accent); font-weight: 720; }
.demo-button:focus-visible { outline-color: var(--paper); }
.demo-message { font-size: 14px; }
.demo-controls { padding: clamp(22px, 4vw, 58px); background: #eef1e8; }
.demo-controls label, .demo-controls legend, .access label { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 740; }
.demo-controls input, .access input {
  display: block;
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #a4a99b;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
}
.demo-controls fieldset { min-width: 0; margin: 26px 0 0; padding: 0; border: 0; }
.demo-colors { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { width: 44px; height: 44px; padding: 0; border: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--forest); outline-offset: 2px; }
.swatch-lime { background: #c6f19d; }
.swatch-cream { background: #f9ebc8; }
.swatch-lilac { background: #d9c6f5; }
.swatch-coral { background: #ffa795; }

.demo-logic { margin-top: 27px; }
.demo-wires { display: flex; align-items: center; width: fit-content; max-width: 100%; gap: 4px; color: #e8f1dc; white-space: nowrap; font-size: 12px; }
.demo-wires > span:not(.demo-wire) { padding: 6px 8px; background: #283727; }
.demo-wire { width: clamp(15px, 2.4vw, 39px); height: 2px; background: #42613d; }
.demo-logic[data-connected="false"] .demo-wire { background: #b0b6ab; }
.demo-logic label { display: flex; min-height: 44px; align-items: center; gap: 8px; margin: 0; color: #34442e; font-size: 13px; font-weight: 620; cursor: pointer; }
.demo-logic input { display: inline-block; width: 17px; min-height: auto; accent-color: #3e6337; }

.mission { background: #203322; color: #eaf1df; padding-block: clamp(58px, 8.6vw, 124px); }
.mission h2 { color: var(--lime); max-width: 18ch; }
.mission-statement { max-width: 43ch; font: 400 clamp(18px, 2vw, 27px)/1.36 var(--serif); margin-top: 20px; }
.workflow { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 6px; margin: clamp(30px, 5vw, 69px) 0 0; }
.workflow > div { background: #2c442b; padding: clamp(18px, 2.5vw, 32px); min-width: 0; }
.workflow > div:last-child { background: #324e31; }
.workflow dt { color: var(--lime); font-size: clamp(19px, 2.7vw, 36px); letter-spacing: -.04em; line-height: 1.05; font-weight: 650; }
.workflow dd { display:grid; align-content:space-between; gap:20px; margin: 12px 0 0; min-width:0; line-height: 1.48; font-size: clamp(16px, 1.3vw, 18px); }
.workflow-shot { display:block; aspect-ratio:16/9; align-content:center; background:#223422; overflow:hidden; }
.workflow-shot img { display:block; width:100%; height:auto; }

.access { background: var(--lime); padding-block: clamp(52px, 9vw, 124px); }
.access-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .75fr); align-items: end; gap: clamp(26px, 7vw, 120px); }
.access h2 { margin-bottom: 19px; }
.access p { color: #263722; }
.access form { width: 100%; max-width: 460px; }
.access input { border-color: #64824a; }
.access input[aria-invalid="true"] { border-color: #98251d; }
.access .button { margin-top: 13px; }
.access .login-status { margin-top: 7px; color: #90221c; font-size: 14px; font-weight: 700; }
.footer { padding-block: 27px; }

@media (max-width: 725px) {
  .header-bar { min-height: 74px; }
  .hero { padding-top: 58px; }
  .intro-copy, .access-grid { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo-controls fieldset { margin-top: 16px; }
  .workflow { grid-template-columns: 1fr; }
  .intro-copy p, .access p { max-width: 49ch; }
}

@media (max-width: 440px) {
  .nav-detail { display: none; }
  .title-serif { padding-left: 14vw; }
  .hero-foot { margin-top: 28px; padding-top: 20px; }
  .demo-viewport { min-height: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  .title-line > span, .hero-foot > *, .reveal-active { animation: none; }
}
