/* ==========================================================================
   JHPU — Modular Container Architecture
   Design system: one stylesheet, no frameworks, no external requests.
   Sections: 01 tokens · 02 base · 03 layout · 04 type · 05 buttons · 06 header
             07 hero · 08 sections · 09 cards · 10 gallery · 11 detail/SKU
             12 process · 13 forms · 14 footer · 15 motion · 16 responsive
   ========================================================================== */

/* 01 — TOKENS ------------------------------------------------------------- */
:root {
  --paper: #f7f5f0;
  --paper-2: #efede6;
  --sand: #e8e4d9;
  --ink: #121210;
  --ink-2: #2c2c28;
  --muted: #6f6d64;
  --line: #dcd8cc;
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #c2441d;
  --accent-ink: #a53a18;
  --dark: #14140f;
  --white: #fff;

  --font-sans: "Helvetica Neue", "Inter", "Segoe UI", -apple-system,
    BlinkMacSystemFont, Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;

  --fs-display: clamp(2.9rem, 7.4vw, 7.2rem);
  --fs-h1: clamp(2.4rem, 5.2vw, 4.6rem);
  --fs-h2: clamp(1.85rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.7vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;

  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 7rem;
  --sp-8: 10rem;

  --pad-x: clamp(1.25rem, 4.4vw, 4rem);
  --maxw: 1440px;
  --radius: 2px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* 02 — BASE --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
@supports (overflow-x: clip) {
  html {
    overflow-x: clip;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}
body.is-locked {
  overflow: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-small);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* 03 — LAYOUT ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow {
  max-width: 980px;
}
.section {
  padding-block: clamp(4rem, 8vw, var(--sp-7));
}
.section--tight {
  padding-block: clamp(3rem, 5vw, var(--sp-6));
}
.section--sand {
  background: var(--sand);
}
.section--dark {
  background: var(--dark);
  color: var(--paper);
}
.section--paper2 {
  background: var(--paper-2);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-3);
}
.stack > * + * {
  margin-top: var(--sp-3);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }
.align-end { align-self: end; }
.align-start { align-self: start; }
@media (max-width: 900px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 {
    grid-column: span 12;
  }
}
.rule-top {
  border-top: 1px solid var(--line);
}

/* 04 — TYPE --------------------------------------------------------------- */
.display {
  font-size: var(--fs-display);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}
.h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.038em;
  font-weight: 500;
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-weight: 500;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.018em;
  font-weight: 500;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}
.body-copy {
  color: var(--ink-2);
  max-width: 62ch;
}
.body-copy + .body-copy {
  margin-top: 1.1em;
}
.muted {
  color: var(--muted);
}
.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.italic {
  font-style: italic;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}
.eyebrow--plain::before {
  display: none;
}
.section--dark .eyebrow {
  color: rgba(247, 245, 240, 0.62);
}
.section-index {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.num {
  font-variant-numeric: tabular-nums;
}
.measure-sm {
  max-width: 34ch;
}
.measure-md {
  max-width: 52ch;
}
.text-accent {
  color: var(--accent);
}

/* Small caps label with trailing rule */
.label-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 05 — BUTTONS & LINKS ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}
.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn--outline-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 245, 240, 0.35);
}
.btn--outline-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn--sm {
  padding: 0.62rem 1.1rem;
  font-size: 0.8rem;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s;
}
.link-arrow svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease);
}
.link-arrow:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}
.link-arrow--plain {
  border-bottom: 0;
  padding-bottom: 0;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 06 — HEADER ------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--paper);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
}
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  height: 132px;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 8, 0.58),
    rgba(10, 10, 8, 0.18) 62%,
    rgba(10, 10, 8, 0)
  );
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 1;
}
.header.is-solid,
.header--solid {
  background: rgba(247, 245, 240, 0.97);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.header.is-solid::after,
.header--solid::after {
  opacity: 0;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  flex: none;
}
.brand__mark {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__mark::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 0.28rem;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: 0.28em;
}
.brand__descriptor {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.66;
  padding-left: 0.7rem;
  border-left: 1px solid currentColor;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2rem);
}
.nav__link {
  position: relative;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  opacity: 0.86;
  transition: opacity 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  opacity: 1;
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}
.header .btn--sm {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.header .btn--sm:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav-toggle span:nth-child(1) {
  top: 18px;
}
.nav-toggle span:nth-child(2) {
  top: 26px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}
.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--paper);
  color: var(--ink);
  padding: calc(var(--header-h) + 2rem) var(--pad-x) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
  visibility: hidden;
}
.drawer.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.drawer__link {
  font-size: clamp(1.9rem, 8vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
  font-weight: 500;
}
.drawer__link small {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 0.9em;
  margin-right: 0.6rem;
}
.drawer__foot {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* 07 — HERO --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(94svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  background: var(--dark);
}
.hero__media,
.media-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img,
.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to top,
      rgba(10, 10, 8, 0.82) 0%,
      rgba(10, 10, 8, 0.28) 46%,
      rgba(10, 10, 8, 0.12) 100%
    ),
    linear-gradient(to right, rgba(10, 10, 8, 0.34), rgba(10, 10, 8, 0) 62%);
}
.hero__inner {
  padding-bottom: clamp(1.75rem, 4vw, 3.25rem);
}
.hero__eyebrow {
  margin-bottom: clamp(1.25rem, 2.4vw, 2rem);
}
.hero .eyebrow {
  color: rgba(247, 245, 240, 0.78);
}
.hero .eyebrow::before {
  background: var(--accent);
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 0.93;
  letter-spacing: -0.045em;
  font-weight: 500;
  max-width: 18ch;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--sp-3);
  margin-top: clamp(1.75rem, 3.4vw, 2.75rem);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(247, 245, 240, 0.24);
}
.hero__lede {
  max-width: 50ch;
  color: rgba(247, 245, 240, 0.82);
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.7);
}
.hero__scroll span {
  display: block;
  width: 30px;
  height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.hero__scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  animation: slide 2.4s var(--ease) infinite;
}
@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}

/* Fact bar under hero */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts__item {
  padding: clamp(1.25rem, 2.4vw, 2rem) 0;
  padding-right: var(--sp-3);
  border-right: 1px solid var(--line);
}
.facts__item:first-child {
  padding-left: 0;
}
.facts__item:last-child {
  border-right: 0;
}
.facts__item + .facts__item {
  padding-left: clamp(1rem, 2.4vw, 2rem);
}
.facts__figure {
  font-size: clamp(1.6rem, 2.9vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.facts__figure small {
  font-size: 0.42em;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-left: 0.25em;
  color: var(--muted);
}
.facts__label {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 24ch;
}

/* Statement / pull-quote */
.pullquote {
  margin: 0;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-3) var(--sp-5);
  align-items: end;
}
.pullquote blockquote {
  margin: 0;
  max-width: 46ch;
}
.pullquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
.pullquote figcaption {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  max-width: 20ch;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .pullquote {
    grid-template-columns: minmax(0, 1fr);
  }
  .pullquote figcaption {
    text-align: left;
  }
}

/* 08 — SECTION HEADERS ---------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--sp-3) var(--sp-5);
  align-items: end;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.section--dark .section-head {
  border-bottom-color: var(--line-dark);
}
.section-head--center {
  display: block;
  text-align: center;
  border-bottom: 0;
  margin-bottom: var(--sp-5);
}
.section-head__aside {
  justify-self: end;
  max-width: 44ch;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.section-head__aside p + p {
  margin-top: 0.9rem;
}
.section--dark .section-head__aside {
  color: rgba(247, 245, 240, 0.62);
}
.heading-group > * + * {
  margin-top: var(--sp-2);
}
.heading-group .eyebrow {
  margin-bottom: 0.85rem;
}

/* 09 — PRODUCT / FEATURE CARDS -------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.product-card:hover .product-card__media img {
  transform: scale(1.045);
}
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.1rem, 1.8vw, 1.6rem);
  gap: 0.85rem;
}
.product-card__index {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card__title {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 500;
}
.product-card__text {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.6;
}
.product-card__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  line-height: 1.2;
}
.tag--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tag--accent {
  border-color: var(--accent);
  color: var(--accent);
}

/* Feature list (Why us) */
.feature-list {
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--sp-3);
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.feature__num {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.feature__title {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  letter-spacing: -0.018em;
  line-height: 1.3;
  font-weight: 500;
}
.feature__text {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.62;
  max-width: 46ch;
}
.sticky-head {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}

/* Application strip */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.app {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.35s var(--ease);
}
.app:hover {
  background: var(--paper-2);
}
.app__name {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.app__note {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}
.app__icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}

/* 10 — GALLERY ------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-4);
}
.filter {
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.filter:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  display: block;
}
.tile--wide {
  grid-column: span 8;
}
.tile--full {
  grid-column: span 12;
  aspect-ratio: 21 / 9;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.8s var(--ease);
}
.tile:hover img {
  transform: scale(1.05);
}
.tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.25rem 1rem;
  color: var(--white);
  background: linear-gradient(to top, rgba(10, 10, 8, 0.72), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
@media (hover: none) {
  .tile__cap {
    opacity: 1;
    transform: none;
  }
}
.tile:hover .tile__cap,
.tile:focus-visible .tile__cap {
  opacity: 1;
  transform: none;
}
.tile__name {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.tile__cat {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.tile[hidden] {
  display: none;
}
/* Two-up gallery for a short set of photographs (about.html) */
.gallery--pairs .tile {
  grid-column: span 6;
}
@media (max-width: 640px) {
  .gallery--pairs .tile {
    grid-column: span 12;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 6, 0.94);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: min(1400px, 100%);
  max-height: 82vh;
  object-fit: contain;
}
.lightbox__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1rem, 3vw, 2rem);
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  color: rgba(247, 245, 240, 0.72);
  font-size: var(--fs-small);
}
.lightbox__btn {
  color: inherit;
  border: 1px solid rgba(247, 245, 240, 0.28);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  transition: background 0.3s, color 0.3s;
}
.lightbox__btn:hover {
  background: var(--paper);
  color: var(--ink);
}

/* 11 — DETAIL / SKU PAGE -------------------------------------------------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 6rem));
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.breadcrumb a {
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.breadcrumb span {
  opacity: 0.45;
}
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--sp-3) var(--sp-5);
  align-items: end;
}
.page-head__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.page-head__aside {
  padding-bottom: 0.4rem;
}
.model-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.model-strip__item {
  border-left: 1px solid var(--line);
  padding-left: var(--sp-2);
}
.model-strip__item:first-child {
  border-left: 0;
  padding-left: 0;
}
.model-strip__k {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.model-strip__v {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.model-strip__v small {
  font-size: 0.55em;
  letter-spacing: 0;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split--top {
  align-items: start;
}
.split--media-first .split__media {
  order: -1;
}
.split__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__media--tall {
  aspect-ratio: 3 / 4;
}
.split__media--wide {
  aspect-ratio: 16 / 9;
}
.media-caption {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.spec-table caption {
  text-align: left;
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.9rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.9rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  line-height: 1.5;
}
.spec-table th {
  width: 34%;
  color: var(--muted);
}
.spec-table tr:first-child th,
.spec-table tr:first-child td {
  border-top: 1px solid var(--line);
}
.spec-table td {
  font-variant-numeric: tabular-nums;
}
/* Four-column comparison variant (products.html) */
.spec-table--compare th {
  width: auto;
}
.spec-table--compare thead th {
  color: var(--ink);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: bottom;
  padding-bottom: 0.9rem;
}
.spec-table--compare tbody th {
  width: 24%;
}
@media (max-width: 760px) {
  .spec-table--compare {
    min-width: 620px;
  }
}
.check-list {
  display: grid;
  gap: 0.75rem;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.accordion {
  border-top: 1px solid var(--line);
}
.accordion__item {
  border-bottom: 1px solid var(--line);
}
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.15rem 0;
  text-align: left;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  letter-spacing: -0.012em;
}
.accordion__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.accordion__icon::before {
  left: 0;
  top: 6.5px;
  width: 14px;
  height: 1px;
}
.accordion__icon::after {
  top: 0;
  left: 6.5px;
  width: 1px;
  height: 14px;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.accordion__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.accordion__panel > div {
  padding-bottom: 1.3rem;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.65;
  max-width: 66ch;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.step {
  padding: var(--sp-3) var(--sp-3) var(--sp-2) 0;
  border-right: 1px solid var(--line);
}
.step:last-child {
  border-right: 0;
}
.step__num {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.step__title {
  font-size: 1rem;
  letter-spacing: -0.012em;
  margin-bottom: 0.55rem;
}
.step__text {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}
.numbered-list {
  counter-reset: n;
  border-top: 1px solid var(--line);
}
.numbered-list li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
.numbered-list li::before {
  content: counter(n, decimal-leading-zero);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

/* 12 — CTA BAND / MARQUEE ------------------------------------------------- */
.cta-band {
  background: var(--dark);
  color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--sp-4) var(--sp-5);
  align-items: end;
}
.cta-band__title {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.cta-band__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.cta-band__note {
  color: rgba(247, 245, 240, 0.66);
  font-size: var(--fs-small);
  max-width: 38ch;
}
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 0.95rem;
  background: var(--paper);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 13 — FORMS -------------------------------------------------------------- */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.3s, background 0.3s;
  appearance: none;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f6d64' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #a9a69c;
}
.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 0.5rem;
}
.form__note {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 40ch;
}
.form__status {
  grid-column: 1 / -1;
  font-size: var(--fs-small);
  padding: 0.85rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
}
.form__status[hidden] {
  display: none;
}
.contact-card {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-top: 1.1rem;
}
.contact-list {
  display: grid;
  gap: 1.1rem;
}
.contact-list dt {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact-list dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}
.contact-list a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
.contact-list a:hover {
  border-color: var(--ink);
}

/* 14 — FOOTER ------------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: var(--paper);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 1.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr));
  gap: var(--sp-4) var(--sp-3);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand .brand__mark {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.footer__note {
  margin-top: 1rem;
  max-width: 34ch;
  font-size: var(--fs-small);
  color: rgba(247, 245, 240, 0.6);
  line-height: 1.6;
}
.footer__col h4 {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.5);
  margin-bottom: 1rem;
  font-weight: 400;
}
.footer__col li + li {
  margin-top: 0.55rem;
}
.footer__col a,
.footer__col p {
  font-size: 0.88rem;
  color: rgba(247, 245, 240, 0.8);
  line-height: 1.5;
}
.footer__col a {
  transition: color 0.3s;
}
.footer__col a:hover {
  color: var(--white);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.74rem;
  color: rgba(247, 245, 240, 0.45);
  letter-spacing: 0.02em;
}
.footer__bottom a:hover {
  color: var(--paper);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.to-top svg {
  width: 12px;
  height: 12px;
}

/* 15 — MOTION / A11Y ------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee__track {
    animation: none;
  }
  .hero__scroll span::after {
    animation: none;
  }
  .product-card:hover,
  .btn:hover {
    transform: none;
  }
  * {
    scroll-behavior: auto;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 16 — RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-grid .product-card:last-child {
    grid-column: span 2;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts__item:nth-child(2) {
    border-right: 0;
  }
  .facts__item:nth-child(3),
  .facts__item:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .step:nth-child(2) {
    border-right: 0;
  }
  .step:nth-child(3),
  .step:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .feature {
    grid-template-columns: 3rem minmax(0, 1fr);
    row-gap: 0.6rem;
  }
  .feature__text {
    grid-column: 2;
  }
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .section-head,
  .page-head__grid,
  .cta-band__grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head__aside {
    justify-self: start;
  }
  .tile {
    grid-column: span 6;
  }
  .tile--wide,
  .tile--full {
    grid-column: span 12;
  }
  .model-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2) var(--sp-3);
  }
  .model-strip__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .model-strip__item:nth-child(3),
  .model-strip__item:nth-child(4) {
    border-top: 1px solid var(--line);
    padding-top: var(--sp-2);
  }
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    min-height: 88svh;
  }
  .sticky-head {
    position: static;
  }
  .split--media-first .split__media {
    order: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .header .btn--sm {
    padding: 0.52rem 0.9rem;
    font-size: 0.72rem;
    gap: 0.45rem;
  }
  .header .btn--sm svg {
    width: 12px;
    height: 12px;
  }
  .brand__descriptor {
    display: none;
  }
  .product-grid,
  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-grid .product-card:last-child {
    grid-column: auto;
  }
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }
  .hero__scroll {
    display: none;
  }
  .facts__figure {
    font-size: 1.6rem;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-block: 1.1rem;
  }
  .step:nth-child(3) {
    border-top: 0;
  }
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .tile {
    grid-column: span 12;
  }
  .lightbox__bar {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .page-head {
    padding-top: calc(var(--header-h) + 2.5rem);
  }
}

.brand__logo{display:block;width:auto;height:30px;overflow:visible}
.footer__brand-link{display:inline-block;color:inherit}
.footer__brand-link .brand__logo{height:52px}
@media (max-width:640px){.brand__logo{height:25px}.footer__brand-link .brand__logo{height:44px}}
