/* ============================================================
   WeRhino — Custom Woodworking & Millwork
   Premium landing page styles
   ============================================================ */

:root {
  /* Palette — warm, woody, premium */
  --ink: #16120e;          /* near-black espresso */
  --ink-soft: #221c16;
  --cream: #f3ede3;        /* warm paper */
  --cream-dim: #cfc6b8;
  --walnut: #8b5e3c;
  --amber: #c89b6d;        /* brushed brass / amber */
  --amber-bright: #e0b683;
  --line: rgba(243, 237, 227, 0.12);
  --line-dark: rgba(22, 18, 14, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);

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

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cream);
  background: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }

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

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.4rem;
}
.section-label--center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
}
.tech-figure.services__figure {
  width: clamp(200px, 24vw, 300px);
  flex: 0 0 auto;
}

/* split-text words (populated by JS) */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
}
html.no-motion .split-word > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(36px); }
html.no-motion [data-reveal],
html.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Technical drawings (millwork shop-drawing motifs) ---------- */
.tech-figure { width: 100%; }
.tech-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.tech-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.tech-line--faint { opacity: 0.42; }
.tech-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: var(--amber);
  opacity: 0.85;
}
.tech-caption {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0.7;
}
/* on light sections the drawings switch to walnut ink */
.services .tech-line { stroke: var(--walnut); }
.services .tech-label { fill: var(--walnut); }
.services .tech-caption { color: var(--walnut); opacity: 0.75; }

/* dimension-line section divider:  |←  label  →|  */
.dim-divider {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(3rem, 6vh, 5rem);
  color: var(--amber);
}
.dim-divider__tick {
  width: 1px;
  height: 16px;
  background: var(--amber);
  opacity: 0.65;
}
.dim-divider__line {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(200, 155, 109, 0.32);
}
.dim-divider__line--l::before,
.dim-divider__line--r::after {
  content: "";
  position: absolute;
  top: -3.5px;
  border: 4px solid transparent;
}
.dim-divider__line--l::before {
  left: 0;
  border-right: 7px solid rgba(200, 155, 109, 0.7);
}
.dim-divider__line--r::after {
  right: 0;
  border-left: 7px solid rgba(200, 155, 109, 0.7);
}
.dim-divider__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05em 2.4em;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn--solid {
  background: var(--amber);
  color: var(--ink);
}
.btn--solid::after { background: var(--cream); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn--ghost::after { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); border-color: var(--cream); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--amber);
  border-bottom: 1px solid transparent;
  transition: gap 0.3s var(--ease-out), border-color 0.3s;
  padding-bottom: 2px;
}
.link-arrow:hover { gap: 1.1em; border-color: var(--amber); }

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--ink);
}
.preloader__inner { text-align: center; }
.preloader__logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--cream);
}
.preloader__logo span { color: var(--amber); font-style: italic; }
.preloader__logo-img {
  display: block;
  width: min(150px, 42vw);
  height: auto;
  margin-inline: auto;
}
.preloader__bar {
  width: min(260px, 60vw);
  height: 1px;
  margin: 1.6rem auto 0.9rem;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
}
.preloader__counter {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--cream-dim);
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.header.is-scrolled {
  background: rgba(22, 18, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.header__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}
.header__logo-img {
  display: block;
  height: 52px;
  width: auto;
}
.header__logo span { color: var(--amber); font-style: italic; }
.header__logo-dot {
  width: 6px; height: 6px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--amber);
  align-self: center;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}
.header__link {
  position: relative;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
  transition: color 0.3s;
  padding-block: 4px;
}
.header__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.header__link:hover { color: var(--cream); }
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7em 1.6em;
  border: 1px solid var(--amber);
  border-radius: 100px;
  color: var(--amber);
  transition: background 0.3s, color 0.3s;
}
.header__cta:hover { background: var(--amber); color: var(--ink); }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 10px 4px;
}
.header__burger span {
  display: block;
  width: 28px; height: 2px;
  background: var(--cream);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: var(--gutter);
  background: rgba(22, 18, 14, 0.97);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  color: var(--cream);
  padding-block: 0.3rem;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s, color 0.3s;
}
.mobile-menu.is-open .mobile-menu__link { transform: none; opacity: 1; }
.mobile-menu__link:hover { color: var(--amber); }
.mobile-menu__link--cta { color: var(--amber); font-style: italic; }
.mobile-menu__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--cream-dim);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--gutter) + 70px) var(--gutter) var(--gutter);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* build annotation hotspots — positioned by JS from 3D anchors,
   revealed by the build timeline at the hand-finished stage */
.hero__spots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.hero__spot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.hero__spot-dot {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--amber);
}
.hero__spot-dot::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--amber);
}
.hero__spot-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(200, 155, 109, 0.45);
  animation: spotPulse 2.8s ease-out infinite;
}
@keyframes spotPulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.hero__spot-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  padding: 0.38rem 0.65rem;
  border: 1px solid rgba(200, 155, 109, 0.3);
  background: rgba(22, 18, 14, 0.66);
  backdrop-filter: blur(4px);
  transition: color 0.3s, border-color 0.3s;
}
.hero__spot:hover .hero__spot-label {
  color: var(--amber);
  border-color: rgba(200, 155, 109, 0.7);
}
@media (prefers-reduced-motion: reduce) {
  .hero__spot-dot::after { animation: none; opacity: 0; }
}
@media (max-width: 768px) {
  .hero__spot-label {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    padding: 0.28rem 0.45rem;
  }
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 20%, transparent 40%, rgba(22, 18, 14, 0.75) 100%),
    linear-gradient(to top, var(--ink) 0%, transparent 28%);
}
/* drafting-sheet annotation layer */
.hero__draft {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__mark {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.5;
}
.hero__mark::before,
.hero__mark::after {
  content: "";
  position: absolute;
  background: var(--amber);
}
.hero__mark::before { width: 100%; height: 1px; top: 50%; }
.hero__mark::after { width: 1px; height: 100%; left: 50%; }
.hero__mark--tl { top: 86px; left: 22px; }
.hero__mark--tr { top: 86px; right: 22px; }
.hero__mark--bl { bottom: 22px; left: 22px; }
.hero__mark--br { bottom: 22px; right: 22px; }

.hero__dim {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--amber);
}
.hero__dim--bottom {
  left: clamp(60px, 8vw, 140px);
  right: clamp(60px, 8vw, 140px);
  bottom: 16px;
}
.hero__dim--right {
  top: 50%;
  right: 30px;
  width: clamp(220px, 32vh, 380px);
  transform: rotate(90deg) translateX(-50%);
  transform-origin: right center;
}
.hero__dim .dim-divider__label { font-size: 0.62rem; opacity: 0.7; }
.hero__dim .dim-divider__line { background: rgba(200, 155, 109, 0.25); }
.hero__dim .dim-divider__tick { height: 12px; opacity: 0.5; }

.hero__callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero__callout-line {
  width: clamp(40px, 6vw, 110px);
  height: 1px;
  background: linear-gradient(to left, rgba(200, 155, 109, 0.65), transparent);
  position: relative;
}
.hero__callout-line::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--amber);
}
.hero__callout-label {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.8;
  white-space: nowrap;
}
.hero__callout--1 { top: 34%; right: 4%; flex-direction: row-reverse; }
.hero__callout--1 .hero__callout-line {
  background: linear-gradient(to right, rgba(200, 155, 109, 0.65), transparent);
}
.hero__callout--1 .hero__callout-line::after { right: auto; left: -3px; }
.hero__callout--2 { top: 22%; right: 30%; flex-direction: row-reverse; }
.hero__callout--2 .hero__callout-line {
  background: linear-gradient(to right, rgba(200, 155, 109, 0.65), transparent);
}
.hero__callout--2 .hero__callout-line::after { right: auto; left: -3px; }

.hero__titleblock {
  position: absolute;
  right: 22px;
  top: 100px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(200, 155, 109, 0.35);
  background: rgba(22, 18, 14, 0.55);
  backdrop-filter: blur(4px);
}
.hero__titleblock-row {
  padding: 0.45rem 0.9rem;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-bottom: 1px solid rgba(200, 155, 109, 0.25);
  white-space: nowrap;
}
.hero__titleblock-row:last-child { border-bottom: 0; }
.hero__titleblock-row strong {
  font-weight: 600;
  color: var(--amber);
  margin-right: 0.4em;
}

@media (max-width: 900px) {
  .hero__callout, .hero__titleblock, .hero__dim--right { display: none; }
  .hero__dim--bottom { bottom: 18px; left: 50px; right: 50px; }
  .hero__mark--tl, .hero__mark--tr { top: 76px; }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100%);
  margin-inline: auto;
  /* soft dark halo keeps copy legible if the render reveal
     grazes the edge of the text */
  text-shadow:
    0 1px 16px rgba(22, 18, 14, 0.85),
    0 0 3px rgba(22, 18, 14, 0.6);
}
.hero__content .btn { text-shadow: none; }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: clamp(1.4rem, 3vh, 2.4rem);
}
.hero__eyebrow-line {
  width: 48px; height: 1px;
  background: var(--amber);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.9rem, 9vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.hero__title em {
  font-style: italic;
  color: var(--amber-bright);
}
.hero__title-line {
  display: block;
  overflow: hidden;
}
.hero__title-line > span { display: inline-block; will-change: transform; }
.hero__sub {
  max-width: 46ch;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 300;
  color: var(--cream-dim);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.8rem, 4vh, 3rem);
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 6vh, 4rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.hero__scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(var(--amber), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.55); opacity: 0.5; }
}
.hero__stats {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100%);
  margin: clamp(2.5rem, 7vh, 5rem) auto 0;
  display: flex;
  gap: clamp(2rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.4rem, 3vh, 2.2rem);
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  color: var(--cream);
}
.hero__stat strong i {
  font-style: normal;
}
.hero__stat span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  background: var(--ink-soft);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-style: italic;
  color: var(--cream-dim);
}
.marquee__track i {
  font-style: normal;
  color: var(--amber);
  font-size: 0.7em;
}

/* ============================================================
   Manifesto
   ============================================================ */
.manifesto { padding: clamp(6rem, 14vh, 11rem) 0; }
.manifesto__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.manifesto__figure {
  max-width: 400px;
  width: 100%;
  justify-self: end;
}
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 22em;
  color: var(--cream);
}
.manifesto__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vh, 4rem);
}
.manifesto__detail {
  max-width: 44ch;
  color: var(--cream-dim);
  font-weight: 300;
}

/* ============================================================
   Services
   ============================================================ */
.services {
  padding: clamp(5rem, 12vh, 9rem) 0;
  background: var(--cream);
  color: var(--ink);
}
.services .section-title { color: var(--ink); }
.services__list { border-top: 1px solid var(--line-dark); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  grid-template-areas: "idx name arrow" "idx desc arrow";
  align-items: center;
  column-gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.4rem, 3vh, 2.2rem) clamp(0.6rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--line-dark);
  cursor: pointer;
  isolation: isolate;
  transition: color 0.35s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
}
.service:hover::before,
.service:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.service:hover,
.service:focus-visible { color: var(--cream); }

.service__index {
  grid-area: idx;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--walnut);
  transition: color 0.35s;
}
.service:hover .service__index { color: var(--amber); }
.service__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}
.service__desc {
  grid-area: desc;
  max-width: 58ch;
  font-size: 0.95rem;
  font-weight: 300;
  color: inherit;
  opacity: 0.65;
  margin-top: 0.4rem;
}
.service__arrow {
  grid-area: arrow;
  font-size: 1.6rem;
  color: var(--walnut);
  transform: translateX(-12px);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s, color 0.35s;
}
.service:hover .service__arrow,
.service:focus-visible .service__arrow {
  transform: none;
  opacity: 1;
  color: var(--amber);
}

/* ============================================================
   Projects — pinned horizontal scroll
   ============================================================ */
.projects {
  padding-top: clamp(5rem, 12vh, 9rem);
  background: var(--ink);
}
.projects__head { margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.projects__pin {
  overflow: hidden;
  /* solid backdrop: while pinned this element sits fixed over the
     page, so it must never let other sections show through */
  background: var(--ink);
  position: relative;
  z-index: 2;
}
.projects__track {
  display: flex;
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: 0 var(--gutter) clamp(4rem, 9vh, 7rem);
  width: max-content;
  will-change: transform;
}
.project {
  width: clamp(300px, 62vw, 720px);
  flex-shrink: 0;
}
.project__media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background: var(--ink-soft);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
  transition: filter 0.4s;
}
.project:hover .project__media img { filter: saturate(1.12); }
.project__info {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.project__num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--amber);
  font-size: 0.95rem;
}
.project__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: var(--cream);
}
.project__meta {
  margin-left: auto;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-align: right;
}

/* ============================================================
   Process
   ============================================================ */
.process {
  padding: clamp(5rem, 12vh, 9rem) 0;
  /* faint drafting-grid backdrop, like graph paper on a shop bench */
  background:
    linear-gradient(rgba(200, 155, 109, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 155, 109, 0.04) 1px, transparent 1px),
    var(--ink-soft);
  background-size: 56px 56px, 56px 56px, auto;
}
.process__steps {
  display: flex;
  flex-direction: column;
  counter-reset: step;
}
.process__step {
  display: grid;
  grid-template-columns: clamp(80px, 14vw, 180px) 64px 1fr;
  align-items: start;
  gap: clamp(1rem, 4vw, 4rem);
  padding: clamp(2rem, 4.5vh, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.process__step:last-child { border-bottom: 0; }
.process__icon {
  display: block;
  width: 58px;
  height: 58px;
  color: var(--amber);
  margin-top: 0.3rem;
}
.process__icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.process__icon svg * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.process__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--amber);
}
.process__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  margin-bottom: 0.6rem;
  color: var(--cream);
}
.process__body p {
  max-width: 56ch;
  font-weight: 300;
  color: var(--cream-dim);
}

/* ============================================================
   Materials
   ============================================================ */
.materials { padding: clamp(5rem, 12vh, 9rem) 0; }
.materials__group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.materials__group--second { margin-top: clamp(2.6rem, 5vh, 4rem); }
.materials__group h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--cream);
}
.materials__group span {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}
.material {
  perspective: 800px;
}
.material__img {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  transition: box-shadow 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.material:hover .material__img { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }

/* procedural wood-tone gradients (no external images needed) */
.material__img--walnut {
  background:
    repeating-linear-gradient(94deg, rgba(0,0,0,0.16) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(88deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #5a3d28, #3d2718 55%, #4a3120);
}
.material__img--oak {
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,0.10) 0 1.5px, transparent 1.5px 9px),
    repeating-linear-gradient(87deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 6px),
    linear-gradient(160deg, #b99a72, #9a7c56 55%, #ab8d65);
}
.material__img--maple {
  background:
    repeating-linear-gradient(93deg, rgba(0,0,0,0.06) 0 1.5px, transparent 1.5px 12px),
    repeating-linear-gradient(86deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 8px),
    linear-gradient(160deg, #d9bf99, #c2a67d 55%, #cfb38a);
}
.material__img--cherry {
  background:
    repeating-linear-gradient(94deg, rgba(0,0,0,0.13) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(88deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #8a4f37, #6b3a26 55%, #7c452e);
}
/* engineered surfaces — smoother, print-consistent looks */
.material__img--veneer {
  background:
    repeating-linear-gradient(90.5deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 0.5px, transparent 0.5px 3px),
    linear-gradient(165deg, #b3946c, #9d8059 50%, #ab8d65);
}
.material__img--melamine {
  background:
    repeating-linear-gradient(90deg, rgba(120,98,72,0.12) 0 1.5px, transparent 1.5px 14px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 9px),
    linear-gradient(170deg, #cdbfa8, #bcaa8e 55%, #c6b59c);
}
.material__img--hpl {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 8px),
    linear-gradient(160deg, #3e3b38, #2b2825 55%, #36322f);
}
.material__img--mdf {
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(255,255,255,0.1), transparent 55%),
    linear-gradient(165deg, #97a08a, #7e8873 55%, #8b947e);
}
.material figcaption { margin-top: 1.1rem; }
.material figcaption h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--cream);
}
.material figcaption p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--cream-dim);
  margin-top: 0.3rem;
}
.materials__note {
  margin-top: clamp(2.5rem, 5vh, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  text-align: center;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  padding: clamp(5rem, 12vh, 9rem) 0;
  background: var(--cream);
  color: var(--ink);
}
.testimonials .section-label { color: var(--walnut); }
.testimonials__viewport {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  min-height: 290px;
  display: grid;
}
.testimonial {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0.6s;
}
.testimonial.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.testimonial p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.testimonial footer { margin-top: 2rem; }
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial footer span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--walnut);
}
.testimonials__nav {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.testimonials__dot {
  width: 34px; height: 3px;
  border-radius: 2px;
  background: var(--line-dark);
  transition: background 0.3s;
  padding: 0;
}
.testimonials__dot.is-active { background: var(--walnut); }
.testimonials__dot:hover { background: var(--amber); }

/* ============================================================
   Service area
   ============================================================ */
.area { padding: clamp(5rem, 12vh, 9rem) 0; }
.area__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.area__desc {
  margin-top: 1.6rem;
  max-width: 46ch;
  font-weight: 300;
  color: var(--cream-dim);
}
.area__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.area__list li {
  background: var(--ink);
  padding: clamp(1.2rem, 2.6vw, 2rem);
  transition: background 0.3s;
}
.area__list li:hover { background: var(--ink-soft); }
.area__list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--amber);
  margin-bottom: 0.3rem;
}
.area__list span {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
}

/* ============================================================
   Contact / quote form
   ============================================================ */
.contact {
  padding: clamp(5rem, 12vh, 9rem) 0;
  background:
    radial-gradient(80% 60% at 85% 10%, rgba(200, 155, 109, 0.07), transparent 60%),
    var(--ink-soft);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__desc {
  margin-top: 1.6rem;
  max-width: 42ch;
  font-weight: 300;
  color: var(--cream-dim);
}
.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.4rem;
}
.contact__channel {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  transition: color 0.3s;
  width: fit-content;
}
.contact__channel span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.2rem;
}
.contact__channel:hover { color: var(--amber-bright); }

.form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.6rem, 3.4vw, 2.8rem);
  background: rgba(243, 237, 227, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.form__field { display: flex; flex-direction: column; gap: 0.45rem; }
.form__field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65em 0.1em;
  border-radius: 0;
  transition: border-color 0.3s;
}
.form__field select { cursor: pointer; }
.form__field select option { background: var(--ink); color: var(--cream); }
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(207, 198, 184, 0.4); }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-bottom-color: var(--amber);
}
.form__field.has-error input,
.form__field.has-error select,
.form__field.has-error textarea { border-bottom-color: #d96a4f; }
.form__error {
  min-height: 1em;
  font-size: 0.78rem;
  color: #d96a4f;
}
.form__field textarea { resize: vertical; min-height: 96px; }
.form__submit { margin-top: 0.4rem; align-self: flex-start; }
.form__success {
  font-weight: 500;
  color: var(--amber-bright);
}

/* ============================================================
   Service subpages
   ============================================================ */
.page-hero {
  padding: calc(var(--gutter) + 120px) 0 clamp(3rem, 7vh, 5rem);
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(200, 155, 109, 0.06), transparent 60%),
    var(--ink);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  margin-bottom: clamp(1.6rem, 4vh, 2.8rem);
}
.breadcrumb a { color: var(--cream-dim); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span[aria-current] { color: var(--amber); }
.breadcrumb span[aria-hidden] { opacity: 0.4; }

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.page-hero__title em { font-style: italic; color: var(--amber-bright); }

.page-hero__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(1.8rem, 4vh, 3rem);
}
.page-hero__sub {
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 300;
  color: var(--cream-dim);
}
.page-hero__figure { max-width: 420px; justify-self: end; width: 100%; }
.page-hero__stats {
  display: flex;
  gap: clamp(2rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
  margin-top: clamp(2.2rem, 5vh, 3.6rem);
  padding-top: clamp(1.4rem, 3vh, 2.2rem);
}

/* door construction systems */
.door-systems {
  padding: clamp(5rem, 11vh, 8rem) 0;
  background: var(--ink-soft);
}
.door-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.door-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 237, 227, 0.02);
  transition: border-color 0.35s, transform 0.35s var(--ease-out), background 0.35s;
}
.door-card:hover {
  border-color: rgba(200, 155, 109, 0.45);
  background: rgba(243, 237, 227, 0.04);
  transform: translateY(-6px);
}
.door-card .tech-figure { max-width: 230px; margin: 0 auto 1.4rem; }
.door-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.door-card p {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--cream-dim);
}
.door-card__tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(200, 155, 109, 0.35);
  border-radius: 100px;
  padding: 0.45em 1.1em;
}

/* kitchen gallery */
.kgallery { padding: clamp(5rem, 11vh, 8rem) 0; }
.kgallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.6vw, 2.2rem);
}
.kgallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.kgallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.8s var(--ease-out), filter 0.4s;
}
.kgallery__item--tall img { aspect-ratio: 4 / 3.6; }
.kgallery__item:hover img { transform: scale(1.05); filter: saturate(1.1); }
.kgallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.4rem 1.1rem;
  background: linear-gradient(transparent, rgba(22, 18, 14, 0.85));
}
.kgallery__item figcaption strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--cream);
}
.kgallery__item figcaption span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-align: right;
}

/* construction specs */
.specs {
  padding: clamp(5rem, 11vh, 8rem) 0;
  background: var(--cream);
  color: var(--ink);
}
.specs .section-title { color: var(--ink); }
.specs .section-label { color: var(--walnut); }
.specs__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.specs__note {
  margin-top: 1.6rem;
  max-width: 38ch;
  font-weight: 300;
  color: rgba(22, 18, 14, 0.65);
}
.specs__list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.4rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.specs__list li:first-child { border-top: 1px solid var(--line-dark); }
.specs__list strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
}
.specs__list span {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(22, 18, 14, 0.7);
}

/* finishes chips */
.finishes {
  padding: clamp(3.5rem, 8vh, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.finishes__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 880px;
  margin-inline: auto;
}
.finishes__chips li {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.6em 1.4em;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.finishes__chips li:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

/* FAQ */
.faq { padding: clamp(5rem, 11vh, 8rem) 0; }
.faq__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--cream);
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--amber);
  transition: transform 0.35s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--amber-bright); }
.faq__item p {
  padding: 0 0 1.5rem;
  max-width: 60ch;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--cream-dim);
}

/* CTA banner */
.cta-banner {
  padding: clamp(5rem, 12vh, 9rem) 0;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(200, 155, 109, 0.08), transparent 65%),
    var(--ink-soft);
  text-align: center;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
}

@media (max-width: 1024px) {
  .page-hero__row { grid-template-columns: 1fr; }
  .page-hero__figure { justify-self: start; max-width: 360px; }
  .door-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .specs__inner, .faq__inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero__stats { flex-wrap: wrap; gap: 1.4rem 2.4rem; }
  .kgallery__grid { grid-template-columns: 1fr; }
  .specs__list li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vh, 5rem) 0 2rem;
  background: var(--ink);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.footer__logo span { color: var(--amber); font-style: italic; }
.footer__logo-img {
  display: block;
  height: 64px;
  width: auto;
}
.footer__tag {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--cream-dim);
}
.footer__nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer__nav a,
.footer__meta a {
  font-size: 0.88rem;
  color: var(--cream-dim);
  transition: color 0.3s;
}
.footer__nav a:hover,
.footer__meta a:hover { color: var(--amber); }
.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: rgba(207, 198, 184, 0.55);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .materials__grid { grid-template-columns: repeat(2, 1fr); }
  .area__inner, .contact__inner { grid-template-columns: 1fr; }
  .manifesto__layout { grid-template-columns: 1fr; }
  .manifesto__figure {
    justify-self: start;
    max-width: 340px;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .header__logo-img { height: 42px; }

  .hero__stats {
    flex-wrap: wrap;
    gap: 1.4rem 2.4rem;
  }
  .hero__scroll { display: none; }

  .service {
    grid-template-columns: 1fr auto;
    grid-template-areas: "idx idx" "name arrow" "desc desc";
    row-gap: 0.3rem;
  }
  .service__index { margin-bottom: 0.2rem; }

  .project { width: 84vw; }
  .project__info { flex-wrap: wrap; gap: 0.6rem 1.2rem; }
  .project__meta { margin-left: 0; text-align: left; width: 100%; }

  .process__step {
    grid-template-columns: 44px 1fr;
    grid-template-areas: "num num" "icon body";
    gap: 0.8rem 1.2rem;
  }
  .process__num { grid-area: num; }
  .process__icon { grid-area: icon; width: 44px; height: 44px; }
  .process__body { grid-area: body; }

  .tech-figure.services__figure { width: min(260px, 70vw); }

  .form__row { grid-template-columns: 1fr; }
  .area__list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .materials__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split-word > span { transform: none !important; }
  .hero__title-line > span { transform: none !important; }
}
