/* ============================================================
   POLIKA — APPLE PRODUCT MINIMUM  (storefront · home page)
   World: a 3D-printing studio presented the way Apple presents
   a product — flat, airy, light; one neutral system of grays;
   one blue for actions; a translucent global bar; a hero
   statement over a product shot. Voice: the system SF/Helvetica
   stack, semibold display type, tabular numerals, no chrome.
   One signature motif: the horizontal layer line of a print.
   No WebGL, no canvas, no grain.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-tint: #f5f5f7;
  --bg-dark: #161617;
  --card: #ffffff;
  --card-tint: #f5f5f7;
  --ghost: #e8e8ed;

  /* Ink */
  --text: #1d1d1f;
  --sub: #6e6e73;
  --sub-on-dark: #a1a1a6;
  --faint: #86868b;

  /* Hairlines */
  --line: #d2d2d7;
  --line-soft: #e8e8ed;

  /* Action */
  --accent: #0060df;
  --accent-hover: #0040c9;
  --btn: #0071e3;
  --btn-hover: #0077ed;
  --link-dark: #2997ff;

  /* Status */
  --good: #1d7a31;
  --bad: #a5142b;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons",
    "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 18px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

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

.container {
  width: min(1024px, 100% - 2 * clamp(20px, 4vw, 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute; top: 12px; left: 24px; z-index: 200;
  transform: translateY(-220%);
  background: var(--bg-dark); color: #fff;
  padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.skip-link:focus { transform: none; }

/* ---------- Global navigation ---------- */
.hat {
  position: sticky; top: 0; z-index: 60;
  background: rgba(22, 22, 23, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.hat-bar {
  max-width: 1080px;
  margin-inline: auto;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 28px);
}
.hat-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.hat-logo img {
  display: block;
  height: 18px;
  width: auto;
}
.hat-logo:hover img { opacity: 0.7; }

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(16px, 2.6vw, 34px);
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.nav-active { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.hat-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hat-action {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.hat-action:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.hat-burger {
  display: none;
  width: 46px; height: 46px;
  margin: -8px -10px;
  background: none; border: 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}
.hat-burger:hover { color: #fff; }

.hat-line {
  display: block; height: 1px;
  background: rgba(255, 255, 255, 0.26);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hat-line.on { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 980px;
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-solid { background: var(--btn); color: #fff; }
.btn-solid:hover { background: var(--btn-hover); }
.btn-solid:active { transform: scale(0.98); }

.cta-link {
  color: var(--accent);
  font-size: 21px; font-weight: 600;
  text-decoration: none;
}
.cta-link::after { content: " ›"; }
.cta-link:hover { text-decoration: underline; }

/* ---------- Section frame ---------- */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--bg-dark); color: #f5f5f7; }

.sec-head { text-align: center; margin-bottom: clamp(44px, 6vw, 64px); }
.sec-title {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.08;
}
.sec-sub {
  max-width: 46ch;
  margin: 14px auto 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--sub);
}
.sec-more { text-align: center; margin-top: clamp(36px, 5vw, 52px); }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-tint);
  padding: clamp(64px, 8vw, 96px) clamp(20px, 4vw, 48px) 0;
  text-align: center;
}
.hero-copy { max-width: 900px; margin-inline: auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 980px;
  background: var(--card);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(46px, 7vw, 72px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 12px 0 22px;
}
.hero-title em { font-style: normal; }
.hero-sub {
  max-width: 46ch;
  margin-inline: auto;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--sub);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}
.hero-cta .cta-link { font-size: 20px; }

/* Hero product — a layered vault on the build plate */
.hero-product { margin-top: clamp(44px, 6vw, 72px); }
.plate-scene {
  position: relative;
  height: clamp(280px, 40vw, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.scene-glow {
  position: absolute; inset: 0;
  background: radial-gradient(46% 44% at 50% 38%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 72%);
}
.obj-dome {
  position: relative; z-index: 2;
  width: clamp(220px, 34vw, 300px);
  aspect-ratio: 1 / 1.08;
  border-radius: 100% 100% 22px 22px;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.08) 6px 7px),
    linear-gradient(180deg, #4c4c55 0%, #33333a 55%, #1c1c1f 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.16);
}
.obj-seam {
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}
.plate-shadow {
  position: absolute; z-index: 1;
  bottom: 4%;
  width: 62%; height: 26px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 70%);
}
.plate-floor {
  position: relative; z-index: 2;
  width: min(560px, 72%);
  height: 12px;
  border-radius: 7px;
  background: linear-gradient(180deg, #e2e2e6, #c9c9cf);
  margin-top: -10px;
}
.hero-shelf {
  margin: 22px 0 0;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--sub);
  padding-bottom: clamp(24px, 4vw, 40px);
}

/* ---------- Stock ---------- */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.live-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  padding-bottom: 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.live-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10); }
.lc-media {
  height: 220px;
  background: var(--card-tint);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.live-card:hover .lc-media img { transform: scale(1.05); }
.lc-skel {
  width: 62%; height: 42%;
  border-radius: 12px;
  background: var(--ghost);
}
.lc-cat {
  margin: 18px 22px 0;
  font-size: 12px;
  color: var(--sub);
  letter-spacing: 0.02em;
}
.lc-title {
  margin: 5px 22px 0;
  font-size: 17px; font-weight: 600;
  color: var(--text);
}
.lc-price {
  margin: 9px 22px 0;
  font-size: 16px; font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.live-empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  font-size: 17px;
  color: var(--sub);
}
.stock-note {
  text-align: center;
  margin-top: 26px;
  font-size: 14px;
  color: var(--sub);
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 46px) clamp(40px, 6vw, 72px);
  max-width: 880px;
  margin-inline: auto;
}
.step { border-top: 1px solid var(--line-soft); padding-top: 22px; }
.step-num {
  display: block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.step-title {
  font-size: 24px; font-weight: 600;
  line-height: 1.2;
  margin: 8px 0 6px;
}
.step-body {
  font-size: 15px; line-height: 1.55;
  max-width: 40ch;
  color: var(--sub);
}

/* ---------- Machines (dark) ---------- */
.section-dark .sec-sub { color: var(--sub-on-dark); }
.fleet-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 520px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  color: var(--sub-on-dark);
  font-variant-numeric: tabular-nums;
}
.fleet-k { color: #fff; font-weight: 600; white-space: nowrap; }
.spec-list {
  max-width: 560px;
  margin-inline: auto;
}
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.spec-list > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.spec-list dt { color: var(--sub-on-dark); font-size: 15px; }
.spec-list dd {
  color: #f5f5f7;
  font-size: 15px; font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  max-width: 980px;
  margin-inline: auto;
}
.class-lines { border-top: 1px solid var(--line); }
.class-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.class-lines dt { font-size: 15px; color: var(--sub); }
.class-lines dd {
  font-size: 15px; font-weight: 500;
  color: var(--text);
  text-align: right;
}
.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.contact-social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.contact-social-link:hover { background: var(--bg-dark); color: #fff; transform: translateY(-2px); }

.contact-form-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow-card);
}
.form-title { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.form-sub { font-size: 14px; color: var(--sub); margin-bottom: 24px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--sub);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 10px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 17px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.form-control::placeholder { color: var(--faint); }
.form-control:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 0 0 var(--accent);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-cta { width: 100%; margin-top: 8px; }

/* ---------- Auth modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(22, 22, 23, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.modal[style*="flex"] { place-items: center; }
.auth-card {
  position: relative;
  width: min(400px, 92vw);
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 32px 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}
.auth-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-tint);
  color: var(--text);
  border: 0; font-size: 20px; line-height: 1; cursor: pointer;
}
.auth-close:hover { background: var(--ghost); }
.auth-kicker {
  text-align: center;
  font-size: 13px; font-weight: 500;
  color: var(--sub);
}
.auth-title {
  text-align: center;
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 22px;
}
.auth-field { margin-bottom: 16px; }
.auth-field .form-control {
  padding: 11px 0 13px;
  background: var(--bg-tint);
  border: 0;
  border-radius: 10px;
  padding-left: 14px; padding-right: 14px;
}
.auth-field .form-control:focus { box-shadow: none; border-color: transparent; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-error {
  color: var(--bad);
  font-size: 14px;
  text-align: center;
  margin: 12px 0 0;
}
.auth-foot {
  text-align: center;
  font-size: 14px;
  color: var(--sub);
  margin-top: 18px;
}
.auth-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-portal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 13px;
}
.auth-portal a { color: var(--sub); text-decoration: none; }
.auth-portal a:hover { color: var(--accent); }

/* ---------- Shared footer ---------- */
.site-footer { background: var(--bg-tint); padding: 44px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.3fr;
  gap: clamp(28px, 5vw, 56px);
}
.footer-brand img { margin-bottom: 12px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
  max-width: 40ch;
}
.footer-col h3 {
  font-size: 12px; font-weight: 600;
  color: var(--sub);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col ul a {
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
}
.footer-col ul a:hover { text-decoration: underline; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-contact-item i { width: 14px; font-size: 12px; color: var(--sub); }
.footer-social-row { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ghost);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.footer-social-link:hover { background: var(--text); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--sub);
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 10px;
  width: max-content;
  max-width: min(420px, 90vw);
}
.toast {
  display: flex;
  align-items: center;
  background: rgba(22, 22, 23, 0.92);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
@keyframes toastFadeOut { to { opacity: 0; transform: translateY(4px); } }

/* ---------- Entrance + scroll reveal ---------- */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-a { animation: heroRise 0.7s ease both; }
.hero-copy > .hero-a:nth-child(1) { animation-delay: 0.02s; }
.hero-copy > .hero-a:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > .hero-a:nth-child(3) { animation-delay: 0.18s; }
.hero-copy > .hero-a:nth-child(4) { animation-delay: 0.26s; }
.hero-product.hero-a { animation-delay: 0.34s; }

/* Section choreography — each section's pieces rise in staggered
   steps as the section scrolls into view and reverse out as you scroll
   back up (transform/opacity only). The `is-in` state on the wrapper
   drives both directions: hidden items sit at a directional offset
   plus opacity 0 and transition to rest on reveal; scrolling back
   drops them back out. Content is visible by default and full opacity
   by default; the `js` class on <html> arms the choreography so a
   no-JS page shows everything immediately. Hover lifts on interactive
   items get a higher-specificity rule so they stay live once revealed. */
.fx-item { opacity: 1; transform: none; }
.js .fx .fx-item {
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.js .fx:not(.is-in) .fx-item {
  opacity: 0;
  transform: translateY(20px);
}
.js .fx:not(.is-in) .fx-item.from-l { transform: translateX(-36px); }
.js .fx:not(.is-in) .fx-item.from-r { transform: translateX(36px); }
.js .fx.is-in .fx-item {
  opacity: 1;
  transform: none;
}
.js .fx.is-in .live-card:hover { transform: translateY(-5px); }
.js .fx.is-in .contact-social-link:hover { transform: translateY(-2px); }

/* Pinned scrollytelling — a section stretches into a scroll runway;
   the panel sticks to the viewport and its pieces arrive one by one,
   driven by how far through the runway you have scrolled. Removing the
   `on` state (scrolling back up) reverses the sequence. */
.js .pin-spacer { height: 200vh; }
.js .pin-panel {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.js .pin-panel .container {
  width: min(1024px, 100% - 2 * clamp(20px, 4vw, 48px));
  margin-inline: auto;
  padding: 64px 0 40px;
}
.js .pin-panel .card-rv {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .pin-panel .card-rv.from-l { transform: translateX(-44px); }
.js .pin-panel .card-rv.from-r { transform: translateX(44px); }
.js .pin-panel .card-rv.from-b { transform: translateY(28px); }
.js .pin-panel .card-rv.on { opacity: 1; transform: none; }
.js .pin-panel .live-card.on:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10); }
.js .pin-spacer.flat { height: auto; }
.js .pin-panel.flat { position: static; height: auto; display: block; overflow: visible; }
.js .pin-panel.flat .card-rv { opacity: 1; transform: none; transition: none; }

.pin-cue {
  position: absolute; bottom: clamp(18px, 4vh, 34px); left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--sub);
  pointer-events: none;
}
.pin-cue i { display: inline-block; vertical-align: -2px; margin-left: 6px; }

@media (max-width: 700px) {
  .js .pin-spacer { height: 190vh; }
  .js .pin-panel .container { padding: 52px 0 20px; }
  .js .pin-panel .sec-head { margin-bottom: 12px; }
  .js .pin-panel .sec-title { font-size: 28px; }
  .js .pin-panel .sec-sub { font-size: 15px; margin-top: 8px; }
  .js .pin-panel .stock-grid { gap: 12px; }
  .js .pin-panel .live-card { padding-bottom: 10px; }
  .js .pin-panel .lc-media { height: 84px; }
  .js .pin-panel .lc-cat { margin-top: 8px; }
  .js .pin-panel .lc-title { font-size: 14px; margin-top: 2px; }
  .js .pin-panel .lc-price { font-size: 13px; margin-top: 4px; }
  .js .pin-panel .sec-more { margin-top: 10px; }
  .pin-cue { display: none; }
}

/* Freshly injected live cards join the pinned runway via .card-rv */

/* Hero object parallax — the vault lags slightly behind the copy */
.plate-scene { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hat-bar { grid-template-columns: 1fr auto; }
  .hat-actions { grid-column: 2; }
  .hat-burger { display: grid; place-items: center; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: stretch;
    justify-self: auto;
    gap: 0;
    background: #fbfbfd;
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.16);
    padding: 72px 32px 32px;
    transform: translateX(105%);
    transition: transform 0.35s ease;
    z-index: 70;
  }
  .nav-links.open { transform: none; }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a {
    display: block;
    padding: 16px 4px;
    color: var(--text);
    font-size: 17px; font-weight: 500;
    text-decoration: none;
  }
  .nav-links a:hover, .nav-links a.nav-active {
    color: var(--text);
    text-decoration: none;
  }

  .stock-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .hero-title { font-size: clamp(40px, 11vw, 56px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-a { animation: none; }
  .js .fx .fx-item { animation: none !important; opacity: 1 !important; transform: none !important; }
  .js .pin-spacer { height: auto !important; }
  .js .pin-panel { position: static !important; height: auto !important; display: block; overflow: visible; }
  .js .pin-panel .card-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pin-cue { display: none; }
  .plate-scene, .live-card, .btn, .contact-social-link, .footer-social-link,
  .nav-links, .hat-line, .lc-media img { transition: none; }
}