/* Apex Auto B2B — editorial identity, 28 October 2026, contrast revision.
   Ivory and stone page tones, white sheets with a soft shadow, near-black text and filled controls.
   Bronze on prices, large figures and the rule under section titles. Never all capitals. */

@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url("assets/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --ivory: #F8F6F2;
  --stone: #EFECE6;
  --ink: #141414;
  --ink-hover: #333333;
  --muted: #5F6064;
  --line: #D9D9D6;
  --card-line: #D6D1C7;
  --shadow: 0 10px 28px rgba(20, 20, 20, 0.07);
  --bronze: #8C6239;
  --bronze-bar: #9A7B56;
  --tint: #F4F4F2;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong { font-weight: 500; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--paper); border: 1px solid var(--ink);
}
.skip-link:focus { top: 16px; }

.nowrap { white-space: nowrap; }
.num { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ivory);
  border-bottom: 1px solid var(--card-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.wordmark { font-family: var(--sans); font-weight: 500; font-size: 19px; text-decoration: none; letter-spacing: .01em; }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav a {
  display: inline-block; padding: 10px 0;
  text-decoration: none; color: var(--muted);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav__extra { display: none; } }

/* Shared text */
.eyebrow { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin-top: 28px; }

.section-title { font-size: clamp(34px, 4.6vw, 52px); }
.section-title::after {
  content: ""; display: block;
  width: 40px; height: 2px; margin-top: 18px;
  background: var(--bronze);
}
.subhead { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 16px; }

.section { padding: var(--section) 0; }
.section--rule { border-top: 1px solid var(--card-line); }
.section--stone { background: var(--stone); }

/* White sheets that sit on the stone sections */
.sheet {
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}
.section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.section__intro { color: var(--muted); max-width: 40em; margin-top: 22px; }
.section__head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

.note { color: var(--muted); font-size: 15px; margin-top: 28px; max-width: 48em; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn:active { background: var(--ink); }
.btn--block { width: 100%; }
.link {
  display: inline-block; padding: 10px 0;
  text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 6px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s var(--ease);
}
.link:hover { text-decoration-color: var(--ink); }
.text-button {
  min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line);
}
.text-button:hover { text-decoration-color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; }
.hero__visual { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: end; }
.hero__visual figure { margin: 0; }
.hero__visual figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; margin-top: 10px; color: var(--muted); font-size: 15px;
}
.hero__sheet img, .hero__reel video { border: 1px solid var(--card-line); box-shadow: var(--shadow); }
.hero__reel video { aspect-ratio: 9 / 16; width: 100%; object-fit: cover; background: var(--paper); }
.hero__note { grid-column: 1 / -1; margin-top: -4px; color: var(--muted); font-size: 14px; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
}

/* Desktop: the visuals take half the hero, side by side with a clean 26 px gap (nothing covered),
   the reel dropped 40 px for an editorial stagger, and clear space below the header rule. */
@media (min-width: 1024px) {
  .hero__grid { max-width: 1360px; grid-template-columns: 1fr 1fr; gap: clamp(48px, 5vw, 80px); }
  .hero__visual {
    grid-template-columns: 1.55fr 1fr; column-gap: 26px;
    align-items: end; margin-top: 32px; padding-bottom: 40px;
  }
  .hero__sheet { grid-column: 1; grid-row: 1; position: relative; }
  .hero__reel { grid-column: 2; grid-row: 1; position: relative; top: 40px; }
  .hero__note { grid-row: 2; margin-top: 56px; }
  .hero__sheet img, .hero__reel video { box-shadow: 0 14px 34px rgba(20, 20, 20, 0.10), 0 2px 6px rgba(20, 20, 20, 0.05); }
  .hero__sheet, .hero__reel { transition: transform .45s var(--ease); }
  .hero__sheet img, .hero__reel video { transition: box-shadow .45s var(--ease); }
  .hero__sheet:hover, .hero__reel:hover { transform: translateY(-5px); }
  .hero__sheet:hover img, .hero__reel:hover video { box-shadow: 0 22px 44px rgba(20, 20, 20, 0.14), 0 3px 8px rgba(20, 20, 20, 0.06); }
}

/* Zoomable images */
.zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; touch-action: manipulation;
}
.zoom img { transition: opacity .2s var(--ease); }
.zoom:hover img { opacity: .9; }

/* Key figures */
.figures { border-top: 1px solid var(--card-line); border-bottom: 1px solid var(--card-line); background: var(--paper); }
.figures__list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; }
.figures__list > div { padding: 28px 20px 28px 0; }
.figures__list > div + div { border-left: 0; }
.figures__list dt { color: var(--muted); font-size: 15px; }
.figures__list dd { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.figures__list .num { display: block; font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--bronze); margin-bottom: 8px; }
@media (min-width: 860px) {
  .figures__list { grid-template-columns: repeat(4, 1fr); }
  .figures__list > div { padding: 36px 28px; }
  .figures__list > div:first-child { padding-left: 0; }
  .figures__list > div + div { border-left: 1px solid var(--line); }
}

/* Filters */
.filters { display: grid; gap: 22px; margin-bottom: 40px; }
.filter { margin: 0; padding: 0; border: 0; min-width: 0; }
.filter legend { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--card-line); border-radius: 2px;
  background: var(--paper); color: var(--ink); font-size: 16px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.filters__count { color: var(--muted); font-size: 15px; }
.filter--compact legend { margin-bottom: 8px; }

/* Gallery */
.gallery {
  display: grid; gap: 40px 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  align-items: start;
}
.tpl { padding: 12px 12px 16px; }
/* Each image keeps its own aspect ratio (from its width/height attributes), so nothing is squashed or cropped;
   cover + 60% is a safeguard if a container ever forces a different ratio. */
.tpl img, .hero__sheet img, .kit img {
  width: 100%; height: auto;
  object-fit: cover; object-position: center 60%;
}
.tpl img { border: 1px solid var(--line); background: var(--paper); }
.tpl__meta { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; padding: 0 2px; font-size: 15px; color: var(--muted); }
.tpl__market { color: var(--ink); font-weight: 500; }
.tpl.is-entering { animation: appear .3s var(--ease) both; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Market notes */
.markets { margin-top: clamp(64px, 8vw, 96px); }
.markets__grid { display: grid; gap: 0 32px; grid-template-columns: 1fr; margin-top: 12px; }
.market { padding: 24px 0; border-top: 2px solid var(--card-line); transition: border-color .2s var(--ease); }
.market.is-active { border-top-color: var(--ink); }
.market h4 { font-size: 24px; margin-bottom: 14px; }
.market dl { margin: 0; display: grid; gap: 12px; }
.market dt { color: var(--muted); font-size: 14px; }
.market dd { margin: 2px 0 0; font-size: 16px; line-height: 1.5; }
@media (min-width: 700px) { .markets__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .markets__grid { grid-template-columns: repeat(4, 1fr); } }

/* Reel */
.reel { display: grid; gap: 48px; }
.reel__player { max-width: 380px; width: 100%; justify-self: center; }
.reel__player video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.reel__detail > * + * { margin-top: 32px; }
.reel__detail p { color: var(--muted); max-width: 36em; }
@media (min-width: 900px) {
  .reel { grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(48px, 7vw, 96px); align-items: start; }
  .reel__player { position: sticky; top: 96px; }
}

.scenes { border-top: 1px solid var(--line); }
.scenes li { border-bottom: 1px solid var(--line); }
.scene {
  display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 16px;
  width: 100%; min-height: 56px; padding: 14px 0;
  border: 0; background: none; text-align: left; cursor: pointer;
  transition: color .2s var(--ease);
}
.scene__time { font-family: var(--serif); font-size: 22px; color: var(--muted); font-variant-numeric: lining-nums; transition: color .2s var(--ease); }
.scene__label { color: var(--muted); transition: color .2s var(--ease); }
.scene:hover .scene__label, .scene.is-current .scene__label { color: var(--ink); }
.scene.is-current .scene__time { color: var(--ink); }

.layers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.layers img { width: 100%; background: #DCD7CD; border: 1px solid var(--card-line); box-shadow: var(--shadow); }
.layers span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

.steps { margin: 0; border-top: 1px solid var(--line); }
.steps > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps dt { font-weight: 500; }
.steps dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .steps > div { grid-template-columns: 140px 1fr; gap: 16px; } }

/* Method */
.method { display: grid; gap: 56px; }
.method__steps { display: grid; gap: 32px; }
.method__steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.method__steps .num { font-size: 48px; line-height: 1; color: var(--bronze); }
.method__steps h3 { font-size: 24px; margin-bottom: 8px; }
.method__steps p { color: var(--muted); }
.method__rules { border-top: 1px solid var(--ink); padding-top: 24px; }
.method__rules h3 { font-size: 24px; margin-bottom: 16px; }
.method__rules p { color: var(--muted); margin-top: 12px; }
.method__rules strong { color: var(--ink); }
@media (min-width: 900px) {
  .method { grid-template-columns: 1.4fr 1fr; gap: 96px; }
  .method__steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .method__steps li { grid-template-columns: 1fr; gap: 12px; }
}

/* Prices */
.plans { display: grid; gap: 24px; grid-template-columns: 1fr; }
.plan {
  display: flex; flex-direction: column;
  padding: 32px clamp(24px, 3vw, 36px);
}
.plan--featured { border-top: 5px solid var(--bronze-bar); }
.plan h3 { font-size: 28px; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 20px; }
.price {
  font-family: var(--serif); font-size: clamp(48px, 5vw, 60px); line-height: 1;
  color: var(--bronze); font-variant-numeric: lining-nums;
}
.plan__period { color: var(--muted); font-size: 15px; }
.plan__summary { margin-top: 20px; }
.plan__list { margin: 24px 0 32px; border-top: 1px solid var(--line); flex: 1; }
.plan__list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; line-height: 1.5; }
.plan__fine { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.kit { display: grid; gap: 40px; margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 4vw, 48px); }
.kit__cover { margin: 0; max-width: 320px; }
.kit__cover img, .kit__pages img { border: 1px solid var(--line); width: 100%; }
.kit__text > p { color: var(--muted); max-width: 40em; }
.prompts { counter-reset: prompt; margin-top: 24px; display: grid; gap: 0 32px; border-top: 1px solid var(--line); }
.prompts li {
  counter-increment: prompt;
  display: grid; grid-template-columns: 36px 1fr; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px;
}
.prompts li::before { content: counter(prompt); font-family: var(--serif); color: var(--muted); }
.kit__pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; max-width: 560px; }
@media (min-width: 700px) { .prompts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .kit { grid-template-columns: 320px 1fr; gap: 72px; } }

/* Contact */
.contact__text { color: var(--muted); max-width: 36em; margin-top: 28px; }
.contact__email { margin-top: 24px; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); }
.contact__email a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: var(--line); overflow-wrap: anywhere; }
.contact__email a:hover { text-decoration-color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--card-line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
.credits { grid-column: 1 / -1; margin-top: 8px; }
.credits summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); }
.credits ul { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.credits a { color: var(--muted); }
.site-footer__inner { display: grid; gap: 12px; }
.site-footer .wordmark { color: var(--ink); font-size: 16px; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 2fr 1fr; } .site-footer__inner p:last-child { text-align: right; } }

/* Lightbox */
.lightbox {
  width: min(92vw, 760px); max-height: 92vh; padding: 0;
  border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.lightbox::backdrop { background: rgba(255, 255, 255, .92); }
.lightbox[open] { animation: appear .25s var(--ease) both; }
.lightbox__bar {
  position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 6px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.lightbox__caption { font-size: 15px; color: var(--muted); }
.lightbox img { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Modals: order request, legal notice, privacy */
.modal {
  width: min(92vw, 640px); max-height: 92vh; padding: 0;
  border: 1px solid var(--card-line); border-radius: 2px;
  background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(20, 20, 20, 0.18);
}
.modal::backdrop { background: rgba(239, 236, 230, 0.86); }
.modal[open] { animation: appear .25s var(--ease) both; }
.modal__bar {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  padding: 6px 28px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.modal__kicker { color: var(--muted); font-size: 15px; }
.modal__body { padding: 28px 28px 32px; }
.modal__title { font-size: clamp(30px, 4vw, 40px); }
.modal__title::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 14px; background: var(--bronze); }
.modal__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 18px 0 24px; color: var(--muted); }
.modal__price { font-size: 34px; }

.order-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field--pair { grid-template-columns: 1fr; gap: 18px; }
.field--pair > div { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field__req { color: var(--muted); font-weight: 400; font-size: 13px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--card-line); border-radius: 2px; background: var(--paper);
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #9b2c2c; }
.order-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.order-form__note { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: -6px; }
.order-form__privacy { color: var(--muted); font-size: 14px; }
.order-form__privacy .text-button, .legal-links .text-button { min-height: 0; font-size: inherit; color: inherit; }
.order-form__status { font-size: 15px; }
.order-form__status:empty { display: none; }
.order-form__status.is-ok { border-left: 3px solid var(--bronze); padding: 10px 14px; background: var(--ivory); color: var(--ink); }
.order-form__status.is-error { border-left: 3px solid #9b2c2c; padding: 10px 14px; background: #fbf3f2; color: var(--ink); }
#order-submit[disabled] { opacity: .6; cursor: progress; }
@media (min-width: 560px) { .field--pair { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .modal { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; } }

.legal h3 { font-size: 22px; margin: 26px 0 8px; }
.legal p { color: #3c3d40; }
.legal p + p { margin-top: 12px; }
.legal__small { color: var(--muted); font-size: 14px; }
.legal__list { margin: 18px 0; border-top: 1px solid var(--line); }
.legal__list > div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.legal__list dt { color: var(--muted); font-size: 14px; }
.legal__list dd { margin: 0; }
@media (min-width: 560px) { .legal__list > div { grid-template-columns: 190px 1fr; gap: 16px; } }
.legal-links { display: inline-block; margin-left: 6px; }
