/* ============ tokens ============ */
#site {
  --ground: #ffffff;
  --tint: #edf3ef;
  --field: #0c3b2a;
  --field-deep: #082a1e;
  --ink: #14201b;
  --ink-soft: #46584f;
  --gold: #f2b441;
  --gold-deep: #d9971f;
  --on-field: #e9f2ec;
  --on-field-soft: #a9c8b7;
  --line: #dae4de;
  --input-line: #84928b;
  --focus: #0c3b2a;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(22px, 5vw, 34px);
}

/* ============ base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img, svg { max-width: 100%; }

#site {
  background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
#site .wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
:where(#site) h1, :where(#site) h2, :where(#site) h3 {
  font-family: var(--display); font-weight: 700; line-height: 1.08;
  letter-spacing: -.025em; text-wrap: balance; margin: 0 0 .45em;
}
:where(#site) h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
:where(#site) h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
:where(#site) h3 { font-size: 1.24rem; letter-spacing: -.015em; }
:where(#site) p { margin: 0 0 1em; max-width: 68ch; }
:where(#site) p:last-child { margin-bottom: 0; }
:where(#site) a { color: inherit; }
#site section { padding: clamp(64px, 9vw, 116px) 0; }
:where(#site) [id] { scroll-margin-top: calc(var(--nav-h, 62px) + 12px); }

#site a:focus-visible, #site button:focus-visible, #site input:focus-visible,
#site textarea:focus-visible, #site select:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px;
}
/* Gold is invisible on white (1.85:1) and near-invisible on the tint; on the
   spruce fields the spruce ring would vanish instead. Swap per surface. */
.panel, .band, .footer { --focus: #f2b441; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--field); color: var(--on-field); padding: 12px 20px; }
.skip:focus { left: 0; }

/* ============ buttons ============ */
.btn {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-family: var(--body); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 0; border-radius: 8px; cursor: pointer;
  padding: 12px 22px; letter-spacing: -.005em;
  transition: background .18s ease, transform .18s cubic-bezier(.16,1,.3,1);
}
.btn:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 1.08rem; padding: 16px 30px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
/* `#site .wrap` is an id selector and out-specifies `.nav .wrap`, so its
   `padding: 0 var(--pad)` shorthand silently zeroes any vertical padding set
   there. Re-assert it at matching specificity or the bar collapses. */
#site .nav .wrap { padding-top: 12px; padding-bottom: 12px; }
.brand {
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.03em; text-decoration: none; margin-right: auto; color: var(--ink);
}
.nav .btn { padding: 12px 20px; font-size: .95rem; }
.navlink { font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.navlink:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-links { display: contents; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 9px; cursor: pointer; }
.i-close { display: none; }

@media (max-width: 860px) {
  .nav-links {
    display: none; order: 3; flex-basis: 100%; flex-direction: column;
    gap: 4px; padding: 10px 0 14px; margin-top: 10px; border-top: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav.open .i-menu { display: none; }
  .nav.open .i-close { display: block; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav .btn { order: 1; }
  .navlink { font-size: 1.05rem; padding: 11px 0; }
}

/* ============ hero ============ */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(34px, 5vw, 68px); align-items: center; }
.hero h1 { max-width: 15ch; }
.lede { font-size: clamp(1.14rem, 1.7vw, 1.34rem); color: var(--ink-soft); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 34px; }
/* The three commitments. Checks are drawn, one stroke weight, in the field
   colour — gold stays reserved for actions. */
.promises {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.promises li {
  font-size: .99rem; font-weight: 600; color: var(--ink-soft); padding-left: 25px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none' stroke='%230c3b2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.2l3.4 3.4L14 5'/%3E%3C/svg%3E") no-repeat left .18em / 17px 17px;
}

/* the range, stated once, in the first viewport */
.panel {
  background: var(--field); color: var(--on-field);
  border-radius: 5px; padding: clamp(28px, 3.4vw, 44px);
}
.panel-title {
  font-size: 1.06rem; font-family: var(--body); font-weight: 700;
  letter-spacing: .02em; color: var(--on-field-soft); margin: 0 0 4px;
}
.handles { list-style: none; margin: 0; padding: 0; }
.handles li { padding: 17px 0; border-top: 1px solid rgba(169,200,183,.26); }
.handles li:first-child { border-top: 0; }
.h-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; }
.h-note { display: block; font-size: .97rem; color: var(--on-field-soft); margin-top: 2px; }

/* ============ how it works ============ */
.band { background: var(--field); color: var(--on-field); }
.band h2 { margin-bottom: .8em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(26px, 3.5vw, 46px); grid-template-columns: repeat(3, 1fr); }
.steps > li { border-top: 2px solid rgba(169, 200, 183, .38); padding-top: 20px; }
.steps h3 { margin-bottom: .45em; }
.steps p:last-child { color: var(--on-field-soft); font-size: 1rem; }

/* ============ about ============ */
.tint { background: var(--tint); }
.about { max-width: 760px; }
.about .big { font-size: clamp(1.2rem, 2vw, 1.42rem); color: var(--ink); line-height: 1.45; }
.about p:last-child { color: var(--ink-soft); }

/* ============ contact ============ */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(34px, 5vw, 72px); align-items: start; }
.contact-say p { color: var(--ink-soft); }
.or-mail { margin-top: 1.2em; }
.or-mail a { font-weight: 600; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: .98rem; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--input-line); border-radius: 9px; background: #fff; width: 100%;
}
.contact-form select {
  appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2346584f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #66736d; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--field); }
.contact-form input, .contact-form select { min-height: 48px; }
.contact-form input.invalid, .contact-form textarea.invalid { border-color: #a32b1c; background: #fdf6f4; }
.contact-form .btn { align-self: flex-start; }
.field-error { color: #a32b1c; font-size: .9rem; font-weight: 600; }
.form-status { font-size: 1rem; font-weight: 600; margin: 0; }
.form-status.ok { color: #0c3b2a; }
.form-status.error { color: #a32b1c; }

/* ============ footer ============ */
.footer { background: var(--field-deep); color: var(--on-field); padding: 54px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; margin: 0; }
.footer-mail { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer-meta { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid rgba(169,200,183,.22); font-size: .93rem; color: var(--on-field-soft); }

/* ============ the one authored moment ============ */
/* Rows are visible by default; JS opts in, so no-JS and reduced-motion keep the
   finished state. The range arriving line by line is the page's only entrance. */
@media (prefers-reduced-motion: no-preference) {
  .panel.anim .handles li { animation: rise .62s cubic-bezier(.16, 1, .3, 1) backwards; }
  .panel.anim .handles li:nth-child(1) { animation-delay: .04s; }
  .panel.anim .handles li:nth-child(2) { animation-delay: .11s; }
  .panel.anim .handles li:nth-child(3) { animation-delay: .18s; }
  .panel.anim .handles li:nth-child(4) { animation-delay: .25s; }
  .panel.anim .handles li:nth-child(5) { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(11px); } }

/* ============ responsive ============ */
@media (max-width: 940px) {
  .hero-grid, .contact { grid-template-columns: 1fr; }
  .hero h1, .lede { max-width: 22ch; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  #site { font-size: 17px; }
  .field-row { grid-template-columns: 1fr; }
  .hero h1, .lede { max-width: none; }
  .btn-lg { width: 100%; text-align: center; }
}
