/* ==========================================================================
   Yueteng Bamboo Culture — Global site
   Design language: warm paper, charcoal ink, bamboo-amber accent.
   Editorial serif headlines + neutral sans body (US/EU B2B convention).
   ========================================================================== */


/* ---------- type: self-hosted, latin + latin-ext ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-300-600-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* metric-matched fallbacks: the swap no longer moves the layout */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 107.2%;
  ascent-override: 99.4%;
  descent-override: 106%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Times New Roman"), local("Times");
  size-adjust: 83.3%;
  ascent-override: 132.1%;
  descent-override: 169.3%;
  line-gap-override: 0%;
}

:root {
  --paper: #faf8f3;
  --paper-2: #f1ece1;
  --paper-3: #e8e1d2;
  --ink: #14140f;
  --ink-2: #3c3c32;
  --ink-3: #6e6e60;
  --line: rgba(20, 20, 15, 0.13);
  --line-strong: rgba(20, 20, 15, 0.28);
  --amber: #b07d33;
  --amber-soft: #d9b071;
  --forest: #1b241b;
  --forest-2: #232e22;
  --white: #fff;

  --serif: "Instrument Serif", "Serif Fallback", "Times New Roman", Georgia, serif;
  --sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 132px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

h1 { font-size: clamp(2.3rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

::selection { background: var(--amber-soft); color: var(--ink); }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--forest); color: #efeadb; }
.section--line-top { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head p { color: var(--ink-3); max-width: 52ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section--dark .eyebrow { color: var(--amber-soft); }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}
.section--dark .lede { color: rgba(239, 234, 219, 0.78); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--forest); }

.btn--amber { background: #8f6226; color: #fff; }
.btn--amber:hover { background: #7a5220; }


.btn--ghost { border-color: var(--line-strong); color: inherit; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(20, 20, 15, 0.04); }

.section--dark .btn--ghost:hover { border-color: #efeadb; background: rgba(255, 255, 255, 0.06); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover { gap: 14px; border-color: var(--amber); color: var(--amber); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding-block: 20px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              border-color 0.4s var(--ease), color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--paper);
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
  padding-block: 13px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__logo {
  width: 40px;
  height: 40px;
  padding: 4px;
  flex: none;
  display: block;
  background: var(--paper);
  border-radius: 50%;
}
.brand__mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand__sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1.3;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.86;
  position: relative;
  padding-block: 4px;
  transition: opacity 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { width: 100%; }

/* dropdown */
.nav > li { position: relative; display: flex; align-items: center; }
.submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  min-width: 250px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(20, 20, 15, 0.09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.has-menu:hover .submenu,
.has-menu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.submenu a {
  display: block;
  padding: 10px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.82;
}
.submenu a:hover { background: var(--paper-2); opacity: 1; }
.submenu a::after { display: none; }
.has-menu > a { display: inline-flex; align-items: center; gap: 6px; }
.has-menu > a::before {
  content: "";
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  order: 2;
  opacity: 0.6;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 12px 20px; font-size: 0.76rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid currentColor;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 16px; height: 1px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 16px; height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  padding-top: 118px;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 15, 10, 0.62) 0%, rgba(12, 15, 10, 0.30) 40%, rgba(12, 15, 10, 0.86) 100%),
    linear-gradient(90deg, rgba(12, 15, 10, 0.74) 0%, rgba(12, 15, 10, 0.06) 72%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(28px, 4vw, 48px);
}
.hero__content { max-width: 640px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: italic;
  color: #f2d3a0;
}
.hero .eyebrow { color: #e5bf85; }
.hero__desc {
  max-width: 46ch;
  color: rgba(250, 248, 243, 0.86);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn--ghost { border-color: rgba(250, 248, 243, 0.5); color: var(--paper); }
.hero .btn--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.1); }

.hero-stats {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(250, 248, 243, 0.26);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero-stats div {
  padding: 22px 0 4px;
  border-left: 1px solid rgba(250, 248, 243, 0.2);
  padding-left: clamp(14px, 2vw, 26px);
}
.hero-stats div:first-child { border-left: 0; padding-left: 0; }
.hero-stats b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-stats span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.7);
}

/* ---------- trust strip ---------- */
.trust {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.trust__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  padding-block: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #55554a;
}
.trust__inner strong { color: var(--ink); font-weight: 500; }
.trust__sep { width: 1px; height: 14px; background: var(--line-strong); }

/* ---------- solution cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body {
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card__index {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--amber);
}
.card__body p { color: var(--ink-3); font-size: 0.98rem; }
.card__foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.card__foot svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.card:hover .card__foot svg { transform: translateX(5px); }

/* ---------- project mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 4 / 5;
}
.tile--wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.tile--tall { aspect-ratio: 3 / 4; }
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 8, 0) 42%, rgba(10, 12, 8, 0.74) 100%);
  opacity: 0.92;
}
.tile:hover img { transform: scale(1.05); }
.tile__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: clamp(16px, 2vw, 26px);
  color: #f7f3e8;
}
.tile__meta span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 8px;
}
.tile__meta h3 { font-size: clamp(1.1rem, 1.6vw, 1.45rem); }

/* ---------- split / feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.split--media-right .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split__media figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 12px;
}
.section--dark .split__media figcaption { color: rgba(239, 234, 219, 0.55); }

.feature-list { display: grid; gap: 0; margin-top: 30px; }
.feature-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.section--dark .feature-list li { border-color: rgba(239, 234, 219, 0.15); }
.feature-list b {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--amber);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.feature-list h3, .process h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
.feature-list h3 { margin-bottom: 4px; }
.feature-list p { font-size: 0.95rem; color: var(--ink-3); }
.section--dark .feature-list p { color: rgba(239, 234, 219, 0.62); }

/* ---------- process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.section--dark .process { border-color: rgba(239, 234, 219, 0.18); }
.process li {
  padding: clamp(20px, 2.4vw, 30px) clamp(14px, 1.6vw, 22px) 0;
  border-left: 1px solid var(--line);
}
.process li:first-child { border-left: 0; padding-left: 0; }
.section--dark .process li { border-color: rgba(239, 234, 219, 0.18); }
.process b {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--amber);
  margin-bottom: 14px;
  line-height: 1;
}
.process h3 { margin-bottom: 8px; }
.process p { font-size: 0.92rem; color: var(--ink-3); }
.section--dark .process p { color: rgba(239, 234, 219, 0.62); }

/* ---------- quote / credential ---------- */
.credential {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.credential img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.credential blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.credential blockquote::before {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--amber);
  margin-bottom: 26px;
}
.credential cite {
  display: block;
  margin-top: 26px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section--dark .credential cite { color: rgba(239, 234, 219, 0.6); }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: 0;
  padding: 24px 0;
  text-align: left;
  cursor: pointer;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.accordion__trigger:hover { color: var(--amber); }
.accordion__icon {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  position: relative;
  margin-top: 5px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.accordion__icon::before { top: 50%; left: 0; width: 16px; height: 1px; transform: translateY(-50%); }
.accordion__icon::after { left: 50%; top: 0; width: 1px; height: 16px; transform: translateX(-50%); }
.accordion__item.is-open .accordion__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p {
  color: var(--ink-3);
  max-width: 78ch;
  padding-bottom: 26px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--forest);
  color: #f2ede0;
  overflow: hidden;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 100px);
}
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: rgba(242, 237, 224, 0.7); max-width: 46ch; margin-top: 16px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(120px, 15vw, 190px);
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 {
  max-width: 24ch;
  font-size: clamp(2.15rem, 4.6vw, 3.9rem);
  line-height: 1.04;
}
.page-hero p {
  margin-top: 24px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--amber); }

/* ---------- stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stats-band div {
  padding: clamp(20px, 3vw, 34px) clamp(14px, 2vw, 26px);
  border-left: 1px solid var(--line);
}
.stats-band div:first-child { border-left: 0; padding-left: 0; }
.stats-band b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 10px;
}
.stats-band span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  font-weight: 500;
  color: var(--ink);
  width: 34%;
}
.spec-table td { color: var(--ink-3); }
.spec-table caption {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 14px;
}

/* ---------- filter chips ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(26px, 4vw, 44px);
}
.chip {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: none;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.product:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.product__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.product:hover .product__media img { transform: scale(1.04); }
.product__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 22px;
  flex: 1;
}
.product__body h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}
.product__body p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.product__price {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.product__price em {
  font-style: normal;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.78rem;
}

/* ---------- form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--amber);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(20, 20, 15, 0.35); }

.form-note {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 18px;
}
.form-status {
  font-size: 0.85rem;
  margin-top: 16px;
  min-height: 1.2em;
}
.form-status.is-error { color: #a33; }
.form-status.is-ok { color: #2c6b3f; }

/* honeypot: off-canvas for people, still tempting for bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- cookie bar ---------- */
.cookie {
  position: fixed;
  left: var(--gutter);
  bottom: 20px;
  z-index: 98;
  max-width: 430px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(20, 20, 15, 0.14);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie p { margin: 0 0 14px; }
.cookie a { border-bottom: 1px solid var(--line-strong); }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie__actions button {
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.cookie__actions button + button {
  background: none;
  color: var(--ink);
  border-color: var(--line-strong);
}
@media (max-width: 620px) {
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- contact cards ---------- */
.contact-list { display: grid; gap: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt, .contact-list .label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-list a { border-bottom: 1px solid var(--line-strong); }
.contact-list a:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.timeline b {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--amber);
}
.timeline p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- social icons ---------- */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(239, 234, 219, 0.24);
  border-radius: 50%;
  color: rgba(239, 234, 219, 0.72);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease), background 0.3s var(--ease);
}
.social a:hover {
  color: var(--amber-soft);
  border-color: var(--amber-soft);
  transform: translateY(-2px);
}
.social svg { width: 16px; height: 16px; }

/* footer link lists are grids — the icon row must stay a single row */
.site-footer .social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social--light a {
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.social--light a:hover {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(176, 125, 51, 0.06);
}

.social-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--forest);
  color: rgba(239, 234, 219, 0.72);
  padding-top: clamp(48px, 6vw, 80px);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
.site-footer h3 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 234, 219, 0.62);
  margin-bottom: 16px;
  font-weight: 500;
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: var(--amber-soft); }
.footer-brand .brand { color: #efeadb; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; font-size: 0.9rem; color: rgba(239, 234, 219, 0.6); }
.footer-bottom {
  border-top: 1px solid rgba(239, 234, 219, 0.14);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(239, 234, 219, 0.62);
}

/* ---------- reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .process li:nth-child(odd) { padding-right: clamp(16px, 3vw, 30px); }
  .process li:nth-child(even) { border-left: 1px solid var(--line); padding-left: clamp(16px, 3vw, 30px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  /* the solid header's backdrop-filter turns into the containing block for the
     fixed menu panel, which squashed the full-screen menu into a header-high
     strip and piled every link on top of the page text — clear it while open */
  body.nav-open .site-header {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* the close button lives inside the header, so the header has to sit above
       the panel for it to stay reachable */
    z-index: 97;
  }
  body.nav-open .brand { opacity: 0; pointer-events: none; }

  body.nav-open .nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 95;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--gutter) + 62px) var(--gutter) calc(var(--gutter) + 20px);
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.nav-open .nav > li {
    width: 100%;
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
  }
  body.nav-open .nav a {
    color: var(--ink);
    font-size: 1.5rem;
    font-family: var(--serif);
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
  }
  body.nav-open .nav a[aria-current="page"] { color: var(--amber); }
  body.nav-open .nav a::after { display: none; }
  body.nav-open .nav-toggle { position: fixed; top: 22px; right: var(--gutter); z-index: 96; color: var(--ink); }
  /* hamburger becomes a close cross while the menu is open */
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
  body.nav-open .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: none;
    padding: 0 0 0 2px;
    min-width: 0;
    display: grid;
    gap: 0;
  }
  body.nav-open .submenu a { font-size: 1rem; opacity: 0.6; padding: 6px 0; }
  body.nav-open .has-menu { flex-direction: column; align-items: flex-start; gap: 2px; }
  body.nav-open .has-menu > a::before { display: none; }

  .section-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .credential { grid-template-columns: 1fr; }
  .credential img { aspect-ratio: 16 / 10; max-height: 380px; }
  .cards { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(250, 248, 243, 0.2); }
  .form-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 80px 1fr; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .brand__sub { display: none; }
  .hero { min-height: 88svh; }
  .hero__content { max-width: 100%; }
  .mosaic { grid-template-columns: 1fr; }
  .tile, .tile--wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .tile--tall { aspect-ratio: 4 / 3; }
  .stats-band { grid-template-columns: 1fr; }
  .stats-band div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-table th { width: 42%; }
  .products { grid-template-columns: 1fr; }
  /* two photo columns plus two caption lines per photo is too tight on a phone */
  .gallery { grid-template-columns: 1fr; gap: 26px; }
  .gallery__item--wide { grid-column: auto; }
}


/* ---------- case study ---------- */
.case-hero { position: relative; background: #10140e; }
.case-hero > img {
  display: block;
  width: 100%;
  height: clamp(340px, 54vw, 640px);
  object-fit: cover;
  opacity: 0.88;
}
.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 15, 10, 0.70) 0%, rgba(12, 15, 10, 0.08) 16%, rgba(12, 15, 10, 0.50) 54%, rgba(12, 15, 10, 0.90) 100%);
  pointer-events: none;
}
.case-hero__inner {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding-bottom: clamp(26px, 4.6vw, 54px);
  color: var(--paper);
}
.case-hero .breadcrumb a,
.case-hero .breadcrumb span { color: rgba(246, 242, 232, 0.9); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.case-hero .breadcrumb a:hover { color: var(--amber-soft); }
.case-hero .eyebrow { color: var(--amber-soft); margin-top: 20px; }
.case-hero h1 {
  color: var(--paper);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  max-width: 24ch;
  margin: 10px 0 0;
}
.case-hero__meta {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 234, 219, 0.78);
}

.case-intro { padding-bottom: 0; }
.case-outro { padding-top: 0; }
.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}
.case-body__text p { color: var(--ink-2); margin-top: 18px; }
.case-body__text .lede { margin-top: 0; color: var(--ink); }
.case-body__link { margin-top: 26px; font-size: 0.9rem; }
.case-body__link a { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.case-body__link a:hover { color: var(--amber); border-color: var(--amber); }

.case-facts dl { margin-top: 18px; border-top: 1px solid var(--line); }
.case-facts dl > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.case-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.case-facts dd { margin: 0; font-size: 0.9rem; color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 14px;
  margin-top: clamp(22px, 3vw, 38px);
}
.gallery__item { margin: 0; background: none; }
.gallery__frame { display: block; overflow: hidden; background: #ebe6da; }
.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--wide img { aspect-ratio: 16 / 9; }
.gallery__cap {
  margin-top: 10px;
  padding-right: 8px;
  display: grid;
  gap: 4px;
}
.gallery__cap-en {
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.gallery__cap-zh {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--ink-3);
  opacity: 0.78;
  letter-spacing: 0.02em;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-nav a { display: grid; gap: 6px; }
.case-nav span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case-nav strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}
.case-nav a:hover strong { color: var(--amber); }
.case-nav__next { text-align: right; }

@media (max-width: 860px) {
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .case-facts { order: -1; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__item--wide img { aspect-ratio: 16 / 10; }
  .case-nav { flex-direction: column; gap: 18px; }
  .case-nav__next { text-align: left; }
}


/* ---------- product detail ---------- */
.page-hero--plain { padding-bottom: clamp(18px, 3vw, 30px); }
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.product-page__lead {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ebe6da;
}
.pgallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.pgallery__item { margin: 0; overflow: hidden; background: #ebe6da; }
.pgallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.pgallery__item:hover img { transform: scale(1.05); }
.product-page__side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.product-page__side .spec-table { margin-top: 4px; }
.product-page__note {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.6;
}
.product-page__side .btn { justify-self: start; }

@media (max-width: 900px) {
  .product-page { grid-template-columns: minmax(0, 1fr); }
  .product-page__side { position: static; }
  .pgallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pgallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}



.case-standfirst { border-bottom: 1px solid var(--line); padding: clamp(22px, 3.4vw, 38px) 0; }
.case-standfirst__label {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.case-standfirst__text {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.85vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 64ch;
}

/* ---------- case study: long-form sections ---------- */
.case-sections { display: grid; gap: clamp(26px, 4.5vw, 52px); }
.case-sections__block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr);
  gap: clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: clamp(18px, 3vw, 30px);
}
.case-sections__block h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  line-height: 1.22;
  max-width: 18ch;
}
.case-sections__body p { color: var(--ink-2); margin-bottom: 14px; }
.case-sections__body p:last-child { margin-bottom: 0; }
.case-inline {
  margin: 26px 0 4px;
}
.case-inline img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-3);
}
.case-inline figcaption {
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--ink-3);
  margin-top: 10px;
}
.case-facts__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ink-3);
}
@media (max-width: 860px) {
  .case-sections__block { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .case-sections__block h2 { max-width: none; }
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-bottom-color: #a33;
}

/* ---------- insights (articles) ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
}
.insight-card { display: flex; flex-direction: column; gap: 12px; }
.insight-card__media {
  display: block;
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 16 / 10;
}
.insight-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.insight-card:hover .insight-card__media img { transform: scale(1.04); }
.insight-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.insight-card__meta span:first-child { color: var(--amber); }
.insight-card h3 { font-size: clamp(1.12rem, 1.5vw, 1.35rem); line-height: 1.22; }
.insight-card p { font-size: 0.92rem; color: var(--ink-2); }

.insight-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.insight-feature__media {
  display: block;
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 16 / 10;
}
.insight-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.insight-feature h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 10px 0 14px; }
.insight-feature p { color: var(--ink-2); }

.insight-cat {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  padding-top: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.insight-cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; }
.insight-cat__head h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.insight-cat__head p { font-size: 0.9rem; color: var(--ink-3); }

.article-hero img {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 560px);
  object-fit: cover;
  background: var(--paper-3);
}
.article-body { max-width: 760px; margin-inline: auto; }
.article-body > * + * { margin-top: 18px; }
.article-body h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  margin-top: clamp(34px, 4vw, 54px);
}
.article-body h3 {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 28px;
}
.article-body p { color: var(--ink-2); line-height: 1.72; }
.article-body ul, .article-body ol { padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { padding-left: 4px; }
.article-body li::marker { color: var(--amber); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { border-bottom: 1px solid var(--line-strong); }
.article-figure { margin: clamp(26px, 4vw, 42px) 0; }
.article-figure img { width: 100%; height: auto; display: block; background: var(--paper-3); }
.article-figure figcaption { font-size: 0.76rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.article-takeaway {
  border-left: 2px solid var(--amber);
  padding: 2px 0 2px 18px;
  color: var(--ink);
  font-size: 1.02rem;
}
.article-table { margin-top: 26px; }
/* product tables pin the first column to 34%; an article table has four or
   five columns and reads better distributed by content */
.article-table .spec-table { font-size: 0.9rem; }
.article-table .spec-table th,
.article-table .spec-table th:first-child { width: auto; }
.article-table .spec-table th:first-child { width: 20%; }
.article-table .spec-table th,
.article-table .spec-table td { padding-right: 24px; }
.article-table .spec-table th:last-child,
.article-table .spec-table td:last-child { padding-right: 0; }
/* a four-column spec table is wider than a phone; let the table scroll
   inside its own box instead of pushing the whole document sideways */
.article-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.article-table__scroll::-webkit-scrollbar { height: 6px; }
.article-table__scroll::-webkit-scrollbar-thumb { background: var(--line-strong); }
.article-table figcaption { font-size: 0.76rem; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 700px) {
  /* on a phone a four-column table is unreadable even with scrolling, so each
     row becomes a small card: the subject, then label/value pairs */
  .article-table__scroll { overflow-x: visible; }
  .article-table__scroll .spec-table { min-width: 0; font-size: 0.9rem; }
  .article-table__scroll .spec-table thead { display: none; }
  .article-table__scroll .spec-table tr {
    display: block;
    padding: 16px 0 14px;
  }
  .article-table__scroll .spec-table td {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 12px;
    padding: 0 0 7px;
    border: 0;
  }
  .article-table__scroll .spec-table td::before {
    content: attr(data-label);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    line-height: 1.9;
  }
  .article-table__scroll .spec-table td:first-child {
    display: block;
    padding-bottom: 8px;
    font-weight: 600;
    color: var(--ink);
    font-size: 1rem;
  }
  .article-table__scroll .spec-table td:first-child::before { display: none; }
}
.insight-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.insight-related a { display: block; border-top: 1px solid var(--line); padding-top: 12px; font-size: 0.95rem; }
.insight-related span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-feature { grid-template-columns: 1fr; }
  .insight-related { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .insight-grid { grid-template-columns: 1fr; }
}
.brand { flex: none; }
.brand__sub { white-space: nowrap; }
.header-actions { flex: none; }
.header-actions .btn { white-space: nowrap; }

@media (max-width: 1180px) {
  .nav { gap: clamp(10px, 1.4vw, 18px); }
  .nav a { font-size: 0.74rem; letter-spacing: 0.07em; }
}

@media (max-width: 1180px) {
  .brand__sub { display: none; }
}

/* ---------- product gallery slider ---------- */
.pslider { display: grid; gap: 12px; }
.pslider__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  overflow: hidden;
}
.pslider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.pslider__slide.is-active { opacity: 1; }
.pslider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslider__bar { display: flex; align-items: center; gap: 14px; }
.pslider__nav {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.pslider__nav:hover { border-color: var(--ink); background: rgba(0, 0, 0, 0.03); }
.pslider__count { font-size: 0.76rem; letter-spacing: 0.12em; color: var(--ink-3); }
.pslider__count b { color: var(--ink); font-weight: 500; }
.pslider__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.pslider__thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}
.pslider__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslider__thumb.is-active,
.pslider__thumb:hover { opacity: 1; border-color: var(--ink); }
.pslider:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.pdetails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.pdetail { margin: 0; }
.pdetail img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--paper-3);
}
.product-prose p { color: var(--ink-2); line-height: 1.72; margin-bottom: 14px; }
.product-prose p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .pdetails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pslider__thumb { flex-basis: 60px; width: 60px; height: 60px; }
}

/* ---------- process pages (how we work, ordering, cost) ---------- */
.split { align-items: start; }
.split--flip > div:first-child { order: 2; }
@media (max-width: 860px) {
  .split--flip > div:first-child { order: 0; }
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 44px);
}
.step {
  background: var(--paper);
  padding: clamp(20px, 2.6vw, 30px);
  display: grid;
  align-content: start;
  gap: 8px;
}
.step__n {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.step h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
}
.step p { font-size: 0.9rem; line-height: 1.65; color: var(--ink-2); }
.step__you {
  font-size: 0.82rem !important;
  color: var(--ink-3) !important;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
}
.step__you::before {
  content: "You provide: ";
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.case-body__link { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; }
.case-body__sep { color: var(--ink-3); }
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 26px;
}
/* borders on the cells rather than a background behind the gaps, so a part
   filled last row does not leave a grey block */
.pgrid__item {
  padding: 20px 22px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pgrid__item h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 6px;
}
.pgrid__item p { font-size: 0.88rem; line-height: 1.62; color: var(--ink-2); }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .pgrid { grid-template-columns: 1fr; }
  .pgrid__item { padding: 16px 18px 18px; }
}

/* ---------- product detail: one continuous column ---------- */
.pbody {
  max-width: 780px;
  margin-inline: auto;
}
.pbody h2 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  line-height: 1.2;
  margin-top: clamp(36px, 5vw, 60px);
}
.pbody h2:first-child { margin-top: 0; }
.pbody p {
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 15px;
}
.pbody p.lede {
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.7;
}
.pbody__list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 9px;
}
.pbody__list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  line-height: 1.7;
}
.pbody__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 1px;
  background: var(--amber);
}
.pbody__list b,
.pbody__steps b { color: var(--ink); font-weight: 600; }
.pbody__steps {
  counter-reset: pstep;
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 12px;
}
.pbody__steps li {
  counter-increment: pstep;
  position: relative;
  padding-left: 38px;
  color: var(--ink-2);
  line-height: 1.7;
}
.pbody__steps li::before {
  content: counter(pstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.12em;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}

/* the long detail run: panels butted together, no gaps, no captions */
.pdetail-flow {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 0;
}
.pdetail-flow__panel {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.pdetail-flow__panel img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper-3);
}
@media (max-width: 760px) {
  .pbody { max-width: none; }
  .pbody__steps li { padding-left: 32px; }
}
