/* Kelvin Forge — design system
   Discipline (17 Aug 2026): ONE typeface, ONE weight (Space Grotesk 500, self-hosted),
   near-monochrome paper+ink, single green accent, 1px hairlines, uppercase pills,
   giant stat numbers. Hierarchy comes from size and spacing, never weight.
   Motif: FDM layer lines (fine horizontal rules). */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --plaster: #F5F1EA;
  --plaster-deep: #ECE6DB;
  --ink: #16181D;
  --ink-soft: #3E424B;
  --ink-faint: rgba(22, 24, 29, 0.66);
  --line: rgba(22, 24, 29, 0.14);
  --accent: #0E7A3C;
  --accent-deep: #0B6E36;
  --card: #FFFFFF;
  --wa: #0E7A3C;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(22,24,29,.05), 0 8px 24px rgba(22,24,29,.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: 'Space Grotesk', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

strong, b, th { font-weight: 500; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--accent-deep); text-decoration-color: var(--accent-deep); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; font-weight: 500; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--plaster); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

[id] { scroll-margin-top: 76px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--plaster) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; letter-spacing: -0.02em; font-size: 1.15rem; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.brand .tld { color: var(--ink-faint); font-weight: 500; }

.site-nav { display: none; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 12px; border-radius: 999px; color: var(--ink-soft);
}
.site-nav a:hover { background: var(--plaster-deep); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--plaster); }

.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-weight: 500; cursor: pointer;
}
.btn.header-cta { display: none; }

@media (min-width: 920px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .btn.header-cta { display: inline-flex; }
}
@media (max-width: 919.98px) {
  .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--plaster); border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; gap: 2px;
  }
  .site-nav.open a { padding: 12px 14px; border-radius: 12px; font-size: 1.05rem; }
}
.no-js .site-nav { display: flex; flex-wrap: wrap; margin-left: 0; }
.no-js .nav-toggle { display: none; }
.no-js .est-result { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 13px 22px; font-weight: 500; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { background: var(--ink); color: var(--plaster); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--plaster-deep); color: var(--ink); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: #0B6E36; color: #fff; }
.btn.molten { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.molten:hover { background: var(--accent-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(44px, 7vw, 84px); }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 18px;
}
.hero .kicker::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.hero h1 { max-width: 17ch; }
.hero .lede { margin: 18px 0 28px; }
.layerlines {
  position: absolute; inset: auto -5% -18% -5%; height: 46%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 7px,
    rgba(22,24,29,0.055) 7px, rgba(22,24,29,0.055) 8px
  );
  transform: rotate(-2deg);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  mask-image: linear-gradient(to top, #000 30%, transparent);
}
.hero-note { color: var(--ink-faint); font-size: 0.92rem; margin-top: 16px; }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 7vw, 76px) 0; }
main > section + section { border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main > .section > .wrap {
      animation: rise .6s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Stat strip ---------- */
.stats-band { padding: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: clamp(22px, 4vw, 38px) 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .n { display: block; font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.02em; }
.stat .l { display: block; margin-top: 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-faint); }
@media (max-width: 699.98px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
}

/* ---------- Full-bleed photo band ---------- */
.photo-band {
  position: relative; min-height: clamp(260px, 42vh, 460px);
  background: url('/assets/og.png') center / cover no-repeat;
}
.photo-band::after { content: ""; position: absolute; inset: 0; background: rgba(22, 24, 29, 0.35); }
.section.tint { background: var(--plaster-deep); }
.section.dark { background: var(--ink); color: var(--plaster); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: var(--plaster); }
.section.dark .card { background: #21242B; color: var(--plaster); border-color: rgba(245,241,234,.12); }
.section-head { max-width: 62ch; margin-bottom: clamp(22px, 4vw, 40px); }
.section-head .eyebrow {
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 8px;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 700px) and (max-width: 999.98px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 2px; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--plaster); border: 1px solid var(--line); margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card-link { text-decoration: none; display: block; height: 100%; }
.card-link .card { height: 100%; transition: transform .14s ease, box-shadow .14s ease; }
.card-link:hover .card { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,24,29,.06), 0 14px 34px rgba(22,24,29,.12); }
.card .more { font-weight: 500; color: var(--accent-deep); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1em; list-style: none; }
.pills li {
  border: 1px solid rgba(22, 24, 29, 0.52); background: transparent;
  padding: 7px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.three { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-weight: 500; font-size: 0.95rem; color: var(--accent);
  letter-spacing: 0.06em; margin-bottom: 10px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); }
tbody tr:last-child td { border-bottom: none; }
td strong { white-space: nowrap; }

/* ---------- Estimator ---------- */
.estimator { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.estimator .fields { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 720px) { .estimator .fields { grid-template-columns: repeat(4, 1fr); } }
.field label { display: block; font-weight: 500; font-size: 0.88rem; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 12px; font: inherit; border: 1px solid rgba(22, 24, 29, 0.55);
  border-radius: var(--radius-sm); background: var(--plaster); color: var(--ink);
}
.est-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; border-top: 1px dashed var(--line); padding-top: 18px; }
.est-result .price { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; }
.est-result .note { color: var(--ink-faint); font-size: 0.9rem; flex-basis: 100%; margin: 0; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; font-weight: 500; padding: 18px 20px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; font-size: 1.4rem; font-weight: 500; color: var(--accent); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "–" / ""; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.work-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.work-card .thumb {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background:
    radial-gradient(circle at 22% 28%, rgba(168,123,63,.18) 0 6px, transparent 7px),
    radial-gradient(circle at 68% 18%, rgba(201,74,28,.16) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 62%, rgba(22,24,29,.10) 0 7px, transparent 8px),
    radial-gradient(circle at 38% 74%, rgba(168,123,63,.14) 0 5px, transparent 6px),
    radial-gradient(circle at 56% 46%, rgba(22,24,29,.07) 0 4px, transparent 5px),
    var(--plaster-deep);
}
.work-card .thumb svg { width: 56px; height: 56px; opacity: .55; }
.work-card .body { padding: 20px; }
.work-card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid rgba(22, 24, 29, 0.52); border-radius: 999px; padding: 4px 11px;
}
.work-card h3 { margin: 6px 0 8px; }
.work-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---------- Banners / CTA ---------- */
.cta-band { border-radius: var(--radius); background: var(--ink); color: var(--plaster); padding: clamp(30px, 5vw, 54px); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(245,241,234,.75); max-width: 52ch; }
.cta-band .layerlines { inset: auto -5% -30% -5%; height: 70%; background: repeating-linear-gradient(to bottom, transparent 0 7px, rgba(245,241,234,.07) 7px 8px); }
.cta-band .guarantee-strip { margin: 14px 0 0; font-size: 0.95rem; position: relative; z-index: 1; }
.cta-band .guarantee-strip a { color: var(--plaster); }
.est-guarantee { margin: 14px 0 0; font-weight: 500; }

.notice { border-left: 4px solid var(--ink-soft); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 18px; margin: 1.2em 0; }
.notice.molten { border-left-color: var(--accent); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Prose pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245,241,234,.82); margin-top: clamp(40px, 7vw, 80px); padding: clamp(40px, 6vw, 64px) 0 32px; font-size: 0.95rem; }
.site-footer a { color: rgba(245,241,234,.86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; margin-bottom: 38px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand { font-weight: 500; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-meta { border-top: 1px solid rgba(245,241,234,.15); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: rgba(245,241,234,.55); font-size: 0.85rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(22,24,29,.28);
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab:hover { background: #0B6E36; color: #fff; }
@media (min-width: 920px) { .wa-fab { display: none; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.muted { color: var(--ink-faint); }
.small { font-size: 0.9rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
