/* ============================================================
   Barnhouse Structures — Start Your Project
   Aesthetic: bold rustic-industrial
   charcoal · warm oak · weathered steel · cream
   Bebas Neue (display) + Hanken Grotesk (body)
   ============================================================ */

:root {
  /* palette */
  --char:       #1a1613;   /* warm charcoal near-black */
  --char-2:     #221d18;
  --char-3:     #2c2620;
  --cream:      #f4ecdc;   /* warm paper */
  --cream-2:    #ece0c9;
  --paper:      #faf4e8;
  --oak:        #c1813f;   /* warm oak amber */
  --oak-deep:   #9a6128;
  --oak-soft:   #dcab6c;
  --steel:      #71777c;   /* weathered steel */
  --steel-lt:   #aeb3b6;
  --ink:        #211c16;   /* text on cream */
  --ink-soft:   #5b5247;
  --ink-faint:  #8a8071;

  --line-dark:  rgba(244,236,220,.14);
  --line-light: rgba(33,28,22,.12);

  /* type */
  --display: "Bebas Neue", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* metrics */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;
  --shadow-card: 0 30px 60px -28px rgba(20,16,12,.55), 0 8px 20px -12px rgba(20,16,12,.4);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--oak); color: var(--paper); }

/* Bebas Neue is a single-weight, all-caps condensed face. Give every
   display heading a touch of tracking so the caps breathe. */
.hero h1, .section-head h2, .cta h2, .intro__statement,
.type-card h3, .step h3, .value h3, .value .big,
.marquee__track span, .process__media figcaption,
.brand .wordmark, em.accent, .step__n {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--oak-deep);
}
.eyebrow .gable { width: 16px; height: 16px; flex: none; }
.eyebrow--light { color: var(--oak-soft); }

.section { position: relative; padding-block: clamp(72px, 10vw, 150px); }
.section-head { max-width: 760px; }
.section-head h2 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: .94;
  letter-spacing: .012em;
  margin-top: .34em;
}
.section-head p.lede {
  margin-top: 1.2em; font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--ink-soft); max-width: 56ch;
}
/* accent words inside display headings — oak, same Bebas face (no italic) */
em.accent { color: var(--oak-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-weight: 700; font-size: .98rem; letter-spacing: .005em;
  padding: 1.02em 1.7em; border-radius: var(--radius);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--oak { background: var(--oak); color: #1c1206; box-shadow: 0 12px 28px -10px rgba(193,129,63,.6); }
.btn--oak:hover { background: var(--oak-soft); transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(193,129,63,.7); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn--ghost:hover { background: rgba(244,236,220,.07); box-shadow: inset 0 0 0 1.5px rgba(244,236,220,.4); transform: translateY(-3px); }
.btn--dark { background: var(--char); color: var(--cream); }
.btn--dark:hover { background: var(--char-3); transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(20,16,12,.86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  padding-block: 11px;
  box-shadow: 0 1px 0 var(--line-dark);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .coin {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--cream); padding: 5px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5), inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .4s var(--ease);
}
.brand:hover .coin { transform: rotate(-6deg) scale(1.04); }
.brand .coin img { width: 100%; height: 100%; object-fit: contain; }
.brand .wordmark {
  color: var(--cream);
  font-size: 1.5rem; line-height: .9; letter-spacing: .05em;
}
.brand .wordmark small {
  display: block; font-family: var(--body); font-weight: 600;
  font-size: .56rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--oak-soft); margin-top: 5px;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--cream); font-weight: 600; font-size: .95rem;
  opacity: .9; transition: opacity .3s, color .3s;
}
.header-phone:hover { opacity: 1; color: var(--oak-soft); }
.header-phone svg { width: 1em; height: 1em; }
.header-actions .btn { padding: .72em 1.25em; font-size: .9rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.08); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,.55) 0%, rgba(20,16,12,.05) 30%, rgba(20,16,12,.12) 55%, rgba(20,16,12,.82) 100%),
    linear-gradient(75deg, rgba(20,16,12,.75) 0%, rgba(20,16,12,.18) 48%, rgba(20,16,12,0) 72%);
}
.hero__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 11vh, 130px); }
.hero__content { max-width: 900px; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(3.6rem, 10.5vw, 8.4rem);
  line-height: .86; letter-spacing: .012em;
  margin: .22em 0 0;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero h1 .ital { color: var(--oak-soft); }
.hero__sub {
  margin-top: 1.3em; max-width: 52ch;
  color: rgba(244,236,220,.9); font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55;
}
.hero__cta { margin-top: 2.1em; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust {
  margin-top: 2.3em; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  color: rgba(244,236,220,.78); font-size: .86rem; font-weight: 600; letter-spacing: .01em;
}
.hero__trust span { display: inline-flex; align-items: center; gap: .55em; }
.hero__trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--oak); flex: none; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1;
  color: rgba(244,236,220,.55); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--oak-soft), transparent); animation: cuefall 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cuefall { 0%{ transform: scaleY(0); opacity:0 } 40%{opacity:1} 100%{ transform: scaleY(1); opacity:0 } }

/* hero load stagger */
.reveal-hero > * { opacity: 0; transform: translateY(26px); animation: heroUp .9s var(--ease) forwards; }
.reveal-hero > *:nth-child(1){ animation-delay:.15s } .reveal-hero > *:nth-child(2){ animation-delay:.28s }
.reveal-hero > *:nth-child(3){ animation-delay:.41s } .reveal-hero > *:nth-child(4){ animation-delay:.54s }
.reveal-hero > *:nth-child(5){ animation-delay:.67s }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* ============================================================
   MARQUEE / TRUST BAND
   ============================================================ */
.band { background: var(--char); color: var(--cream); border-block: 1px solid var(--line-dark); overflow: hidden; }
.marquee { display: flex; gap: 0; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; gap: 0; padding-block: 20px; animation: scrollx 32s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; font-size: 1.9rem; letter-spacing: .04em; color: rgba(244,236,220,.85); padding-inline: 30px; }
.marquee__track .gable { width: 18px; height: 18px; color: var(--oak); opacity: .9; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.band:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   INTRO / STATEMENT
   ============================================================ */
.intro { background: var(--cream); }
.intro__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.intro__statement {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.0; letter-spacing: .012em;
  max-width: 18ch;
}
.intro__statement b { font-weight: 400; color: var(--oak-deep); }
.intro__body { max-width: 46ch; color: var(--ink-soft); font-size: 1.06rem; }
.intro__body p + p { margin-top: 1em; }
@media (min-width: 880px) {
  .intro__grid { grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: end; }
}

/* ============================================================
   BUILD TYPES
   ============================================================ */
.types { background: var(--paper); }
.types .section-head { margin-bottom: 52px; }
.type-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 680px) { .type-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) {
  .type-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 1fr; }
  .type-card:nth-child(1){ grid-column: span 7; }
  .type-card:nth-child(2){ grid-column: span 5; }
  .type-card:nth-child(3){ grid-column: span 5; }
  .type-card:nth-child(4){ grid-column: span 7; }
}
.type-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 340px; display: flex; align-items: flex-end;
  color: var(--cream); box-shadow: var(--shadow-card);
  isolation: isolate;
}
.type-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.type-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(transparent 28%, rgba(16,12,9,.4) 56%, rgba(16,12,9,.9) 100%);
  transition: background .5s var(--ease);
}
.type-card:hover img { transform: scale(1.07); }
.type-card:hover::after { background: linear-gradient(transparent 18%, rgba(16,12,9,.5) 50%, rgba(16,12,9,.94) 100%); }
.type-card__body { padding: 30px 30px 28px; }
.type-card__num { font-family: var(--body); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oak-soft); }
.type-card h3 { font-size: clamp(2rem, 3.6vw, 2.7rem); line-height: .96; margin: .28em 0 .3em; letter-spacing: .016em; }
.type-card p { font-size: .96rem; color: rgba(244,236,220,.82); max-width: 38ch; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--char); color: var(--cream); position: relative; }
.process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(193,129,63,.16), transparent 60%),
    radial-gradient(700px 600px at -6% 100%, rgba(113,119,124,.16), transparent 60%);
}
.process .wrap { position: relative; }
.process .section-head h2 { color: var(--cream); }
.process .section-head p.lede { color: rgba(244,236,220,.72); }
.process__layout { display: grid; grid-template-columns: 1fr; gap: 48px; margin-top: 56px; align-items: start; }
@media (min-width: 960px) { .process__layout { grid-template-columns: 1fr 1fr; gap: 72px; } }
.process__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.process__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.process__media figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 24px 22px 20px;
  background: linear-gradient(transparent, rgba(16,12,9,.85));
  font-size: 1.5rem; letter-spacing: .02em; color: var(--cream);
}
@media (min-width: 960px) { .process__media { position: sticky; top: 96px; } }

.steps { list-style: none; counter-reset: step; }
.step { position: relative; padding: 26px 0 26px 70px; border-top: 1px solid var(--line-dark); }
.step:last-child { border-bottom: 1px solid var(--line-dark); }
.step__n {
  counter-increment: step; position: absolute; left: 0; top: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem; color: var(--oak-soft); line-height: 1;
  box-shadow: inset 0 0 0 1.5px var(--line-dark);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step:hover .step__n { background: var(--oak); color: #1c1206; box-shadow: inset 0 0 0 1.5px var(--oak); }
.step h3 { font-size: 1.8rem; letter-spacing: .016em; line-height: 1; }
.step p { margin-top: .55em; color: rgba(244,236,220,.74); font-size: .98rem; max-width: 46ch; }

/* ============================================================
   WHY / VALUE
   ============================================================ */
.why { background: var(--cream-2); }
.value-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 54px; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value {
  background: var(--paper); border-radius: var(--radius); padding: 34px 30px 36px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -30px rgba(20,16,12,.5);
  border: 1px solid var(--line-light);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.value:hover { transform: translateY(-5px); box-shadow: 0 30px 56px -30px rgba(20,16,12,.5); }
.value__icon { width: 48px; height: 48px; color: var(--oak-deep); margin-bottom: 20px; }
.value__icon svg { width: 100%; height: 100%; }
.value h3 { font-size: 1.85rem; letter-spacing: .016em; line-height: .98; }
.value p { margin-top: .5em; color: var(--ink-soft); font-size: 1rem; }
.value .big { font-size: 3.6rem; color: var(--oak-deep); line-height: .85; display:block; margin-bottom: 8px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  position: relative; isolation: isolate; color: var(--cream);
  text-align: center; overflow: hidden;
  padding-block: clamp(80px, 12vw, 150px);
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.cta__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(rgba(20,16,12,.84), rgba(20,16,12,.9)); }
.cta .eyebrow { justify-content: center; width: 100%; }
.cta h2 {
  line-height: .9; letter-spacing: .012em;
  font-size: clamp(3.2rem, 9vw, 7rem); margin: .28em auto .4em; max-width: 16ch;
}
.cta h2 .ital { color: var(--oak-soft); }
.cta p { max-width: 50ch; margin: 0 auto; color: rgba(244,236,220,.82); font-size: 1.1rem; }
.cta__buttons { margin-top: 2.3em; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta__small { margin-top: 1.8em; font-size: .86rem; color: rgba(244,236,220,.6); }
.cta__small a { color: var(--oak-soft); text-decoration: underline; text-underline-offset: 3px; }
.cta__consent { max-width: 62ch; margin: 1.5em auto 0; font-size: .76rem; line-height: 1.6; color: rgba(244,236,220,.52); }
.cta__consent a { color: var(--oak-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--char); color: var(--cream); padding-block: 64px 36px; border-top: 1px solid var(--line-dark); }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 760px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer .brand .coin { width: 52px; height: 52px; }
.footer .brand .wordmark { font-size: 1.7rem; }
.footer__tag { margin-top: 18px; color: rgba(244,236,220,.66); max-width: 34ch; font-size: .98rem; }
.footer h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oak-soft); margin-bottom: 16px; font-weight: 700; }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__list a, .footer__list span { color: rgba(244,236,220,.82); font-size: 1rem; transition: color .3s; display: inline-flex; align-items: center; gap: .6em; }
.footer__list a:hover { color: var(--oak-soft); }
.footer__list svg { width: 1em; height: 1em; color: var(--oak); flex: none; }
.footer__consent {
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-dark);
  max-width: 96ch; font-size: .76rem; line-height: 1.65; color: rgba(244,236,220,.46);
}
.footer__consent a { color: rgba(244,236,220,.72); text-decoration: underline; text-underline-offset: 2px; }
.footer__bottom {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  font-size: .82rem; color: rgba(244,236,220,.5);
}
.footer__bottom a { color: rgba(244,236,220,.7); }
.footer__bottom a:hover { color: var(--oak-soft); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.fade { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fade.in { opacity: 1; transform: none; }
.fade.d1 { transition-delay: .08s } .fade.d2 { transition-delay: .16s } .fade.d3 { transition-delay: .24s } .fade.d4 { transition-delay: .32s }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__bg img { transform: none; }
  .fade { opacity: 1; transform: none; }
}

/* ---------- responsive header trims ---------- */
@media (max-width: 680px) {
  .brand .wordmark small { display: none; }
  .header-phone span { display: none; }
}
@media (max-width: 460px) {
  .brand .wordmark { font-size: 1.32rem; }
  .header-actions .btn .full { display: none; }
}

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal-page { background: var(--cream); }
.legal-page .site-header { position: sticky; background: var(--char); box-shadow: 0 1px 0 var(--line-dark); }
.legal { padding: clamp(48px, 8vw, 90px) 0 clamp(64px, 9vw, 110px); }
.legal__back { display: flex; width: max-content; align-items: center; gap: .45em; color: var(--ink-soft); font-weight: 600; font-size: .9rem; margin-bottom: 28px; transition: color .3s; }
.legal__back:hover { color: var(--oak-deep); }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 4.6rem); letter-spacing: .012em; line-height: .95; margin: .26em 0 .12em; }
.legal__updated { color: var(--ink-faint); font-size: .9rem; margin-bottom: 2.6em; }
.legal__body { max-width: 72ch; }
.legal__body h2 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; letter-spacing: .014em; line-height: 1; margin: 2em 0 .55em; color: var(--ink); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.legal__body p { margin-bottom: 1em; }
.legal__body ul { margin: 0 0 1.1em 1.2em; }
.legal__body li { margin-bottom: .45em; }
.legal__body a { color: var(--oak-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--ink); font-weight: 700; }
.legal__sms { background: var(--paper); border: 1px solid var(--line-light); border-left: 3px solid var(--oak); border-radius: var(--radius); padding: 22px 24px 8px; margin: 1.5em 0; }
.legal__sms p:last-child { margin-bottom: 14px; }
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
