/* cp3dbiz stylesheet
   Palette sampled from the product photos (DSCN5540 to DSCN5566):
   deepest shadow under the car #252118, studio backdrop #9A8E61,
   lit filament #D0C28C. Values below are those samples nudged for WCAG AA.
   Contrast: ivory on umber 13.3:1, ivory on olive 10.2:1, brass on umber 7.6:1,
   brass on olive 5.8:1, khaki on umber 6.1:1, khaki on olive 4.7:1. */

:root {
  --studio-umber: #211E16;
  --shadow-olive: #38321F;
  --backdrop-khaki: #A89C70;
  --filament-ivory: #EEE6CE;
  --lattice-brass: #CFAA5E;
  --brass-lit: #DDBC77;
  --line: rgba(238, 230, 206, 0.14);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --header-h: 64px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--studio-umber);
  color: var(--filament-ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lattice-brass); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-lit); }

:focus-visible {
  outline: 3px solid var(--lattice-brass);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2rem); line-height: 1; }

p { margin: 0 0 1em; max-width: 62ch; }

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

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--backdrop-khaki);
  margin: 0 0 1rem;
}

.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--lattice-brass);
  color: var(--studio-umber);
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--studio-umber); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--lattice-brass);
  border-radius: var(--radius);
  background: var(--lattice-brass);
  color: var(--studio-umber);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brass-lit); border-color: var(--brass-lit); color: var(--studio-umber); }
.btn-ghost { background: transparent; color: var(--filament-ivory); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--filament-ivory); border-color: var(--filament-ivory); }
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }


/* Layer-line texture: echoes the visible FDM layers on the print */
.layers {
  height: 28px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(238, 230, 206, 0.11) 0 1px,
    transparent 1px 4px
  );
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--studio-umber);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand { display: inline-flex; padding: 4px 0; }
.brand img { width: 92px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.site-nav ul a {
  color: var(--filament-ivory);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: var(--backdrop-khaki); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--lattice-brass); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--filament-ivory);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--studio-umber);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .js .site-nav ul a[aria-current="page"] { color: var(--lattice-brass); border-bottom-color: var(--line); }
  .site-nav ul { gap: 1rem; }
  .site-nav { gap: 1rem; }
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Turntable hero */
.turntable { position: relative; }
.turntable.is-active { height: calc(100svh + 7 * 42svh); }

.turntable-stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.turntable.is-active .turntable-stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
}

.turntable-copy { order: 0; }
.turntable-copy h1 { margin-bottom: 0.3em; }
.turntable-copy .lede { margin-bottom: 1.75rem; }

.turntable-view { min-width: 0; }
.turntable-frames {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: calc(100svh - var(--header-h) - 9rem);
  margin-left: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--shadow-olive);
}
.tt-frame { position: absolute; inset: 0; }
.tt-frame picture { height: 100%; }
.tt-frame img { width: 100%; height: 100%; object-fit: cover; }
.turntable.is-active .tt-frame { opacity: 0; }
.turntable.is-active .tt-frame.is-current { opacity: 1; }
.turntable:not(.is-active) .tt-frame:not(:first-child) { display: none; }

.tt-readout {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--backdrop-khaki);
}
.tt-angle { color: var(--filament-ivory); }
.tt-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 0.6rem;
}
.tt-track span { height: 3px; background: var(--line); }
.tt-track span.is-on { background: var(--lattice-brass); }
.turntable:not(.is-active) .tt-readout,
.turntable:not(.is-active) .tt-track { display: none; }

/* Static fallback grid: no JS or reduced motion */
.angle-grid { display: none; }
.turntable:not(.is-active) .angle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  list-style: none;
  margin: 0 auto;
}
.angle-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.figure-label {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--backdrop-khaki);
}

@media (max-width: 900px) {
  .turntable-stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.25rem;
  }
  .turntable-view { order: -1; }
  .turntable-frames { max-height: 42svh; width: 100%; aspect-ratio: auto; height: min(42svh, 75vw); }
  .turntable-copy .lede { margin-bottom: 1.25rem; font-size: 1.0625rem; }
  .turntable-copy h1 { font-size: clamp(2.6rem, 11vw, 4.5rem); }
  .turntable-copy .eyebrow { margin-bottom: 0.6rem; }
}

/* The first piece */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.feature-media img { border-radius: var(--radius); width: 100%; }
.feature-copy h2 { margin-bottom: 0.5em; }

.keeps {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  border-top: 1px solid var(--line);
}
.keeps li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.keeps li span:last-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--backdrop-khaki);
  padding-top: 0.2em;
}

.price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
}
.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
}
.price-note { font-size: 0.9375rem; color: var(--backdrop-khaki); }

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

/* Light and shadow */
.band { background: var(--shadow-olive); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.detail-grid figure { margin: 0; }
.detail-grid picture,
.places picture,
.thumb picture { overflow: hidden; border-radius: var(--radius); }
.angle-grid figure { margin: 0; }
.angle-grid picture { overflow: hidden; border-radius: var(--radius); }
.detail-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.detail-grid figcaption { margin-top: 0.85rem; font-size: 0.9375rem; line-height: 1.5; }
.detail-grid figcaption .figure-label { margin: 0 0 0.3rem; color: var(--lattice-brass); }

@media (max-width: 1000px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Where it lives */
.places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.places img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.places h3 { margin: 1.1rem 0 0.4rem; }
.places p { font-size: 1rem; }
.places .crop-left img { object-position: 20% 60%; }
.places .crop-right img { object-position: 75% 55%; }

@media (max-width: 760px) {
  .places { grid-template-columns: 1fr; }
  .places img { aspect-ratio: 4 / 3; }
}

/* Closing call to action */
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cta h2 { margin-bottom: 0.25em; }
.cta p { margin: 0; }

/* Product page */
.product-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.product-info h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
@media (min-width: 901px) {
  .product-info { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.gallery-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--shadow-olive);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; }
.gallery-hint { margin: 0.6rem 0 0; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb .figure-label { font-size: 0.6875rem; letter-spacing: 0.08em; line-height: 1.35; }
.thumb[aria-current="true"] picture { box-shadow: 0 0 0 2px var(--lattice-brass); }

@media (max-width: 1100px) { .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .product-top { grid-template-columns: 1fr; } }

.buy-panel {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: var(--shadow-olive);
  border-radius: var(--radius);
}
.buy-panel .price-line { margin-bottom: 0.25rem; }
.buy-panel .btn { width: 100%; margin-top: 1rem; }
.buy-panel .price-note { margin: 0; }
.buy-panel-alt { margin: 0.9rem 0 0; font-size: 0.9375rem; text-align: center; }

.product-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .product-body { grid-template-columns: 1fr; } }

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
}
.specs dt { text-transform: uppercase; letter-spacing: 0.12em; color: var(--backdrop-khaki); font-size: 0.75rem; padding-top: 0.15em; }
.specs dd { margin: 0; }

.care {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}
.care h3 { margin-bottom: 0.5rem; }
@media (max-width: 760px) { .care { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 18, 13, 0.97);
  color: var(--filament-ivory);
}
.lightbox::backdrop { background: rgba(20, 18, 13, 0.9); }
.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem var(--gutter);
}
.lightbox-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--backdrop-khaki);
}
.lightbox-figure {
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter);
}
.lightbox-figure picture { max-height: 100%; }
.lightbox-figure img {
  max-height: calc(100dvh - 10rem);
  width: auto;
  max-width: 100%;
  border-radius: var(--radius);
}
.lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem var(--gutter) 1.25rem;
}
.icon-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: var(--filament-ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--filament-ivory); }
.icon-btn svg { width: 22px; height: 22px; }

/* About and contact */
.page-intro { padding-top: clamp(3rem, 7vw, 6rem); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split img { border-radius: var(--radius); width: 100%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pair figure { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--shadow-olive);
  border-radius: var(--radius);
}
.contact-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--filament-ivory);
  text-decoration: none;
  margin: 0.25rem 0 1.25rem;
}
.contact-number:hover { color: var(--lattice-brass); }
.contact-other { margin: 1.5rem 0 0; font-size: 0.9375rem; }
.contact-other a { overflow-wrap: anywhere; }


/* Footer */
.site-footer { padding: 3.5rem 0 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem 3rem;
  align-items: start;
}
.footer-grid img { width: 110px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: var(--filament-ivory); text-decoration: none; }
.footer-nav a:hover { color: var(--lattice-brass); }
.footer-contact { text-align: right; font-size: 0.9375rem; }
.footer-contact p { margin: 0 0 0.3rem; }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--backdrop-khaki);
}
.footer-legal p { margin: 0; max-width: none; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}

/* Motion: only when the visitor has not asked for less */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
  .btn:hover { transform: translateY(-1px); }
  .thumb img,
  .gallery-main img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .gallery-main:hover img,
  .thumb:hover img { transform: scale(1.03); }

  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
.contact-photo { padding-bottom: clamp(4rem, 9vw, 7.5rem); }
.contact-photo img { border-radius: var(--radius); width: 100%; }
