/* Next Gen Housing: design tokens + components.
   Palette: drafting paper, north-woods spruce, copper pencil. Light only. */
:root {
  --paper: #f6f2ea;
  --paper-2: #efe8dc;
  --paper-3: #e5dbcb;
  --card: #fbf9f5;
  --white: #ffffff;
  --ink: #1b221f;
  --ink-2: #38423d;
  --muted: #545e58;
  --spruce: #1e3a31;
  --spruce-2: #285041;
  --spruce-3: #13261f;
  --copper: #b5652f;
  --copper-ink: #8c4a1e;
  --copper-soft: #e8c9ad;
  --on-dark: #f2ede3;
  --on-dark-2: #c9cdc2;
  --line: rgba(27, 34, 31, 0.13);
  --line-2: rgba(27, 34, 31, 0.24);
  --line-dark: rgba(242, 237, 227, 0.16);
  --r-s: 10px;
  --r: 16px;
  --r-l: 26px;
  --shadow-s: 0 1px 2px rgba(27, 34, 31, 0.06), 0 4px 14px -6px rgba(27, 34, 31, 0.14);
  --shadow: 0 1px 2px rgba(27, 34, 31, 0.05), 0 18px 40px -18px rgba(27, 34, 31, 0.28);
  --shadow-l: 0 2px 6px rgba(19, 38, 31, 0.08), 0 40px 80px -30px rgba(19, 38, 31, 0.45);
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--spruce); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--copper-ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--copper-soft); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.55rem + 4.4vw, 4.9rem); line-height: 1.0; letter-spacing: -0.028em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.55rem); line-height: 1.2; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--copper-ink); font-weight: 400; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
strong, b { font-weight: 700; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-ink);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: 0.7; }
.lede { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 38em; }

/* buttons */
.btn {
  --bg: var(--spruce);
  --fg: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  border: 1.5px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  font: 700 1rem/1.2 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 24px -12px rgba(19, 38, 31, 0.6);
}
.btn:hover { --bg: var(--spruce-2); color: var(--fg); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 16px 30px -14px rgba(19, 38, 31, 0.7); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --bg: rgba(27, 34, 31, 0.04); --fg: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--light { --bg: var(--on-dark); --fg: var(--spruce-3); border-color: var(--on-dark); }
.btn--light:hover { --bg: #fff; --fg: var(--spruce-3); }
.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; color: var(--spruce); text-decoration: none; border-bottom: 1.5px solid var(--copper); padding-bottom: 2px; }
.link-arrow::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(27, 34, 31, 0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1; }
.brand-name em { font-style: italic; font-weight: 400; color: var(--copper-ink); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px var(--gutter) 22px;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
}
.site-nav.is-open li a { display: block; padding: 14px 2px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
.site-nav.is-open .nav-cta { margin-top: 18px; width: 100%; min-height: 52px; font-size: 1rem; }
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: 26px; position: static; background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: 24px; }
  .site-nav.is-open li a { display: inline; padding: 0; font-size: inherit; border: 0; }
  .site-nav li a { font-size: 0.97rem; position: relative; }
  .site-nav li a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--copper); border-radius: 2px; }
  .site-nav.is-open .nav-cta { margin: 0; width: auto; min-height: 44px; }
}

/* sections */
main { display: block; }
.section { padding-block: clamp(64px, 5rem + 3vw, 128px); }
.section--tight { padding-block: clamp(48px, 3rem + 2vw, 88px); }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 2rem + 1.5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

/* hero */
.hero { padding-block: clamp(36px, 2rem + 3vw, 96px) clamp(56px, 3rem + 4vw, 120px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 64px; } }
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600; font-size: 0.97rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.55em; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px rgba(181, 101, 47, 0.14); }
.page-hero { padding-block: clamp(36px, 2rem + 2.5vw, 84px) clamp(32px, 2rem + 2vw, 64px); }
.page-hero .lede { margin-bottom: 0; }
.page-hero .actions { margin-top: 1.8rem; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.crumbs { font-size: 0.92rem; margin: 0 0 1.4rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }

/* drafting sheet */
.sheet {
  margin: 0;
  position: relative;
  border-radius: var(--r-l);
  background-color: var(--spruce);
  background-image:
    radial-gradient(120% 90% at 85% 0%, rgba(232, 201, 173, 0.13), transparent 55%),
    linear-gradient(rgba(242, 237, 227, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 227, 0.065) 1px, transparent 1px),
    linear-gradient(rgba(242, 237, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 227, 0.03) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px, 12px 12px, 12px 12px;
  background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  color: var(--on-dark);
  padding: clamp(18px, 1rem + 1.5vw, 34px);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  isolation: isolate;
}
.sheet::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-dark); border-radius: calc(var(--r-l) - 8px); pointer-events: none; }
.hero-sheet { animation: rise 1s var(--ease) 0.1s both; }
.sketch { width: 100%; height: auto; overflow: visible; }
.sketch .ln { fill: none; stroke: var(--on-dark); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.sketch .th { stroke-width: 1.05; opacity: 0.8; }
.sketch .dim { fill: none; stroke: var(--copper-soft); stroke-width: 1; }
.sketch .dash { fill: none; stroke: var(--on-dark-2); stroke-width: 1.1; stroke-dasharray: 5 5; opacity: 0.75; }
.sketch .tree { fill: none; stroke: #9fb8a8; stroke-width: 1.4; stroke-linejoin: round; }
.sketch text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; fill: var(--copper-soft); text-transform: uppercase; }
.sketch .soft { fill: var(--on-dark-2); }
.sketch .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.9s var(--ease) forwards; }
.sketch .d2 { animation-delay: 0.35s; }
.sketch .d3 { animation-delay: 0.7s; }
.sketch .d4 { animation-delay: 1.05s; }
.sketch .fade { opacity: 0; animation: fadein 1s ease 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.sketch--ink .ln { stroke: var(--ink-2); }
.sketch--ink .dim { stroke: var(--copper); }
.sketch--ink .dash { stroke: var(--muted); }
.sketch--ink .tree { stroke: #6f8e7c; }
.sketch--ink text { fill: var(--copper-ink); }
.sketch--ink .soft { fill: var(--muted); }

.titleblock {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.titleblock > span { padding: 9px 12px; border-top: 1px solid var(--line-dark); }
.titleblock > span:first-child { border-top: 0; }
.titleblock b { display: block; font-weight: 600; color: var(--copper-soft); font-size: 0.68rem; letter-spacing: 0.16em; margin-bottom: 2px; }
@media (min-width: 560px) {
  .titleblock { grid-template-columns: 1fr 0.8fr 1.4fr; }
  .titleblock > span { border-top: 0; border-left: 1px solid var(--line-dark); }
  .titleblock > span:first-child { border-left: 0; }
}

/* feature plan ribbon */
.plan-ribbon {
  display: grid;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(24px, 1.2rem + 2vw, 44px);
  box-shadow: var(--shadow);
}
@media (min-width: 980px) { .plan-ribbon { grid-template-columns: 0.9fr 1.3fr; align-items: center; gap: 48px; } }
.plan-ribbon h2 { margin-bottom: 0.35em; }
.plan-ribbon p { color: var(--ink-2); }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 640px) { .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.specs > div { background: var(--card); padding: 18px 18px 16px; }
.specs dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.specs dd { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 1.2rem + 1vw, 2.05rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.specs--plain > div { background: var(--white); }

/* bento */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); }
  .tile--ranch { grid-column: span 4; grid-row: span 2; }
  .tile--adu, .tile--barndo { grid-column: span 2; }
  .tile--custom { grid-column: span 6; }
}
@media (min-width: 760px) and (max-width: 1039px) { .tile--ranch, .tile--custom { grid-column: span 2; } }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 1rem + 1.5vw, 34px);
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-s);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.tile h3 { margin: 0; }
.tile p { color: var(--ink-2); margin: 0; }
.tile .link-arrow { margin-top: auto; align-self: flex-start; }
.tile-art { margin: 6px 0 14px; }
.tile--ranch { background: linear-gradient(180deg, var(--card), var(--white)); }
.tile--ranch .tile-art { flex: 1; display: flex; align-items: center; }
.tile--custom { background: var(--spruce); color: var(--on-dark); border-color: var(--spruce); flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.tile--custom h3 { color: var(--on-dark); }
.tile--custom p { color: var(--on-dark-2); max-width: 44em; }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: rgba(30, 58, 49, 0.08); color: var(--spruce); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--soon { background: rgba(181, 101, 47, 0.12); color: var(--copper-ink); }
.art-note { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* feature grid */
.features { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 24px; }
.feature h3 { font-size: 1.28rem; margin-bottom: 0.45em; }
.feature p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.feature-ico { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--spruce); display: grid; place-items: center; }
.feature-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--on-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* split lists */
.split { display: grid; gap: 22px; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; gap: 26px; } }
.panel { border-radius: var(--r-l); padding: clamp(24px, 1.2rem + 1.5vw, 40px); background: var(--card); border: 1px solid var(--line); }
.panel h3 { margin-bottom: 1rem; }
.panel--dark { background: var(--spruce); border-color: var(--spruce); color: var(--on-dark); }
.panel--dark h3 { color: var(--on-dark); }
.panel--dark p { color: var(--on-dark-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.checks li { position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--spruce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.5' fill='none' stroke='%23f2ede3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.panel--dark .checks li { border-color: var(--line-dark); }
.panel--dark .checks li::before { background-color: var(--copper); }
.roles { list-style: none; padding: 0; margin: 0; }
.roles li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-2); }
.roles li:last-child { border-bottom: 0; }
.roles b { display: block; color: var(--on-dark); font-weight: 700; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 24px; }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--copper-ink); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.steps p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.timeline > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 0 0 34px; position: relative; }
.timeline > li::before { content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--spruce); color: var(--on-dark); font-family: var(--serif); font-size: 1.5rem; }
.timeline > li::after { content: ""; position: absolute; left: 27px; top: 62px; bottom: 6px; width: 1.5px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 5px, transparent 5px 10px); }
.timeline > li:last-child::after { display: none; }
.timeline h3 { margin: 12px 0 0.35em; }
.timeline p { color: var(--ink-2); margin: 0 0 0.6em; }

/* who-does-what table */
.roles-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 1rem; }
.roles-table th, .roles-table td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
.roles-table thead th { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); font-weight: 600; }
.roles-table tbody th { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; width: 30%; }
.roles-table tr:last-child th, .roles-table tr:last-child td { border-bottom: 0; }
@media (max-width: 680px) {
  .roles-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .roles-table, .roles-table tbody, .roles-table tr, .roles-table th, .roles-table td { display: block; width: 100%; }
  .roles-table tbody th { padding-bottom: 4px; border-bottom: 0; width: 100%; }
  .roles-table td { padding-top: 0; }
}

/* sheets list */
.sheets { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 0; }
.sheet-card { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.sheet-card svg { width: 64px; height: 46px; flex-shrink: 0; fill: none; stroke: var(--spruce); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sheet-card .acc { stroke: var(--copper); }
.sheet-card .dsh { stroke-dasharray: 3 3; }
.sheet-card b { display: block; font-weight: 700; line-height: 1.3; }
.sheet-card span { font-size: 0.92rem; color: var(--muted); line-height: 1.4; display: block; }

/* callouts */
.callout { border-left: 3px solid var(--copper); background: var(--card); border-radius: 0 var(--r) var(--r) 0; padding: 20px 22px; margin: 0; color: var(--ink-2); }
.callout p:last-child { margin: 0; }
.callout strong { color: var(--ink); }

/* plan card (catalog) */
.plan-card { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 960px) { .plan-card { grid-template-columns: 1.1fr 1fr; } }
.plan-card .sheet { border-radius: 0; box-shadow: none; }
.plan-card .sheet::after { border-radius: 14px; }
.plan-card-body { padding: clamp(24px, 1.2rem + 1.5vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.plan-card-body h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin: 0; }
.plan-card-body p { margin: 0; color: var(--ink-2); }

.soon { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .soon { grid-template-columns: 1fr 1fr; gap: 48px; } }
.soon-art { background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-l); padding: 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0.5rem 1rem; border: 1.5px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.97rem; background: var(--card); }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips small { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper-ink); }

/* forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 1rem + 2vw, 40px); box-shadow: var(--shadow); }
.form-card h2, .form-card h3 { margin-bottom: 0.3em; }
.form-card > p { color: var(--ink-2); }
.form { display: grid; gap: 18px; margin-top: 22px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.97rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field .hint { font-size: 0.9rem; color: var(--muted); margin: 0; }
.input, .form select, .form textarea {
  width: 100%;
  font: 500 1.0625rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 13px 15px;
  min-height: 52px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form textarea { min-height: 132px; resize: vertical; }
.form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2338423d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.input:hover, .form select:hover, .form textarea:hover { border-color: rgba(27, 34, 31, 0.4); }
.input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--spruce); background-color: var(--white); box-shadow: 0 0 0 4px rgba(30, 58, 49, 0.16); }
.input::placeholder, .form textarea::placeholder { color: #7a827d; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { font-size: 0.9rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
@media (max-width: 639px) { .form .btn { width: 100%; justify-self: stretch; } }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.inline-form .input { flex: 1 1 240px; }
.inline-form .btn { flex: 0 0 auto; }
@media (max-width: 520px) { .inline-form .btn { flex: 1 1 100%; } }

/* dark band */
.band {
  background-color: var(--spruce-3);
  background-image: radial-gradient(80% 120% at 100% 0%, rgba(232, 201, 173, 0.12), transparent 60%), radial-gradient(70% 100% at 0% 100%, rgba(40, 80, 65, 0.7), transparent 60%);
  color: var(--on-dark);
  border-radius: var(--r-l);
  padding: clamp(28px, 1.5rem + 3vw, 64px);
  display: grid;
  gap: 32px;
  overflow: hidden;
}
@media (min-width: 960px) { .band { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; } }
.band h2 { color: var(--on-dark); }
.band p { color: var(--on-dark-2); }
.band .eyebrow { color: var(--copper-soft); }
.band .input, .band .form select { background: rgba(242, 237, 227, 0.07); border-color: rgba(242, 237, 227, 0.3); color: var(--on-dark); }
.band .input::placeholder { color: #a9b0a7; }
.band .input:focus, .band .form select:focus { background: rgba(242, 237, 227, 0.12); border-color: var(--copper-soft); box-shadow: 0 0 0 4px rgba(232, 201, 173, 0.18); }
.band label { color: var(--on-dark); }
.band .form-fine { color: var(--on-dark-2); }
.band .form-fine a { color: var(--on-dark); }
.band-cta { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--r); border: 1px solid var(--line-dark); background: rgba(242, 237, 227, 0.04); }
.band-cta h3 { color: var(--on-dark); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.3s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-s); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px; font-family: var(--serif); font-size: clamp(1.12rem, 1.05rem + 0.3vw, 1.3rem); font-weight: 500; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' fill='none' stroke='%231e3a31' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--r); }
.faq .answer { padding: 0 22px 22px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }

/* prose */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: 0.4em; }

/* layout helpers */
.two-col { display: grid; gap: 32px; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } .two-col--form { grid-template-columns: 0.9fr 1.2fr; } }
.sticky-col { position: sticky; top: 104px; }
@media (max-width: 979px) { .sticky-col { position: static; } }
.stack > * + * { margin-top: 18px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.note { font-size: 0.92rem; color: var(--muted); }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.aside-links a { display: block; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.3s var(--ease); }
.aside-links a:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.aside-links b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.aside-links span { color: var(--muted); font-size: 0.95rem; }

/* footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); margin-top: clamp(64px, 4rem + 3vw, 120px); padding-block: 64px 32px; font-size: 0.97rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--copper-soft); text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; } }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand-name em { color: var(--copper-soft); }
.footer-about { margin: 16px 0 0; max-width: 32em; }
.footer-h { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-soft); margin: 0 0 14px; font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(242, 237, 227, 0.12); display: grid; gap: 14px; font-size: 0.9rem; }
.footer-legal p { margin: 0; max-width: 72em; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer .credit a { text-decoration: underline; text-underline-offset: 0.2em; }

/* reveal on scroll (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .sketch .draw { stroke-dashoffset: 0; }
  .sketch .fade { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .band, .form-card { display: none; }
  body::before { display: none; }
}

/* small helpers used by pages */
.h3-size { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); line-height: 1.2; letter-spacing: -0.01em; }
.center-lede { margin-inline: auto; }
.actions--center { justify-content: center; margin-top: 1.6rem; }
.btn-on-dark { --fg: var(--on-dark); border-color: rgba(242, 237, 227, 0.4); }
.btn-on-dark:hover { --bg: rgba(242, 237, 227, 0.08); --fg: var(--on-dark); border-color: var(--on-dark); }
.panel--dark .eyebrow { color: var(--copper-soft); }
.callout h2 { margin-bottom: 0.4em; }
.faq-more { margin-top: 40px; }
.panel .actions { margin-top: 8px; }
#set .callout { margin-top: 22px; }

/* fixes after first screenshot review */
.panel--dark h2, .panel--dark h3 { color: var(--on-dark); }
.panel--dark .link-arrow, .band .link-arrow, .tile--custom .link-arrow { color: var(--on-dark); border-color: var(--copper-soft); }
@media (max-width: 639px) { .specs > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.tile--custom h3 { margin-bottom: 0.35em; }
.steps + p { margin-top: 28px; }
.tile--ranch .art-note { margin-bottom: 4px; }
.footer-links a { display: inline-block; padding: 3px 0; }
.site-footer { margin-top: 0; }
@media (max-width: 479px) { .actions .btn { flex: 1 1 100%; } }
.soon-art .sketch { max-width: 420px; margin-inline: auto; }
.chips a { font-size: 0.93rem; }
.tile--ranch .tile-art {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: clamp(14px, 1rem + 1vw, 28px);
  background-color: #fffdf9;
  background-image: linear-gradient(rgba(30, 58, 49, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 58, 49, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.band .field .opt, .band .field .hint { color: var(--on-dark-2); }
.split { align-items: start; }
.sheets { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.specs--plain dd { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); }

/* independent review pass: legibility for older readers, sheet grid, eyebrow wrap */
.art-note { font-size: 0.82rem; letter-spacing: 0.08em; }
.titleblock { font-size: 0.8rem; }
.titleblock b { font-size: 0.72rem; }
.badge { font-size: 0.76rem; }
.specs dt { font-size: 0.78rem; }
.chips small { font-size: 0.74rem; }
.eyebrow { align-items: flex-start; line-height: 1.5; }
.eyebrow::before { flex-shrink: 0; margin-top: calc(0.75em - 0.75px); }
@media (min-width: 720px) { .sheets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) {
  .sheets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-card { flex-direction: column; align-items: flex-start; padding: 18px 18px 20px; }
}
@media (max-width: 559px) {
  .band { padding-inline: 22px; }
  .band-cta { padding: 20px 16px; }
}
