/* ============================================================
   Meier Spa — site stylesheet
   Breakpoints: 375 base → 560 → 860 → 1180
   ============================================================ */

/* ---------- self-hosted fonts ---------- */
@font-face {
  font-family: "Meier Serif";
  src: url("../font/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Meier Serif";
  src: url("../font/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Meier Sans";
  src: url("../font/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Meier Sans";
  src: url("../font/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Meier Sans";
  src: url("../font/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --ink: #12171a;
  --ink-2: #39434a;
  --ink-3: #6c777e;
  --paper: #fbfbf9;
  --paper-2: #f1f1ec;
  --paper-3: #e7e8e1;
  --line: #d9dad3;
  --line-strong: #b9bcb4;
  --teal: #0e5449;
  --teal-deep: #093a33;
  --teal-soft: #dfeae6;
  --brass: #9a7c48;
  --brass-soft: #ece3d2;
  --white: #ffffff;

  --serif: "Meier Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", serif;
  --sans: "Meier Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: 20px;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4.5rem;
  --s8: 6.5rem;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 560px) { :root { --gutter: 28px; } }
@media (min-width: 860px) { :root { --gutter: 40px; --s7: 5.5rem; --s8: 8rem; } }

/* ---------- 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(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure, table { margin: 0; }
table { border-collapse: collapse; width: 100%; }
input, textarea, select { font: inherit; color: inherit; }

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

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}
h1, .h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 7.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 3.6vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
h4, .h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.4;
}
.lead {
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 62ch;
}
@media (min-width: 860px) { .lead { font-size: 1.09rem; } }
.body-copy { color: var(--ink-2); max-width: 68ch; }
.small { font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--s6); }
@media (min-width: 860px) { .section { padding-block: var(--s7); } }
.section--tight { padding-block: var(--s5); }
.section--ink { background: var(--ink); color: #f2f2ee; }
.section--paper2 { background: var(--paper-2); }
.hair { border-top: 1px solid var(--line); }

.sec-head { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.sec-head h2 { max-width: 22ch; }
.sec-head p { color: var(--ink-3); max-width: 58ch; font-size: 0.95rem; }
@media (min-width: 860px) {
  .sec-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--s6);
    margin-bottom: var(--s6);
  }
  .sec-head p { padding-bottom: 0.35rem; }
}

.split { display: grid; gap: var(--s5); }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
  .split--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--narrow { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; min-width: 0; }
.brand svg { flex: none; }
.brand-text { display: grid; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--teal); }
.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  line-height: 1.3;
  margin-top: 2px;
  display: none;
}
@media (min-width: 560px) { .brand-sub { display: block; } }

.nav {
  display: none;
  align-items: center;
  gap: 1.55rem;
}
@media (min-width: 980px) { .nav { display: flex; } }
.nav a {
  font-size: 0.88rem;
  color: var(--ink-2);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--teal); }

.head-cta { display: none; }
@media (min-width: 980px) { .head-cta { display: inline-flex; } }

/* mobile menu: native <details>, works without JS */
.menu { margin-right: -6px; }
.menu > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary span { display: block; width: 20px; height: 1px; background: var(--ink); position: relative; }
.menu > summary span::before, .menu > summary span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: var(--ink);
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.menu > summary span::before { top: -6px; }
.menu > summary span::after { top: 6px; }
.menu[open] > summary span { background: transparent; }
.menu[open] > summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] > summary span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 980px) { .menu { display: none; } }

.drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -22px rgba(18, 23, 26, .45);
}
.drawer .wrap { padding-block: var(--s2) var(--s4); }
.drawer nav { display: grid; }
.drawer nav a {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer nav a::after { content: "→"; color: var(--ink-3); font-size: 0.85rem; }
.drawer .drawer-cta { margin-top: var(--s3); width: 100%; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #f4f4ef; color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--inline { padding: 0; min-height: 0; border-bottom: 1px solid var(--ink); border-radius: 0; }

/* category filter: a tidy matrix, no orphan chip on its own line */
.chip-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chip-grid .btn { width: 100%; padding-inline: 0.6rem; font-size: 0.86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
}
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- hero ---------- */
.hero { padding-block: var(--s5) var(--s5); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .hero { padding-block: var(--s6) var(--s7); } }
.hero-grid { display: grid; gap: var(--s5); }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: var(--s6); align-items: center; }
}
.hero-copy { display: grid; gap: var(--s4); align-content: start; }
.hero-copy h1 { max-width: 15ch; }
.hero-copy .lead { max-width: 46ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem;
  font-size: 0.82rem; color: var(--ink-3);
}
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 55%;
}
@media (min-width: 980px) { .hero-figure img { aspect-ratio: 5 / 6; } }
.hero-figure figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.75rem 0.9rem;
  background: rgba(18, 23, 26, 0.82);
  color: #e9ece9;
  font-size: 0.76rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

/* ---------- fact band ---------- */
.fact-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 700px) { .fact-band { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact {
  padding: var(--s3) var(--s3) var(--s3);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
  align-content: start;
  background: var(--paper);
}
.fact strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fact span { font-size: 0.79rem; color: var(--ink-3); line-height: 1.4; }

/* ---------- answer box / summary ---------- */
.brief {
  border-top: 2px solid var(--teal);
  background: var(--paper-2);
  padding: var(--s4);
  display: grid;
  gap: var(--s2);
}
.brief h2, .brief h3 { font-size: 0.95rem; font-family: var(--sans); font-weight: 600; }
.brief p { font-size: 0.94rem; line-height: 1.65; color: var(--ink-2); margin: 0; }

/* ---------- cards / lists ---------- */
.caps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cap {
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: var(--s2);
}
.cap h3 { margin-bottom: 0.1rem; }
.cap p { color: var(--ink-2); font-size: 0.93rem; max-width: 44ch; }
.cap dl { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-size: 0.8rem; color: var(--ink-3); }
.cap dl div { display: flex; gap: 0.4rem; }
.cap dl dt { color: var(--ink-3); }
.cap dl dd { margin: 0; color: var(--ink-2); font-weight: 500; }
@media (min-width: 700px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
  .cap { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1080px) {
  .caps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s4); }
}

.prod-grid {
  display: grid;
  gap: var(--s4) var(--s3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) { .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); } }
@media (min-width: 1080px) { .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod-card { display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.prod-card .thumb {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
}
.prod-card .thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 6%;
  transition: transform .5s var(--ease);
}
.prod-card:hover .thumb img { transform: scale(1.03); }
.prod-card .cat {
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.3;
}
.prod-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.prod-card .desc {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- process ---------- */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: var(--s3);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}
.step-num {
  counter-increment: step;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--teal);
  line-height: 1;
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 0.3rem; }
.step p { font-size: 0.9rem; color: var(--ink-2); max-width: 42ch; }
.step .dur { font-size: 0.78rem; color: var(--brass); margin-top: 0.4rem; }
@media (min-width: 980px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); padding: var(--s4) var(--s3) var(--s4) 0; border-bottom: 0; border-right: 1px solid var(--line); gap: var(--s3); }
  .step:last-child { border-right: 0; }
  .step-num { padding-top: 0; margin-bottom: 0.2rem; }
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  table-layout: fixed;
  font-size: 0.86rem;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 560px) { .data-table { font-size: 0.88rem; } }
.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}
.data-table th {
  font-weight: 600;
  color: var(--ink);
  width: 34%;
  background: var(--paper-2);
}
.data-table td { color: var(--ink-2); }
.data-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.78rem;
  color: var(--ink-3);
  padding-bottom: 0.5rem;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 0.15rem;
}
.faq details[open] { background: var(--paper-2); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  padding: 1.05rem 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sign { flex: none; width: 14px; height: 14px; position: relative; margin-top: 0.35rem; }
.faq summary .sign::before, .faq summary .sign::after {
  content: ""; position: absolute; background: var(--ink-3);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.faq summary .sign::before { left: 0; top: 50%; width: 14px; height: 1px; }
.faq summary .sign::after { left: 50%; top: 0; width: 1px; height: 14px; }
.faq details[open] summary .sign::after { transform: scaleY(0); opacity: 0; }
.faq .answer { padding: 0 0.25rem 1.15rem; font-size: 0.9rem; color: var(--ink-2); max-width: 74ch; }
.faq .answer p + p { margin-top: 0.6rem; }

/* ---------- figures ---------- */
.figure { display: grid; gap: 0.6rem; }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure--product img { aspect-ratio: 1 / 1; object-fit: contain; background: var(--paper-2); padding: 4%; }
.figure--product figcaption { margin-top: 0.6rem; }
.figure figcaption { font-size: 0.79rem; color: var(--ink-3); line-height: 1.5; }
.figure--tall img { aspect-ratio: 4 / 5; }

/* ---------- page hero (interior) ---------- */
.page-head { padding-block: var(--s5) var(--s4); border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .page-head { padding-block: var(--s6) var(--s5); } }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-size: 0.76rem; color: var(--ink-3); margin-bottom: var(--s3);
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--teal); }
.crumbs span { color: var(--line-strong); }
.page-head h1 { max-width: 26ch; margin-bottom: var(--s3); font-size: clamp(1.9rem, 5.6vw, 3.4rem); }
.page-head .lead { max-width: 66ch; }

/* ---------- prose ---------- */
.prose { display: grid; gap: var(--s3); max-width: 72ch; }
.prose h2 { margin-top: var(--s4); font-size: clamp(1.35rem, 3vw, 1.9rem); }
.prose h3 { margin-top: var(--s2); }
.prose p, .prose li { font-size: 0.96rem; line-height: 1.72; color: var(--ink-2); }
.prose ul, .prose ol { display: grid; gap: 0.4rem; padding-left: 1.15rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose blockquote {
  border-left: 2px solid var(--teal);
  padding-left: var(--s3);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
}
.prose a { color: var(--teal); border-bottom: 1px solid var(--teal-soft); }
.prose table { margin-block: var(--s2); }

/* ---------- aside / index list ---------- */
.aside-stack { display: grid; gap: var(--s5); }
.side-panel {
  border-top: 1px solid var(--line-strong);
  padding-top: var(--s3);
  display: grid;
  gap: var(--s3);
}
.side-panel h3 { font-size: 0.86rem; font-weight: 600; color: var(--ink-3); }
.side-links { display: grid; gap: 0.55rem; }
.side-links a { font-size: 0.89rem; color: var(--ink-2); display: flex; justify-content: space-between; gap: 0.6rem; }
.side-links a:hover { color: var(--teal); }
.side-links a span { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: #f4f4f0;
  padding-block: var(--s6);
}
.cta .wrap { display: grid; gap: var(--s4); }
.cta h2 { max-width: 24ch; color: #fff; }
.cta p { color: #c9cec9; max-width: 54ch; font-size: 0.95rem; }
.cta .btn-row { margin-top: var(--s2); }
@media (min-width: 860px) {
  .cta .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: var(--s6); }
  .cta .btn-row { margin-top: 0; justify-content: flex-end; }
}

/* ---------- form ---------- */
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.8rem; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 16px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.form-row { display: grid; gap: var(--s3); }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-note { font-size: 0.76rem; color: var(--ink-3); line-height: 1.5; }
.form-status { font-size: 0.85rem; color: var(--teal); min-height: 1.2em; }

/* ---------- contact detail list ---------- */
.detail-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.detail-list > * {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.detail-list svg { width: 17px; height: 17px; color: var(--teal); margin-top: 0.2rem; }
.detail-list .k { display: block; font-size: 0.74rem; color: var(--ink-3); margin-bottom: 0.1rem; }
.detail-list a[href^="tel"] { font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper-2); padding-block: var(--s5) var(--s4); }
.foot-grid { display: grid; gap: var(--s5); }
@media (min-width: 700px) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.foot-brand { display: grid; gap: var(--s2); align-content: start; }
.foot-brand .brand-name { font-size: 1.3rem; }
.foot-brand p { font-size: 0.82rem; color: var(--ink-3); line-height: 1.6; max-width: 34ch; }
.foot-col { display: grid; gap: 0.5rem; align-content: start; }
.foot-col h4 { font-size: 0.78rem; color: var(--ink-3); font-weight: 600; margin-bottom: 0.2rem; }
.foot-col a, .foot-col span { font-size: 0.84rem; color: var(--ink-2); line-height: 1.5; }
.foot-col a:hover { color: var(--teal); }
.foot-base {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}
@media (min-width: 700px) { .foot-base { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.foot-base .legal { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }

/* ---------- utilities ---------- */
.stack-3 { display: grid; gap: var(--s3); }
.stack-4 { display: grid; gap: var(--s4); }
.stack-5 { display: grid; gap: var(--s5); }
.mt-4 { margin-top: var(--s4); }
.rule { height: 1px; background: var(--line); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--teal); color: #fff; padding: 0.6rem 1rem; }

/* ---------- home carousel (scroll-snap; works without JS) ---------- */
.carousel { position: relative; border-bottom: 1px solid var(--line); background: var(--teal-deep); }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start;
  aspect-ratio: 750 / 860; display: block; overflow: hidden;
}
@media (min-width: 860px) { .carousel-slide { aspect-ratio: 1920 / 720; } }
.carousel-slide img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.carousel-slide--lab img.bg { object-position: 62% center; }
.carousel-slide--line img.bg { object-position: center 35%; }
.carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,58,51,.05) 30%, rgba(9,58,51,.62) 100%);
}
.carousel-caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: var(--s5);
  display: grid; gap: var(--s3); justify-items: start; align-content: end;
  padding-inline: var(--gutter); color: #fff;
}
.carousel-caption > * { max-width: var(--wrap); width: 100%; margin-inline: auto; }
.carousel-caption .kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #e7efe9; margin: 0; }
.carousel-caption h1, .carousel-caption h2 { color: #fff; max-width: 18ch; text-wrap: balance; }
.carousel-caption h1 { font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.08; }
.carousel-caption h2 { font-size: clamp(1.35rem, 3.2vw, 2.1rem); line-height: 1.15; }
.carousel-caption p { color: #eef3ef; max-width: 44ch; margin: 0; }
.carousel-caption .btn { background: #fff; color: var(--teal-deep); border-color: #fff; }
.carousel-caption .btn:hover { background: var(--teal-soft); }
.carousel-dots {
  position: absolute; z-index: 3; left: 50%; bottom: calc(var(--s5) * -1 + var(--s4) + 14px);
  transform: translateX(-50%); display: flex; gap: 10px;
}
.carousel-dot {
  width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; padding: 0;
}
.carousel-dot::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.45); transition: background .2s var(--ease), width .2s var(--ease);
}
.carousel-dot[aria-selected="true"]::before { background: #fff; width: 38px; }
@media (max-width: 859px) {
  .carousel { margin-top: -1px; }
  .carousel-caption { bottom: var(--s4); }
  .carousel-dots { bottom: calc(var(--s4) * -1 + var(--s3) + 12px); }
}

/* ---------- home news / notes cards ---------- */
.news-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
.news-card {
  display: flex; flex-direction: column; gap: var(--s3); height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4);
}
.news-card time { font-size: .8rem; color: var(--ink-3); }
.news-card .topic {
  align-self: flex-start; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--teal-soft); background: var(--teal-soft);
  padding: .25rem .6rem; border-radius: 999px;
}
.news-card h3 { font-size: 1.12rem; line-height: 1.35; margin: 0; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--teal); }
.news-card p { color: var(--ink-2); font-size: .92rem; margin: 0; flex: 1; }
.news-fig { margin: 0 0 var(--s2); }
.news-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
a.news-card { display: grid; gap: .5rem; align-content: start; text-decoration: none; color: inherit; border: 1px solid var(--line); padding: var(--s3); background: #fff; }
a.news-card:hover { border-color: var(--teal); }

/* ---------- news pager ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s5); }
.pager button {
  min-width: 2.4rem; padding: .4rem .7rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.pager button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager button[aria-current] { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- logo & footer ICP ---------- */
.brand-logo { display: block; height: 46px; width: auto; }
@media (min-width: 860px) { .brand-logo { height: 54px; } }
.legal .icp {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: inherit; text-decoration: none; opacity: .85;
}
.legal .icp:hover { opacity: 1; text-decoration: underline; }

/* ---------- print ---------- */
@media print {
  .site-head, .cta, .site-foot, .nav-toggle { display: none; }
  body { background: #fff; }
  .section { padding-block: 1rem; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
