/* ============================================================
   DEMETO — Scientific Editorial Theme
   Visual reference: glyphic.bio
   A single theme layer keeps the existing information architecture,
   content, semantics and interactions intact.
   ============================================================ */

:root {
  --ink: #2c2d32;
  --ink-2: #3d3f45;
  --text: #474a52;
  --muted: #4f525a;
  --quiet: #565963;
  --paper: #ffffff;
  --mineral: #f2f3f4;
  --steel: #e8ebec;
  --line: rgba(44, 45, 50, 0.18);
  --line-soft: rgba(44, 45, 50, 0.1);
  --signal: #78d4dc;
  --signal-dark: #226f78;
  --blue: #2f6876;
  --success: #1f6d57;
  --danger: #a54038;
  --max: 1400px;
  --gutter: clamp(20px, 2.8vw, 40px);
  --rail: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --radius: 3px;
  --shadow: none;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font-display: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

html {
  background: var(--paper);
}

body {
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.62;
  letter-spacing: normal;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

h1 {
  font-size: clamp(54px, 6vw, 86px);
}

h2 {
  font-size: clamp(38px, 4.4vw, 64px);
}

h3 {
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.08;
}

p {
  line-height: 1.62;
}

::selection {
  color: var(--paper);
  background: var(--ink);
}

.eyebrow {
  gap: 7px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 520;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 50%;
}

.button,
.footer-cta {
  min-height: 48px;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 450;
}

.button:hover,
.footer-cta:hover {
  color: #fff;
  background: #111216;
  border-color: #111216;
  transform: none;
}

.button::after,
.footer-cta::after {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin: -1px -8px -1px 2px;
  place-items: center;
  content: "→";
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 19px;
  line-height: 1;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--ink);
}

.button-secondary::after {
  border-left-color: var(--line);
}

.button svg {
  display: none;
}

.text-link {
  color: var(--ink);
  font-weight: 450;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link::after {
  content: " ↗";
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  min-height: 56px;
  padding: 10px 20px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(247, 248, 248, 0.86), rgba(247, 248, 248, 0));
  border-bottom: 0;
  box-shadow: none;
  transition: background 200ms var(--ease);
}

.site-header.is-scrolled,
.site-header.solid {
  min-height: 52px;
  background: rgba(247, 248, 248, 0.88);
  box-shadow: none;
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.brand,
.footer-logo {
  gap: 8px;
}

.brand {
  padding: 4px 0;
}

.brand-hex {
  width: 24px;
  height: 24px;
}

.brand strong,
.footer-logo strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand small {
  display: none;
}

.site-nav {
  gap: clamp(14px, 1.4vw, 26px);
}

.site-nav a {
  min-height: 32px;
  padding: 5px 1px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 440;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  transition: border-color 160ms var(--ease), opacity 160ms;
}

.site-nav a:hover {
  opacity: 0.55;
}

.site-nav a.is-active {
  border-bottom-color: var(--ink);
}

.site-nav .nav-cta {
  margin-left: clamp(12px, 12vw, 220px);
  padding: 7px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  border-bottom: 0;
}

.site-nav .nav-cta:hover {
  opacity: 1;
  background: #111216;
}

.site-nav .nav-cta::after {
  margin-left: 10px;
  content: "→";
  font-size: 18px;
}

.nav-lang svg {
  display: none;
}

.menu-toggle {
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- Home hero ---------- */
.home-hero {
  position: relative;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #eaf0ef;
  border-bottom: 0;
}

.home-hero::after {
  position: absolute;
  bottom: -6%;
  left: -4%;
  z-index: 0;
  width: clamp(280px, 30vw, 440px);
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  background: url("assets/design/molecule-motif.svg") center / contain no-repeat;
  opacity: 0.4;
  animation: motif-rotate-rev 130s linear infinite;
}

@keyframes motif-rotate-rev {
  to {
    transform: rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::after {
    animation: none;
  }
}

.home-hero-grid {
  width: 100%;
  min-height: 100svh;
  padding-inline: var(--rail);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto 1fr auto;
  grid-template-areas:
    "eyebrow"
    "title"
    "intro"
    "actions"
    "."
    "proof";
  min-height: 100svh;
  padding-top: clamp(76px, 8vh, 104px);
  align-items: start;
}

.home-hero-mobile-media {
  position: absolute;
  inset: 0 calc(var(--rail) * -1);
  z-index: -2;
  width: auto;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #eaf0ef;
  border: 0;
  border-radius: 0;
}

.home-hero-mobile-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      180deg,
      rgba(234, 240, 239, 0.55) 0%,
      rgba(234, 240, 239, 0.12) 34%,
      rgba(234, 240, 239, 0) 48%
    ),
    linear-gradient(
      100deg,
      rgba(234, 240, 239, 0.6) 0%,
      rgba(234, 240, 239, 0.28) 32%,
      rgba(234, 240, 239, 0.08) 56%,
      rgba(234, 240, 239, 0.2) 100%
    );
}

.home-hero-mobile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 50%;
}

.home-hero-copy > :not(.home-hero-mobile-media) {
  position: relative;
  z-index: 1;
}

.home-hero-copy > .eyebrow {
  grid-area: eyebrow;
  align-self: end;
  margin: 0 0 10px;
}

.home-hero h1 {
  grid-area: title;
  display: block;
  max-width: 9.5ch;
}

.home-hero-word,
.home-hero-sub,
.home-hero-en {
  display: block;
}

.home-hero-word {
  max-width: none;
  color: var(--ink);
  font-size: clamp(60px, 6.15vw, 88px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.home-hero-sub {
  max-width: none;
  margin-top: clamp(24px, 2.6vw, 36px);
  color: var(--ink);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 460;
  line-height: 1.25;
  letter-spacing: 0.005em;
}

.home-hero-en {
  margin-top: 13px;
  color: var(--ink-2);
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.home-hero .lead {
  grid-area: intro;
  align-self: start;
  max-width: 44ch;
  margin: clamp(32px, 3.6vw, 48px) 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.62;
}

.home-hero .lead::before {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 22px;
  content: "";
  background: var(--signal-dark);
}

.home-hero-actions {
  grid-area: actions;
  align-self: start;
  margin-top: 16px;
}

.hero-trust-bar {
  grid-area: proof;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(238, 242, 241, 0.5);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.hero-trust-bar span {
  min-height: 68px;
  padding: 14px 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

.hero-trust-bar svg {
  width: 18px;
  height: 18px;
}

/* ---------- Chapter layout ---------- */
main {
  counter-reset: demeto-chapter;
}

.section {
  counter-increment: demeto-chapter;
  padding: clamp(92px, 9vw, 140px) var(--rail);
  background: var(--paper);
}

.section-soft,
.section-dark {
  background: var(--mineral);
  border-block: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  max-width: none;
  margin-bottom: clamp(52px, 7vw, 92px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.section-heading::before {
  grid-column: 1;
  grid-row: 1 / span 3;
  color: var(--ink);
  content: counter(demeto-chapter);
  font-size: 34px;
  font-weight: 440;
  letter-spacing: -0.04em;
  line-height: 1;
}

.section-heading > * {
  grid-column: 2;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
}

.section-heading.split::before {
  grid-column: 1;
}

.section-heading.split > div {
  grid-column: 2;
}

.section-heading.split > .text-link {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

.section-heading h2,
.visual-copy h2 {
  max-width: 16ch;
}

.section-heading p:last-child,
.section-sub,
.visual-copy p:last-child {
  max-width: 54ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.section-visual,
.about-layout,
.two-column,
.inquiry-section,
.worksheet {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  padding-block: 0;
  border-top: 1px solid var(--line);
}

.visual-copy,
.about-copy,
.inquiry-copy {
  min-height: 540px;
  padding: clamp(70px, 8vw, 120px) clamp(24px, 5vw, 74px) clamp(70px, 8vw, 120px) 0;
  align-content: center;
}

.visual-media,
.section-media {
  min-height: 540px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

.visual-media img,
.section-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.95);
}

/* ---------- Flat evidence grids ---------- */
.feature-grid,
.grade-overview,
.quote-grid,
.document-grid,
.metric-board,
.timeline,
.service-timeline,
.number-grid,
.contact-cards,
.seo-link-grid,
.article-hub,
.resource-grid,
.check-grid,
.doc-grid,
.process-grid,
.route-map,
.article-list,
.trust-grid {
  gap: 0;
}

.feature-grid article,
.grade-overview article,
.quote-grid article,
.document-grid article,
.metric-board div,
.timeline li,
.service-timeline li,
.number-grid li,
.contact-cards article,
.seo-card,
.article-hub a,
.resource-grid a,
.check-grid span,
.panel,
.grade-panel,
.faq-group,
.technical-article,
.keyword-groups div,
.route-map .node,
.doc-grid > a,
.process-grid li,
.trust-card {
  color: var(--text);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.feature-grid article:hover,
.grade-overview article:hover,
.document-grid article:hover,
.contact-cards article:hover,
.seo-card:hover,
.article-hub a:hover,
.resource-grid a:hover,
.doc-grid > a:hover {
  background: var(--mineral);
  border-color: rgba(44, 45, 50, 0.42);
  transform: none;
}

.feature-grid article > span,
.grade-overview article > span,
.document-grid article > span,
.contact-cards article > span,
.seo-card > span,
.article-hub span,
.article-kicker span,
.grade-tags span,
.product-status span,
.footer-badges span {
  padding: 4px 8px;
  color: var(--ink);
  background: var(--steel);
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 520;
  letter-spacing: 0;
}

.trust-grid {
  border-block: 1px solid var(--line);
}

.trust-card {
  min-height: 260px;
  padding: 26px 28px;
  border-top: 0;
}

.trust-card + .trust-card {
  border-left: 1px solid var(--line);
}

.trust-card > svg {
  width: 22px;
  height: 22px;
}

.trust-card strong {
  margin-top: 54px;
  font-size: 22px;
  font-weight: 430;
  letter-spacing: -0.035em;
}

.trust-card p {
  max-width: 30ch;
  font-size: 13px;
}

.trust-badge {
  color: var(--ink);
  font-size: 11px;
  text-decoration: underline;
}

/* ---------- Product/specification ---------- */
.spec-block {
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.spec-card,
.spec-photo {
  border: 0;
  border-radius: 0;
}

.spec-card {
  border-right: 1px solid var(--line);
}

.spec-card-head {
  min-height: 200px;
  padding: 30px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.spec-card-head h3 {
  max-width: 16ch;
  font-size: 34px;
  font-weight: 430;
}

.spec-card-head span,
.spec-photo-kicker {
  color: var(--ink);
  letter-spacing: 0;
}

.table-wrap,
.spec-table {
  border-radius: 0;
}

table {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

th,
td {
  border-color: var(--line);
}

.table-wrap thead th {
  color: var(--muted);
  background: transparent;
  font-weight: 600;
  border-bottom: 1.5px solid var(--ink-2);
}

.spec-photo {
  min-height: 680px;
}

.spec-photo img {
  filter: saturate(0.72) contrast(0.95);
}

.spec-photo-panel {
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 22px;
  background: rgba(242, 244, 243, 0.88);
  border: 0;
  border-radius: var(--radius);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.spec-photo-panel strong {
  font-size: 24px;
  font-weight: 430;
}

/* ---------- Process, documents, topics ---------- */
.process-grid {
  border-block: 1px solid var(--line);
}

.process-grid li {
  min-height: 230px;
  padding: 22px 20px;
  border-top: 0;
}

.process-grid li + li {
  border-left: 1px solid var(--line);
}

.process-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-grid b {
  margin-top: 52px;
  color: var(--ink);
}

.process-grid strong {
  font-size: 17px;
  font-weight: 430;
}

.doc-grid {
  border-block: 1px solid var(--line);
}

.doc-grid > a {
  min-height: 220px;
  padding: 24px;
  border-top: 0;
}

.doc-grid > a + a {
  border-left: 1px solid var(--line);
}

.doc-ico {
  color: var(--ink);
}

.doc-ico i,
.doc-reach .doc-ico i {
  color: #fff;
  background: var(--ink);
  border-radius: 2px;
}

.doc-grid strong {
  margin-top: 42px;
  font-size: 20px;
  font-weight: 430;
}

.doc-grid em {
  color: var(--ink);
  text-decoration: underline;
}

.seo-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.seo-card {
  min-height: 360px;
  padding: 0 0 24px;
  overflow: hidden;
  background: var(--mineral);
  border-top: 0;
}

.seo-card figure {
  height: 215px;
  margin-bottom: 18px;
}

.seo-card figure img {
  filter: saturate(0.75) contrast(0.95);
}

.seo-card strong {
  font-size: 19px;
  font-weight: 430;
}

/* ---------- Applications and editorial content ---------- */
.application-card,
.solution-card {
  border-color: var(--line);
  border-radius: 0;
}

.solution-card-media {
  min-height: 340px;
}

.solution-card-media img {
  filter: saturate(0.72) contrast(0.96);
}

.application-card h3,
.solution-card h3 {
  font-weight: 430;
}

/* Applications page: compact, information-first cards. */
body[data-page="applications"] .section-visual {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

body[data-page="applications"] .visual-copy,
body[data-page="applications"] .visual-media {
  min-height: 380px;
}

body[data-page="applications"] .visual-copy {
  padding-block: 54px;
}

body[data-page="applications"] .visual-media img {
  height: 380px;
  min-height: 380px;
}

body[data-page="applications"] .application-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

body[data-page="applications"] .application-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 28px;
  min-height: 240px;
  padding-right: 22px;
  border: 0;
}

body[data-page="applications"] .application-card:last-child {
  grid-column: auto;
}

/* Fill the lone trailing empty cell (7 cards in 2 cols) with paper so it
   reads as clean whitespace instead of the grid's grey divider background. */
body[data-page="applications"] .application-grid::after {
  content: "";
  background: var(--paper);
}

body[data-page="applications"] .solution-card-media {
  grid-column: 1;
  grid-row: 1 / -1;
  height: 100%;
  min-height: 0;
  border-right: 1px solid var(--line);
}

body[data-page="applications"] .solution-card-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

body[data-page="applications"] .application-card > span,
body[data-page="applications"] .application-card > h3,
body[data-page="applications"] .application-card > p,
body[data-page="applications"] .application-card > a {
  grid-column: 2;
  margin-inline: 0;
}

body[data-page="applications"] .application-card > span {
  margin-top: 22px;
}

body[data-page="applications"] .application-card > h3 {
  margin-top: 8px;
  font-size: clamp(21px, 1.8vw, 27px);
}

body[data-page="applications"] .application-card > p {
  max-width: 64ch;
  margin-top: 9px;
  font-size: 13px;
}

body[data-page="applications"] .application-card > a {
  align-self: end;
  margin-top: 12px;
  margin-bottom: 20px;
}

.article-callout,
.statement-card,
.worksheet-intro {
  background: var(--ink);
  border-radius: 0;
}

.article-shell,
.faq-layout,
.grade-layout {
  gap: 0;
  border-top: 1px solid var(--line);
}

.grade-tabs,
.faq-index,
.article-aside {
  border-right: 1px solid var(--line);
}

.grade-tab {
  border-radius: 0;
}

.grade-tab.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.grade-panel,
.product-info-board .panel,
.technical-article,
.faq-group {
  padding: clamp(28px, 4vw, 54px);
}

/* ---------- Forms and CTA ---------- */
.contact-cards {
  border-top: 1px solid var(--line);
}

.contact-cards article {
  min-height: 230px;
  padding: 26px;
  border-top: 0;
}

.contact-cards article + article {
  border-left: 1px solid var(--line);
}

.inquiry-section {
  background: var(--mineral);
}

.inquiry-form {
  padding: clamp(30px, 5vw, 70px);
  background: var(--paper);
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
}

input,
select,
textarea {
  color: var(--ink);
  background: var(--mineral);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.cta-band {
  min-height: 250px;
  padding: 32px 0;
  border-block: 1px solid var(--line);
}

.cta-band h2 {
  max-width: 22ch;
  font-size: clamp(36px, 4vw, 58px);
}

/* ---------- Secondary page heroes ---------- */
.page-main {
  padding-top: 0;
}

.page-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  min-height: 72svh;
  padding: 112px var(--rail) 70px;
  overflow: hidden;
  text-align: left;
  background: var(--mineral);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  position: absolute;
  top: 50%;
  right: -3%;
  z-index: 0;
  width: 46vw;
  max-width: 660px;
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(120, 212, 220, 0.16), rgba(47, 104, 118, 0.05) 46%, transparent 70%);
}

.page-hero::after {
  position: absolute;
  top: 50%;
  right: clamp(-110px, -2vw, 10px);
  z-index: 0;
  width: clamp(340px, 40vw, 580px);
  aspect-ratio: 1;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  background: url("assets/design/molecule-motif.svg") center / contain no-repeat;
  animation: motif-rotate 90s linear infinite;
}

@keyframes motif-rotate {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@media (max-width: 980px) {
  .page-hero::before {
    top: auto;
    bottom: -4%;
    right: -14%;
    width: 70vw;
    transform: none;
  }
  .page-hero::after {
    top: auto;
    bottom: -5%;
    right: -16%;
    width: clamp(280px, 72vw, 440px);
    opacity: 0.55;
    transform: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero::after {
    animation: none;
  }
}

.page-hero > * {
  position: relative;
  z-index: 1;
  width: auto;
  margin-inline: 0;
}

.breadcrumb {
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-bottom: clamp(34px, 5vh, 60px);
}

.page-hero > .eyebrow {
  grid-column: 1;
}

.page-hero h1 {
  grid-column: 1 / -1;
  max-width: 19ch;
  margin: 0;
  font-size: clamp(50px, 5.2vw, 74px);
  font-weight: 450;
  text-wrap: balance;
}

.page-hero p:last-child {
  grid-column: 1;
  align-self: start;
  max-width: 46ch;
  margin: clamp(28px, 3.2vw, 44px) 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}

.page-hero p:last-child::before {
  display: block;
  width: 44px;
  height: 2px;
  margin-bottom: 22px;
  content: "";
  background: var(--signal-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  min-height: 760px;
  padding: 34px var(--rail) 24px;
  overflow: hidden;
  color: #d7d8dc;
  background: var(--ink);
  border-top: 0;
}

.footer-main {
  grid-template-columns: minmax(300px, 1.5fr) repeat(4, minmax(130px, 0.7fr));
  gap: 24px;
}

.footer-logo strong,
.footer-column h3,
.footer-contact h3,
.footer-rfq strong {
  color: #f4f4f4;
}

.footer-logo .brand-hex {
  filter: grayscale(1) brightness(5);
}

.footer-logo small,
.footer-brand p,
.footer-column a,
.footer-contact p,
.footer-rfq p,
.footer-bottom p,
.footer-bottom a {
  color: #aeb0b8;
}

/* Contact labels sit on the dark footer — keep them light, not the
   light-bg --quiet token (which would be near-invisible here). */
.footer-contact span {
  color: #9398a3;
  font-weight: 600;
}

.footer-badges span {
  color: #d8d9dd;
  background: rgba(255, 255, 255, 0.08);
}

.footer-rfq {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-cta {
  color: var(--ink);
  background: #f2f2f2;
  border-color: #f2f2f2;
}

.footer-cta:hover {
  color: var(--ink);
  background: #fff;
}

.footer-cta::after {
  border-left-color: rgba(44, 45, 50, 0.25);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.12);
}

.site-footer::after {
  position: absolute;
  right: 0;
  bottom: -0.19em;
  left: 0;
  color: #08090b;
  content: "demeto//dmt";
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.8;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Motion ---------- */

/* Lenis smooth scroll — native scroll-behavior must yield or it stutters. */
html {
  scroll-behavior: auto;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Hero image is intentionally NOT layer-promoted: translateZ(0) + filter blanked
   the compositor layer in some engines (grey hero). Scroll stays smooth via the
   global scroll-behavior:auto / Lenis fix above. */

.js .reveal {
  opacity: 1;
  transform: none;
}

a,
button,
.button,
.seo-card,
.application-card img,
.solution-card img {
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav .nav-cta {
    margin-left: 16px;
  }

  .home-hero-word {
    font-size: clamp(54px, 6vw, 72px);
  }

  .footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  html.nav-open,
  html.nav-open body {
    overflow: hidden;
  }

  .site-header {
    min-height: 70px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header.is-scrolled {
    min-height: 70px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .menu-toggle span:not(.sr-only) {
    transition: opacity 160ms var(--ease), transform 160ms var(--ease);
  }

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

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

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

  .site-nav {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    max-height: none;
    padding: 16px 20px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    background: #fff;
    border: 0;
    border-radius: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .site-nav a,
  .site-nav .nav-cta {
    min-height: 66px;
    margin: 0;
    padding: 10px 0;
    color: var(--ink);
    background: transparent;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 34px;
    letter-spacing: -0.04em;
  }

  .site-nav .nav-lang {
    font-size: 20px;
  }

  .site-nav .nav-cta {
    margin-top: auto;
    font-size: 16px;
  }

  .home-hero-copy {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas: "eyebrow" "title" "intro" "actions" "proof";
    min-height: 1020px;
    padding-top: 96px;
  }

  body[data-page="applications"] .section-visual,
  body[data-page="applications"] .application-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="applications"] .visual-copy,
  body[data-page="applications"] .visual-media {
    min-height: 320px;
  }

  body[data-page="applications"] .visual-media img {
    height: 320px;
    min-height: 320px;
  }

  body[data-page="applications"] .application-card:last-child {
    grid-column: auto;
  }

  body[data-page="applications"] .application-grid::after {
    display: none;
  }

  .home-hero-copy > .eyebrow {
    align-self: start;
  }

  .home-hero h1 {
    max-width: 10ch;
  }

  .home-hero-word {
    font-size: clamp(44px, 12vw, 64px);
  }

  .home-hero .lead {
    max-width: 24ch;
    margin-top: 24px;
    font-size: 20px;
  }

  .home-hero-actions {
    align-self: start;
    margin-top: 22px;
  }

  .hero-trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: end;
  }

  .section-visual,
  .about-layout,
  .two-column,
  .inquiry-section,
  .worksheet,
  .product-info-board,
  .grade-layout,
  .faq-layout,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .visual-copy,
  .about-copy,
  .inquiry-copy {
    min-height: 0;
    padding: 72px 0;
  }

  .visual-media,
  .section-media,
  .inquiry-form {
    min-height: 420px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .spec-block {
    grid-template-columns: 1fr;
  }

  .spec-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .doc-grid > a:nth-child(4) {
    border-left: 0;
  }

  .page-hero {
    grid-template-columns: 1fr;
    min-height: 74svh;
  }

  .page-hero h1,
  .page-hero p:last-child {
    grid-column: 1;
  }

  .page-hero p:last-child {
    margin-top: 30px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 25px;
  }

  .home-hero {
    padding-inline: 0;
  }

  .home-hero-copy {
    min-height: 1040px;
  }

  .home-hero-mobile-media {
    inset-inline: calc(var(--rail) * -1);
  }

  .home-hero-word {
    font-size: 44px;
  }

  .home-hero-sub {
    font-size: 17px;
  }

  .home-hero-en {
    font-size: 11px;
  }

  .home-hero-actions,
  .home-hero-actions .button {
    width: 100%;
  }

  .hero-trust-bar {
    grid-template-columns: 1fr 1fr;
  }

  .hero-trust-bar span,
  .hero-trust-bar span + span,
  .hero-trust-bar span:nth-child(3),
  .hero-trust-bar span:nth-child(n + 3) {
    min-height: 64px;
    padding: 12px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-trust-bar span:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .section {
    padding: 74px 20px;
  }

  .section-heading,
  .section-heading.split {
    grid-template-columns: 34px minmax(0, 1fr);
    margin-bottom: 48px;
  }

  body[data-page="applications"] .visual-copy,
  body[data-page="applications"] .visual-media {
    min-height: 280px;
  }

  body[data-page="applications"] .visual-copy {
    padding-block: 42px;
  }

  body[data-page="applications"] .visual-media img {
    height: 280px;
    min-height: 280px;
  }

  body[data-page="applications"] .application-card {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 16px;
    min-height: 214px;
    padding-right: 16px;
  }

  body[data-page="applications"] .application-card > span {
    margin-top: 16px;
  }

  body[data-page="applications"] .application-card > h3 {
    font-size: 20px;
  }

  body[data-page="applications"] .application-card > p {
    font-size: 12px;
  }

  body[data-page="applications"] .application-card > a {
    margin-bottom: 15px;
    font-size: 12px;
  }

  .section-heading::before {
    font-size: 25px;
  }

  .section-heading.split > div,
  .section-heading.split > .text-link {
    grid-column: 2;
  }

  .section-heading.split > .text-link {
    grid-row: auto;
    margin-top: 16px;
  }

  .trust-grid,
  .process-grid,
  .doc-grid,
  .seo-link-grid,
  .feature-grid,
  .feature-grid.two,
  .feature-grid.four,
  .feature-grid.five,
  .grade-overview,
  .quote-grid,
  .document-grid,
  .metric-board,
  .timeline,
  .service-timeline,
  .number-grid,
  .contact-cards,
  .article-hub,
  .resource-grid,
  .check-grid,
  .route-map,
  .article-list,
  .application-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .trust-card,
  .trust-card + .trust-card,
  .process-grid li,
  .process-grid li + li,
  .doc-grid > a,
  .doc-grid > a + a,
  .contact-cards article,
  .contact-cards article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-card {
    min-height: 210px;
  }

  .process-grid li,
  .doc-grid > a {
    min-height: 180px;
  }

  .seo-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    min-height: 160px;
    padding: 0;
  }

  .seo-card figure {
    grid-row: 1 / -1;
    width: 128px;
    height: 100%;
    min-height: 160px;
    margin: 0;
  }

  .seo-card > span,
  .seo-card > strong,
  .seo-card > small {
    grid-column: 2;
    margin-inline: 16px;
  }

  .seo-card > span {
    margin-top: 16px;
  }

  .seo-card > strong {
    margin-top: 8px;
    font-size: 16px;
  }

  .seo-card > small {
    margin-block: 6px 16px;
  }

  .page-hero {
    min-height: 760px;
    padding: 100px 20px 58px;
  }

  .breadcrumb {
    margin-bottom: 44px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .page-hero p:last-child {
    max-width: 28ch;
    font-size: 19px;
  }

  .spec-photo {
    min-height: 520px;
  }

  .solution-card-media {
    min-height: 270px;
  }

  .site-footer {
    min-height: 920px;
    padding-inline: 20px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-footer::after {
    bottom: -0.08em;
    font-size: 86px;
  }
}

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