/* ==========================================================================
   Lumichips - Brand Website Stylesheet
   Design language derived from the Lumichips Brand Manual (EN)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --brand:        #F2870D;
  --brand-500:    #F79A1E;
  --brand-600:    #E5760A;
  --brand-300:    #FFC165;
  --brand-deep:   #D14E06;
  --brand-tint:   #FFF6EC;

  --ink:          #17181B;
  --ink-soft:     #2C2E33;
  --body:         #5A5E66;
  --muted:        #8E939C;

  --line:         #E6E8EC;
  --line-soft:    #F1F2F5;

  --paper:        #FFFFFF;
  --paper-2:      #F6F7F9;
  --paper-3:      #FBF7F2;

  --dark:         #0B0C0E;
  --dark-2:       #141519;
  --dark-3:       #1E2025;
  --dark-line:    rgba(255,255,255,.12);

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    22px;

  --shadow-sm: 0 1px 2px rgba(16,18,22,.05), 0 6px 18px rgba(16,18,22,.05);
  --shadow-md: 0 16px 40px rgba(16,18,22,.10);
  --shadow-lg: 0 30px 70px rgba(16,18,22,.16);

  --maxw: 1200px;
  --header-h: 76px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
          "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--brand-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .55em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.018em;
}

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

ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

:focus-visible {
  outline: 3px solid rgba(242,135,13,.45);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container--wide { max-width: 1340px; }
.container--narrow { max-width: 880px; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 66px 0; }
.section--paper { background: var(--paper-2); }
.section--cream { background: var(--brand-tint); }
.section--dark { background: var(--dark); color: rgba(255,255,255,.72); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--gap-lg { gap: 40px; }

.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.split--media-first > .split__media { order: -1; }
.split--top { align-items: start; }

.stack > * + * { margin-top: 18px; }
.center { text-align: center; }

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow--plain::before { display: none; }
.section--dark .eyebrow { color: var(--brand-500); }

.display { font-size: clamp(2.4rem, 5.4vw, 4.3rem); font-weight: 800; letter-spacing: -.032em; line-height: 1.05; }
.h1 { font-size: clamp(2.05rem, 3.9vw, 3.05rem); letter-spacing: -.028em; }
.h2 { font-size: clamp(1.65rem, 2.9vw, 2.3rem); letter-spacing: -.024em; }
.h3 { font-size: clamp(1.2rem, 1.75vw, 1.48rem); letter-spacing: -.018em; }
.h4 { font-size: 1.07rem; letter-spacing: -.01em; }

.lead { font-size: clamp(1.03rem, 1.35vw, 1.18rem); line-height: 1.6; }
.section--dark .lead { color: rgba(255,255,255,.78); }
.muted { color: var(--muted); }
.small { font-size: .89rem; line-height: 1.6; }

.accent { color: var(--brand-600); }
.section--dark .accent { color: var(--brand-500); }

.kicker-rule { width: 54px; height: 3px; background: var(--brand); border-radius: 3px; margin: 0 0 22px; }
.center .kicker-rule { margin-inline: auto; }

.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(242,135,13,.30); }
.btn--primary:hover { background: var(--brand-600); color: #fff; box-shadow: 0 16px 34px rgba(242,135,13,.38); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: rgba(23,24,27,.03); }

.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: #fff; color: var(--brand-600); }

.btn--outline-light { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }

.btn--sm { padding: 10px 20px; font-size: .87rem; }
.btn--lg { padding: 17px 34px; font-size: 1rem; }

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

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; color: var(--brand-600); }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.site-header__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; gap: 26px;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand__logo { height: 30px; width: auto; }
.brand__logo--light { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 9px 14px; border-radius: 8px;
  font-size: .93rem; font-weight: 600; color: var(--ink-soft);
  transition: color .18s ease, background .18s ease;
}
.nav__link:hover { color: var(--brand-600); background: var(--brand-tint); }
.nav__link[aria-current="page"] { color: var(--brand-600); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--brand);
}

.site-header__cta { display: flex; align-items: center; gap: 12px; margin-left: 8px; }

.site-header--over-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header--over-hero .brand__logo--dark { display: none; }
.site-header--over-hero .brand__logo--light { display: block; }
.site-header--over-hero .nav__link { color: rgba(255,255,255,.84); }
.site-header--over-hero .nav__link:hover { color: #fff; background: rgba(255,255,255,.10); }
.site-header--over-hero .nav__link[aria-current="page"] { color: #fff; }

/* Ghost buttons sit on the dark hero, so they must be light-on-dark too. */
.site-header--over-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.38); }
.site-header--over-hero .btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }

.site-header--over-hero.is-stuck {
  background: rgba(255,255,255,.95); border-bottom-color: var(--line);
  backdrop-filter: saturate(180%) blur(14px); box-shadow: var(--shadow-sm);
}
.site-header--over-hero.is-stuck .brand__logo--dark { display: block; }
.site-header--over-hero.is-stuck .brand__logo--light { display: none; }
.site-header--over-hero.is-stuck .nav__link { color: var(--ink-soft); }
.site-header--over-hero.is-stuck .nav__link:hover { color: var(--brand-600); background: var(--brand-tint); }
.site-header--over-hero.is-stuck .nav__link[aria-current="page"] { color: var(--brand-600); }
.site-header--over-hero.is-stuck .btn--ghost { color: var(--ink); border-color: var(--line); }
.site-header--over-hero.is-stuck .btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: rgba(23,24,27,.03); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; color: var(--ink);
}
.site-header--over-hero .nav-toggle { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.3); color: #fff; }
.site-header--over-hero.is-stuck .nav-toggle { background: #fff; border-color: var(--line); color: var(--ink); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 22px 24px 40px; background: #fff; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }

  /* The open drawer is always a light surface, so links must never inherit
     the light-on-dark colours used over the hero. */
  .nav .nav__link,
  .site-header--over-hero .nav .nav__link { color: var(--ink-soft); }
  .nav .nav__link:hover,
  .site-header--over-hero .nav .nav__link:hover { color: var(--brand-600); background: var(--brand-tint); }
  .nav .nav__link[aria-current="page"],
  .site-header--over-hero .nav .nav__link[aria-current="page"] { color: var(--brand-600); }

  .nav__link { padding: 15px 6px; font-size: 1.06rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .site-header__cta .btn--ghost { display: none; }

  /* Keep the header bar readable while the drawer is open. */
  body.nav-open .site-header {
    background: #fff; border-bottom-color: var(--line); backdrop-filter: none; box-shadow: none;
  }
  body.nav-open .site-header .brand__logo--dark { display: block; }
  body.nav-open .site-header .brand__logo--light { display: none; }
  body.nav-open .site-header .nav-toggle { background: #fff; border-color: var(--line); color: var(--ink); }
}
@media (max-width: 560px) {
  .site-header__cta .btn--primary { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(94vh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 72px) 0 84px;
  background: var(--dark); color: rgba(255,255,255,.76);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 12% 42%, rgba(6,6,8,.94) 0%, rgba(6,6,8,.72) 42%, rgba(6,6,8,.18) 74%, rgba(6,6,8,0) 100%),
    linear-gradient(180deg, rgba(6,6,8,.85) 0%, rgba(6,6,8,.12) 34%, rgba(6,6,8,.5) 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.72fr); gap: 60px; align-items: end; }
.hero__title { color: #fff; margin-bottom: 22px; }
.hero__title .u {
  background: linear-gradient(92deg, var(--brand-500), var(--brand) 45%, var(--brand-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block;
}
.hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.78); max-width: 46ch; }
.hero__tagline {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px;
  font-size: .82rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.62);
}
.hero__tagline span { display: inline-flex; align-items: center; gap: 10px; }
.hero__tagline span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.hero__panel {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  backdrop-filter: blur(10px); padding: 30px 30px 26px;
}
.hero__panel-title { color: #fff; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 26px; }
.hero__stat strong {
  display: block; font-size: 1.4rem; font-weight: 800; color: #fff;
  letter-spacing: -.02em; line-height: 1.15; white-space: nowrap;
}
.hero__stat > span { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 6px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.42);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll::after { content: ""; width: 1px; height: 32px; background: linear-gradient(180deg, rgba(255,255,255,.5), transparent); }

/* compact page hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 78px) 0 76px;
  background: var(--dark); color: rgba(255,255,255,.74);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,6,8,.95) 0%, rgba(6,6,8,.82) 44%, rgba(6,6,8,.5) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: 18px; }
.page-hero p { color: rgba(255,255,255,.76); max-width: 66ch; }
.page-hero--light { background: var(--paper-2); color: var(--body); }
.page-hero--light h1 { color: var(--ink); }
.page-hero--light .page-hero__bg::after { background: linear-gradient(100deg, rgba(246,247,249,.96), rgba(246,247,249,.7)); }

.crumbs { display: flex; gap: 9px; align-items: center; font-size: .8rem; letter-spacing: .05em; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ---------- 8. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform .22s ease, box-shadow .26s ease, border-color .22s ease;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #dfe2e7; }
.card--flat { border: 0; background: var(--paper-2); }
.card--dark { background: var(--dark-2); border-color: var(--dark-line); color: rgba(255,255,255,.7); }
.card--dark h3, .card--dark h4 { color: #fff; }
.card__index { font-size: .78rem; font-weight: 800; letter-spacing: .18em; color: var(--brand); display: block; margin-bottom: 12px; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-600); margin-bottom: 20px;
}
.card--dark .card__icon { background: rgba(242,135,13,.14); color: var(--brand-500); }
.card h3 { margin-bottom: 12px; }

.pill-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pill-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.pill-list svg { flex: none; margin-top: 3px; color: var(--brand); }

/* value pillars */
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .98rem;
}
.pillar__head { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.pillar__head h3 { margin: 0; }
.pillar__tag { font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }

/* ---------- 9. Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.stats__item { padding: 34px 26px; border-left: 1px solid var(--line); }
.stats__item:first-child { border-left: 0; padding-left: 0; }
.stats__item strong { display: block; font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.08; }
.stats__item strong em { font-style: normal; color: var(--brand); }
.stats__item span { display: block; margin-top: 8px; font-size: .83rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.section--dark .stats__item { border-color: var(--dark-line); }
.section--dark .stats__item strong { color: #fff; }

/* ---------- 10. Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper-3); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px; padding: 20px 34px;
  font-size: .86rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap;
}
.marquee__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- 11. Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 660px; font-size: .93rem; }
table.data thead th {
  background: var(--brand); color: #fff; font-weight: 600; font-size: .87rem;
  padding: 15px 20px; text-align: left; vertical-align: middle; white-space: nowrap;
}
table.data tbody td { padding: 15px 20px; border-top: 1px solid var(--line); color: var(--body); vertical-align: top; }
table.data tbody tr:nth-child(odd) { background: var(--paper-3); }
table.data tbody tr:hover { background: var(--brand-tint); }
table.data tbody th { padding: 15px 20px; border-top: 1px solid var(--line); text-align: left; font-weight: 700; color: var(--ink); background: #fff; white-space: nowrap; }
table.data .num { font-variant-numeric: tabular-nums; }

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

table.compare { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .9rem; }
table.compare thead th {
  padding: 16px 20px; font-size: .84rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink); background: var(--paper-2);
  border-bottom: 2px solid var(--brand); text-align: left;
}
table.compare thead th.col-brand { background: var(--brand); color: #fff; border-bottom-color: var(--brand); }
table.compare tbody th {
  padding: 18px 20px; text-align: left; vertical-align: top; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line); background: #fff; width: 20%;
}
table.compare tbody td {
  padding: 18px 20px; vertical-align: top; color: var(--body);
  border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
}
table.compare tbody td.col-brand { background: var(--brand-tint); color: var(--ink-soft); }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: 0; }

/* ---------- 12. Figures and media ---------- */
.figure { margin: 0; }
.figure__frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.figure__frame img { width: 100%; }
.figure__frame--dark { background: var(--dark); border-color: var(--dark-line); }
.figure__cap { margin-top: 14px; font-size: .84rem; color: var(--muted); }

.media-cover { border-radius: var(--radius); overflow: hidden; }
.media-cover img { width: 100%; height: 100%; object-fit: cover; }
.media-ratio { position: relative; }
.media-ratio::before { content: ""; display: block; padding-top: var(--ratio, 62%); }
.media-ratio > * { position: absolute; inset: 0; }

/* ---------- 13. Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); margin: 0; }
.feature-list li:first-child { border-top: 1px solid var(--line); }
.feature-list__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-600); }
.feature-list strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.feature-list p { margin: 0; font-size: .93rem; }
.section--dark .feature-list li { border-color: var(--dark-line); }
.section--dark .feature-list strong { color: #fff; }

/* ---------- 14. Case studies ---------- */
.case {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
}
.case--reverse .case__media { order: 2; }
.case__media { position: relative; min-height: 340px; background: var(--dark); }
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.case__loc { font-size: .77rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px; }
.case__body h3 { margin-bottom: 14px; }
.case__facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.case__facts li { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 0; font-size: .93rem; }
.case__facts b { color: var(--ink); font-weight: 700; }
.case__facts .n {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-600);
  font-size: .72rem; font-weight: 800; display: grid; place-items: center; margin-top: 3px;
}

/* ---------- 15. Annotation blocks ---------- */
.annot { display: grid; gap: 26px; }
.annot__item { border-left: 3px solid var(--brand); padding-left: 20px; }
.annot__item h4 { margin-bottom: 6px; font-size: .93rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-600); }
.annot__item p { margin: 0; font-size: .92rem; }

/* ---------- 16. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: rgba(255,255,255,.74); padding: 84px 0; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(96deg, rgba(6,6,8,.95), rgba(6,6,8,.78) 52%, rgba(20,10,2,.62)); }
.cta-band h2 { color: #fff; }
.cta-band__grid { display: grid; grid-template-columns: minmax(0,1.25fr) auto; gap: 44px; align-items: center; }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,.6); padding: 70px 0 0; }
.site-footer__top { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: 44px; padding-bottom: 52px; }
.site-footer__logo { height: 30px; width: auto; margin-bottom: 20px; }
.site-footer p { font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.site-footer a { color: rgba(255,255,255,.62); font-size: .92rem; }
.site-footer a:hover { color: var(--brand-500); }
.site-footer__bottom { border-top: 1px solid var(--dark-line); padding: 24px 0 34px; display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between; font-size: .82rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- 18. Contact form ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .96rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(242,135,13,.14); }
.field textarea { min-height: 132px; resize: vertical; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form__note { font-size: .82rem; color: var(--muted); }

.contact-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-item svg { color: var(--brand); margin-top: 4px; }
.contact-item strong { display: block; color: var(--ink); font-size: .93rem; margin-bottom: 2px; }
.contact-item span { font-size: .93rem; }

/* ---------- 19. Misc components ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-600); font-size: .77rem; font-weight: 700; letter-spacing: .07em;
}
.tag--solid { background: var(--brand); color: #fff; }
.tag--outline { background: transparent; border: 1px solid var(--line); color: var(--body); }

.callout { border-left: 4px solid var(--brand); background: var(--brand-tint); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; }
.callout p { margin: 0; color: var(--ink-soft); }

.quote { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.38; color: var(--ink); letter-spacing: -.02em; }
.section--dark .quote { color: #fff; }

.dark-panel { background: var(--dark); border-radius: var(--radius-lg); padding: 52px; color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.dark-panel h2, .dark-panel h3, .dark-panel h4 { color: #fff; }
.dark-panel::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(242,135,13,.35), transparent 68%); pointer-events: none;
}

.icon-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.icon-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: #fff; transition: transform .2s ease, box-shadow .24s ease; }
.icon-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.icon-tile svg { color: var(--brand); margin-bottom: 16px; }
.icon-tile h4 { font-size: .97rem; margin-bottom: 6px; }
.icon-tile p { font-size: .89rem; margin: 0; }

/* ---------- 20. Reveal animation ---------- */
/* Hidden state only applies when JavaScript is active, so content is never lost. */
.js .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .icon-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats__item:nth-child(3), .stats__item:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section { padding: 72px 0; }
  .split { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .split--media-first > .split__media { order: 0; }
  .hero { min-height: 0; padding: calc(var(--header-h) + 56px) 0 72px; }
  .hero__grid { grid-template-columns: minmax(0,1fr); gap: 40px; align-items: start; }
  .hero__scroll { display: none; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .case { grid-template-columns: minmax(0,1fr); }
  .case--reverse .case__media { order: 0; }
  .case__media { min-height: 260px; }
  .case__body { padding: 34px 28px; }
  .cta-band__grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px; }
  .dark-panel { padding: 36px 28px; }
}

@media (max-width: 620px) {
  .container { padding-inline: 18px; }
  .section { padding: 60px 0; }
  .grid--2, .grid--3, .grid--4, .icon-grid { grid-template-columns: minmax(0,1fr); }
  .stats { grid-template-columns: minmax(0,1fr); }
  .stats__item { border-left: 0; padding: 24px 0; border-top: 1px solid var(--line); }
  .stats__item:first-child { border-top: 0; padding-top: 0; }
  .form__row { grid-template-columns: minmax(0,1fr); }
  .card { padding: 26px 22px; }
  .site-footer__top { grid-template-columns: minmax(0,1fr); }
  .hero__stats { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .btn-row .btn { width: 100%; }
  .page-hero { padding: calc(var(--header-h) + 52px) 0 56px; }
}

@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer { display: none; }
  .hero, .page-hero { min-height: 0; padding: 24px 0; }
  .reveal { opacity: 1; transform: none; }
}
