@charset "utf-8";
/* ==========================================================================
   RopePatio — editorial visual system
   Direction: warm sand paper, terracotta accent, large serif display type,
   hairline rules, white photo plates. Fully responsive.
   ========================================================================== */


/* ---------- tokens ---------- */
:root {
  --paper: #fbf8f3;
  --paper-2: #f5eee3;
  --sand: #efe4d4;
  --sand-deep: #e5d6c1;
  --ink: #1f1b17;
  --ink-2: #443b33;
  --muted: #7b6e5f;
  --clay: #b4552b;
  --clay-deep: #8b3d1c;
  --line: #e3d8c8;
  --line-2: #d0bfa7;
  --white: #fff;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  --fs-display: clamp(2.6rem, 6vw, 5.2rem);
  --fs-h1: clamp(2.1rem, 4.4vw, 3.6rem);
  --fs-h2: clamp(1.7rem, 3vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-body: clamp(0.97rem, 1.05vw, 1.06rem);
  --fs-sm: 0.83rem;
  --fs-xs: 0.72rem;

  --sp-section: clamp(64px, 8vw, 132px);
  --gutter: clamp(20px, 5vw, 76px);
  --maxw: 1440px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-section); }
.section--sand { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- typography atoms ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--clay); flex: none; }
.eyebrow--plain::before { display: none; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
}
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 { font-size: var(--fs-h2); max-width: 22ch; }
.section-head p { color: var(--muted); max-width: 44ch; font-size: var(--fs-sm); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-size: var(--fs-sm); letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500; line-height: 1; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--clay { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px;
  transition: border-color .18s ease, color .18s ease;
}
.link-arrow:hover { color: var(--clay); border-color: var(--clay); }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  min-height: 74px; padding-block: 12px;
}
.brand { display: flex; flex-direction: column; gap: 2px; flex: none; }
.brand-mark {
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em;
  font-weight: 500; line-height: 1;
}
.brand-mark em { font-style: normal; color: var(--clay); }
.brand-sub {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.nav-main { margin-left: auto; }
.nav-main ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; }
.nav-main a {
  font-size: var(--fs-sm); letter-spacing: 0.02em; padding-block: 6px;
  border-bottom: 1px solid transparent; transition: border-color .18s ease, color .18s ease;
}
.nav-main a:hover, .nav-main a[aria-current="page"] { border-color: var(--clay); color: var(--clay); }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-actions .btn { padding: 12px 20px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* mobile drawer */
.nav-drawer {
  display: none; position: fixed; inset: 74px 0 0; z-index: 90;
  background: var(--paper); padding: 32px var(--gutter) 48px;
  overflow-y: auto; border-top: 1px solid var(--line);
}
.nav-drawer[data-open="true"] { display: block; }
.nav-drawer ul { list-style: none; display: grid; gap: 0; }
.nav-drawer li { border-bottom: 1px solid var(--line); }
.nav-drawer a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--font-display); font-size: 1.35rem; }
.nav-drawer a span { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.nav-drawer .drawer-foot { margin-top: 32px; display: grid; gap: 12px; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch; gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 78px);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 2.4vw, 32px); min-width: 0; }
.hero-copy h1 {
  font-size: var(--fs-display); line-height: 0.96; letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero-copy h1 em { font-style: italic; color: var(--clay); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px);
  padding-top: 22px; border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-meta dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-plate { position: relative; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.hero-plate img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.hero-plate figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: rgba(251, 248, 243, .92);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.hero-plate .badge { color: var(--clay); }

/* ---------- category strip ---------- */
.cat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cat-strip a {
  position: relative; padding: clamp(20px, 2.4vw, 30px); border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px;
  min-height: 140px; justify-content: space-between;
  transition: background-color .2s ease;
}
.cat-strip a:nth-child(3n) { border-right: 0; }
.cat-strip a:hover { background: var(--paper-2); }
.cat-strip .num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--clay); letter-spacing: .14em; }
.cat-strip .name { font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.15; }
.cat-strip .count { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- product grid ---------- */
.grid-products {
  display: grid; gap: clamp(18px, 2.2vw, 34px) clamp(14px, 1.8vw, 28px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media {
  position: relative; background: var(--white); border: 1px solid var(--line);
  overflow: hidden; aspect-ratio: 1 / 1;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .tag {
  position: absolute; top: 0; left: 0; background: var(--paper);
  padding: 5px 9px; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--clay);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.card-body { padding-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.card-code { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; color: var(--muted); }
.card-title { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.25; letter-spacing: -0.01em; }
.card:hover .card-title { color: var(--clay); }

/* ---------- filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  padding: 8px 14px; border: 1px solid var(--line-2); font-size: var(--fs-sm);
  background: transparent; cursor: pointer; transition: all .16s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- page header (collection / static) ---------- */
.page-head { padding-block: clamp(40px, 5vw, 76px) clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--fs-h1); max-width: 20ch; margin-top: 14px; }
.page-head .lede { margin-top: 18px; }
.page-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.crumbs a:hover { color: var(--clay); }

/* ---------- product detail ---------- */
.pdp { padding-block: clamp(24px, 3vw, 40px) var(--sp-section); }
.pdp-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.5vw, 72px); align-items: start;
}
.pdp-gallery { position: sticky; top: 100px; display: grid; gap: 12px; }
.pdp-figure { background: var(--white); border: 1px solid var(--line); }
.pdp-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp-thumbs button { padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pdp-thumbs button[aria-current="true"] { border-color: var(--clay); }
.pdp-thumbs img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }

.pdp-info { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.pdp-code { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--clay); }
.pdp-info h1 { font-size: var(--fs-h1); line-height: 1.02; }
.pdp-intro { font-size: 1.05rem; color: var(--ink-2); }
.pdp-intro p + p { margin-top: 12px; }
.pdp-price-note {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--paper-2); border-left: 2px solid var(--clay);
  font-size: var(--fs-sm); color: var(--ink-2);
}
.pdp-cta { display: grid; gap: 10px; }
.pdp-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-cta-row .btn { flex: 1 1 180px; }

.spec-block { border-top: 1px solid var(--line-2); padding-top: 20px; }
.spec-block h2 { font-size: var(--fs-h3); font-family: var(--font-body); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 400; color: var(--muted); }
.spec-table td { color: var(--ink); }

.feature-list { display: grid; gap: 14px; }
.feature-list li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.97rem; color: var(--ink-2); }
.feature-list li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; background: var(--clay); display: block; }

.pdp-accordion { border-top: 1px solid var(--line-2); }
.pdp-accordion details { border-bottom: 1px solid var(--line); }
.pdp-accordion summary {
  list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.95rem; font-weight: 500;
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: "+"; font-family: var(--font-mono); color: var(--clay); }
.pdp-accordion details[open] summary::after { content: "–"; }
.pdp-accordion .acc-body { padding-bottom: 18px; font-size: 0.95rem; color: var(--ink-2); }
.pdp-accordion .acc-body p + p { margin-top: 10px; }

/* ---------- inquiry form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line-2); background: #fff; font-size: 0.95rem;
  border-radius: 0; transition: border-color .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--clay); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin-top: 12px; }

/* ---------- journal ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.post { display: flex; flex-direction: column; gap: 12px; }
.post-media { background: var(--white); border: 1px solid var(--line); aspect-ratio: 16/10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.post:hover .post-media img { transform: scale(1.04); }
.post-meta { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; }
.post h3 { font-size: 1.2rem; line-height: 1.24; }
.post:hover h3 { color: var(--clay); }
.post p { font-size: var(--fs-sm); color: var(--muted); }

.post-list { display: grid; }
.post-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: clamp(16px, 2.4vw, 32px);
  align-items: baseline; padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.post-row:first-child { border-top: 1px solid var(--line); }
.post-row .idx { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--clay); letter-spacing: .12em; }
.post-row h3 { font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.2; }
.post-row:hover h3 { color: var(--clay); }
.post-row .excerpt { font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; max-width: 68ch; }
.post-row time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }

/* ---------- article ---------- */
.article-head { padding-block: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(1.9rem, 3.6vw, 3.05rem); line-height: 1.07; max-width: 26ch; margin-top: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-cover { margin-top: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: #fff; }
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.article-body { padding-block: clamp(36px, 4vw, 60px); font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); color: var(--ink); margin-top: 2.1em; line-height: 1.2; }
.article-body h3 { font-size: 1.2rem; color: var(--ink); margin-top: 1.8em; font-family: var(--font-body); font-weight: 600; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.6em; line-height: .82;
  padding: 6px 10px 0 0; color: var(--clay);
}
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body li + li { margin-top: .45em; }
.article-body a { color: var(--clay); border-bottom: 1px solid var(--line-2); }
.article-body a:hover { border-color: var(--clay); }
.article-body blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--clay);
  font-family: var(--font-display); font-size: 1.28rem; line-height: 1.5; color: var(--ink);
}
.article-body table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--paper-2); font-weight: 500; }

.toc { border: 1px solid var(--line); background: var(--paper-2); padding: 22px 24px; margin-bottom: 40px; }
.toc h2 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: t; display: grid; gap: 8px; font-size: .93rem; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 22px 1fr; }
.toc li::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: .72rem; color: var(--clay); padding-top: 3px; }
.toc a:hover { color: var(--clay); }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 112px); }
.cta-band .eyebrow { color: #d99a72; }
.cta-band .eyebrow::before { background: #d99a72; }
.cta-band h2 { font-size: var(--fs-h2); max-width: 22ch; margin-top: 16px; }
.cta-band p { color: #c9bfb3; max-width: 56ch; margin-top: 16px; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); margin-top: 28px; }
.cta-band .btn:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.cta-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 40px; align-items: end; }
.cta-grid ul { list-style: none; display: grid; gap: 12px; font-size: var(--fs-sm); color: #c9bfb3; }
.cta-grid li { display: flex; gap: 10px; align-items: baseline; }
.cta-grid li::before { content: ""; width: 6px; height: 6px; background: #d99a72; flex: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, .8fr)); gap: clamp(24px, 4vw, 56px); }
.footer-grid h3 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; font-size: var(--fs-sm); }
.footer-grid a:hover { color: var(--clay); }
.footer-about p { font-size: var(--fs-sm); color: var(--muted); max-width: 34ch; margin-top: 14px; }
.footer-bottom {
  margin-top: clamp(36px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); letter-spacing: .06em;
}

/* ---------- 404 ---------- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.error-page h1 { font-size: clamp(4rem, 14vw, 9rem); line-height: 1; color: var(--sand-deep); }

/* ---------- lightbox ---------- */
dialog.lightbox {
  border: 0; padding: 0; background: var(--paper); max-width: min(96vw, 1100px); width: 100%;
}
dialog.lightbox::backdrop { background: rgba(31, 27, 23, .82); }
dialog.lightbox img { width: 100%; height: auto; }
dialog.lightbox .lb-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px;
  border: 0; background: var(--paper); cursor: pointer; font-size: 1.1rem; line-height: 1;
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-main { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-plate { order: -1; max-height: none; display: flex; align-items: center; justify-content: center; padding: 14px; }
  .hero-plate img { width: auto; height: 42vh; aspect-ratio: auto; object-fit: contain; }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-figure img { aspect-ratio: auto; height: 46vh; width: 100%; object-fit: contain; }
  .cta-grid { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 44px minmax(0, 1fr); }
  .post-row time { grid-column: 2; }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .cat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-strip a:nth-child(3n) { border-right: 1px solid var(--line); }
  .cat-strip a:nth-child(2n) { border-right: 0; }
  .cat-strip a { min-height: 112px; padding: 16px; }
  .journal-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta dd { font-size: 1.25rem; }
  .article-body p:first-of-type::first-letter { font-size: 3em; }
  .pdp-thumbs { grid-template-columns: repeat(4, 1fr); }
  .section-head { align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================================
   page-level components
   ========================================================================== */
.section--tight { padding-block: clamp(36px, 4.5vw, 72px) var(--sp-section); }

.grid-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.grid-why > div { border-top: 1px solid var(--line-2); padding-top: 18px; }
.grid-why .num,
.grid-usecase .num {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .16em;
  color: var(--clay); display: block; margin-bottom: 12px;
}
.grid-why h3, .grid-usecase h3 { font-size: 1.12rem; margin-bottom: 10px; }
.grid-why p, .grid-usecase p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

.grid-usecase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.grid-usecase a {
  display: block; border: 1px solid var(--line); padding: clamp(22px, 2.6vw, 34px);
  min-height: 200px; transition: background-color .2s ease, border-color .2s ease;
}
.grid-usecase a:hover { background: var(--paper-2); border-color: var(--line-2); }

.split-2 {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}

.swatches {
  display: flex; flex-wrap: wrap; gap: 22px; padding: 14px 16px;
  border: 1px solid var(--line); background: var(--white);
}
.swatches > div { display: flex; align-items: center; gap: 9px; }
.dot {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 23, .16);
}
.swatches .lab {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}

.link-list { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; }

.related-block { border-top: 1px solid var(--line-2); padding-top: 32px; margin-bottom: var(--sp-section); }

.h2-sm { font-size: var(--fs-h2); margin-top: 14px; }
.lede.sm { font-size: 1rem; }

/* utility spacing */
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; } .mt-22 { margin-top: 22px; } .mt-26 { margin-top: 26px; }
.mt-28 { margin-top: 28px; } .mt-36 { margin-top: 36px; } .mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.pt-26 { padding-top: 26px; }
.center { text-align: center; }
.center-actions { justify-content: center; }

@media (max-width: 1180px) {
  .grid-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .grid-usecase { grid-template-columns: 1fr; }
  .grid-usecase a { min-height: 0; }
  .split-2 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .grid-why { grid-template-columns: 1fr; gap: 22px; }
}

@media print {
  .site-header, .nav-drawer, .cta-band, .site-footer, .crumbs { display: none; }
  body { background: #fff; }
}
