/* ==========================================================================
   St. Boni Buildings & Sheds
   Palette: barn red, pine green, kraft paper. Type: Big Shoulders / Hanken / Instrument Serif
   ========================================================================== */

:root {
  --paper: #F3ECE0;
  --paper-2: #E8DDCA;
  --kraft: #D8C3A0;
  --ink: #1C1B19;
  --ink-2: #4B463E;
  --ink-3: #7A7366;
  --barn: #9B2C1F;
  --barn-deep: #741F15;
  --pine: #1F3B2D;
  --pine-2: #2B4E3D;
  --pine-3: #3C6650;
  --brass: #C8962E;
  --line: rgba(28, 27, 25, .14);
  --line-light: rgba(243, 236, 224, .18);

  /* seasons (hero) */
  --winter: #2F5D7C;
  --spring: #3F6B2E;
  --summer: #B4580F;
  --fall: #9B2C1F;
  --sky-winter: #B7CEDD;
  --sky-spring: #CBD4D1;
  --sky-summer: #FBE3AE;
  --sky-fall: #EBCFAE;
  --frost: #FFFFFF;
  --sun-core: #FFF6D6;
  --sun-glow: #FFC94D;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,27,25,.06), 0 12px 32px -12px rgba(28,27,25,.28);
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* never let anything widen the page sideways (iOS ignores overflow on body alone) */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* paper grain */
body { position: relative; }
body::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */
.eyebrow {
  font: 700 13px/1.2 var(--body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--barn); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow--light { color: var(--kraft); }

.h2 {
  font: 800 clamp(40px, 6vw, 72px)/.92 var(--display);
  text-transform: uppercase; letter-spacing: -.005em;
}
.h2 em, .hero__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -.01em; color: var(--barn);
}
.h2--light { color: var(--paper); }
.h2--light em { color: var(--kraft); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.45); }
.btn:hover svg { transform: translateX(3px); }
.btn--barn { --bg: var(--barn); }
.btn--barn:hover { --bg: var(--barn-deep); }
.btn--pine { --bg: var(--pine); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { padding: 18px 28px; font-size: 17px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- promo ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 50;
  /* Safari reads this color for the status-bar area: green while the promo bar
     is showing, cream once it folds away and the nav is the top edge. */
  background-color: var(--pine);
}
.topbar.is-scrolled { background-color: var(--paper); }
body { padding-top: var(--topbar-h, 114px); }
.promo {
  background: var(--pine); color: var(--paper); font-size: 14px;
  max-height: 160px; overflow: hidden; transition: max-height .35s var(--ease);
}
.topbar.is-scrolled .promo { max-height: 0; }

.promo__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 9px; }
.promo p { margin: 0; }
.promo a { color: var(--kraft); font-weight: 600; text-decoration: none; }
.promo a:hover { text-decoration: underline; }
.promo__phone { white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.topbar.is-scrolled .nav { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0,0,0,.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine); }
.brand__mark { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: .9; }
.brand__name { font: 900 26px/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.brand__sub { font: 600 11.5px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--barn); margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  font-weight: 600; font-size: 15px; text-decoration: none; position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--barn); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero[data-season="winter"] { --season-accent: var(--winter); }
.hero[data-season="spring"] { --season-accent: var(--spring); }
.hero[data-season="summer"] { --season-accent: var(--summer); }
.hero[data-season="fall"]   { --season-accent: var(--fall); }
.hero__grid { position: relative; z-index: 1; }
.hero__copy { container-type: inline-size; min-width: 0; }

/* ---------- seasonal backdrop ---------- */
.season-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.sbg, .frost, .weather { position: absolute; inset: 0; }
.sbg { opacity: 0; transition: opacity 1.6s ease; }
.sbg--winter { background: linear-gradient(180deg, var(--sky-winter) 0%, color-mix(in srgb, var(--sky-winter) 45%, var(--paper)) 55%, var(--paper) 100%); }
.sbg--spring { background: linear-gradient(180deg, var(--sky-spring) 0%, color-mix(in srgb, var(--sky-spring) 40%, var(--paper)) 50%, var(--paper) 100%); }
.sbg--summer { background: radial-gradient(circle at 90% 0%, var(--sky-summer) 0%, color-mix(in srgb, var(--sky-summer) 45%, var(--paper)) 40%, var(--paper) 80%); }
.sbg--fall   { background: linear-gradient(180deg, var(--sky-fall) 0%, color-mix(in srgb, var(--sky-fall) 45%, var(--paper)) 55%, var(--paper) 100%); }
.hero[data-season="winter"] .sbg--winter,
.hero[data-season="spring"] .sbg--spring,
.hero[data-season="summer"] .sbg--summer,
.hero[data-season="fall"] .sbg--fall { opacity: 1; }

/* icy edges */
.frost {
  opacity: 0; transition: opacity 1.6s ease;
  box-shadow: inset 0 0 70px 16px color-mix(in srgb, var(--frost) 95%, transparent),
              inset 0 0 160px 40px color-mix(in srgb, var(--sky-winter) 70%, transparent);
}
.frost::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045 .6' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 4 0 0 0 -1.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5 .06' numOctaves='3' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 4 0 0 0 -2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, #000 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, #000 100%);
}
.hero[data-season="winter"] .frost { opacity: 1; }

/* summer sun */
.sun {
  position: absolute; width: 760px; aspect-ratio: 1; top: -330px; right: -250px; border-radius: 50%;
  opacity: 0; transform: scale(.75) translate(60px, -60px);
  transition: opacity 1.6s ease, transform 1.8s var(--ease);
  background: radial-gradient(circle, var(--sun-core) 0 9%, var(--sun-glow) 14%,
              color-mix(in srgb, var(--sun-glow) 55%, transparent) 21%,
              color-mix(in srgb, var(--sun-glow) 22%, transparent) 38%, transparent 66%);
  animation: pulse 5s ease-in-out infinite;
}
.sun i {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(color-mix(in srgb, var(--sun-glow) 45%, transparent) 0 3deg, transparent 3deg 13deg);
  -webkit-mask-image: radial-gradient(circle, transparent 13%, #000 17%, transparent 64%);
          mask-image: radial-gradient(circle, transparent 13%, #000 17%, transparent 64%);
  animation: spin 80s linear infinite;
}
.hero[data-season="summer"] .sun { opacity: 1; transform: none; }
@keyframes pulse { 50% { filter: brightness(1.06) saturate(1.1); } }

/* rotating headline word */
.season-word { display: inline-block; color: var(--season-accent); transition: color 1.2s var(--ease); }

.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title {
  font: 900 clamp(52px, 8.4vw, 116px)/.86 var(--display);
  font-size: min(116px, 16.8cqi); /* sized so "FOR MINNESOTA" always fits on one line */
  text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 26px;
}
.hero__title em { display: block; font-size: .62em; line-height: 1; margin-top: 12px; }
.nowrap { white-space: nowrap; }
.hero__lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { position: relative; aspect-ratio: 1 / 1.02; }
.photo {
  position: absolute; margin: 0; background: #fff; padding: 10px 10px 12px;
  box-shadow: var(--shadow); border-radius: 6px;
  transition: transform .6s var(--ease);
}
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.photo--a { width: 56%; height: 74%; left: 6%; top: 4%; transform: rotate(-3deg); z-index: 2; }
.photo--b { width: 54%; height: 40%; right: 0; top: 10%; transform: rotate(4deg); z-index: 1; }
.photo--c { width: 40%; height: 46%; right: 6%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
.hero__art:hover .photo--a { transform: rotate(-4.5deg) translateY(-6px); }
.hero__art:hover .photo--b { transform: rotate(6deg) translateX(6px); }
.hero__art:hover .photo--c { transform: rotate(1deg) translateY(4px); }

.stamp {
  position: absolute; left: -2%; bottom: 2%; z-index: 4;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--barn); color: var(--paper);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.stamp text { font: 700 15.5px var(--body); letter-spacing: .2em; fill: var(--paper); }
.stamp span { font: 900 34px/1 var(--display); letter-spacing: .02em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; padding-block: 12px; margin-block: -12px; }
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 16px 0; transform: rotate(-1deg); margin: 0 -2%; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 800 28px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.marquee i { font-style: normal; color: var(--brass); font-size: 18px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__note { max-width: 25em; color: var(--ink-2); margin: 0; }
.section__note a { color: var(--barn); font-weight: 700; white-space: nowrap; }

/* ---------- inventory ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
  font: 600 14px/1 var(--body); padding: 11px 18px; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--line); color: var(--ink); cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--pine); border-color: var(--pine); color: var(--paper); }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px 24px; }
.inv {
  position: relative; display: flex; flex-direction: column;
  background: #FBF8F2; border-radius: var(--radius); overflow: visible;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.inv:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.inv.is-hidden { display: none; }
.inv__img { aspect-ratio: 4 / 4.2; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--paper-2); }
.inv__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.inv:hover .inv__img img { transform: scale(1.05); }

/* hang-tag price */
.tag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--kraft); color: var(--ink);
  padding: 19px 12px 10px; min-width: 96px; text-align: center;
  clip-path: polygon(16% 0, 84% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  transform: rotate(4deg); transform-origin: top center;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  transition: transform .5s var(--ease);
}
.inv:hover .tag { transform: rotate(-2deg); }
.tag::before { /* grommet */
  content: ""; position: absolute; top: 6px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: #FBF8F2; box-shadow: inset 0 0 0 2px var(--brass);
}
.tag__was { display: block; font-size: 11.5px; color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--barn); }
.tag__now { display: block; font: 900 26px/1 var(--display); letter-spacing: .01em; }
.tag__save { display: inline-block; margin-top: 5px; font: 700 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--barn); color: var(--paper); padding: 5px 7px; border-radius: 3px; }

.inv__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.inv__type { font: 800 26px/1 var(--display); text-transform: uppercase; }
.inv__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--ink-2); font-size: 15px; }
.inv__size { font: 700 15px var(--body); color: var(--pine); background: rgba(31,59,45,.08); padding: 3px 9px; border-radius: 6px; }
.inv__note { font-size: 14px; color: var(--ink-2); margin: 0; }
.inv__prices { margin: 8px 0 0; display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.inv__prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--line); }
.inv__prices dt { font-size: 14px; color: var(--ink-2); }
.inv__prices dd { margin: 0; font-weight: 600; font-size: 15px; }
.inv__prices s { text-decoration-color: var(--barn); color: var(--ink-2); font-weight: 500; }
.inv__prices .is-best dt { color: var(--ink); font-weight: 700; }
.inv__prices .is-best dd { color: var(--barn); font: 800 22px/1 var(--display); letter-spacing: .01em; }
.inv__tax { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 14px; }
.inv__actions { display: flex; gap: 8px; margin-top: auto; }
.inv__actions .btn { flex: 1; padding: 12px 10px; font-size: 14px; }

.inv-foot {
  margin-top: 44px; padding: 26px 30px; border-radius: var(--radius);
  border: 2px dashed rgba(31,59,45,.3);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.inv-foot p { margin: 0; font: 400 24px/1.2 var(--serif); font-style: italic; }

/* ---------- builder ---------- */
.builder { background: var(--pine); color: var(--paper); padding: clamp(72px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.builder::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 70%);
}
.builder__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.builder__copy > p { color: rgba(243,236,224,.82); max-width: 32em; margin-top: 20px; }
.steps { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 2px; }
.steps li { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line-light); }
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps b { font: 800 22px/1 var(--display); color: var(--brass); }
.steps span { font-weight: 600; font-size: 18px; }

.blueprint {
  position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto;
  border: 1.5px dashed rgba(243,236,224,.35); border-radius: 24px;
  display: grid; place-items: center; padding: 14%;
}
.blueprint img { width: 100%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.dim { position: absolute; font: 700 20px var(--display); color: var(--kraft); letter-spacing: .05em; }
.dim::before, .dim::after { content: ""; position: absolute; background: rgba(216,195,160,.6); }
.dim--w { bottom: 7%; left: 50%; transform: translateX(-50%); }
.dim--w::before, .dim--w::after { top: 50%; height: 1.5px; width: 90px; }
.dim--w::before { right: calc(100% + 10px); }
.dim--w::after { left: calc(100% + 10px); }
.dim--l { right: 6%; top: 50%; transform: translateY(-50%); }
.dim--l::before, .dim--l::after { left: 50%; width: 1.5px; height: 80px; }
.dim--l::before { bottom: calc(100% + 8px); }
.dim--l::after { top: calc(100% + 8px); }
.swatches { position: absolute; top: 6%; left: 6%; display: flex; gap: 8px; }
.swatches i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid rgba(243,236,224,.8); }

/* ---------- styles grid ---------- */
.style-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.style-grid li { background: var(--paper); }
.style-grid a { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 26px; text-decoration: none; position: relative; transition: background .3s; }
.style-grid a::after {
  content: "Design →"; position: absolute; top: 18px; right: 18px;
  font: 700 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--barn);
  opacity: 0; transform: translateX(-6px); transition: all .3s var(--ease);
}
.style-grid a:hover { background: #FBF8F2; }
.style-grid a:hover::after { opacity: 1; transform: none; }
.style-grid img { width: 72%; aspect-ratio: 1; object-fit: contain; margin: 4px auto 14px; transition: transform .5s var(--ease); }
.style-grid a:hover img { transform: scale(1.06) rotate(-1.5deg); }
.style-grid h3 { font: 800 22px/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.style-grid p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ---------- why ---------- */
.why { background: var(--paper-2); }
.why__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.why__photo { margin: 0; position: relative; }
.why__photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; box-shadow: var(--shadow); }
.why__photo figcaption { margin-top: 12px; font: italic 400 18px var(--serif); color: var(--ink-2); }
.why__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.why__list li { padding-top: 18px; border-top: 2px solid var(--ink); }
.why__list h3 { font: 800 24px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.why__list p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ---------- buying ---------- */
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.buy-card {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius);
  background: #FBF8F2; box-shadow: 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.buy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.buy-card__tag { font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--barn); }
.buy-card h3 { font: 900 40px/1 var(--display); text-transform: uppercase; margin: 10px 0 6px; }
.buy-card__big { font: italic 400 26px/1.1 var(--serif); color: var(--pine); margin-bottom: 14px; }
.buy-card__big span { font: 900 44px var(--display); font-style: normal; }
.buy-card > p { color: var(--ink-2); font-size: 15.5px; }
.buy-card ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.buy-card li { padding-left: 26px; position: relative; font-weight: 600; font-size: 15px; }
.buy-card li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 8px; border-left: 2.5px solid var(--pine-3); border-bottom: 2.5px solid var(--pine-3); transform: rotate(-45deg); }
.buy-card--feature { background: var(--barn); color: var(--paper); box-shadow: none; transform: translateY(-10px); }
.buy-card--feature:hover { transform: translateY(-14px); }
.buy-card--feature .buy-card__tag, .buy-card--feature .buy-card__big { color: var(--kraft); }
.buy-card--feature > p { color: rgba(243,236,224,.85); }
.buy-card--feature ul { border-color: rgba(243,236,224,.25); }
.buy-card--feature li::before { border-color: var(--kraft); }
.fine { margin-top: 26px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- tali ---------- */
.tali { padding-top: 0; }
.tali__grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.tali__card {
  background: var(--pine); color: var(--paper); border-radius: 20px; padding: 34px 28px; text-align: center;
  box-shadow: var(--shadow); transform: rotate(-1.5deg);
}
.tali__avatar {
  width: 148px; height: 148px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
  background: var(--kraft); display: grid; place-items: center;
  border: 4px solid var(--paper);
}
.tali__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tali__avatar span { font: 900 72px var(--display); color: var(--pine); }
.tali__sig { font: italic 400 34px/1 var(--serif); margin-bottom: 6px; }
.tali__role { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--kraft); margin-bottom: 20px; }
.tali__actions { display: flex; gap: 8px; justify-content: center; }
.tali__actions .btn--ghost { color: var(--paper); border-color: var(--paper); }
.tali__actions .btn--ghost:hover { background: var(--paper); color: var(--pine); }
.tali blockquote {
  margin: 0 0 24px; font: 400 clamp(26px, 3.2vw, 40px)/1.15 var(--serif); color: var(--ink);
  text-indent: -.4em;
}
.tali__copy > p:last-child { color: var(--ink-2); max-width: 38em; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); }
.faq__grid .section__note { margin-top: 20px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 700 19px/1.3 var(--body);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2.5px solid var(--barn); border-bottom: 2.5px solid var(--barn);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__list details p { color: var(--ink-2); padding-right: 40px; margin: -6px 0 22px; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact__ways { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 32px 0 20px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.contact__ways a { background: var(--ink); padding: 18px 20px; text-decoration: none; font-weight: 600; font-size: 16px; transition: background .2s; overflow-wrap: anywhere; }
.contact__ways a:hover { background: #2a2825; }
.contact__ways small { display: block; font: 700 11.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--kraft); margin-bottom: 4px; }
.contact__hours { color: rgba(243,236,224,.75); font-size: 15px; }
.contact__hours b { color: var(--paper); }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #2a2825; border: 1px solid var(--line-light); }
.map--link { display: grid; place-content: center; gap: 6px; text-align: center; text-decoration: none; padding: 20px;
  background: repeating-linear-gradient(45deg, #2a2825 0 12px, #26241f 12px 24px); }
.map--link span { font: 800 26px var(--display); text-transform: uppercase; color: var(--paper); }
.map--link small { color: var(--kraft); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

.form { background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form h3 { font: 900 40px/1 var(--display); text-transform: uppercase; }
.form__sub { color: var(--ink-2); margin: -6px 0 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font: 700 13px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: 500 16px var(--body); color: var(--ink); text-transform: none; letter-spacing: 0;
  background: #FBF8F2; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(31,59,45,.12); }
.form .is-invalid { border-color: var(--barn); }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__status.ok { color: var(--pine-3); }
.form__status.err { color: var(--barn); }

/* ---------- footer ---------- */
.footer { background: #141311; color: rgba(243,236,224,.72); padding: 60px 0 110px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: 40px; }
.footer__brand { font: 900 28px/1 var(--display); text-transform: uppercase; color: var(--paper); }
.footer__h { font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--kraft); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--paper); text-decoration: underline; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-light); font-size: 12.5px; }

/* ---------- mobile dock ---------- */
.dock { display: none; }

/* ---------- reveal ---------- */
.js .reveal { transform: translateY(22px); transition: transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* hero animates on load, not on scroll */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s var(--ease) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .32s; }
.hero__art.reveal { animation-delay: .2s; }
@keyframes rise { from { opacity: .001; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .style-grid { grid-template-columns: repeat(3, 1fr); }
  .nav__links { gap: 20px; }
}

@media (max-width: 920px) {
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 0 12px;
    background: var(--pine); border: 0; border-radius: 12px; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 100%; height: 2px; background: var(--paper); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--ease), visibility .4s;
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .hero__grid, .builder__grid, .why__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; width: 100%; margin-inline: auto; }
  .builder__art { order: -1; }
  .blueprint { max-width: 380px; }
  .buy-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .buy-card--feature, .buy-card--feature:hover { transform: none; }
  .tali__grid { grid-template-columns: 1fr; }
  .tali__card { max-width: 340px; width: 100%; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }

  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px;
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 60;
    background: rgba(28,27,25,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 6px; border-radius: 18px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .dock.is-shown { transform: none; }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 13px 8px; border-radius: 13px; color: var(--paper); text-decoration: none;
    font: 700 15px var(--body);
  }
  .dock svg { width: 19px; height: 19px; }
  .dock__main { background: var(--barn); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .promo p { font-size: 13px; }
  .promo__phone { display: none; }
  .nav__inner { height: 66px; }
  .brand__name { font-size: 23px; }
  .brand__mark { width: 36px; height: 36px; }
  .hero { padding-top: 28px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .stamp { width: 96px; height: 96px; }
  .sun { width: 480px; top: -230px; right: -200px; }
  .stamp text { font-size: 15px; }
  .stamp span { font-size: 26px; }
  .marquee span { font-size: 22px; }
  .style-grid { grid-template-columns: 1fr 1fr; }
  .style-grid a { padding: 16px 14px 20px; }
  .style-grid a::after { display: none; }
  .style-grid h3 { font-size: 19px; }
  .style-grid p { font-size: 13.5px; }
  .why__list { grid-template-columns: 1fr; }
  .inv__img { aspect-ratio: 4 / 3.4; }
  .inv-grid { gap: 22px; }
  .inv-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .contact__ways { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .dim--w::before, .dim--w::after { width: 50px; }
}
