@layer reset, base, components, sections, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, ul, ol { margin: 0; }
  img { display: block; max-width: 100%; height: auto; }
  button, input, textarea { font: inherit; color: inherit; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    --ink: #33231e;
    --brown: #4b2925;
    --brown-2: #6f3e34;
    --rust: #a44932;
    --rust-deep: #7f3524;
    --gold: #dda84d;
    --gold-soft: #f0dcae;
    --sky: #d9e9ec;
    --sky-2: #eef5f6;
    --cream: #f6efd9;
    --paper: #fffaf0;
    --white: #fffdf8;
    --muted: #6b5f57;
    --line: #d9ccb5;
    --line-soft: #eadfc9;
    --line-sky: #b6cfd3;
    --on-dark: #f0e3cf;
    --on-rust: #fbeae2;
    --radius: 20px;
    --radius-sm: 12px;
    --max: 1180px;
    --gutter: clamp(20px, 4.2vw, 40px);
    --pad-y: clamp(58px, 7.4vw, 104px);
    --anchor: 92px;

    /* Headline face: Iowan Old Style ships on macOS/iOS; Georgia is the universal fallback. */
    --display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
    --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }
  body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.62;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .32;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Ccircle cx='8' cy='11' r='.7' fill='%236f3e34' fill-opacity='.14'/%3E%3Ccircle cx='58' cy='43' r='.6' fill='%236f3e34' fill-opacity='.11'/%3E%3C/svg%3E");
  }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; }
  h1 { max-width: 15ch; font-size: clamp(2.85rem, 5vw, 4.5rem); letter-spacing: -.03em; line-height: 1.02; }
  h2 { max-width: 20ch; font-size: clamp(1.95rem, 3.1vw, 2.9rem); letter-spacing: -.022em; }
  h3 { font-size: clamp(1.2rem, 1.5vw, 1.44rem); letter-spacing: -.012em; }
  h4 { font-family: var(--sans); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
  p { text-wrap: pretty; }

  section { scroll-margin-top: var(--anchor); }
  :focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 3px; }
  .band-rust :focus-visible { outline-color: var(--gold); }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 11px 15px; transform: translateY(-180%); background: var(--white); border: 2px solid var(--brown); border-radius: 8px; font-weight: 800; }
  .skip-link:focus { transform: none; }

  .wrap { width: 100%; max-width: var(--max); margin-inline: auto; }
  .section { max-width: var(--max); margin-inline: auto; padding: var(--pad-y) var(--gutter); }
  .band { padding: var(--pad-y) var(--gutter); }

  .eyebrow { display: inline-block; color: var(--rust); font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
  .eyebrow.light { color: #f7e6c2; }
  .plate-label { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

  .section-intro { max-width: 780px; margin-bottom: clamp(30px, 4vw, 46px); }
  .section-intro h2 { margin: 14px 0 0; }
  .section-intro > p:last-of-type:not(.eyebrow) { max-width: 62ch; margin-top: 18px; color: var(--muted); font-size: 1.06rem; }
  .section-intro.compact { margin-bottom: clamp(26px, 3vw, 34px); }
}

@layer components {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    max-width: var(--max);
    margin-inline: auto;
    padding: 8px var(--gutter);
  }
  .brand { display: flex; flex: 0 1 auto; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
  .brand img { width: 58px; aspect-ratio: 4 / 3; object-fit: contain; }
  .brand-copy { display: grid; gap: 1px; line-height: 1.18; }
  .brand-copy strong { color: var(--brown); font-family: var(--display); font-size: 1.22rem; letter-spacing: -.015em; }
  .brand-copy small { color: var(--muted); font-size: .655rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

  .desktop-nav { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
  .desktop-nav a { padding: 9px 11px; border-radius: 8px; text-decoration: none; font-size: .82rem; font-weight: 700; white-space: nowrap; }
  .desktop-nav a:not(.nav-cta):hover { color: var(--rust); background: var(--cream); }
  .nav-cta { margin-left: 8px; padding: 10px 17px; color: var(--white); background: var(--brown); border-radius: 999px; }
  .nav-cta:hover { background: var(--rust); }

  .menu-button { display: none; align-items: center; gap: 9px; min-height: 44px; padding: 8px 15px; color: var(--brown); background: var(--white); border: 2px solid var(--brown); border-radius: 999px; font-size: .84rem; font-weight: 800; cursor: pointer; }
  .menu-bars { display: block; width: 15px; height: 2px; background: currentcolor; box-shadow: 0 -5px 0 currentcolor, 0 5px 0 currentcolor; }
  .menu-button[aria-expanded="true"] { color: var(--white); background: var(--brown); }
  .mobile-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; padding: 10px var(--gutter) 18px; background: var(--paper); border-bottom: 2px solid var(--brown); box-shadow: 0 22px 40px rgb(75 41 37 / 14%); }
  .mobile-nav a { padding: 14px 4px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav a:hover { color: var(--rust); }
  .mobile-cta { margin-top: 14px; padding: 15px 18px !important; color: var(--white); background: var(--brown); border: 0 !important; border-radius: 10px; text-align: center; }
  .mobile-cta:hover { color: var(--white); background: var(--rust); }

  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 14px 24px;
    color: var(--white);
    background: var(--rust);
    border: 2px solid var(--rust-deep);
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--brown);
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  }
  .button span { transition: transform .18s ease; }
  .button:hover { background: var(--rust-deep); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brown); }
  .button:hover span { transform: translateX(3px); }
  .button:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--brown); }
  .button-light { color: var(--brown); background: var(--gold-soft); border-color: var(--brown); box-shadow: 4px 4px 0 var(--brown); }
  .button-light:hover { background: var(--gold); }
  .text-link { color: var(--brown-2); font-weight: 800; font-size: .95rem; text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .text-link:hover { color: var(--rust); }

}

@layer sections {
  /* ---------- Hero ---------- */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
    max-width: var(--max);
    margin-inline: auto;
    padding: clamp(46px, 6vw, 82px) var(--gutter) clamp(56px, 6.5vw, 90px);
  }
  .hero-copy .eyebrow { margin-bottom: 20px; }
  .hero h1 em { display: inline-block; color: var(--rust); font-style: italic; font-weight: inherit; }
  .lede { max-width: 46ch; margin-top: 24px; color: var(--muted); font-size: clamp(1.08rem, 1.5vw, 1.24rem); }
  .hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 32px; }
  .reassurance { position: relative; max-width: 52ch; margin-top: 26px; padding-left: 16px; color: var(--muted); font-size: .89rem; border-left: 2px solid var(--gold); }

  .capacity-visual {
    background: var(--white);
    border: 2px solid var(--brown);
    border-radius: var(--radius);
    box-shadow: 10px 10px 0 var(--gold);
    overflow: hidden;
  }
  .capacity-head { display: grid; gap: 7px; padding: 18px 22px 19px; color: var(--on-dark); background: var(--brown); }
  .capacity-head .plate-label { color: var(--gold); }
  .capacity-head strong { max-width: 32ch; font-family: var(--display); font-size: 1.22rem; font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
  .capacity-scene { position: relative; display: grid; grid-template-columns: 1fr 82px 1fr; align-items: center; min-height: 270px; padding: 26px 20px 20px; background: linear-gradient(135deg, var(--white), var(--cream)); }
  .capacity-scene::before { content: ""; position: absolute; top: 50%; left: 27%; right: 27%; border-top: 2px dashed var(--gold); }
  .input-cloud { position: relative; min-height: 190px; }
  .input-cloud small { position: absolute; bottom: 0; left: 4px; color: var(--muted); font-size: .69rem; line-height: 1.35; }
  .thought { position: absolute; z-index: 2; padding: 5px 8px; color: var(--brown); background: var(--white); border: 1px solid var(--brown); border-radius: 999px; box-shadow: 2px 2px 0 var(--gold-soft); font-size: .63rem; font-weight: 800; white-space: nowrap; animation: thought-drift 4s ease-in-out infinite; }
  .thought-call { top: 0; left: 5%; transform: rotate(-5deg); }
  .thought-note { top: 48px; right: 0; transform: rotate(5deg); animation-delay: -.8s; }
  .thought-photo { top: 93px; left: 2%; transform: rotate(-3deg); animation-delay: -1.6s; }
  .thought-remember { top: 130px; right: -2px; transform: rotate(3deg); animation-delay: -2.4s; }
  .person-mark { position: absolute; top: 54px; left: 43%; width: 37px; height: 37px; background: var(--gold); border: 2px solid var(--brown); border-radius: 50%; }
  .person-mark::before { content: ""; position: absolute; top: 35px; left: -12px; width: 57px; height: 45px; background: var(--sky); border: 2px solid var(--brown); border-radius: 40px 40px 7px 7px; }
  .person-mark span::before, .person-mark span::after { content: ""; position: absolute; z-index: 2; top: 49px; width: 26px; border-top: 2px solid var(--brown); }
  .person-mark span::before { right: 28px; transform: rotate(25deg); }
  .person-mark span::after { left: 28px; transform: rotate(-25deg); }
  .system-bridge { position: relative; z-index: 3; display: grid; place-items: center; align-content: center; width: 82px; height: 82px; color: var(--white); background: var(--rust); border: 2px solid var(--brown); border-radius: 50%; box-shadow: 4px 4px 0 var(--gold); text-align: center; }
  .system-bridge strong { font-family: var(--display); font-size: .82rem; line-height: .92; }
  .system-bridge small { position: absolute; top: calc(100% + 10px); width: 150px; color: var(--brown-2); font-size: .55rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .bridge-pulse { position: absolute; inset: -8px; border: 2px solid rgb(164 73 50 / 25%); border-radius: inherit; animation: bridge-pulse 2.4s ease-out infinite; }
  .clear-output { position: relative; z-index: 2; display: grid; gap: 6px; justify-self: end; width: 132px; padding: 16px; background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius-sm); box-shadow: 5px 5px 0 var(--sky); transform: rotate(2deg); }
  .output-kicker { color: var(--rust); font-size: .6rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
  .clear-output strong { color: var(--brown); font-family: var(--display); font-size: 1.2rem; line-height: 1.04; }
  .output-check { margin-top: 4px; padding-top: 7px; color: var(--rust-deep); border-top: 1px solid var(--line); font-size: .67rem; font-weight: 900; text-transform: uppercase; }
  .capacity-caption { padding: 14px 20px 17px; color: var(--muted); background: var(--white); border-top: 1px solid var(--line); font-size: .78rem; text-align: center; }
  .capacity-caption span { color: var(--rust); font-weight: 900; }

  /* Hero sketch shares the approved workflow figures and pen palette. */
  .capacity-sketch { padding: 20px 12px 18px; background: #fffdf6; }
  .capacity-sketch > img { display: block; width: 100%; height: auto; }
  .capacity-sketch-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding-inline: 4px; color: #302e2a; text-align: center; font-size: .81rem; font-weight: 700; line-height: 1.3; }
  .capacity-sketch-steps span:last-child { color: #ad573e; }
  .capacity-sketch > p { max-width: 37ch; margin: 0 auto; padding-inline: 10px; text-align: center; font-size: .84rem; color: var(--muted); line-height: 1.5; }

  /* ---------- Illustrated roofing workflow ---------- */
  .roof-story { background: var(--sky); border-block: 1px solid var(--line-sky); }
  .story-intro { max-width: 850px; }
  .workflow-switcher { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
  .workflow-switcher > span { margin-right: 5px; color: var(--brown-2); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
  .workflow-tab { width: 172px; min-height: 44px; padding: 8px 12px; color: var(--brown); background: var(--white); border: 1px solid var(--brown); border-radius: 999px; font-size: .78rem; font-weight: 800; cursor: pointer; transition: color .15s ease, background-color .15s ease, transform .15s ease; }
  .workflow-tab:hover { transform: translateY(-1px); }
  .workflow-tab.is-active { color: var(--white); background: var(--rust); border-color: var(--rust-deep); box-shadow: 2px 2px 0 var(--brown); }
  .workflow-slide[hidden] { display: none; }
  .roof-board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--gold); overflow: hidden; }
  .roof-board::before { content: ""; position: absolute; top: 48px; left: 7%; right: 7%; border-top: 2px dashed var(--gold); }
  .story-panel { position: relative; z-index: 1; min-width: 0; padding: 26px 20px 24px; }
  .story-panel + .story-panel { border-left: 1px solid var(--line); }
  .story-number { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; color: var(--white); background: var(--rust); border: 2px solid var(--brown); border-radius: 50%; box-shadow: 3px 3px 0 var(--gold); font-family: var(--display); font-size: 1rem; font-weight: 700; }
  .story-panel h3 { min-height: 2.5em; margin: 18px 0 9px; color: var(--brown); font-size: 1.23rem; }
  .story-panel > p { color: var(--muted); font-size: .86rem; line-height: 1.5; }
  /* Exact approved scene assets; viewBox includes roof headroom and lower labels. */
  .workflow-illustration { max-width: 360px; margin-inline: auto; display: grid; place-items: center; width: 100%; aspect-ratio: 292 / 282; background: #fffdf6; border-radius: var(--radius-sm); }
  .workflow-illustration img { width: 100%; height: auto; aspect-ratio: 292 / 282; object-fit: contain; }
  .story-footnote { max-width: 650px; margin: 28px auto 0; color: var(--brown-2); font-family: var(--display); font-size: 1.18rem; text-align: center; }
  @keyframes thought-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
  @keyframes bridge-pulse { 0% { opacity: .65; transform: scale(.92); } 75%, 100% { opacity: 0; transform: scale(1.23); } }

  /* ---------- Offer ladder ---------- */
  .band-sky { background: var(--sky); border-block: 1px solid var(--line-sky); }
  .offer-ladder { background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius); overflow: hidden; }
  .offer-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 0 clamp(24px, 3vw, 40px);
    padding: clamp(26px, 3vw, 34px) clamp(22px, 2.6vw, 34px);
  }
  .offer-card + .offer-card { border-top: 1px solid var(--line); }
  .offer-card.featured { background: var(--sky-2); box-shadow: inset 5px 0 0 var(--rust); }
  .offer-index { grid-row: 1 / span 2; display: grid; align-content: start; gap: 12px; }
  .offer-number { display: grid; place-items: center; width: 46px; height: 46px; color: var(--brown-2); background: transparent; border: 2px solid var(--line); border-radius: 50%; font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
  .featured .offer-number { color: var(--white); background: var(--rust); border-color: var(--rust); }
  .tier-flag { max-width: 20ch; color: var(--brown-2); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; }
  .featured .tier-flag { color: var(--rust); }
  .offer-body h3 { color: var(--brown); font-size: clamp(1.4rem, 1.9vw, 1.8rem); }
  .featured .offer-body h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); }
  .offer-summary { max-width: 42ch; margin-top: 10px; color: var(--muted); font-size: .99rem; }
  .offer-fit h4 { color: var(--rust); }
  .offer-card ul { display: grid; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; color: var(--muted); font-size: .94rem; }
  .offer-card li { position: relative; padding-left: 21px; }
  .offer-card li::before { content: ""; position: absolute; top: .62em; left: 2px; width: 10px; height: 2px; background: var(--rust); }
  .scope-note { grid-column: 2 / -1; max-width: 88ch; margin-top: 20px; padding-top: 15px; border-top: 1px dashed var(--line); font-size: .87rem; color: var(--ink); }
  .scope-note strong { color: var(--brown); }
  .section-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: clamp(24px, 3vw, 34px); }
  .section-cta p { color: var(--brown-2); font-size: .9rem; font-weight: 600; }

  /* ---------- Method (homepage) ---------- */
  .method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; padding-top: 28px; border-top: 1px solid var(--line); }
  .method-grid h3 { color: var(--brown); font-size: clamp(1.1rem, 1.4vw, 1.28rem); margin-bottom: 10px; }
  .method-grid p { max-width: 46ch; color: var(--muted); font-size: .95rem; }

  /* ---------- Founder (about) ---------- */
  .band-cream { background: var(--cream); border-block: 1px solid var(--line); }
  .founder-wrap { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(34px, 5vw, 72px); align-items: start; }
  .founder-stamp { display: grid; place-items: center; padding: 20px; background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--gold); }
  .founder-stamp img { width: 100%; max-width: 240px; aspect-ratio: 4 / 3; object-fit: contain; }
  .founder-copy h1, .founder-copy h2 { max-width: 22ch; margin: 14px 0 22px; font-size: clamp(1.95rem, 3.1vw, 2.9rem); letter-spacing: -.022em; }
  .founder-copy > p:not(.eyebrow):not(.founder-pull):not(.founder-sign) { max-width: 66ch; margin-top: 15px; color: var(--muted); font-size: 1.03rem; }
  .founder-pull { max-width: 34ch; margin: 26px 0; padding-left: 22px; color: var(--brown); font-family: var(--display); font-size: clamp(1.3rem, 2.1vw, 1.72rem); line-height: 1.25; border-left: 3px solid var(--rust); }
  .founder-sign { display: grid; gap: 2px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
  .founder-sign strong { color: var(--brown); font-family: var(--display); font-size: 1.2rem; }
  .founder-sign span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

  /* ---------- Principles (about) ---------- */
  .principles-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
  .principles-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
  .principles-list h3 { color: var(--brown); font-size: clamp(1.1rem, 1.4vw, 1.3rem); margin-bottom: 8px; }
  .principles-list p { max-width: 62ch; color: var(--muted); font-size: .97rem; }

  /* ---------- Contact ---------- */
  .band-rust { color: var(--white); background: var(--rust); }
  .contact-wrap { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(34px, 4.5vw, 64px); align-items: start; }
  .contact-copy { position: sticky; top: calc(var(--anchor) + 6px); }
  .contact-copy h1, .contact-copy h2 { max-width: 16ch; margin-top: 12px; color: var(--white); font-size: clamp(1.95rem, 3.1vw, 2.9rem); letter-spacing: -.022em; }
  .contact-copy > p:last-child { max-width: 44ch; margin-top: 22px; color: var(--on-rust); font-size: 1.04rem; }

  .lead-form {
    position: relative;
    display: grid;
    gap: 18px;
    padding: clamp(22px, 2.6vw, 32px);
    color: var(--ink);
    background: var(--white);
    border: 2px solid var(--brown);
    border-radius: var(--radius);
    box-shadow: 8px 8px 0 #2e1916;
  }
  .form-head { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 2px solid var(--brown); }
  .form-head .plate-label { color: var(--rust); }
  .form-guidance { color: var(--muted); font-size: .82rem; }
  .field-set { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
  .field-set legend { padding: 0; margin-bottom: 12px; color: var(--brown); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .field-set.choices { gap: 10px; padding: 16px 18px; background: var(--sky-2); border: 1px solid var(--line-sky); border-radius: var(--radius-sm); }
  .field-set.choices legend { padding: 0 8px; margin-bottom: 8px; }
  .lead-form label:not(.choice) { display: grid; gap: 6px; font-size: .84rem; font-weight: 800; }
  .lead-form label > span small { color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: none; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .lead-form input:not([type="radio"]), .lead-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .97rem;
    font-weight: 400;
  }
  .lead-form input::placeholder { color: #7d7067; }
  .lead-form textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
  .lead-form input:not([type="radio"]):hover, .lead-form textarea:hover { border-color: var(--brown-2); }
  .lead-form input:focus-visible, .lead-form textarea:focus-visible { outline: 3px solid var(--rust); outline-offset: 1px; border-color: var(--brown); background: var(--white); }
  .choice { display: flex; align-items: flex-start; gap: 11px; min-height: 30px; padding: 4px 0; color: var(--ink); font-size: .95rem; font-weight: 500; cursor: pointer; }
  .choice input { width: 19px; height: 19px; margin: 4px 0 0; flex: 0 0 auto; accent-color: var(--rust); }
  .field-block { margin-top: 2px; }
  .form-note { padding-left: 14px; color: var(--muted); font-size: .8rem; line-height: 1.5; border-left: 3px solid var(--gold); }
  .form-status:not(:empty) { padding: 12px 14px; color: var(--brown); background: var(--cream); border-radius: var(--radius-sm); font-size: .84rem; font-weight: 600; line-height: 1.5; }
  .honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ---------- CTA band (homepage close, about close) ---------- */
  .cta-band-inner { max-width: 640px; margin-inline: auto; display: grid; gap: 14px; justify-items: center; text-align: center; }
  .cta-band-inner h2 { max-width: 20ch; color: var(--white); }
  .cta-band-inner p { max-width: 46ch; color: var(--on-rust); font-size: 1.05rem; }
  .cta-band-inner .button { margin-top: 10px; }

  /* ---------- Thanks ---------- */
  .thanks-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; }
  .thanks-card { width: min(720px, 100%); padding: clamp(28px, 6vw, 56px); background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--gold); }
  .thanks-card img { width: 130px; margin-bottom: 26px; }
  .thanks-card h1 { max-width: 18ch; margin: 12px 0 22px; font-family: var(--display); font-size: clamp(2.2rem, 6.5vw, 3.4rem); }
  .thanks-card > p:not(.eyebrow) { max-width: 62ch; margin-top: 14px; color: var(--muted); }
  .thanks-card p.notice { max-width: 60ch; margin-top: 22px; padding-left: 14px; border-left: 3px solid var(--gold); font-size: .92rem; }
  .thanks-card .button { margin-top: 30px; }

  /* ---------- Footer ---------- */
  footer { padding: clamp(34px, 4vw, 48px) var(--gutter); border-top: 1px solid var(--line); }
  .footer-wrap { display: grid; grid-template-columns: auto 1fr; gap: 22px 40px; align-items: center; color: var(--muted); font-size: .78rem; }
  .footer-brand { display: flex; align-items: center; gap: 10px; color: var(--brown); text-decoration: none; }
  .footer-brand img { width: 52px; aspect-ratio: 4 / 3; object-fit: contain; }
  .footer-brand span { display: grid; gap: 1px; }
  .footer-brand strong { font-family: var(--display); font-size: 1.02rem; }
  .footer-brand small { font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
  .footer-nav a { padding: 6px 0; font-weight: 700; text-decoration: none; }
  .footer-nav a:hover { color: var(--rust); }
  .footer-line { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--brown-2); font-weight: 700; }
  .footer-legal { grid-column: 1 / -1; margin-top: -12px; }
}

@layer responsive {
  @media (min-width: 981px) {
    .mobile-nav { display: none !important; }
  }

  @media (max-width: 1160px) {
    .brand-copy small { display: none; }
    .desktop-nav a { padding: 9px 9px; font-size: .8rem; }
  }

  @media (max-width: 1080px) {
    .offer-card { grid-template-columns: 130px minmax(0, 1fr) minmax(0, .95fr); }
    .contact-copy { position: static; }
  }

  @media (max-width: 980px) {
    :root { --anchor: 84px; }
    .desktop-nav { display: none; }
    .menu-button { display: inline-flex; }
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy { max-width: 720px; }
    .capacity-visual { max-width: 620px; }
    .roof-board { grid-template-columns: 1fr 1fr; }
    .story-panel:nth-child(odd) { border-left: 0; }
    .story-panel:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .roof-board::before { display: none; }
    .offer-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(20px, 3vw, 32px); }
    .offer-index { grid-row: auto; grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
    .offer-number { width: 40px; height: 40px; font-size: .95rem; }
    .tier-flag { max-width: none; }
    .offer-body { grid-column: 1; }
    .offer-fit { grid-column: 2; }
    .offer-summary { max-width: none; }
    .scope-note { grid-column: 1 / -1; }
    .founder-wrap, .contact-wrap { grid-template-columns: 1fr; }
    .method-grid { grid-template-columns: 1fr; gap: 24px; }
    .founder-stamp { max-width: 300px; }
    .founder-copy h1, .founder-copy h2, .contact-copy h1, .contact-copy h2 { max-width: 24ch; }
    .footer-wrap { grid-template-columns: 1fr; }
    .footer-nav { justify-content: flex-start; }
  }

  @media (max-width: 640px) {
    :root { --anchor: 76px; --pad-y: 52px; }
    h1 { font-size: clamp(2.35rem, 10.5vw, 3.1rem); }
    h2 { max-width: none; font-size: clamp(1.72rem, 7.6vw, 2.3rem); }
    .header-inner { min-height: 64px; padding: 6px var(--gutter); }
    .brand img { width: 46px; }
    .brand-copy strong { font-size: 1.04rem; }
    .brand-copy small { font-size: .56rem; letter-spacing: .04em; }
    .menu-word { display: none; }
    .menu-button { min-width: 46px; padding: 8px 14px; }

    .hero { padding-top: 34px; gap: 34px; }
    .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; }
    .hero-actions .button { width: 100%; }
    .hero-actions .text-link { align-self: flex-start; }
    .lede { margin-top: 20px; }
    .capacity-visual { box-shadow: 6px 6px 0 var(--gold); }
    .capacity-head { padding: 15px 18px 16px; }
    .capacity-scene { grid-template-columns: 1fr 64px 1fr; min-height: 220px; padding: 15px 12px; }
    .system-bridge { width: 64px; height: 64px; }
    .system-bridge strong { font-size: .7rem; }
    .system-bridge small { width: 120px; font-size: .48rem; }
    .thought { font-size: .55rem; padding: 4px 6px; }
    .person-mark { left: 38%; }
    .clear-output { width: 112px; padding: 12px; }
    .clear-output strong { font-size: 1.02rem; }

    .section-intro > p:last-of-type:not(.eyebrow) { font-size: 1rem; }

    .roof-board { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--gold); }
    .roof-story { padding-block: 36px; }
    .story-intro { margin-bottom: 24px; }
    .workflow-switcher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0 0 18px; }
    .workflow-switcher > span { grid-column: 1 / -1; }
    .workflow-tab { width: 100%; }
    .story-panel { padding: 18px; border-left: 0 !important; }
    .story-number { margin-bottom: 12px; }
    .story-panel + .story-panel { border-top: 1px solid var(--line); }
    .story-panel h3 { min-height: 0; margin-top: 14px; }
    .story-footnote { margin-top: 20px; }

    .offer-card { grid-template-columns: 1fr; padding: 24px 20px; }
    .offer-body, .offer-fit, .offer-index, .scope-note { grid-column: 1; }
    .offer-fit { margin-top: 20px; }
    .offer-summary { font-size: .95rem; }
    .section-cta { align-items: stretch; flex-direction: column; gap: 14px; }
    .section-cta .button { width: 100%; }

    .founder-stamp { max-width: 220px; padding: 16px; box-shadow: 6px 6px 0 var(--gold); }
    .founder-pull { max-width: none; margin: 22px 0; font-size: 1.28rem; }

    .principles-list li { padding: 18px 0; }

    .lead-form { padding: 22px 18px; box-shadow: 5px 5px 0 #2e1916; }
    .form-row { grid-template-columns: 1fr; gap: 12px; }
    .lead-form .button { width: 100%; }
    .field-set.choices { padding: 14px 15px; }
    .footer-wrap { gap: 18px; }

    .cta-band-inner .button { width: 100%; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  }
}

/* ---------- Apps ---------- */
.app-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; padding: clamp(22px, 3vw, 36px); background: var(--white); border: 2px solid var(--brown); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--gold); }
.app-icon { width: 140px; height: 140px; border-radius: 30px; border: 1px solid var(--line); }
.app-body h3 { color: var(--brown); font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.app-meta { margin-top: 6px; color: var(--rust); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.app-body > p:not(.app-meta) { max-width: 62ch; margin-top: 14px; color: var(--muted); }
.app-points { margin: 16px 0 24px; padding-left: 1.2em; color: var(--muted); }
.app-points li { margin-top: 6px; }
@media (max-width: 640px) {
  .app-card { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--gold); }
  .app-icon { width: 96px; height: 96px; border-radius: 22px; }
  .app-body .button { width: 100%; }
}
