/* Concrete Essentials, Hesperia CA — "The site IS the pour."
   Chromatic pour-grey drenched build. Palette:
   fresh-pour #6f7276 / deeper #4a4d52 / cured wash #9aa0a3 /
   bone text #f2ede0 / single rebar-rust accent #b0562a
   Display: Black Han Sans (self-hosted). Body: system stack. Italic accent: Georgia. */

@font-face {
  font-family: 'Black Han Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/black-han-sans-latin.woff2') format('woff2');
}

:root {
  --pour: #6f7276;
  --pour-deep: #4a4d52;
  --pour-darker: #3c3f45;
  --cured: #9aa0a3;
  --bone: #f2ede0;
  --bone-dim: rgba(242, 237, 224, 0.72);
  --bone-faint: rgba(242, 237, 224, 0.42);
  --rust: #b0562a;
  --ink: #2e3138;
  --ink-soft: #43474e;
  --display: 'Black Han Sans', 'Arial Black', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-2: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.7rem + 4.5vw, 5rem);
  --step-6: clamp(3.4rem, 1.9rem + 7.5vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pour);
  color: var(--bone);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--rust); color: var(--bone); }

/* Grain over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(74, 77, 82, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 237, 224, 0.14);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--display);
  font-size: clamp(1rem, 0.85rem + 1vw, 1.35rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.1;
}
.wordmark .wm-tick {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  background: var(--rust);
  margin-right: 0.5em;
  transform: translateY(-0.05em) rotate(45deg);
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--rust);
  color: var(--bone);
  text-decoration: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.header-phone:hover { transform: translateY(-2px); background: #c05f2f; }
.header-phone:active { transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 96svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--pour-deep);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: pour-settle 14s ease-out forwards;
}
@keyframes pour-settle { from { transform: scale(1.14); } to { transform: scale(1.06); } }
.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(60, 63, 69, 0.96) 0%, rgba(60, 63, 69, 0.72) 34%, rgba(74, 77, 82, 0.42) 62%, rgba(74, 77, 82, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--section-pad) + 2rem) var(--gutter) var(--section-pad);
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::before {
  content: '';
  width: 2.6em;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-6);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
  max-width: 12ch;
}
.hero h1 .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.12em;
}
.hero-sub {
  font-size: var(--step-2);
  line-height: 1.45;
  max-width: 34ch;
  color: var(--bone-dim);
  margin: 0 0 2.2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 2.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  text-decoration: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 1em 1.7em;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--rust); color: var(--bone); }
.btn-primary:hover { transform: translateY(-3px); background: #c05f2f; }
.btn-ghost { border: 1px solid rgba(242, 237, 224, 0.5); color: var(--bone); }
.btn-ghost:hover { transform: translateY(-3px); background: rgba(242, 237, 224, 0.1); }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.2rem;
  font-size: 0.95rem;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}
.hero-trust strong { color: var(--bone); font-weight: 700; }
.hero-trust .dot-sep { color: var(--rust); font-weight: 700; }

/* Hero entrance: lines rise inside clipped masks */
.mask-line { display: block; overflow: hidden; }
.mask-line > span { display: block; transform: translateY(110%); animation: line-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.mask-line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes line-up { to { transform: translateY(0); } }
.hero .eyebrow, .hero .hero-sub, .hero .hero-ctas, .hero .hero-trust {
  opacity: 0;
  animation: fade-in 0.9s ease forwards;
  animation-delay: 0.45s;
}
.hero .hero-sub { animation-delay: 0.6s; }
.hero .hero-ctas { animation-delay: 0.75s; }
.hero .hero-trust { animation-delay: 0.9s; }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Screed divider (motif) ---------- */
.screed {
  display: block;
  width: 100%;
  height: 46px;
  overflow: hidden;
}
.screed svg { width: 100%; height: 100%; display: block; }
.screed .screed-line {
  stroke: rgba(242, 237, 224, 0.35);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}
.screed .screed-line.rust { stroke: var(--rust); stroke-width: 3; }
.screed .tick { stroke: rgba(242, 237, 224, 0.5); stroke-width: 2; }
.screed.in-view .screed-line { animation: screed-sweep 1.4s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.screed.in-view .screed-line:nth-of-type(2) { animation-delay: 0.15s; }
.screed.in-view .screed-line:nth-of-type(3) { animation-delay: 0.3s; }
@keyframes screed-sweep { to { stroke-dashoffset: 0; } }
.screed-band {
  padding: 0;
  background: inherit;
}
.screed-band .screed { margin: 0 auto; max-width: 1280px; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--pour-deep);
  padding: clamp(2.6rem, 6vw, 4.5rem) 0;
  border-top: 1px solid rgba(242, 237, 224, 0.12);
}
.trust-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.trust-item { position: relative; padding-left: 1.2rem; }
.trust-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 3px;
  background: var(--rust);
}
.trust-num {
  font-family: var(--display);
  font-size: var(--step-3);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 0.35rem;
}
.trust-label { color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- Sections shared ---------- */
.section { padding: var(--section-pad) 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 60ch; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.section-head h2 .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}
.section-head .lede { color: var(--bone-dim); font-size: var(--step-0); max-width: 56ch; }

/* ---------- Services: numbered editorial rows ---------- */
.services { background: var(--pour); }
.service-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 4vw, 2.8rem) 0;
  border-top: 1px solid rgba(242, 237, 224, 0.18);
  align-items: start;
  text-decoration: none;
}
.service-row:last-of-type { border-bottom: 1px solid rgba(242, 237, 224, 0.18); }
.service-num {
  font-family: var(--display);
  font-size: var(--step-3);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bone-faint);
}
.service-row h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-3);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.7em;
  flex-wrap: wrap;
}
.service-row h3 .row-tick {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: var(--rust);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.service-row:hover h3 .row-tick { transform: rotate(135deg) scale(1.25); }
.service-row p { color: var(--bone-dim); max-width: 62ch; margin: 0; }
.service-row:hover h3 { color: var(--bone); }

/* ---------- Pour-craft split (owner story) ---------- */
.craft { background: var(--pour-deep); }
.craft-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.craft-photo-frame {
  position: relative;
  border: 1px solid rgba(242, 237, 224, 0.2);
  padding: 0.9rem;
}
.craft-photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.82) contrast(1.04); }
.craft-photo-frame .rebar-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  color: var(--rust);
}
.rebar-corner::before, .rebar-corner::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.rebar-corner::before { left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); }
.rebar-corner::after { top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); }
.rebar-corner.tl { top: -13px; left: -13px; }
.rebar-corner.tr { top: -13px; right: -13px; }
.rebar-corner.bl { bottom: -13px; left: -13px; }
.rebar-corner.br { bottom: -13px; right: -13px; }
.photo-caption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.craft-copy h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.craft-copy h2 .accent { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--rust); }
.craft-copy p { color: var(--bone-dim); }
.craft-copy .sig {
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--bone);
}
.craft-copy .sig small {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-top: 0.35rem;
}

/* ---------- Proof band ---------- */
.proof { background: var(--pour); }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.proof-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  border: 1px solid rgba(242, 237, 224, 0.2);
}
.proof-big {
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 1;
  color: var(--rust);
  font-variant-numeric: tabular-nums;
  display: block;
}
.proof-stars {
  letter-spacing: 0.35em;
  color: var(--rust);
  font-size: 1.2rem;
  margin: 0.6rem 0 1rem;
}
.proof-copy p { color: var(--bone-dim); }
.proof-copy .attribution {
  font-size: 0.85rem;
  color: var(--bone-faint);
  letter-spacing: 0.04em;
  margin-top: 0.8rem;
}
.proof-desert {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 237, 224, 0.2);
}
.proof-desert h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  margin: 0 0 0.5rem;
}

/* ---------- Process strip ---------- */
.process { background: var(--pour-deep); }
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 1.4rem; }
.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--rust) 0 18%, rgba(242, 237, 224, 0.25) 18% 100%);
}
.process-step .step-k {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--rust);
  display: block;
  margin-bottom: 0.7rem;
}
.process-step h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  margin: 0 0 0.6rem;
}
.process-step p { color: var(--bone-dim); font-size: 0.97rem; }

/* ---------- Service area band ---------- */
.area {
  background: var(--cured);
  color: var(--ink);
}
.area .wrap { text-align: left; }
.area .eyebrow { color: var(--rust); }
.area h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.05;
  margin: 0 0 1.1rem;
  text-wrap: balance;
  max-width: 20ch;
}
.area h2 .accent { font-family: var(--serif); font-style: italic; font-weight: 400; }
.area p { color: var(--ink-soft); max-width: 60ch; }
.area-facts {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.4rem;
  font-variant-numeric: tabular-nums;
}
.area-facts span { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 600; }
.area-facts .tick {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  background: var(--rust);
  transform: rotate(45deg);
}

/* ---------- FAQ ---------- */
.faq { background: var(--pour-deep); }
.faq-list { max-width: 820px; }
.faq-item {
  border-top: 1px solid rgba(242, 237, 224, 0.18);
}
.faq-item:last-child { border-bottom: 1px solid rgba(242, 237, 224, 0.18); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 3rem 1.3rem 0;
  position: relative;
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0.4rem;
  top: 1.15rem;
  font-family: var(--body);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--rust);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 0 1.4rem;
  color: var(--bone-dim);
  max-width: 66ch;
}
.faq-item .faq-a a { color: var(--bone); font-weight: 600; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--rust);
  color: var(--bone);
  position: relative;
  overflow: hidden;
}
.final-cta .wrap { position: relative; z-index: 2; text-align: left; }
.final-cta .eyebrow { color: var(--bone); }
.final-cta .eyebrow::before { background: var(--bone); }
.final-cta h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.98;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}
.final-cta h2 .accent { font-family: var(--serif); font-style: italic; font-weight: 400; }
.final-cta .lede { color: rgba(242, 237, 224, 0.85); max-width: 52ch; font-size: var(--step-0); }
.final-phone {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  margin-top: 2rem;
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s ease;
  width: fit-content;
}
.final-phone:hover { transform: translateX(8px); }
.final-cta .big-screed {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  opacity: 0.5;
  z-index: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pour-darker);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-grid h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
}
.footer-grid p, .footer-grid li {
  color: var(--bone-dim);
  font-size: 0.95rem;
  list-style: none;
  margin: 0 0 0.5rem;
}
.footer-grid ul { padding: 0; margin: 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--bone); text-decoration: underline; }
.footer-fine {
  max-width: 1280px;
  margin: 2.5rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(242, 237, 224, 0.14);
  color: var(--bone-faint);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
.js .reveal.d3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid, .proof-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 64px 1fr; }
  .header-phone { padding: 0.6em 1em; font-size: 0.92rem; }
  .hero { min-height: 92svh; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  .mask-line > span { animation: none; transform: none; }
  .hero .eyebrow, .hero .hero-sub, .hero .hero-ctas, .hero .hero-trust { animation: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .screed.in-view .screed-line { animation: none; stroke-dashoffset: 0; }
}
