/* ============================================================
   BOSA Tennis — new-ui
   Design language: Scandinavian minimalism (Polestar-inspired)
   Light ground, hairlines, sentence-case display type,
   restrained orange accent.
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f4f4f2;
  --surface-2: #ebebe8;
  --ink: #101010;
  --ink-2: #545454;
  --ink-3: #8f8f8f;
  --line: #d8d8d5;
  --line-soft: #e7e7e4;
  --orange: #f68a1f;
  --white: #ffffff;
  --font: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1520px;
  --header-h: 4.5rem;
  --subnav-h: 3.25rem;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flow-root; /* keeps .subnav's header offset from collapsing out */
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--ink); color: var(--white); }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.display-1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
}

.display-2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.display-3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
}

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 42em;
}

.body-dim { color: var(--ink-2); }
.small { font-size: 0.875rem; }

.code {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange);
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section.flush-top { padding-top: 0; }
.section.surface { background: var(--surface); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 46em; }
.section-head p { margin-top: 1.1rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.split.start { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.hairline-top { border-top: 1px solid var(--line); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.78em 1.9em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #333333; }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-light:hover { background: var(--white); color: var(--ink); }

.btn-solid-light { background: var(--white); color: var(--ink); }
.btn-solid-light:hover { background: rgba(255, 255, 255, 0.85); }

.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: #e07812; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.text-link::after { content: "→"; font-size: 0.95em; transition: transform 0.25s var(--ease); }
.text-link:hover { border-color: var(--ink); }
.text-link:hover::after { transform: translateX(4px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--white);
}

.site-header.menu-open { background: var(--white); border-bottom-color: var(--line-soft); }
/* The menu panel paints above the header's own background, so the bar itself
   needs an opaque layer to keep scrolled menu items from showing behind the logo. */
.site-header.menu-open .header-inner { background: var(--white); }

.header-inner {
  position: relative;
  z-index: 2; /* stays above the full-height mobile menu panel */
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.logo { display: block; flex: 0 0 auto; }
.logo-image {
  display: block;
  width: clamp(8.5rem, 11vw, 9.75rem);
  height: auto;
}
.logo-image-light { display: none; }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .logo-image-default { display: none; }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .logo-image-light {
  display: block;
  filter: invert(1) brightness(2);
}

.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav > li { position: relative; }
.main-nav a {
  font-size: 0.8425rem;
  font-weight: 500;
  opacity: 0.82;
  transition: opacity 0.2s var(--ease);
  padding-block: 0.4rem;
}
.main-nav a:hover { opacity: 1; }
.main-nav a.active { opacity: 1; }

/* Collections dropdown */
.has-drop > a::after { content: ""; display: inline-block; margin-left: 0.6em; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.6; }
.drop {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: -1.25rem;
  min-width: 15rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: block; padding: 0.55rem 1.25rem; font-size: 0.8425rem; opacity: 0.8; }
.drop a:hover { opacity: 1; background: var(--surface); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.header-actions .btn { padding: 0.62em 1.4em; font-size: 0.8125rem; }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .btn-outline { border-color: var(--white); color: var(--white); }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .btn-outline:hover { background: var(--white); color: var(--ink); }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .btn-primary { background: var(--white); color: var(--ink); }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .btn-primary:hover { background: rgba(255, 255, 255, 0.85); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.62em 1.1em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang-toggle .cur { color: var(--ink); transition: color 0.25s var(--ease); }
.lang-toggle:hover { background: var(--ink); color: rgba(255, 255, 255, 0.7); }
.lang-toggle:hover .cur { color: var(--white); }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .lang-toggle { border-color: var(--white); color: rgba(255, 255, 255, 0.7); }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .lang-toggle .cur { color: var(--white); }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .lang-toggle:hover { background: var(--white); color: var(--ink-2); }
body[data-hero="dark"] .site-header:not(.is-scrolled):not(.menu-open) .lang-toggle:hover .cur { color: var(--ink); }

.m-lang-toggle {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.m-lang-toggle button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.5em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.m-lang-toggle button.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* Hamburger */
.nav-toggle { display: none; width: 2.25rem; height: 2.25rem; position: relative; }
.nav-toggle span {
  position: absolute; left: 0.35rem; right: 0.35rem; height: 1.5px;
  background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 0.85rem; }
.nav-toggle span:nth-child(2) { top: 1.35rem; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  height: 100%;
  height: 100dvh;
  background: var(--white);
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex-direction: column;
  padding: calc(var(--header-h) + clamp(1.5rem, 4vh, 2.5rem)) var(--pad) 2.5rem;
}
.menu-open .mobile-menu { display: flex; }
.mobile-menu a { display: block; padding: 0.9rem 0; font-size: 1.35rem; font-weight: 400; border-bottom: 1px solid var(--line-soft); }
.mobile-menu a.active { color: var(--orange); }
.mobile-menu .sub a { font-size: 1rem; color: var(--ink-2); padding: 0.7rem 0 0.7rem 1.25rem; }
.mobile-menu .m-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; padding-top: 2.5rem; }
.mobile-menu .m-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9em 1.5em;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.mobile-menu .m-actions .btn-outline { border-color: var(--ink); }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 480px) {
  .header-actions { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  animation: heroZoom 22s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
/* keep the slow opening zoom while imagery is still a placeholder */
.hero .hero-media.ph-dark {
  transform-origin: center center;
  animation: heroZoom 22s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.22) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.hero-content .eyebrow { color: rgba(255, 255, 255, 0.75); }
.hero-content .lead { color: rgba(255, 255, 255, 0.85); margin-top: 1.2rem; }

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 2.6rem;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.scroll-hint::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--white);
  animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* Page hero (interior pages) */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vh, 7rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.page-hero .lead { margin-top: 1.4rem; }

/* ---------- Stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 2rem) 0 0;
  border-top: 2px solid transparent;
  margin-top: -1px;
}
.stat .num {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat .lbl { margin-top: 0.7rem; font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; } }

/* ---------- Cards ---------- */

.grid { display: grid; gap: clamp(0.75rem, 1.2vw, 1.25rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.card:hover { background: var(--surface-2); }

.card-head { padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem) 0.5rem; }
.card-head h3 { font-size: 1.15rem; font-weight: 500; margin-top: 0.45rem; }
.card-head .meta { font-size: 0.8125rem; color: var(--ink-2); margin-top: 0.3rem; }

.card .media { margin-top: auto; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .media img { transform: scale(1.03); }

.card-foot { padding: 0.9rem clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 2vw, 1.75rem); }

/* Media ratios */
.media { overflow: hidden; background: var(--surface); }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-219 { aspect-ratio: 21 / 9; }
.media > img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder for imagery not yet supplied */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 10px,
      rgba(0, 0, 0, 0.022) 10px 20px
    ),
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-soft);
}
.ph span {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
  padding: 1rem;
}
.card:hover .ph, .learn-card:hover .ph { border-color: var(--line); }

/* Dark placeholder for full-bleed media that carries white overlay copy */
.ph-dark {
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.028) 14px 28px
    ),
    linear-gradient(135deg, #23262b 0%, #3c4047 55%, #2a2d33 100%);
}

/* ---------- Feature / principle rows ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.feature { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.feature .no {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.15rem; font-weight: 500; }
.feature p { margin-top: 0.7rem; font-size: 0.9375rem; color: var(--ink-2); }

/* Steps (4-up process) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.step .no { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; font-weight: 500; }
.step p { margin-top: 0.7rem; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Full-bleed editorial band ---------- */

.band {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.band .band-media { position: absolute; inset: 0; }
.band .band-media img { width: 100%; height: 100%; object-fit: cover; }
.band .band-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.band-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 12vw, 10rem);
}
.band .lead { color: rgba(255, 255, 255, 0.85); }
.band .eyebrow { color: rgba(255, 255, 255, 0.7); }

/* Announcement band (trade show) */
.announce {
  background: var(--ink);
  color: var(--white);
}
.announce-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.announce .date { color: var(--orange); }
.announce p { color: rgba(255, 255, 255, 0.7); margin-top: 0.5rem; max-width: 34em; }

/* ---------- Dark CTA section ---------- */

.cta-dark {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding-block: clamp(5rem, 10vw, 9rem);
}
.cta-dark p { color: rgba(255, 255, 255, 0.7); margin-top: 1.2rem; max-width: 36em; margin-inline: auto; }
.cta-dark .actions { justify-content: center; }

/* ---------- Spec table ---------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table tr { border-top: 1px solid var(--line-soft); }
.spec-table tr:last-child { border-bottom: 1px solid var(--line-soft); }
.spec-table th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  padding: 0.85rem 1.5rem 0.85rem 0;
  white-space: nowrap;
  vertical-align: top;
  width: 34%;
}
.spec-table td { padding: 0.85rem 0; color: var(--ink); }

/* Multi-column data table (size charts) */
.table-scroll { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  min-width: 40rem;
}
.data-table th, .data-table td { text-align: left; padding: 0.8rem 1.25rem 0.8rem 0; white-space: nowrap; }
.data-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.9rem;
}
.data-table tbody tr { border-bottom: 1px solid var(--line-soft); }
.data-table tbody th { font-weight: 500; color: var(--ink); }
.data-table tbody td { color: var(--ink-2); }
.data-table tbody tr:hover { background: var(--surface); }

/* ---------- Product gallery ---------- */

.gallery-main { border-radius: var(--radius); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.6rem; }
.thumb { opacity: 0.55; transition: opacity 0.2s var(--ease); border: 1px solid transparent; padding: 0; }
.thumb.is-active, .thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--ink); }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.5rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.f-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }

.form-note { font-size: 0.875rem; color: var(--ink-2); }
.form-success {
  border-top: 2px solid var(--orange);
  padding-top: 1.25rem;
  font-size: 0.9375rem;
}

/* Contact list */
.contact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-list .k { color: var(--ink-3); font-weight: 500; }
.contact-list a { border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.contact-list a:hover { border-color: var(--ink); }

.map-embed { margin-top: 2rem; aspect-ratio: 4 / 3; background: var(--surface); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { width: min(11rem, 100%); height: auto; }
.footer-brand .tag { font-size: 0.8125rem; color: var(--ink-2); margin-top: 1rem; max-width: 22em; }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-2);
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--ink); }

.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ============================================================
   Deep-dive page components
   (section architecture of a Polestar model feature page)
   ============================================================ */

/* Sticky sub-navigation: breadcrumb + section tabs */
.subnav {
  position: sticky;
  top: var(--header-h);
  margin-top: var(--header-h);
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.subnav-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: var(--subnav-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.crumb { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }
.crumb a { transition: color 0.2s var(--ease); }
.crumb a:hover { color: var(--ink); }
.crumb b { font-weight: 500; color: var(--ink); }

.subnav-tabs {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tabs a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  padding-block: 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.subnav-tabs a:hover { color: var(--ink); }
.subnav-tabs a.active { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 860px) {
  .crumb { display: none; }
  .subnav-tabs { margin-left: 0; }
}

/* The sub-nav already clears the fixed header, so a page hero below it
   only needs its own breathing room. */
.subnav + .page-hero { padding-top: clamp(2.5rem, 7vw, 5rem); }

/* Feature hero — full-bleed media, centered overlay copy */
.hero-doc {
  position: relative;
  min-height: clamp(26rem, 68vh, 44rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-doc .hero-media::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.55));
}
.hero-doc-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  padding-inline: var(--pad);
}
.hero-doc-inner .eyebrow { color: rgba(255, 255, 255, 0.75); }
.hero-doc-inner p {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* Stacked block — full-width media, left-aligned copy beneath */
.stack { display: grid; gap: clamp(3rem, 7vw, 6.5rem); }
.stack-copy { max-width: 44em; margin-top: clamp(1.4rem, 3vw, 2.4rem); }
.stack-copy h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.stack-copy p { margin-top: 0.9rem; color: var(--ink-2); }
.stack-copy .text-link { margin-top: 1.2rem; }

/* Feature blocks — media, name, copy, availability note */
.feature-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.2rem, 4vw, 3.5rem) clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 1080px) { .feature-blocks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-blocks { grid-template-columns: 1fr; } }
.fb .media { margin-bottom: 1.3rem; }
.fb h3 { font-size: 1.05rem; font-weight: 600; }
.fb p { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--ink-2); }
.fb .note {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Figures — side-by-side spec comparison, oversized numerals */
.figures {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}
@media (max-width: 760px) { .figures { grid-template-columns: 1fr; gap: 3rem; } }
.fig-col > h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--ink);
}
.fig-col > h3 .tag {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-3);
}
.fig-row { padding: clamp(1.3rem, 2.2vw, 1.9rem) 0; border-bottom: 1px solid var(--line-soft); }
.fig-row .val {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}
.fig-row .val .unit {
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.4em;
  color: var(--ink-2);
}
.fig-row .cap { margin-top: 0.7rem; font-size: 0.8125rem; color: var(--ink-3); }

/* Learn more — closing card row */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
}
@media (max-width: 860px) { .learn-grid { grid-template-columns: 1fr; } }
.learn-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.learn-card:hover { background: var(--surface-2); }
.learn-card .media img { transition: transform 0.6s var(--ease); }
.learn-card:hover .media img { transform: scale(1.03); }
.learn-body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.learn-body h3 { font-size: 1.05rem; font-weight: 500; }
.learn-body .arrow { font-size: 1.15rem; transition: transform 0.25s var(--ease); }
.learn-card:hover .arrow { transform: translateX(4px); }

/* Centered variant of the full-bleed statement band */
.band-copy { max-width: 34em; }
.band.center { text-align: center; }
.band.center .band-copy { max-width: 42em; margin-inline: auto; }
.band.center .lead { margin-inline: auto; }
.band.center .actions { justify-content: center; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { display: none; }
  .hero-media img { animation: none; }
}
