/* All About Tiny Homes — dark architectural-editorial design system.
   Direction: the owner's "archin" architecture-template reference (dark
   premium editorial) merged with the licensed Tailkit 05-carbon landing
   rhythm; provenance in apps/tiny-homes-site/DESIGN.md. Strict self-only
   CSP: no inline styles, no remote fonts. Vector artwork keeps every
   screen, 8K included, razor sharp. */

:root {
  --night-950: #0d0c0a;
  --night-900: #141210;
  --night-850: #1a1713;
  --night-800: #211d17;
  --night-700: #2c261d;
  --line: #352e23;
  --line-soft: #2a241b;
  --brass: #c9a24b;
  --brass-bright: #e6c272;
  --ember: #f05a28;
  --ember-deep: #c74214;
  --cream: #f4ecdd;
  --ivory: #fbf7ee;
  --stone: #a89a82;
  --mist: #7d735f;
  --glow: #ffd98f;
  --grad-ember: linear-gradient(115deg, #f05a28 0%, #d87f2a 60%, #c9a24b 110%);
  --grad-brass: linear-gradient(115deg, #e6c272 0%, #c9a24b 100%);
  --shadow-pop: 0 26px 60px -24px rgba(0, 0, 0, 0.75);
  --radius-lg: 18px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: Inter, "Segoe UI", system-ui, Arial, sans-serif;
  font-family: var(--font-ui);
  color: var(--cream);
  background: var(--night-950);
  color-scheme: dark;
  font-synthesis: none;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.65; overflow-x: hidden; background: var(--night-950); }
img, svg { max-width: 100%; height: auto; }
::selection { background: var(--brass); color: var(--night-950); }
.skip { position: absolute; left: 10px; top: -120px; background: var(--brass); color: var(--night-950); padding: 10px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 10px; }
.shell { max-width: 1200px; margin: 0 auto; padding: 0 26px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(13, 12, 10, 0.88); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ivory); font-family: var(--font-display); font-weight: 400; font-size: 1.22rem; letter-spacing: 0.01em; }
.brand img { width: 42px; height: 42px; }
.brand span small { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.22em; color: var(--brass); text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.main-nav a { color: var(--stone); text-decoration: none; padding: 9px 13px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--ivory); }
.main-nav a[aria-current="page"] { color: var(--brass-bright); border-bottom-color: var(--brass); }
.main-nav a.nav-cta { background: var(--grad-ember); color: #fff; border-radius: 3px; margin-left: 12px; padding: 11px 18px; letter-spacing: 0.08em; }
.main-nav a.nav-cta:hover { filter: brightness(1.12); color: #fff; }

/* ---------- buttons & chips ---------- */
.button { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 3px; padding: 16px 30px; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, background 0.15s ease, color 0.15s ease; }
.button .arrow { transition: transform 0.15s ease; }
.button:hover .arrow { transform: translateX(5px); }
.button.primary { background: var(--grad-ember); color: #fff; box-shadow: 0 14px 34px -14px rgba(240, 90, 40, 0.55); }
.button.primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button.ghost { border-color: var(--brass); color: var(--brass-bright); background: transparent; }
.button.ghost:hover { background: var(--brass); color: var(--night-950); }
.button.light { background: var(--ivory); color: var(--night-900); }
.button.light:hover { transform: translateY(-2px); }
.button.dark { background: var(--night-800); color: var(--cream); border-color: var(--line); }
.badge-pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; background: var(--night-850); border: 1px solid var(--line); padding: 8px 18px 8px 8px; font-size: 0.8rem; font-weight: 600; color: var(--stone); letter-spacing: 0.04em; }
.badge-pill b { background: var(--ember); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 14px; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.3em; font-weight: 700; margin: 0 0 18px; color: var(--brass); }
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--brass); flex: none; }
.band-head .eyebrow { justify-content: center; }
.band-head .eyebrow::after { content: ""; width: 42px; height: 1px; background: var(--brass); flex: none; }

/* ---------- hero ---------- */
.hero-band { background: radial-gradient(130% 90% at 50% 0%, #241c2e 0%, var(--night-950) 62%); position: relative; border-bottom: 1px solid var(--line-soft); }
.hero { padding-top: 70px; text-align: center; position: relative; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: 1.04; letter-spacing: -0.02em; margin: 24px auto 22px; max-width: 18ch; color: var(--ivory); }
.hero h1 em { font-style: italic; background: var(--grad-brass); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--stone); max-width: 60ch; margin: 0 auto 34px; }
.hero .lede strong { color: var(--cream); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.trust-strip { display: flex; gap: 12px 30px; justify-content: center; flex-wrap: wrap; padding: 0 0 44px; margin: 0; list-style: none; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.trust-strip li { display: flex; gap: 9px; align-items: center; }
.trust-strip svg { width: 16px; height: 16px; fill: var(--brass); }
.hero-art { display: block; width: min(1080px, 94%); margin: 0 auto -2px; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 80px -20px rgba(240, 90, 40, 0.25), var(--shadow-pop); }

/* ---------- stats ribbon ---------- */
.stats-ribbon { background: var(--night-900); border-bottom: 1px solid var(--line-soft); }
.stats-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-top: 38px; padding-bottom: 38px; text-align: center; }
.stat { border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); color: var(--brass-bright); letter-spacing: -0.01em; }
.stat span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--mist); }

/* ---------- carousel ---------- */
.styles-band { padding-top: 92px; padding-bottom: 96px; background: var(--night-950); }
.band-head { text-align: center; max-width: 780px; margin: 0 auto 46px; }
h2.display { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.015em; line-height: 1.08; margin: 0 0 14px; color: var(--ivory); }
h2.display em { font-style: italic; color: var(--brass-bright); }
.band-head p { color: var(--stone); font-size: 1.02rem; margin: 0; }
.carousel { position: relative; }
.carousel-track { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 28px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: center; flex: 0 0 min(580px, 86%); background: var(--night-850); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-pop); position: relative; }
.slide img { display: block; width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.slide-body { padding: 24px 28px 28px; border-top: 1px solid var(--line-soft); }
.slide-body h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; letter-spacing: 0; color: var(--ivory); }
.slide-body p { margin: 0 0 16px; color: var(--stone); font-size: 0.92rem; }
.slide-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.slide-tags li { font-size: 0.64rem; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 12px; border-radius: 2px; border: 1px solid var(--line); color: var(--brass); background: var(--night-800); }
.slide-index { position: absolute; top: 18px; left: 22px; font-family: var(--font-display); font-size: 1rem; color: var(--ivory); background: rgba(13, 12, 10, 0.55); border: 1px solid rgba(244, 236, 221, 0.25); border-radius: 2px; padding: 4px 10px; letter-spacing: 0.1em; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 8px; }
.carousel-btn { width: 54px; height: 54px; border-radius: 2px; border: 1px solid var(--brass); background: transparent; color: var(--brass-bright); font-size: 1.15rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.carousel-btn:hover { background: var(--brass); color: var(--night-950); transform: translateY(-2px); }
.carousel-btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.carousel-dots { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.carousel-dots button { width: 26px; height: 3px; border-radius: 0; border: none; background: var(--line); cursor: pointer; padding: 0; transition: background 0.15s ease; }
.carousel-dots button[aria-current="true"] { background: var(--grad-ember); }

/* ---------- pillars ---------- */
.pillars-band { background: var(--night-900); color: var(--cream); padding-top: 92px; padding-bottom: 100px; position: relative; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 50px; border: 1px solid var(--line); }
.pillar { background: var(--night-900); border-left: 1px solid var(--line); padding: 36px 32px 40px; transition: background 0.2s ease; position: relative; }
.pillar:first-child { border-left: none; }
.pillar:hover { background: var(--night-850); }
.pillar img { width: 100%; border-radius: 8px; margin-bottom: 22px; border: 1px solid var(--line-soft); }
.pillar h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--ivory); }
.pillar p { margin: 0; color: var(--stone); font-size: 0.92rem; }

/* ---------- how it works ---------- */
.steps-band { padding-top: 92px; padding-bottom: 76px; background: var(--night-950); }
.step-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 54px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line-soft); }
.step-row:first-of-type { border-top: none; }
.step-row:nth-child(even) .step-copy { order: 2; }
.step-num { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.3em; color: var(--ember); }
.step-copy h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.15rem); letter-spacing: -0.01em; margin: 12px 0 12px; color: var(--ivory); }
.step-copy p { color: var(--stone); margin: 0 0 18px; }
.step-art { border-radius: 10px; box-shadow: var(--shadow-pop); display: block; width: 100%; border: 1px solid var(--line); }
.step-link { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-bright); text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.step-link:hover { color: var(--ember); border-bottom-color: var(--ember); }

/* ---------- builders band ---------- */
.builders-band { background: linear-gradient(120deg, #1c1410 0%, #241209 55%, #2b1020 115%); color: var(--cream); padding-top: 88px; padding-bottom: 92px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.builders-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 46px; align-items: center; }
.builders-band h2.display { color: var(--ivory); }
.builders-band p { color: var(--stone); }
.builders-note { background: rgba(13, 12, 10, 0.5); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 26px 28px; font-size: 0.92rem; }
.builders-note p { margin: 0 0 12px; }
.builders-note p:last-child { margin: 0; }
.builders-note strong { color: var(--brass-bright); }

/* ---------- final CTA ---------- */
.final-band { padding-top: 104px; padding-bottom: 116px; text-align: center; background: radial-gradient(85% 120% at 50% 115%, #2b1020 0%, var(--night-950) 70%); }
.final-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 5.2vw, 4.2rem); letter-spacing: -0.015em; line-height: 1.06; margin: 0 0 16px; color: var(--ivory); }
.final-band h2 em { font-style: italic; background: var(--grad-ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-band p { color: var(--stone); max-width: 54ch; margin: 0 auto 34px; font-size: 1.04rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- interior pages ---------- */
.page-body { padding-top: 56px; padding-bottom: 72px; max-width: 860px; }
.page-body h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -0.015em; line-height: 1.08; color: var(--ivory); }
.page-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: 0; margin: 40px 0 12px; color: var(--brass-bright); }
.page-body a { color: var(--brass-bright); }
.page-body ul { padding-left: 22px; }
.page-body li { margin-bottom: 9px; color: var(--cream); }
.page-body p { color: var(--cream); }
blockquote { border-left: 3px solid var(--brass); margin: 18px 0; padding: 14px 20px; color: var(--cream); background: var(--night-850); border-radius: 0 10px 10px 0; }
.status-band { background: var(--night-850); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 26px 0; }
.status-band p { margin: 0; font-size: 0.96rem; color: var(--cream); }
.small-copy { font-size: 0.8rem; color: var(--mist); }

/* ---------- footer ---------- */
.site-footer { background: var(--night-900); color: var(--mist); border-top: 1px solid var(--line-soft); }
.footer-inner { padding-top: 38px; padding-bottom: 50px; display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; font-size: 0.82rem; letter-spacing: 0.04em; }
.site-footer a { color: var(--cream); text-underline-offset: 4px; text-decoration-color: var(--line); }
.site-footer a:hover { color: var(--brass-bright); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .stat:nth-child(3) { border-left: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { border-left: none; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: none; }
  .step-row { grid-template-columns: 1fr; gap: 24px; }
  .step-row:nth-child(even) .step-copy { order: 0; }
  .builders-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shell { padding: 0 18px; }
  .main-nav { margin-left: 0; }
  .main-nav a.nav-cta { margin-left: 0; }
  .hero { padding-top: 46px; }
  .carousel-btn { width: 48px; height: 48px; }
}
