/* Reynard Wood · "Stamped on the sleeper" · see DESIGN.md */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #E9E8E3;
  --surface: #F7F6F2;
  --ink: #110E00;
  --ink-2: rgba(17, 14, 0, .74);
  --orange: #F7941D;
  --orange-deep: #A85A08;
  --timber: #6B3322;
  --green: #55703A;
  --line: rgba(17, 14, 0, .14);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1320px;
  --section: clamp(56px, 8vw, 116px);
  --header: 76px;
  --radius: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
html, body { overflow-x: clip; }
main { overflow-x: clip; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--timber) var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* Stamped print: wear pattern taken from the iron ore tailings photo */
.stamp {
  -webkit-mask-image: url("/img/stamp.png?v=2");
  mask-image: url("/img/stamp.png?v=2");
  -webkit-mask-size: 5.2em;
  mask-size: 5.2em;
}

.h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(46px, 6.2vw, 96px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
.section-note { color: var(--ink-2); max-width: 46ch; margin-top: 18px; }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Buttons: colour swap only, never move on hover */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 15.5px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .16s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); border-color: var(--orange); }
@media (hover: hover) {
  .btn-dark:hover, .btn-line:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
  .btn-orange:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header);
  transition: transform .45s var(--ease), background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 16px)); }
/* Scrolled header (what reveals on scroll-up): yard-label bar with a tape-measure edge */
.site-header.is-scrolled { background: var(--ink); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 10px) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 50px) 0 0 / 100% 10px no-repeat,
    var(--orange);
  opacity: 0; transition: opacity .3s ease;
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-scrolled .header-inner { padding-right: 0; }
.site-header.is-scrolled .logo { --word: var(--surface); }
.site-header.is-scrolled .nav a { color: var(--surface); }
.site-header.is-scrolled .header-call {
  align-self: stretch; height: auto; min-height: 0; border-radius: 0; padding: 0 30px;
  background: var(--orange); border-color: var(--orange); color: var(--ink); font-size: 16px;
}
@media (hover: hover) { .site-header.is-scrolled .header-call:hover { background: var(--surface); border-color: var(--surface); } }
.site-header.is-scrolled .menu-toggle { background: var(--orange); margin-right: var(--gutter); }
.site-header.is-scrolled .menu-toggle .bar { background: var(--ink); }
html.menu-open .site-header::after { opacity: 0; }
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
}
.brand { display: block; line-height: 0; position: relative; z-index: 2; }
.logo { width: clamp(132px, 12vw, 168px); height: auto; aspect-ratio: 219.9 / 37.2; --word: var(--ink); transition: --word .3s; }
.nav {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; gap: clamp(18px, 2.4vw, 36px);
}
.nav a {
  font-weight: 500; font-size: 15.5px; text-decoration: none;
  padding: 6px 2px;
  background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease), color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background-size: 100% 2px; } }
.header-call { min-height: 44px; padding: 0 18px; font-size: 15px; }

.menu-toggle {
  display: none;
  position: relative; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink);
  transition: background-color .3s ease;
}
.menu-toggle .bar {
  position: absolute; left: 14px; right: 14px; height: 2px; background: var(--surface); border-radius: 2px;
  transition: transform .5s var(--ease-io), background-color .3s;
}
.menu-toggle .bar:first-child { top: 18px; }
.menu-toggle .bar:last-child { top: 26px; }
html.menu-open .menu-toggle { background: var(--orange); }
html.menu-open .menu-toggle .bar { background: var(--ink); }
html.menu-open .menu-toggle .bar:first-child { transform: translateY(4px) rotate(45deg); }
html.menu-open .menu-toggle .bar:last-child { transform: translateY(-4px) rotate(-45deg); }
html.menu-open .logo { --word: var(--surface); }
html.menu-open .site-header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Mobile menu: same circle reveal and timing to open and close */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--surface);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  clip-path: circle(0 at var(--mx, calc(100% - 40px)) var(--my, 38px));
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
}
html.menu-open .menu {
  clip-path: circle(150% at var(--mx, calc(100% - 40px)) var(--my, 38px));
  visibility: visible;
  transition: clip-path .7s var(--ease-io), visibility 0s;
}
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 12vw, 72px); line-height: 1.02;
  text-decoration: none; color: var(--surface);
  opacity: 0; translate: 0 24px;
  transition: opacity .45s ease, translate .7s var(--ease-io), color .2s;
}
.menu-nav a:hover, .menu-nav a:focus-visible { color: var(--orange); }
html.menu-open .menu-nav a { opacity: 1; translate: 0 0; }
html.menu-open .menu-nav a:nth-child(2) { transition-delay: .04s; }
html.menu-open .menu-nav a:nth-child(3) { transition-delay: .08s; }
html.menu-open .menu-nav a:nth-child(4) { transition-delay: .12s; }
html.menu-open .menu-nav a:nth-child(5) { transition-delay: .16s; }
html.menu-open .menu-nav a:nth-child(6) { transition-delay: .2s; }
html.menu-open .menu-nav a:nth-child(7) { transition-delay: .24s; }
.menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.menu-mail { color: rgba(247, 246, 242, .78); text-decoration: none; }

/* ---------- Hero: full-screen yard photo ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header) + 40px);
  padding-bottom: clamp(36px, 5vw, 72px);
  color: var(--surface);
  isolation: isolate;
  overflow: hidden;
  background: #3a2f22;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-photo picture { display: block; height: 100%; }
/* slideshow: crossfade over the previous photo, slow zoom on each */
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; z-index: 0; transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1); }
.slide.is-prev { opacity: 1; z-index: 1; transition: none; }
.slide.is-active { opacity: 1; z-index: 2; }
.slide .hero-photo-img { scale: 1.02; }
.hero-photo-img {
  position: absolute; left: 0; top: -8%;
  width: 100%; height: 116%; max-width: none;
  object-fit: cover; object-position: 50% 60%;
  will-change: transform;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 14, 0, .55) 0%, rgba(17, 14, 0, 0) 20%),
    linear-gradient(0deg, rgba(17, 14, 0, .84) 0%, rgba(17, 14, 0, .5) 34%, rgba(17, 14, 0, 0) 62%);
}
.hero-top {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(54px, 6.2vw, 96px);
  line-height: .88;
  letter-spacing: .004em;
  text-transform: uppercase;
  color: var(--surface);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero-title .line > span { display: block; }
.hero-sub { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.5; max-width: 34ch; margin-bottom: 22px; color: rgba(247, 246, 242, .92); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctas .btn { padding: 0 20px; }
.btn-ghost { border-color: var(--surface); color: var(--surface); }
@media (hover: hover) { .btn-ghost:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); } }

/* header sits on the photo until the page scrolls */
.site-header:not(.is-scrolled) .logo { --word: var(--surface); }
.site-header:not(.is-scrolled) .nav a { color: var(--surface); }
.site-header:not(.is-scrolled) .header-call { background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* progress: one segment per photo */
.hero-progress {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
  margin-top: clamp(28px, 3.4vw, 44px);
}
.hp { display: grid; gap: 10px; text-align: left; padding: 10px 0 4px; color: rgba(247, 246, 242, .66); transition: color .25s ease; }
.hp.is-active, .hp:hover { color: var(--surface); }
.hp-bar { position: relative; display: block; height: 3px; border-radius: 3px; background: rgba(247, 246, 242, .28); overflow: hidden; }
.hp-fill { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }
.hp.is-done .hp-fill { transform: scaleX(1); }
.hp-label { font-weight: 600; font-size: 14px; letter-spacing: .01em; }
.hp.is-active .hp-fill { animation: hpFill var(--slide-time, 6.5s) linear forwards; }
html.hero-paused .hp.is-active .hp-fill, html.hero-paused .slide .hero-photo-img { animation-play-state: paused; }
@keyframes hpFill { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .hero-photo-img, .slide.is-prev .hero-photo-img { animation: zoomIn 8.2s cubic-bezier(.33, 0, .3, 1) forwards; }
  .slide:nth-child(2).is-active .hero-photo-img, .slide:nth-child(2).is-prev .hero-photo-img { animation-name: zoomOut; }
  .hero-photo { animation: photoIn 1.8s var(--ease) both; }
  .hero-title .line > span { animation: rise 1s var(--ease) .25s both; }
  .hero-title .line:nth-child(2) > span { animation-delay: .34s; }
  .hero-side { animation: fadeUp .9s var(--ease) .55s both; }
  .hero-progress { animation: fadeUp .9s var(--ease) .75s both; }
}
@keyframes photoIn { from { opacity: 0; } }
@keyframes zoomIn { from { scale: 1.02; } to { scale: 1.14; } }
@keyframes zoomOut { from { scale: 1.16; } to { scale: 1.03; } }
@keyframes rise { from { translate: 0 108%; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 18px; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes plankIn { from { opacity: 0; translate: 26% 0; } }

/* ---------- Marquee (autoplay, never scroll-driven) ---------- */
.marquee {
  position: relative; z-index: 1;
  background: var(--orange);
  overflow: hidden;
  padding-block: clamp(10px, 1.2vw, 16px);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-set { display: flex; align-items: center; flex: none; }
.marquee-set span {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 82px); line-height: 1;
  padding-inline: clamp(14px, 1.6vw, 26px);
  -webkit-mask-image: url("/img/stamp.png?v=2"); mask-image: url("/img/stamp.png?v=2");
  -webkit-mask-size: 5.2em; mask-size: 5.2em;
}
.marquee .fox { width: clamp(26px, 3vw, 44px); height: auto; aspect-ratio: 31.6 / 37.2; --fox: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(36px, 7vw, 112px);
}
.sample { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.sample-ring { position: absolute; border-radius: 50%; }
.ring-orange { inset: 2% 10% 10% 2%; background: var(--orange); }
.ring-green { inset: 12% 0 0 12%; border: 2px solid var(--green); }
.sample-disc {
  position: absolute; inset: 9%;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(58, 26, 10, .45);
}
.sample-disc img { width: 100%; height: 100%; object-fit: cover; }
.sample-plank {
  position: absolute; left: -4%; right: -6%; bottom: 14%;
  rotate: -9deg;
  pointer-events: none;
}
.sample-plank img { width: 100%; filter: drop-shadow(0 16px 14px rgba(58, 26, 10, .4)); }
.about-copy .h2 { margin-bottom: 28px; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; max-width: 36ch; }
.about-copy p:not(.lede) { color: var(--ink-2); max-width: 56ch; }

.tally {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 2px solid var(--ink);
  padding-top: 26px;
}
.tally-num {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(50px, 5.6vw, 86px); line-height: .9;
  color: var(--timber);
  margin-bottom: 12px;
}
.tally dd { color: var(--ink-2); font-size: 15.5px; line-height: 1.45; max-width: 26ch; }

/* ---------- Uses (pinned horizontal) ---------- */
.uses { position: relative; background: var(--surface); border-block: 1px solid var(--line); }
.uses-pin {
  height: 100svh; min-height: 520px;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(18px, 3.2svh, 40px);
  overflow: hidden;
}
.uses-head { display: grid; gap: 14px; }
.uses-head .h2 { font-size: clamp(40px, min(6.2vw, 9svh), 96px); }
.uses-head p { color: var(--ink-2); max-width: 48ch; margin: 0; }
.uses-viewport { width: 100%; }
@media (max-height: 600px) { .uses-head p { display: none; } }
.uses-track {
  --frame-h: clamp(150px, calc(100svh - 440px), 560px);
  display: flex; gap: clamp(18px, 2.6vw, 40px);
  width: max-content;
  padding: 16px var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  will-change: transform;
}
.use-card { width: max(calc(var(--frame-h) * .86), 250px); flex: none; }
.use-frame {
  position: relative;
  height: var(--frame-h);
  margin-bottom: clamp(14px, 2.2svh, 22px);
}
.use-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
/* rails cut from a Hybrid Sleeper frame each photo */
.use-frame::before, .use-frame::after {
  content: ""; position: absolute; left: -10px; right: -10px; height: 14px; z-index: 1;
  background: url("/img/plank-1000.webp") 30% 50% / 180% 300%;
  border-radius: 2px;
  box-shadow: 0 6px 10px -4px rgba(58, 26, 10, .45);
}
.use-frame::before { top: -7px; }
.use-frame::after { bottom: -7px; background-position: 70% 50%; }
.use-card h3 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, min(2.6vw, 4.4svh), 40px); line-height: .95;
  margin-bottom: 8px;
}
.use-card p { font-size: clamp(14.5px, 1.9svh, 16px); line-height: 1.5; color: var(--ink-2); margin: 0; }

/* ---------- Specs ---------- */
.drawing { margin-top: clamp(32px, 4vw, 56px); }
.drawing-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "dim ." "plank detail" "cap cap";
  column-gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  background-color: var(--surface);
  background-image:
    linear-gradient(rgba(107, 51, 34, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 51, 34, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dim { grid-area: dim; position: relative; height: 34px; margin-bottom: 12px; color: var(--timber); }
.dim-line { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.dim-line::before, .dim-line::after { content: ""; position: absolute; top: -9px; width: 1.5px; height: 20px; background: currentColor; }
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }
.dim-label {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  background: var(--surface); padding: 0 14px;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; white-space: nowrap;
}
.drawing-plank { grid-area: plank; }
.drawing-plank img { width: 100%; filter: drop-shadow(0 14px 12px rgba(58, 26, 10, .3)); }
.section-detail { grid-area: detail; display: grid; justify-items: center; gap: 10px; color: var(--timber); }
.section-box {
  position: relative;
  width: clamp(120px, 12vw, 168px); aspect-ratio: 3 / 1;
  border: 2px solid var(--ink);
  background: repeating-linear-gradient(45deg, rgba(107, 51, 34, .22) 0 1.5px, transparent 1.5px 9px);
}
.section-w, .section-h { position: absolute; font-weight: 600; font-size: 14px; }
.section-w { left: 50%; top: calc(100% + 6px); translate: -50% 0; }
.section-h { left: calc(100% + 8px); top: 50%; translate: 0 -50%; }
.section-cap { margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.drawing-cap {
  grid-area: cap;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: clamp(20px, 3vw, 36px); padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.drawing-cap span:first-child { font-weight: 600; color: var(--ink); }

.traits {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 72px);
}
.trait-group h3 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1;
  padding-top: 16px; margin-bottom: 18px;
  border-top: 3px solid var(--ink);
}
.trait-green h3 { border-top-color: var(--green); }
.trait-group li { position: relative; padding-left: 26px; margin-bottom: 12px; line-height: 1.45; }
.trait-group li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 14px; height: 5px; border-radius: 1px; background: var(--timber);
}
.trait-green li::before { background: var(--green); }

.carry {
  margin: clamp(48px, 6vw, 88px) 0 0 auto;
  width: min(620px, 100%);
  padding: 12px 12px 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 22px 40px -22px rgba(58, 26, 10, .5);
  rotate: 1.4deg;
}
.carry img { border-radius: 2px; }
.carry figcaption { padding: 12px 4px 14px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Reviews: stock tags hung from a sleeper rail ---------- */
.reviews { padding-bottom: calc(var(--section) + 12px); }
.rail-wrap { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.rail {
  position: relative; z-index: 2;
  height: 26px;
  margin-inline: var(--gutter);
  background: url("/img/plank-1800.webp") 50% 50% / 100% 220%;
  border-radius: 3px;
  box-shadow: 0 12px 18px -10px rgba(58, 26, 10, .5);
}
.tags {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: -13px;
}
.tag-hang {
  --pt: 78px;
  position: relative;
  padding-top: var(--pt);
  transform-origin: 50% 0;
  filter: drop-shadow(0 18px 22px rgba(58, 26, 10, .22));
}
.tag-hang:nth-child(1) { --r: -1.6deg; }
.tag-hang:nth-child(2) { --r: 1.2deg; --pt: 104px; }
.tag-hang:nth-child(3) { --r: -.8deg; --pt: 64px; }
/* the string: from the rail down to the tag hole */
.tag-hang::after {
  content: ""; position: absolute; left: calc(50% - 1px); top: 0;
  width: 2px; height: calc(var(--pt) + 31px);
  background: var(--timber);
}
.tag {
  position: relative;
  rotate: var(--r);
  transform-origin: 50% 31px;
  background: var(--surface);
  padding: 56px clamp(22px, 2.4vw, 34px) 30px;
  clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
}
.tag-hole {
  position: absolute; left: 50%; top: 22px; translate: -50% 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px var(--orange);
}
.tag blockquote p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; margin: 0 0 22px; }
.tag figcaption { display: grid; gap: 2px; padding-top: 16px; border-top: 1px dashed rgba(17, 14, 0, .28); }
.tag figcaption strong { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; }
.tag figcaption span { font-size: 14.5px; color: var(--ink-2); }

/* ---------- Stockists ---------- */
.stockists { background: var(--surface); border-top: 1px solid var(--line); }
.stockists-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.stockists-copy .h2 { margin-bottom: 24px; }
.stockists-copy p { color: var(--ink-2); max-width: 44ch; }
.stockists-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.yard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.yard li, .partners-row li {
  min-width: 0;
  display: grid; place-items: center;
  aspect-ratio: 2.4 / 1;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.yard li.yard-wide { grid-column: 1 / -1; aspect-ratio: auto; height: 76px; }
.yard img, .partners-row img { min-width: 0; }
.yard img { max-height: 64px; width: auto; max-width: 86%; object-fit: contain; }
.partners { margin-top: clamp(48px, 6vw, 84px); }
.partners-title { font-weight: 600; font-size: 16px; margin-bottom: 16px; color: var(--ink-2); }
.partners-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.partners-row img { max-height: 56px; width: auto; max-width: 88%; object-fit: contain; }

/* ---------- Visit ---------- */
.visit-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #dcdad3;
  border: 1px solid var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-shield { position: absolute; inset: 0; z-index: 1; cursor: pointer; background: transparent; }
.map-frame.is-active .map-shield { display: none; }
.visit-copy .h2 { margin-bottom: 22px; }
.open-state {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 14.5px;
  margin-bottom: 18px;
}
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange-deep); }
.open-state.is-open .open-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(85, 112, 58, .18); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 30px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--ink-2); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.addresses { display: grid; gap: 18px; }
.addr-name { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; margin-bottom: 4px; }
.addresses a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: color .2s ease;
}
.addresses a:hover { color: var(--orange-deep); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header) + 24px); }
.faq-head .h2 { font-size: clamp(44px, 5vw, 80px); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0;
  text-align: left;
  font-weight: 600; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.35;
  transition: color .2s ease;
}
.qa-q:hover { color: var(--orange-deep); }
.qa-q .ico {
  width: 22px; height: 22px;
  transition: transform .28s var(--ease);
}
.qa-q[aria-expanded="true"] .ico { transform: rotate(45deg); }
.qa-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.qa-a > div { overflow: hidden; }
.qa-a p {
  margin: 0; padding: 0 48px 24px 0;
  color: var(--ink-2); max-width: 62ch;
  opacity: 0; translate: 0 -6px;
  transition: opacity .35s ease, translate .5s var(--ease);
}
.qa.is-open .qa-a { grid-template-rows: 1fr; }
.qa.is-open .qa-a p { opacity: 1; translate: 0 0; transition-delay: .08s; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: var(--bg);
  padding: clamp(64px, 8vw, 112px) 0 32px;
}
.foot-top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(247, 246, 242, .12);
}
.foot-logo { width: clamp(240px, 36vw, 520px); height: auto; aspect-ratio: 219.9 / 37.2; --word: var(--surface); }
.foot-line {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 3.2vw, 48px); line-height: 1; color: var(--orange); margin: 0;
}
.foot-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 5vw, 64px);
}
.foot-col h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(30px, 2.6vw, 38px); line-height: 1;
  color: var(--orange);
  margin-bottom: 18px;
}
.foot-col a, .foot-col p {
  display: block; margin: 0 0 10px;
  font-size: 15.5px; line-height: 1.5;
  color: rgba(247, 246, 242, .8); text-decoration: none;
  transition: color .2s ease;
}
.foot-col a:hover { color: var(--orange); }
.foot-legal {
  margin: 0; padding-top: 24px;
  border-top: 1px solid rgba(247, 246, 242, .12);
  font-size: 14px; color: rgba(247, 246, 242, .66);
}
.foot-legal a { color: var(--orange); font-weight: 600; text-decoration: none; }
.foot-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Reveal (only when JS motion is on) ---------- */
html.js-motion .reveal { opacity: 0; translate: 0 28px; }
html.js-motion .reveal.is-in { opacity: 1; translate: 0 0; transition: opacity .9s ease, translate 1s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-call { display: none; }
  .menu-toggle { display: block; }
  .hero-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-sub { max-width: 46ch; }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trait-green { grid-column: 1 / -1; }
  .partners-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about-grid, .stockists-grid, .visit-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .sample { max-width: 440px; }
  .faq-head { position: static; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tags { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 520px; }
  .tag-hang:nth-child(n) { --pt: 46px; }
  .tag-hang:nth-child(n+2) { --pt: 0px; }
  .tag-hang:nth-child(n+2)::after { display: none; }
}
@media (max-width: 700px) {
  :root { --header: 68px; }
  body { font-size: 16.5px; }
  .hero-photo-img { object-position: 50% 50%; }
  .hp-label { font-size: 12.5px; }
  .hero-progress { margin-top: 22px; }
  .drawing-sheet { grid-template-columns: minmax(0, 1fr); grid-template-areas: "dim" "plank" "detail" "cap"; }
  .section-detail { margin-top: 28px; justify-self: start; justify-items: start; }
  .section-cap { margin-top: 26px; }
  .traits { grid-template-columns: minmax(0, 1fr); }
  .carry { rotate: .8deg; }
  .yard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yard li.yard-wide { grid-column: 1 / -1; }
  .yard li, .partners-row li { padding: 10px 14px; }
  .yard img, .partners-row img { max-height: 46px; }
  .partners-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses-track { --frame-h: clamp(200px, calc(100svh - 470px), 440px); }
  .use-card { width: calc(var(--frame-h) * .86); }
  .open-state { font-size: 14px; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Reduced motion: everything static */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .uses-pin { height: auto; padding-block: var(--section); }
  .uses-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- Footer: photo in sleeper rails + tape label ---------- */
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); }
.foot-top, .foot-legal { grid-column: 1 / -1; }
.foot-cols { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.foot-yard {
  grid-column: 2; grid-row: 2;
  position: relative; align-self: center;
  padding-block: clamp(40px, 5vw, 64px);
}
.foot-photo { position: relative; margin: 0 0 0 auto; width: min(360px, 80%); rotate: 2deg; }
.foot-photo img { width: 100%; border-radius: 2px; }
.foot-photo::before, .foot-photo::after {
  content: ""; position: absolute; left: -10px; right: -10px; height: 14px; z-index: 1;
  background: url("/img/plank-1000.webp") 30% 50% / 180% 300%; border-radius: 2px;
}
.foot-photo::before { top: -7px; }
.foot-photo::after { bottom: -7px; }
.foot-tape {
  position: absolute; left: 0; bottom: 22%; z-index: 2;
  margin: 0; padding: 14px 22px;
  background: var(--orange); color: var(--ink);
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(26px, 2.6vw, 40px); line-height: .95;
  rotate: -5deg;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6);
}
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot-yard { grid-column: 1; grid-row: auto; }
  .foot-cols { max-width: none; }
}
@media (max-width: 420px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } .foot-photo { width: 78%; } .foot-tape { font-size: 24px; } }
