/* ==========================================================================
   祈力电子 QILI — 文档影像
   Design language: black canvas · oversized stacked display type ·
   pixel (bitmap) accents · mono micro-labels · dithered gradients
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-var-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-var-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/Silkscreen-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../fonts/Silkscreen-Bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("../fonts/PixelifySans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("../fonts/PixelifySans-var-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html, body { background: #000; }
body {
  color: #fff;
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1px solid #EE344A;
  outline-offset: 3px;
}
::selection { background: #EE344A; color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ---------- tokens ---------- */
:root {
  --sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC",
          "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --pix: "Pixelify Sans", "Silkscreen", "Cascadia Mono", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", monospace;
  --mono: "Silkscreen", "Cascadia Mono", "SF Mono", Consolas, "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", monospace;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, .52);
  --dim: rgba(255, 255, 255, .30);
  --line: rgba(255, 255, 255, .13);
  --card: #0b0b0b;
  --card-2: #111111;
  --red: #EE344A;
  --pad: clamp(1.6rem, 2.4vw, 4rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.43, .195, .02, 1);
  --ease-3: cubic-bezier(.8, 0, 0, 1);
}

/* ---------- utilities ---------- */
.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.pix {
  font-family: var(--pix);
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  flex: none;
}
.sect { position: relative; padding: clamp(9rem, 14vh, 20rem) var(--pad); }

/* desktop left rail — keeps the fixed chapter nav clear of the content.
   Symmetric padding, so everything centred stays centred. */
@media (min-width: 1025px) {
  :root { --rail: clamp(7rem, 8.4vw, 13rem); }
  .intro, .auth, .products, .clients, .belief, .contact, .ftr {
    padding-left: calc(var(--pad) + var(--rail));
    padding-right: calc(var(--pad) + var(--rail));
  }
  .scatter__note { padding-left: var(--rail); }
  .htrack { padding-left: calc(var(--pad) + var(--rail)); }
}

/* reveal — uses `translate` so it never clobbers an element's `transform` */
.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 1s var(--ease), translate 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; translate: 0 0; }

/* line-by-line mask reveal for display type */
.statement { font-weight: 300; }
.ln { display: block; overflow: hidden; }
.ln__i {
  display: block;
  transform: translate3d(0, 112%, 0);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.in .ln__i, .statement.in .ln__i { transform: none; }

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner {
  width: min(38rem, 74vw);
  display: grid;
  gap: 1.6rem;
  justify-items: center;
}
.loader__mark { width: 42px; color: #fff; opacity: .9; animation: pulseMark 1.6s steps(2, end) infinite; }
@keyframes pulseMark { 0%, 100% { opacity: .9 } 50% { opacity: .25 } }
.loader__count {
  font-family: var(--pix);
  font-size: 4.4rem;
  line-height: 1;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.loader__bar { width: 100%; height: 1px; background: rgba(255,255,255,.16); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0%; background: #fff; transition: width .25s linear; }
.loader__meta {
  display: flex; justify-content: space-between; width: 100%;
  font-family: var(--mono); font-size: 1rem; letter-spacing: .16em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: .055;
  background-image: url("../img/grain.png");
  background-size: 160px 160px;
  mix-blend-mode: screen;
  animation: grainShift 1.1s steps(3, end) infinite;
}
@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0) }
  33% { transform: translate3d(-2%, 1%, 0) }
  66% { transform: translate3d(1%, -2%, 0) }
  100% { transform: translate3d(0, 0, 0) }
}

/* ---------- header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem var(--pad);
  mix-blend-mode: normal;
}
/* soft scrim so display type passing under the fixed header stays legible */
.hdr::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 13rem;
  background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.88) 38%, rgba(0,0,0,0) 100%);
  z-index: -1;
  pointer-events: none;
}
.hdr__logo { display: flex; align-items: center; gap: 1.1rem; }
.hdr__mark { width: 24px; color: #fff; }
.hdr__mark svg { width: 100%; height: auto; }
.hdr__word {
  font-size: 1.5rem;
  letter-spacing: .16em;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: .8rem;
}
.hdr__word i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: .3em;
  color: var(--muted);
  transform: translateY(-1px);
}
.hdr__cta {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: .7rem;
  padding: .2rem 0;
  position: relative;
}
.hdr__cta span:first-child { position: relative; }
.hdr__cta span:first-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-3);
}
.hdr__cta:hover span:first-child::after { transform: scaleX(1); transform-origin: left; }
.hdr__ctaArrow { color: var(--red); transition: transform .4s var(--ease); }
.hdr__cta:hover .hdr__ctaArrow { transform: translate(2px, -2px); }
.hdr__burger { display: none; width: 26px; height: 14px; position: relative; }
.hdr__burger span {
  position: absolute; left: 0; right: 0; height: 1px; background: #fff;
  transition: transform .4s var(--ease), opacity .3s;
}
.hdr__burger span:first-child { top: 0 }
.hdr__burger span:last-child { bottom: 0 }
body.menu-open .hdr__burger span:first-child { transform: translateY(6.5px) rotate(45deg) }
body.menu-open .hdr__burger span:last-child { transform: translateY(-6.5px) rotate(-45deg) }

/* ---------- left nav ---------- */
.nav {
  position: fixed;
  left: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 7000;
  mix-blend-mode: difference;
}
.nav ul { display: grid; gap: .5rem; }
.nav a {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.34);
  transition: color .4s, transform .5s var(--ease);
  padding: .2rem 0;
}
.nav a i {
  width: 5px; height: 5px; background: currentColor; flex: none;
  opacity: 0; transform: scale(.4);
  transition: opacity .4s, transform .4s var(--ease);
}
.nav a:hover { color: rgba(255,255,255,.8); }
.nav a.is-active { color: #fff; }
.nav a.is-active i { opacity: 1; transform: none; }
.nav a:hover { transform: translateX(2px); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16rem var(--pad) 10rem;
  position: relative;
}
.hero__eyebrow {
  color: var(--muted);
  margin-bottom: clamp(3rem, 5vh, 5rem);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.9s forwards;
}
@keyframes fadeIn { to { opacity: 1 } }

.hero__title {
  font-weight: 300;
  font-size: clamp(4.2rem, 8.8vw, 15.4rem);
  line-height: .9;
  letter-spacing: .01em;
  margin-bottom: clamp(3.4rem, 6vh, 6rem);
}
.hero__title .ln__i { transform: translate3d(0, 112%, 0); }
.hero__title .ln:nth-child(2) { line-height: .92; }
.hero__title .ln:nth-child(2) .ln__i {
  font-size: .95em;
  letter-spacing: .03em;
  line-height: 1.04;
  margin-top: -.1em;
}
.hero.is-in .ln__i { transform: none; }
.hero__title .ln__i { transition-delay: calc(.5s + var(--i) * .12s); }

.hero__sub {
  color: rgba(255,255,255,.62);
  font-size: 1.15rem;
  letter-spacing: .13em;
  line-height: 2;
  margin-bottom: 3.6rem;
  opacity: 0;
  animation: fadeUp .9s var(--ease) 1.15s forwards;
}
.hero__actions {
  opacity: 0;
  animation: fadeUp .9s var(--ease) 1.3s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.hero__foot {
  position: absolute;
  bottom: clamp(2rem, 4vh, 3.6rem);
  left: var(--pad); right: var(--pad);
  display: flex; align-items: center; gap: 1.6rem;
  color: var(--dim);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.9s forwards;
}
.hero__line { flex: 1; height: 1px; background: rgba(255,255,255,.12); }

/* button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 2.6rem;
  border: 1px solid rgba(255,255,255,.24);
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: #fff;
  transform: translateY(101%);
  transition: transform .55s var(--ease-3);
}
.btn:hover { color: #000; border-color: #fff; }
.btn:hover::before { transform: none; }
.btn__sq { width: 6px; height: 6px; background: currentColor; flex: none; }
.btn:hover .btn__sq { background: #000; }
.btn--solid { background: #fff; color: #000; border-color: #fff; }
.btn--solid::before { background: var(--red); }
.btn--solid:hover { color: #fff; border-color: var(--red); }
.btn--solid:hover .btn__sq { background: #fff; }

/* ---------- floating certificate gallery ---------- */
.gallery {
  position: relative;
  padding: 0 0 clamp(6rem, 10vh, 12rem);
  overflow: hidden;
}
.gallery__stage {
  height: clamp(52rem, 88vh, 96rem);
  perspective: 1600px;
  perspective-origin: 50% 40%;
  position: relative;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 9%, #000 72%, transparent 97%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 9%, #000 72%, transparent 97%),
    linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.gallery__plane {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1100px, 92vw);
  height: min(900px, 76vh);
  transform: translate(-50%, -50%) rotateX(24deg) rotateZ(-13deg);
  transform-style: preserve-3d;
  will-change: transform;
}
.gallery__card {
  position: absolute;
  width: 30%;
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
  overflow: hidden;
  background: #0a0a0a;
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}
.gallery__card img {
  width: 100%; height: auto;
  filter: saturate(.92) brightness(.94);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.gallery__card:hover img { filter: none; transform: scale(1.02); }
.g1 { left: 2%;  top: 4%;  width: 31%; }
.g2 { left: 36%; top: -6%; width: 27%; }
.g3 { left: 66%; top: 12%; width: 29%; }
.g4 { left: 22%; top: 40%; width: 26%; }
.gallery__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 30%, rgba(0,0,0,.75) 72%, #000 100%),
    linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 68%, #000 100%);
}
.gallery__cap {
  text-align: center;
  color: var(--dim);
  margin-top: clamp(1rem, 3vh, 3rem);
  letter-spacing: .2em;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 0;
}
.marquee__track {
  display: flex;
  gap: 3.4rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track span {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.42);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track span:nth-child(even) { color: var(--red); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0) } }

/* ---------- intro ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(4rem, 8vw, 12rem);
  align-items: start;
}
.intro__lead {
  font-weight: 300;
  font-size: clamp(3rem, 4.4vw, 6.4rem);
  line-height: 1.1;
  letter-spacing: .01em;
  margin: 3.4rem 0 3.6rem;
}
.intro__body {
  color: rgba(255,255,255,.66);
  font-size: clamp(1.4rem, 1.05vw, 1.65rem);
  line-height: 2;
  max-width: 62ch;
}
.intro__body + .intro__body { margin-top: 1.8rem; }
.intro__right { padding-top: .4rem; }
.facts { display: grid; gap: 0; }
.facts__item {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 2rem;
  align-items: baseline;
}
.facts__item:last-child { border-bottom: 1px solid var(--line); }
.facts__item b {
  font-weight: 300;
  font-size: clamp(2.8rem, 3.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.facts__item span { color: rgba(255,255,255,.42); font-size: .95rem; }
.facts__item p {
  grid-column: 2;
  color: rgba(255,255,255,.58);
  font-size: 1.35rem;
  margin-top: .4rem;
}

/* ---------- problem: statement + horizontal cards ---------- */
.problem { padding-bottom: 0; }
.problem__head { text-align: center; max-width: 1100px; margin: 0 auto clamp(5rem, 9vh, 10rem); }
.problem__head .eyebrow { justify-content: center; margin-bottom: clamp(3rem, 5vh, 5rem); }
.statement {
  font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 11.6rem);
  line-height: .98;
  letter-spacing: .01em;
  text-align: center;
}
.statement--xl { font-size: clamp(3.6rem, 8.2vw, 13.4rem); line-height: .92; }
.statement--sm { font-size: clamp(3rem, 5.2vw, 8rem); }
.statement .pix {
  font-size: .86em;
  line-height: 1.16;
  letter-spacing: .03em;
}
.problem__note { color: var(--dim); margin-top: clamp(2.4rem, 4vh, 4rem); }

.hwrap { position: relative; height: 320vh; }
.hpin {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
/* cards dissolve as they leave through the left rail instead of colliding with the nav */
@media (min-width: 1025px) {
  .hpin {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 100%);
  }
}
.htrack {
  display: flex;
  gap: clamp(1.6rem, 2vw, 2.8rem);
  padding: 0 var(--pad);
  will-change: transform;
}
.pcard {
  flex: none;
  width: clamp(25rem, 24vw, 34rem);
  background: linear-gradient(180deg, #0e0e0e, #080808);
  border: 1px solid rgba(255,255,255,.09);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-height: clamp(40rem, 56vh, 50rem);
  transition: border-color .5s, background .5s;
}
.pcard:nth-child(2n) { transform: translateY(3.4rem); }
.pcard:nth-child(3n) { transform: translateY(-2.2rem); }
.pcard:hover { border-color: rgba(255,255,255,.26); background: linear-gradient(180deg, #141414, #0a0a0a); }
.pcard__top { display: flex; justify-content: space-between; color: var(--dim); }
.pcard__top .mono:first-child { color: var(--red); }
.pcard h3 {
  font-weight: 400;
  font-size: clamp(1.9rem, 1.6vw, 2.4rem);
  line-height: 1.36;
  letter-spacing: .01em;
}
.pcard__art {
  flex: 1;
  display: grid; place-items: center;
  color: rgba(255,255,255,.5);
  padding: 1rem 0;
  transition: color .5s;
}
.pcard:hover .pcard__art { color: rgba(255,255,255,.92); }
.pcard__art svg { width: min(84%, 26rem); height: auto; }
.pcard__cap { color: var(--dim); font-size: .95rem; letter-spacing: .1em; text-transform: none; }

/* horizontal scroll fallback (mobile) */
.hwrap.is-static { height: auto; }
.hwrap.is-static .hpin { position: static; height: auto; overflow: visible; }
.hwrap.is-static .htrack {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  transform: none !important;
}
.hwrap.is-static .pcard { scroll-snap-align: start; }
.hwrap.is-static .pcard:nth-child(n) { transform: none; }

/* ---------- ideas / statement + scatter ---------- */
.ideas { padding-top: clamp(10rem, 18vh, 22rem); overflow: hidden; }
.ideas__wrap { text-align: center; max-width: 1200px; margin: 0 auto; }
.ideas__sub { color: var(--muted); margin-top: clamp(2.6rem, 4vh, 4.4rem); letter-spacing: .12em; }

.scatter {
  position: relative;
  margin-top: clamp(6rem, 12vh, 14rem);
  height: clamp(140rem, 185vh, 196rem);
  padding: 0 var(--pad);
}
.scatter__note { max-width: calc(46rem + var(--rail, 0px)); }
.scatter__lead {
  font-weight: 300;
  font-size: clamp(2.2rem, 2.5vw, 3.4rem);
  line-height: 1.2;
  margin-top: 2.4rem;
}
.scard {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(22rem, 20vw, 29rem);
  background: linear-gradient(180deg, #0f0f0f, #070707);
  border: 1px solid rgba(255,255,255,.08);
  padding: 2.2rem 2.2rem 2.4rem;
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg));
  will-change: transform;
  transition: border-color .5s, background .5s;
}
.scard:hover { border-color: rgba(255,255,255,.28); background: linear-gradient(180deg, #171717, #0a0a0a); }
.scard__i { display: block; color: var(--red); margin-bottom: 1.4rem; }
.scard b {
  display: block;
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: .02em;
  margin-bottom: .6rem;
}
.scard p { color: rgba(255,255,255,.5); font-size: 1.3rem; line-height: 1.75; }
.scatter__quote {
  position: absolute;
  left: 50%; bottom: 4rem;
  transform: translateX(-50%);
  width: min(88rem, 92vw);
  text-align: center;
}
.scatter__quote p {
  font-weight: 300;
  font-size: clamp(1.9rem, 2.2vw, 2.8rem);
  line-height: 1.6;
  letter-spacing: .02em;
}
.scatter__quote span { display: block; color: var(--dim); margin-top: 1.6rem; }

/* ---------- authorization ---------- */
.auth { padding-top: clamp(8rem, 12vh, 16rem); }
.auth__head { text-align: center; max-width: 1100px; margin: 0 auto clamp(5rem, 8vh, 9rem); }
.auth__head .eyebrow { justify-content: center; margin-bottom: clamp(3rem, 5vh, 4.4rem); }
.auth__note { color: var(--dim); margin-top: 2.6rem; }
.auth__list { border-top: 1px solid var(--line); }
.auth__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(10rem, 1.1fr) minmax(16rem, 1.5fr) minmax(18rem, 1.6fr) minmax(15rem, 1.1fr) 2.4rem;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem .6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .5s var(--ease), background .5s;
  cursor: pointer;
}
.auth__row::before {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease-3);
  z-index: -1;
}
.auth__row:hover::before { transform: scaleY(1); transform-origin: top; }
.auth__row:hover { color: #000; padding-left: 1.8rem; }
.auth__row:hover .auth__idx { color: var(--red); }
.auth__row:hover .auth__no,
.auth__row:hover .auth__date { color: rgba(0,0,0,.6); }
.auth__row:hover .auth__go { transform: translate(3px, -3px); }
.auth__idx { color: var(--dim); }
.auth__brand {
  font-weight: 500;
  font-size: clamp(1.9rem, 2.1vw, 2.8rem);
  letter-spacing: .01em;
  display: flex; align-items: baseline; gap: 1rem;
  line-height: 1.1;
}
.auth__brand i {
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: .1em;
  opacity: .6;
}
.auth__role { font-size: 1.45rem; }
.auth__no, .auth__date { color: rgba(255,255,255,.46); font-size: 1.05rem; letter-spacing: .1em; text-transform: none; }
.auth__go { text-align: right; color: var(--muted); transition: transform .4s var(--ease); }
.auth__row--doc { cursor: default; }
.auth__row--doc::before { display: none; }
.auth__row--doc:hover { color: #fff; padding-left: .6rem; }
.auth__row--doc:hover .auth__no,
.auth__row--doc:hover .auth__date { color: var(--muted); }
.auth__preview {
  position: fixed;
  width: 22rem;
  aspect-ratio: 3 / 4;
  pointer-events: none;
  z-index: 8500;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 30px 70px rgba(0,0,0,.7);
}
.auth__preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.auth__preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- products ---------- */
.products__head { margin-bottom: clamp(5rem, 8vh, 9rem); }
.products__head .eyebrow { margin-bottom: 3rem; }
.products__head .statement { text-align: left; }
.brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.brand {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem;
  display: flex; flex-direction: column;
  min-height: 32rem;
  transition: background .6s;
}
.brand:hover { background: #0a0a0a; }
.brand__top { display: flex; justify-content: space-between; align-items: center; color: var(--dim); }
.brand__tag { color: var(--red); font-size: .9rem; }
.brand h3 {
  font-weight: 300;
  font-size: clamp(2.6rem, 2.8vw, 4rem);
  line-height: 1;
  letter-spacing: -.01em;
  margin-top: auto;
  padding-top: 4rem;
}
.brand__cn { font-size: 1.45rem; color: rgba(255,255,255,.8); margin-top: .8rem; letter-spacing: .04em; }
.brand__d { color: rgba(255,255,255,.45); font-size: 1.25rem; line-height: 1.8; margin-top: 1.6rem; }
.brand:hover .brand__d { color: rgba(255,255,255,.6); }

.fields {
  margin-top: clamp(4rem, 6vh, 7rem);
  display: flex; gap: 3rem; align-items: baseline; flex-wrap: wrap;
}
.fields__label { color: var(--dim); flex: none; }
.fields__list { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; }
.fields__list li {
  font-size: 1.5rem;
  color: rgba(255,255,255,.72);
  position: relative;
  padding-left: 1.6rem;
}
.fields__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 1px;
  background: var(--red); transform: translateY(-50%);
}

/* ---------- clients ---------- */
.clients__head { text-align: center; margin-bottom: clamp(5rem, 8vh, 9rem); }
.clients__head .eyebrow { justify-content: center; margin-bottom: clamp(3rem, 5vh, 4.4rem); }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.cgroup { padding: 3rem 2.4rem 3rem 0; border-bottom: 1px solid var(--line); }
.cgroup:nth-child(3n+2) { padding-left: 2.4rem; border-left: 1px solid var(--line); }
.cgroup:nth-child(3n+3) { padding-left: 2.4rem; border-left: 1px solid var(--line); }
.cgroup--wide { grid-column: 1 / -1; border-left: 0; padding-left: 0; display: flex; gap: 3rem; align-items: baseline; flex-wrap: wrap; }
.cgroup__t { color: var(--red); margin-bottom: 2rem; font-size: .95rem; }
.cgroup ul { display: grid; gap: 1rem; }
.cgroup ul li {
  font-weight: 300;
  font-size: clamp(1.7rem, 1.7vw, 2.2rem);
  line-height: 1.4;
  letter-spacing: .01em;
  color: rgba(255,255,255,.86);
}
.chips { display: flex !important; flex-wrap: wrap; gap: 1rem !important; }
.chips li {
  border: 1px solid var(--line);
  padding: .6rem 1.6rem;
  font-size: 1.4rem !important;
  transition: border-color .4s, color .4s;
}
.chips li:hover { border-color: rgba(255,255,255,.5); }

/* ---------- belief ---------- */
.belief__head { margin-bottom: clamp(4rem, 7vh, 8rem); }
.belief__head .eyebrow { margin-bottom: 3rem; }
.belief__head .statement { text-align: left; }
.belief__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.belief__card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.8rem 2.4rem 3.4rem;
}
.belief__card:first-child { border-left: 1px solid var(--line); }
.belief__card span { color: var(--dim); }
.belief__card b {
  display: block;
  font-weight: 300;
  font-size: clamp(2.2rem, 2.2vw, 3rem);
  margin: 2rem 0 1.4rem;
  letter-spacing: .1em;
}
.belief__card p { color: rgba(255,255,255,.5); font-size: 1.35rem; line-height: 1.9; }
.belief__quote { text-align: center; margin-top: clamp(6rem, 10vh, 12rem); }
.belief__quote p {
  font-weight: 300;
  font-size: clamp(2rem, 2.6vw, 3.6rem);
  line-height: 1.6;
  letter-spacing: .02em;
}
.belief__quote cite { display: block; color: var(--dim); margin-top: 2.4rem; font-style: normal; }

/* ---------- contact ---------- */
.contact {
  position: relative;
  padding: clamp(12rem, 20vh, 24rem) var(--pad) clamp(26rem, 44vh, 46rem);
  overflow: hidden;
  isolation: isolate;
}
/* dithered sunset — a horizon band closing the page, kept out of the text zone */
.contact__bg {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(26rem, 44vh, 46rem);
  background-image: url("../img/sunset-dither.webp");
  background-size: 100% 100%;
  background-position: 50% 100%;
  background-repeat: no-repeat;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 32%, #000 72%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 32%, #000 72%, #000 88%, transparent 100%);
}
.contact__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 60%);
}
.contact__inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.contact .eyebrow { justify-content: center; margin-bottom: clamp(3rem, 5vh, 4.4rem); }
.contact__title {
  font-weight: 300;
  font-size: clamp(3.6rem, 7.4vw, 11rem);
  line-height: .96;
  letter-spacing: .01em;
}
.contact__sub {
  color: rgba(255,255,255,.72);
  font-size: clamp(1.35rem, 1.1vw, 1.6rem);
  line-height: 2;
  margin-top: clamp(2.4rem, 4vh, 3.6rem);
}
.cform {
  margin: clamp(4rem, 7vh, 7rem) auto 0;
  max-width: 1000px;
  text-align: left;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.28);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.field {
  display: block;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding: 1.6rem 0 1.2rem;
  transition: border-color .4s;
}
.cform__row .field:first-child { padding-right: 2.4rem; }
.cform__row .field:last-child { padding-left: 2.4rem; border-left: 1px solid rgba(255,255,255,.28); }
.field:focus-within { border-color: #fff; }
.field__l { display: block; color: rgba(255,255,255,.6); margin-bottom: .6rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #fff;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.3); }
.field--full { border-bottom: 1px solid rgba(255,255,255,.28); }
.cform__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-top: 2.8rem;
}
.cform__hint { color: rgba(255,255,255,.5); text-transform: none; letter-spacing: .08em; font-size: 1rem; }
.cform__hint.is-ok { color: #fff; }
.cform__hint.is-err { color: #ffd2d6; }

/* ---------- footer ---------- */
.ftr { padding: clamp(6rem, 10vh, 10rem) var(--pad) 3rem; border-top: 1px solid var(--line); }
.ftr__top {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: clamp(3rem, 6vw, 8rem);
  padding-bottom: clamp(4rem, 8vh, 8rem);
  border-bottom: 1px solid var(--line);
}
.ftr__brand { display: flex; gap: 1.6rem; align-items: flex-start; }
.ftr__mark { width: 22px; color: #fff; flex: none; margin-top: .4rem; }
.ftr__brand p { font-size: 1.5rem; line-height: 1.9; color: rgba(255,255,255,.8); }
.ftr__brand .mono { color: var(--dim); font-size: .9rem; letter-spacing: .12em; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ftr__h { color: var(--red); margin-bottom: 1.4rem; font-size: .95rem; }
.ftr__cols p:not(.ftr__h) { color: rgba(255,255,255,.55); font-size: 1.3rem; line-height: 1.9; }
.ftr__word {
  font-family: var(--pix);
  font-size: clamp(9rem, 25vw, 34rem);
  line-height: .78;
  letter-spacing: -.02em;
  color: #fff;
  opacity: .9;
  text-align: center;
  padding: clamp(2rem, 5vh, 5rem) 0 clamp(1rem, 3vh, 2rem);
  user-select: none;
}
.ftr__bottom {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem;
  justify-content: space-between;
  color: var(--dim);
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.ftr__bottom a:hover { color: #fff; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: clamp(2rem, 6vh, 6rem) var(--pad);
  animation: fadeIn .3s var(--ease);
}
.lb[hidden] { display: none; }
.lb__close {
  position: absolute; top: 2.4rem; right: var(--pad);
  padding: .8rem 1.4rem;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .3s, color .3s;
}
.lb__close:hover { background: #fff; color: #000; }
.lb__fig { display: grid; gap: 1.6rem; justify-items: center; max-height: 100%; }
.lb__fig img {
  max-height: min(78vh, 900px);
  width: auto;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
}
.lb__fig figcaption { color: var(--muted); }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .intro__grid { grid-template-columns: 1fr; gap: 5rem; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: 1fr 1fr; }
  .cgroup:nth-child(3n+2), .cgroup:nth-child(3n+3) { padding-left: 2.4rem; border-left: 1px solid var(--line); }
  .cgroup:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .auth__row {
    grid-template-columns: 3.4rem 1fr auto;
    grid-template-areas:
      "idx brand go"
      ". role role"
      ". no no"
      ". date date";
    row-gap: .5rem;
    padding: 2rem .2rem;
  }
  .auth__idx { grid-area: idx; }
  .auth__brand { grid-area: brand; }
  .auth__go { grid-area: go; }
  .auth__role { grid-area: role; color: rgba(255,255,255,.7); }
  .auth__no { grid-area: no; }
  .auth__date { grid-area: date; }
  .auth__preview { display: none; }
  .cgroup--wide { display: block; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .hdr__burger { display: block; }
  .hdr__cta { display: none; }
}

@media (max-width: 860px) {
  /* certificates become a swipeable strip instead of a squeezed 3D plane */
  .gallery { padding-bottom: clamp(4rem, 8vh, 8rem); }
  .gallery__stage {
    height: auto;
    perspective: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .gallery__plane {
    position: static;
    width: auto; height: auto;
    transform: none;
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 var(--pad);
    -webkit-overflow-scrolling: touch;
  }
  .gallery__card {
    position: static;
    width: 66vw;
    max-width: 34rem;
    flex: none;
    transform: none !important;
    scroll-snap-align: center;
  }
  .gallery__veil { display: none; }
  .belief__grid { grid-template-columns: 1fr; }
  .belief__card { border-left: 1px solid var(--line); }
  .ftr__top { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .cform__row .field:first-child { padding-right: 0; }
  .cform__row .field:last-child { padding-left: 0; border-left: 0; }
  .scatter { height: auto; min-height: 0; display: grid; gap: 1.6rem; padding: 4rem var(--pad) 6rem; }
  .scard { position: static; width: 100%; transform: none !important; }
  .scatter__quote { position: static; transform: none; width: 100%; padding-top: 4rem; }
  .scatter__note { margin-bottom: 3rem; }
}

@media (max-width: 640px) {
  body { font-size: 1.4rem; }
  .brands { grid-template-columns: 1fr; }
  .brand { min-height: 24rem; }
  .clients__grid { grid-template-columns: 1fr; }
  .cgroup, .cgroup:nth-child(3n+2), .cgroup:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .hero__title { font-size: clamp(4rem, 13.4vw, 7rem); }
  .hero__eyebrow { font-size: .9rem; letter-spacing: .1em; }
  .statement { font-size: clamp(2.8rem, 9.4vw, 4.6rem); }
  .ftr__cols { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero__foot { font-size: .85rem; }
  .hero__foot .mono:nth-child(3) { display: none; }
  .pcard { min-height: 36rem; }
}

/* mobile menu overlay */
@media (max-width: 1024px) {
  .nav.is-open {
    display: block;
    position: fixed;
    inset: 0;
    transform: none;
    background: #000;
    padding: 14rem var(--pad) 4rem;
    z-index: 7500;
    mix-blend-mode: normal;
  }
  .nav.is-open ul { gap: 2.2rem; }
  .nav.is-open a { font-size: 2.6rem; letter-spacing: .06em; color: rgba(255,255,255,.9); }
  .nav.is-open a i { width: 8px; height: 8px; opacity: 1; transform: none; color: var(--red); }
  body.menu-open { overflow: hidden; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ln__i { transform: none; }
  .grain { display: none; }
}
