/* TaiSky — site-wide styles (shared) */

:root {
  --brand: #f97316;
  --brand-strong: #c25306;
  --brand-soft: #f8eee7;
  --accent: #c48356;
  --accent-custom-1: #f2a33a;
  --surface: #f9f7f6;
  --bg: #ffffff;
  --ink: #2b221d;
  --muted: #7e6e63;
  --line: #e5e0dc;

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

a:hover { color: var(--brand-strong); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.75rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared type helpers ---------- */

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--brand { color: var(--brand-strong); }

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--muted);
}

.measure { max-width: 64ch; }
.measure-wide { max-width: 78ch; }

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

/* ---------- layout ---------- */

.section { padding-block: clamp(44px, 6vw, 88px); }
.section--tight { padding-block: clamp(32px, 4.4vw, 60px); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(24px, 3.6vw, 44px);
}

.section-head > * { min-width: 0; }

@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split--center { align-items: center; }

.split--reverse > .split-media { order: 2; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > .split-media { order: 0; }
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
}

.media-caption {
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

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

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

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}

.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand-logo { height: 42px; width: auto; }

.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  list-style: none;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--brand);
  transition: right 0.26s var(--ease);
}

.nav-list > li > a:hover::after,
.nav-list > li > a:focus-visible::after,
.nav-list > li > a[aria-current="page"]::after { right: 0; }

.has-sub > .sub {
  position: absolute;
  top: calc(100% + 6px);
  left: -18px;
  z-index: 70;
  min-width: 232px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: none;
}

.has-sub > .sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub { display: block; }

.sub a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--ink);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.sub a:hover,
.sub a:focus-visible { background: var(--brand-soft); color: var(--brand-strong); }

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 10px 4px;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.header-cta:hover { border-color: var(--brand); color: var(--brand-strong); }
.header-cta span { transition: transform 0.2s var(--ease); }
.header-cta:hover span { transform: translateX(3px); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle-bars { display: inline-block; width: 14px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

@media (max-width: 1360px) {
  .nav-list { gap: 12px; }
  .nav-list > li > a { font-size: 13px; }
}

@media (max-width: 1100px) {
  .brand-logo { height: 36px; }
  .nav-toggle { display: inline-flex; order: 3; margin-left: 0; }
  .header-cta { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-top: 1px solid var(--line); }
  .nav-list > li:first-child { border-top: 0; }
  .nav-list > li > a { display: block; padding: 15px 0; font-size: 15px; }
  .nav-list > li > a::after { display: none; }
  .has-sub > .sub {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 12px 16px;
    border: 0;
    border-left: 1px solid var(--line);
  }
  .sub a { padding: 7px 0; color: var(--muted); }
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

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

.btn--ghost:hover { color: var(--brand-strong); background: var(--brand-soft); border-color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.link-arrow span { transition: transform 0.2s var(--ease); }
.link-arrow:hover { border-color: var(--brand); color: var(--brand-strong); }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- breadcrumb ---------- */

.breadcrumb { padding-block: 20px; border-bottom: 1px solid var(--line); }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.breadcrumb-list li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb-list li + li::before { content: "/"; color: var(--line); }
.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list a:hover { color: var(--brand-strong); }
.breadcrumb-list [aria-current="page"] { color: var(--ink); }

/* ---------- page intro ---------- */

.page-head { padding-block: clamp(32px, 4.6vw, 64px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 24ch; }
.page-head .lede { margin-top: 22px; }

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.compare th,
.compare td {
  padding: 20px 18px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.compare thead th {
  padding-top: 0;
  border-top: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare tbody th {
  width: 24%;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.compare td { color: var(--ink); }
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 1px solid var(--line); }

/* ---------- facts ---------- */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 24px 24px 24px 0;
  border-bottom: 1px solid var(--line);
}

.fact dt {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd { margin: 0; font-size: 15px; }

/* ---------- horizontal card rail ---------- */

.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.rail {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 110, 99, 0.35) transparent;
}

.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: rgba(126, 110, 99, 0.3); border-radius: 999px; }

.rail-card {
  flex: 0 0 clamp(250px, 27vw, 330px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 26px;
  border-left: 1px solid var(--line);
  transition: background-color 0.2s var(--ease);
}

.rail-card:hover { background: var(--surface); }
.rail-card .rail-index { font-size: 11px; letter-spacing: 0.18em; color: var(--brand-strong); }
.rail-card h3 { font-size: 1.05rem; }
.rail-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.rail-card .rail-link { margin-top: auto; padding-top: 14px; font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink); border-top: 1px solid var(--line); }

/* ---------- timeline ---------- */

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

.timeline li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.timeline .step-num { font-size: 11px; letter-spacing: 0.18em; color: var(--brand-strong); padding-top: 5px; }
.timeline h3 { font-size: 1.05rem; }
.timeline p { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .timeline li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .timeline li p { grid-column: 2; }
}

/* ---------- accordion ---------- */

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

.accordion details { border-bottom: 1px solid var(--line); }

.accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 40px 22px 0;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}

.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--brand-strong); }

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.accordion details[open] summary::after { content: "–"; color: var(--brand-strong); }

.accordion .accordion-body { padding: 0 40px 24px 0; font-size: 14.5px; color: var(--muted); max-width: 74ch; }

/* ---------- pull quote ---------- */

.pull-quote {
  margin: 0;
  padding: 2px 0 2px 24px;
  border-left: 2px solid var(--brand);
}

.pull-quote p {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- article ---------- */

.article-head { padding-block: clamp(36px, 5vw, 64px) 0; }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 28ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.article-body {
  max-width: 68ch;
  padding-block: clamp(32px, 4vw, 56px) clamp(40px, 6vw, 80px);
  font-size: 16.5px;
  line-height: 1.75;
}

.article-body h2 { margin: 2em 0 0.6em; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.article-body h3 { margin: 1.8em 0 0.5em; font-size: 1.1rem; }
.article-body p { margin: 0 0 1.25em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 1.15em; }
.article-body li { margin-bottom: 0.5em; }
.article-body a { border-bottom: 1px solid var(--line); }
.article-body a:hover { border-color: var(--brand); }
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--brand);
  font-size: 1.08rem;
  color: var(--ink);
}

.article-foot { border-top: 1px solid var(--line); padding-block: 32px clamp(32px, 4vw, 56px); }

/* ---------- post list ---------- */

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

.post-list li { border-bottom: 1px solid var(--line); }

.post-list a {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.post-list a:hover { background: var(--surface); color: var(--ink); }
.post-list a:hover .post-title { color: var(--brand-strong); }
.post-list .post-date { font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.post-list .post-title { font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 500; letter-spacing: -0.01em; }
.post-list .post-cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: right; }

@media (max-width: 760px) {
  .post-list a { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .post-list .post-cat { text-align: left; }
}

/* ---------- pagination ---------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 13px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.pagination a { color: var(--ink); }
.pagination a:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

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

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 168px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease);
}

.cat-card:hover { background: var(--surface); }
.cat-card .cat-count { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-strong); }
.cat-card h3 { font-size: 1.15rem; }
.cat-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cat-card .cat-more { margin-top: auto; font-size: 12.5px; color: var(--ink); }

/* ---------- notices ---------- */

.notice {
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

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

.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }

.field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--accent); }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand-strong); background: #fffdfb; outline: none; }
.field textarea { min-height: 148px; resize: vertical; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.form-status { font-size: 13.5px; color: var(--muted); }
.form-status[data-state="ok"] { color: var(--brand-strong); }
.form-status[data-state="err"] { color: #a3341c; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.form-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

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

.cta-band { padding-block: clamp(40px, 5.6vw, 76px); border-top: 1px solid var(--line); }
.cta-band h2 { max-width: 22ch; }
.cta-band .btn-row { margin-top: 28px; }

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

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px);
}

.footer-brand .footer-logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 40ch; font-size: 13.5px; color: var(--muted); }

.footer-col h2,
.footer-col h3 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; font-size: 13.5px; color: var(--ink); }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--brand-strong); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--brand-strong); }

.footer-lang { display: inline-flex; align-items: center; margin-left: auto; }
.footer-lang .sep { margin: 0 6px; color: var(--line); }

.lang-switch {
  position: relative;
  display: inline-flex;
  margin-left: 18px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 2px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-toggle:hover { color: var(--brand-strong); border-bottom-color: var(--brand); }
.lang-toggle .lang-caret { transition: transform 0.2s var(--ease); }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  min-width: 172px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: none;
}

.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu,
.lang-switch.is-open .lang-menu { display: block; }

.lang-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.lang-menu a:hover,
.lang-menu a:focus-visible { background: var(--brand-soft); color: var(--brand-strong); }
.lang-menu a[aria-current="true"] { font-weight: 600; color: var(--ink); }
.footer-lang a { letter-spacing: 0.06em; }
.footer-lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.crawl-links { display: flex; align-items: center; gap: 14px; list-style: none; }
.crawl-links li { margin: 0; }

.tech-support { margin: 0; }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-lang { margin-left: 0; }
}

/* ---------- 404 ---------- */

.error-page { padding-block: clamp(64px, 12vw, 160px); }
.error-code { font-size: clamp(4rem, 14vw, 10rem); line-height: 0.9; letter-spacing: -0.05em; font-weight: 600; }
.error-page h1 { margin-top: 24px; font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- reveal (progressive, JS-gated) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- plain list ---------- */

.plain-list { list-style: none; border-top: 1px solid var(--line); }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.plain-list li strong { display: block; margin-bottom: 4px; font-weight: 500; color: var(--ink); }

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

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

/* ---------- screen-reader only ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* language switch placement (kept last so breakpoints win) */
@media (max-width: 1360px) {
  .lang-switch { margin-left: 14px; }
}

@media (max-width: 1100px) {
  .nav-toggle { order: 3; margin-left: 0; }
  .lang-switch { order: 2; margin-left: auto; margin-right: 12px; }
}

/* ---------- image matrix: scene tiles ---------- */

.scene-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene-tile {
  position: relative;
  display: block;
  grid-column: span 2;
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  color: #ffffff;
}

.scene-tile--wide { grid-column: span 3; }

.scene-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.scene-tile:hover img { transform: scale(1.045); }

.scene-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 20, 16, 0.8), rgba(28, 20, 16, 0.18) 55%, rgba(28, 20, 16, 0));
}

.scene-tile-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  padding: 20px 22px;
}

.scene-tile-index { font-size: 11px; letter-spacing: 0.18em; opacity: 0.72; }
.scene-tile-title { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; }
.scene-tile-desc { font-size: 13px; line-height: 1.5; opacity: 0.88; max-width: 34ch; }
.scene-tile:hover .scene-tile-title { text-decoration: underline; text-underline-offset: 4px; }

.scene-hero { margin: 0; }
.scene-hero img { width: 100%; max-height: 66vh; object-fit: cover; }
.scene-hero figcaption {
  max-width: var(--maxw);
  margin: 10px auto 0;
  padding-inline: var(--gutter);
  font-size: 12px;
  color: var(--muted);
}

.cat-card .cat-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--surface);
  transition: transform 0.4s var(--ease);
}

.cat-card:hover .cat-img { transform: scale(1.012); }

@media (max-width: 960px) {
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-tile,
  .scene-tile--wide { grid-column: span 1; min-height: 210px; }
}

@media (max-width: 560px) {
  .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .scene-tile { min-height: 200px; }
}


/* long category line used as a section heading */
.h2-list {
  max-width: 62ch;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0;
  color: var(--ink);
}


/* portrait scene image: keep the building in frame */
.scene-hero--portrait img {
  max-height: 82vh;
  object-position: center 68%;
}

@media (max-width: 700px) {
  .scene-hero--portrait img { max-height: 62vh; object-position: center 62%; }
}


/* single-line page headline: scale by viewport so the line never wraps */
.page-head h1.h1--fit {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1rem, 5.2vw, 4.4rem);
  letter-spacing: -0.02em;
}

/* ---------- scene gallery pages ---------- */

.gal-hero { position: relative; display: flex; align-items: flex-end; min-height: min(74vh, 640px); overflow: hidden; }
.gal-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 16, 12, 0.82), rgba(22, 16, 12, 0.25) 52%, rgba(22, 16, 12, 0.05)); }
.gal-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(26px, 4.5vw, 52px); color: #fff; }
.gal-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.2rem); letter-spacing: -0.02em; }
.gal-hero p { max-width: 50ch; margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.88); }

.gal-grid { column-count: 2; column-gap: 12px; }
.gal-item { break-inside: avoid; margin: 0 0 12px; display: block; }
.gal-item img { width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--surface); transition: transform 0.5s var(--ease); }
.gal-item:hover img { transform: scale(1.012); }
.gal-item figcaption { margin-top: 8px; font-size: 12px; letter-spacing: 0.02em; color: var(--muted); }

.gal-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gal-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 26px; }
.gal-band p { margin: 0; font-size: 14px; color: var(--muted); }
.gal-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.gal-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease); }
.gal-chip:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }

@media (max-width: 720px) {
  .gal-grid { column-count: 1; }
  .gal-hero { min-height: 62vh; }
}


/* single-column gallery: one image per row */
.gal-grid--single { column-count: 1; }
.gal-grid--single .gal-item { margin-bottom: 14px; }
.gal-grid--single .gal-item img { width: 100%; height: auto; }

/* ---------- speed band (standard products) ---------- */

.speed-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.65fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.speed-lead { border-top: 1px solid var(--ink); padding-top: 18px; }

.speed-number {
  margin: 6px 0 0;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.speed-number span {
  margin-left: 8px;
  font-size: 0.28em;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
}

.speed-note { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 30ch; }

.speed-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.speed-steps li {
  padding: 20px 20px 22px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.speed-steps li:nth-child(odd) { border-left: 0; padding-left: 0; }

.speed-step-index { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: 0.18em; color: var(--brand-strong); }
.speed-steps strong { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.speed-steps span:last-child { display: block; margin-top: 6px; font-size: 13px; line-height: 1.65; color: var(--muted); }

.speed-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.speed-notes span::before { content: "—"; margin-right: 8px; color: var(--line); }

@media (max-width: 900px) {
  .speed-band { grid-template-columns: minmax(0, 1fr); }
  .speed-lead { border-top-color: var(--line); }
  .speed-steps { grid-template-columns: minmax(0, 1fr); }
  .speed-steps li { border-left: 0; padding-left: 0; }
}


/* compact speed strip: supporting line under the series cards */
.speed-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  margin-top: 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.speed-strip span { position: relative; }

.speed-strip span + span::before {
  content: "·";
  margin-right: 20px;
  color: var(--line);
}

.speed-strip .speed-strip-lead { color: var(--ink); font-size: 14px; }

.speed-strip .speed-strip-lead strong {
  margin-right: 4px;
  font-size: 1.55em;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.speed-strip .speed-strip-lead::before,
.speed-strip .speed-strip-note::before { content: none; }

.speed-strip .speed-strip-note { margin-left: auto; color: var(--muted); }


/* Chinese page headline: always one line (home uses its own hero type) */
html[lang="zh-CN"] .page-head h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.85rem, 4.2vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* the applications page keeps its own slightly larger single-line setting */
html[lang="zh-CN"] .page-head h1.h1--fit {
  font-size: clamp(0.85rem, 4.4vw, 3.4rem);
}

/* ---------- series cards: large image-led entries ---------- */

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
}

.series-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.5s var(--ease);
}

.series-card:hover img { transform: scale(1.015); }

.series-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.series-card-name { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.series-card-line { font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.series-card-cta {
  align-self: flex-start;
  margin-top: 2px;
  padding-bottom: 3px;
  font-size: 12.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.series-card:hover .series-card-cta { color: var(--brand-strong); border-color: var(--brand); }

@media (max-width: 900px) {
  .series-grid { grid-template-columns: minmax(0, 1fr); }
  .series-card img { aspect-ratio: 16 / 9; }
}


/* secondary headings: quieter than page titles */
.heading-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.cta-band h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.cta-band h2.heading-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}


/* two-column model grid (series pages) */
.series-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .series-grid--two { grid-template-columns: minmax(0, 1fr); }
}


.series-card-spec {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}


/* compact spec block: keeps bullets and the table on one screen */
.spec-compact .plain-list li { padding: 10px 0; font-size: 13.5px; }
.spec-compact .plain-list li strong { margin-bottom: 2px; font-size: 14px; }
.spec-compact .compare th,
.spec-compact .compare td { padding: 11px 14px; font-size: 13.5px; }
.spec-compact .compare tbody th { font-size: 12.5px; }
.spec-compact .split { gap: clamp(20px, 3vw, 44px); }


/* detail card grid: small process / close-up shots with a name and one line of note */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(20px, 3vw, 32px);
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}

.detail-card { margin: 0; }

.detail-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
}

.detail-card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.detail-card-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* configuration table: one row per group, keeps long option lists tidy */
.config-table {
  width: 100%;
  margin-top: clamp(20px, 3vw, 32px);
  border-collapse: collapse;
  text-align: left;
}

.config-table thead th {
  padding: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.config-table tbody th {
  width: 148px;
  padding: 13px 20px 13px 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.config-table tbody td {
  padding: 13px 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.config-table tbody td b {
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 640px) {
  .config-table tbody th,
  .config-table tbody td {
    display: block;
    width: auto;
    padding-right: 0;
  }

  .config-table tbody th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .config-table tbody td { padding-top: 0; }
}

/* two-column detail layout: for fewer, larger process cards */
.detail-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.detail-grid--two .detail-card img { aspect-ratio: 16 / 10; }

@media (max-width: 760px) {
  .detail-grid--two { grid-template-columns: minmax(0, 1fr); }
}

/* shipping options: two routes side by side */
.ship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
  margin-top: clamp(24px, 3vw, 40px);
  align-items: start;
}

@media (max-width: 860px) {
  .ship-grid { grid-template-columns: minmax(0, 1fr); }
}

.ship-card-tag {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
}

.ship-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.ship-card-lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.ship-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.ship-steps li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.ship-steps li:last-child { border-bottom: 1px solid var(--line); }

.ship-step-no {
  flex: 0 0 auto;
  min-width: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ship-steps strong {
  font-weight: 500;
  color: var(--ink);
  margin-right: 6px;
}

/* five-step flow strip */
.detail-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.detail-grid--five .detail-card img { aspect-ratio: 1 / 1; }

@media (max-width: 1024px) {
  .detail-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .detail-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* single shipping option: one route, two-column inside the card */
.ship-grid--single { grid-template-columns: minmax(0, 1fr); }

.ship-grid--single .ship-card .split { gap: clamp(20px, 4vw, 48px); }
.ship-grid--single .ship-steps { margin-top: 0; }

/* four-step flow strip */
.detail-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .detail-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .detail-grid--four { grid-template-columns: minmax(0, 1fr); }
}

/* in-page anchor nav for long product pages */
.anchor-nav { border-bottom: 1px solid var(--line); }

.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

.anchor-nav a {
  display: inline-block;
  padding: 3px 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

@media (max-width: 640px) {
  .anchor-nav ul { gap: 2px 16px; }
  .anchor-nav a { font-size: 12.5px; }
}

/* reserved slot in a model grid: no product photo, clearly a placeholder */
.series-card--slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: transparent;
  aspect-ratio: 16 / 10;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.series-card--slot:hover,
.series-card--slot:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.series-card--slot .series-card-name { color: var(--ink); }
.series-card--slot .series-card-line { color: var(--muted); }

.series-card--slot .series-card-cta {
  margin-top: 10px;
  color: var(--brand-strong);
}

@media (max-width: 640px) {
  .series-card--slot { aspect-ratio: auto; min-height: 150px; }
}


/* supporting products: a small, quiet block at the end of the selection page */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(16px, 2vw, 24px);
  max-width: 680px;
}

@media (max-width: 640px) {
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

.fit-grid figure { margin: 0; }

.fit-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
}

/* four-column competence grid */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(24px, 3vw, 40px);
}

@media (max-width: 900px) {
  .comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.comp-item { border-top: 1px solid var(--line); padding-top: 16px; }

.comp-item .comp-no {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
  margin-bottom: 8px;
}

.comp-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

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

/* certificates & awards: small thumbnails so many can be listed */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(20px, 2.4vw, 28px);
}

@media (max-width: 900px) {
  .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

.cert-item { margin: 0; }

.cert-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cert-item figcaption {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-item .cert-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}

.cert-item .cert-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.cert-grid--wide .cert-item img { aspect-ratio: 4 / 3; }

/* competence cards with evidence images */
.comp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 36px) clamp(20px, 3.2vw, 44px);
  margin-top: clamp(24px, 3vw, 40px);
}

@media (max-width: 760px) {
  .comp-cards { grid-template-columns: minmax(0, 1fr); }
}

.comp-card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.comp-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 14px;
}

.comp-card .comp-no {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
  margin-bottom: 6px;
}

.comp-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

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

.comp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.comp-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface);
}
