@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
:root {
  --cream: #ffedd7;
  --walnut: #100904;
  --bark: #382416;
  --cork: #40372e;
  --driftwood: #6c5f51;
  --ember: #dc5000;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--walnut);
  color: var(--cream);
  font-family: var(--font);
  font-weight: 500;
  font-feature-settings: "ss01" on;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  font-size: 12px;
}
.nav a { text-decoration: none; }
.nav ul { display: flex; gap: 24px; list-style: none; }
.nav ul a { padding-bottom: 3px; }
.nav ul a.active { border-bottom: 1px dashed var(--cream); }

.side-label {
  position: fixed; right: 10px; top: 50%; z-index: 10;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 10px;
}

/* Hero */
.hero {
  position: relative; height: 100vh; min-height: 560px;
  background: url(images/hero-workbench.jpg) center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 90px var(--gutter) var(--gutter);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,9,4,.75) 0%, rgba(16,9,4,.15) 55%, rgba(16,9,4,0) 100%),
              linear-gradient(0deg, rgba(16,9,4,.6) 0%, rgba(16,9,4,0) 35%);
}
.hero > * { position: relative; }
.tagline { font-size: 12px; margin-bottom: 14px; }
.wordmark { font-size: clamp(64px, 17vw, 260px); line-height: .9; }

.info-card {
  max-width: 360px; padding: var(--gutter);
  border-radius: 12px;
  background: rgba(255, 237, 215, .08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; line-height: 1.1;
}
.info-card hr { border: 0; border-top: 1px dashed var(--driftwood); margin: 14px 0; }
.info-card p { text-transform: none; font-weight: 400; font-size: 15px; line-height: 1.26; }

/* Reveal sections */
.reveal {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr minmax(0, 40%) 1fr;
  gap: 18px; align-items: center;
  padding: 68px var(--gutter);
  border-top: 1px dashed var(--cork);
}
.reveal h2 { font-size: 41px; line-height: .9; font-weight: 500; align-self: start; padding-top: 12vh; }
.reveal p {
  text-transform: none; font-weight: 400;
  font-size: 29px; line-height: 1.26;
  align-self: end; padding-bottom: 12vh;
}
.reveal img {
  width: 100%; height: 80vh; object-fit: contain;
  /* fade the cool grey studio backdrop into the warm canvas */
  -webkit-mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, #000 55%, transparent 100%);
  filter: sepia(.35) saturate(.85) brightness(.95) contrast(1.05);
}
.step { display: block; font-size: 12px; margin-bottom: 18px; color: var(--driftwood); }

/* 3D stage: one sticky object behind the three reveal sections.
   Photos stay in the markup as fallback until JS adds .has-3d */
.story { position: relative; }
.stage { display: none; position: sticky; top: 0; height: 100vh; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; display: block; }
.has-3d .stage { display: block; }
.has-3d .stage + .reveal { margin-top: -100vh; }
.has-3d .story .reveal { position: relative; }
.has-3d .story .reveal img { visibility: hidden; }

/* Closing */
.closing {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 68px var(--gutter) var(--gutter);
  border-top: 1px dashed var(--cork);
}
.closing h2 { font-size: clamp(41px, 9vw, 140px); line-height: .9; font-weight: 500; }
.btn-pill {
  display: inline-block; margin-top: 41px;
  padding: 14px 24px; border-radius: 36px;
  background: var(--bark); color: var(--cream);
  font-size: 14px; text-decoration: none;
}
.btn-pill { border: 0; font-family: inherit; font-weight: 500; text-transform: uppercase; cursor: pointer; }
.btn-pill:hover { background: #4a3020; }

/* Fit finder dialog */
.fit {
  margin: auto; width: min(560px, calc(100vw - 32px));
  padding: var(--gutter); border: 1px solid var(--cork); border-radius: 12px;
  background: var(--walnut); color: var(--cream);
}
.fit::backdrop { background: rgba(16, 9, 4, .8); backdrop-filter: blur(6px); }
.fit-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.fit h3 { font-size: 41px; line-height: .9; font-weight: 500; }
.btn-ghost {
  background: transparent; color: var(--cream); cursor: pointer;
  border: 1px solid var(--cream); border-radius: 22.5px; padding: 7.5px 14px;
  font: 500 12px var(--font); text-transform: uppercase;
}
.fit label { display: block; margin-top: 31px; font-size: 12px; color: var(--driftwood); }
.fit select {
  width: 100%; margin-top: 8px; padding: 6px 2px;
  background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid var(--cream); border-radius: 0;
  font: 500 18px var(--font); text-transform: uppercase;
}
.fit select:disabled { opacity: .35; }
.fit option, .fit optgroup { background: var(--walnut); color: var(--cream); }
.fit-result {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center;
  margin-top: 31px; padding-top: 24px; border-top: 1px dashed var(--driftwood);
}
.fit-result[hidden] { display: none; }
.fit-result img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.fit-result h4 { font-size: 18px; line-height: 1; font-weight: 500; }
.fit-price { margin-top: 8px; font-size: 14px; }
.fit-price small { color: var(--driftwood); }
.fit-result .btn-pill { margin-top: 14px; font-size: 12px; }
.footer {
  display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px dashed var(--cork);
  font-size: 12px;
}
.credit, .credit a { color: var(--ember); }
.legal { font-family: Arial, system-ui, sans-serif; font-size: 8px; line-height: 1.2; }

/* Mobile */
@media (max-width: 800px) {
  :root { --gutter: 16px; }
  .nav ul { gap: 12px; font-size: 10px; }
  .side-label { display: none; }
  .hero { background-position: 68% center; }
  .has-3d .story .reveal img { display: none; }
  .has-3d .story .reveal { align-content: end; }
  .reveal { grid-template-columns: 1fr; padding: 68px var(--gutter); }
  .reveal img { order: -1; height: 55vh; }
  .reveal h2 { padding-top: 0; font-size: 34px; }
  .reveal p { padding-bottom: 0; font-size: 20px; }
}

:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; }
.skip { position: fixed; top: -100px; left: 24px; z-index: 30; background: var(--bark); padding: 14px; }
.skip:focus { top: 12px; }
.nav { background: linear-gradient(var(--walnut), transparent); padding: 24px 32px 32px; }
.hero { padding: 110px 32px 32px; }
.wordmark { font-weight: 500; font-size: clamp(62px, 16.8vw, 260px); }
.hero-explore { position: absolute; bottom: 32px; right: 42px; text-decoration: none; padding: 15px 22px; }
.hero-explore span { margin-left: 38px; }
.hero-caption { position: absolute; bottom: 94px; right: 42px; font-size: 10px; }
.info-card { backdrop-filter: none; background: rgba(16,9,4,.55); }
.info-card p { font-size: 18px; }
.step { color: var(--cream); opacity: .65; }
.closing { overflow: hidden; }
.closing-copy { font-size: 29px; font-weight: 400; text-transform: none; margin: 45px 0 24px; }
.brand-marquee { margin: 0 calc(-1 * var(--gutter)); overflow: hidden; border-block: 1px dashed var(--cork); }
.brand-track, .brand-group { display: flex; width: max-content; }
.brand-track { animation: brands 110s linear infinite; }
.brand-track.paused, .brand-marquee:hover .brand-track, .brand-marquee:focus-within .brand-track { animation-play-state: paused; }
@keyframes brands { to { transform: translateX(-50%); } }
.brand-group button, .brand-grid button { font: 500 41px var(--font); color: var(--cream); background: none; border: none; padding: 31px; cursor: pointer; }
.brand-group button:hover, .brand-grid button:hover { text-decoration: underline; text-underline-offset: 8px; }
.brand-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; font-size: 10px; }
.all-brands { margin: 31px 0 45px; }
.all-brands summary { cursor: pointer; font-size: 12px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 18px; padding-top: 24px; }
.brand-grid button { font-size: 14px; text-align: left; padding: 12px 0; }
.fit label { color: var(--cream); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .brand-track { animation: none; } #brand-pause { display: none; } }
@media (max-width: 800px) {
  .nav { padding: 18px 16px 26px; }
  .hero { padding: 100px 16px 110px; min-height: 720px; height: 100svh; }
  .hero-explore { right: 16px; bottom: 28px; left: 16px; display: flex; justify-content: space-between; }
  .hero-caption { display: none; }
  .info-card { max-width: 290px; padding: 18px; }
  .reveal { min-height: 100svh; }
  .has-3d .reveal { grid-template-rows: 1fr auto auto; }
  .has-3d .reveal h2 { grid-row: 2; }
  .has-3d .reveal p { grid-row: 3; }
  .brand-group button { font-size: 29px; padding: 24px; }
  .closing h2 { font-size: clamp(41px, 10vw, 80px); }
}

/* WordPress admin bar */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Inner pages (shop, cart, checkout, account) */
.page { min-height: 80vh; padding: 130px 32px 68px; max-width: 1200px; margin: 0 auto; }
.page h1 { font-size: clamp(41px, 6vw, 90px); line-height: .9; font-weight: 500; margin-bottom: 45px; }
.page-content, div.woocommerce { text-transform: none; font-weight: 400; font-size: 18px; line-height: 1.4; }
.site-footer { margin: 0 32px 32px; }
.woocommerce input, .woocommerce select, .woocommerce textarea {
  background: transparent; color: var(--cream); font: 400 16px var(--font);
  border: 1px solid var(--cork); border-radius: 8px; padding: 10px 12px;
}
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
  background: var(--bark); color: var(--cream); border: 0; border-radius: 36px;
  padding: 14px 24px; font: 500 14px var(--font); text-transform: uppercase; cursor: pointer;
}
.woocommerce .button:hover { background: #4a3020; color: var(--cream); }
@media (max-width: 800px) { .page { padding: 110px 16px 45px; } .site-footer { margin: 0 16px 16px; } }
.fit-result:has(img[hidden]) { grid-template-columns: 1fr; }
.fit-result img[hidden] { display: none; }

/* Single product */
.product-page { padding: 130px 32px 0; }
.product-hero { min-height: calc(100vh - 180px); display: grid; grid-template-columns: 1fr minmax(0, 40%); gap: 68px; align-items: end; padding-bottom: 68px; }
.product-hero .eyebrow { font-size: 12px; margin-bottom: 18px; opacity: .65; }
.product-hero h1 { font-size: clamp(41px, 6vw, 96px); line-height: .9; font-weight: 500; overflow-wrap: anywhere; }
.product-summary { text-transform: none; font-weight: 400; font-size: 18px; line-height: 1.3; }
.product-summary ul, .product-description ul { padding-left: 1.1em; }
.product-summary li { margin-bottom: 6px; }
.product-price { margin: 31px 0 18px; font-size: 29px; }
.product-price del { opacity: .5; }
.product-price ins { text-decoration: none; }
.product-buy form.cart { display: flex; gap: 12px; align-items: center; }
.product-buy .quantity input { width: 72px; }
.product-details, .product-specs { display: grid; grid-template-columns: 1fr minmax(0, 60%); gap: 68px; padding: 68px 0; border-top: 1px dashed var(--cork); }
.product-details h2, .product-specs h2 { font-size: 41px; line-height: .9; font-weight: 500; }
.product-description { text-transform: none; font-weight: 400; font-size: 20px; line-height: 1.4; }
.product-description h3, .product-description h4 { font-size: 20px; font-weight: 500; margin: 31px 0 8px; }
.product-description > :first-child { margin-top: 0; }
.product-description p, .product-description ul { margin-bottom: 14px; }
.product-description a { text-underline-offset: 4px; }
.product-specs table { width: 100%; border-collapse: collapse; text-transform: none; font-weight: 400; font-size: 16px; }
.product-specs th, .product-specs td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px dashed var(--cork); }
.product-specs th { width: 40%; padding-right: 18px; font-size: 12px; font-weight: 500; text-transform: uppercase; }
.product-specs td p { margin: 0; }
@media (max-width: 800px) {
  .product-page { padding: 100px 16px 0; }
  .product-hero, .product-details, .product-specs { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
}
/* Beat WooCommerce default (purple) button colours */
html .woocommerce :is(a, button, input).button, html .woocommerce :is(a, button, input).button.alt { background: var(--bark); color: var(--cream); border-radius: 36px; padding: 14px 24px; font: 500 14px var(--font); text-transform: uppercase; }
html .woocommerce :is(a, button, input).button:hover, html .woocommerce :is(a, button, input).button.alt:hover { background: #4a3020; color: var(--cream); }

/* Variable product: brand / model selectors */
.product-buy table.variations { width: 100%; border-collapse: collapse; }
.product-buy table.variations th, .product-buy table.variations td { display: block; padding: 0; text-align: left; }
.product-buy table.variations label { font-size: 12px; font-weight: 500; }
.product-buy table.variations select {
  width: 100%; margin: 8px 0 24px; padding: 6px 2px;
  background: transparent; color: var(--cream);
  border: 0; border-bottom: 1px solid var(--cream); border-radius: 0;
  font: 500 18px var(--font); text-transform: uppercase;
}
.product-buy table.variations option { background: var(--walnut); color: var(--cream); }
.product-buy .reset_variations { display: inline-block; margin-bottom: 18px; font-size: 12px; }
.woocommerce-variation-description { text-transform: none; font-weight: 400; font-size: 16px; line-height: 1.3; margin-bottom: 14px; }
.woocommerce-variation-description ul { padding-left: 1.1em; }
.woocommerce-variation-price .price { display: block; margin-bottom: 18px; font-size: 29px; }
.woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: center; }
.product-buy form.variations_form { display: block; }

/* Cart + checkout (WooCommerce blocks) */
.wc-block-cart, .wc-block-checkout { text-transform: none; font-weight: 400; }
.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-cart-items__header, .wc-block-cart__totals-title { text-transform: uppercase; font-weight: 500 !important; }
html .wc-block-components-text-input input, html .wc-block-components-textarea, html .wc-blocks-components-select__container, html .wc-blocks-components-select__select, html .wc-block-components-combobox .components-combobox-control input {
  background: transparent !important; color: var(--cream) !important;
  border: 1px solid var(--cork) !important; border-radius: 8px !important; font-family: var(--font);
}
html .wc-block-components-text-input input:focus, html .wc-blocks-components-select__select:focus { border-color: var(--cream) !important; box-shadow: none !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label { color: var(--driftwood) !important; }
.wc-blocks-components-select__select option { background: var(--walnut); color: var(--cream); }
.wc-blocks-components-select__expand { fill: var(--cream); }
html .wc-block-components-button:not(.is-link) {
  background: var(--bark) !important; color: var(--cream) !important; border: 0 !important; border-radius: 36px !important;
  padding: 14px 24px; font: 500 14px var(--font); text-transform: uppercase; box-shadow: none !important;
}
html .wc-block-components-button:not(.is-link):hover { background: #4a3020 !important; }
.wc-block-components-product-name { text-decoration: none; font-weight: 500; text-transform: uppercase; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { opacity: 0; }
.wc-block-cart-item__image a, .wc-block-components-order-summary-item__image { display: block; align-self: flex-start; height: 48px; background: var(--bark); border-radius: 8px; }
.wc-block-components-checkout-order-summary__title-text { text-transform: uppercase; font-weight: 500; }
.wc-block-components-order-summary-item__quantity { background: var(--cream) !important; color: var(--walnut) !important; border: 0 !important; box-shadow: none !important; }
.wc-block-components-quantity-selector { border-color: var(--cork) !important; border-radius: 36px !important; }
.wc-block-components-quantity-selector input, .wc-block-components-quantity-selector button { color: var(--cream) !important; background: transparent !important; }
.wc-block-components-quantity-selector::after { border: 0 !important; }
.wc-block-components-product-remove { color: var(--cream) !important; }
.wc-block-components-checkbox__input { background: transparent !important; border-color: var(--cork) !important; }
.wc-block-components-checkbox__mark { fill: var(--cream) !important; }
.wp-block-woocommerce-checkout-order-summary-block { border: 1px dashed var(--cork) !important; border-radius: 0 !important; }
.wc-block-cart-items td, .wc-block-cart-items th, .wc-block-components-totals-wrapper, .wc-block-checkout__terms { border-color: var(--cork) !important; border-top-style: dashed !important; }
.wc-block-components-notice-banner { background: transparent !important; color: var(--cream) !important; border: 1px dashed var(--cork) !important; border-radius: 0 !important; }
.wc-block-components-notice-banner > svg { background: var(--bark) !important; fill: var(--cream) !important; }
.wc-block-components-address-form__address_2-toggle, .wc-block-checkout__terms a { color: var(--cream) !important; text-underline-offset: 4px; }
