:root {
    --cream: #F7F3EA;
    --cream-2: #EFE9DB;
    --paper: #faf9f7;
    --ink: #14201A;
    --ink-soft: #2A3530;
    --muted: #5B665F;
    --green: #1F4435;
    --green-hover: #173329;
    --green-soft: #B9C9BE;
    --green-tint: #C9D6CC;
    --rule: #D9D2C0;
    --shadow: 0 1px 2px rgba(20,32,26,.04), 0 8px 30px rgba(20,32,26,.06);

    --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
    --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  a { color: inherit; }

  .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }

  /* ---------- Nav ---------- */
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
  }
  .nav.is-scrolled { border-bottom-color: var(--rule); background: rgba(251,248,241,.92); backdrop-filter: saturate(140%) blur(8px); }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
  }
  .brand {
    font-family: "EB Garamond", Garamond, "Times New Roman", serif;
    font-weight: 500;
    font-style: normal;
    font-size: 40px;
    line-height: 1;
    color: var(--green);
    letter-spacing: -0.4px;
    text-decoration: none;
    padding: 6px 0;
  }
  .nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
  }
  .nav-link {
    font-size: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    opacity: .85;
    transition: opacity .15s ease;
  }
  .nav-link:hover { opacity: 1; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    padding: 14px 22px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary {
    background: var(--green);
    color: #F1EEDF;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
  }
  .btn-primary:hover { background: var(--green-hover); }
  .btn-soft {
    background: var(--green-tint);
    color: var(--ink);
  }
  .btn-soft:hover { background: var(--green-soft); }
  .btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--rule);
  }
  .btn-ghost:hover { background: rgba(20,32,26,.04); }

  .nav-rule {
    height: 1px;
    background: var(--rule);
    opacity: .9;
  }

  /* ---------- Hero headline ---------- */
  .hero {
    padding: 110px 0 130px;
    text-align: center;
  }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(44px, 5.4vw, 70px);
    line-height: 1.04;
    color: var(--green);
    margin: 0 auto;
    letter-spacing: -.012em;
    max-width: 20ch;
    text-wrap: balance;
  }
  .hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 36px;
  }
  .eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #6FA084;
    box-shadow: 0 0 0 0 rgba(111,160,132,.6);
    animation: pulse 2.4s ease-out infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(111,160,132,.55); }
    70% { box-shadow: 0 0 0 10px rgba(111,160,132,0); }
    100% { box-shadow: 0 0 0 0 rgba(111,160,132,0); }
  }

  /* ---------- Imaged section with cards ---------- */
  .stage {
    --stage-image: url("images/team-boardroom.png");
    --stage-focus: center 50%;
    position: relative;
    background:
      linear-gradient(180deg, rgba(20,32,26,.18) 0%, rgba(20,32,26,.28) 60%, rgba(20,32,26,.45) 100%),
      var(--stage-image) var(--stage-focus)/cover no-repeat;
      background-blend-mode: multiply, normal;
    min-height: 720px;
    padding: 120px 0 140px;
    transition: background-image .4s ease;
  }
  .stage::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--paper) 0%, rgba(251,248,241,0) 14%, rgba(251,248,241,0) 72%, var(--paper) 100%);
    pointer-events: none;
  }
  .stage-inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .card {
    border-radius: 4px;
    padding: 48px 64px;
    box-shadow: var(--shadow);
  }
  .card-dark {
    background: var(--green);
    color: #EFE9DB;
  }
  .card-dark .lede {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
    margin: 0 auto 28px;
    color: #F1EEDF;
    max-width: 52ch;
  }
  .card-dark p {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    text-align: center;
    color: #D9D5C6;
    margin: 0 auto;
    max-width: 67ch;
  }

  .card-light {
    background: var(--paper);
    color: var(--ink);
  }
  .card-light h3 {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.35;
    text-align: center;
    margin: 0 0 24px;
    color: var(--ink);
  }
  .card-light p {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    text-align: center;
    margin: 0 auto;
    color: var(--ink-soft);
    max-width: 60ch;
  }

  /* ---------- Gap section (signal dilution) ---------- */
  .gap {
    background: var(--paper);
    padding: 80px 0 130px;
    margin-top: -1px;
  }
  .gap-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 80px;
    align-items: center;
  }
  .gap-copy h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.012em;
    color: var(--ink);
    margin: 0 0 24px;
    text-align: center;
    text-wrap: balance;
  }
  .gap-copy p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 auto 28px;
    max-width: 38ch;
    text-align: center;
  }
  .link-arrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap .2s ease;
  }
  .link-arrow:hover { gap: 16px; }
  .link-arrow svg { transition: transform .2s ease; }
  .link-arrow:hover svg { transform: translateX(2px); }

  .flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 12px;
  }
  .flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .flow-step .step-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: .005em;
    min-height: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 16px;
  }
  .cluster {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
  }
  .cluster svg { width: 100%; height: 100%; display: block; }
  .cluster .ring { fill: #EEE7D6; opacity: .85; }
  .flow-step .step-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 22ch;
  }
  .flow-arrow {
    color: #9AA29C;
    align-self: center;
    margin-top: 76px;
    flex-shrink: 0;
  }
  .flow-arrow svg { display: block; }

  @media (max-width: 980px) {
    .gap-grid { grid-template-columns: 1fr; gap: 48px; }
    .gap-copy p { max-width: none; }
    /* Keep the 4 steps + 3 arrows on one row so the arrows stay visible */
    .flow {
      grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
      gap: 12px 6px;
    }
    .cluster { max-width: 120px; }
  }
  @media (max-width: 640px) {
    .gap { padding: 72px 0 80px; }
    /* Arrows must remain visible on phones too — keep the horizontal flow,
       just tighten spacing and shrink the clusters/arrows to fit */
    .flow {
      grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
      gap: 10px 4px;
    }
    .cluster { max-width: 64px; }
    .flow-step .step-title { font-size: 12px; min-height: 28px; margin-bottom: 10px; }
    .flow-step .step-desc { font-size: 11px; line-height: 1.4; }
    .flow-arrow { margin-top: 44px; }
    .flow-arrow svg { width: 18px; height: auto; }
  }

  /* ---------- Principles strip (animated marquee) ---------- */
  .principles {
    background: #14271F;
    color: #C8CFC8;
    padding: 22px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.05);
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .marquee {
    display: flex;
    white-space: nowrap;
    animation: scroll 50s linear infinite;
    width: max-content;
  }
  .marquee span {
    margin-right: 64px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    color: #A9B7AE;
    display: inline-flex;
    align-items: center;
    gap: 64px;
  }
  .marquee span::after {
    content: "✦";
    font-style: normal;
    color: #4F6B5A;
    font-size: 14px;
  }
  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ---------- Research CTA ---------- */
  .research {
    background: var(--paper);
    padding: 130px 0 140px;
  }
  .research-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 96px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }
  .research-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin: 0 0 28px;
  }
  .research-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #6FA084;
    animation: pulse 2.4s ease-out infinite;
  }
  .research-left {
    text-align: center;
  }
  .research-heading {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(44px, 5.4vw, 70px);
    line-height: 1.04;
    color: var(--green);
    letter-spacing: -.012em;
    margin: 16px 0 28px;
    text-align: center;
    text-wrap: balance;
    max-width: none;
  }
  .research-copy {
    font-family: var(--sans);
    font-size: 20px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 auto;
    max-width: 38ch;
  }
  .research-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .research-card {
    background: #FFF;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
    font: inherit;
    color: inherit;
    width: 100%;
  }
  .research-card:hover {
    border-color: var(--green);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(20,32,26,.08);
  }
  .research-card.primary {
    background: var(--green);
    color: #F1EEDF;
    border-color: var(--green);
  }
  .research-card.primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
  .rc-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
  }
  .research-card.primary .rc-title { color: #F1EEDF; }
  .rc-desc {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
  }
  .research-card.primary .rc-desc { color: #C7D2C9; }
  .rc-arrow { transition: transform .2s ease; flex-shrink: 0; margin-left: 12px; }
  .research-card:hover .rc-arrow { transform: translateX(4px); }

  @media (max-width: 860px) {
    .research-grid { grid-template-columns: 1fr; gap: 48px; max-width: 560px; }
    .research-copy { max-width: none; }
    .research-heading { max-width: none; }
  }

  /* ---------- Reveal animation ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  }
  .reveal.in { opacity: 1; transform: none; }

  /* ---------- Footer ---------- */
  .foot {
    border-top: 1px solid var(--rule);
    padding: 36px 0 42px;
    background: var(--paper);
  }
  .foot-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 13px;
  }
  .foot .brand-small {
    font-family: "EB Garamond", Garamond, "Times New Roman", serif;
    font-weight: 500;
    font-style: normal;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.4px;
    color: var(--green);
  }
  .foot a { text-decoration: none; opacity: .8; }
  .foot a:hover { opacity: 1; }

  /* ---------- Modal ---------- */
  .modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(14,22,18,.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
  }
  .modal-backdrop.open { display: flex; animation: fade .25s ease; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  .modal {
    background: var(--paper);
    border-radius: 6px;
    width: 100%;
    max-width: 520px;
    padding: 44px 44px 36px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: pop .35s cubic-bezier(.2,.8,.2,1.05);
  }
  @keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 36px;
    line-height: 1.1;
    color: var(--green);
    margin: 0 0 10px;
  }
  .modal .sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 28px;
  }
  .modal .close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink-soft);
    display: inline-flex; align-items: center; justify-content: center;
  }
  .modal .close:hover { background: rgba(20,32,26,.06); }
  .field { margin-bottom: 16px; }
  .field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
  }
  .field input, .field select, .field textarea {
    width: 100%;
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, background .15s;
  }
  .field select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B665F' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--green);
    background: #FFF;
  }
  .field textarea { resize: vertical; min-height: 84px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
  }
  .submit-row .note {
    font-size: 12px;
    color: var(--muted);
    max-width: 60%;
  }

  .success {
    text-align: center;
    padding: 16px 0 4px;
  }
  .success .check {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--green);
    color: #F1EEDF;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
  }
  .success h2 { margin-bottom: 12px; }
  .success p { color: var(--muted); margin: 0 0 24px; max-width: 32ch; margin-inline: auto; font-family: var(--serif); font-style: italic; font-size: 18px; }

  @media (max-width: 720px) {
    .container { padding: 0 20px; }
    .nav-inner { height: 72px; }
    .brand { font-size: 32px; }
    .nav-links { gap: 16px; }
    .nav-link { font-size: 13px; }
    .brand-small { display: none; }
    .foot-email { display: none; }
    .hero { padding: 64px 0 80px; }
    .stage { padding: 56px 0 88px; min-height: 0; }
    .stage-inner { padding: 0 20px; gap: 18px; }
    .card { padding: 36px 28px; border-radius: 4px; }
    .card-dark .lede { font-size: 19px; }
    .card-dark p { font-size: 16px; }
    .research { padding: 72px 0 88px; }
    .modal-backdrop { align-items: flex-start; overflow-y: auto; padding: 16px; }
    .modal { padding: 32px 24px 24px; max-height: calc(100dvh - 32px); overflow-y: auto; }
    .field-row { grid-template-columns: 1fr; }
  }
