/* Safira Eyewear — global stylesheet */

:root {
  --c-ink: #161514;
  --c-paper: #ffffff;
  --c-shell: #f5f1ea;
  --c-tortoise: #8b4513;
  --c-steel: #5a5652;
  --c-gilt: #d9a441;

  --f-display: "Bodoni 72", Didot, "Bodoni MT", "Libre Bodoni", Georgia, "Times New Roman", serif;
  --f-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-band: 36px;
  --header-bar: 80px;
  --radius: 4px;
  --hairline: 1px solid var(--c-steel);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-ink: #f1ece4;
    --c-paper: #121110;
    --c-shell: #1e1c1a;
    --c-tortoise: #e0a96d;
    --c-steel: #b5aea5;
    --c-gilt: #d9a441;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Keeps anchor targets clear of the sticky navigation bar */
  scroll-padding-top: calc(var(--header-bar) + 16px);
}

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

body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-paper);
}

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

a {
  color: var(--c-tortoise);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  margin: 0 0 16px;
  font-family: var(--f-display);
  font-weight: normal;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: 34px;
  font-size: clamp(34px, 3vw + 18px, 56px);
}

h2 {
  font-size: 28px;
  font-size: clamp(28px, 2vw + 16px, 40px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--c-tortoise);
  outline-offset: 3px;
}

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

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: bold;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* ---------- Header ---------- */
/* display: contents lets div.wrap use <body> as its sticky containing block,
   so it stays pinned for the whole page instead of only inside the header box. */
.header {
  display: contents;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-band);
  padding: 0 24px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-shell);
  font-size: 14px;
}

.top:focus {
  outline: none;
}

.band-note {
  margin: 0;
  color: var(--c-steel);
}

.lang-hinge {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-hinge li + li::before {
  content: "|";
  content: "|" / "";
  margin: 0 8px;
  color: var(--c-steel);
}

.lang-hinge a,
.lang-hinge span {
  display: inline-block;
  padding: 4px 2px;
  color: var(--c-steel);
}

.lang-hinge a[aria-current] {
  color: var(--c-ink);
  font-weight: bold;
}

.wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-bar);
  padding: 12px 24px;
  padding: 12px max(24px, calc((100% - 1200px) / 2));
  background: var(--c-paper);
  border-bottom: var(--hairline);
  border-bottom-color: color-mix(in srgb, var(--c-steel) 30%, transparent);
}

.logo,
.foot-logo {
  display: inline-flex;
  flex-shrink: 0;
}

.logo img,
.foot-logo img {
  width: 220px;
  height: auto;
  object-fit: contain;
}

.temple-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  cursor: pointer;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--c-ink);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.menu a:hover {
  color: var(--c-tortoise);
}

.menu a[aria-current] {
  border-bottom-color: var(--c-tortoise);
  color: var(--c-tortoise);
}

@media (max-width: 900px) {
  .menu {
    flex-basis: 100%;
  }

  .lens-js .temple-toggle {
    display: inline-flex;
  }

  .lens-js .menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 8px 24px 24px;
    background: var(--c-paper);
    border-bottom: var(--hairline);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
  }

  .lens-js .menu:not(.is-open) {
    display: none;
  }

  .lens-js .menu ul {
    flex-direction: column;
    gap: 0;
  }

  .lens-js .menu a {
    width: 100%;
    border-bottom: 1px solid var(--c-shell);
  }

  .lens-js .menu a[aria-current] {
    border-bottom-color: var(--c-tortoise);
  }
}

@media (max-width: 560px) {
  .band-note {
    display: none;
  }

  .top {
    justify-content: flex-end;
  }
}

/* ---------- Buttons ---------- */
.temple-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.temple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--c-tortoise);
  border-radius: var(--radius);
  background: var(--c-tortoise);
  color: var(--c-paper);
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.temple-btn:hover {
  background: transparent;
  color: var(--c-tortoise);
}

.temple-btn--hollow {
  background: transparent;
  color: var(--c-tortoise);
}

.temple-btn--hollow:hover {
  background: var(--c-tortoise);
  color: var(--c-paper);
}

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  /* Header band (36px) + nav bar (80px) + borders: header and hero stay within one viewport */
  height: 587px;
  max-height: calc(100vh - 118px);
  max-height: calc(100svh - 118px);
  min-height: 360px;
  background: #161514;
  color: #fff;
}

.hero > img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  /* Half of the previous open: model readable, not washed out */
  filter: brightness(1.09) contrast(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  /* Text side only; model side stays relatively open */
  background: linear-gradient(90deg, rgba(12, 11, 10, 0.64) 0%, rgba(12, 11, 10, 0.3) 40%, rgba(12, 11, 10, 0.07) 68%, rgba(12, 11, 10, 0.02) 100%);
}

.hero .lens-copy {
  width: calc(100% - 48px);
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0;
}

.hero .lens-copy > * {
  max-width: 620px;
}

.hero h1 {
  color: #fff;
}

.hero p {
  font-size: 18px;
  margin-bottom: 24px;
}

.hero .lens-eyebrow {
  color: var(--c-gilt);
}

.hero :focus-visible {
  outline-color: #fff;
}

.hero .temple-btn--hollow {
  border-color: #fff;
  color: #fff;
}

.hero .temple-btn--hollow:hover {
  background: #fff;
  color: #161514;
}

@media (max-width: 800px) {
  .hero > img {
    /* Keep the face in frame (not clipped on the right), similar to the mobile reference */
    object-position: 78% 18%;
    filter: brightness(1.14) contrast(1.05);
  }

  .hero::before {
    /* Soft veil: face stays visible, white copy remains readable */
    background: linear-gradient(180deg, rgba(12, 11, 10, 0.34) 0%, rgba(12, 11, 10, 0.46) 52%, rgba(12, 11, 10, 0.55) 100%);
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ---------- Breadcrumb & page heading ---------- */
.crumbs {
  width: calc(100% - 48px);
  width: min(1200px, calc(100% - 48px));
  margin: 24px auto 0;
  font-size: 14px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "/";
  content: "/" / "";
  margin: 0 8px;
  color: var(--c-steel);
}

.crumbs a {
  color: var(--c-steel);
}

.crumbs [aria-current] {
  color: var(--c-ink);
}

.normal-heading {
  margin: 32px auto 48px;
  padding-bottom: 24px;
  border-bottom: var(--hairline);
  border-bottom-color: color-mix(in srgb, var(--c-steel) 30%, transparent);
}

.normal-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--c-steel);
  font-size: 18px;
}

.wrapper > .normal-heading,
.wrapper > .cms-manage {
  width: calc(100% - 48px);
  max-width: 1200px;
  width: min(1200px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.cms-manage {
  padding-bottom: 72px;
}

.hero + .cms-manage {
  padding-top: 72px;
}

.cms-manage > section + section {
  margin-top: 72px;
}

/* ---------- Layout contract (aside pages) ---------- */
.container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.container aside.side {
  align-self: start;
}

.main .cms-manage {
  padding-bottom: 0;
}

@media (min-width: 801px) {
  .container aside.side {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-bar) + 24px);
    max-height: calc(100vh - var(--header-bar) - 48px);
    overflow-y: auto;
    margin-top: 32px;
  }
}

@media (max-width: 800px) {
  .container {
    display: block;
  }

  .container aside.side {
    margin-top: 32px;
  }
}

.side nav {
  padding: 24px;
  background: var(--c-shell);
  border-top: 3px solid var(--c-tortoise);
}

.side-title,
.foot-grid h2 {
  margin-bottom: 12px;
  font-family: var(--f-text);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side ul ul {
  margin: 0 0 8px 8px;
  padding-left: 12px;
  border-left: var(--hairline);
}

.side a {
  display: block;
  padding: 8px 0;
  color: var(--c-ink);
  text-decoration: none;
}

.side a:hover {
  color: var(--c-tortoise);
  text-decoration: underline;
}

.side a[aria-current] {
  color: var(--c-tortoise);
  font-weight: bold;
}

/* ---------- Shared section parts ---------- */
.lens-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--c-tortoise);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Spectacles mark drawn with gradients: two rims and a bridge, no image request */
.lens-eyebrow::before {
  content: "";
  flex: none;
  width: 34px;
  height: 14px;
  background:
    radial-gradient(circle at 7px 7px, transparent 4px, var(--c-gilt) 4.5px, var(--c-gilt) 6px, transparent 6.5px),
    radial-gradient(circle at 27px 7px, transparent 4px, var(--c-gilt) 4.5px, var(--c-gilt) 6px, transparent 6.5px),
    linear-gradient(var(--c-gilt), var(--c-gilt)) 13px 5px / 8px 2px no-repeat;
}

.bridge-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.bridge-head p:last-child {
  color: var(--c-steel);
}

.hinge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hinge-grid figure {
  margin: 0;
}

.hinge-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: auto 800 / 500;
  border-radius: var(--radius);
}

@media (max-width: 800px) {
  .hinge-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* ---------- Card racks (categories, products, services) ---------- */
.frame-rack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card .temple-row {
  margin-top: 24px;
}

.frame-tile > a,
.frame-tile > article {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: var(--hairline);
  border-color: color-mix(in srgb, var(--c-steel) 40%, transparent);
  border-radius: var(--radius);
  background: var(--c-paper);
  color: var(--c-ink);
  text-decoration: none;
}

.frame-tile > a {
  transition: border-color 0.2s ease;
}

.frame-tile > a:hover {
  border-color: var(--c-tortoise);
}

.frame-tile > a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.frame-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 820 / 580;
  object-fit: cover;
  background: var(--c-shell);
}

.frame-tile > a img {
  object-fit: contain;
  background: #fff;
}

.frame-tile h3 {
  margin: 20px 20px 8px;
  overflow-wrap: anywhere;
}

.frame-tile p {
  margin: 0 20px 20px;
  color: var(--c-steel);
}

.frame-slider {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #fff;
}

.frame-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.3s ease;
}

.frame-slider.is-dragging .frame-slider-track {
  transition: none;
}

.frame-zoom {
  flex: 0 0 100%;
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.frame-tile .frame-slider img {
  aspect-ratio: 820 / 580;
  object-fit: contain;
  background: #fff;
}

.frame-slider-prev,
.frame-slider-next,
.frame-lightbox-prev,
.frame-lightbox-next,
.frame-lightbox-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
  cursor: pointer;
}

.frame-slider-prev:focus-visible,
.frame-slider-next:focus-visible,
.frame-lightbox-prev:focus-visible,
.frame-lightbox-next:focus-visible,
.frame-lightbox-close:focus-visible {
  outline: 2px solid var(--c-tortoise);
  outline-offset: 2px;
}

.frame-slider-prev,
.frame-slider-next {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.frame-slider-prev {
  left: 8px;
}

.frame-slider-next {
  right: 8px;
}

.frame-slider--single .frame-slider-prev,
.frame-slider--single .frame-slider-next {
  display: none;
}

.frame-lightbox {
  width: fit-content;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 56px 64px 24px;
  border: 0;
  background: var(--c-paper);
  color: var(--c-ink);
}

.frame-lightbox::backdrop {
  background: rgb(18 17 16 / 72%);
}

.frame-lightbox img {
  display: block;
  width: min(820px, calc(100vw - 160px));
  height: auto;
  max-height: calc(100vh - 160px);
  aspect-ratio: 820 / 580;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
}

.frame-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.frame-lightbox-prev,
.frame-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.frame-lightbox-prev {
  left: 12px;
}

.frame-lightbox-next {
  right: 12px;
}

.frame-lightbox-prev[hidden],
.frame-lightbox-next[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .frame-slider-track {
    transition: none;
  }
}

.tile-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: auto 20px 20px;
  font-size: 14px;
}

.tile-specs dt {
  color: var(--c-steel);
}

.tile-specs dd {
  margin: 0;
}

.tile-icon {
  width: 40px;
  height: 40px;
  margin: 24px 20px 0;
  color: var(--c-tortoise);
}

.frame-tile--pending > article {
  border-style: dashed;
}

/* ---------- Stats grid ---------- */
.stats-grid {
  padding: 48px;
  background: var(--c-shell);
}

.rim-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rim-stats li {
  padding-top: 16px;
  border-top: 2px solid var(--c-gilt);
}

.rim-figure {
  display: block;
  overflow-wrap: anywhere;
  color: var(--c-tortoise);
  font-family: var(--f-display);
  font-size: 48px;
  line-height: 1.1;
}

.stats-grid .acetate-note {
  margin: 24px 0 0;
  color: var(--c-steel);
  font-size: 14px;
}

/* ---------- Icon list ---------- */
.nosepad-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nosepad-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.nosepad-list svg {
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--c-tortoise);
}

.nosepad-list h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.nosepad-list p {
  margin: 0;
  color: var(--c-steel);
}

/* ---------- Feature list ---------- */
.lens-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lens-features li {
  padding-left: 20px;
  border-left: 2px solid var(--c-gilt);
}

.lens-features p {
  margin: 0;
  color: var(--c-steel);
}

/* ---------- Rich text ---------- */
.rich-text .prose-lens {
  max-width: 760px;
}

/* ---------- Timeline ---------- */
.step-rail {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-rail > li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 48px;
  counter-increment: step;
}

.step-rail > li::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-tortoise);
  border-radius: 50%;
  background: var(--c-paper);
  color: var(--c-tortoise);
  font-family: var(--f-display);
}

.step-rail > li::after {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 0;
  left: 24px;
  width: 1px;
  background: var(--c-steel);
}

.step-rail > li:last-child {
  padding-bottom: 0;
}

.step-rail > li:last-child::after {
  display: none;
}

.step-body {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.step-body img {
  width: 100%;
  border-radius: var(--radius);
}

.step-body p {
  color: var(--c-steel);
}

@media (max-width: 700px) {
  .step-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Spec table ---------- */
.spec-scroll {
  overflow-x: auto;
}

.spec-sheet {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
}

.spec-sheet caption {
  padding-bottom: 12px;
  font-family: var(--f-display);
  font-size: 22px;
  text-align: left;
}

.spec-sheet th,
.spec-sheet td {
  padding: 12px 16px;
  border-bottom: var(--hairline);
  border-bottom-color: color-mix(in srgb, var(--c-steel) 40%, transparent);
  text-align: left;
  vertical-align: top;
}

.spec-sheet thead th {
  background: var(--c-shell);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- FAQ: answers stay visible, no collapsible panels ---------- */
.query-fold {
  max-width: 860px;
  border-top: var(--hairline);
}

.query-fold h3 {
  margin: 0;
  padding-top: 20px;
  font-family: var(--f-text);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
}

.query-fold p {
  max-width: 760px;
  margin: 8px 0 0;
  padding-bottom: 20px;
  border-bottom: var(--hairline);
  color: var(--c-steel);
}

/* ---------- Key facts (answer-first summary) ---------- */
.key-facts {
  padding: 32px;
  background: var(--c-shell);
  border-left: 4px solid var(--c-gilt);
}

.key-facts dl {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 12px 24px;
  margin: 0;
}

.key-facts dt {
  font-weight: bold;
}

.key-facts dd {
  margin: 0;
  color: var(--c-steel);
}

@media (max-width: 600px) {
  .key-facts {
    padding: 24px;
  }

  .key-facts dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .key-facts dd {
    margin-bottom: 12px;
  }
}

/* ---------- In-page index (long category pages) ---------- */
.lens-index {
  padding: 24px;
  border: var(--hairline);
  border-color: color-mix(in srgb, var(--c-steel) 40%, transparent);
  border-radius: var(--radius);
}

.lens-index ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lens-index a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--c-tortoise);
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
}

.lens-index a:hover {
  background: var(--c-tortoise);
  color: var(--c-paper);
}

/* ---------- Manufacturing stage grid ---------- */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-grid li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--hairline);
  border-color: color-mix(in srgb, var(--c-steel) 40%, transparent);
  border-radius: var(--radius);
  background: var(--c-paper);
}

.stage-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 820 / 580;
  object-fit: cover;
  background: var(--c-shell);
}

.stage-tag {
  align-self: flex-start;
  margin: 16px 20px 0;
  padding: 2px 10px;
  border: 1px solid var(--c-tortoise);
  border-radius: var(--radius);
  color: var(--c-tortoise);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.stage-grid h3 {
  margin: 12px 20px 8px;
  font-size: 20px;
}

.stage-grid p {
  margin: 0 20px 20px;
  color: var(--c-steel);
}

/* ---------- Showroom call (conversion section) ---------- */
.showroom-call {
  padding: 48px;
  background: var(--c-shell);
  border-left: 4px solid var(--c-tortoise);
}

.showroom-call p {
  max-width: 640px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .stats-grid,
  .showroom-call {
    padding: 32px 24px;
  }
}

/* ---------- Contact ---------- */
.contact .hinge-grid {
  align-items: start;
}

.contact-ledger {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-ledger dt {
  color: var(--c-steel);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-ledger dd {
  margin: 0;
}

.map-plate {
  margin: 0;
  overflow: hidden;
  border: var(--hairline);
  border-radius: var(--radius);
  background: var(--c-shell);
}

.map-plate svg,
.map-plate iframe {
  display: block;
  width: 100%;
  height: auto;
  color: var(--c-steel);
}

.map-plate iframe {
  height: 450px;
  border: 0;
}

.map-plate .map-pin {
  fill: var(--c-tortoise);
}

.map-plate figcaption {
  padding: 16px;
  border-top: var(--hairline);
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 56px;
  background: var(--c-shell);
  border-top: 3px solid var(--c-tortoise);
}

.foot-grid,
.foot-nav,
.legal {
  width: calc(100% - 48px);
  width: min(1200px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
}

.foot-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-grid li a {
  display: inline-block;
  padding: 4px 0;
}

.foot-grid a {
  color: var(--c-ink);
}

.foot-grid p {
  color: var(--c-steel);
}

.foot-logo {
  margin-bottom: 16px;
}

.foot-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: var(--hairline);
}

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  display: inline-block;
  padding: 4px 0;
  color: var(--c-ink);
  font-size: 14px;
}

.legal {
  margin-top: 16px;
  margin-bottom: 0;
  padding-bottom: 32px;
  color: var(--c-steel);
  font-size: 14px;
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Back to top ---------- */
.go-top-of-page {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.go-top-of-page a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--c-paper);
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-paper);
}

.go-top-of-page svg {
  width: 20px;
  height: 20px;
}

/* Without JavaScript the button stays visible; with it, it appears after scrolling */
.lens-js .go-top-of-page:not(.is-raised) {
  visibility: hidden;
  opacity: 0;
}

/* ---------- Dark mode logo chip (logo artwork is designed for a light ground) ---------- */
@media (prefers-color-scheme: dark) {
  .logo img,
  .foot-logo img {
    padding: 4px 8px;
    border-radius: var(--radius);
    background: #fff;
  }
}

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .menu a[aria-current],
  .side a[aria-current] {
    text-decoration: underline;
  }
}

@media print {
  .skip,
  .top,
  .wrap,
  .side,
  .foot-nav,
  .go-top-of-page,
  .hero > img,
  .hero::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    height: auto;
    max-height: none;
    min-height: 0;
    background: none;
    color: #000;
  }

  .hero h1 {
    color: #000;
  }

  .container {
    display: block;
  }

  .cms-manage > section {
    break-inside: avoid;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 12px;
  }
}
