/* B&C McKeown — main site styles.
   Shares the calculator's design language: flat black on white, square corners,
   Teko for headings, Outfit for body. */

:root {
  --ink: #141414;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --line-strong: #cfcfcf;
  --bg: #ffffff;
  --wash: #f6f6f5;
  --wash-deep: #ededeb;
  --accent: #141414;
  --gold: #b8821b;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --quick: 150ms;
  --calm: 320ms;
  --shell: 1180px;
  --gut: clamp(18px, 4vw, 44px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Neuzeit Grotesk", Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Teko, "Arial Narrow", Impact, sans-serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.012em;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(44px, 7vw, 86px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); }

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.eyebrow {
  font-family: Outfit, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 60ch; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: Teko, sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
.brand-word { display: inline; white-space: nowrap; }
.brand-roof {
  display: inline-block;
  height: 0.636em;
  width: calc(0.636em * 23 / 20);
  margin: 0 0.02em;
  color: currentColor;
  vertical-align: baseline;
}
.brand-bc { margin-right: 0.015em; }
.foot-brand .brand-mark { color: #fff; font-size: 30px; }
.brand-sub { color: var(--muted); font-size: 13px; font-family: Outfit, sans-serif;
  letter-spacing: 0.16em; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color var(--quick) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--ink);
  transition: right var(--calm) var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--ink); }

.nav-tel {
  font-family: Teko, sans-serif;
  font-size: 23px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-tel::after { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.burger i { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: 3.6px auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--quick) var(--ease), color var(--quick) var(--ease),
              transform var(--quick) var(--ease);
}
.btn:hover { background: #000; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--wash); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 9vw, 104px);
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art {
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 18px;
}
.hero-art svg { width: 100%; height: auto; display: block; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 5vw, 56px);
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.stat b {
  display: block;
  font-family: Teko, sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}
.stat span { font-size: 13.5px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- sections ---------- */
.band { padding: clamp(60px, 8vw, 104px) 0; }
.band.wash { background: var(--wash); border-block: 1px solid var(--line); }
.band.dark { background: var(--ink); color: #fff; }
.band.dark .eyebrow, .band.dark .lede { color: #a9a9a9; }

.band-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 52px); }
.band-head.center { margin-inline: auto; text-align: center; }

/* ---------- category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cat {
  position: relative;
  display: block;
  background: #fff;
  padding: 34px 30px 30px;
  text-decoration: none;
  overflow: hidden;
  transition: background var(--calm) var(--ease);
}
.cat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--calm) var(--ease);
}
.cat:hover { background: var(--wash); }
.cat:hover::before { transform: scaleY(1); }
.cat-ico { width: 46px; height: 46px; margin-bottom: 20px; }
.cat-ico svg { width: 100%; height: 100%; }
.cat h3 { margin-bottom: 8px; }
.cat p { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.cat .more {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.cat .more svg { transition: transform var(--quick) var(--ease); }
.cat:hover .more svg { transform: translateX(5px); }

/* ---------- product grid ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}
.chip {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--quick) var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 26px;
}
.prod {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease),
              transform var(--quick) var(--ease);
}
.prod:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
  transform: translateY(-3px);
}
.prod-img {
  aspect-ratio: 4 / 3;
  background: var(--wash);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--calm) var(--ease);
}
.prod:hover .prod-img img { transform: scale(1.045); }
.prod-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.prod-cat {
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.prod h4 {
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 12px;
}
.prod-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.price { font-family: Teko, sans-serif; font-size: 27px; line-height: 1; }
.price small { font-family: Outfit, sans-serif; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.stock { font-size: 12px; color: #2f7d4f; }
.stock.out { color: #9a3412; }

.empty { padding: 50px 0; color: var(--muted); }

/* ---------- feature list ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(26px, 3.4vw, 46px);
}
.feat h3 { font-size: 21px; margin-bottom: 9px; }
.feat p { font-size: 15.5px; color: var(--muted); margin: 0; }
.feat-num {
  font-family: Teko, sans-serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.band.dark .feat p { color: #a9a9a9; }

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.split-art { border: 1px solid var(--line-strong); background: #fff; padding: 20px; }
.band.dark .split-art { border-color: #343434; background: #1c1c1c; }

/* ---------- cta ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.detail { padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail:first-child { padding-top: 0; }
.detail dt {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.detail dd { margin: 0; font-size: 18px; }
.detail dd a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.fld { display: block; margin-bottom: 16px; }
label.fld span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
label.fld input, label.fld textarea, label.fld select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
label.fld input:focus, label.fld textarea:focus, label.fld select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.08);
}
label.fld textarea { min-height: 136px; resize: vertical; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #c9c9c9; padding: clamp(50px, 6vw, 76px) 0 34px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(26px, 4vw, 52px);
  padding-bottom: 42px;
  border-bottom: 1px solid #323232;
}
.site-foot h4 {
  font-family: Outfit, sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #fff;
  margin: 0 0 16px;
}
.site-foot a { color: #c9c9c9; text-decoration: none; transition: color var(--quick) var(--ease); }
.site-foot a:hover { color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-brand { font-family: Teko, sans-serif; font-size: 30px; color: #fff; text-transform: uppercase; }
.foot-note { font-size: 14px; max-width: 42ch; margin-top: 12px; }
.foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; font-size: 13.5px; color: #8e8e8e;
}

/* ---------- page header ---------- */
.page-head {
  padding: clamp(50px, 7vw, 86px) 0 clamp(34px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(16px); }
.rv.in { opacity: 1; transform: none; transition: opacity 620ms var(--ease), transform 620ms var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gut) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .burger { display: block; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Photographic components
   ========================================================================= */

/* ---------- full-bleed hero ---------- */
.hero-photo {
  position: relative;
  min-height: clamp(540px, 82vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  border-bottom: none;
  background: #16191c;
}
.hero-photo .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10, 12, 14, 0.92) 0%, rgba(10, 12, 14, 0.55) 38%, rgba(10, 12, 14, 0.18) 68%, rgba(10, 12, 14, 0.34) 100%);
}
.hero-photo .shell { position: relative; z-index: 2; padding-block: clamp(44px, 7vw, 86px); width: 100%; }
.hero-photo h1 { color: #fff; margin-bottom: 18px; max-width: 16ch; }
.hero-photo h1 em { font-style: normal; color: #e6b65c; }
.hero-photo .eyebrow { color: #cfd3d7; }
.hero-photo .lede { color: #dfe2e5; max-width: 54ch; }
.hero-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 70px); align-items: end; }
.hero-photo .stat-row { border-top-color: rgba(255, 255, 255, 0.22); margin-top: 34px; }
.hero-photo .stat b { color: #fff; }
.hero-photo .stat span { color: #b9bdc1; }

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px) saturate(150%);
  padding: 26px 26px 24px;
}
.hero-card h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.hero-card p { color: #ccd0d4; font-size: 15px; margin-bottom: 18px; }

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.scroll-hint i {
  width: 1px; height: 26px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  animation: hintPulse 2.1s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- photo category tiles ---------- */
.cat-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.cat-photo {
  position: relative;
  display: block;
  min-height: 330px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  background: #1c1f22;
  isolation: isolate;
}
.cat-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 760ms var(--ease), filter 420ms var(--ease);
}
.cat-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10,12,14,0.9) 6%, rgba(10,12,14,0.45) 48%, rgba(10,12,14,0.1) 100%);
  transition: background 420ms var(--ease);
}
.cat-photo:hover img { transform: scale(1.07); }
.cat-photo:hover::after { background: linear-gradient(to top, rgba(10,12,14,0.94) 6%, rgba(10,12,14,0.6) 55%, rgba(10,12,14,0.2) 100%); }
.cat-photo .cat-body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 26px 26px;
}
.cat-photo h3 { color: #fff; margin-bottom: 7px; }
.cat-photo p { color: #cfd3d7; font-size: 14.5px; margin: 0 0 14px; max-width: 32ch; }
.cat-photo .more { color: #fff; }
.cat-photo .count {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  font-family: Teko, sans-serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  padding: 4px 11px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}

/* ---------- split with photo ---------- */
.split-photo { overflow: hidden; border: 1px solid var(--line); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 800ms var(--ease); }
.split-photo:hover img { transform: scale(1.04); }
.split.flip > div:first-child { order: 2; }

/* ---------- gallery strip ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.gallery figure { margin: 0; overflow: hidden; background: var(--wash); aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), filter 420ms var(--ease); filter: grayscale(0.18); }
.gallery figure:hover img { transform: scale(1.08); filter: grayscale(0); }

/* ---------- marquee of capabilities ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 38s linear infinite;
}
.ticker span {
  font-family: Teko, sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.ticker span::after { content: ""; width: 5px; height: 5px; background: var(--gold); display: block; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- quote / trust ---------- */
.quote-band blockquote {
  margin: 0;
  font-family: Teko, sans-serif;
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.16;
  text-transform: uppercase;
  max-width: 22ch;
}
.quote-band cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; color: var(--muted); letter-spacing: .05em; }

/* ---------- responsive for the photo pieces ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .split.flip > div:first-child { order: 0; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cat-photo { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo .hero-media img { animation: none; transform: none; }
  .ticker-track { animation: none; }
  .scroll-hint i { animation: none; }
}

/* =========================================================================
   Motion system
   Reveals are driven by [data-rv] + an observer in site.js. Each element
   declares how it should arrive and how long to wait, so nothing animates
   until it is actually on screen and nothing animates twice.
   ========================================================================= */

:root {
  --rv-dur: 760ms;
  --rv-ease: cubic-bezier(0.16, 0.84, 0.28, 1);
}

[data-rv] {
  opacity: 0;
  transition:
    opacity var(--rv-dur) var(--rv-ease) var(--rv-delay, 0ms),
    transform var(--rv-dur) var(--rv-ease) var(--rv-delay, 0ms),
    filter var(--rv-dur) var(--rv-ease) var(--rv-delay, 0ms);
  will-change: opacity, transform;
}
[data-rv="up"]     { transform: translate3d(0, 34px, 0); }
[data-rv="down"]   { transform: translate3d(0, -26px, 0); }
[data-rv="left"]   { transform: translate3d(-40px, 0, 0); }
[data-rv="right"]  { transform: translate3d(40px, 0, 0); }
[data-rv="scale"]  { transform: scale(0.94); }
[data-rv="rise"]   { transform: translate3d(0, 52px, 0) scale(0.985); }
[data-rv="wipe"]   { opacity: 0; transform: translate3d(0, 22px, 0) scale(1.035); }
[data-rv="blur"]   { filter: blur(9px); transform: translate3d(0, 20px, 0); }

[data-rv].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
[data-rv].is-in { will-change: auto; }

/* headings that arrive a line at a time */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  transform: translate3d(0, 108%, 0);
  transition: transform 900ms var(--rv-ease) var(--rv-delay, 0ms);
}
.is-in .line-mask > span, .line-mask.is-in > span { transform: none; }

/* ---------- sticky header states ---------- */
.site-head {
  transition: transform 420ms var(--rv-ease), box-shadow 300ms var(--ease),
              background-color 300ms var(--ease);
}
.site-head.is-stuck { box-shadow: 0 1px 18px rgba(16, 20, 24, 0.09); }
.site-head.is-hidden { transform: translateY(-100%); }

/* anchors clear the sticky header */
[id] { scroll-margin-top: 104px; }

/* ---------- parallax ---------- */
[data-parallax] { will-change: transform; }

/* ---------- counters ---------- */
.stat b { font-variant-numeric: tabular-nums; }

/* ---------- link and button polish ---------- */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--rv-ease), opacity 460ms var(--rv-ease);
}
.btn:hover::before { opacity: 0.08; transform: scaleX(1); }
.btn > * { position: relative; z-index: 1; }

.prod, .cat-photo, .gallery figure { transform-origin: center; }

/* ---------- page fade on arrival ---------- */
body { opacity: 1; }
body.is-leaving { opacity: 0; transition: opacity 240ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .line-mask > span { transform: none !important; }
  .site-head.is-hidden { transform: none; }
  [data-parallax] { transform: none !important; }
  body.is-leaving { opacity: 1; }
}

/* On phones the hero copy sits at the very bottom, where the scroll cue would
   land on top of the stats, so it only shows on wider screens. */
@media (max-width: 920px) {
  .scroll-hint { display: none; }
}

/* ---------- PayPal placeholder button ---------- */
.paypal-btn {
  position: relative;
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid #ffd140;
  border-radius: 22px;
  background: #ffc439;
  color: #1a1a1a;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.paypal-btn:hover { filter: brightness(0.97); transform: translateY(-1px); }
.paypal-btn:active { transform: translateY(0); }
.paypal-label b { font-style: italic; font-weight: 800; color: #003087; }
.paypal-label .pp-pal { color: #009cde; }
.paypal-soon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b4b00;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
}
.paypal-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.paypal-note a { color: var(--ink); text-decoration: underline; }

/* ---------- logo ---------- */
.brand .brand-logo { display: block; height: 24px; width: auto; }
.foot-brand .brand-logo { display: block; height: 28px; width: auto; margin-bottom: 4px; }
@media (max-width: 560px) { .brand .brand-logo { height: 19px; } }

/* ---------- product cards link through ---------- */
a.prod-img { display: block; }
.prod-title { color: inherit; text-decoration: none; }
.prod-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.prod-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.more-link { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }

/* ---------- product page ---------- */
.pdp { padding-bottom: 20px; }
.pdp-crumb { padding-top: 26px; }
.pdp-crumb span { color: var(--ink-soft); }
.pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  padding: 18px 0 clamp(36px, 5vw, 64px);
}
.pdp-gallery { position: sticky; top: 96px; }
.pdp-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  aspect-ratio: 1;
  overflow: hidden;
}
.pdp-main img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 500ms var(--ease); }
.pdp-main:hover img { transform: scale(1.03); }
.pdp-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pdp-thumb {
  flex: 0 0 72px; height: 72px; padding: 0;
  border: 1px solid var(--line); background: #fff; cursor: pointer; opacity: .72;
  transition: opacity var(--quick) var(--ease), border-color var(--quick) var(--ease);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover, .pdp-thumb.is-on { opacity: 1; border-color: var(--ink); }

.pdp-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.04; margin-bottom: 16px; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.pdp-price strong { font-family: Teko, sans-serif; font-weight: 600; font-size: 42px; line-height: 1; }
.pdp-from, .pdp-vat { font-size: 14px; color: var(--muted); }
.pdp-variants { border: 0; padding: 0; margin: 0 0 16px; }
.pdp-variants legend { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.pdp-variant {
  margin: 0 8px 8px 0; padding: 9px 14px;
  border: 1px solid var(--line-strong); background: #fff;
  font: inherit; font-size: 14.5px; cursor: pointer;
  transition: border-color var(--quick) var(--ease), background var(--quick) var(--ease), color var(--quick) var(--ease);
}
.pdp-variant:hover { border-color: var(--ink); }
.pdp-variant.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pdp-stock { font-size: 14.5px; font-weight: 600; margin: 0 0 18px; }
.pdp-stock::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.pdp-stock.is-in { color: #2f7d4f; } .pdp-stock.is-in::before { background: #2f7d4f; }
.pdp-stock.is-low { color: #a8661b; } .pdp-stock.is-low::before { background: #d08a2a; }
.pdp-stock.is-out { color: #9a3412; } .pdp-stock.is-out::before { background: #c2410c; }
.pdp-actions { display: grid; gap: 10px; max-width: 420px; }
.pdp-actions .btn { justify-content: center; }
.pdp-actions .paypal-btn { margin-top: 0; }
.pdp-points { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-soft); }
.pdp-points li::before { content: "✓"; margin-right: 10px; color: #2f7d4f; font-weight: 700; }

.pdp-desc { max-width: 760px; padding: 6px 0 clamp(40px, 5vw, 70px); border-top: 1px solid var(--line); }
.pdp-desc h2 { font-size: clamp(26px, 3vw, 34px); margin: 34px 0 16px; }
.pdp-copy { font-size: 16.5px; color: var(--ink-soft); }
.pdp-copy p { margin: 0 0 1em; }
.pdp-copy h3, .pdp-copy h4 { font-family: Outfit, sans-serif; text-transform: none; letter-spacing: 0; font-size: 18px; font-weight: 600; color: var(--ink); margin: 1.4em 0 .5em; }
.pdp-copy ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.pdp-copy li { margin: .3em 0; }
.pdp-copy li p { margin: 0; }
.pdp-yard .gallery { grid-template-columns: repeat(4, 1fr); }
.pdp-yard .gallery a { display: block; height: 100%; cursor: zoom-in; }

@media (max-width: 860px) {
  .pdp-top { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-actions { max-width: none; }
  .pdp-yard .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 12, 14, 0.94);
  padding: 56px 64px;
}
.lightbox.is-open { display: flex; animation: lbIn 180ms ease; }
@keyframes lbIn { from { opacity: 0; } }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; background: #fff; }
.lb-fig figcaption { color: #cfd3d7; font-size: 14px; margin-top: 12px; text-align: center; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  width: 48px; height: 48px; font-size: 30px; line-height: 1; border-radius: 50%;
  transition: background var(--quick) var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 60px 8px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- basket (shopify.js) ---------- */
.cart-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-left: 6px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer;
  transition: border-color var(--quick) var(--ease);
}
.cart-btn:hover { border-color: var(--ink); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #33561a; color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }
.cart-drawer {
  position: fixed; inset: 0; z-index: 900; background: rgba(10,12,14,0); pointer-events: none;
  transition: background 260ms var(--ease);
}
.cart-drawer.is-open { background: rgba(10,12,14,.45); pointer-events: auto; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 320ms var(--ease);
  box-shadow: -12px 0 40px rgba(0,0,0,.15);
}
.cart-drawer.is-open .cart-panel { transform: none; }
.cart-drawer.is-busy .cart-body { opacity: .55; pointer-events: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 30px; }
.cart-close { width: 40px; height: 40px; border: 0; background: var(--wash); font-size: 26px; line-height: 1; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; transition: opacity 150ms ease; }
.cart-empty { color: var(--muted); margin: 10px 0 16px; }
.cart-error { background: #fdf0ec; color: #9a3412; padding: 10px 12px; font-size: 14px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-img img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line); display: block; }
.cart-info a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.35; display: block; }
.cart-opt { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; border: 1px solid var(--line-strong); }
.cart-qty button { width: 32px; height: 30px; border: 0; background: #fff; font-size: 17px; cursor: pointer; }
.cart-qty span { min-width: 18px; text-align: center; font-size: 14px; }
.cart-price { font-size: 15px; }
.cart-foot { margin-top: auto; padding-top: 16px; }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 6px; }
.cart-sub strong { font-family: Teko, sans-serif; font-size: 30px; font-weight: 600; }
.cart-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.cart-checkout { width: 100%; justify-content: center; }

/* product page: quantity + add to basket */
.pdp-add { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.pdp-qty { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.pdp-qty input { margin-top: 4px; height: 50px; padding: 0 10px; border: 1px solid var(--line-strong); font: inherit; font-size: 17px; text-align: center; }
.pdp-add-btn { align-self: end; height: 50px; justify-content: center; }
.pdp-add-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.pdp-variant.is-soldout { color: var(--muted); text-decoration: line-through; }
.pdp-actions [hidden] { display: none !important; }

/* The PayPal placeholder is retired: Shopify's checkout takes PayPal for real.
   Hidden here so the existing product pages don't need re-uploading. */
.paypal-btn, .paypal-note { display: none !important; }
