/* Polymio — static site styles. No external dependencies. */

:root {
  --bg: #fcfbf8;
  --surface: #f5f1eb;
  --surface-warm: #fbe7dd;
  --ink: #1f1a19;
  --ink-soft: #5d5350;
  --burgundy: #50262a;
  --burgundy-deep: #3a1b1e;
  --salmon: #f4c0a8;
  --line: rgba(80, 38, 42, 0.14);
  --line-strong: rgba(80, 38, 42, 0.28);
  --on-burgundy: #fcfbf8;

  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --editorial: ui-serif, Georgia, serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --wrap-wide: 1440px;
  --gutter: clamp(20px, 5vw, 56px);
  --space-section: clamp(88px, 13vw, 180px);
  --header-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reserve real scroll distance behind the pinned, naturally sized film section. */
[data-film-track] { display: flow-root; overflow-anchor: none; }
[data-film-track].is-scroll-film::after {
  content: "";
  display: block;
  height: var(--film-travel, clamp(550px, 90svh, 1000px));
  pointer-events: none;
}
[data-film-track].is-scroll-film > [data-film-pin] {
  position: sticky;
  top: var(--film-pin-top, var(--header-h));
}
.film-surface { touch-action: pan-y pinch-zoom; }

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

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

@media (prefers-reduced-motion: no-preference) {
  html.smooth-links {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

video:not([controls])::-webkit-media-controls {
  display: none;
}
video:not([controls])::-webkit-media-controls-start-playback-button {
  display: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Missing media (e.g. before /media/ is installed): keep layout, show alt text. */
img[data-missing] {
  width: 100%;
  aspect-ratio: 16 / 10;
  color: var(--ink-soft);
  font-size: 14px;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[class],
ol[class],
.local-nav ul,
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: var(--burgundy);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--on-burgundy);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--wide {
  max-width: calc(var(--wrap-wide) + var(--gutter) * 2);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 251, 248, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 0;
}

.brand img {
  height: 30px;
  width: auto;
}

.brand img[data-missing] {
  aspect-ratio: auto;
  width: auto;
  background: none;
  color: var(--burgundy);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
}

.nav a {
  display: inline-block;
  padding: 8px 0;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.005em;
  text-decoration: none;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--salmon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a.shop-link { padding: 7px 17px; border-radius: 999px; color: #fcfbf8; background: #50262a; }
.nav a.shop-link:hover { background: #381c20; }
.nav a.shop-link::after { display: none; }
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--burgundy);
  font-weight: 600;
}

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

.eyebrow {
  color: var(--burgundy);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}

.display {
  color: var(--ink);
  font-size: clamp(46px, 7.2vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.headline {
  color: var(--ink);
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.title {
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.42;
  letter-spacing: -0.012em;
  max-width: 34em;
}

.body {
  color: var(--ink-soft);
  max-width: 36em;
}

.body + .body {
  margin-top: 1em;
}

.hl {
  color: var(--burgundy);
  background: linear-gradient(
    to top,
    transparent 0.06em,
    var(--salmon) 0.06em,
    var(--salmon) 0.34em,
    transparent 0.34em
  );
  padding-inline: 0.04em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.note {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Links & actions ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--on-burgundy);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.button:hover {
  background: var(--burgundy-deep);
}

.button:active {
  transform: scale(0.98);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--burgundy);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.more::after {
  content: "\2192";
  transition: transform 0.25s var(--ease);
}

.more:hover {
  text-decoration: underline;
}

.more:hover::after {
  transform: translateX(3px);
}

.section-links {
  margin-top: 28px;
}

/* Opening product image retains its entire CAD frame at either breakpoint. */
.launch {
  display: grid;
  isolation: isolate;
  background: #061417;
  color: #fcfbf8;
}
.launch picture,
.launch__copy { grid-area: 1 / 1; }
.launch picture { align-self: center; z-index: -1; }
.launch img { width: 100%; height: auto; }
.launch__copy {
  align-self: center;
  width: 46%;
  max-width: 56rem;
  padding: clamp(30px, 4vw, 76px) 0 clamp(30px, 4vw, 76px) max(5.5vw, calc((100vw - 1510px) / 2));
}
.launch h1 {
  font-size: clamp(54px, 6.8vw, 112px);
  font-weight: 560;
  line-height: .96;
  letter-spacing: -.066em;
  margin: 0;
}
.launch .eyebrow,
.purchase-section .eyebrow { color: #f4c0a8; }
.launch__intro {
  margin: clamp(16px, 2vw, 30px) 0 0;
  max-width: 24em;
  color: #f1f3f1;
  font-size: clamp(15px, 1.33vw, 21px);
  line-height: 1.46;
}
.launch .actions { gap: 12px 22px; margin-top: clamp(17px, 2vw, 34px); }
.launch .button { background: #f4c0a8; color: #381c20; gap: 12px; }
.launch .button:hover { background: #ffdbca; }
.launch .more { color: #fcfbf8; font-size: 15px; }
.launch :focus-visible { outline-color: white; }
.summary-band { border-bottom: 1px solid var(--line); }
.summary-band__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: clamp(20px, 3vw, 42px);
}
.summary-band p { display: grid; gap: 4px; padding-left: 12%; border-left: 1px solid var(--line-strong); }
.summary-band p:first-child { padding-left: 0; border: 0; }
.summary-band strong { font-size: clamp(19px, 2vw, 30px); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; }
.summary-band span { color: var(--ink-soft); font-size: clamp(12px, 1vw, 15px); }
.purchase-section { border-top: 1px solid var(--line); padding-block: clamp(55px, 6vw, 100px); }
.purchase-section__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.purchase-section .headline { color: var(--ink); }
.purchase-section .eyebrow { color: var(--burgundy); }
.purchase-section .body { color: var(--ink-soft); }
.purchase-section .body { margin-top: 16px; max-width: 38em; }
@media (max-width: 760px) {
  .launch { display: flex; flex-direction: column; background: #050708; }
  .launch__copy { width: 100%; max-width: none; padding: 42px var(--gutter) 4px; }
  .launch picture { width: 100%; z-index: auto; background: #000; }
  .launch h1 { font-size: clamp(56px, 12vw, 82px); }
  .launch__intro { max-width: 33em; }
  .summary-band p { padding-left: 8px; padding-right: 6px; }
  .summary-band__inner { padding-block: 20px; }
}

/* Left-aligned page hero (product detail, people) */
.page-hero {
  padding-top: clamp(44px, 6.5vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-hero .lede {
  margin-top: 24px;
}

.status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 44em;
  color: var(--ink-soft);
  font-size: 15px;
}

.status strong {
  color: var(--burgundy);
  font-weight: 600;
}

/* ---------- Local nav (product page) ---------- */

.local-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.local-nav ul {
  display: flex;
  gap: 4px 28px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 4px;
}

.local-nav ul::-webkit-scrollbar {
  display: none;
}

.local-nav a {
  display: inline-block;
  padding: 12px 0;
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.local-nav a:hover {
  color: var(--burgundy);
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space-section);
}

.section--tight-top {
  padding-top: clamp(48px, 7vw, 96px);
}

.section--warm {
  background: var(--surface-warm);
}

.section--surface {
  background: var(--surface);
}

.section-head {
  max-width: 820px;
}

.section-head .lede {
  margin-top: 20px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .lede {
  margin-inline: auto;
}

/* Editorial split: text + full render, alternating */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}

.split + .split {
  margin-top: var(--space-section);
}

.split__media img {
  width: 100%;
}

.split__media figcaption {
  margin-top: 12px;
}

.split__text .body {
  margin-top: 20px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 6vw, 96px);
  }

  .split--reverse {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split--reverse .split__media {
    order: 2;
  }
}

/* Full-width editorial image with text below */

.feature-wide__media {
  margin-top: clamp(40px, 6vw, 72px);
}

.feature-wide__media img {
  width: 100%;
}

.feature-wide__media figcaption {
  margin-top: 12px;
}

/* ---------- Concepts ---------- */

.concepts {
  display: grid;
  gap: 48px;
  margin-top: clamp(48px, 7vw, 88px);
}

.concept {
  padding-top: 24px;
  border-top: 2px solid var(--burgundy);
}


.concept .body {
  margin-top: 12px;
}

@media (min-width: 820px) {
  .concepts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 56px);
  }
}

.pair {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  margin-top: clamp(56px, 8vw, 104px);
}

.pair img {
  width: 100%;
}

.pair figcaption {
  margin-top: 14px;
}

@media (min-width: 760px) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Figures in numbers ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  margin-top: clamp(48px, 7vw, 88px);
}

.figures div {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.figures dt {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 8px;
}

.figures dd {
  order: -1;
  color: var(--burgundy);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.figures dd small {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-left: 0.12em;
}

.figures div {
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .figures {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Terminals list ---------- */

.terminals {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.terminals li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
}

.terminals .terminals__name {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.terminals .terminals__count {
  color: var(--burgundy);
  font-family: var(--mono);
  font-size: 15px;
}

/* ---------- Holders ---------- */

.holders {
  display: grid;
  gap: 32px;
  margin-top: clamp(40px, 6vw, 64px);
}

.holders li {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.holders .body {
  margin-top: 8px;
}

@media (min-width: 820px) {
  .holders {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* ---------- Gallery ---------- */

.gallery {
  margin-top: clamp(32px, 5vw, 56px);
}

.gallery__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  margin: 0 -4px 28px;
  scroll-snap-type: x proximity;
}

.gallery__tabs::-webkit-scrollbar {
  display: none;
}

.gallery__tab {
  flex: none;
  scroll-snap-align: start;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.gallery__tab:hover {
  border-color: var(--burgundy);
}

.gallery__tab[aria-selected="true"] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--on-burgundy);
}

.gallery__panel img {
  width: 100%;
}

.gallery__panel figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 14px;
}

.gallery__panel figcaption span:first-child {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

/* Without JavaScript every panel is listed in sequence. */
.gallery__panel + .gallery__panel {
  margin-top: 48px;
}

.gallery.is-enhanced .gallery__panel + .gallery__panel {
  margin-top: 0;
}

.gallery:not(.is-enhanced) .gallery__tabs {
  display: none;
}

.gallery__panel.is-entering img {
  animation: panel-in 0.5s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.gallery__step {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--burgundy);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.gallery__step:hover {
  border-color: var(--burgundy);
}

.gallery__position {
  margin-right: auto;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 13px;
}

.gallery:not(.is-enhanced) .gallery__controls {
  display: none;
}

/* ---------- Specifications ---------- */

.specs {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 2px solid var(--burgundy);
}

.specs div {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
}

.specs dt {
  color: var(--burgundy);
  font-size: 15px;
  font-weight: 600;
}

.specs dd {
  color: var(--ink);
  font-size: 17px;
}

.specs dd ul {
  margin: 0;
  padding-left: 1.1em;
}

@media (min-width: 760px) {
  .specs div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 32px;
  }
}

.specs-note {
  margin-top: 24px;
  max-width: 48em;
}

/* ---------- People ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
  margin-top: clamp(32px, 5vw, 56px);
}

.people--lead {
  grid-template-columns: minmax(0, 1fr);
}

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--surface);
}

.person figcaption,
.person .person__name {
  margin-top: 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.people--lead .person__name {
  font-size: clamp(19px, 2vw, 22px);
}

@media (min-width: 560px) {
  .people--lead {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .people {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .people--lead {
    gap: 40px;
  }
}

.people-group + .people-group {
  margin-top: var(--space-section);
}

.people-group .people {
  max-width: 900px;
}

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

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.site-footer__brand img {
  width: 32px;
  height: 32px;
}

.site-footer__brand img[data-missing] {
  aspect-ratio: auto;
  background: var(--surface);
  font-size: 0;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

.site-footer__note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 60em;
}

/* ---------- Reveal on scroll (only applied by site.js to off-screen content) ---------- */

.reveal-pending {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
  }

  .gallery__panel.is-entering img {
    animation: none;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .brand img {
    height: 24px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 13px;
  }

  .status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .site-header__inner { padding-inline: 14px; gap: 8px; }
  .nav { gap: 12px; }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav a.shop-link { min-height: 36px; padding: 5px 12px; }
}
