/* ==========================================================================
   KWIK FLOORING — kwikflooring.com
   Design system. Dark architectural base, brushed silver structure,
   oak used strictly as accent. Montserrat headings / Inter body.
   ========================================================================== */

:root {
  --black: #080808;
  --black-90: rgba(8, 8, 8, 0.9);
  --charcoal: #1C1C1C;
  --charcoal-2: #232323;
  --silver: #C8C9CB;
  --silver-dim: #8B8C8F;
  --silver-faint: rgba(200, 201, 203, 0.5);
  --oak: #B87A3F;
  --oak-light: #D4A15F;
  --oak-deep: #8A5828;
  --white: #F4F4F2;

  --line: rgba(200, 201, 203, 0.14);
  --line-mid: rgba(200, 201, 203, 0.26);
  --line-strong: rgba(200, 201, 203, 0.4);

  --steel: linear-gradient(112deg, #F1F1F1 0%, #A9AAAC 46%, #E8E8E8 68%, #939497 100%);
  --wood: linear-gradient(112deg, #DDAE70 0%, #B87A3F 45%, #87551F 100%);

  --font-head: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 2px;
  --header-h: 98px;
  --header-h-sm: 78px;
  --gutter: clamp(20px, 5vw, 70px);
  --measure: 68ch;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* An author-set `display` beats the UA stylesheet's [hidden] rule, which would
   otherwise leave the estimator's Back/Continue/Send buttons all visible. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--oak) var(--charcoal);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Lenis smooth scroll hooks */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

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

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

/* ==========================================================================
   1. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.05;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 6.6vw, 5.4rem);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

h2 {
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 3.4rem);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

h3 {
  font-weight: 700;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
}

h4 {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver);
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: var(--white); text-underline-offset: 4px; text-decoration-color: var(--oak); }
a:hover { color: var(--oak-light); }

strong { font-weight: 600; color: var(--white); }

.accent { color: var(--oak); }

.steel-text {
  background: var(--steel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}

/* Eyebrow with plank tick */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 1.4rem;
}
.kicker::before {
  content: "";
  width: 32px;
  height: 3px;
  flex: none;
  background: var(--wood);
}

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.68;
  color: var(--silver);
  max-width: 56ch;
}

/* Masked word reveal. JS wraps each word in .sl > .sl-i so the mask wraps
   with the browser instead of depending on a measured line box. */
.sl {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.sl-i { display: inline-block; will-change: transform; }

/* Forced headline breaks, used where the brand line must not re-wrap */
.hl { display: block; }

/* ==========================================================================
   2. LAYOUT
   ========================================================================== */

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(1560px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.section { padding-block: clamp(80px, 10vw, 150px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }

.rule {
  border: 0;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-mid) 15%, var(--line-mid) 85%, transparent);
}

.section-head { margin-bottom: clamp(34px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::before { display: none; }
.section-head--center .lede { margin-inline: auto; }
.section-head--center .wood-tick { margin-inline: auto; }

.wood-tick {
  width: 64px;
  height: 3px;
  background: var(--wood);
  border: 0;
  margin: 0 0 1.4rem;
}

/* Blueprint grid backdrop */
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 201, 203, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 201, 203, 0.038) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 78%);
}

/* ==========================================================================
   3. BUTTONS & MICROINTERACTIONS
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 18px 32px;
  border-radius: var(--radius);
  background: var(--oak);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease-out);
}
.btn > * { position: relative; z-index: 1; }

/* fill sweeps in from the left */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--oak-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }

/* brushed-metal light sweep */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  z-index: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left 0.62s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { left: 135%; }

.btn .arrow { transition: transform 0.34s var(--ease-out); }
.btn:hover .arrow { transform: translateX(6px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn--ghost::before { background: rgba(200, 201, 203, 0.1); }
.btn--ghost:hover { color: var(--white); border-color: var(--silver); }

.btn--sm { padding: 13px 22px; font-size: 0.76rem; }
.btn--block { width: 100%; }

/* Animated underline link */
.link-u {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 5px;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--oak);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.link-u .arrow { transition: transform 0.34s var(--ease-out); }
.link-u:hover .arrow { transform: translateX(5px); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--oak-light);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: -9999px;
  z-index: 300;
  background: var(--oak);
  color: var(--black);
  padding: 13px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

/* ==========================================================================
   4. LOADER
   ========================================================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--black);
  display: grid;
  place-items: center;
  gap: 0;
}
.loader__inner { display: grid; justify-items: center; gap: 26px; width: min(300px, 70vw); }
.loader__mark { width: 118px; height: auto; opacity: 0.96; }
.loader__bar { width: 100%; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.loader__fill { position: absolute; inset: 0 100% 0 0; background: var(--wood); }
.loader__pct {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--silver-dim);
}
html.is-loading { overflow: hidden; }

/* ==========================================================================
   5. CUSTOM CURSOR
   ========================================================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 400;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--silver);
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 399;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s, width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.cursor__label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0;
  transition: opacity 0.25s;
  white-space: nowrap;
}
body.cursor-ready .cursor,
body.cursor-ready .cursor__ring { opacity: 1; }

body.cursor-lg .cursor { opacity: 0; }
body.cursor-lg .cursor__ring {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--oak);
  border-color: var(--oak);
}
body.cursor-lg .cursor__label { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor__ring { display: none; }
}

/* ==========================================================================
   6. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height 0.4s var(--ease-out), background-color 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out), backdrop-filter 0.4s;
}
.site-header.is-stuck {
  height: var(--header-h-sm);
  background: rgba(18, 18, 18, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1560px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; flex: none; }
/* The approved artwork at 640x411, so height follows width. */
.brand__mark { width: 104px; height: auto; flex: none; transition: width 0.4s var(--ease-out); }
.site-header.is-stuck .brand__mark { width: 84px; }
@media (max-width: 1080px) { .brand__mark { width: 76px; } }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__kwik {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: 0.15em;
  background: var(--steel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__flooring {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.46em;
  color: var(--oak-light);
  margin-top: 5px;
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  font-family: var(--font-head);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.28s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 1px;
  background: var(--oak);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.36s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { color: var(--white); }
.nav-link:hover::after,
.nav-link[aria-expanded="true"]::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-link .caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px);
  transition: transform 0.3s var(--ease-out);
}
.nav-link[aria-expanded="true"] .caret { transform: rotate(225deg) translate(-1px, -1px); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: var(--font-head);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--oak-light); }

/* ---- Mega menu ---- */
.nav-item { position: static; }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--oak);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out), visibility 0.32s;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6);
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }

.mega__inner {
  width: min(1560px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
  gap: clamp(24px, 3vw, 56px);
  padding: 42px 0 46px;
}

.mega__col > h4 { margin-bottom: 1.4em; }

.mega__list { list-style: none; margin: 0; padding: 0; }

.mega__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding: 13px 14px 13px 12px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background-color 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}
.mega__item:hover { background: rgba(200, 201, 203, 0.055); border-left-color: var(--oak); }
.mega__num {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--oak-light);
}
.mega__name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
}
.mega__desc {
  grid-column: 2;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--silver-dim);
}

.mega__feature {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 2.4vw, 38px);
  display: flex;
  flex-direction: column;
}
.mega__swatch {
  height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.mega__feature p { font-size: 0.88rem; color: var(--silver-dim); }
.mega__feature .btn { margin-top: auto; }

/* ---- Mobile ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px;
  background: none;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--silver); transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--black);
  padding: calc(var(--header-h-sm) + 26px) var(--gutter) 130px;
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.62s var(--ease-io);
  visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(200,201,203,0.028) 0 1px, transparent 1px 92px),
    radial-gradient(90% 60% at 100% 100%, rgba(184, 122, 63, 0.12), transparent 60%);
}
.drawer__mark {
  position: absolute;
  right: -30px;
  bottom: 80px;
  width: 280px;
  opacity: 0.07;
  pointer-events: none;
}
.drawer__group {
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--oak-light);
  margin: 30px 0 4px;
  position: relative;
}
.drawer__group:first-of-type { margin-top: 0; }
.drawer ul { list-style: none; margin: 0; padding: 0; position: relative; }
.drawer li { overflow: hidden; }
.drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 13px 2px;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 5.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer a::after { content: "→"; color: var(--oak); font-family: var(--font-body); font-size: 1rem; }
.drawer__cta { margin-top: 34px; position: relative; }

/* Persistent mobile action bar */
.mbar {
  display: none;
  position: fixed;
  z-index: 198;
  inset: auto 0 0;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 12, 12, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-mid);
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mbar a {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 50px;
  padding: 7px 4px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  border: 1px solid var(--line);
}
.mbar a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.mbar a.is-primary { background: var(--oak); color: var(--black); border-color: var(--oak); }

@media (max-width: 1080px) {
  .primary-nav, .header-phone, .header-actions > .btn { display: none; }
  .nav-toggle { display: flex; }
  .mbar { display: grid; }
  body { padding-bottom: 76px; }
  :root { --header-h: 72px; --header-h-sm: 72px; }
  .site-header { height: var(--header-h-sm); }
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(46px, 7vh, 90px);
  overflow: hidden;
  isolation: isolate;
}

/* perspective floor of planks receding to a horizon */
.hero__floor {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  perspective: 620px;
  perspective-origin: 50% 34%;
}
.hero__floor-plane {
  position: absolute;
  left: -60%;
  right: -60%;
  top: 34%;
  bottom: -40%;
  transform: rotateX(64deg);
  transform-origin: 50% 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(184, 122, 63, 0.30) 0 118px,
      rgba(8, 8, 8, 0.55) 118px 122px),
    repeating-linear-gradient(0deg,
      rgba(212, 161, 95, 0.16) 0 210px,
      rgba(8, 8, 8, 0.5) 210px 214px),
    linear-gradient(180deg, #2a2119, #0d0b09);
  -webkit-mask-image: linear-gradient(to top, #000 6%, rgba(0,0,0,0.34) 46%, transparent 88%);
  mask-image: linear-gradient(to top, #000 6%, rgba(0,0,0,0.34) 46%, transparent 88%);
}

/* Hero footage, with the still photograph behind it as poster and fallback */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* When footage is present the still sits behind it, so a slow connection or a
   codec the browser will not decode still shows a finished-looking hero. */
.hero__photo.is-behind-video { z-index: -3; }

/* Reduced motion gets the still, never a moving background. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__photo.is-behind-video { z-index: -2; }
}

.hero__photo {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url("/assets/img/photos/hero.webp") center / cover no-repeat;
  will-change: transform;
}

/* plank columns riding over the photograph, catching light like board seams */
.hero__planks {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  opacity: 0.5;
}
.hero__planks span { border-right: 1px solid rgba(200, 201, 203, 0.06); }

/* Grade: pulls the warm real-estate light down to the brand's architectural dark */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(85% 65% at 14% 86%, rgba(184, 122, 63, 0.2), transparent 58%),
    linear-gradient(100deg, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.78) 42%, rgba(8, 8, 8, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.8) 0%, rgba(8, 8, 8, 0.42) 38%, rgba(8, 8, 8, 0.92) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 90px);
  align-items: end;
  width: 100%;
}

.hero h1 { margin-bottom: 0.5em; }
.hero h1 .line--oak { color: var(--oak); }

/* No character cap here: it would re-wrap the two-line brand headline.
   The supporting paragraph carries its own measure. */
.hero__copy { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.7rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
/* Once they stack, the pair has to read as one column, not two odd widths. */
@media (max-width: 600px) { .hero__actions .btn { flex: 1 1 100%; } }

/* right rail: material index */
.hero__rail {
  border-left: 1px solid var(--line-mid);
  padding: 0 0 6px clamp(18px, 2.2vw, 34px);
  display: grid;
  gap: 2px;
  align-content: end;
}
.hero__rail-title {
  font-family: var(--font-head);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 14px;
}
.hero__rail a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.34s var(--ease-out);
}
.hero__rail a:hover { padding-left: 8px; }
.hero__rail a:last-child { border-bottom: 1px solid var(--line); }
.hero__rail .n { font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: var(--oak-light); }
.hero__rail .t {
  font-family: var(--font-head);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white);
}
.hero__rail .g { color: var(--silver-dim); transition: transform 0.34s var(--ease-out), color 0.34s; }
.hero__rail a:hover .g { color: var(--oak-light); transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.hero__scroll i { display: block; width: 1px; height: 40px; background: linear-gradient(var(--oak), transparent); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__rail { border-left: 0; border-top: 1px solid var(--line-mid); padding: 26px 0 0; }
  .hero__scroll { display: none; }
}

/* Hero logo build overlay */
.build {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--black);
  pointer-events: none;
}
.build__stage { position: relative; width: min(400px, 74vw); aspect-ratio: 640 / 394; }
.build__sweep {
  position: absolute;
  left: -12%;
  top: 50%;
  width: 124%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--oak-light), transparent);
  transform: scaleX(0);
}
/* Four copies of the mark, each showing only its own horizontal band. */
.build__piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  clip-path: var(--band);
}
/* Brushed-metal light sweep, masked to the mark's own silhouette. */
.build__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.8) 50%, transparent 58%);
  -webkit-mask-image: url("/assets/img/k-icon.webp");
  mask-image: url("/assets/img/k-icon.webp");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0;
}

/* ==========================================================================
   9. FLOORING SELECTOR
   ========================================================================== */

.selector {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 76px);
  align-items: stretch;
  margin-top: clamp(34px, 4.5vw, 60px);
}

.selector__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-mid); }

.selector__btn {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: clamp(17px, 2.1vw, 26px) 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-mid);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: padding-left 0.42s var(--ease-out);
}
.selector__btn::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--wood);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.42s var(--ease-out);
}
.selector__btn[aria-selected="true"] { padding-left: 16px; }
.selector__btn[aria-selected="true"]::before { transform: scaleY(1); }

.selector__n { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--oak-light); }
.selector__name {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--silver-dim);
  line-height: 1.12;
  transition: color 0.42s var(--ease-out);
}
.selector__btn:hover .selector__name,
.selector__btn[aria-selected="true"] .selector__name { color: var(--white); }
.selector__g { color: var(--silver-dim); opacity: 0; transform: translateX(-6px); transition: opacity 0.4s, transform 0.4s var(--ease-out); }
.selector__btn[aria-selected="true"] .selector__g { opacity: 1; transform: none; color: var(--oak-light); }

/* stage */
.selector__stage {
  position: relative;
  min-height: clamp(380px, 46vw, 560px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
  display: flex;
  align-items: flex-end;
}
.selector__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.78s var(--ease-io);
  will-change: clip-path;
}
.selector__panel.is-active { clip-path: inset(0 0 0 0); }
.selector__tex { position: absolute; inset: 0; transform: scale(1.06); transition: transform 1.1s var(--ease-out); }
.selector__panel.is-active .selector__tex { transform: none; }
/* Heavy grade over the material so the panel reads as a dark architectural
   photograph. Wood stays a signature, not the dominant page colour. */
.selector__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(78% 58% at 74% 12%, rgba(244, 244, 242, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.52) 0%, rgba(8, 8, 8, 0.62) 34%, rgba(8, 8, 8, 0.97) 100%);
}
/* The caption carries its own scrim so text contrast never depends on how
   bright the photograph behind it happens to be. */
.selector__caption {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(64px, 12vw, 130px) clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px);
  align-self: flex-end;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0) 0%, rgba(8, 8, 8, 0.8) 38%, rgba(8, 8, 8, 0.96) 100%);
}
.selector__caption h3 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.selector__caption p { color: var(--silver); font-size: 0.97rem; max-width: 46ch; }
/* Grid rather than wrap, so the three facts never break into a ragged 1 + 2 */
.selector__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 26px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-mid);
}
.selector__meta div { font-size: 0.82rem; color: var(--silver-dim); }
.selector__meta b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak-light);
  margin-bottom: 3px;
}
.selector__caption .btn { pointer-events: auto; margin-top: 24px; }

@media (max-width: 900px) {
  .selector { grid-template-columns: 1fr; }
  .selector__stage { min-height: 420px; }
}

/* Material surfaces. One class per material, reused by the mega swatches, the
   selector stage, interior page heroes and the project cards, so replacing an
   image here updates every appearance of that material across the site.
   The colour under each photograph is the fallback if the image cannot load. */
.tex-hardwood, .tex-lvp, .tex-laminate, .tex-carpet, .tex-tile {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.tex-hardwood { background-color: #8a5828; background-image: url("/assets/img/photos/hardwood.webp"); }
.tex-lvp      { background-color: #6f665c; background-image: url("/assets/img/photos/lvp.webp"); }
.tex-laminate { background-color: #a97f52; background-image: url("/assets/img/photos/laminate.webp"); }
.tex-carpet   { background-color: #3a3a3c; background-image: url("/assets/img/photos/carpet.webp"); }
.tex-tile     { background-color: #3c3c3f; background-image: url("/assets/img/photos/tile.webp"); }

/* Room photography for project cards and editorial blocks */
.ph { background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--charcoal); }
.ph-living  { background-image: url("/assets/img/photos/room-living.webp"); }
.ph-dining  { background-image: url("/assets/img/photos/room-dining.webp"); }
.ph-bath    { background-image: url("/assets/img/photos/room-bath.webp"); }
.ph-bedroom { background-image: url("/assets/img/photos/room-bedroom.webp"); }
.ph-empty   { background-image: url("/assets/img/photos/room-empty.webp"); }
.ph-worn    { background-image: url("/assets/img/photos/worn-floor.webp"); }
.ph-new     { background-image: url("/assets/img/photos/new-floor.webp"); }

/* ==========================================================================
   10. BEFORE / AFTER
   ========================================================================== */

.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer--after { clip-path: inset(0 0 0 var(--split, 50%)); }
.ba__tag {
  position: absolute;
  top: 18px;
  padding: 8px 15px;
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-mid);
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver);
}
.ba__tag--b { left: 18px; }
.ba__tag--a { right: 18px; color: var(--oak-light); border-color: rgba(184, 122, 63, 0.5); }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: var(--silver);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--oak);
  display: grid;
  place-items: center;
  gap: 0;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}
.ba__knob::before, .ba__knob::after {
  content: "";
  width: 0; height: 0;
  border-block: 5px solid transparent;
  position: absolute;
}
.ba__knob::before { border-right: 7px solid var(--black); left: 15px; }
.ba__knob::after { border-left: 7px solid var(--black); right: 15px; }

/* The comparison panels share one grade so the two states read as one shot */
.ba__layer.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.34) 0%, rgba(8, 8, 8, 0.12) 45%, rgba(8, 8, 8, 0.5) 100%);
}

/* ==========================================================================
   11. HORIZONTAL PROJECT GALLERY
   ========================================================================== */

.hgal { position: relative; overflow: hidden; }
.hgal__track {
  display: flex;
  gap: clamp(18px, 2.2vw, 34px);
  padding-inline: var(--gutter);
  will-change: transform;
}
.hgal__card {
  position: relative;
  flex: none;
  width: min(76vw, 600px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hgal__img { position: absolute; inset: 0; z-index: -2; transition: transform 0.9s var(--ease-out); }
.hgal__card:hover .hgal__img { transform: scale(1.05); }
.hgal__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8,8,8,0.1) 30%, rgba(8,8,8,0.92) 100%);
}
.hgal__body { padding: clamp(20px, 2.4vw, 34px); width: 100%; }
.hgal__body .n {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--oak-light);
}
.hgal__body h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 10px 0 12px;
}
.hgal__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.83rem; color: var(--silver-dim); }
.hgal__facts b {
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  display: block;
  margin-bottom: 2px;
}

.hgal__progress {
  height: 2px;
  background: var(--line);
  margin: clamp(24px, 3vw, 40px) var(--gutter) 0;
  position: relative;
}
.hgal__progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--wood); }

/* ==========================================================================
   12. PROCESS TIMELINE
   ========================================================================== */

.process { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.process__line {
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.process__line i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--wood); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 34px);
}
.step { padding-top: 74px; position: relative; }
.step__dot {
  position: absolute;
  top: 12px;
  left: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  border: 1px solid var(--line-mid);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--silver-dim);
  transition: background-color 0.5s var(--ease-out), color 0.5s, border-color 0.5s, transform 0.5s var(--ease-out);
}
.step.is-live .step__dot { background: var(--oak); border-color: var(--oak); color: var(--black); transform: scale(1.18); }
.step h3 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--silver-dim);
  transition: color 0.5s var(--ease-out);
}
.step.is-live h3 { color: var(--white); }
.step p { font-size: 0.94rem; color: var(--silver-dim); transition: color 0.5s; }
.step.is-live p { color: var(--silver); }

@media (max-width: 900px) {
  .process__steps { grid-template-columns: 1fr; gap: 30px; }
  .process__line { top: 0; bottom: 0; left: 15px; right: auto; width: 2px; height: auto; }
  .process__line i { inset: 0 0 auto 0; width: 100%; height: 0; }
  .step { padding: 0 0 0 56px; }
  .step__dot { top: 0; }
}

/* ==========================================================================
   13. STORY / PARALLAX EDITORIAL
   ========================================================================== */

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(30px, 5vw, 86px); align-items: center; }
.story__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.story__media > div { position: absolute; inset: -12% 0; will-change: transform; }
.story__quote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.14;
  text-transform: uppercase;
  margin: 0 0 1em;
}
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line-mid);
  margin-top: clamp(34px, 4.5vw, 60px);
}
.pillar { padding: clamp(28px, 3.6vw, 52px) clamp(20px, 2.6vw, 42px); border-left: 1px solid var(--line-mid); }
.pillar:first-child { border-left: 0; }
.pillar b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--steel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.6em;
}
.pillar p { color: var(--silver); font-size: 0.96rem; margin: 0; }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line-mid); }
  .pillar:first-child { border-top: 0; }
}

/* ==========================================================================
   14. STATS
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line-mid);
}
.stat { padding: clamp(28px, 3.6vw, 50px) clamp(16px, 2.4vw, 38px); border-left: 1px solid var(--line-mid); }
.stat:first-child { border-left: 0; }
.stat__n {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  background: var(--steel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.stat__l {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-top: 14px;
}
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-mid); }
}

/* ==========================================================================
   15. TESTIMONIALS
   ========================================================================== */

.quotes { position: relative; text-align: center; }
.quotes__stage { position: relative; min-height: clamp(230px, 26vw, 300px); display: grid; place-items: center; }
.quote {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 26px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
  max-width: 20ch;
  margin-inline: auto;
  text-wrap: balance;
}
.quote figcaption {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oak-light);
}
.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }
.qbtn {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--line-mid);
  border-radius: 50%;
  color: var(--silver);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.qbtn:hover { border-color: var(--oak); color: var(--oak-light); background: rgba(184, 122, 63, 0.08); }
.qcount { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; color: var(--silver-dim); min-width: 62px; }

/* ==========================================================================
   16. TRUST STRIP
   ========================================================================== */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line-mid);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust__cell {
  background: var(--black);
  padding: clamp(22px, 2.6vw, 34px);
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
}
.trust__cell b {
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--oak-light);
}
.trust__cell span { font-size: 0.9rem; color: var(--silver-dim); line-height: 1.5; }

/* Anything still awaiting verified client information */
.pending {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--silver-dim);
  background: rgba(200, 201, 203, 0.04);
}

/* ==========================================================================
   17. CTA BAND
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  border-block: 1px solid var(--line-mid);
  text-align: center;
}
.cta-band__planks {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  opacity: 0.5;
}
.cta-band__planks span {
  background: linear-gradient(180deg, rgba(184, 122, 63, 0.09), transparent 70%);
  border-right: 1px solid rgba(200, 201, 203, 0.05);
  transition: transform 0.6s var(--ease-out), background-color 0.6s;
  transform: translateY(0);
}
.cta-band__inner { position: relative; }
.cta-band h2 { font-size: clamp(2.1rem, 6vw, 4.6rem); margin-bottom: 0.35em; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2.2rem; }

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

.site-footer { position: relative; background: var(--black); border-top: 1px solid var(--line-mid); overflow: hidden; padding-top: clamp(52px, 7vw, 90px); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(38px, 5vw, 66px);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.footer-brand p { max-width: 36ch; margin-top: 18px; color: var(--silver-dim); font-size: 0.94rem; }
.footer-tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 20px;
}
.footer-tag em { font-style: normal; color: var(--oak-light); }

.site-footer h4 { color: var(--white); margin-bottom: 1.3em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.72em; }
.site-footer a { color: var(--silver-dim); text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: var(--oak-light); }

.footer-legal {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0 30px;
  font-size: 0.82rem;
  color: var(--silver-dim);
}
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-legal li { margin: 0; }

/* oversized wordmark bleeding past the viewport edges */
.footer-word {
  position: relative;
  z-index: 1;
  margin: clamp(24px, 3vw, 44px) 0 0;
  font-family: var(--font-head);
  font-size: clamp(6rem, 25vw, 21rem);
  font-weight: 800;
  line-height: 0.76;
  letter-spacing: -0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 201, 203, 0.13);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  margin-inline: calc(var(--gutter) * -1);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   19. INTERIOR PAGE SYSTEMS
   ========================================================================== */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(58px, 8vw, 108px)) 0 clamp(46px, 6vw, 84px);
  border-bottom: 1px solid var(--line-mid);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__tex { position: absolute; inset: 0; z-index: -2; opacity: 0.34; }
.page-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8,8,8,0.94) 0%, rgba(8,8,8,0.72) 46%, rgba(8,8,8,0.96) 100%);
}
.page-hero .lede { margin-top: 1.3rem; }

.crumbs { font-size: 0.79rem; margin-bottom: 1.7rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.crumbs li { color: var(--silver-dim); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 9px; color: var(--line-strong); }
.crumbs a { color: var(--silver-dim); text-decoration: none; }
.crumbs a:hover { color: var(--oak-light); }
.crumbs [aria-current] { color: var(--silver); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}
/* Grid children default to min-width:auto, which lets a wide comparison table
   push the whole column past the viewport instead of scrolling inside its own
   container. This is what keeps the tables scrollable rather than the page. */
.article-layout > * { min-width: 0; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } }

.prose { max-width: var(--measure); min-width: 0; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.5rem, 2.7vw, 2.05rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--oak); }
.prose > p, .prose > ul, .prose > ol { color: #DCDCDA; }

.callout {
  margin: 2.1em 0;
  padding: 24px 28px;
  background: var(--charcoal);
  border-left: 3px solid var(--oak);
  border-radius: var(--radius);
}
.callout b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oak-light);
  margin-bottom: 0.75em;
}
.callout p { color: var(--silver); font-size: 0.96rem; }

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 2.1em 0;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
table.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.93rem; }
@media (max-width: 560px) {
  table.compare { min-width: 520px; font-size: 0.88rem; }
  table.compare th, table.compare td { padding: 12px 14px; }
}
table.compare caption {
  caption-side: top;
  text-align: left;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-mid);
}
table.compare th, table.compare td { padding: 15px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th {
  background: var(--charcoal);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--line-mid);
}
table.compare tbody th { color: var(--white); font-weight: 600; }
table.compare td { color: var(--silver); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }

.side-rail { position: sticky; top: calc(var(--header-h) + 22px); display: grid; gap: 20px; }
.rail-card {
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-top: 2px solid var(--oak);
  border-radius: var(--radius);
  padding: 26px;
}
.rail-card h3 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rail-card p { color: var(--silver); font-size: 0.91rem; }
.rail-card .btn { margin-top: 16px; }
.rail-links { list-style: none; margin: 0; padding: 0; }
.rail-links li { border-bottom: 1px solid var(--line); }
.rail-links li:last-child { border-bottom: 0; }
.rail-links a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 13px 2px; font-size: 0.89rem; color: var(--silver); text-decoration: none;
  transition: padding-left 0.3s var(--ease-out);
}
.rail-links a::after { content: "→"; color: var(--oak); }
.rail-links a:hover { color: var(--white); padding-left: 6px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line-mid); }
.faq { border-bottom: 1px solid var(--line-mid); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 23px 4px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.98rem, 1.6vw, 1.14rem);
  color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq__x { flex: none; width: 15px; height: 15px; position: relative; color: var(--oak-light); }
.faq__x::before, .faq__x::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.34s var(--ease-out);
}
.faq__x::after { transform: translateY(-50%) rotate(90deg); }
.faq[open] .faq__x::after { transform: translateY(-50%) rotate(0); }
.faq__a { padding: 0 4px 26px; color: var(--silver); max-width: var(--measure); }

/* Cards used sparingly, only where a set is genuinely parallel */
.grid-even { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid-even--2 { grid-template-columns: repeat(2, 1fr); }
.grid-even--3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.34s var(--ease-out), transform 0.34s var(--ease-out), background-color 0.34s;
}
a.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--charcoal-2); }
.tile__n { font-family: var(--font-head); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.24em; color: var(--oak-light); margin-bottom: 16px; }
.tile h3 { text-transform: uppercase; letter-spacing: 0.04em; }
.tile p { color: var(--silver-dim); font-size: 0.93rem; }
.tile .link-u { margin-top: auto; padding-top: 20px; }
@media (max-width: 900px) { .grid-even--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-even--2, .grid-even--3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   20. MULTI-STEP ESTIMATE FORM
   ========================================================================== */

.estimator {
  background: var(--charcoal);
  border: 1px solid var(--line-mid);
  border-top: 2px solid var(--oak);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 46px);
}

.estimator__bar { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(26px, 3vw, 40px); }
.estimator__seg { flex: 1; display: grid; gap: 9px; }
.estimator__seg i { display: block; height: 2px; background: var(--line-mid); position: relative; overflow: hidden; }
.estimator__seg i::after {
  content: "";
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--wood);
  transition: right 0.5s var(--ease-out);
}
.estimator__seg.is-done i::after, .estimator__seg.is-live i::after { right: 0; }
.estimator__seg span {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dim);
  transition: color 0.4s;
}
.estimator__seg.is-live span, .estimator__seg.is-done span { color: var(--white); }

.estimator__step { display: none; }
.estimator__step.is-live { display: block; animation: stepIn 0.5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.estimator__q {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}
.estimator__hint { color: var(--silver-dim); font-size: 0.92rem; margin-bottom: 1.8rem; }

.estimator__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.estimator__nav .btn { min-width: 150px; }

/* choice chips (material + project type) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  padding: 14px 18px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  cursor: pointer;
  transition: border-color 0.28s, color 0.28s, background-color 0.28s;
}
.choice span::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--sw, var(--charcoal-2));
}
.choice input:hover + span { border-color: var(--line-strong); color: var(--white); }
.choice input:checked + span { border-color: var(--oak); color: var(--white); background: rgba(184, 122, 63, 0.1); }
.choice input:focus-visible + span { outline: 2px solid var(--oak-light); outline-offset: 3px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 10px;
}
.field label .req { color: var(--oak-light); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.26s;
}
.field input::placeholder, .field textarea::placeholder { color: #5E5F62; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--oak); outline: none; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 49%, var(--silver) 50%), linear-gradient(-45deg, transparent 49%, var(--silver) 50%);
  background-position: calc(100% - 21px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 140px; resize: vertical; }
.field small { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--silver-dim); }

.form-status { margin-top: 20px; padding: 17px 20px; border-radius: var(--radius); font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: rgba(184, 122, 63, 0.13); border: 1px solid var(--oak); }
.form-status.err { display: block; background: rgba(180, 62, 62, 0.13); border: 1px solid #B44040; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   21. REVEALS / MOTION
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
.reveal-1.is-in { transition-delay: 0.09s; }
.reveal-2.is-in { transition-delay: 0.18s; }
.reveal-3.is-in { transition-delay: 0.27s; }

/* clip-path plank wipe for media blocks */
.wipe { clip-path: inset(0 0 100% 0); }
.wipe.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.05s var(--ease-io); }

/* diagonal K-angle reveal */
.wipe-k { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.wipe-k.is-in { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); transition: clip-path 1.15s var(--ease-io); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .wipe, .wipe-k { opacity: 1; transform: none; clip-path: none; }
  .cursor, .cursor__ring, .loader, .build { display: none !important; }
  .hero__floor-plane { transform: rotateX(64deg) !important; }
}

/* ==========================================================================
   22. GOOGLE TRANSLATE — restyled to belong to the site
   ========================================================================== */

.gt-wrap { position: relative; }
.gt-wrap .goog-te-gadget {
  font-family: var(--font-head) !important;
  font-size: 0 !important;
  color: transparent !important;
}
.gt-wrap .goog-te-gadget .goog-te-combo {
  appearance: none;
  margin: 0 !important;
  padding: 10px 34px 10px 14px;
  background: transparent;
  background-image: linear-gradient(45deg, transparent 49%, var(--silver) 50%), linear-gradient(-45deg, transparent 49%, var(--silver) 50%);
  background-position: calc(100% - 17px) 54%, calc(100% - 12px) 54%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  color: var(--silver);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.28s, color 0.28s;
}
.gt-wrap .goog-te-gadget .goog-te-combo:hover { border-color: var(--oak); color: var(--white); }
.gt-wrap .goog-te-gadget .goog-te-combo option { background: var(--charcoal); color: var(--white); }
.gt-wrap .goog-te-gadget img,
.gt-wrap .goog-te-gadget span:not(:has(select)) { display: none !important; }

/* Google injects a top banner frame that shoves the page down; neutralize it */
body { top: 0 !important; }
.skiptranslate iframe.skiptranslate,
iframe.goog-te-banner-frame { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ==========================================================================
   23. UTILITIES
   ========================================================================== */

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-1 { margin-top: 1.4rem; }
.mt-2 { margin-top: 2.2rem; }
.mt-3 { margin-top: 3rem; }
.nowrap { white-space: nowrap; }
