@font-face {
    font-family: "Bricolage Grotesque";
    src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --bg: #f7f4ec;
    --ink: #1b2a22;
    --green: #1f4d3a;
    --leaf: #5fa86f;
    --soil: #17382a;
    --muted: #56655c;
    --line: #e3ddcd;
    --on-soil: #f7f4ec;
    --on-soil-muted: #b7c8bb;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 960px; margin: 0 auto; padding: 0 28px; }
  a, button, select, .btn { cursor: pointer; }
  a { color: inherit; }
  a:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--leaf);
    outline-offset: 4px;
    border-radius: 6px;
  }

  /* Header */
  header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; padding-bottom: 26px; }
  .brand { display: flex; align-items: center; gap: 12px; color: var(--green); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; white-space: nowrap; }
  .mark { height: 38px; width: auto; display: block; color: var(--green); }
  nav { display: flex; gap: 28px; }
  nav a { color: var(--muted); text-decoration: none; font-size: 1rem; }
  nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }

  /* Hero */
  .hero { padding: 96px 0 104px; }
  h1 {
    font-size: clamp(2.6rem, 7.4vw, 4.9rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--green);
    max-width: 15ch;
  }
  .lead { margin-top: 28px; font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 46ch; }
  .btn {
    display: inline-block; margin-top: 36px;
    background: var(--green); color: #fff;
    padding: 14px 26px; border-radius: 10px;
    text-decoration: none; font-weight: 600; font-size: 1.05rem;
    transition: background .15s;
  }
  .btn:hover { background: var(--soil); }

  /* What we do: a stack that grows upward */
  #about { border-top: 1px solid var(--line); padding: 84px 0 96px; scroll-margin-top: 12px; }
  .about-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
  h2 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: var(--green); }
  .about-copy p { margin-top: 20px; color: var(--muted); max-width: 42ch; }

  .stack { position: relative; display: flex; flex-direction: column; gap: 46px; padding: 0 0 0 48px; }
  .layer { position: relative; }
  .layer:not(:last-child)::after {   /* the line down to the next step */
    content: ""; position: absolute; left: -40.5px; top: calc(.42em + 18px + 7px); bottom: calc(-46px - .42em + 7px); width: 3px;
    background: var(--green); border-radius: 3px; transform-origin: top;
    animation: grow .5s ease-out both;
  }
  .layer:nth-child(1)::after { animation-delay: .4s; animation-duration: .55s; }
  .layer::before {            /* node on the trunk */
    content: ""; position: absolute; left: -48px; top: .42em; width: 18px; height: 18px;
    border-radius: 50%; background: var(--bg); border: 3px solid var(--green);
    animation: pop .45s ease-out both;
  }
  .layer:nth-child(1)::before { animation-delay: .25s; }
  .layer:last-child::before { animation-delay: .9s; background: var(--leaf); }
  .layer h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 650; color: var(--green); }
  .layer p { margin-top: 8px; color: var(--muted); max-width: 40ch; }

  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

  /* Contact / footer */
  footer { background: var(--soil); color: var(--on-soil); }
  #contact { padding-top: 72px; padding-bottom: 28px; scroll-margin-top: 0; }
  #contact p { color: var(--on-soil-muted); }
  .legal { margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(247,244,236,.18); font-size: .9rem; color: var(--on-soil-muted); padding-bottom: 34px; }

  /* Contact form */
  .contact-form { display: flex; flex-direction: column; gap: 6px; max-width: 34rem; margin-top: 28px; }
  .contact-form label { font-size: .85rem; font-weight: 600; color: var(--on-soil-muted); margin-top: 14px; }
  .contact-form select, .contact-form input, .contact-form textarea {
    font-family: inherit; font-size: 1rem; color: var(--on-soil);
    padding: 11px 13px; border-radius: 8px; border: 1px solid rgba(247,244,236,.28);
    background: rgba(247,244,236,.06);
  }
  /* Native select arrows sit flush against the border regardless of
     padding-right - padding only moves the text. Replace it with our own,
     inset from the edge, so the control actually gets breathing room. */
  .contact-form select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b7c8bb' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 11px 8px;
  }
  .contact-form select:focus-visible, .contact-form input:focus-visible, .contact-form textarea:focus-visible {
    outline: 3px solid var(--leaf); outline-offset: 2px;
  }
  .contact-form select option { color: var(--ink); }
  .contact-form textarea { resize: vertical; min-height: 110px; }
  .contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .contact-form .cf-turnstile { margin-top: 16px; }
  .contact-form button { align-self: flex-start; margin-top: 18px; }
  .contact-form button:disabled { opacity: .65; cursor: wait; }
  .form-status { margin-top: 12px; font-size: .95rem; color: var(--leaf); min-height: 1.5em; }
  .form-status.is-error { color: #e8a24a; }

  @media (min-width: 840px) {
    .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  }
  @media (max-width: 520px) {
    .hero { padding: 64px 0 72px; }
    .brand { font-size: 1.02rem; gap: 9px; }
    .mark { height: 32px; }
    nav { gap: 16px; }
    nav a { font-size: .95rem; }
    .email { font-size: clamp(1.05rem, 5.5vw, 1.6rem); text-underline-offset: 6px; letter-spacing: -0.01em; }
  }
  @media (max-width: 380px) {
    .brand { font-size: .95rem; }
    nav { gap: 12px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .layer::before, .layer::after { animation: none; }
  }
