:root {
  --ink: #f7eddf;
  --cream: #fff6e8;
  --paper: #fff0d0;
  --muted: #b9aa98;
  --dim: #887b6d;
  --gold: #f6c36b;
  --amber: #ffb347;
  --copper: #9f633b;
  --teal: #8ee6d2;
  --ink-dark: #191108;
  --midnight: #050914;
  --night: #08111f;
  --deep-blue: #0d1b2e;
  --deep-green: #0b1a13;
  --forest-glow: rgba(21, 50, 36, 0.82);
  --panel: rgba(8, 14, 24, 0.72);
  --panel-soft: rgba(255, 246, 232, 0.065);
  --line: rgba(246, 195, 107, 0.28);
  --teal-line: rgba(142, 230, 210, 0.24);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --glow: 0 0 38px rgba(246, 195, 107, 0.32);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-pill: 999px;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 74% 2%, rgba(64, 100, 158, 0.24), transparent 31rem),
    radial-gradient(circle at 38% 87%, rgba(255, 179, 71, 0.20), transparent 28rem),
    linear-gradient(180deg, #020611 0%, var(--night) 48%, #10131f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 246, 232, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(246, 195, 107, 0.58) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(142, 230, 210, 0.34) 0 1px, transparent 1.7px);
  background-size: 118px 118px, 172px 172px, 254px 254px;
  background-position: 18px 22px, 76px 38px, 142px 84px;
  opacity: 0.47;
  mask-image: linear-gradient(to bottom, black 0%, black 68%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 42vh;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(6, 7, 10, 0.97), rgba(8, 10, 15, 0.40) 58%, transparent),
    radial-gradient(ellipse at 46% 100%, rgba(255, 179, 71, 0.30), transparent 44%),
    radial-gradient(ellipse at 74% 96%, rgba(17, 45, 31, 0.64), transparent 44%),
    radial-gradient(ellipse at 78% 92%, rgba(246, 195, 107, 0.16), transparent 36%);
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
ul { margin: 0; padding-left: 19px; color: var(--muted); line-height: 1.9; }

.ambient-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-sky::before,
.ambient-sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}
.ambient-sky::before {
  width: 45rem;
  height: 45rem;
  top: -18rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(74, 118, 191, .22), transparent 64%);
}
.ambient-sky::after {
  width: 58rem;
  height: 28rem;
  left: 18%;
  bottom: -11rem;
  background: radial-gradient(ellipse, rgba(255, 179, 71, .20), transparent 63%);
}

.page-shell { width: min(100%, 1680px); margin: 0 auto; overflow: hidden; }
main, .site-header, .site-footer { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0 16px;
  backdrop-filter: blur(18px);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 -8vw auto;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 9, 20, .72), rgba(5, 9, 20, .26), transparent);
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { position: relative; width: 52px; height: 52px; display: inline-grid; place-items: center; filter: drop-shadow(0 0 16px rgba(246, 195, 107, 0.26)); }
.brand-mark::before { content: ""; width: 19px; height: 19px; border: 2px solid var(--gold); border-radius: 50%; }
.brand-mark span { position: absolute; width: 46px; height: 24px; border: 2px solid var(--gold); border-radius: 50%; }
.brand-mark span:nth-child(1) { transform: rotate(0deg); }
.brand-mark span:nth-child(2) { transform: rotate(60deg); }
.brand-mark span:nth-child(3) { transform: rotate(-60deg); }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-size: 1.56rem; letter-spacing: -0.045em; color: var(--cream); }
.brand-text em { margin-top: 6px; color: var(--gold); font-size: 0.78rem; font-style: normal; font-weight: 800; letter-spacing: 0.23em; }

.nav-links { display: flex; align-items: center; gap: 30px; color: #cdbfae; font-size: 0.94rem; font-weight: 800; }
.nav-links a { opacity: 0.82; transition: color 180ms ease, opacity 180ms ease; }
.nav-links a:hover { color: var(--gold); opacity: 1; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--radius-pill); font-weight: 900; letter-spacing: -0.01em; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink-dark); background: linear-gradient(135deg, #ffe6ae, var(--gold) 48%, var(--amber)); box-shadow: 0 18px 38px rgba(255, 179, 71, 0.24), 0 0 0 1px rgba(255, 246, 232, 0.20) inset; }
.button-secondary { color: var(--cream); border: 1px solid var(--line); background: rgba(255, 246, 232, 0.06); box-shadow: 0 0 0 1px rgba(142, 230, 210, 0.08) inset; }
.button-secondary:hover { border-color: rgba(246, 195, 107, 0.55); background: rgba(255, 246, 232, 0.095); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  gap: 34px;
  align-items: stretch;
  min-height: 820px;
  padding: 74px 0 112px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -12vw 28px;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 6, 17, .56), rgba(2, 6, 17, .11) 48%, rgba(2, 6, 17, .30));
}
.hero-copy { position: relative; z-index: 8; align-self: center; max-width: 760px; }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.2em; text-transform: uppercase; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; color: var(--cream); letter-spacing: -0.055em; }
h1 { max-width: 820px; margin-bottom: 28px; font-size: clamp(3.85rem, 6.4vw, 7.15rem); line-height: 0.94; text-wrap: balance; text-shadow: 0 6px 32px rgba(0, 0, 0, 0.42); }
h2 { margin-bottom: 18px; font-size: clamp(2.35rem, 4.2vw, 4.75rem); line-height: 0.98; text-wrap: balance; }
h3 { margin-bottom: 12px; color: var(--cream); font-size: 1.17rem; line-height: 1.18; }
.hero-lede { max-width: 660px; margin-bottom: 32px; color: #e8d9c6; font-size: 1.17rem; line-height: 1.72; text-shadow: 0 3px 16px rgba(0,0,0,.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }

.hero-world {
  position: relative;
  min-height: 640px;
  isolation: isolate;
  overflow: visible;
}
.hometown-scene { position: absolute; inset: auto -7% 0 -4%; height: 48%; z-index: 4; overflow: hidden; border-radius: 0 0 38px 38px; }
.sunset-glow {
  position: absolute;
  inset: 4% -6% auto;
  height: 74%;
  background: radial-gradient(ellipse at 50% 76%, rgb(255 179 71), rgb(210 129 108 / 40%) 25%, rgb(4 53 29 / 36%) 46%, transparent 68%);
  filter: blur(12px);
}
.distant-hills {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 10%;
  height: 30%;
  background: linear-gradient(140deg, transparent 0 6%, rgba(13, 24, 19, .88) 6% 14%, transparent 14% 20%, rgb(0 24 8 / 92%) 20% 39%, transparent 39% 47%, rgb(41 15 13 / 95%) 47% 100%);
  clip-path: polygon(0 66%, 9% 47%, 17% 57%, 27% 28%, 37% 60%, 48% 41%, 56% 63%, 67% 35%, 81% 55%, 92% 32%, 100% 59%, 100% 100%, 0 100%);
}
.house, .porch-house { position: absolute; bottom: 11%; background: rgba(14, 15, 18, .98); box-shadow: 0 10px 40px rgba(0,0,0,.34), 0 0 36px rgba(255,179,71,.13); }
.house::before, .porch-house::before { content: ""; position: absolute; inset: auto -7px 100%; height: 54px; background: rgba(10, 12, 16, .98); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.house span, .porch-house span { position: absolute; width: 15px; height: 20px; border-radius: 3px; background: rgba(255, 206, 126, .82); box-shadow: 0 0 18px rgba(255, 206, 126, .38); }
.house-left { left: 5%; bottom: 8%; width: 96px; height: 72px; }
.house-left span:nth-child(1) { left: 18px; top: 17px; } .house-left span:nth-child(2) { right: 18px; top: 17px; } .house-left span:nth-child(3) { left: 41px; bottom: 0; height: 31px; }
.house-mid { left: 32%; bottom: 8%; width: 132px; height: 80px; }
.house-mid span:nth-child(1) { left: 23px; top: 18px; } .house-mid span:nth-child(2) { right: 28px; top: 18px; } .house-mid span:nth-child(3) { left: 55px; bottom: 0; height: 34px; }
.porch-house { right: 0; bottom: 3%; width: 250px; height: 142px; }
.porch-house::before { height: 86px; }
.porch-house span:nth-child(1) { left: 34px; top: 32px; width: 28px; height: 34px; }
.porch-house span:nth-child(2) { left: 78px; top: 32px; width: 28px; height: 34px; }
.porch-house span:nth-child(3) { right: 45px; top: 30px; width: 34px; height: 40px; }
.porch-house span:nth-child(4) { left: 118px; bottom: 0; width: 34px; height: 62px; background: rgba(255, 219, 155, .62); }
.hometown-scene::after {
  content: "";
  position: absolute;
  inset: auto -8% -3% -8%;
  height: 28%;
  background: radial-gradient(ellipse at 18% 36%, rgb(19 37 27), transparent 54%), radial-gradient(ellipse at 48% 40%, rgba(10, 19, 14, .98), transparent 58%), radial-gradient(ellipse at 78% 34%, rgb(10 19 14), transparent 56%), linear-gradient(180deg, rgba(10, 19, 14, 0) 0%, rgb(56 27 24 / 0%) 58%, rgb(0 129 15 / 43%) 100%);
  z-index: -1;
}
.product-card {
  position: absolute;
  right: 150px;
  bottom: 200px;
  z-index: 9;
  width: 272px;
  padding: 20px;
  border: 1px solid rgba(255, 246, 232, 0.16);
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(5, 9, 20, 0.96), rgba(14, 26, 41, 0.94));
  box-shadow: 0 34px 70px rgba(0,0,0,0.48), 0 0 0 8px rgba(255,255,255,0.025);
  transform: rotate(2deg);
}
.product-top { display: grid; grid-template-columns: 28px 1fr 34px; gap: 10px; align-items: start; margin-bottom: 20px; }
.mini-mark { position: relative; width: 26px; height: 26px; display: inline-block; }
.mini-mark::before, .mini-mark::after { content: ""; position: absolute; inset: 5px 0; border: 1.8px solid var(--gold); border-radius: 50%; }
.mini-mark::before { transform: rotate(55deg); } .mini-mark::after { transform: rotate(-55deg); }
.product-top strong { display: block; color: var(--cream); font-size: 1.2rem; letter-spacing: -0.04em; }
.product-top em { color: var(--gold); font-size: 0.74rem; font-style: italic; font-weight: 800; }
.product-top b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--teal); background: rgba(142, 230, 210, 0.12); font-size: 0.8rem; }
.field-card, .connection-list { border: 1px solid rgba(142, 230, 210, 0.22); background: rgba(255, 246, 232, 0.055); border-radius: 14px; }
.field-card { padding: 13px; margin-bottom: 13px; }
.field-card span, .connection-list > span { display: block; color: #d8c9ba; font-size: 0.68rem; margin-bottom: 6px; }
.field-card strong { display: block; color: var(--cream); font-size: 1.08rem; }
.field-card em { display: inline-block; margin-top: 7px; padding: 4px 8px; border-radius: 99px; color: #d6fff6; background: rgba(142, 230, 210, 0.18); font-size: 0.64rem; font-style: normal; font-weight: 900; }
.connection-list { padding: 12px; margin-bottom: 15px; }
.connection-list p { margin: 0; padding: 9px 0; line-height: 1.15; border-top: 1px solid rgba(255,246,232,0.08); }
.connection-list p:first-of-type { border-top: 0; }
.connection-list b { display: block; color: var(--cream); font-size: 0.82rem; }
.connection-list em { color: var(--teal); font-size: 0.68rem; font-style: normal; }
.product-card small { display: block; color: #e4d2bb; font-size: 0.78rem; font-style: italic; line-height: 1.4; }

.trust-strip {
  position: absolute;
  z-index: 15;
  left: 0;
  right: 0;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 14px 20px;
  list-style: none;
  border: 1px solid rgba(246, 195, 107, .22);
  border-radius: 24px;
  background: rgba(5, 9, 20, .58);
  box-shadow: 0 16px 60px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}
.trust-strip li { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 36px; color: #f2c985; font-weight: 800; border-left: 1px solid rgba(246, 195, 107, .22); }
.trust-strip li:first-child { border-left: 0; }
.trust-strip span { color: var(--gold); font-size: 1.2rem; }

section { position: relative; }
.model-section, .protocol-section, .builder-section, .today-section { padding: 76px 0; }
.section-heading { max-width: 870px; margin-bottom: 30px; }
.section-heading.narrow { max-width: 760px; }
.card-grid { display: grid; gap: 18px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meaning-card, .copy-panel, .contrast-band, .protocol-map, .protocol-map div { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.meaning-card { min-height: 236px; padding: 28px; border-radius: var(--radius-md); }
.meaning-card.emphasized { background: linear-gradient(180deg, rgba(246, 195, 107, 0.17), rgba(8, 14, 24, 0.70)); box-shadow: var(--shadow), var(--glow); }
.card-number { display: inline-block; margin-bottom: 42px; color: var(--gold); font-weight: 900; letter-spacing: 0.1em; }
.meaning-card p { margin-bottom: 0; }

.contrast-band { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; margin: 38px 0 46px; padding: 44px; border-radius: var(--radius-lg); background: radial-gradient(circle at 90% 20%, rgba(142, 230, 210, 0.13), transparent 20rem), var(--panel); }
.contrast-band h2 { font-size: clamp(2.15rem, 3.5vw, 3.7rem); }
.contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contrast-grid div { padding: 24px; border-radius: 20px; background: rgba(255, 246, 232, 0.055); }
.contrast-grid h3 { color: var(--gold); }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 44px; align-items: start; }
.copy-panel { padding: 32px; border-radius: var(--radius-lg); background: rgba(255, 246, 232, 0.06); }
.copy-panel p:last-of-type { margin-bottom: 16px; }
.text-link { color: var(--gold); font-weight: 900; }

.protocol-section { padding-top: 58px; }
.protocol-map { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: center; gap: 0; padding: 24px; border-radius: var(--radius-lg); }
.protocol-map div { min-height: 188px; display: grid; align-content: center; justify-items: center; text-align: center; padding: 24px; border-radius: 22px; background: rgba(255, 246, 232, 0.06); }
.protocol-map span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; color: #1a1208; background: var(--gold); font-weight: 900; }
.protocol-map strong { color: var(--cream); font-size: 1.12rem; margin-bottom: 8px; }
.protocol-map em { color: var(--muted); font-style: normal; font-size: 0.9rem; }
.protocol-map i { height: 2px; background: linear-gradient(90deg, rgba(246,195,107,0.2), rgba(246,195,107,0.86), rgba(142,230,210,0.22)); box-shadow: var(--glow); }
.compact-actions { margin-bottom: 0; }

.site-footer { display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 36px 0 54px; border-top: 1px solid rgba(246, 195, 107, 0.16); color: var(--muted); font-size: 0.9rem; }
.footer-brand .brand-mark { width: 42px; height: 42px; transform: scale(0.8); transform-origin: left center; }
.footer-brand .brand-text strong { font-size: 1.18rem; }
.footer-brand .brand-text em { font-size: 0.62rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-weight: 700; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: 0; font-size: 0.9rem; }

@media (max-width: 1120px) {
  .site-header { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .hero, .split, .contrast-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 36px; }
  .hero-copy { max-width: 880px; }
  .hero-world { min-height: 660px; }
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 760px) {
  main, .site-header, .site-footer { width: min(100% - 28px, var(--max)); }
  .nav-links { display: none; }
  .brand-text strong { font-size: 1.28rem; }
  .brand-mark { width: 44px; height: 44px; transform: scale(0.86); transform-origin: left center; }
  .nav-cta { min-height: 42px; padding: 0 16px; font-size: 0.86rem; }
  h1 { font-size: clamp(3.05rem, 13vw, 5.2rem); }
  h2 { font-size: clamp(2.1rem, 10vw, 3.5rem); }
  .hero { padding-bottom: 98px; }
  .hero-lede { font-size: 1.04rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-world { min-height: 570px; margin-top: 20px; }
  .hometown-scene { left: -18%; right: -20%; height: 47%; }
  .porch-house { right: -24px; transform: scale(.78); transform-origin: bottom right; }
  .trust-strip { position: relative; bottom: auto; grid-template-columns: 1fr; margin-top: 24px; padding: 12px; }
  .trust-strip li { justify-content: flex-start; border-left: 0; border-top: 1px solid rgba(246, 195, 107, .18); padding: 7px 10px; }
  .trust-strip li:first-child { border-top: 0; }
  .card-grid.four, .contrast-grid, .protocol-map { grid-template-columns: 1fr; }
  .meaning-card, .copy-panel, .contrast-band, .protocol-map { padding: 24px; }
  .protocol-map { gap: 14px; }
  .protocol-map i { width: 2px; height: 34px; margin: 0 auto; }
}
