/* ============================================================
   WB PRO WOODWORKS — styles.css
   Look & feel taken from the brand imagery: warm walnut and oak,
   Montserrat lettering, hairline rules with "+" crosshair ends,
   sharp square corners, no icons.
   ============================================================ */

/* ============================================================
   FONTS (self-hosted, one variable file covers 300–700)
   ============================================================ */
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Project variables */
  --color-primary: #0e0b09; /* warm black */
  --color-secondary: #f4efe7; /* cream */
  --color-accent: #c49a6c; /* oak */
  --font-heading: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Palette */
  --ink: #0e0b09;
  --walnut: #241a14;
  --walnut-2: #33261d;
  --oak: #c49a6c;
  --oak-deep: #8a5f33;
  --cream: #f4efe7;
  --paper: #fbf9f5;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 5vw, 3rem);
  --header-height: 5rem;
  --section-pad: clamp(4.5rem, 10vw, 9rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);

  /* Default (light) theme tokens — sections override these */
  --bg: var(--cream);
  --fg: var(--ink);
  --fg-mute: rgba(14, 11, 9, 0.72);
  --line: rgba(14, 11, 9, 0.2);
  --accent-text: var(--oak-deep);
  --btn-fill: var(--ink);
  --btn-fill-text: var(--cream);
}

/* Dark themed surfaces */
.section--dark,
.section--walnut,
.hero,
.page-hero,
.site-footer {
  --bg: var(--ink);
  --fg: var(--cream);
  --fg-mute: rgba(244, 239, 231, 0.72);
  --line: rgba(244, 239, 231, 0.22);
  --accent-text: var(--oak);
  --btn-fill: var(--cream);
  --btn-fill-text: var(--ink);
  background-color: var(--bg);
  color: var(--fg);
}

.section--walnut {
  --bg: var(--walnut);
}

.section--light {
  background-color: var(--cream);
  color: var(--ink);
}

.section--paper {
  --bg: var(--paper);
  background-color: var(--paper);
  color: var(--ink);
}

/* ============================================================
   RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

html.nav-locked {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

main {
  flex: 1;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

strong {
  font-weight: 600;
}

p {
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

h2 + .lede {
  margin-top: 1.5rem;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--fg-mute);
}

.statement {
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 34ch;
}

.muted {
  color: var(--fg-mute);
}

.stack > * + * {
  margin-top: 1.25rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 4rem;
  }
}

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--top {
    align-items: start;
  }
}

/* Hairline rule with "+" crosshair ends — lifted from the brand imagery */
.rule {
  position: relative;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
}

.rule::before,
.rule::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px;
  height: 13px;
  background: var(--line);
  transform: translateY(-50%);
}

.rule::before {
  left: 0;
}

.rule::after {
  right: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-height);
  color: var(--cream);
  transition: height 0.5s var(--ease);
  animation: fade-in 1.2s var(--ease) 0.2s both;
}

/* Backdrop lives on a pseudo-element so it does not trap the fixed mobile menu */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 11, 9, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 239, 231, 0.14);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.site-header.is-scrolled {
  --header-height: 4.25rem;
  height: 4.25rem;
}

.site-header.is-scrolled::before,
.site-header.nav-open::before {
  opacity: 1;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.site-logo img {
  height: 2.6rem;
  width: auto;
  transition: height 0.5s var(--ease), opacity 0.3s ease;
}

.site-header.is-scrolled .site-logo img {
  height: 2.2rem;
}

.site-logo:hover img {
  opacity: 0.75;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--oak);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

/* Nav — mobile: full-screen overlay */
.nav-list {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  padding: calc(var(--header-height) + 1rem) var(--container-pad) 3rem;
  background: var(--ink);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}

.site-header.nav-open .nav-list {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s var(--ease), visibility 0s;
}

.nav-list li {
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 239, 231, 0.12);
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.85rem 0;
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  transform: translateY(100%);
  transition: transform 0.7s var(--ease), color 0.3s ease;
}

.site-header.nav-open .nav-link {
  transform: none;
}

.site-header.nav-open li:nth-child(1) .nav-link { transition-delay: 0.05s; }
.site-header.nav-open li:nth-child(2) .nav-link { transition-delay: 0.1s; }
.site-header.nav-open li:nth-child(3) .nav-link { transition-delay: 0.15s; }
.site-header.nav-open li:nth-child(4) .nav-link { transition-delay: 0.2s; }
.site-header.nav-open li:nth-child(5) .nav-link { transition-delay: 0.25s; }
.site-header.nav-open li:nth-child(6) .nav-link { transition-delay: 0.3s; }
.site-header.nav-open li:nth-child(7) .nav-link { transition-delay: 0.35s; }

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--oak);
}

/* Hamburger toggle */
.nav-toggle {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  margin-right: -0.5rem;
}

.nav-toggle__bar {
  display: block;
  width: 1.65rem;
  height: 1px;
  background-color: currentColor;
  transition: transform 0.5s var(--ease), width 0.4s var(--ease);
}

.nav-toggle__bar:nth-child(2) {
  width: 1.1rem;
}

.nav-toggle:hover .nav-toggle__bar:nth-child(2) {
  width: 1.65rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  width: 1.65rem;
  transform: translateY(-4px) rotate(-45deg);
}

/* Nav — desktop: inline row */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-list {
    position: static;
    inset: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(1.25rem, 2.2vw, 2.25rem);
    padding: 0;
    background: transparent;
    visibility: visible;
    opacity: 1;
    transition: none;
  }

  .nav-list li {
    overflow: visible;
    border: none;
  }

  .nav-link {
    padding: 0.4rem 0;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transform: none;
    transition: color 0.3s ease;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--oak);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.5s var(--ease);
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .nav-link--cta {
    padding: 0.8rem 1.4rem;
    border: 1px solid var(--oak);
    color: var(--oak);
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  }

  .nav-link--cta::after {
    display: none;
  }

  .nav-link--cta:hover,
  .nav-link--cta[aria-current="page"] {
    background: var(--oak);
    color: var(--ink);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.9rem;
  border: 1px solid currentColor;
  color: var(--fg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  color: var(--btn-fill-text);
  border-color: var(--btn-fill);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}

.btn--solid {
  background: var(--oak);
  border-color: var(--oak);
  color: var(--ink);
}

/* The arrow: a hairline that lengthens on hover */
.btn__line {
  position: relative;
  display: block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease);
}

.btn__line::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.btn:hover .btn__line {
  width: 2.25rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Text link with sliding underline */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
  font-weight: 500;
  color: var(--accent-text);
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transition: transform 0.5s var(--ease);
}

.link:hover::after {
  transform: scaleX(0);
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -8% 0;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  transform: scaleX(-1);
  animation: slow-zoom 20s ease-out both;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 11, 9, 0.9) 0%, rgba(14, 11, 9, 0.7) 52%, rgba(14, 11, 9, 0.22) 100%),
    linear-gradient(0deg, rgba(14, 11, 9, 0.9) 0%, rgba(14, 11, 9, 0) 45%);
}

.hero__content {
  position: relative;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 5.1rem);
  line-height: 1.06;
  text-wrap: initial;
}

.hero .lede {
  margin-top: 1.75rem;
  max-width: 46ch;
}

.hero .btn-row {
  margin-top: 2.5rem;
}

.hero__foot {
  position: relative;
  padding-bottom: 2rem;
}

.hero__facts {
  display: grid;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

@media (min-width: 700px) {
  .hero__facts {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
  }
}

.hero__facts a:hover {
  color: var(--oak);
}

/* Masked line-by-line headline reveal (CSS only, runs on load) */
.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.mask > span {
  display: block;
  transform: translateY(112%);
  animation: rise 1.2s var(--ease) forwards;
  animation-delay: calc(0.3s + var(--i, 0) * 0.13s);
}

.hero .eyebrow,
.hero .lede,
.hero .btn-row,
.page-hero .eyebrow,
.page-hero .lede,
.page-hero .btn-row,
.breadcrumb {
  animation: fade-up 1.1s var(--ease) both;
}

.hero .eyebrow,
.page-hero .eyebrow,
.breadcrumb {
  animation-delay: 0.15s;
}

.hero .lede,
.page-hero .lede {
  animation-delay: 0.85s;
}

.hero .btn-row,
.page-hero .btn-row {
  animation-delay: 1s;
}

.hero .rule {
  animation: draw 1.6s var(--ease-in-out) 1.1s both;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.page-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .page-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .page-hero__grid--wide {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  animation: fade-up 1.1s var(--ease) 0.35s both;
}

.page-hero .lede {
  margin-top: 1.75rem;
  max-width: 48ch;
}

.page-hero .btn-row {
  margin-top: 2.25rem;
}

.page-hero__media {
  width: 100%;
  max-width: 36rem;
  justify-self: end;
}

.page-hero__media--wide {
  max-width: none;
}

.breadcrumb {
  margin-bottom: 1.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  opacity: 0.5;
}

.breadcrumb a:hover {
  color: var(--oak);
}

.breadcrumb [aria-current] {
  color: var(--cream);
}

/* ============================================================
   IMAGE FRAMES + REVEALS
   ============================================================ */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--walnut);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.4s var(--ease), transform 1.6s var(--ease);
}

.frame--square {
  aspect-ratio: 1 / 1;
}

.frame--wide {
  aspect-ratio: 3 / 2;
}

/* Ink veil that wipes away. --load runs on page load, --veil waits for scroll. */
.frame--load::after,
html.js .frame--veil::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ink);
  transform-origin: top center;
  pointer-events: none;
}

.frame--load::after {
  animation: veil 1.3s var(--ease-in-out) 0.45s both;
}

html.js .frame--veil::after {
  transition: transform 1.3s var(--ease-in-out);
}

html.js .frame--veil.is-visible::after {
  transform: scaleY(0);
}

html.js .frame--veil img {
  transform: scale(1.18);
}

html.js .frame--veil.is-visible img {
  transform: scale(1);
}

/* Scroll reveal for text and blocks */
html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js .rule.reveal {
  opacity: 1;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-in-out);
  transition-delay: var(--d, 0s);
}

html.js .rule.reveal.is-visible {
  transform: scaleX(1);
}

/* ============================================================
   FACTS
   ============================================================ */
.facts {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 760px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.fact {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.fact::before {
  content: "+";
  position: absolute;
  top: -0.8rem;
  left: -0.3rem;
  padding: 0 0.3rem;
  font-weight: 300;
  color: var(--accent-text);
  background: var(--bg);
}

.fact__num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.03em;
}

.fact__num--text {
  font-size: clamp(2rem, 3.4vw, 3rem);
  padding-block: 0.4rem;
}

.fact__label {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--fg-mute);
  max-width: 28ch;
}

/* ============================================================
   SERVICE INDEX (hover-reveal thumbnails)
   ============================================================ */
.index-list {
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.index-item {
  border-top: 1px solid var(--line);
}

.index-link {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2rem;
  gap: 0.35rem 1rem;
  align-items: center;
  padding-block: 1.75rem;
  transition: padding 0.6s var(--ease);
}

.index-num {
  grid-row: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-text);
}

.index-title {
  grid-row: 1;
  font-size: clamp(1.35rem, 2.6vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: transform 0.6s var(--ease), color 0.4s ease;
}

.index-desc {
  grid-column: 2;
  font-size: 0.95rem;
  color: var(--fg-mute);
  max-width: 44ch;
}

.index-go {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  position: relative;
  width: 1.75rem;
  height: 1px;
  background: var(--fg);
  transition: width 0.6s var(--ease), background-color 0.4s ease;
}

.index-go::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.index-thumb {
  display: none;
}

.index-link:hover .index-title,
.index-link:focus-visible .index-title {
  color: var(--oak);
  transform: translateX(0.9rem);
}

.index-link:hover .index-go {
  width: 3rem;
  background: var(--oak);
}

@media (min-width: 900px) {
  .index-link {
    grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 0.95fr) 4rem;
    padding-block: 2.4rem;
  }

  .index-desc {
    grid-column: 3;
    grid-row: 1;
    padding-right: 9rem;
  }

  .index-go {
    grid-column: 4;
    grid-row: 1;
  }

  .index-thumb {
    display: block;
    position: absolute;
    top: 50%;
    right: 6.5rem;
    width: 8rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(1.5rem, -50%) scale(0.96);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
    z-index: 2;
  }

  .index-link:hover .index-thumb,
  .index-link:focus-visible .index-thumb {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
  }
}

/* ============================================================
   WORK TILES
   ============================================================ */
.tiles {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
}

@media (min-width: 640px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .tile:nth-child(3n + 2) {
    margin-top: 4.5rem;
  }
}

.tile {
  display: block;
}

.tile .frame {
  position: relative;
}

.tile__go {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 11, 9, 0);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  transition: background-color 0.6s var(--ease);
}

.tile__go span {
  position: relative;
  padding: 0.9rem 1.4rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

/* Crosshair corners that draw in on hover */
.tile__go span::before,
.tile__go span::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 0 solid var(--cream);
  transition: width 0.6s var(--ease), height 0.6s var(--ease);
}

.tile__go span::before {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}

.tile__go span::after {
  right: 0;
  bottom: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

.tile:hover .tile__go,
.tile:focus-visible .tile__go {
  background: rgba(14, 11, 9, 0.42);
}

.tile:hover .tile__go span,
.tile:focus-visible .tile__go span {
  opacity: 1;
  transform: none;
}

.tile:hover .tile__go span::before,
.tile:hover .tile__go span::after,
.tile:focus-visible .tile__go span::before,
.tile:focus-visible .tile__go span::after {
  width: 1.1rem;
  height: 1.1rem;
}

.tile:hover .frame img {
  scale: 1.06;
}

.tile__cap {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.1rem;
  font-size: 0.95rem;
}

.tile__cap b {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-text);
}

.tile__cap span {
  position: relative;
}

.tile__cap span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
}

.tile:hover .tile__cap span::after {
  transform: scaleX(1);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps {
  display: grid;
  gap: 2.5rem 2rem;
  list-style: none;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .steps--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.split .steps {
  margin-top: 2.5rem;
}

.step {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s ease;
}

.step::before {
  content: "+";
  position: absolute;
  top: -0.8rem;
  left: -0.3rem;
  padding: 0 0.3rem;
  font-weight: 300;
  color: var(--accent-text);
  background: var(--bg);
  transition: transform 0.6s var(--ease);
}

.step:hover {
  border-color: var(--oak);
}

.step:hover::before {
  transform: rotate(90deg);
}

.step__num {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 2.4rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}

.step h3 {
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--fg-mute);
}

/* ============================================================
   LISTS
   ============================================================ */
.ticklist {
  list-style: none;
}

.ticklist li {
  display: flex;
  gap: 1.1rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), color 0.4s ease;
}

.ticklist li:last-child {
  border-bottom: 1px solid var(--line);
}

.ticklist li::before {
  content: "+";
  font-weight: 300;
  color: var(--accent-text);
  transition: transform 0.6s var(--ease);
}

.ticklist li:hover {
  padding-left: 0.6rem;
}

.ticklist li:hover::before {
  transform: rotate(90deg);
}

/* ============================================================
   TIMELINE (about)
   ============================================================ */
.timeline {
  list-style: none;
}

.timeline__row {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  transition: padding-left 0.6s var(--ease);
}

.timeline__row:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline__row:hover {
  padding-left: 0.75rem;
}

.timeline__years {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.timeline__row h3 {
  margin-bottom: 0.4rem;
}

.timeline__row p,
.timeline__row li {
  font-size: 0.95rem;
  color: var(--fg-mute);
}

.timeline__row ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

@media (min-width: 800px) {
  .timeline__row {
    grid-template-columns: 11rem 1fr;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  border-bottom: 1px solid var(--line);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.6rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color 0.4s ease, padding-left 0.5s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.7rem;
  font-weight: 200;
  line-height: 1;
  color: var(--accent-text);
  transition: transform 0.6s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq summary:hover {
  color: var(--accent-text);
  padding-left: 0.6rem;
}

.faq__answer {
  padding-bottom: 1.75rem;
  color: var(--fg-mute);
  animation: fade-up 0.7s var(--ease) both;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.cta::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: min(60vw, 46rem);
  aspect-ratio: 1197 / 513;
  background: url("/assets/images/wb-pro-woodworks-logo-mark.webp") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
}

.cta .lede {
  margin-top: 1.5rem;
}

.cta .btn-row {
  margin-top: 2.5rem;
}

.cta__phone {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  transition: color 0.4s ease;
}

.cta__phone:hover {
  color: var(--oak);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.contact-list {
  list-style: none;
  margin-top: 2.5rem;
}

.contact-list li {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list small {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.contact-list a {
  font-size: 1.25rem;
  font-weight: 300;
  transition: color 0.4s ease;
}

.contact-list a:hover {
  color: var(--accent-text);
}

.form-panel {
  padding: clamp(1.75rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  gap: 0 2rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-group--full {
    grid-column: 1 / -1;
  }
}

.form-group {
  position: relative;
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  appearance: none;
  transition: border-color 0.4s ease;
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg-mute) 50%),
    linear-gradient(135deg, var(--fg-mute) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.form-group select option {
  background: var(--walnut);
  color: var(--cream);
}

/* Focus line draws in from the left */
.form-group::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--oak);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.form-group:focus-within::after {
  transform: scaleX(1);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
}

/* Honeypot — hidden from people, visible to bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: #22c55e;
}

.form-status.error {
  color: #ef4444;
}

.form-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--fg-mute);
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   PROSE (privacy)
   ============================================================ */
.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
}

.prose p + p {
  margin-top: 1rem;
}

.prose ul {
  margin: 1rem 0 0 1.25rem;
  max-width: 62ch;
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: 2rem;
}

.footer-top {
  display: grid;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 3rem;
  }
}

.footer-brand img {
  width: 12rem;
  height: auto;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--fg-mute);
  max-width: 34ch;
}

.footer-col h2 {
  margin-bottom: 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.footer-nav {
  display: grid;
  gap: 0.65rem;
  list-style: none;
}

.footer-nav a,
.footer-contact a {
  position: relative;
  display: inline-block;
  font-size: 0.92rem;
  color: var(--fg-mute);
  transition: color 0.4s ease, transform 0.5s var(--ease);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--cream);
  transform: translateX(0.4rem);
}

.footer-contact {
  display: grid;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--fg-mute);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.75rem;
  font-size: 0.78rem;
  color: var(--fg-mute);
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--oak);
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Mobile call / WhatsApp bar */
.cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  border-top: 1px solid rgba(244, 239, 231, 0.18);
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
}

.cta-bar.is-visible {
  transform: none;
}

.cta-bar a {
  padding: 1.05rem 0.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.cta-bar a + a {
  background: var(--oak);
  color: var(--ink);
}

.cta-bar a:active {
  background: var(--cream);
  color: var(--ink);
}

@media (min-width: 768px) {
  .cta-bar {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-bottom: 5rem;
  }
}

/* Stagger for the masked headline lines (CSS only, no inline styles) */
.hero h1 .mask:nth-child(1) > span { --i: 0; }
.hero h1 .mask:nth-child(2) > span { --i: 1; }
.hero h1 .mask:nth-child(3) > span { --i: 2; }
.hero h1 .mask:nth-child(4) > span { --i: 3; }

/* Reveal delay helpers */
.d1 { --d: 0.1s; }
.d2 { --d: 0.2s; }
.d3 { --d: 0.3s; }
.d4 { --d: 0.4s; }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.85rem 1.25rem;
  background: var(--oak);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 0.4s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ============================================================
   MISC BLOCKS
   ============================================================ */
.list-title {
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.faq-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 5rem;
  }

  .faq-layout__head {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

.faq-layout__head .muted {
  margin-top: 1.25rem;
}

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.6rem;
  list-style: none;
}

.areas li {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.areas li:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ============================================================
   FOCUS STYLES — do not remove
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes rise {
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* The photo is mirrored so the carpenter's hands sit on the right, away from the headline */
@keyframes slow-zoom {
  from {
    transform: scaleX(-1) scale(1.14);
  }

  to {
    transform: scaleX(-1) scale(1);
  }
}

@keyframes veil {
  from {
    transform: scaleY(1);
  }

  to {
    transform: scaleY(0);
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .hero__media {
    transform: none;
  }
}
