/* FIR — shared design tokens & primitives */

:root {
  --ink: #0E0E0E;
  --ink-2: #1A1A1A;
  --ink-3: #232323;
  --line: #2C2C2C;
  --line-soft: rgba(255,255,255,0.08);
  --paper: #F4F1EA;
  --paper-2: #EAE6DD;
  --paper-line: #D9D4C7;
  --fg-on-ink: #EFEAE0;
  --fg-mute-on-ink: #9A958A;
  --fg-on-paper: #161512;
  --fg-mute-on-paper: #6B675E;
  --accent: #F4C430;
  --accent-deep: #D9AB1F;

  --f-display: "Montserrat", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;
  --f-mono: "Montserrat", ui-monospace, "SF Mono", monospace;

  --maxw: 1720px;
  --gutter: clamp(24px, 5vw, 80px);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--fg-on-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  font-size: 18px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ——— Type ——— */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute-on-ink);
}
.eyebrow.on-paper { color: var(--fg-mute-on-paper); }
.num {
  font-family: var(--f-mono);
  font-feature-settings: "tnum";
}
.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-wrap: balance;
}

/* Montserrat ExtraBold for all big display headings */
h1, h2,
.hero-split h1, .hero-bleed h1, .hero-center h1,
.pillars h2, .stair-offer .copy h2, .process h2,
.materials h2, .trust h2, .estimate h2,
.cat-head h1, .pdp-quote h2, .info h1,
.spec-section h2, .installed h2, .related h2,
.cta-strip h3, .stair-offer .price-block .pp,
.hero-split .stat-num,
.hero-photo .floating-card .price,
.price-row .pp, .calc .total-row .total-val,
.warranty-strip .item .num {
  font-weight: 800 !important;
}

/* ——— Layout primitives ——— */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.rule {
  height: 1px;
  background: var(--line-soft);
  width: 100%;
}
.rule.on-paper { background: var(--paper-line); }

.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0 18px;
}
.section-head .idx {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--fg-mute-on-ink);
  letter-spacing: 0.1em;
}
.section-head .title {
  font-family: var(--f-display);
  font-size: clamp(28px, 2.8vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-head.on-paper .idx { color: var(--fg-mute-on-paper); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 15px 22px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--accent);
  color: #161512;
}
.btn-primary:hover { background: #FFD647; }
.btn-ghost-light {
  border-color: rgba(255,255,255,0.18);
  color: var(--fg-on-ink);
}
.btn-ghost-light:hover { border-color: rgba(255,255,255,0.45); }
.btn-ghost-dark {
  border-color: rgba(0,0,0,0.18);
  color: var(--fg-on-paper);
}
.btn-ghost-dark:hover { border-color: rgba(0,0,0,0.5); }

/* ——— FIR yellow/black mega navigation ——— */
.topbar {
  --flow-orange: #ffc40b;
  --flow-ink: #050505;
  position: sticky;
  top: 0;
  z-index: 240;
  background: #050505;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.topbar-inner {
  width: min(100%, 1880px);
  max-width: none;
  min-height: 122px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 340px;
  grid-template-rows: 64px 58px;
  gap: 0;
  align-items: stretch;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  border-radius: 6px;
}
.brand-logo-wrap {
  width: 142px;
  height: 56px;
  flex: 0 0 142px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  overflow: hidden;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name { font-size: 17px; font-weight: 700; line-height: 1.05; }
.brand-name small {
  display: block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--fg-mute-on-ink);
  text-transform: uppercase;
  margin-top: 2px;
}
.topbar-desktop-logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
}
.topbar-desktop-logo .brand-name,
.topbar-mobile-logo .brand-name {
  display: none;
}
.topbar-mobile-logo {
  display: none;
}
.mobile-menu-toggle,
.mobile-contact-strip {
  display: none;
}
.flow-phone {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.flow-phone svg {
  width: 20px;
  height: 20px;
  stroke: var(--flow-orange);
  fill: none;
  stroke-width: 2.8;
}
.topbar-cta {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 168px;
  align-items: stretch;
  gap: 0;
}
.topbar-cta .btn-primary {
  width: 100%;
  min-height: 64px;
  border-radius: 0;
  justify-content: center;
  background: var(--flow-orange);
  color: #050505;
  box-shadow: none;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.topbar-cta .btn-primary:hover {
  transform: none;
  box-shadow: none;
  background: #ffd243;
}
.flow-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: #050505;
}
.flow-social {
  min-height: 64px;
  display: grid;
  place-items: center;
  color: var(--flow-orange);
  font-size: 14px;
  font-weight: 900;
  text-transform: none;
}
.flow-social:hover {
  background: rgba(255,196,11,0.14);
}
.nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  min-height: 58px;
  background: #fff;
  color: #111;
  box-shadow: 0 14px 32px rgba(0,0,0,0.14);
  font-size: clamp(11px, 0.74vw, 13px);
  font-weight: 900;
  text-transform: uppercase;
}
.mega-nav-link,
.mega-trigger {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 clamp(10px, 1vw, 18px);
  color: #111;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1;
  text-transform: uppercase;
  opacity: 1;
  cursor: pointer;
  user-select: none;
  transition: background .18s ease, color .18s ease;
}
.mega-nav-link:hover,
.mega-trigger:hover,
.mega-nav-link:focus-visible,
.mega-trigger:focus-visible,
.mega-nav-item:focus-within > .mega-trigger,
.mega-nav-item.is-open > .mega-trigger {
  background: rgba(255,196,11,0.22);
  color: #050505;
}
.nav-home,
.mega-nav-item.active > .mega-trigger,
.mega-nav-link.active {
  background: var(--flow-orange);
  color: #050505 !important;
}
.mega-nav-item {
  display: flex;
  align-items: stretch;
}
.mega-trigger span {
  color: currentColor;
  font-size: 13px;
  line-height: 1;
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 18px;
  right: 18px;
  z-index: 260;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.mega-nav-item:hover > .mega-panel,
.mega-nav-item:focus-within > .mega-panel,
.mega-nav-item.is-open > .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.mega-panel-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(250px, 0.85fr);
  gap: 22px;
  padding: 24px;
  background: #050505;
  border-top: 5px solid var(--flow-orange);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 26px 60px rgba(0,0,0,0.3);
}
.mega-col {
  min-width: 0;
}
.mega-col h3 {
  margin: 0 0 12px;
  color: var(--flow-orange);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mega-link {
  display: block;
  min-height: 0;
  padding: 10px 0;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-transform: none;
}
.mega-link strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}
.mega-link span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.68);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}
.mega-link:hover strong,
.mega-link:focus-visible strong {
  color: var(--flow-orange);
}
.mega-feature {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  background: var(--flow-orange);
  color: #050505;
  border-radius: 14px;
  text-transform: none;
}
.mega-feature .eyebrow {
  color: rgba(0,0,0,0.58);
  margin-bottom: 10px;
}
.mega-feature strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 0.95;
  letter-spacing: 0;
}
.mega-feature p {
  margin: 14px 0 18px;
  color: rgba(0,0,0,0.72);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.mega-feature em {
  margin-top: auto;
  color: #050505;
  font-style: normal;
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
}
.phone-link {
  font-family: var(--f-mono);
  font-size: 13.5px;
  color: var(--fg-on-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phone-link::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(244,196,48,0.18);
}
@media (max-width: 1180px) {
  .topbar-inner {
    grid-template-columns: 210px minmax(0, 1fr) 290px;
  }
  .topbar-cta {
    grid-template-columns: minmax(136px, 1fr) 132px;
  }
  .nav {
    font-size: 11px;
  }
  .mega-nav-link,
  .mega-trigger {
    padding-inline: 9px;
  }
  .mega-panel-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mega-feature {
    grid-column: 1 / -1;
    min-height: 160px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 18px;
    overflow-x: hidden;
  }
  .topbar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
    overflow: visible;
  }
  .topbar-inner {
    width: 100%;
    max-width: 100vw;
    min-height: 0;
    padding: 10px 12px 12px;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 44px;
    grid-template-rows: auto auto auto;
    gap: 8px 10px;
    align-items: start;
  }
  .flow-phone,
  .topbar-desktop-logo {
    display: none !important;
  }
  .topbar-mobile-logo {
    display: flex;
    align-items: center;
    width: 104px;
    height: 49px;
    grid-column: 1;
    grid-row: 1;
  }
  .topbar-mobile-logo .brand-logo-wrap {
    width: 104px;
    height: 49px;
    flex-basis: 104px;
  }
  .topbar-cta {
    grid-column: 2;
    grid-row: 1;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  .topbar-cta .flow-socials {
    display: none;
  }
  .topbar-cta .btn-primary {
    width: 100%;
    max-width: 210px;
    height: 42px;
    min-height: 42px;
    padding-block: 0;
    padding-inline: 12px;
    border-radius: 999px;
    background: var(--flow-orange);
    color: #050505;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 20px rgba(255,196,11,0.24);
  }
  .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px solid #050505;
    border-radius: 13px;
    background: #fff;
    color: #050505;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    width: 22px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }
  body.mobile-nav-open .mobile-menu-toggle {
    background: #050505;
    color: var(--flow-orange);
  }
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-contact-strip {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, 38px);
    gap: 3px;
    align-items: center;
    min-height: 38px;
    padding: 4px;
    background: #050505;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255,196,11,0.18);
  }
  .mobile-call,
  .mobile-contact-icon {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }
  .mobile-call {
    justify-content: flex-start;
    gap: 7px;
    padding: 0 10px;
    color: var(--flow-orange);
    letter-spacing: 0.01em;
  }
  .mobile-call svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.8;
  }
  .mobile-contact-icon {
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 13px;
  }
  .mobile-sms {
    font-size: 9px;
    letter-spacing: 0.03em;
  }
  .nav {
    grid-column: 1 / -1;
    grid-row: 3;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    width: 100%;
    max-height: calc(100dvh - 132px);
    background: #050505;
    border: 2px solid #050505;
    border-radius: 14px;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 13px;
    line-height: 1.1;
    align-self: start;
  }
  .nav.is-mobile-open,
  body.mobile-nav-open .nav {
    display: grid;
  }
  .mega-nav-item {
    display: contents;
  }
  .mega-nav-link,
  .mega-trigger {
    min-height: 46px;
    padding: 10px 8px;
    justify-content: center;
    text-align: center;
    color: #fff;
    opacity: 1;
    background: #050505;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
  }
  .nav-home,
  .nav-home.active,
  .mega-nav-item.is-open > .mega-trigger,
  .mega-nav-item.active > .mega-trigger,
  .mega-nav-link.active {
    background: var(--flow-orange);
    color: #050505 !important;
  }
  .mega-panel {
    position: static;
    grid-column: 1 / -1;
    display: none;
    max-height: min(62vh, 560px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .mega-nav-item.is-open > .mega-panel {
    display: block;
  }
  .mega-panel-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: #111;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .mega-col {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .mega-col h3 {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .mega-link {
    padding: 9px 0;
  }
  .mega-link strong {
    font-size: 15px;
  }
  .mega-link span {
    font-size: 12.5px;
  }
  .mega-feature {
    margin: 12px;
    min-height: 0;
    padding: 18px;
    border-radius: 12px;
  }
  .mega-feature strong {
    font-size: 26px;
  }
}
@media (max-width: 380px) {
  .topbar-inner {
    padding-inline: 10px;
    grid-template-columns: 88px minmax(0, 1fr) 42px;
    gap: 7px 8px;
  }
  .topbar-mobile-logo,
  .topbar-mobile-logo .brand-logo-wrap {
    width: 88px;
    height: 42px;
    flex-basis: 88px;
  }
  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .topbar-cta .btn-primary {
    height: 40px;
    min-height: 40px;
    max-width: 190px;
    padding-block: 0;
    font-size: 12px;
  }
  .mobile-contact-strip {
    grid-template-columns: minmax(0, 1fr) repeat(4, 34px);
  }
  .mobile-call {
    padding-inline: 8px;
    font-size: 11px;
  }
  .mega-nav-link,
  .mega-trigger {
    min-height: 44px;
    font-size: 12px;
  }
}

/* ——— Footer ——— */
.footer {
  background: var(--ink);
  color: var(--fg-on-ink);
  border-top: 1px solid var(--line-soft);
  padding: 60px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute-on-ink);
  margin: 0 0 16px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 7px 0; font-size: 16px; opacity: 0.88; }
.footer li:hover { opacity: 1; }
.footer .colophon {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-mute-on-ink);
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .footer {
    overflow: hidden;
    padding: 48px 0 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer,
  .footer a,
  .footer li,
  .footer p,
  .footer small,
  .footer .colophon {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .footer .colophon {
    display: grid;
    gap: 10px;
    justify-content: stretch;
    line-height: 1.5;
  }
}

/* ——— Photo placeholder slot ——— */
.slot {
  position: relative;
  background: repeating-linear-gradient(
    135deg,
    #1c1c1c 0px, #1c1c1c 8px,
    #181818 8px, #181818 16px
  );
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: rgba(255,255,255,0.55);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.slot.on-paper {
  background: repeating-linear-gradient(
    135deg,
    #e2ddd0 0px, #e2ddd0 8px,
    #d9d4c7 8px, #d9d4c7 16px
  );
  border-color: var(--paper-line);
  color: rgba(0,0,0,0.45);
}
.slot .label {
  padding: 12px 14px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

/* ——— SEO landing and service pages ——— */
.seo-band {
  padding: clamp(76px, 8vw, 126px) 0;
  background: var(--paper);
  color: var(--fg-on-paper);
}
.seo-band.dark {
  background: var(--ink);
  color: var(--fg-on-ink);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.seo-band.soft {
  background: #fffaf0;
}
.seo-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.seo-head h2,
.seo-service-hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 12px 0 0;
  text-wrap: balance;
}
.seo-head h2 {
  font-size: clamp(42px, 5vw, 84px);
  max-width: 16ch;
}
.seo-head p,
.seo-copy {
  color: var(--fg-mute-on-paper);
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
}
.seo-band.dark .seo-head p,
.seo-band.dark .seo-copy,
.seo-band.dark .seo-card p,
.seo-band.dark .seo-list li {
  color: rgba(239,234,224,0.76);
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.seo-grid.two { grid-template-columns: repeat(2, 1fr); }
.seo-grid.three { grid-template-columns: repeat(3, 1fr); }
.seo-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 32px);
  min-width: 0;
}
.seo-band.dark .seo-card {
  background: rgba(255,255,255,0.045);
  border-color: var(--line-soft);
}
.seo-card .tag,
.seo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.seo-card h3 {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.2vw, 38px);
  line-height: 1.06;
  letter-spacing: 0;
  margin: 0 0 14px;
}
.seo-card p {
  color: var(--fg-mute-on-paper);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}
.seo-card a:not(.btn) {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 700;
  color: var(--fg-on-paper);
}
.seo-band.dark .seo-card a:not(.btn) { color: var(--fg-on-ink); }
.seo-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.seo-list li {
  position: relative;
  padding-left: 22px;
  color: var(--fg-mute-on-paper);
  line-height: 1.55;
  font-size: 17px;
}
.seo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}
.comparison-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
}
.comparison-col {
  padding: clamp(22px, 3vw, 34px);
  min-width: 0;
}
.comparison-col + .comparison-col { border-left: 1px solid var(--paper-line); }
.comparison-col h3 {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-size: clamp(26px, 2.1vw, 36px);
}
.comparison-col p {
  color: var(--fg-mute-on-paper);
  line-height: 1.65;
  font-size: 17px;
  margin: 0;
}
.responsive-table {
  overflow-x: auto;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  background: #fff;
  margin-bottom: 24px;
}
.responsive-table table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: var(--fg-on-paper);
}
.responsive-table td {
  padding: 18px 20px;
  border-top: 1px solid var(--paper-line);
  border-left: 1px solid var(--paper-line);
  vertical-align: top;
  font-size: 16.5px;
  line-height: 1.55;
}
.responsive-table tr:first-child td {
  border-top: 0;
  font-weight: 800;
  color: var(--fg-on-paper);
  background: var(--paper-2);
}
.responsive-table td:first-child { border-left: 0; }
.comparison-authority .seo-grid {
  margin-top: 20px;
}
.flooring-match-quiz {
  background: var(--paper-2);
  color: var(--fg-on-paper);
}
.quiz-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}
.quiz-panel,
.quiz-result {
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.72);
  padding: 24px;
}
.quiz-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.quiz-panel fieldset:last-child { margin-bottom: 0; }
.quiz-panel legend {
  font-weight: 800;
  margin-bottom: 10px;
}
.quiz-panel label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--fg-mute-on-paper);
  font-size: 17px;
  line-height: 1.45;
}
.quiz-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quiz-result h3 {
  font-size: clamp(26px, 2vw, 36px);
  line-height: 1.1;
  margin: 14px 0 10px;
}
.quiz-result p {
  color: var(--fg-mute-on-paper);
  line-height: 1.7;
}
.area-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.area-cloud a,
.area-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  font-weight: 700;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.proof-photo {
  position: relative;
  min-height: 360px;
  background: #111;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.proof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.proof-note {
  display: grid;
  align-content: center;
  gap: 20px;
}
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: 24px;
}
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}
.faq-item p {
  margin: 0;
  color: var(--fg-mute-on-paper);
  line-height: 1.65;
  font-size: 17px;
}
.seo-service-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
  background:
    linear-gradient(90deg, rgba(244,241,234,0.96) 0%, rgba(244,241,234,0.9) 48%, rgba(244,241,234,0.34) 100%),
    url("images/hero-stair-bright.webp") center right / cover no-repeat;
  color: var(--fg-on-paper);
  border-bottom: 1px solid var(--paper-line);
}
.seo-service-hero h1 {
  font-size: clamp(52px, 7vw, 108px);
  max-width: 13ch;
}
.seo-service-hero .lede {
  max-width: 64ch;
  color: var(--fg-mute-on-paper);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.7;
  margin: 22px 0 0;
}
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute-on-paper);
}
.breadcrumb a:hover { color: var(--ink); }
.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.service-nav a {
  border: 1px solid var(--paper-line);
  background: #fff;
  border-radius: 999px;
  min-height: 46px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
}

.seo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute-on-paper);
  margin-bottom: 18px;
}
.seo-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}
.local-proof-row,
.conversion-grid,
.guide-grid,
.project-grid,
.static-product-grid {
  display: grid;
  gap: 16px;
}
.local-proof-row,
.conversion-grid,
.project-grid {
  grid-template-columns: repeat(3, 1fr);
}
.guide-grid,
.static-product-grid {
  grid-template-columns: repeat(2, 1fr);
}
.proof-quote {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 30px);
  min-width: 0;
}
.proof-quote blockquote {
  margin: 0;
  color: var(--fg-on-paper);
  font-weight: 700;
  line-height: 1.45;
}
.proof-quote cite {
  display: block;
  margin-top: 18px;
  color: var(--fg-mute-on-paper);
  font-style: normal;
  font-size: 15px;
}
.project-card,
.guide-card,
.conversion-card {
  display: grid;
  align-content: start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  overflow: hidden;
  min-width: 0;
}
.project-card img,
.guide-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.guide-card img { aspect-ratio: 16 / 9; }
.project-card .body,
.guide-card .body,
.conversion-card {
  padding: clamp(20px, 3vw, 28px);
}
.project-card h3,
.guide-card h3,
.conversion-card h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(26px, 2vw, 36px);
  line-height: 1.08;
}
.project-card p,
.guide-card p,
.conversion-card p {
  color: var(--fg-mute-on-paper);
  margin: 0;
  line-height: 1.65;
  font-size: 17px;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-meta span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  font-size: 11px;
  font-weight: 700;
}
.photo-estimate-panel {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: clamp(22px, 4vw, 36px);
}
.photo-estimate-panel form {
  display: grid;
  gap: 14px;
}
.photo-estimate-panel .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.photo-estimate-panel label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute-on-paper);
}
.photo-estimate-panel input,
.photo-estimate-panel select,
.photo-estimate-panel textarea {
  width: 100%;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--fg-on-paper);
  padding: 13px 12px;
  font: inherit;
  letter-spacing: 0;
}
.photo-estimate-panel textarea {
  min-height: 96px;
  resize: vertical;
}
.flooring-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: start;
}
.calc-panel {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: clamp(22px, 4vw, 36px);
}
.calc-panel form {
  display: grid;
  gap: 16px;
}
.calc-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.calc-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.calc-field > span,
.calc-checks > span {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-mute-on-paper);
}
.calc-panel input,
.calc-panel select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--fg-on-paper);
  padding: 12px;
  font: inherit;
}
.calc-checks {
  display: grid;
  gap: 10px;
}
.calc-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.calc-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  padding: 9px 10px;
  font-size: 15.5px;
  color: var(--fg-on-paper);
}
.calc-result {
  position: sticky;
  top: 88px;
  background: var(--ink);
  color: var(--fg-on-ink);
  border-radius: var(--r-md);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-soft);
}
.calc-result h3 {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}
.calc-range {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0;
  font-family: var(--f-display);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
  color: var(--accent);
}
.calc-range small {
  font-family: var(--f-body);
  font-size: 13px;
  color: rgba(239,234,224,0.72);
}
.calc-result ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: rgba(239,234,224,0.78);
  font-size: 16px;
}
.calc-result li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}
.static-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.static-gallery {
  display: grid;
  gap: 12px;
}
.static-gallery-main {
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.static-gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.static-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.static-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
}
.static-product-summary {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: clamp(24px, 4vw, 42px);
}
.static-product-summary h1 {
  font-family: var(--f-display);
  font-size: clamp(52px, 6vw, 98px);
  line-height: 0.95;
  letter-spacing: 0;
  margin: 10px 0 18px;
}
.static-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 28px 0 8px;
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
}
.static-price small {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
}
.spec-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.spec-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 14px 16px;
  border-top: 1px solid var(--paper-line);
}
.spec-list div:first-child { border-top: 0; }
.spec-list dt {
  color: var(--fg-mute-on-paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spec-list dd {
  margin: 0;
  font-weight: 700;
}
.zip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.zip-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 15.5px;
  min-width: 0;
}
.zip-chip strong {
  font-family: var(--f-mono);
  font-size: 12px;
}
.zip-chip span {
  color: var(--fg-mute-on-paper);
  overflow-wrap: anywhere;
}
.article-body {
  max-width: 1080px;
  margin: 0 auto;
  color: var(--fg-on-paper);
}
.article-body h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 2.2vw, 42px);
  line-height: 1.16;
  letter-spacing: 0;
  margin: 36px 0 12px;
  max-width: 34ch;
  text-wrap: balance;
}
.article-body p,
.article-body li {
  color: var(--fg-mute-on-paper);
  font-size: 20px;
  line-height: 1.82;
}
.article-body ul {
  padding-left: 22px;
}

@media (max-width: 980px) {
  .seo-head,
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .seo-grid,
  .seo-grid.three,
  .comparison-table,
  .quiz-grid,
  .faq-list,
  .local-proof-row,
  .conversion-grid,
  .project-grid,
  .guide-grid,
  .static-product-grid,
  .flooring-calculator,
  .zip-grid,
  .static-product-layout {
    grid-template-columns: 1fr 1fr;
  }
  .static-product-layout {
    grid-template-columns: 1fr;
  }
  .comparison-col:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--paper-line);
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: clamp(22px, 6vw, 30px);
  }
  .seo-band {
    padding: 62px 0;
    overflow: hidden;
  }
  .wrap {
    width: 100%;
    max-width: 100%;
  }
  .seo-service-hero {
    overflow: hidden;
  }
  .seo-head {
    gap: 18px;
    margin-bottom: 26px;
    min-width: 0;
    max-width: 100%;
  }
  .seo-head h2,
  .seo-service-hero h1 {
    width: min(370px, calc(100vw - 60px));
    max-width: min(370px, calc(100vw - 60px));
    overflow-wrap: break-word;
    text-wrap: pretty;
  }
  .seo-service-hero h1 {
    font-size: clamp(34px, 9vw, 40px);
    max-width: min(9.5ch, calc(100vw - 60px));
  }
  .seo-head h2 {
    font-size: clamp(34px, 9vw, 42px);
    max-width: 11ch;
  }
  .seo-head p,
  .seo-copy,
  .seo-service-hero .lede,
  .article-body,
  .article-body p,
  .comparison-col,
  .seo-card,
  .faq-item {
    width: min(370px, calc(100vw - 60px));
    max-width: min(370px, calc(100vw - 60px));
    overflow-wrap: break-word;
  }
  .seo-cta-row,
  .service-nav {
    width: min(370px, calc(100vw - 60px));
    max-width: min(370px, calc(100vw - 60px));
  }
  .seo-head p,
  .seo-copy,
  .seo-service-hero .lede,
  .comparison-col p,
  .seo-card p,
  .faq-item p,
  .project-card p,
  .guide-card p,
  .conversion-card p,
  .quiz-panel label {
    font-size: 18px;
    line-height: 1.7;
  }
  .seo-grid,
  .seo-grid.two,
  .seo-grid.three,
  .comparison-table,
  .quiz-grid,
  .faq-list,
  .local-proof-row,
  .conversion-grid,
  .project-grid,
  .guide-grid,
  .static-product-grid,
  .flooring-calculator,
  .calc-row,
  .calc-check-grid,
  .photo-estimate-panel .row,
  .zip-grid,
  .static-product-layout {
    grid-template-columns: 1fr;
  }
  .calc-result {
    position: static;
  }
  .comparison-col + .comparison-col {
    border-left: 0;
    border-top: 1px solid var(--paper-line);
  }
  .comparison-col:nth-child(3) {
    grid-column: auto;
  }
  .proof-photo {
    min-height: 250px;
  }
  .seo-service-hero {
    background:
      linear-gradient(180deg, rgba(244,241,234,0.97) 0%, rgba(244,241,234,0.95) 58%, rgba(244,241,234,0.76) 100%),
      url("images/hero-stair-bright.webp") center / cover no-repeat;
  }
  .seo-card,
  .faq-item {
    padding: 24px;
  }
  .seo-card h3,
  .comparison-col h3,
  .faq-item h3,
  .project-card h3,
  .guide-card h3,
  .conversion-card h3 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .btn {
    width: 100%;
    justify-content: center;
    min-height: 54px;
    font-size: 17px;
    white-space: normal;
    text-align: center;
  }
  .topbar-cta .btn {
    width: auto;
    justify-content: center;
    height: 42px;
    min-height: 42px;
    padding-block: 0;
  }
  .seo-cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .service-nav a,
  .area-cloud a,
  .area-cloud span {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 16px;
  }
  .article-body h2 {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.18;
    margin: 36px 0 12px;
    max-width: 100%;
  }
  .article-body p,
  .article-body li {
    font-size: 18px;
    line-height: 1.8;
  }
  .responsive-table table {
    min-width: 720px;
  }
  .responsive-table td {
    font-size: 16px;
    padding: 16px;
  }
  .footer li,
  .footer p {
    font-size: 17px !important;
  }
  .static-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.slot.on-paper .label {
  background: rgba(255,255,255,0.55);
}

/* tape badges */
.tape {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: #161512;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ——— util ——— */
.sr { position: absolute; width:1px; height:1px; overflow:hidden; clip: rect(0 0 0 0); }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display:flex; align-items:center; justify-content: space-between; }
