/* ==========================================================================
   XINXINCHENG · 新欣诚 — commercial space manufacturer
   Single stylesheet. Hand-written, no framework, no build step.
   Brand colours sampled from the corporate logo:
     red #C1262E · deep red #B5001F · indigo #2E3094 · black #000
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --brand: #c1262e;
  --brand-2: #b5001f;
  --indigo: #2e3094;
  --ink: #0b0d12;
  --ink-2: #14171f;
  --ink-soft: #2a2f3a;
  --body: #414752;
  --muted: #767d8a;
  --line: #e3e5ea;
  --line-dark: rgba(255, 255, 255, .12);
  --paper: #ffffff;
  --soft: #f5f6f8;
  --soft-2: #eceef2;

  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 40px);
  --sec-y: clamp(64px, 8.2vw, 132px);
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;

  --fs-display: clamp(38px, 6.6vw, 82px);
  --fs-h2: clamp(26px, 3.5vw, 46px);
  --fs-h3: clamp(18px, 1.5vw, 22px);
  --fs-body: clamp(15px, 1.06vw, 16.5px);

  --sh-s: 0 1px 2px rgba(11, 13, 18, .05), 0 6px 18px rgba(11, 13, 18, .05);
  --sh-m: 0 12px 34px rgba(11, 13, 18, .10);
  --sh-l: 0 28px 70px rgba(11, 13, 18, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-num: "Inter", "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Section seams — a hard cut between a dark and a light block reads as a
     mistake, so neighbouring backgrounds overlap through a short eased ramp.
     Deliberately narrow: it should read as a softened edge, not as a band. */
  --seam: clamp(26px, 2.4vw, 42px);
  --seam-hero: clamp(38px, 3.2vw, 58px);
  --seam-sm: clamp(22px, 2vw, 36px);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol, dl, dd, figure, figcaption { margin: 0; padding: 0; }
li { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec-y); position: relative; }
.sec--soft { background: var(--soft); }
.sec--dark { background: var(--ink); color: rgba(255, 255, 255, .72); }
.sec--dark h2, .sec--dark h3 { color: #fff; }

/* ---------------------------------------------------------------- seams
   A hard cut between a dark and a light block reads as a mistake, so
   neighbouring backgrounds overlap through a short eased ramp.

   The ramp uses multi-stop rgba() (not a two-stop black→white gradient) so it
   eases out instead of passing through a flat grey, and it is painted with an
   explicit background-size so the stop percentages are relative to the ramp —
   not to the whole section. The ramp is shorter than the section's own padding,
   so no content ever sits on it. */
.sec--about {
  background-color: var(--paper);
  background-image: linear-gradient(180deg,
    var(--ink) 0%,
    rgba(11, 13, 18, .86) 20%,
    rgba(11, 13, 18, .52) 48%,
    rgba(11, 13, 18, .18) 74%,
    rgba(11, 13, 18, 0) 100%);
  background-size: 100% var(--seam-hero);
  background-repeat: no-repeat;
  padding-top: calc(var(--sec-y) + clamp(10px, 1.2vw, 20px));
}

.sec--mission {
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, var(--paper) 0%, rgba(255, 255, 255, .82) 22%, rgba(255, 255, 255, .42) 52%, rgba(255, 255, 255, .12) 78%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(255, 255, 255, .82) 22%, rgba(255, 255, 255, .42) 52%, rgba(255, 255, 255, .12) 78%, rgba(255, 255, 255, 0) 100%);
  background-size: 100% var(--seam), 100% var(--seam);
  background-position: top, bottom;
  background-repeat: no-repeat, no-repeat;
}

.sec--contact {
  background-color: var(--brand);
  background-image: linear-gradient(180deg,
    var(--soft) 0%,
    rgba(245, 246, 248, .84) 22%,
    rgba(245, 246, 248, .44) 52%,
    rgba(245, 246, 248, .13) 78%,
    rgba(245, 246, 248, 0) 100%);
  background-size: 100% var(--seam);
  background-repeat: no-repeat;
}

.ft {
  background-color: var(--ink);
  background-image: linear-gradient(180deg,
    var(--brand) 0%,
    rgba(193, 38, 46, .84) 22%,
    rgba(193, 38, 46, .44) 52%,
    rgba(193, 38, 46, .13) 78%,
    rgba(193, 38, 46, 0) 100%);
  background-size: 100% var(--seam-sm);
  background-repeat: no-repeat;
  padding-top: calc(var(--seam-sm) + clamp(26px, 3vw, 50px));
}
.skip {
  position: fixed; top: 8px; left: -9999px; z-index: 200; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--r-m);
}
.skip:focus { left: 12px; }
.hp { position: absolute !important; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow__dot { width: 7px; height: 7px; background: var(--brand); flex: none; }
.eyebrow--light { color: rgba(255, 255, 255, .72); }
.eyebrow--light .eyebrow__dot { background: var(--brand); }
.sec-title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -.02em; }
.sec-lead { margin-top: 18px; max-width: 62ch; font-size: clamp(15px, 1.15vw, 17.5px); color: var(--muted); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--center { text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .sec-lead { margin-inline: auto; }
.sec--dark .sec-lead { color: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 100px; background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); font-weight: 600; font-size: 14.5px; line-height: 1;
  letter-spacing: .01em; white-space: nowrap; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-m); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--brand { --btn-bg: var(--brand); }
.btn--brand:hover { --btn-bg: var(--brand-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .34); backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-bd: #fff; --btn-bg: rgba(255, 255, 255, .12); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--lg { padding: 17px 32px; font-size: 15.5px; }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- header */
.hd { position: fixed; inset: 0 0 auto; z-index: 90; transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s; }
.hd__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hd__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #ff6a5e); transition: width .1s linear; }
.hd__inner { display: flex; align-items: center; gap: 22px; height: 74px; }
.hd.is-stuck { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(11, 13, 18, .06); }
.brand { position: relative; display: block; flex: none; line-height: 0; }
.brand__logo {
  display: block; height: 30px; width: auto;
  /* Over the dark hero the colour logo is tinted pure white; once the header
     turns solid it fades back to the brand colours. A single <img> means the
     two states can never drift out of alignment. */
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
  transition: filter .4s var(--ease);
}
.hd.is-stuck .brand__logo { filter: none; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 9px 13px; border-radius: 100px;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .82); transition: color .3s, background .3s;
}
.nav__link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }
.hd.is-stuck .nav__link { color: var(--body); }
.hd.is-stuck .nav__link:hover, .hd.is-stuck .nav__link.is-active { color: var(--brand); }
.hd__side { display: flex; align-items: center; gap: 12px; flex: none; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 13.5px; font-weight: 600;
  transition: background .3s, color .3s, border-color .3s;
}
.lang svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hd.is-stuck .lang { border-color: var(--line); color: var(--ink); }
.hd.is-stuck .lang:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; position: relative; border: 1px solid rgba(255, 255, 255, .3); }
.burger span { position: absolute; left: 12px; width: 18px; height: 1.6px; background: #fff; transition: transform .35s var(--ease), opacity .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
.hd.is-stuck .burger { border-color: var(--line); }
.hd.is-stuck .burger span { background: var(--ink); }
body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink); color: #fff; }
.hero__bg { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.5s var(--ease), transform 9s linear;
}
.hero__slide.is-on { opacity: 1; transform: scale(1.14); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 8, 12, .96) 0%, rgba(6, 8, 12, .87) 32%, rgba(6, 8, 12, .52) 64%, rgba(6, 8, 12, .74) 100%),
    /* ends on exactly --ink so the next section's ramp starts on the same colour */
    linear-gradient(to top, var(--ink) 0%, rgba(11, 13, 18, .82) 14%, rgba(11, 13, 18, .3) 48%, transparent 74%),
    radial-gradient(ellipse 72% 66% at 20% 44%, rgba(6, 8, 12, .7), transparent 72%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 116px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .74);
  padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 100px;
  background: rgba(255, 255, 255, .05); backdrop-filter: blur(8px);
}
/* The heading reset colours h1 with --ink, which is invisible on the dark hero —
   the hero title must opt back into white explicitly. */
.hero__title { margin: 26px 0 0; color: #fff; font-size: var(--fs-display); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; max-width: 8.5em; text-shadow: 0 2px 34px rgba(0, 0, 0, .5); }
.hero__line { display: block; }
.loc-en .hero__title { font-size: clamp(30px, 4.4vw, 60px); max-width: 17em; letter-spacing: -.03em; }
.hero__lead { margin-top: 26px; max-width: 52ch; font-size: clamp(15.5px, 1.25vw, 19px); line-height: 1.8; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 18px rgba(0, 0, 0, .45); }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  margin-top: clamp(46px, 6vw, 76px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 30px; max-width: 900px;
}
.stat { padding-right: 20px; border-right: 1px solid rgba(255, 255, 255, .1); }
.stat:last-child { border-right: 0; }
.stat__num, .stat__suf { font-family: var(--font-num); font-size: clamp(26px, 3vw, 42px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff; }
.stat__suf { color: var(--brand); margin-left: 2px; }
.stat__lbl { display: block; margin-top: 10px; font-size: 12.8px; letter-spacing: .02em; color: rgba(255, 255, 255, .56); }
.hero__dots { position: absolute; left: var(--gut); bottom: 34px; z-index: 3; display: flex; gap: 8px; }
.hero__dot { width: 26px; height: 2px; background: rgba(255, 255, 255, .26); transition: background .4s, transform .4s; }
.hero__dot.is-on { background: var(--brand); transform: scaleY(1.6); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(255, 255, 255, .5), transparent); animation: scrollHint 2.2s var(--ease) infinite; }
@keyframes scrollHint { 0% { transform: scaleY(.2); transform-origin: top; opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); transform-origin: top; opacity: 0; } }
/* on short viewports the hero content fills the screen — drop the hint rather
   than let it collide with the stat row */
@media (max-height: 880px) { .hero__scroll { display: none; } }

/* ---------------------------------------------------------------- layout helpers */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.grid-2--rev > :first-child { order: 2; }
.grid-2--rev > :last-child { order: 1; }
.grid-2--contact { align-items: start; gap: clamp(32px, 5vw, 70px); }

/* ---------------------------------------------------------------- about */
.about__copy .sec-head { margin-bottom: 26px; }
.prose p + p { margin-top: 15px; }
.prose p { color: var(--body); }
.about__brands {
  margin-top: 22px; padding: 16px 20px; border-left: 2px solid var(--brand); background: var(--soft);
  font-size: 14.4px; color: var(--ink-soft); border-radius: 0 var(--r-m) var(--r-m) 0;
}
.facts { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.fact { background: #fff; padding: 18px 20px; }
.fact b { display: block; font-family: var(--font-num); font-size: 21px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.fact span { font-size: 13.4px; color: var(--muted); }
.about__media { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-l); }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__media figcaption {
  position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 100px; background: rgba(11, 13, 18, .72); backdrop-filter: blur(10px);
  color: #fff; font-size: 12.6px; letter-spacing: .04em;
}
.about__media .tag { font-weight: 700; letter-spacing: .1em; color: #fff; }

/* ---------------------------------------------------------------- mission + values */
.sec--mission { overflow: hidden; }
/* Atmosphere glow, kept inside its own box (`closest-side`) so it cannot bleed
   up into the light→dark seam and tint it pink. */
.sec--mission::before {
  content: ''; position: absolute; left: -8%; top: 14%; width: 54%; height: 72%;
  background: radial-gradient(closest-side, rgba(193, 38, 46, .3), transparent);
  pointer-events: none;
}
.sec--mission > .wrap { position: relative; z-index: 1; }
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 30px); margin-top: 30px; }
.mv__card {
  padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-l); border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  backdrop-filter: blur(6px); transition: transform .5s var(--ease), border-color .5s;
}
.mv__card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .28); }
.mv__card--brand { background: linear-gradient(150deg, var(--brand), var(--brand-2)); border-color: transparent; }
.mv__k { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.mv__card--brand .mv__k { color: rgba(255, 255, 255, .72); }
.mv__h { margin-top: 14px; font-size: clamp(20px, 2vw, 27px); font-weight: 700; }
.mv__d { margin-top: 18px; font-size: clamp(14.6px, 1.1vw, 16.5px); line-height: 1.85; color: rgba(255, 255, 255, .74); }
.mv__card--brand .mv__d { color: rgba(255, 255, 255, .94); }
.values { margin-top: clamp(48px, 6vw, 80px); }
.values__title { font-size: clamp(20px, 2.2vw, 30px); font-weight: 700; margin-top: 4px; max-width: 22ch; }
.values__head { margin-bottom: 34px; }
.values__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-l); overflow: hidden; }
.value { background: var(--ink); padding: clamp(22px, 2.4vw, 34px); transition: background .45s var(--ease); }
.value:hover { background: var(--ink-2); }
.value__i { font-family: var(--font-num); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--brand); }
.value__t { margin-top: 14px; font-size: var(--fs-h3); font-weight: 700; }
.value__e { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .38); margin-top: 5px; }
.value__d { margin-top: 14px; font-size: 14.4px; line-height: 1.8; color: rgba(255, 255, 255, .62); }

/* ---------------------------------------------------------------- capability */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); }
.cap {
  background: #fff; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  display: flex; flex-direction: column;
}
.cap:hover { transform: translateY(-6px); box-shadow: var(--sh-m); border-color: transparent; }
.cap__pic { overflow: hidden; aspect-ratio: 16 / 11; background: var(--soft-2); }
.cap__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.cap:hover .cap__pic img { transform: scale(1.06); }
.cap__body { padding: clamp(20px, 2.2vw, 30px); position: relative; flex: 1; }
.cap__n { position: absolute; top: -18px; right: clamp(20px, 2.2vw, 30px); font-family: var(--font-num); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .9); background: var(--brand); padding: 5px 11px; border-radius: 100px; }
.cap__t { font-size: var(--fs-h3); font-weight: 700; }
.cap__e { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.cap__d { margin-top: 14px; font-size: 14.2px; line-height: 1.78; color: var(--body); }

/* ---------------------------------------------------------------- manufacturing */
.mf__copy .sec-head { margin-bottom: 26px; }
.ticks { margin-top: 6px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; font-size: 14.8px; color: var(--ink-soft); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(193, 38, 46, .1);
}
.ticks li::after {
  content: ''; position: absolute; left: 5.5px; top: .72em; width: 5px; height: 9px;
  border: solid var(--brand); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
.ws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ws { overflow: hidden; border-radius: var(--r-m); background: var(--soft-2); margin: 0; }
.ws:first-child { grid-column: span 2; }
.ws img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .9s var(--ease-out); }
.ws:first-child img { aspect-ratio: 16 / 9; }
.ws:hover img { transform: scale(1.05); }

/* ---------------------------------------------------------------- projects */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip {
  padding: 9px 20px; border-radius: 100px; border: 1px solid var(--line); background: #fff;
  font-size: 13.8px; font-weight: 500; color: var(--body); transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips__count { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .chips__count { margin-left: 0; width: 100%; text-align: center; } }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.9vw, 24px); }
.card { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.card.is-hide { display: none; }
.card__btn { display: flex; flex-direction: column; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.card__btn:hover { transform: translateY(-6px); box-shadow: var(--sh-m); border-color: transparent; }
.card__pic { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft-2); }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card__btn:hover .card__pic img { transform: scale(1.07); }
.card__meta { display: block; padding: 20px 22px 24px; }
.card__brand { display: block; font-size: 11.6px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
.card__name { display: block; margin-top: 9px; font-size: 16.6px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.card__desc { display: block; margin-top: 9px; font-size: 13.6px; line-height: 1.75; color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.4px; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; }
.card__more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .35s var(--ease); }
.card__btn:hover .card__more svg { transform: translateX(4px); }
.card__btn:hover .card__more { color: var(--brand); }

.films { margin-top: clamp(46px, 6vw, 78px); }
.films__head { margin-bottom: 24px; }
.films__title { font-size: clamp(19px, 1.8vw, 25px); font-weight: 700; }
.films__lead { margin-top: 8px; font-size: 14.4px; color: var(--muted); }
.films__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.film { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--ink); }
.film__v { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #000; display: block; }
.film__brand {
  position: absolute; left: 14px; top: 14px; padding: 6px 13px; border-radius: 100px;
  background: rgba(11, 13, 18, .6); backdrop-filter: blur(8px); color: #fff;
  font-size: 11.6px; font-weight: 700; letter-spacing: .12em; pointer-events: none;
}
/* custom controls — replaces the heavy native chrome with one clean button */
.film__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .4);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s;
}
.film__play svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.film__play .i-pause { display: none; }
.film__play:hover { background: var(--brand); color: #fff; transform: translate(-50%, -50%) scale(1.07); }
.film.is-playing .film__play { opacity: 0; transform: translate(-50%, -50%) scale(.86); }
.film.is-playing:hover .film__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.film.is-playing .film__play .i-play { display: none; }
.film.is-playing .film__play .i-pause { display: block; }

/* ---------------------------------------------------------------- timeline */
.tl { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.tl::before {
  content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px;
  background: var(--line);
}
.tl__item { position: relative; padding: 0 clamp(8px, 1.2vw, 18px); }
.tl__node { height: 11px; display: flex; align-items: center; justify-content: flex-start; }
.tl__node span {
  width: 11px; height: 11px; border-radius: 50%; background: var(--brand);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tl__item:hover .tl__node span { transform: scale(1.28); box-shadow: 0 0 0 8px rgba(193, 38, 46, .14); }
.tl__card { margin-top: 22px; padding-right: 12px; }
.tl__year { display: block; font-family: var(--font-num); font-size: clamp(21px, 2vw, 27px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.tl__tag { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 100px; background: rgba(193, 38, 46, .09); color: var(--brand); font-size: 12.2px; font-weight: 600; }
.tl__d { margin-top: 12px; font-size: 13.8px; line-height: 1.72; color: var(--muted); }

/* ---------------------------------------------------------------- partners */
.plogos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.plogo { background: #fff; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 2vw, 28px); min-height: 108px; transition: background .4s var(--ease); }
/* logos keep their own brand colours — no greyscale treatment */
.plogo img { max-height: 44px; width: auto; max-width: 90%; object-fit: contain; transition: transform .45s var(--ease); }
.plogo:hover { background: var(--soft); }
.plogo:hover img { transform: scale(1.06); }

/* ---------------------------------------------------------------- certifications */
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.9vw, 24px); }
.cert { text-align: center; }
.cert__btn {
  display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.cert__btn:hover { transform: translateY(-5px); box-shadow: var(--sh-m); }
.cert__btn img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; }
.cert__t { margin-top: 14px; font-size: 13.8px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.cert__i { margin-top: 4px; font-size: 12.2px; color: var(--muted); }

/* ---------------------------------------------------------------- contact */
.sec--contact { color: rgba(255, 255, 255, .86); position: relative; overflow: hidden; }
.sec--contact::before {
  content: ''; position: absolute; right: -12%; top: -22%; width: 62%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), transparent 62%);
}
/* No dark bottom wash here: the footer's own red→ink ramp owns that edge, and a
   darkened red meeting a pure red would read as another hard cut. */
.sec--contact > .wrap { position: relative; z-index: 1; }
.ct__title { font-size: clamp(30px, 4.4vw, 58px); font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; max-width: 14ch; }
.ct__lead { margin-top: 20px; max-width: 46ch; font-size: clamp(15px, 1.15vw, 17px); color: rgba(255, 255, 255, .84); }
.ct__rows { margin: 32px 0 30px; display: grid; gap: 14px; }
.crow { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.crow dt { font-size: 12.8px; letter-spacing: .06em; color: rgba(255, 255, 255, .68); }
.crow dd { font-size: 15px; color: #fff; }
.crow--tel { border-bottom: 0; padding-bottom: 0; }
.ct__tel { font-family: var(--font-num); font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.ct__tel:hover { text-decoration: underline; text-underline-offset: 6px; }
.ct__form {
  background: #fff; border-radius: var(--r-l); padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 30px 80px rgba(60, 0, 0, .28); color: var(--body);
}
.ct__formtitle { font-size: 20px; font-weight: 700; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field label i { color: var(--brand); font-style: normal; margin-left: 3px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-m);
  font-family: inherit; font-size: 14.6px; color: var(--ink); background: var(--soft);
  transition: border-color .3s, background .3s, box-shadow .3s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #a9aeb9; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(193, 38, 46, .1); }
.field.is-invalid input { border-color: var(--brand); background: #fff5f5; }
.ct__form .btn { margin-top: 8px; }
.ct__msg { margin-top: 14px; font-size: 13.8px; min-height: 22px; }
.ct__msg.is-ok { color: #157a4a; }
.ct__msg.is-err { color: var(--brand); }
.ct__privacy { margin-top: 10px; font-size: 12.2px; color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.ft { color: rgba(255, 255, 255, .58); }
.ft__inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: clamp(28px, 4vw, 60px); padding-bottom: clamp(36px, 4vw, 56px); }
.ft__brand img { height: 30px; width: auto; }
.ft__brand p { margin-top: 18px; font-size: 14.4px; max-width: 30ch; line-height: 1.75; }
.ft__lang { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--brand); }
.ft__lang:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft h4 { font-size: 12.6px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .42); font-weight: 600; margin-bottom: 18px; }
.ft__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.ft__nav a { font-size: 14.2px; transition: color .3s; }
.ft__nav a:hover { color: #fff; }
.ft__contact p { font-size: 14.2px; }
.ft__contact p + p { margin-top: 8px; }
.ft__contact a:hover { color: #fff; }
.ft__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font-size: 12.8px;
}
.ft__top { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12.8px; font-weight: 600; color: rgba(255, 255, 255, .72); transition: color .3s; }
.ft__top svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.ft__top:hover { color: #fff; }
.ft__top:hover svg { transform: translateY(-3px); }

/* ---------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(6, 8, 12, .94); backdrop-filter: blur(6px); padding: clamp(16px, 4vw, 60px); }
.lb[hidden] { display: none; }
.lb__stage { max-width: min(1180px, 92vw); max-height: 84vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb__stage img { max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: var(--r-m); box-shadow: var(--sh-l); animation: lbIn .4s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb__stage figcaption { color: rgba(255, 255, 255, .8); font-size: 14px; text-align: center; }
.lb__close, .lb__nav {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
  transition: background .3s, transform .3s;
}
.lb__close:hover, .lb__nav:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }
.lb__close svg, .lb__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.lb__close { top: 22px; right: 22px; }
.lb__nav--prev { left: 22px; top: 50%; margin-top: -23px; }
.lb__nav--next { right: 22px; top: 50%; margin-top: -23px; }
.lb__hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255, 255, 255, .42); letter-spacing: .04em; }

/* ---------------------------------------------------------------- 404 */
.p404 { background: var(--ink); color: rgba(255, 255, 255, .7); min-height: 100svh; display: grid; place-items: center; text-align: center; }
.p404__logo { height: 34px; margin: 0 auto 28px; }
.p404__code { font-family: var(--font-num); font-size: clamp(70px, 16vw, 160px); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.05em; }
.p404__txt { margin: 14px 0 30px; }
.p404__in .btn { margin-inline: auto; }

/* ---------------------------------------------------------------- scrollbars
   Self-drawn, so the page does not show a native grey slab on Windows.
   `scrollbar-width` is scoped to Firefox: once it is set, Chrome ignores the
   ::-webkit-scrollbar pseudo-elements altogether. */
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: #c9cdd6 var(--paper); }
}
html::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: var(--paper); }
html::-webkit-scrollbar-thumb {
  background: #c9cdd6; border-radius: 99px;
  border: 3px solid var(--paper); background-clip: content-box;
}
html::-webkit-scrollbar-thumb:hover { background: #9aa0ac; background-clip: content-box; }
.sec--dark::-webkit-scrollbar-thumb,
.sec--contact::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .35); background-clip: content-box; }

/* ---------------------------------------------------------------- reveal
   Hidden only when JS is available (html.js), so a JS failure never blanks the
   page content.
   The stagger delay must live INSIDE the transition shorthand — `transition`
   resets `transition-delay`, and a separate (lower-specificity) delay rule
   would silently lose to this one. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .8s var(--ease-out) var(--d, 0ms),
    transform .8s var(--ease-out) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; } }
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------------------------------------------------------------- mobile action dock
   Hidden on desktop; on phones it becomes a fixed thumb-zone bar. */
.dock { display: none; }
.dock__a svg, .dock__cta svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Bottom-sheet menu chrome — only rendered on small screens. */
.nav-backdrop { display: none; }
.nav__grab, .nav__title, .nav__foot, .nav__idx { display: none; }

/* Swipe affordance for horizontally scrolling rails. */
.rail-hint { display: none; }

/* Partner wall: the second <ul> is the marquee duplicate, desktop uses one grid. */
.pmarquee__track > ul:last-child { display: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .nav__list { gap: 0; }
  .nav__link { padding: 9px 10px; font-size: 13.4px; }
  .plogos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  /* ---- bottom-sheet navigation -------------------------------------
     An opaque panel that slides up from the thumb zone. Opaque (not
     translucent) so a scrolling / long screenshot can never ghost the
     menu over the page content. */
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 96;
    margin: 0; background: var(--ink); border-radius: 22px 22px 0 0;
    padding: 10px 0 calc(22px + env(safe-area-inset-bottom, 0px));
    max-height: 86svh; overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(112%); visibility: hidden;
    transition: transform .42s var(--ease-out), visibility .42s;
    box-shadow: 0 -18px 60px rgba(0, 0, 0, .45);
  }
  body.nav-open .nav { transform: translateY(0); visibility: visible; }
  .nav__grab {
    display: block; width: 42px; height: 4px; border-radius: 4px;
    background: rgba(255, 255, 255, .22); margin: 0 auto 16px;
  }
  .nav__title {
    display: flex; align-items: center; gap: 9px; margin: 0 0 14px;
    padding-inline: clamp(20px, 6vw, 34px);
    font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
  }
  .nav__title .eyebrow__dot { background: var(--brand); }
  .nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-inline: clamp(16px, 5vw, 30px); }
  .nav__link {
    display: flex; align-items: center; gap: 10px; padding: 15px 16px;
    border-radius: 12px; background: rgba(255, 255, 255, .055);
    font-size: 16.5px; font-weight: 600; color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .07); min-height: 54px;
  }
  .nav__link::after { display: none; }
  .nav__link:active { background: rgba(255, 255, 255, .12); }
  .nav__idx { display: block; font-family: var(--font-num); font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
  .hd.is-stuck .nav__link { color: #fff; }
  .nav__foot { display: grid; gap: 10px; padding: 18px clamp(16px, 5vw, 30px) 0; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav__tel {
    display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px;
    background: rgba(255, 255, 255, .06); color: #fff;
  }
  .nav__tel svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.7; }
  .nav__tel b { font-family: var(--font-num); font-size: 16px; letter-spacing: -.01em; }
  .nav__tel span { margin-left: auto; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 94;
    background: rgba(6, 8, 12, .55); opacity: 0; pointer-events: none;
    transition: opacity .4s var(--ease);
  }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .burger { display: block; z-index: 97; }
  .grid-2, .grid-2--rev { grid-template-columns: minmax(0, 1fr); }
  .grid-2--rev > :first-child, .grid-2--rev > :last-child { order: initial; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 16 / 11; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .films__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tl::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--line) 4%, var(--line) 96%, transparent); }
  .tl__item { padding: 0 0 30px 32px; }
  .tl__node { position: absolute; left: 0; top: 6px; height: auto; justify-content: center; width: 11px; }
  .tl__card { margin-top: 0; padding-right: 0; }
  .ft__inner { grid-template-columns: 1fr 1fr; }
  .ft__contact { grid-column: span 2; }
}

/* ==================================================================
   PHONES — a purpose-built layout, not a squeezed desktop grid.
   Lists that repeat (projects, certificates, values, capabilities,
   films) become horizontal snap rails; the page gets a fixed action
   dock in the thumb zone and the hero fills the screen.
   ================================================================== */
@media (max-width: 760px) {
  :root {
    --gut: 20px;
    --sec-y: 60px;
    --fs-h2: 26px;
    --fs-h3: 18px;
    --fs-body: 15.5px;
    --r-l: 16px;
    /* the seam ramps must stay shorter than the section padding above */
    --seam: 20px;
    --seam-hero: 26px;
    --seam-sm: 18px;
  }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

  /* ---- header ---- */
  .hd__inner { height: 62px; gap: 10px; }
  .brand__logo { height: 26px; }
  .lang { padding: 8px 12px; font-size: 12.5px; }
  .lang svg { width: 14px; height: 14px; }
  .burger { width: 40px; height: 40px; }
  .burger span { left: 11px; }
  .hd__side .btn--sm { display: none; }

  /* ---- hero: full-bleed, bottom-anchored, thumb-reachable ---- */
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero__inner { padding-top: 92px; padding-bottom: 34px; }
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(6, 8, 12, .97) 6%, rgba(6, 8, 12, .82) 34%, rgba(6, 8, 12, .38) 62%, rgba(6, 8, 12, .62) 100%),
      radial-gradient(ellipse 120% 50% at 20% 92%, rgba(6, 8, 12, .8), transparent 72%);
  }
  .hero__grid { background-size: 56px 56px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .14em; padding: 7px 13px; }
  .hero__title { margin-top: 18px; font-size: clamp(31px, 9.4vw, 42px); line-height: 1.14; letter-spacing: -.03em; max-width: 100%; }
  .loc-en .hero__title { font-size: clamp(28px, 8vw, 38px); max-width: 100%; }
  .hero__lead { margin-top: 16px; font-size: 15px; line-height: 1.75; }
  .hero__cta { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero__cta .btn { width: 100%; padding: 16px 20px; }
  .hero__stats { margin-top: 28px; padding-top: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .stat { padding-right: 14px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat__num, .stat__suf { font-size: 26px; }
  .stat__lbl { font-size: 11.6px; margin-top: 7px; }
  .hero__dots { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .hero__dot { width: 22px; }
  .hero__scroll { display: none; }

  /* ---- rhythm ---- */
  .sec-head { margin-bottom: 26px; }
  .sec-head--center { text-align: left; }
  .sec-head--center .eyebrow { justify-content: flex-start; }
  .sec-head--center .sec-lead { margin-inline: 0; }
  .eyebrow { margin-bottom: 12px; font-size: 11.5px; letter-spacing: .13em; }
  .sec-lead { margin-top: 12px; font-size: 14.6px; }

  /* ---- about ---- */
  .about__media img { aspect-ratio: 4 / 3; }
  .prose p + p { margin-top: 12px; }
  .prose p { font-size: 14.8px; }
  .about__brands { padding: 14px 16px; font-size: 13.6px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
  .fact { padding: 14px 15px; }
  .fact b { font-size: 17px; }
  .fact span { font-size: 12.2px; }

  /* ---- mission / values ---- */
  .mv { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
  .mv__card { padding: 24px 22px; }
  .mv__d { font-size: 14.4px; }
  .values { margin-top: 40px; }
  .values__head { margin-bottom: 22px; }
  .values__title { font-size: 20px; }

  /* ---- capability ---- */
  .cap { border-radius: 16px; }
  .cap__body { padding: 18px 18px 22px; }
  .cap__n { right: 18px; top: -16px; }
  .cap__d { font-size: 13.8px; }

  /* ---- manufacturing ---- */
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ws:first-child { grid-column: span 2; }
  .ticks { gap: 11px; }
  .ticks li { font-size: 14.2px; padding-left: 29px; }

  /* ---- projects ---- */
  .chips {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; padding: 9px 18px; font-size: 13.4px; }
  .chips__count { flex: 0 0 auto; margin-left: 4px; white-space: nowrap; font-size: 12.4px; }
  .films { margin-top: 40px; }

  /* ---- partner marquee ---- */
  .pmarquee {
    overflow: hidden; margin-inline: calc(var(--gut) * -1); padding-block: 4px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .pmarquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
  .pmarquee__track > ul:last-child { display: flex; }
  .pmarquee:hover .pmarquee__track, .pmarquee:active .pmarquee__track { animation-play-state: paused; }
  .pmarquee .plogos {
    display: flex; gap: 10px; padding: 0 5px;
    background: none; border: 0; border-radius: 0; overflow: visible;
  }
  .plogo {
    flex: 0 0 auto; width: 124px; min-height: 76px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; padding: 12px;
  }
  .plogo img { max-height: 30px; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ---- certifications ---- */
  .cert__btn { border-radius: 14px; }
  .cert__t { margin-top: 10px; font-size: 12.8px; }
  .cert__i { font-size: 11.4px; }

  /* ---- contact ---- */
  .ct__title { font-size: clamp(28px, 8.4vw, 38px); max-width: 100%; }
  .ct__lead { font-size: 14.6px; margin-top: 14px; }
  .ct__rows { margin: 22px 0 22px; gap: 11px; }
  .crow { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .crow dt { font-size: 12px; }
  .crow dd { font-size: 14.4px; }
  .ct__tel { font-size: 30px; }
  .ct__form { padding: 22px 18px 24px; border-radius: 16px; margin-top: 26px; }
  .ct__formtitle { font-size: 17.5px; margin-bottom: 16px; }
  /* 16px keeps iOS Safari from zooming the viewport on focus */
  .field input, .field textarea { font-size: 16px; padding: 13px 14px; }
  .field { margin-bottom: 14px; }
  .ct__rows .crow:last-child { padding-bottom: 0; }

  /* ---- footer ---- */
  .ft { padding-top: 44px; }
  .ft__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: 30px; }
  .ft__contact { grid-column: auto; }
  .ft__nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .ft__bottom { font-size: 11.6px; gap: 8px 16px; }
  .ft__top { margin-left: 0; }

  /* ---- the action dock ---- */
  .dock {
    display: flex; align-items: stretch; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .93);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--line);
    transform: translateY(120%); transition: transform .4s var(--ease-out);
  }
  .dock.is-on { transform: none; }
  .dock__a {
    flex: 0 0 auto; min-width: 66px; min-height: 50px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 12px; border: 1px solid var(--line); background: #fff;
    font-size: 11.4px; font-weight: 600; color: var(--ink-soft);
  }
  .dock__a:active { background: var(--soft); color: var(--brand); }
  .dock__cta {
    flex: 1 1 auto; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 12px; background: var(--brand); color: #fff;
    font-size: 15.5px; font-weight: 700; letter-spacing: .01em;
    box-shadow: 0 8px 22px rgba(193, 38, 46, .32);
  }
  .dock__cta:active { background: var(--brand-2); transform: scale(.985); }
  .dock__cta svg { width: 17px; height: 17px; }

  /* ---- swipe rails -------------------------------------------------
     The same markup that is a grid on desktop becomes a snap rail here,
     which removes thousands of pixels of vertical scrolling. */
  .rail {
    display: flex; flex-wrap: nowrap; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
    margin-inline: calc(var(--gut) * -1);
    padding: 4px var(--gut) 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 auto; scroll-snap-align: start; }
  .cards.rail > .card { width: 78%; }
  .certs.rail > .cert { width: 47%; }
  .values__list.rail > .value { width: 78%; border-radius: 16px; }
  .cap-grid.rail > .cap { width: 78%; }
  .films__list.rail > .film { width: 76%; }

  /* timeline rail: a continuous hairline drawn per item, since the
     container's own ::before can only span the visible width */
  .tl.rail { gap: 0; padding-bottom: 2px; }
  .tl.rail::before { display: none; }
  .tl.rail > .tl__item { width: 66%; padding: 0 14px 0 16px; }
  .tl.rail > .tl__item::before {
    content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--line);
  }
  .tl.rail > .tl__item:first-child::before { left: 16px; }
  .tl.rail .tl__node { position: absolute; left: 16px; top: 0; width: 11px; height: 11px; }
  .tl.rail .tl__card { margin-top: 30px; padding-right: 0; }
  .tl.rail .tl__year { font-size: 22px; }
  .tl.rail .tl__d { font-size: 13.4px; }

  .rail-hint {
    display: flex; align-items: center; gap: 10px; margin-top: 12px;
    font-size: 11.6px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  .rail-hint i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
  .rail-hint i:last-child { background: linear-gradient(90deg, var(--line), transparent); }
  /* right-edge fade shows there is more to swipe */
  .rail.is-scrollable.at-start, .rail.is-scrollable:not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 42px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 42px), transparent 100%);
  }
  .rail.is-scrollable.at-end:not(.at-start) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 100%);
  }
  .rail.is-scrollable:not(.at-start):not(.at-end) {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 42px, #000 calc(100% - 42px), transparent 100%);
  }

  /* ---- lightbox: thumb-first ---- */
  .lb { padding: 0; align-items: stretch; }
  .lb__stage { max-width: 100%; max-height: 100%; height: 100%; justify-content: center; padding: 58px 0 90px; }
  .lb__stage img { max-height: 100%; border-radius: 0; }
  .lb__stage figcaption { padding-inline: 20px; font-size: 13.4px; }
  .lb__close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .lb__nav { width: 40px; height: 40px; top: auto; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
  .lb__nav--prev { left: 18px; }
  .lb__nav--next { right: 18px; }
  .lb__hint { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 11px; }

  .p404__in { padding-inline: 24px; }
}

@media (max-width: 420px) {
  .brand__logo { height: 24px; }
  .nav__list { grid-template-columns: minmax(0, 1fr); }
  .cards.rail > .card,
  .cap-grid.rail > .cap,
  .values__list.rail > .value { width: 86%; }
  .certs.rail > .cert { width: 56%; }
  .tl.rail > .tl__item { width: 76%; }
  .dock__a { min-width: 60px; }
  .dock__cta { font-size: 14.6px; }
}

/* ---------------------------------------------------------------- a11y + motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__slide.is-on { transform: scale(1); }
}
@media print {
  .hd, .hero__scroll, .hero__dots, .lb, .ct__form, .films { display: none !important; }
  .sec { padding-block: 24px; page-break-inside: avoid; }
  body { color: #000; }
}
