:root {
  --ink: #102033;
  --muted: #4d5d70;
  --paper: #f6f3ec;
  --surface: #fffdf8;
  --line: #e4d8c4;
  --navy: #0b3f91;
  --deep: #07275c;
  --sun: #f5c400;
  --sunink: #3a2c00;
  --red: #d0122d;
  --sky: #e7f0ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word; /* long words/URLs wrap instead of running off small screens */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.stripe {
  height: 6px;
  background-image: linear-gradient(90deg, var(--navy) 0 33%, var(--sun) 33% 66%, var(--red) 66% 100%);
  background-size: 180px 100%;
  animation: stripe 8s linear infinite;
}
header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; letter-spacing: -0.02em; }
.mark { width: 2.25rem; height: 2.25rem; }
.navdesk { display: none; align-items: center; gap: 1.5rem; font-size: 0.875rem; }
.navdesk a.ghost { color: var(--muted); }
.navdesk a.ghost:hover, .navdesk a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.menu-btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.navmob { display: none; flex-direction: column; border-top: 1px solid var(--line); padding: 0.75rem 1.25rem 1rem; }
.navmob.open { display: flex; }
.navmob a { padding: 0.75rem 0; }
.btn {
  display: inline-block; border-radius: 999px; padding: 0.75rem 1.25rem;
  font-weight: 600; font-size: 0.875rem; border: 0; cursor: pointer;
  transition: transform 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--surface); }
.btn-navy { background: var(--navy); color: var(--surface); }
.btn-sun { background: var(--sun); color: var(--sunink); }
.hero { position: relative; display: grid; gap: 2rem; align-items: end; padding-block: 3rem 4rem; }
.pill {
  display: inline-block; border-radius: 999px; background: var(--sun); color: var(--sunink);
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
h1.hero-title {
  margin: 1.25rem 0 0;
  font-family: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  font-weight: 700; font-size: 3.75rem; line-height: 0.92; letter-spacing: -0.03em; color: var(--navy);
}
.hilite { display: block; margin-top: 0.5rem; background: var(--sun); color: var(--sunink); padding: 0.05rem 0.45rem; width: fit-content; }
.lede { margin: 1.25rem 0 0; max-width: 28rem; font-size: 1.125rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.stage { position: relative; }
.house { width: 100%; height: 24rem; object-fit: cover; border-radius: 1.25rem; }
.sky { background: var(--sky); }
.trust { display: grid; gap: 1.5rem; padding-block: 2rem; }
.trust article { background: var(--surface); border-radius: 1.25rem; padding: 1rem; }
.tick { display: block; height: 0.25rem; width: 2.5rem; margin-bottom: 0.75rem; }
.trust strong { display: block; font-family: "Bricolage Grotesque", sans-serif; color: var(--navy); font-size: 1.125rem; }
.trust p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--muted); }
.estimate { display: grid; gap: 2rem; padding-block: 4rem; }
.kicker-red { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
h2.display {
  margin: 0.5rem 0 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: -0.03em; color: var(--navy);
}
.muted { color: var(--muted); }
.run { display: block; margin-top: 1.25rem; height: auto; width: min(92vw, 18rem); }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 1.25rem; padding: 1.5rem; }
label { font-size: 0.875rem; font-weight: 500; }
input, select, textarea {
  width: 100%; margin-top: 0.5rem; border: 1px solid var(--line); background: var(--paper);
  border-radius: 0.75rem; padding: 0.75rem 1rem;
}
.picks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.picks button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; }
.picks button.on { background: var(--navy); color: var(--surface); border-color: var(--navy); }
.out { display: grid; gap: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.out span { font-size: 0.875rem; color: var(--muted); }
.out b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.875rem; font-weight: 700; }
.jobs { padding-bottom: 4rem; }
.jobgrid { display: grid; gap: 1rem; margin-top: 2rem; }
.job { overflow: hidden; border-radius: 1.25rem; border: 1px solid var(--line); background: var(--surface); color: inherit; }
.job img { height: 13rem; width: 100%; object-fit: cover; }
.job div { padding: 1.25rem; }
.job h3 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.5rem; color: var(--navy); }
.job p { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted); }
.band { background: var(--navy); color: var(--surface); }
.band-grid { display: grid; gap: 2rem; padding-block: 3.5rem; }
.band .eyebrow { margin: 0; color: var(--sun); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.band h2 { margin: 0.5rem 0 0; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 2.25rem; line-height: 1.05; letter-spacing: -0.03em; }
.prices { display: grid; gap: 0.75rem; }
.price { border-radius: 1.25rem; padding: 1rem; }
.price span { font-size: 0.875rem; opacity: 0.85; }
.price b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.875rem; }
.p-deep { background: var(--deep); }
.p-sun { background: var(--sun); color: var(--sunink); }
.p-red { background: var(--red); }
.steps { display: grid; gap: 2rem; align-items: center; padding-block: 4rem; }
.steps img { height: 20rem; width: 100%; object-fit: cover; border-radius: 1.25rem; }
.steps ol { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.steps li { display: flex; gap: 0.75rem; color: var(--muted); margin: 0.7rem 0; }
.steps li span { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--red); }
footer { background: var(--deep); color: var(--surface); }
.foot { display: grid; gap: 2rem; padding-block: 2.25rem; }
.foot .name { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.5rem; }
.foot .soft { color: var(--line); font-size: 0.875rem; max-width: 20rem; }
.foot a { display: block; color: var(--line); margin: 0.35rem 0; }
.foot a.sun { color: var(--sun); }
.page { padding-block: 3.5rem 4rem; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.pagehead > div { min-width: 0; }
.spot { display: block; height: 6.5rem; width: auto; flex: none; }
.kicker {
  display: inline-block; border-radius: 999px; background: var(--sky); color: var(--navy);
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.pagehead h1 {
  margin: 1rem 0 0; max-width: 46rem;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700;
  font-size: 3rem; line-height: 0.95; letter-spacing: -0.03em; color: var(--navy);
}
.rule { display: block; margin-top: 1rem; height: 0.25rem; width: 6rem; background: var(--sun); }
.pagehead .lede { margin: 1.25rem 0 0; max-width: 40rem; font-size: 1.125rem; color: var(--muted); }
.body { margin-top: 3rem; }
.cols { display: grid; gap: 1rem; }
.note { font-size: 0.875rem; color: var(--muted); }
.pick.on, .pick.on .note, .pick.on .big, .pick.on p { color: var(--surface); }
.pick.on .note { color: color-mix(in srgb, var(--surface) 80%, transparent); }
table { width: 100%; border-collapse: collapse; min-width: 0; text-align: left; font-size: 0.875rem; }
th, td { padding: 0.75rem 1rem; vertical-align: top; }
th:first-child, td:first-child { font-weight: 700; }
thead { background: var(--paper); color: var(--muted); }
tbody tr + tr td { border-top: 1px solid var(--line); }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); }
.pick {
  text-align: left; border-radius: 1.25rem; border: 1px solid var(--line); background: var(--surface);
  padding: 1.25rem; cursor: pointer; color: inherit;
}
.pick.on { background: var(--navy); border-color: var(--navy); }
.pick .big { margin: 0.4rem 0 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.8rem; }
.form { display: grid; gap: 1rem; max-width: 36rem; }
.form label { display: grid; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; }
.ok { border-radius: 1.25rem; background: var(--navy); color: var(--surface); padding: 1.5rem; }
.post { max-width: 40rem; font-size: 1.125rem; }
.post p { margin: 0 0 1rem; }
@keyframes stripe { to { background-position: 180px 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floaty { animation: floaty 3.4s ease-in-out infinite; }
.plan {
  margin-top: 2rem;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
}
.plan article { padding: 1.5rem 1.4rem; }
.plan article + article { border-top: 1px solid var(--line); }
.plan .eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan .num {
  margin: 0.45rem 0 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.plan .assume { background: var(--paper); }
.plan .assume p { margin: 0.55rem 0 0; max-width: 16rem; color: var(--muted); font-size: 0.95rem; }
.plan.in article { animation: rise 0.6s ease both; }
.plan.in article:nth-child(2) { animation-delay: 0.08s; }
.plan.in article:nth-child(3) { animation-delay: 0.16s; }
@media (min-width: 800px) {
  .plan { grid-template-columns: 1.15fr 1.15fr 0.9fr; }
  .plan article + article { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 800px) {
  .navdesk { display: flex; }
  .menu-btn { display: none; }
  .hero { grid-template-columns: 5fr 7fr; padding-block: 4rem; }
  h1.hero-title { font-size: 4.5rem; }
  .house { height: 32rem; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .estimate { grid-template-columns: 5fr 7fr; }
  .run { display: block; }
  .jobgrid, .cols.three { grid-template-columns: repeat(3, 1fr); }
  .band-grid, .steps, .cols.two { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr 1fr; }
  .out, .stats { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: 1.2fr 1fr 1fr; }
  .pagehead h1 { font-size: 3.75rem; }
  .run { width: 100%; }
  .spot { height: 9rem; }
}
@media (max-width: 799px) {
  th, td { padding: 0.55rem 0.45rem; font-size: 0.72rem; }
}
@media (max-width: 479px) {
  /* small phones: page titles scale down so long words (Planning, metering) never split mid-word */
  .pagehead h1 { font-size: clamp(2rem, 9.5vw, 3rem); }
  .spot { height: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.scrollprog { position: fixed; left: 0; top: 0; z-index: 40; height: 3px; width: 0; background: var(--sun); }
.marquee { overflow: hidden; background: var(--deep); color: var(--sun); border-bottom: 1px solid #123; }
.marquee-track {
  display: flex; gap: 2.2rem; width: max-content;
  padding: 0.65rem 0; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  animation: ticker 32s linear infinite;
}
.hero-copy { position: relative; overflow: hidden; }
.stage { position: relative; z-index: 1; }
.toplight {
  position: absolute;
  z-index: 0;
  left: -15rem;
  top: -17rem;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
}
.rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, transparent 0 11%, #000 16%, transparent 58%);
  mask-image: radial-gradient(circle, transparent 0 11%, #000 16%, transparent 58%);
}
.rays-a {
  background: repeating-conic-gradient(
    from 8deg,
    rgba(245, 196, 0, 0.85) 0deg 1.1deg,
    transparent 1.1deg 16deg
  );
  animation: spin 48s linear infinite;
}
.sunball {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 32%, #fffbe8 0%, #ffe56a 40%, #f5c400 100%);
  box-shadow: 0 0 40px 8px rgba(245, 196, 0, 0.28);
}
.hero-copy > :not(.toplight) { position: relative; z-index: 1; }
.house { transform-origin: 60% 40%; animation: ken 24s ease-in-out infinite alternate; }
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { animation: rise 0.85s ease forwards; }
.prose { max-width: 42rem; }
.prose p, .prose li { font-size: 1.125rem; color: var(--ink); }
.prose h2 { margin: 2rem 0 0.6rem; font-family: "Bricolage Grotesque", sans-serif; color: var(--navy); letter-spacing: -0.03em; }
.prose a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2rem; }
.linkbox, .citebox { margin-top: 2rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); padding: 1.25rem 1.4rem; }
.linkbox h2, .citebox h2 { margin: 0 0 0.6rem; font-family: "Bricolage Grotesque", sans-serif; color: var(--navy); font-size: 1.4rem; }
.linkbox a, .citebox a { display: inline; color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.chips a { display: inline-block; text-decoration: none; border-radius: 999px; background: var(--sky); color: var(--navy); padding: 0.4rem 0.8rem; font-size: 0.875rem; }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ken { to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .rays, .topwash, .house, .reveal { animation: none !important; transform: none !important; opacity: 1 !important; }
}

.issue {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
}
.issue-no {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--sun);
  text-shadow: 3px 3px 0 var(--navy);
}
.issue h1 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.95; letter-spacing: -0.03em; color: var(--navy); }
.shelf { display: grid; gap: 1rem; margin-top: 1.6rem; }
.leadnote {
  position: relative;
  display: grid;
  gap: 0.6rem;
  overflow: hidden;
  border-radius: 1.6rem;
  background: var(--navy);
  color: var(--surface);
  padding: 1.6rem 1.5rem 1.5rem;
  min-height: 16rem;
}
.leadnote .num, .sidecard .num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--sun);
}
.leadnote h2, .sidecard h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.leadnote p, .sidecard p { margin: 0; max-width: 38rem; }
.leadnote .go, .sidecard .go {
  margin-top: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.leadnote .sunburst {
  position: absolute; right: -2rem; bottom: -3rem;
  width: 14rem; height: 14rem; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--sun) 0 7deg, transparent 7deg 18deg);
  animation: spin 28s linear infinite; opacity: 0.85;
}
.pair { display: grid; gap: 1rem; }
.sidecard {
  display: grid; gap: 0.45rem; align-content: start;
  border-radius: 1.4rem; border: 1px solid var(--line); background: var(--surface);
  padding: 1.3rem; transition: transform 280ms ease, background 280ms ease;
}
.sidecard:nth-child(2) { background: var(--sun); color: var(--sunink); }
.sidecard:nth-child(2) .num { color: var(--navy); }
.sidecard:hover { transform: translateY(-8px) rotate(-0.6deg); }
.deskrail {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center;
  margin-top: 1.6rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.deskrail a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose { counter-reset: chap; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: "Bricolage Grotesque", sans-serif;
  font-size: 4.4rem; line-height: 0.75; padding: 0.15rem 0.45rem 0 0; color: var(--navy);
}
.prose h2 { position: relative; padding-top: 0.2rem; }
.prose h2::before {
  counter-increment: chap;
  content: counter(chap, decimal-leading-zero);
  display: block; margin-bottom: 0.25rem;
  color: var(--red); font-size: 0.78rem; letter-spacing: 0.16em;
}
.citebox {
  background: var(--sun); color: var(--sunink);
  transform: rotate(-0.4deg);
  box-shadow: 8px 8px 0 var(--navy);
}
.citebox h2, .citebox a, .citebox p { color: var(--sunink); }
.linkbox { background: var(--paper); }
@media (min-width: 800px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .leadnote { padding: 2.2rem; }
}
