/* Gateway Metal Industries — site styles
   Palette: tinplate greys, graphite ink, GMI red (from the logo) used like
   dimension lines on an engineering drawing. */

:root {
  --paper: #F2F3F3;
  --tin: #E4E7E9;
  --tin-2: #D5DADD;
  --rule: #C4CACE;
  --steel: #5C646B;
  --ink: #141619;
  --ink-2: #1D2024;
  --red: #B3121B;
  --red-ink: #8F0E15;
  --white: #FFFFFF;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --nav-h: 68px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ── Type ─────────────────────────────────────────── */
.display, .h2, .h3 {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.display { font-size: clamp(1.95rem, 3.6vw + .9rem, 4.3rem); line-height: .97; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1; }
.h3 { font-size: 1.2rem; line-height: 1.15; letter-spacing: -.01em; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--steel); max-width: 34em; }
.muted { color: var(--steel); }

.label, .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--steel); }
.eyebrow::before { content: ''; width: 14px; height: 2px; background: var(--red); }
.mono { font-family: var(--mono); }
.red { color: var(--red); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn--light { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 243, 243, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 26px; width: auto; }
.brand span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); line-height: 1.25; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav a[aria-current="page"]::after,
.nav a:hover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); }
.quote-pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--mono); font-size: 13px; padding: 7px 12px; white-space: nowrap; flex: none;
  border: 1px solid var(--rule); border-radius: 99px; background: var(--white);
}
@media (max-width: 400px) { .quote-pill { font-size: 12px; padding: 6px 9px; gap: 6px; } .brand img { height: 22px; } }
.quote-pill b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--tin-2); font-weight: 600; font-size: 12px; }
.quote-pill.has b { background: var(--red); color: var(--white); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }

.sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--paper);
  display: flex; flex-direction: column; padding: 16px var(--gutter) 32px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
}
.sheet.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.sheet-top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--nav-h) - 16px); }
.sheet-close { width: 44px; height: 44px; border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); font-size: 22px; cursor: pointer; }
.sheet nav { display: flex; flex-direction: column; margin-top: 28px; border-top: 1px solid var(--rule); }
.sheet nav a { font-stretch: 125%; font-weight: 800; font-size: 2rem; letter-spacing: -.02em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; }
.sheet nav a small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--steel); font-stretch: 100%; letter-spacing: .06em; }
.sheet-foot { margin-top: auto; display: grid; gap: 10px; }

@media (max-width: 880px) {
  .nav, .site-head .btn--wa-head { display: none; }
  .menu-btn { display: grid; }
  .brand span { display: none; }
  .site-head .wrap { gap: 10px; }
}

/* ── Sections ─────────────────────────────────────── */
.band { padding-block: clamp(64px, 9vw, 128px); }
.band--tin { background: var(--tin); }
.band--ink { background: var(--ink); color: var(--white); }
.band--ink .muted, .band--ink .lede { color: #A9B0B6; }
.band--ink .eyebrow { color: #A9B0B6; }
.band-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head .eyebrow { margin-bottom: 18px; }
@media (max-width: 820px) { .band-head { grid-template-columns: minmax(0, 1fr); } }

/* ── Hero ─────────────────────────────────────────── */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy .display { margin-bottom: 24px; }
.hero-copy .display em { font-style: normal; color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; color: var(--steel); }
.hero-meta b { color: var(--ink); font-weight: 500; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The drawing sheet that holds the 3D tin */
.stage-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.stage {
  position: relative; aspect-ratio: 1 / .92; width: 100%;
  background-color: #E9ECEE;
  background-image:
    linear-gradient(rgba(20,22,25,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,22,25,.07) 1px, transparent 1px),
    linear-gradient(rgba(20,22,25,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,22,25,.035) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  border: 1px solid var(--rule);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.stage:active { cursor: grabbing; }
.stage::before {
  /* vignette so the tin sits in light, like a product shot */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 52%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%);
}
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.stage .dims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.dims line { stroke: var(--red); stroke-width: 1; }
.dims .ext { stroke: rgba(179,18,27,.55); stroke-dasharray: 3 3; }
.dims path { fill: var(--red); }
.dims text { font-family: var(--mono); font-size: 13px; font-weight: 500; fill: var(--red); }
.dims .halo { stroke: #EEF0F1; stroke-width: 5px; paint-order: stroke; stroke-linejoin: round; }
.stage-fallback { position: absolute; inset: 0; display: none; place-items: center; background: var(--white); }
.stage-fallback img { max-height: 92%; width: auto; }
.stage.no-gl .stage-fallback { display: grid; }
.stage.no-gl ~ .picker, .stage.no-gl .stage-hint { display: none; }
.stage-corner { position: absolute; width: 14px; height: 14px; border-color: var(--ink); border-style: solid; opacity: .5; pointer-events: none; }
.stage-corner.tl { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; }
.stage-corner.tr { top: 10px; right: 10px; border-width: 1.5px 1.5px 0 0; }
.stage-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 1.5px 1.5px; }
.stage-hint { position: absolute; top: 14px; left: 32px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); pointer-events: none; }

/* Title block, as in the corner of a technical drawing */
.title-block {
  position: absolute; right: -1px; bottom: -1px; z-index: 2;
  display: grid; grid-template-columns: auto auto; background: rgba(255,255,255,.92);
  border: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; line-height: 1.3;
  pointer-events: none; min-width: 230px;
}
.title-block div { padding: 6px 9px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.title-block div:nth-child(2n) { border-right: 0; }
.title-block div:nth-last-child(-n+2) { border-bottom: 0; }
.title-block dt, .title-block .k { color: var(--steel); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; display: block; }
.title-block .wide { grid-column: 1 / -1; border-right: 0; }
.title-block .wide b { font-weight: 600; font-size: 12px; }
@media (max-width: 600px) {
  .stage { aspect-ratio: 1 / 1.12; }
  .title-block { min-width: 0; font-size: 10px; grid-template-columns: auto; }
  .title-block div { padding: 4px 8px; border-right: 0; }
  .title-block .tb-x { display: none; }
  .title-block div:nth-last-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .title-block div:last-child { border-bottom: 0; }
  .stage-hint { left: 30px; }
  .picker-row { flex-wrap: wrap; row-gap: 8px; }
  .picker-row .chips { flex: 1 1 calc(100% - 68px); }
  .picker-row .lid-toggle { margin-left: 68px; }
}

.picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.picker-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.picker-row .label { color: var(--steel); width: 54px; flex: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-family: var(--mono); font-size: 12.5px; padding: 7px 11px; min-height: 36px;
  border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.swatch {
  flex: none; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px;
  padding: 5px 11px 5px 6px; min-height: 36px; border: 1px solid var(--rule); background: var(--white); border-radius: 99px; cursor: pointer;
}
.swatch i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset -4px -5px 8px rgba(0,0,0,.18), inset 3px 4px 6px rgba(255,255,255,.55); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lid-toggle { margin-left: auto; }

/* ── Spec strip (real facts only) ─────────────────── */
.spec-strip { border-block: 1px solid var(--ink); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.spec-strip > div { padding: 22px 20px 20px; border-right: 1px solid var(--rule); }
.spec-strip > div:last-child { border-right: 0; }
.spec-strip dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.spec-strip dd { font-stretch: 125%; font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.1; letter-spacing: -.015em; }
@media (max-width: 960px) {
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-strip > div { border-bottom: 1px solid var(--rule); }
  .spec-strip > div:nth-child(2n) { border-right: 0; }
  .spec-strip > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ── Industry panels ──────────────────────────────── */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.use { background: var(--paper); display: flex; flex-direction: column; text-decoration: none; transition: background .2s; }
.use:hover { background: var(--white); }
.use-img { aspect-ratio: 5 / 4; background: var(--white); overflow: hidden; position: relative; border-bottom: 1px solid var(--rule); }
.use-img img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; transform: scale(1.22); transition: transform .6s var(--ease); }
.use:hover .use-img img { transform: scale(1.28); }
.use-img .label { position: absolute; left: 14px; top: 14px; color: var(--steel); }
.use-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.use-list { font-family: var(--mono); font-size: 13px; color: var(--steel); display: grid; gap: 4px; }
.use-list li { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; border-bottom: 1px dashed var(--rule); padding-bottom: 4px; }
.use-list li span:last-child { color: var(--ink); }
.use .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .uses { grid-template-columns: minmax(0, 1fr); } .use-img { aspect-ratio: 4 / 3; } }

/* ── Process ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.step-mark b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--red); }
.step-mark::after { content: ''; flex: 1; height: 1px; background: var(--red); opacity: .5; }
.step:last-child .step-mark::after { background: linear-gradient(90deg, var(--red), transparent); }
.step h3 { margin-bottom: 10px; }
.step p { color: #A9B0B6; font-size: 15.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 40px; }
}
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } .step { padding-right: 0; } }

/* ── Custom work ──────────────────────────────────── */
.custom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.custom .eyebrow { margin-bottom: 18px; }
.custom .h2 { margin-bottom: 22px; }
.custom .btn { margin-top: 28px; }
.spec-sheet { border: 1px solid var(--ink); background: var(--white); }
.spec-sheet-head { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.spec-sheet dl { display: grid; grid-template-columns: 140px 1fr; }
.spec-sheet dt, .spec-sheet dd { padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.spec-sheet dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); border-right: 1px solid var(--rule); }
.spec-sheet dd { font-size: 15.5px; }
.spec-sheet dt:nth-last-of-type(1), .spec-sheet dd:last-of-type { border-bottom: 0; }
@media (max-width: 820px) { .custom { grid-template-columns: minmax(0, 1fr); } .spec-sheet dl { grid-template-columns: 110px 1fr; } }

/* ── Heritage strip ───────────────────────────────── */
.years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.year { padding: 22px 24px 0 0; position: relative; }
.year::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--red); }
.year b { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; line-height: 1; margin-bottom: 12px; }
.year p { color: var(--steel); font-size: 15.5px; max-width: 26em; }
@media (max-width: 760px) { .years { grid-template-columns: minmax(0, 1fr); gap: 28px; border-top: 0; border-left: 1px solid var(--ink); padding-left: 22px; } .year { padding: 0; } .year::before { top: 10px; left: -27px; } }

/* ── Call-to-action band ──────────────────────────── */
.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cta .h2 { color: var(--white); }
.cta-lines { display: grid; border-top: 1px solid rgba(255,255,255,.18); }
.cta-lines a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); text-decoration: none; transition: color .15s, padding .25s var(--ease); }
.cta-lines a:hover { color: #FF8A8F; padding-left: 6px; }
.cta-lines .label { color: #A9B0B6; }
.cta-lines span:last-child { font-stretch: 112%; font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); overflow-wrap: anywhere; text-align: right; }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ── Footer ───────────────────────────────────────── */
.site-foot { background: var(--ink-2); color: #A9B0B6; padding-block: 56px 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-foot .brand-foot img { height: 28px; width: auto; margin-bottom: 16px; }
.site-foot h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #6F777E; margin-bottom: 12px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--white); }
.site-foot li + li { margin-top: 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 12px; color: #6F777E; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── Page header (inner pages) ────────────────────── */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.page-head .eyebrow { margin-bottom: 22px; }
.page-head .display { max-width: 15em; margin-bottom: 20px; }

/* ── Catalogue ────────────────────────────────────── */
.filters {
  position: sticky; top: var(--nav-h); z-index: 20;
  background: rgba(242, 243, 243, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.filters .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-block: 12px; }
.filter-group { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.filter-group .label { color: var(--steel); flex: none; }
.count { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--steel); }
@media (max-width: 760px) { .count { display: none; } .filter-group { width: 100%; } .filter-group .label { width: 48px; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-block: 32px 96px; }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.card { background: var(--paper); display: flex; flex-direction: column; position: relative; }
.card[hidden] { display: none; }
.card-img {
  position: relative; aspect-ratio: 1 / 1; background: var(--white); overflow: hidden; border: 0; padding: 0; cursor: zoom-in; width: 100%;
}
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; transform: scale(1.16); transition: opacity .35s, transform .6s var(--ease); }
.card-img img + img { opacity: 0; }
@media (hover: hover) {
  .card:hover .card-img img + img { opacity: 1; }
  .card:hover .card-img img { transform: scale(1.21); }
}
.card-code { position: absolute; top: 10px; left: 12px; font-family: var(--mono); font-size: 11px; color: var(--steel); letter-spacing: .06em; }
.card-tag { position: absolute; top: 10px; right: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; background: var(--paper); padding: 2px 7px; border: 1px solid var(--rule); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.card-dims { font-family: var(--mono); font-size: 13px; color: var(--red); }
.card-fill { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.card-actions { margin-top: auto; padding-top: 12px; }
.add {
  width: 100%; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: transparent; border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
}
.add:hover { background: var(--ink); color: var(--white); }
.add[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
@media (max-width: 560px) {
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: 14.5px; }
  .card-dims { font-size: 12px; }
  .card-tag { display: none; }
  .add { font-size: 13px; }
}

.empty { grid-column: 1 / -1; background: var(--paper); padding: 48px 24px; text-align: center; color: var(--steel); }

.catalogue-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--ink); background: var(--white); margin-bottom: 96px; }
@media (max-width: 700px) { .catalogue-note { grid-template-columns: minmax(0, 1fr); } }

/* Viewer dialog */
.viewer { width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.viewer::backdrop { background: rgba(20, 22, 25, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.viewer[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.viewer-media { background: var(--white); position: relative; display: grid; grid-template-rows: 1fr auto; border-right: 1px solid var(--rule); }
.viewer-main { aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.viewer-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; transform: scale(1.12); }
.viewer-thumbs { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--rule); }
.viewer-thumbs button { width: 64px; height: 64px; padding: 0; border: 1px solid var(--rule); background: var(--white); cursor: pointer; overflow: hidden; border-radius: var(--radius); }
.viewer-thumbs button[aria-current="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); }
.viewer-info { padding: 28px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.viewer-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); font-size: 20px; cursor: pointer; }
.specs { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--ink); }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); padding-right: 24px; }
.specs dd { font-size: 15px; }
.specs dd.mono { font-size: 14px; color: var(--red); }
.viewer-actions { display: grid; gap: 10px; margin-top: auto; }
@media (max-width: 760px) {
  .viewer-grid { grid-template-columns: minmax(0, 1fr); }
  .viewer-media { border-right: 0; border-bottom: 1px solid var(--rule); }
  .viewer-main { aspect-ratio: 4 / 3; }
  .viewer-info { padding: 20px; }
}

/* Quote tray */
.tray {
  position: fixed; left: 50%; bottom: 16px; z-index: 40; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px;
  background: var(--ink); color: var(--white); border-radius: 4px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45);
  transition: transform .4s var(--ease); width: max-content; max-width: calc(100vw - 24px);
}
.tray.show { transform: translate(-50%, 0); }
.tray p { font-size: 14.5px; white-space: nowrap; }
.tray b { font-family: var(--mono); color: #FF8A8F; }
@media (max-width: 480px) { .tray { left: 12px; right: 12px; transform: translateY(140%); width: auto; justify-content: space-between; } .tray.show { transform: none; } .tray p { white-space: normal; font-size: 13.5px; } }

/* ── About ────────────────────────────────────────── */
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.story-side { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.founder-card { border: 1px solid var(--ink); background: var(--white); }
.founder-card .mark { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--tin); border-bottom: 1px solid var(--ink); position: relative; overflow: hidden; }
.founder-card .mark span { font-family: var(--mono); font-size: clamp(4rem, 9vw, 7rem); letter-spacing: -.06em; color: var(--ink); line-height: 1; }
.founder-card .mark small { position: absolute; left: 14px; top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.founder-card .who { padding: 16px 18px; }
.founder-card .who b { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.founder-card .who span { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.prose { font-size: 18px; max-width: 36em; }
.prose p + p { margin-top: 1.1em; }
.prose .first { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 500; }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } .story-side { position: static; max-width: 420px; } }

.timeline { border-top: 1px solid var(--ink); }
.t-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.t-row b { font-family: var(--mono); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; line-height: 1; }
.t-row .red { font-family: var(--mono); }
.t-row p { color: var(--steel); }
@media (max-width: 760px) { .t-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.principles > div { background: var(--paper); padding: 28px; }
.principles h3 { margin-bottom: 10px; }
.principles p { color: var(--steel); font-size: 15.5px; }
@media (max-width: 860px) { .principles { grid-template-columns: minmax(0, 1fr); } }

.mission { border-left: 3px solid var(--red); padding: 4px 0 4px 24px; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 500; max-width: 34em; }
.mission cite { display: block; margin-top: 14px; font-family: var(--mono); font-size: 12px; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }

/* ── Contact ──────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-block: 48px 96px; align-items: start; }
@media (max-width: 920px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.form { border: 1px solid var(--ink); background: var(--white); }
.form-sec { padding: 24px; border-bottom: 1px solid var(--rule); }
.form-sec:last-child { border-bottom: 0; }
.form-sec > .label { display: flex; justify-content: space-between; color: var(--steel); margin-bottom: 16px; }
.qlist { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.qitem { display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px 36px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.qitem img { width: 56px; height: 56px; object-fit: cover; transform: scale(1.3); }
.qitem .thumb { width: 56px; height: 56px; overflow: hidden; background: var(--white); border: 1px solid var(--rule); }
.qitem b { font-weight: 600; font-size: 15px; display: block; line-height: 1.3; }
.qitem small { font-family: var(--mono); font-size: 12px; color: var(--red); }
.qitem input { width: 100%; min-height: 40px; padding: 6px 10px; font-family: var(--mono); font-size: 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.qitem .rm { width: 36px; height: 36px; border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); cursor: pointer; font-size: 18px; line-height: 1; }
.qitem .rm:hover { border-color: var(--red); color: var(--red); }
.qempty { padding: 18px; background: var(--paper); border: 1px dashed var(--rule); color: var(--steel); font-size: 15px; }
@media (max-width: 560px) {
  .qitem { grid-template-columns: 48px minmax(0, 1fr) 36px; }
  .qitem .thumb, .qitem img { width: 48px; height: 48px; }
  .qitem .qty { grid-column: 2 / 3; }
  .qitem .rm { grid-row: 1; grid-column: 3; }
}
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.field label i { font-style: normal; color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 13px; font-size: 16px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  transition: border-color .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field .err { display: none; font-size: 13px; color: var(--red); }
.field.bad input { border-color: var(--red); }
.field.bad .err { display: block; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.send { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.send-note { font-size: 13.5px; color: var(--steel); margin-top: 12px; }
@media (max-width: 480px) { .send { grid-template-columns: minmax(0, 1fr); } }

.direct { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.direct a, .direct div.line { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.direct a:hover strong { color: var(--red); }
.direct .label { color: var(--steel); padding-top: 3px; }
.direct strong { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; display: block; }
.direct small { color: var(--steel); font-size: 14px; }
.map { margin-top: 24px; border: 1px solid var(--ink); background: var(--tin); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; filter: grayscale(1) contrast(1.05); }
.map-foot { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; }
.map-foot a { color: var(--red); text-decoration: none; }

/* ── Toast ────────────────────────────────────────── */
.toast { position: fixed; left: 50%; top: calc(var(--nav-h) + 12px); z-index: 70; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 3px; font-size: 14px; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100vw - 24px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 404 ──────────────────────────────────────────── */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost b { font-family: var(--mono); font-weight: 500; font-size: clamp(5rem, 16vw, 11rem); letter-spacing: -.06em; line-height: 1; color: var(--red); display: block; margin-bottom: 16px; }

/* ── Reveal on scroll (content stays visible without JS) ── */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* ── Very small phones (iPhone SE and similar) ── */
@media (max-width: 400px) {
  .use-list { font-size: 12px; }
  .use-list li { white-space: normal; }
  .use-list li span:last-child { text-align: right; flex: none; }
  .use-body { padding: 20px 18px 22px; }
}
