/* ==========================================================================
   CAMAND / Kamandi — Whole-house customization
   Base · Layout · Components · Responsive
   ========================================================================== */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
}

:root {
  --ink: #111110;
  --ink-soft: #35332f;
  --muted: #6e6a63;
  --line: #e3ded5;
  --line-dark: rgba(255, 255, 255, 0.16);
  --paper: #faf7f2;
  --paper-2: #f1ece3;
  --white: #ffffff;
  --accent: #d0202f;
  --gold: #a98b62;
  --shell: 1500px;
  --pad: 48px;
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sans: 'Jost', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang='zh-CN'] body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', var(--sans);
  line-height: 1.85;
}

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

figure {
  margin: 0;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

p {
  margin: 0 0 1.2em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: 0.004em;
}

html[lang='zh-CN'] h1,
html[lang='zh-CN'] h2,
html[lang='zh-CN'] h3,
html[lang='zh-CN'] h4 {
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(32px, 3.4vw, 54px);
}

h3 {
  font-size: clamp(22px, 2vw, 30px);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type utilities ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow--muted {
  color: var(--muted);
}

html[lang='zh-CN'] .eyebrow {
  letter-spacing: 0.18em;
}

.lede {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.section {
  padding: 120px 0;
}

.section--tight {
  padding: 84px 0;
}

.section--paper {
  background: var(--paper);
}

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

.section-header {
  max-width: 800px;
  margin-bottom: 64px;
}

.section-header h2 {
  margin: 18px 0 20px;
}

.section-header .lede {
  max-width: 640px;
}

.section-footer {
  margin-top: 52px;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.btn .arrow {
  transition: transform 0.4s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(5px);
}

.btn--solid {
  background: var(--ink);
  color: #fff;
}

.btn--solid:hover {
  background: var(--accent);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--accent);
  color: #fff;
}

.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.link-arrow .arrow {
  transition: transform 0.35s var(--ease);
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.link-arrow:hover .arrow {
  transform: translateX(4px);
}

.link-arrow--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.link-arrow--light:hover {
  color: #fff;
  border-color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px rgba(17, 17, 16, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
}

.nav {
  display: block;
}

.nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav > ul > li {
  position: static;
}

.nav > ul > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 34px 15px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 25px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav > ul > li > a:hover::after,
.nav > ul > li > a.is-active::after {
  transform: scaleX(1);
}

.chev {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
  transition: transform 0.3s var(--ease);
}

.nav li:hover > a .chev,
.nav li:focus-within > a .chev {
  transform: rotate(225deg) translateY(-2px);
}

/* Mega menu */

.mega {
  position: absolute;
  left: 50%;
  top: 100%;
  width: min(1160px, calc(100vw - 48px));
  padding: 36px 40px 40px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px rgba(17, 17, 16, 0.09);
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
}

.nav li:hover > .mega,
.nav li:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 44px;
}

.mega-intro h3 {
  margin: 14px 0 12px;
  font-size: 26px;
  line-height: 1.25;
}

.mega-intro p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.mega-intro .link-arrow {
  margin-top: 22px;
  font-size: 10.5px;
}

.mega-styles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mega-style {
  display: block;
}

.mega-style .frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.mega-style img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.mega-style:hover img {
  transform: scale(1.06);
}

.mega-style span {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.mega-style small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mega-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 32px;
}

.mega-group h4 {
  margin: 4px 0 12px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-group ul {
  list-style: none;
  display: grid;
  gap: 2px;
}

.mega-group a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.mega-group a:hover {
  color: var(--accent);
  border-bottom-color: var(--line);
}

.mega-group a i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.lang a {
  color: var(--muted);
}

.lang a:hover,
.lang a.is-current {
  color: var(--ink);
}

.lang span {
  opacity: 0.4;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0;
  padding: 10px 0;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-toggle .bars {
  width: 26px;
  display: grid;
  gap: 5px;
}

.menu-toggle .bars i {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.menu-toggle[aria-expanded='true'] .bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .bars i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav */

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 95;
  padding: 10px var(--pad) 70px;
  background: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav > ul {
  border-top: 1px solid var(--line);
}

.mobile-nav > ul > li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav > ul > li > a,
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav summary {
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.3s var(--ease);
}

.mobile-nav details[open] summary::after {
  transform: rotate(45deg);
}

.mobile-nav details ul {
  padding: 0 0 12px 14px;
  display: grid;
  gap: 2px;
}

.mobile-nav details a {
  display: block;
  padding: 11px 0;
  font-size: 14px;
  color: var(--muted);
}

.mobile-nav details a:hover {
  color: var(--accent);
}

.mobile-nav .mobile-lang {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mobile-nav .mobile-lang a.is-current {
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(860px, calc(100vh - var(--header-h)));
  overflow: hidden;
  background: #0d0d0c;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: heroZoom 24s var(--ease) both;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.02) 38%,
    rgba(0, 0, 0, 0.55) 78%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 92px;
}

.hero-content > * {
  animation: rise 1s var(--ease) both;
}

.hero-content > .eyebrow {
  animation-delay: 0.1s;
}

.hero-content > h1 {
  animation-delay: 0.22s;
}

.hero-content > .hero-lede {
  animation-delay: 0.34s;
}

.hero-content > .hero-actions {
  animation-delay: 0.46s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  max-width: 1060px;
  margin: 22px 0 26px;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 1.06;
  color: #fff;
}

html[lang='zh-CN'] .hero h1 {
  font-size: clamp(38px, 4.6vw, 74px);
  line-height: 1.28;
}

.hero-lede {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-foot {
  position: absolute;
  right: var(--pad);
  bottom: 46px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hero-foot::before {
  content: '';
  width: 46px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

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

.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  overflow: hidden;
  background: #121110;
  color: #fff;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.38) 0%,
      rgba(0, 0, 0, 0.14) 36%,
      rgba(0, 0, 0, 0.62) 72%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.22) 42%,
      rgba(0, 0, 0, 0) 68%
    );
}

.page-hero .breadcrumb {
  margin-bottom: 16px;
}

.page-hero .shell {
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

.page-hero h1 {
  max-width: 1040px;
  margin: 18px 0 16px;
  font-size: clamp(38px, 4.5vw, 68px);
  color: #fff;
}

html[lang='zh-CN'] .page-hero h1 {
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.3;
}

.page-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16.5px;
}

.page-hero--plain {
  min-height: 380px;
  background: var(--paper);
  color: var(--ink);
}

.page-hero--plain h1 {
  color: var(--ink);
}

.page-hero--plain p {
  color: var(--muted);
}

.page-hero--plain .breadcrumb {
  color: var(--muted);
}

.page-hero--plain .breadcrumb a:hover {
  color: var(--ink);
}

.page-hero--plain .eyebrow {
  color: var(--accent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  opacity: 0.5;
}

/* ---------- Split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
}

.split--top {
  align-items: start;
}

.split-media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.split-media:hover img {
  transform: scale(1.035);
}

.split-media--tall {
  aspect-ratio: 4 / 5;
}

.split-media--wide {
  aspect-ratio: 4 / 3;
}

.split-body h2 {
  margin: 18px 0 24px;
}

.split-body p {
  font-size: 16px;
  color: var(--ink-soft);
}

.split-body .link-arrow {
  margin-top: 30px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 38px 0 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts li {
  padding: 22px 24px;
  background: #fff;
}

.facts strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.facts span {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Stats ---------- */

.stats {
  padding: 82px 0;
  background: var(--ink);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  list-style: none;
}

.stat {
  padding: 8px 34px 10px;
  background: var(--ink);
}

.stat b {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 300;
  line-height: 1;
  color: #fff;
}

.stat b i {
  font-style: normal;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.stat span {
  display: block;
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

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

.styles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.style-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.style-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  transition: transform 1.6s var(--ease), opacity 0.5s var(--ease);
}

.style-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 30%,
    rgba(0, 0, 0, 0.28) 62%,
    rgba(0, 0, 0, 0.72) 100%
  );
  transition: opacity 0.5s var(--ease);
}

.style-card:hover img {
  transform: scale(1.055);
  opacity: 1;
}

.style-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 36px;
  color: #fff;
}

.style-card__index {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.65);
}

.style-card h3 {
  margin: 7px 0 6px;
  font-size: clamp(24px, 2.2vw, 32px);
  color: #fff;
}

.style-card p {
  margin: 0;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.74);
}

.style-card__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.style-card:hover .style-card__arrow {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  transform: translateX(4px);
}

/* ---------- System rows ---------- */

.systems-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 80px;
  align-items: start;
}

.systems-aside {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.systems-aside h2 {
  margin: 18px 0 22px;
}

.systems-aside p {
  max-width: 430px;
  color: var(--muted);
}

.systems-aside .link-arrow {
  margin-top: 30px;
}

.system-rows {
  border-top: 1px solid var(--line);
}

.system-row {
  display: grid;
  grid-template-columns: 46px 1fr 148px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.system-row__num {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.system-row h3 {
  margin: 0 0 4px;
  font-size: 21px;
  transition: color 0.3s var(--ease);
}

.system-row p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.system-row__thumb {
  width: 148px;
  height: 94px;
  overflow: hidden;
  background: var(--paper-2);
}

.system-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.system-row:hover h3 {
  color: var(--accent);
}

.system-row:hover .system-row__thumb img {
  transform: scale(1.07);
}

/* ---------- Material ---------- */

.material {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 80px;
  align-items: center;
}

.material-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.material-media img {
  width: 100%;
  transition: transform 1.6s var(--ease);
}

.material-media:hover img {
  transform: scale(1.02);
}

.material h2 {
  margin: 18px 0 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
}

.chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.material .link-arrow {
  margin-top: 32px;
}

.small-note {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Craft ---------- */

.craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: #fff;
}

.craft-media {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}

.craft-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.craft-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px clamp(40px, 7vw, 110px);
}

.craft-body h2 {
  margin: 18px 0 20px;
  color: #fff;
}

.craft-body p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.7);
}

.craft-list {
  margin-top: 34px;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.craft-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}

.craft-list b {
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.step {
  min-height: 250px;
  padding: 32px 26px 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.step:hover {
  background: #fff;
  transform: translateY(-3px);
}

.step__num {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.step h3 {
  margin: 46px 0 10px;
  font-size: 18.5px;
}

.step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- CTA ---------- */

.cta {
  padding: 94px 0;
  background: var(--paper-2);
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta h2 {
  max-width: 780px;
  margin: 16px 0 14px;
  font-size: clamp(32px, 3.6vw, 52px);
}

.cta p {
  max-width: 560px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Style listing ---------- */

.style-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 76px;
  align-items: center;
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.style-row:first-of-type {
  border-top: 1px solid var(--line);
}

.style-row:nth-child(even) .style-row__media {
  order: 2;
}

.style-row__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.style-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease);
}

.style-row:hover .style-row__media img {
  transform: scale(1.04);
}

.style-row h2 {
  margin: 14px 0 16px;
  font-size: clamp(28px, 3vw, 42px);
}

.style-row p {
  color: var(--muted);
}

.swatches {
  display: flex;
  gap: 20px;
  margin: 26px 0 30px;
  list-style: none;
}

.swatch {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.swatch i {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

/* ---------- Systems listing ---------- */

.system-group {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}

.system-group:first-of-type {
  padding-top: 0;
}

.system-group__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.system-group__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.system-group:hover .system-group__media img {
  transform: scale(1.04);
}

.system-group h2 {
  margin: 14px 0 14px;
  font-size: clamp(26px, 2.6vw, 38px);
}

.system-group p {
  max-width: 620px;
  color: var(--muted);
}

.sub-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 30px;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  transition: background-color 0.3s var(--ease);
}

.sub-link:hover {
  background: var(--paper);
  color: var(--accent);
}

.sub-link .arrow {
  font-size: 14px;
  opacity: 0.5;
  transition: transform 0.3s var(--ease);
}

.sub-link:hover .arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* ---------- Detail page ---------- */

.detail-intro {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 80px;
  align-items: start;
}

.prose p {
  font-size: 16.5px;
  color: var(--ink-soft);
}

.prose > p:first-of-type {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
}

html[lang='zh-CN'] .prose > p:first-of-type {
  font-size: 17.5px;
}

.prose .quote {
  margin: 34px 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}

.facts-panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 26px 30px 30px;
}

.facts-panel > h3 {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts-panel dl {
  margin: 0;
}

.facts-panel .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts-panel .row:last-child {
  border-bottom: 0;
}

.facts-panel dt {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts-panel dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: right;
  color: var(--ink);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 24px;
}

.media-card {
  margin: 0;
}

.media-card__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.media-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.media-card:hover .media-card__frame img {
  transform: scale(1.055);
}

.media-card--contain .media-card__frame {
  background: #f6f2ea;
  padding: 16px;
}

.media-card--contain .media-card__frame img {
  object-fit: contain;
}

.media-card figcaption {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.media-card figcaption small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.group-head h2 {
  font-size: clamp(26px, 2.6vw, 38px);
}

.group-head p {
  max-width: 520px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th {
  padding: 16px 20px;
  background: var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
}

td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--paper);
}

td:first-child {
  color: var(--ink);
}

.table-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  padding: 34px 30px 38px;
  background: #fff;
}

.feature b {
  display: block;
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.related-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 1.3s var(--ease), opacity 0.4s;
}

.related-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7));
}

.related-card span {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  font-size: 17px;
  color: #fff;
}

.related-card:hover img {
  transform: scale(1.05);
  opacity: 1;
}

/* ---------- About ---------- */

.capabilities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.capability {
  padding: 30px 26px 34px;
  background: #fff;
}

.capability span {
  display: block;
  margin-bottom: 34px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.capability h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.capability p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.brand-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.brand-group {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.brand-group h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.brand-group p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.certs figure {
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.certs img {
  width: 100%;
  transition: transform 0.8s var(--ease);
}

.certs figure:hover img {
  transform: scale(1.02);
}

.certs figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Dark authorisation section */

.section--dark {
  background: #111110;
  color: rgba(255, 255, 255, 0.65);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .lede {
  color: rgba(255, 255, 255, 0.62);
}

.section--dark .eyebrow {
  color: #e0636d;
}

.section--dark .brand-group {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.section--dark .brand-group h3 {
  color: #fff;
}

.section--dark .brand-group p {
  color: rgba(255, 255, 255, 0.6);
}

.section--dark .brand-group strong {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Certificate carousel ---------- */

.cert-carousel {
  position: relative;
  margin-top: 64px;
}

.cert-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cert-track::-webkit-scrollbar {
  display: none;
}

.cert-card {
  flex: 0 0 calc((100% - 80px) / 6);
  margin: 0;
  padding: 10px 10px 0;
  background: #fff;
  scroll-snap-align: start;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.cert-card__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 494 / 691;
  background: #fff;
  overflow: hidden;
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e6a63;
}

.cert-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(14, 14, 13, 0.6);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.cert-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cert-arrow[disabled] {
  opacity: 0.25;
  pointer-events: none;
}

.cert-arrow--prev {
  left: -22px;
}

.cert-arrow--next {
  right: -22px;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-method {
  padding: 26px 26px 30px;
  background: #fff;
}

address.contact-method {
  font-style: normal;
}

.contact-method span {
  display: block;
  margin-bottom: 10px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-method strong {
  display: block;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  word-break: break-word;
}

.contact-method a {
  color: inherit;
}

.contact-method a:hover {
  color: var(--accent);
}

.contact-method small {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.contact-method--wide {
  grid-column: 1 / -1;
}

.contact-note {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--paper);
  border-left: 2px solid var(--accent);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-block h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.contact-block address {
  font-style: normal;
  color: var(--muted);
}

.contact-list {
  margin-top: 26px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.contact-list b {
  font-weight: 400;
  color: var(--ink);
}

.contact-media {
  margin-top: 34px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-quote {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.contact-quote p {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 84px;
  background: #0e0e0d;
  color: rgba(255, 255, 255, 0.62);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: 60px;
}

.footer-brand .brand-logo {
  height: 46px;
}

.footer-brand p {
  max-width: 340px;
  margin: 24px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  margin: 0 0 22px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-col a {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact a:hover {
  color: #fff;
}

.footer-address {
  display: block !important;
}

.footer-address b {
  display: block;
  margin-top: 4px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.38);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 68px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.36);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: #fff;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Reveal ---------- */

.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-hidden {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.d1 {
  transition-delay: 0.07s;
}

.reveal.d2 {
  transition-delay: 0.14s;
}

.reveal.d3 {
  transition-delay: 0.21s;
}

.reveal.d4 {
  transition-delay: 0.28s;
}

.reveal.d5 {
  transition-delay: 0.35s;
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  :root {
    --pad: 36px;
  }

  .nav > ul > li > a {
    padding: 34px 12px;
    font-size: 12.5px;
  }

  .nav > ul > li > a::after {
    left: 12px;
    right: 12px;
  }

  .systems-layout {
    gap: 56px;
  }

  .split,
  .detail-intro,
  .material,
  .contact-layout {
    gap: 56px;
  }

  .style-row {
    gap: 56px;
  }

  .system-group {
    grid-template-columns: 320px 1fr;
    gap: 46px;
  }
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .lang {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand-logo {
    height: 48px;
  }

  .cert-card {
    flex-basis: calc((100% - 48px) / 4);
  }

  .brand-groups--dark {
    gap: 32px 40px;
  }

  .footer-address {
    grid-column: 1 / -1;
  }

  .header-inner {
    gap: 18px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 72px;
  }

  .hero-foot {
    display: none;
  }

  .page-hero {
    min-height: 480px;
  }

  .split,
  .detail-intro,
  .material,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .split-media--tall {
    aspect-ratio: 4 / 3;
  }

  .material-media {
    max-width: 760px;
  }

  .systems-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .systems-aside {
    position: static;
  }

  .system-row {
    grid-template-columns: 40px 1fr 130px;
  }

  .system-row__thumb {
    width: 130px;
    height: 86px;
  }

  .style-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 54px 0;
  }

  .style-row:nth-child(even) .style-row__media {
    order: 0;
  }

  .system-group {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 48px 0;
  }

  .system-group__media {
    aspect-ratio: 16 / 9;
  }

  .sub-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .capabilities {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 18px 26px;
  }

  .craft {
    grid-template-columns: 1fr;
  }

  .craft-media {
    min-height: 420px;
  }

  .craft-body {
    padding: 64px var(--pad);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-contact ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
  }
}

@media (max-width: 820px) {
  :root {
    --pad: 26px;
    --header-h: 78px;
  }

  .section {
    padding: 76px 0;
  }

  .section--tight {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 42px;
  }

  .brand-logo {
    height: 44px;
  }

  .lang {
    display: none;
  }

  .cert-carousel {
    margin-top: 42px;
  }

  .cert-track {
    gap: 12px;
  }

  .cert-card {
    flex-basis: calc((100% - 12px) / 2);
  }

  .cert-arrow {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 20px;
  }

  .cert-arrow--prev {
    left: -6px;
  }

  .cert-arrow--next {
    right: -6px;
  }

  .cert-card {
    padding: 7px 7px 0;
  }

  .cert-card figcaption {
    padding: 8px 1px;
    font-size: 8.5px;
  }

  .hero h1 {
    font-size: clamp(36px, 8vw, 54px);
  }

  .hero-lede {
    font-size: 15.5px;
  }

  .hero-actions .btn {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 10.5px;
  }

  .page-hero {
    min-height: 420px;
  }

  .page-hero .shell {
    padding-bottom: 42px;
  }

  .styles-grid {
    grid-template-columns: 1fr;
  }

  .style-card {
    aspect-ratio: 5 / 4;
  }

  .style-card__body {
    padding: 24px 24px 26px;
  }

  .style-card__arrow {
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-trio,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .system-row {
    grid-template-columns: 32px 1fr 96px;
    gap: 16px;
  }

  .system-row__thumb {
    width: 96px;
    height: 70px;
  }

  .system-row h3 {
    font-size: 18px;
  }

  .system-row p {
    font-size: 12.5px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    min-height: 210px;
  }

  .step h3 {
    margin-top: 30px;
  }

  .capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-groups {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .certs {
    gap: 12px;
  }

  .contact-methods {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin-top: 44px;
  }

  .cta {
    padding: 66px 0;
  }

  .cta-inner {
    align-items: flex-start;
  }

  .group-head {
    display: block;
  }

  .group-head p {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .media-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 14px 20px 20px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
  }

  .sub-links {
    grid-template-columns: 1fr;
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .style-row__media {
    aspect-ratio: 3 / 2;
  }

  .hero {
    min-height: 620px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    flex: 1 1 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-contact ul {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    gap: 10px;
  }
}

/* Group rhythm inside detail pages */
.group + .group {
  margin-top: 96px;
}

.media-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.media-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.media-grid--6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 16px;
}

.media-grid--6 .media-card figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.media-grid--6 .media-card figcaption small {
  margin-top: 2px;
  font-size: 10.5px;
}

.media-grid--6 .media-card--contain .media-card__frame {
  padding: 10px;
}

.media-card--wide {
  grid-column: span 2;
}

.media-card--wide .media-card__frame {
  aspect-ratio: 16 / 9;
}

@media (max-width: 820px) {
  .group + .group {
    margin-top: 64px;
  }

  .media-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .media-grid--2 {
    grid-template-columns: 1fr;
  }

  .media-card--wide {
    grid-column: span 1;
  }

  .media-card--wide .media-card__frame {
    aspect-ratio: 4 / 3;
  }
}

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

  .media-grid--6 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 820px) {
  .media-grid--6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
  }

  .media-grid--6 .media-card figcaption {
    font-size: 11.5px;
  }
}

@media (max-width: 560px) {
  .media-grid--4 {
    grid-template-columns: 1fr;
  }

  .media-grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote-block {
  max-width: 900px;
}

.about-media {
  aspect-ratio: 4 / 5;
}

@media (max-width: 1080px) {
  .about-media {
    aspect-ratio: 4 / 3;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal.is-hidden {
    opacity: 1;
    transform: none;
  }
}
