/* Aman Bags Centre: the cutting table.
   Ground: self-healing cutting-mat green with a printed grid.
   Materials: manila pattern card, lit paper sheet, taped photo prints, marker red.
   Type: Big Shoulders Display (headlines) + Hanken Grotesk (reading). */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* mat + chalk */
  --mat: oklch(0.36 0.07 163);
  --mat-deep: oklch(0.315 0.066 164);
  --mat-raised: oklch(0.41 0.072 162);
  --grid: oklch(0.96 0.02 130 / 0.11);
  --grid-strong: oklch(0.96 0.02 130 / 0.2);
  --chalk: oklch(0.968 0.012 100);
  --chalk-dim: oklch(0.87 0.04 150);
  --chalk-faint: oklch(0.78 0.045 155);

  /* pattern card + paper */
  --manila: oklch(0.84 0.075 82);
  --manila-deep: oklch(0.76 0.085 76);
  --manila-edge: oklch(0.68 0.08 72);
  --paper: oklch(0.975 0.008 100);
  --ink: oklch(0.24 0.04 165);
  --ink-soft: oklch(0.38 0.04 165);

  /* marker */
  --marker: oklch(0.72 0.17 35);
  --tag: oklch(0.54 0.19 32);
  --tag-hover: oklch(0.49 0.19 32);
  --focus: oklch(0.9 0.14 95);
  --tag-ink: oklch(0.46 0.19 30);
  --marker-text: oklch(0.8 0.13 42);
  --tape: oklch(0.96 0.05 95 / 0.55);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.3rem);
  --step-5: clamp(3.3rem, 1.9rem + 6.4vw, 5.6rem);

  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --wrap: 1240px;
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-print: 0 1px 2px oklch(0.15 0.04 165 / 0.35), 0 10px 22px -6px oklch(0.15 0.04 165 / 0.5);
  --shadow-lift: 0 2px 4px oklch(0.15 0.04 165 / 0.35), 0 22px 36px -10px oklch(0.12 0.04 165 / 0.6);
  --ruler-w: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--mat);
  background-image: url("/img/mat-grid.svg");
  background-size: 240px 240px;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  overflow-wrap: anywhere; /* long emails, handles and URLs wrap instead of pushing past the screen */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--marker);
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--marker); color: oklch(0.99 0 0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-paper :focus-visible, .sheet :focus-visible, .paper :focus-visible { outline-color: var(--ink); }
html { scrollbar-color: var(--chalk-faint) var(--mat-deep); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mat-deep); }
::-webkit-scrollbar-thumb { background: var(--chalk-faint); border: 3px solid var(--mat-deep); border-radius: 8px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--chalk); color: var(--ink); padding: 0.8rem 1.1rem; z-index: 200; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ───────── type ───────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.004em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 850; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.02; letter-spacing: 0.012em; }
h4 { font-size: var(--step-1); letter-spacing: 0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--chalk-dim); max-width: 38ch; }
.measure { max-width: 66ch; }
.dim { color: var(--chalk-dim); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ───────── layout ───────── */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.band { padding-block: var(--section); }
.band--tight { padding-block: calc(var(--section) * 0.6); }
.band--deep { background-color: var(--mat-deep); background-image: url("/img/mat-grid.svg"); background-size: 240px 240px; }
.stack > * + * { margin-top: var(--stack, 1.1rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.4rem); max-width: 46rem; }
.section-head p { color: var(--chalk-dim); font-size: var(--step-1); margin: 0; max-width: 46ch; }

/* tracing-wheel stitch line between regions */
.stitch { height: 3px; position: relative; margin-block: 0; }
.stitch::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-top: 3px dashed var(--chalk-faint);
  opacity: 0.55;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease);
}
.js .stitch.in::before, html:not(.js) .stitch::before { clip-path: inset(0 0 0 0); }

/* ───────── header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: oklch(0.27 0.055 165 / 0.94);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px dashed oklch(0.96 0.02 130 / 0.28);
}
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem; }
.logo { display: block; flex: none; }
.logo img { height: 2.1rem; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.2rem; }
.nav a:not(.tag) {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 1.12rem; text-decoration: none; padding: 0.55rem 0.85rem; position: relative; color: var(--chalk);
}
.nav a:not(.tag)::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 2px;
  background: var(--marker); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:not(.tag):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .tag { margin-left: 0.8rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--chalk-faint); color: var(--chalk); border-radius: 4px; width: 3rem; height: 3rem; cursor: pointer; }
.menu-btn svg { margin: auto; }

@media (max-width: 960px) {
  .menu-btn { display: grid; place-items: center; }
  /* backdrop-filter makes the header the containing block for the fixed menu, which shrinks it to the header height; drop it on phones */
  .site-header { backdrop-filter: none; background: var(--mat-deep); }
  .logo { padding-block: 0.4rem; } /* taller tap target for the home link */
  .nav {
    position: fixed; inset: 4.4rem 0 0 0; background: var(--mat-deep); background-image: url("/img/mat-grid.svg");
    flex-direction: column; align-items: stretch; padding: 1.5rem var(--gutter) 6rem; gap: 0; margin: 0;
    transform: translateY(-1rem); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
    overflow-y: auto;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a:not(.tag) { font-size: 2.1rem; padding: 0.7rem 0; border-bottom: 1px dashed oklch(0.96 0.02 130 / 0.22); }
  .nav a:not(.tag)::after { display: none; }
  .nav .tag { margin: 1.5rem 0 0; justify-content: center; }
}

/* phones: give footer and contact links a bigger tap area (≈44px tall) without changing the layout */
@media (max-width: 760px) { .site-footer a, .contact-list a { display: inline-block; padding-block: 0.6rem; } }

/* ───────── buttons: hang-tag ───────── */
.tag {
  --h: 3.4rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: var(--h); padding: 0.55rem 1.5rem 0.55rem 2.4rem;
  background: var(--tag); color: oklch(0.99 0.005 100);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.3rem; line-height: 1;
  text-decoration: none; border: 0; cursor: pointer; position: relative;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  transition: background-color 0.2s, transform 0.3s var(--ease);
}
.tag::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: var(--mat-deep); box-shadow: inset 0 1px 1px oklch(0 0 0 / 0.4);
}
.tag:hover { background: var(--tag-hover); transform: translateX(3px); text-decoration: none; }
.tag:active { transform: translateX(1px); }
.tag svg { width: 1.2em; height: 1.2em; flex: none; }
.tag--sm { --h: 2.7rem; font-size: 1.1rem; padding-right: 1.15rem; }
.tag--lg { --h: 4rem; font-size: 1.5rem; padding-right: 1.9rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.4rem; padding: 0.5rem 1.4rem;
  border: 1.5px dashed var(--chalk-dim); color: var(--chalk); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.2rem; border-radius: 3px;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: oklch(0.96 0.02 130 / 0.1); border-color: var(--chalk); text-decoration: none; }
.btn-ghost svg { width: 1.15em; height: 1.15em; }
.on-paper .btn-ghost, .sheet .btn-ghost { color: var(--ink); border-color: var(--ink-soft); }
.on-paper .btn-ghost:hover, .sheet .btn-ghost:hover { background: oklch(0.24 0.04 165 / 0.08); border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; align-items: center; }

/* ───────── pattern sheet (manila card) ───────── */
.sheet {
  position: relative; background: var(--manila); color: var(--ink);
  padding: clamp(2.6rem, 4vw, 3.2rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem); border-radius: 5px;
  box-shadow: var(--shadow-print);
}
.sheet::before { /* punched hang hole */
  content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--mat); box-shadow: inset 0 2px 3px oklch(0 0 0 / 0.45);
}
.sheet > * + * { margin-top: 1rem; }
.sheet .dim, .sheet .lead { color: var(--ink-soft); }
.paper {
  background: var(--paper); color: var(--ink); border-radius: 5px; box-shadow: var(--shadow-print);
  padding: clamp(1.4rem, 4vw, 3.4rem);
}

/* taped photo print */
.print {
  position: relative; margin: 0; background: oklch(0.985 0.004 100); padding: 10px 10px 12px; color: var(--ink);
  box-shadow: var(--shadow-print); transform: rotate(var(--r, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.print img { width: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; background: oklch(0.96 0.004 100); }
.print::before, .print::after {
  content: ""; position: absolute; width: 5.2rem; height: 1.5rem; background: var(--tape); top: -0.55rem;
  box-shadow: 0 1px 2px oklch(0.1 0.03 165 / 0.25);
}
.print::before { left: -1.4rem; transform: rotate(-38deg); }
.print::after { right: -1.4rem; transform: rotate(36deg); }
.print--one-tape::after { display: none; }
.print--one-tape::before { left: 50%; margin-left: -2.6rem; transform: rotate(-2deg); top: -0.7rem; }
@media (max-width: 520px) { .print .cap { flex-direction: column; gap: 0.15rem; align-items: flex-start; } .tag--lg { font-size: 1.3rem; letter-spacing: 0.04em; } }
@media (max-width: 760px) {
  .print::before { left: -0.8rem; width: 4rem; }
  .print::after { right: -0.8rem; width: 4rem; }
}
a.print { display: block; text-decoration: none; color: var(--ink); }
a.print:hover, a.print:focus-visible { transform: rotate(0deg) translateY(-6px); box-shadow: var(--shadow-lift); }
.print figcaption, .print .cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding: 0.7rem 0.15rem 0.05rem;
  font-family: var(--font-display); font-weight: 750; text-transform: uppercase; letter-spacing: 0.07em; font-size: 1.05rem; line-height: 1.1;
}
.print .cap small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }

/* spec table (tech-pack) */
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.spec th, .spec td { text-align: left; padding: 0.8rem 0; border-bottom: 1.5px dashed oklch(0.24 0.04 165 / 0.35); vertical-align: baseline; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 1.05rem; color: var(--ink-soft); padding-right: 1.4rem; white-space: nowrap; }
.spec td { font-weight: 600; font-size: 1.2rem; }
.spec td strong { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.01em; margin-right: 0.35rem; }
@media (max-width: 520px) { .spec th { white-space: normal; padding-right: 0.9rem; } .spec td { font-size: 1.08rem; } .spec td strong { font-size: 1.7rem; } }

/* ───────── hero ───────── */
.hero { padding-block: clamp(2.4rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { max-width: 13ch; text-shadow: 0 2px 0 oklch(0.2 0.05 165 / 0.5); }
.hero .lead { margin-top: 1.6rem; }
.hero .cta-row { margin-top: 2rem; }
.proof { list-style: none; margin: clamp(2.2rem, 4vw, 3.6rem) auto 0; padding-block: 1.3rem 0; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1.5px dashed oklch(0.96 0.02 130 / 0.3); }
.proof li { display: grid; gap: 0.15rem; padding-inline: 0 1.2rem; }
.proof li + li { padding-left: 1.2rem; border-left: 1.5px dashed oklch(0.96 0.02 130 / 0.22); }
.proof b { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.45rem; line-height: 1.05; }
.proof span { color: var(--chalk-dim); font-size: 0.95rem; line-height: 1.35; }
@media (max-width: 760px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 0; } .proof li:nth-child(3) { border-left: 0; padding-left: 0; } .hero .cta-row { margin-bottom: 0.4rem; } }
.hero-note { margin-top: 1.4rem; font-size: var(--step--1); color: var(--chalk-faint); max-width: 44ch; }
.hero-art { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 600px; margin-inline: auto; }
.hero-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-print { position: absolute; width: 46%; right: 2%; top: 8%; z-index: 3; }
.hero-print .stamp {
  position: absolute; left: -1.6rem; bottom: -0.9rem; z-index: 4; transform: rotate(-4deg);
  background: var(--chalk); color: var(--ink); border: 2px solid var(--tag); padding: 0.3rem 0.7rem;
  font-family: var(--font-display); font-weight: 850; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.05rem; line-height: 1;
  box-shadow: 0 6px 14px -6px oklch(0.1 0.04 165 / 0.6);
}
.hero-print img { transition: opacity 0.5s; }
.hero-print.swap img { opacity: 0; }

/* pattern art animation (pure CSS, ends in the final state) */
.pat-sheet { fill: var(--manila); }
.pat-piece { fill: var(--manila-deep); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.pat-stitch { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 5 4; opacity: 0.75; }
.pat-dim { fill: none; stroke: var(--tag); stroke-width: 1.6; }
.pat-text { fill: var(--ink); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 15px; }
.pat-text--dim { fill: var(--tag); }
.pat-grain { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.pat-notch { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .pat-piece-wrap { transform-box: fill-box; transform-origin: center; }
  .pat-draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); animation: draw 1.5s var(--ease) var(--d, 0.5s) forwards; }
  .pat-piece-wrap { animation: settle 1.1s var(--ease) var(--d, 0s) both; }
  .pat-fade { animation: fade 0.8s var(--ease) var(--d, 1s) both; }
  .hero-print { animation: drop 1s var(--ease) 0.5s both; }
  .hero h1, .hero .lead, .hero .cta-row, .hero-note { animation: rise 0.9s var(--ease) both; }
  .hero .lead { animation-delay: 0.12s; }
  .hero .cta-row { animation-delay: 0.22s; }
  .hero-note { animation-delay: 0.32s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { from { transform: translate(var(--tx, 0), var(--ty, 24px)) rotate(var(--tr, 0deg)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { transform: translateY(-28px) rotate(2deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ───────── reveals (content visible by default; JS opts in) ───────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .print.reveal { transform: translateY(26px) rotate(var(--r, 0deg)); }
.js .print.reveal.in { transform: rotate(var(--r, 0deg)); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .js .print.reveal, .js .print.reveal.in { transform: rotate(var(--r, 0deg)); }
  html { scroll-behavior: auto; }
  .stitch::before { clip-path: inset(0); transition: none; }
}

/* ───────── ruler (scroll position in real centimetres) ───────── */
.ruler {
  position: fixed; top: 0; right: 0; bottom: 0; width: var(--ruler-w); z-index: 60; pointer-events: none;
  background: var(--mat-deep) url("/img/ruler.svg") repeat-y right top / 34px 75.6px;
  border-left: 1px solid oklch(0.96 0.02 130 / 0.25);
}
.ruler-mark {
  position: absolute; right: 0; top: 0; width: var(--ruler-w); height: 2px; background: var(--marker);
  transform: translateY(var(--y, 0px)); will-change: transform;
}
.ruler-mark span {
  position: absolute; right: 100%; top: -0.9rem; margin-right: 6px; background: var(--marker); color: oklch(0.15 0.04 165);
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; padding: 0.1rem 0.4rem; line-height: 1.2; letter-spacing: 0.04em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
@media (min-width: 1100px) { body { padding-right: var(--ruler-w); } .site-header { right: var(--ruler-w); } }
@media (max-width: 1099px) { .ruler { display: none; } }

/* ───────── product grid ───────── */
.catalog { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem) clamp(1rem, 2.4vw, 2rem); align-items: start; }
.catalog > :nth-child(1) { grid-column: 1 / span 5; --r: -1.6deg; }
.catalog > :nth-child(2) { grid-column: 6 / span 3; --r: 1.4deg; margin-top: 3.5rem; }
.catalog > :nth-child(3) { grid-column: 9 / span 4; --r: -0.8deg; margin-top: 1rem; }
.catalog > :nth-child(4) { grid-column: 1 / span 3; --r: 1.2deg; margin-top: -1rem; }
.catalog > :nth-child(5) { grid-column: 4 / span 4; --r: -1.3deg; margin-top: 2rem; }
.catalog > :nth-child(6) { grid-column: 8 / span 5; --r: 0.9deg; margin-top: 0.5rem; }
@media (max-width: 760px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog > * { grid-column: auto !important; margin-top: 0 !important; }
  .catalog > :nth-child(odd) { margin-top: 0 !important; }
  .catalog > :nth-child(even) { margin-top: 1.6rem !important; }
}
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 2.4rem 1.6rem; }
.grid-products > :nth-child(3n+1) { --r: -1.1deg; }
.grid-products > :nth-child(3n+2) { --r: 0.9deg; }
.grid-products > :nth-child(3n) { --r: -0.5deg; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.3rem 1rem; border: 1.5px dashed var(--chalk-dim); border-radius: 3px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 750; font-size: 1.08rem; text-decoration: none; color: var(--chalk);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); text-decoration: none; }

/* ───────── split / feature rows ───────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide-l { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split--wide-r { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split--top { align-items: start; }
@media (max-width: 860px) { .split, .split--wide-l, .split--wide-r, .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .hero h1 { max-width: 12ch; } .hero-art { max-width: 460px; } }
/* very narrow phones: keep the headline inside the gutter (e.g. "MANUFACTURER" at 320px) */
@media (max-width: 400px) { .hero h1 { font-size: min(var(--step-5), 13vw); } .hero .tag--lg { max-width: 100%; white-space: normal; } }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.2rem 1rem; padding: 1.25rem 0; border-bottom: 1.5px dashed oklch(0.96 0.02 130 / 0.28); align-items: start; }
.checklist li:first-child { border-top: 1.5px dashed oklch(0.96 0.02 130 / 0.28); }
.checklist svg { width: 2rem; height: 2rem; color: var(--marker); margin-top: 0.15rem; }
.checklist h3 { font-size: var(--step-1); }
.checklist p { margin: 0.25rem 0 0; color: var(--chalk-dim); grid-column: 2; }
.checklist h3 { grid-column: 2; }
.checklist svg { grid-row: 1 / span 2; }

/* production route (custom order steps) */
.route { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.route li { position: relative; padding: 0 1.4rem 0 0; counter-increment: step; }
.route li::before {
  content: counter(step); display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--chalk); color: var(--ink); font-family: var(--font-display); font-weight: 850; font-size: 1.7rem; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--mat);
}
.route li::after { content: ""; position: absolute; left: 3.2rem; right: 0; top: 1.6rem; border-top: 2px dashed var(--chalk-dim); }
.route li:last-child::after { display: none; }
.route h3 { margin: 1.1rem 0 0.4rem; font-size: var(--step-1); }
.route p { color: var(--chalk-dim); margin: 0; font-size: 1rem; }
@media (max-width: 860px) {
  .route { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .route li { padding: 0 0 0 4.4rem; }
  .route li::before { position: absolute; left: 0; top: 0; }
  .route li::after { left: 1.6rem; right: auto; top: 3.2rem; bottom: -1.8rem; border-top: 0; border-left: 2px dashed var(--chalk-dim); }
  .route h3 { margin-top: 0.2rem; }
}

/* ruler timeline (about) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4.4rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 2rem; top: 0; bottom: 0; width: 14px; background: url("/img/ruler-v.svg") repeat-y left top / 14px 40px; opacity: 0.8; }
.timeline li { position: relative; padding-bottom: 2.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .yr { position: absolute; left: -4.4rem; top: -0.2rem; width: 3.6rem; font-family: var(--font-display); font-weight: 850; font-size: 1.55rem; color: var(--marker); text-align: right; line-height: 1; }
.timeline h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.timeline p { margin: 0; color: var(--chalk-dim); max-width: 52ch; }

/* founders */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .founders { grid-template-columns: minmax(0, 1fr); } }
.founder { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.2rem; align-items: start; }
.founder .print { padding: 7px 7px 9px; }
.founder .print::before, .founder .print::after { width: 3.2rem; height: 1rem; }
.founder h3 { font-size: var(--step-2); }
.founder .role { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--marker); margin: 0.2rem 0 0.7rem; }
@media (max-width: 480px) { .founder { grid-template-columns: 7rem 1fr; } }
.pull { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.15; letter-spacing: 0.01em; max-width: 24ch; margin: 0; text-wrap: balance; }

/* registrations */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cert { background: none; border: 0; padding: 0; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.cert { display: block; width: 100%; }
.cert .print { display: block; }
.cert .print .cap { display: flex; }
.cert .print img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
dialog.lightbox::backdrop { background: oklch(0.15 0.04 165 / 0.86); }
dialog.lightbox img { max-height: 88vh; width: auto; margin: auto; background: #fff; border-radius: 3px; }
dialog.lightbox button { position: absolute; top: 0.6rem; right: 0.6rem; }

/* ───────── FAQ ───────── */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1.5px dashed oklch(0.96 0.02 130 / 0.3); }
.faq details:first-child { border-top: 1.5px dashed oklch(0.96 0.02 130 / 0.3); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 2rem; gap: 1rem; align-items: center; padding: 1.35rem 0;
  font-family: var(--font-display); font-weight: 750; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--step-1); line-height: 1.1;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 1.4rem; height: 1.4rem; justify-self: end; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f08068' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 3rem 1.5rem 0; color: var(--chalk-dim); max-width: 64ch; }
.faq .answer p { margin: 0; }
.sheet .faq details, .sheet .faq details:first-child { border-color: oklch(0.24 0.04 165 / 0.35); }
.sheet .faq .answer { color: var(--ink-soft); }

/* ───────── forms (order slip) ───────── */
.slip { background: var(--manila); color: var(--ink); border-radius: 5px; padding: clamp(2.6rem, 4vw, 3.2rem) clamp(1.4rem, 3.4vw, 2.6rem) clamp(1.4rem, 3.4vw, 2.6rem); box-shadow: var(--shadow-print); position: relative; }
.slip::before { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--mat); box-shadow: inset 0 2px 3px oklch(0 0 0 / 0.45); }
.slip h2, .slip h3 { color: var(--ink); }
.slip .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
@media (max-width: 640px) { .slip .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.35rem; margin-top: 1.15rem; }
.field label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 750; font-size: 1.02rem; color: var(--ink-soft); }
.field label i { font-style: normal; color: var(--tag-ink); }
.slip .dim, .slip .lead { color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink); background: oklch(0.93 0.05 84 / 0.6);
  border: 0; border-bottom: 2px solid var(--ink-soft); border-radius: 3px 3px 0 0; padding: 0.8rem 0.8rem; min-height: 3.1rem; width: 100%;
  transition: background-color 0.2s, border-color 0.2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.45 0.04 80); }
.field input:focus, .field select:focus, .field textarea:focus { background: oklch(0.97 0.03 90); border-color: var(--tag); outline: none; box-shadow: 0 2px 0 0 var(--tag); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--tag); background: oklch(0.93 0.05 40 / 0.6); }
.field .err { color: oklch(0.45 0.18 30); font-weight: 600; font-size: 0.92rem; min-height: 0; }
.form-foot { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }
.form-foot small { color: var(--ink-soft); max-width: 34ch; line-height: 1.4; }
.form-status { margin-top: 1.1rem; padding: 0.9rem 1.1rem; background: var(--ink); color: var(--chalk); border-radius: 3px; display: none; }
.form-status.show { display: block; }
.form-status a { color: var(--chalk); font-weight: 700; }

/* contact list */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start; }
.contact-list svg { width: 1.9rem; height: 1.9rem; color: var(--marker); margin-top: 0.1rem; }
.contact-list b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.08rem; font-weight: 750; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map { border: 0; width: 100%; height: 22rem; border-radius: 5px; filter: grayscale(0.25) contrast(1.05); background: var(--mat-deep); }

/* ───────── blog ───────── */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.8rem; }
.post-card { display: flex; flex-direction: column; gap: 0.9rem; text-decoration: none; color: var(--ink); height: 100%; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.post-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: var(--shadow-lift); text-decoration: none; }
.post-card h3 { font-size: var(--step-2); color: var(--ink); }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.post-card .meta { margin-top: auto; padding-top: 0.6rem; border-top: 1.5px dashed oklch(0.24 0.04 165 / 0.35); font-size: 0.9rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 0.8rem; font-weight: 600; }
.post-card .piece { height: 7.2rem; width: 100%; }

.crumbs { font-size: 0.92rem; color: var(--chalk-dim); margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.article-head { padding-block: clamp(2.2rem, 5vw, 4.5rem) clamp(1.6rem, 3vw, 2.6rem); }
.article-head h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.9rem); max-width: 24ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.4rem; color: var(--chalk-dim); font-size: 0.98rem; }
.article-meta b { color: var(--chalk); font-weight: 600; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.article { font-size: clamp(1.06rem, 1rem + 0.25vw, 1.2rem); line-height: 1.72; }
.article > * { max-width: 68ch; }
.article h2 { font-size: var(--step-3); margin: 2.6rem 0 1rem; line-height: 1; color: var(--ink); }
.article h3 { font-size: var(--step-2); margin: 2rem 0 0.7rem; color: var(--ink); }
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 1.15em; }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.article li { margin-bottom: 0.5em; padding-left: 0.2em; }
.article li > p { margin: 0 0 0.4em; }
.article li::marker { color: var(--tag-ink); font-weight: 700; }
.article a { color: var(--tag-ink); font-weight: 600; text-decoration-thickness: 2px; }
.article strong { font-weight: 700; }
.article .callout { background: var(--manila); border-radius: 4px; padding: 1.4rem 1.5rem; margin: 2.4rem 0 0; max-width: none; }
.article .callout p:last-child { margin: 0; }
.aside { position: sticky; top: 6rem; display: grid; gap: 1.4rem; }
@media (max-width: 1000px) { .aside { position: static; } }
.aside .sheet h2 { font-size: var(--step-2); }
.aside .sheet p { font-size: 1rem; margin: 0.6rem 0 1rem; }
.aside .tag { width: 100%; justify-content: center; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.related-list a { display: block; padding: 0.7rem 0; border-bottom: 1.5px dashed oklch(0.24 0.04 165 / 0.35); text-decoration: none; font-weight: 600; line-height: 1.3; color: var(--ink); }
.related-list a:hover { text-decoration: underline; }
.related-list li:last-child a { border-bottom: 0; }

/* ───────── product detail ───────── */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: minmax(0, 1fr); } }
.pdp-gallery { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem; align-items: start; }
.pdp-gallery .print:nth-child(2) { margin-top: 3.2rem; --r: 2.2deg; }
.pdp-gallery .print:nth-child(1) { --r: -1.4deg; }
@media (max-width: 520px) { .pdp-gallery { grid-template-columns: 1fr 1fr; gap: 1rem; } .pdp-gallery .print:nth-child(2) { margin-top: 1.6rem; } }
.pdp h1 { font-size: var(--step-4); }
.pdp .facts { margin: 1.6rem 0; }
.cross { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem 1.4rem; }
@media (max-width: 760px) { .cross { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───────── footer ───────── */
.site-footer { background: var(--mat-deep); background-image: url("/img/mat-grid.svg"); background-size: 240px 240px; padding-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px dashed oklch(0.96 0.02 130 / 0.28); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-size: 1.25rem; letter-spacing: 0.08em; margin-bottom: 1rem; color: var(--chalk); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; color: var(--chalk-dim); }
.site-footer a:hover { color: var(--chalk); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--chalk-dim); display: grid; gap: 0.5rem; }
.foot-logo img { height: 2.6rem; width: auto; margin-bottom: 1rem; }
.foot-blurb { color: var(--chalk-dim); max-width: 34ch; }
.foot-base { margin-top: 3rem; padding-block: 1.4rem 5.8rem; border-top: 1px dashed oklch(0.96 0.02 130 / 0.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; color: var(--chalk-faint); font-size: 0.92rem; }

/* floating contact (mobile bar + desktop tag) */
.float { position: fixed; z-index: 70; right: calc(var(--ruler-w) + 1.1rem); bottom: 1.2rem; display: grid; gap: 0.6rem; }
@media (max-width: 1099px) { .float { right: 1rem; } }
.float .tag { box-shadow: 0 10px 24px -8px oklch(0.1 0.04 165 / 0.7); filter: drop-shadow(0 6px 10px oklch(0.1 0.04 165 / 0.45)); }
@media (min-width: 641px) {
  .float .tag { --h: 3.4rem; padding: 0 1rem 0 1.9rem; }
  .float .tag span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.4s var(--ease), opacity 0.3s; }
  .float .tag:hover span, .float .tag:focus-visible span { max-width: 12rem; opacity: 1; margin-left: 0.2rem; }
}
@media (max-width: 640px) {
  .float { left: 0; right: 0; bottom: 0; grid-template-columns: 1.6fr 1fr; gap: 0; background: var(--mat-deep); border-top: 1px dashed oklch(0.96 0.02 130 / 0.3); padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); gap: 0.7rem; }
  .float .tag { filter: none; box-shadow: none; justify-content: center; padding-inline: 1rem 1rem; --h: 3.1rem; font-size: 1.15rem; clip-path: none; border-radius: 4px; }
  .float .tag::before { display: none; }
  .float .tag--call { background: transparent; border: 1.5px dashed var(--chalk-dim); color: var(--chalk); }
}
@media (min-width: 641px) { .float .tag--call { display: none; } }

@media (max-width: 860px) { .flip-m > :last-child { order: -1; } }

@media (min-width: 861px) { .split--top > .stack:first-child { position: sticky; top: 6.5rem; align-self: start; } }

/* three short text columns */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: minmax(0, 1fr); } }

/* utility */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: var(--step--1); color: var(--chalk-dim); }
.badge-row li { list-style: none; display: inline-flex; gap: 0.5rem; align-items: center; }
.badge-row { margin: 0; padding: 0; }
.badge-row svg { width: 1.1rem; height: 1.1rem; color: var(--marker); }
.prose-cols { columns: 2 20rem; column-gap: 3rem; }
.prose-cols p { break-inside: avoid-column; }
.inline-link { color: var(--marker-text); font-weight: 600; }
.paper .inline-link, .sheet .inline-link, .slip .inline-link { color: var(--tag-ink); }
noscript .tag { margin: 1rem; }

@media print { .ruler, .float, .site-header, .menu-btn { display: none !important; } body { background: #fff; color: #000; } }
