/* VIDACASA 2027 — shared stylesheet */

:root {
  --ink: #000000;
  --body: #444444;
  --muted: #6B6B6B;
  --faint: #8E8E8E;
  --ghost: #A6A6A6;
  --line: #E3E3E3;
  --rule: #EFEFEF;
  --ember: #A8431A;
  --ember-dark: #7E3113;
  --cold: #12557E;
  --ok: #2F7D4F;
  --low: #B4761F;
  --pad: clamp(20px, 4.4vw, 64px);
  --display: Archivo, "Helvetica Neue", sans-serif;
  --text: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: #1a1a1a;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-dark); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0; }

.container { width: 100%; padding-inline: var(--pad); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 28px; }

.nav a.link {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  padding: 10px 0;
}
.nav a.link:hover { color: var(--ember); }
.nav a.link[aria-current="page"] {
  color: var(--ember);
  box-shadow: inset 0 -2px 0 var(--ember);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 1px;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-solid { background: var(--ember); color: #FFFFFF; }
.btn-solid:hover { background: var(--ember-dark); color: #FFFFFF; }
.btn-black { background: var(--ink); color: #FFFFFF; }
.btn-black:hover { background: #262626; color: #FFFFFF; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: #FFFFFF; }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  background: none; border: none;
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* ---------- sections ---------- */

section { scroll-margin-top: 80px; }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: clamp(32px, 4.5vw, 56px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); }
.section-head .note { font-size: 15px; color: var(--muted); }

.rule-top { border-top: 1px solid var(--line); }
.rule-bottom { border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(40px, 5.5vw, 72px);
}
.hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-block: 18px 20px;
}
.hero p { font-size: clamp(16px, 1.35vw, 19px); color: var(--body); max-width: 54ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- media placeholders ---------- */

.media {
  border: 1px solid var(--line);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  min-height: 220px;
}
.media .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.media .desc { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 42ch; }
.media-tall { min-height: clamp(260px, 32vw, 468px); }
.media-card { min-height: 200px; border: none; border-bottom: 1px solid var(--line); }

/* ---------- stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats > div {
  padding: 26px var(--pad) 26px 0;
  border-right: 1px solid var(--line);
}
.stats > div:first-child { padding-left: 0; }
.stats > div + div { padding-left: clamp(16px, 2.5vw, 36px); }
.stats > div:last-child { border-right: none; }
.stats .num {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.15;
  margin-bottom: 6px;
}
.stats .lbl { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.stats > div { min-width: 0; }

/* 2x2 variant for a stats block that sits inside a half-width column */
.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: none; }
.stats-2 > div { padding: 18px 16px 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-2 > div:first-child { padding-left: 20px; }
.stats-2 > div:nth-child(2n) { border-right: none; }
.stats-2 > div:nth-child(n+3) { border-bottom: none; }
.stats-2 .num { font-size: clamp(24px, 2.4vw, 32px); }

/* ---------- cards ---------- */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }

.card {
  border: 1px solid var(--line);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}
.card .pad { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.card p { font-size: 14px; line-height: 1.6; color: var(--body); }
a.card:hover { border-color: var(--ink); }

.platform { border-top: 4px solid var(--ink); }
.platform.hot { border-top-color: var(--ember); }
.platform.cold { border-top-color: var(--cold); }
.platform .pad { padding: 28px; gap: 12px; }
.platform h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 700; }
.platform .kicker { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.platform.hot .kicker { color: var(--ember); }
.platform.cold .kicker { color: var(--cold); }
.platform p { font-size: 15px; }

.specs { border-top: 1px solid var(--rule); margin-top: 4px; }
.specs .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.specs .row:last-child { border-bottom: none; }
.specs .k { font-size: 13px; color: var(--muted); }
.specs .v { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.specs .v.todo { color: var(--ghost); }

/* ---------- elements split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  border: 1px solid var(--line);
}
.split > .copy {
  padding: clamp(28px, 3.4vw, 52px);
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
  border-right: 1px solid var(--line);
}
.split h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1.05; }
.split p { color: var(--body); }
.split .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split .tiles .media { border: none; min-height: 150px; }
.split .tiles .media:nth-child(1),
.split .tiles .media:nth-child(3) { border-right: 1px solid var(--line); }
.split .tiles .media:nth-child(1),
.split .tiles .media:nth-child(2) { border-bottom: 1px solid var(--line); }

/* ---------- shop ---------- */

.product .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product .code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }
.product .stock { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.product .stock.in { color: var(--ok); }
.product .stock.low { color: var(--low); }
.product .price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 2px;
}
.product .price { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--ink); }
.product .dim { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.product p { min-height: 44px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px;
  background: #FFFFFF; border: 1px solid #D6D6D6; border-radius: 1px;
  font-family: var(--text); font-size: 14px; font-weight: 500; color: #1a1a1a;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }

.filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}

/* ---------- table ---------- */

.table-wrap { border: 1px solid var(--line); overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th {
  text-align: left; padding: 15px 22px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); background: #FFFFFF;
}
td { padding: 20px 22px; font-size: 15px; color: var(--body); border-bottom: 1px solid var(--rule); }
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: var(--ink); }
td .todo { font-family: var(--mono); font-size: 14px; color: var(--ghost); }

/* ---------- bands ---------- */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(36px, 4.5vw, 56px);
}
.band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
}
.band-inner .copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.band-inner h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; }
.band-inner p { color: var(--body); }
.band-inner .actions { display: flex; flex-direction: column; gap: 10px; width: 300px; flex: 0 0 auto; }

.reseller {
  border: 1px solid var(--line);
  min-height: 92px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.reseller:hover { border-color: var(--ink); color: var(--ink); }
.reseller .arrow { color: var(--ember); font-size: 18px; }

.callout {
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.callout .copy { flex: 1 1 560px; display: flex; flex-direction: column; gap: 10px; }
.callout h2 { font-size: clamp(22px, 2.4vw, 30px); }
.callout p { color: var(--body); }

.aside-box {
  border: 1px solid var(--line);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.aside-box p { font-size: 14px; color: var(--body); }

.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--faint); }
.crumb a { color: var(--faint); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(36px, 4vw, 48px) clamp(32px, 4vw, 48px);
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { width: 300px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { font-size: 14px; color: var(--muted); }
.footer-cols { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols .h {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}
.footer-cols a { font-size: 14px; color: var(--body); }
.footer-cols a:hover { color: var(--ember); }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
  }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn-sm { margin-top: 14px; }
  .site-header .bar { position: relative; }
  .nav-toggle { display: flex; }

  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .media { order: -1; }
  .grid-3, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .copy { border-right: none; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding-right: 16px; }
  .stats > div:nth-child(2) { border-right: none; }
  .stats > div:nth-child(1), .stats > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(3) { padding-left: 0; }
  .band-inner .actions { width: 100%; }
}

@media (max-width: 620px) {
  .grid, .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .stats > div:last-child { border-bottom: none; }
  .split .tiles { grid-template-columns: minmax(0, 1fr); }
  .split .tiles .media { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .hero .actions .btn { width: 100%; }
  .footer-brand { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- forms ---------- */

.fs { border: none; padding: 0; margin: 0 0 clamp(36px, 4vw, 56px); }
.fs-legend {
  display: flex; align-items: baseline; gap: 14px;
  width: 100%;
  font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 26px;
}
.fs-legend .step { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--ember); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-body {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); padding: 22px 24px; min-height: 100%;
}
.choice-title { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.choice-desc { font-size: 14px; line-height: 1.55; color: var(--muted); }
.choice:hover .choice-body { border-color: var(--ink); }
.choice input:checked + .choice-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--ember); outline-offset: 2px; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.f { display: flex; flex-direction: column; gap: 7px; margin: 0 0 20px; }
.field-grid .f { margin: 0; }
.f label { font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--ember); }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f select, .f textarea {
  width: 100%;
  font-family: var(--text); font-size: 15px; color: #1a1a1a;
  background: #FFFFFF; border: 1px solid #D6D6D6; border-radius: 1px;
  padding: 13px 14px; min-height: 48px;
}
.f textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--ember); outline-offset: 0; border-color: var(--ember); }
.hint { font-size: 13px; color: var(--muted); }

.sub { border: 1px solid var(--line); padding: 20px 22px; margin: 0 0 22px; }
.sub legend { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 8px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; }
.chk { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #1a1a1a; cursor: pointer; line-height: 1.45; padding: 6px 0; }
.chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ember); flex: 0 0 auto; }
.consent { margin: 22px 0 6px; font-size: 14px; }

.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 20px 0 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.panel[hidden] { display: none; }

.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.ladder .stepbox { padding: 26px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ladder .stepbox:last-child { border-right: none; }
.ladder .n { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--ember); }
.ladder h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.ladder p { font-size: 14px; line-height: 1.6; color: var(--body); }

@media (max-width: 900px) {
  .choice-grid, .field-grid { grid-template-columns: minmax(0, 1fr); }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ladder .stepbox:nth-child(2) { border-right: none; }
  .ladder .stepbox:nth-child(1), .ladder .stepbox:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .check-grid { grid-template-columns: minmax(0, 1fr); }
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .ladder .stepbox { border-right: none; border-bottom: 1px solid var(--line); }
  .ladder .stepbox:last-child { border-bottom: none; }
  .submit-row .btn { width: 100%; }
}

/* ---------- graphics ---------- */

.media { padding: 0; min-height: 0; overflow: hidden; }
.media img { width: 100%; height: auto; display: block; }
.media-tall { min-height: 0; border: 1px solid var(--line); }
.media-card { border: none; border-bottom: 1px solid var(--line); min-height: 0; }
.split .tiles .media { min-height: 0; }

.platform-icon { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }

.figure { border: 1px solid var(--line); margin: 0; background: #FFFFFF; }
.figure img { width: 100%; height: auto; display: block; }
.fig-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 13px 18px; border-top: 1px solid var(--line);
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }


/* ---------- brand ---------- */

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo img { display: block; height: 18px; width: auto; }
.logo img.mark { height: 30px; }
.logo-footer img { height: 15px; }
.logo-footer img.mark { height: 26px; }
@media (max-width: 620px) { .logo img { height: 15px; } }

.footer-cols .addr { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 6px; }

/* ---------- product detail pages ---------- */
.hero .kicker-hot { color: var(--ember); } .hero .kicker-cold { color: var(--cold); } .hero .kicker-ink { color: var(--ink); }
.hero .mono { display: block; margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hero .mono + h1 { margin-top: 10px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table th { width: 34%; font-weight: 500; color: var(--muted); }
.spec-table td { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.spec-table td.todo { color: var(--ghost); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.prose-grid h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 12px; }
.prose-grid p { font-size: 15px; line-height: 1.65; color: var(--body); margin-bottom: 12px; }
.prose-grid .hint a { color: var(--ember); }
.aside-box ul.plain { margin: 0; padding-left: 18px; }
.aside-box ul.plain li { font-size: 14px; line-height: 1.6; color: var(--body); }
@media (max-width: 900px) { .spec-table th { width: 42%; } }

/* ---------- photography (no cropping) ---------- */

.media img { width: 100%; height: auto; display: block; object-fit: contain; }
.media-tall img { aspect-ratio: 3 / 2; object-fit: cover; }           /* lifestyle hero only */
.media-card img { aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; background: #FFFFFF; }
.split .tiles .media img { aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; }
.platform-icon { aspect-ratio: 16 / 10; object-fit: contain; padding: 14px; background: #FFFFFF; }
.figure img { width: 100%; height: auto; max-height: none; object-fit: contain; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gallery-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery figure { margin: 0; border: 1px solid var(--line); background: #FFFFFF; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }   /* lifestyle scenes */
.gallery figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-top: 1px solid var(--line); line-height: 1.5; }
.gallery figure:nth-child(1), .gallery figure:nth-child(6), .gallery figure:nth-child(7), .gallery figure:nth-child(8) { grid-column: span 2; }
.gallery figure:nth-child(1) img, .gallery figure:nth-child(6) img, .gallery figure:nth-child(7) img, .gallery figure:nth-child(8) img { aspect-ratio: 2 / 1; }
.gallery-4 figure:nth-child(n) { grid-column: span 1; }
.gallery-4 figure:nth-child(n) img { aspect-ratio: 16 / 10; object-fit: contain; background: #FFFFFF; padding: 8px; }
@media (max-width: 1080px) { .gallery, .gallery-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gallery, .gallery-4 { grid-template-columns: minmax(0, 1fr); } .gallery figure { grid-column: span 1 !important; } .gallery figure img { aspect-ratio: 3 / 2; } }

/* ---------- language switcher ---------- */

.footer-brand .lang { display: inline-flex; align-items: center; gap: 2px; margin-top: 16px; border: 1px solid var(--line); }
.footer-brand .lang a { border-right: 1px solid var(--line); }
.footer-brand .lang a:last-child { border-right: none; }
.lang a { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); padding: 8px 7px; border-radius: 1px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: #FFFFFF; background: var(--ink); }
@media (max-width: 900px) { .lang a { padding: 10px 10px; } }
:lang(zh-Hans) body, :lang(zh-Hans) .btn, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { font-family: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: 0; }
:lang(ja) body, :lang(ja) .btn, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-family: "IBM Plex Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(zh-Hans) .stats .num, :lang(zh-Hans) .stats .lbl, :lang(zh-Hans) .specs .v, :lang(zh-Hans) .card h3, :lang(zh-Hans) .platform .kicker { word-break: keep-all; overflow-wrap: normal; }
:lang(ja) .stats .num, :lang(ja) .stats .lbl, :lang(ja) .specs .v, :lang(ja) .card h3, :lang(ja) .platform .kicker { word-break: keep-all; overflow-wrap: normal; }
:lang(ja) .stats .lbl { white-space: nowrap; }
@media (max-width: 620px) { :lang(ja) .stats .lbl { white-space: normal; } }

/* ---------- blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { border: 1px solid var(--line); background: #FFFFFF; display: flex; flex-direction: column; color: inherit; }
.post-card:hover { border-color: var(--ink); color: inherit; }
.post-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card-body h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; }
.post-card-body p { font-size: 14px; line-height: 1.6; color: var(--body); }
.post-card-lead { grid-column: span 3; flex-direction: row; }
.post-card-lead img { width: 58%; aspect-ratio: 16 / 10; border-bottom: none; border-right: 1px solid var(--line); }
.post-card-lead .post-card-body { justify-content: center; padding: 40px; }
.post-card-lead h2 { font-size: clamp(26px, 2.6vw, 34px); }
.post-card-lead p { font-size: 16px; }

.post-head { padding-top: clamp(32px, 4vw, 56px); }
.post-kicker { color: var(--ember); margin-top: 18px; }
.post-head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; margin-top: 10px; }
.standfirst { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--body); margin-top: 18px; max-width: 70ch; }
.byline { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 18px; padding-bottom: 28px; }
.post-hero img { aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { max-width: 760px; padding-top: 36px; padding-bottom: 48px; }
.post-body p { font-size: 17px; line-height: 1.75; color: #1a1a1a; margin: 0 0 22px; }
.post-body h2 { font-size: 24px; letter-spacing: -0.02em; margin: 36px 0 12px; }
.sources { border-top: 2px solid var(--ink); margin-top: 40px; padding-top: 18px; }
.sources h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.sources ol { padding-left: 20px; margin: 12px 0 0; }
.sources li { font-size: 14px; line-height: 1.6; color: var(--body); margin-bottom: 8px; }
.post-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }

@media (max-width: 1080px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-card-lead { grid-column: span 2; } }
@media (max-width: 720px) { .post-grid { grid-template-columns: minmax(0, 1fr); } .post-card-lead { grid-column: span 1; flex-direction: column; } .post-card-lead img { width: 100%; border-right: none; border-bottom: 1px solid var(--line); } }

/* ---------- footer: legal block and spacing refinements ---------- */

.site-footer { padding-block: clamp(44px, 5vw, 64px) clamp(36px, 4vw, 48px); }
.footer-inner { gap: 44px clamp(40px, 6vw, 96px); align-items: flex-start; }
.footer-brand { width: 320px; gap: 14px; }
.footer-brand p { line-height: 1.6; max-width: 34ch; }
.footer-brand .origin { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.footer-brand .lang { margin-top: 4px; }
.footer-cols { gap: clamp(32px, 5vw, 72px); }
.footer-cols div { gap: 11px; min-width: 120px; }
.footer-cols .h { margin-bottom: 4px; }
.footer-cols a { line-height: 1.4; }

.legal { margin-top: clamp(48px, 5vw, 68px); padding-top: 28px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.legal p { font-size: 12px; line-height: 1.65; color: var(--muted); max-width: none; }
.legal a { align-self: flex-start; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 3px; line-height: 1.4; }
.legal a:hover { color: var(--ember); border-color: var(--ember); }
:lang(zh-Hans) .legal p, :lang(ja) .legal p { line-height: 1.85; letter-spacing: 0.01em; }
:lang(zh-Hans) .legal a, :lang(ja) .legal a { letter-spacing: 0.06em; }
@media (max-width: 620px) { .footer-brand { width: 100%; } .footer-brand p { max-width: none; } .footer-cols div { min-width: 40%; } .legal { margin-top: 36px; } }

/* ---------- blog illustrations: never crop a drawn graphic ---------- */

.post-hero img[src$=".svg"], .post-card-lead img[src$=".svg"] { aspect-ratio: 3 / 2; object-fit: contain; background: #FFFFFF; }

/* ---------- interim notice on pages whose body is still in the original English ---------- */

.notice-lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); padding: 12px 16px; margin: 0 0 28px; }
.notice-lang a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.post-card .en-flag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--faint); margin-left: 8px; }

/* home range cards: whole card is a link, Detail is a non-clickable cue */
a.card.platform { display: block; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.card.platform:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.08); border-color: var(--ink); }
a.card.platform h3, a.card.platform p, a.card.platform .row { color: inherit; }
.card-detail { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
a.card.platform:hover .card-detail { text-decoration: underline; text-underline-offset: 3px; }

/* ---- shop cart + checkout ---- */
.cart-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; border: none; font-family: var(--mono); font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.cart-fab span::before { content: "🛒 "; }
.cart-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 70; }
.cart { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: #fff; z-index: 80; box-shadow: -8px 0 30px rgba(0,0,0,.15); display: flex; flex-direction: column; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--rule); }
.cart-x { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; }
#cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cart-line strong { display: block; font-size: 14px; }
.cart-line .mono { font-size: 11px; color: var(--muted); }
.cart-qty { display: inline-flex; align-items: center; gap: 8px; }
.cart-qty button { width: 26px; height: 26px; border: 1px solid var(--rule); background: #fff; cursor: pointer; font-size: 15px; }
.cart-line-price { text-align: right; font-variant-numeric: tabular-nums; }
.cart-rm { display: block; background: none; border: none; color: var(--ember); font-size: 11px; cursor: pointer; padding: 2px 0 0; }
.cart-foot { border-top: 1px solid var(--rule); padding: 16px 20px 20px; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 8px; }
.cart-note { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.ship { display: grid; gap: 8px; margin-bottom: 12px; }
.ship input, .ship textarea { width: 100%; padding: 10px; border: 1px solid var(--rule); font: inherit; }
.card.product .price { font-size: 18px; font-weight: 600; }
.card.product .stock.in { color: #1a7f37; } .card.product .stock.low { color: var(--ember); }
.cart[hidden], .cart-scrim[hidden], .cart-fab[hidden] { display: none !important; }

/* responsive video embed (blog) */
.video-embed { margin: 28px 0; }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* shop scarcity / lead-time */
.stock-note { color: var(--ember); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
.card.product .stock.urgent { color: var(--ember); font-weight: 600; }

/* discreet staff/admin lock in footer */
.admin-lock { align-self: flex-start; color: var(--muted); opacity: .55; padding: 2px; line-height: 0; border: none; }
.admin-lock:hover { color: var(--ember); opacity: 1; }

/* shop: made-to-order items still shown */
.card.product .stock.made { color: var(--muted); }
.card.product.is-out { opacity: .78; }

/* shop product card photo */
.card.product .shop-media { aspect-ratio: 4 / 3; background: #f4f4f3; overflow: hidden; border-bottom: 1px solid var(--rule); }
.card.product .shop-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card.product .shop-media-ph { display: flex; align-items: center; justify-content: center; }
.card.product .shop-media-ph span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* "Shop" nav item rendered as a clean cart icon (shop page) */
.nav-cart { position: relative; display: inline-flex; align-items: center; padding: 4px 2px; color: var(--ink) !important; border: none !important; line-height: 0; }
.nav-cart:hover { color: var(--ember) !important; }
.nav-cart::after { display: none !important; }
.hdr-count { position: absolute; top: -5px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--ember); color: #fff; border-radius: 8px; font-family: var(--mono); font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }
