:root {
  --maroon: #670D21;
  --maroon-bright: #8a1330;
  --black: #040404;
  --white: #FFFFFF;
  --grey-050: #f6f5f4;
  --grey-100: #eceae8;
  --grey-400: #9a9691;
  --grey-600: #5c5955;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 88px;
  --container-pad: clamp(24px, 4vw, 64px);

  /* one spacing system for every section, taken from About us */
  --page-max: 1240px;                    /* content column */
  --section-top: clamp(64px, 8vw, 112px);
  --section-bottom: clamp(64px, 8vw, 112px);
  --label-gap: 24px;                     /* section label -> content */
  --block-gap: clamp(48px, 6vw, 80px);   /* between blocks inside a section */
  --media-gap: 12px;                     /* between pictures */
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn--outline {
  border: 1px solid var(--black);
  color: var(--black);
  background: transparent;
}
.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}
.btn--solid {
  background: var(--maroon);
  color: var(--white);
  border: 1px solid var(--maroon);
}
.btn--solid:hover {
  background: var(--maroon-bright);
  border-color: var(--maroon-bright);
  transform: translateY(-1px);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(4, 4, 4, 0.06);
  transition: transform 0.4s ease;
}
.nav.nav--hidden { transform: translateY(-100%); }

.nav__logo img {
  height: 48px; /* was 42px, +15% */
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav__links a {
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--maroon);
  transition: right 0.25s ease;
}
.nav__links a:hover {
  color: var(--maroon);
}
.nav__links a:hover::after {
  right: 0;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__cta-label {
  font-size: 12px;
  color: var(--grey-600);
  white-space: nowrap;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 24px) var(--container-pad) 64px;
  overflow: hidden;
  background: var(--white);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(4,4,4,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(4,4,4,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, black 40%, transparent 90%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(4,4,4,0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 28px;
  opacity: 0;
}

.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--black);
}
.hero__title-line {
  display: block;
  font-size: clamp(40px, 6.4vw, 92px);
  overflow: hidden;
}
.hero__title-sub {
  display: block;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 600;
  color: var(--grey-600);
  margin-bottom: 0.35em;
  overflow: hidden;
}
.hero__title-line span,
.hero__title-sub span {
  display: inline-block;
  transform: translateY(110%);
}

.hero__subcopy {
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a2627;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 0 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(4,4,4,0.1);
  opacity: 0;
}
.hero__subcopy .svc { white-space: nowrap; }
.hero__subcopy .dot { color: var(--maroon); margin: 0 0.5em; }

.hero__actions { opacity: 0; }

/* ---------- 3D stage ---------- */
.hero__stage {
  position: absolute;
  top: 0;
  right: 0;
  /* Full-width canvas; the camera is still drawn in the right-hand area
     (right 2%, width min(64vw, 980px)) via a view offset in scene.js, which
     lets the scroll zoom fly the camera into the centre of the screen. */
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}
.hero__stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}

/* ---------- Camera screen -> About us ---------- */
/* Sits over the canvas; its box is set every frame from scene.js so it
   stays glued to the camera's front screen, then grows to the full view. */
.hero__portal {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  background: var(--white);
  opacity: 0;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.hero__portal-page {
  position: absolute;
  left: 0; top: 0;
  width: 100%;          /* set in px from JS = the real page width */
  height: 100vh;
  transform-origin: 0 0;
  background: var(--white);
  will-change: transform;
}
.hero__portal-page .ab { padding-top: var(--nav-height); }

.hero__scroll-cue {
  position: absolute;
  left: var(--container-pad);
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-600);
  opacity: 0;
}
.hero__scroll-cue span {
  width: 1px;
  height: 28px;
  background: var(--grey-400);
  position: relative;
  overflow: hidden;
}
.hero__scroll-cue span::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--maroon);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links, .nav__cta-label { display: none; }
  .nav__burger { display: flex; }
  .hero__stage {
    position: relative;
    width: 100%;
    height: 46vh;
    right: 0;
    order: 2;
    margin-top: 32px;
  }
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + 32px);
  }
  .hero__content { max-width: 100%; }
}

@media (max-width: 560px) {
  .nav__cta { display: none; }
}

/* ---------- About us after the fly-through (desktop) ---------- */
.ab { position: relative; background: var(--white); }
/* During the fly-through the About us you see is the copy inside the camera
   screen. The real section sits exactly underneath the final full-size
   screen and is switched on when the pin ends, so the hand-over is invisible. */
.has-fly main > .ab {
  z-index: 5;
  margin-top: -100vh;
  visibility: hidden;
}
.has-fly main > .ab.is-live { visibility: visible; }

/* ---------- Hero on phones / tablets: full-width camera, services wrap ---------- */
@media (max-width: 980px) {
  .hero__stage {
    width: calc(100% + 2 * var(--container-pad));
    margin-left: calc(-1 * var(--container-pad));
    height: min(52vh, 440px);
    margin-top: 12px;
  }
  .hero__subcopy { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
}
/* still picture when the 3D camera can't run */
.hero__stage.is-fallback {
  background: url('../assets/camera/camera-fallback.png') right 8% center / min(46vw, 640px) auto no-repeat;
}
@media (max-width: 980px) {
  .hero__stage.is-fallback { background-position: center; background-size: min(78%, 420px) auto; }
}
.hero__stage.is-fallback canvas { display: none; }

/* ---------- Phone menu (burger) ---------- */
@media (max-width: 980px) {
  .nav__burger span { transition: transform 0.3s ease, opacity 0.2s ease; }
  body.nav-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open .nav { transform: none; background: var(--white); }
  body.nav-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; height: calc(100vh - var(--nav-height)); height: calc(100dvh - var(--nav-height));
    padding: 16px var(--container-pad) 40px; background: var(--white); overflow-y: auto;
    font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
  }
  body.nav-open .nav__links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--grey-100); }
  body.nav-open .nav__links a::after { display: none; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero background: silver gradient + radar rings (grid removed, 2026-10-14) ----------
   Keeps the .hero__bg-grid class so the fly-through in main.js still fades it out. */
.hero__bg-grid {
  background: radial-gradient(ellipse 55% 65% at 70% 45%, #fff 0%, rgba(255,255,255,0) 60%),
              linear-gradient(135deg, #ffffff 0%, #f4f4f3 45%, #e9e9e8 100%);
  -webkit-mask-image: none; mask-image: none;
}
.hero__radar {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(circle at 70% 46%, rgba(103,13,33,.10) 0, rgba(103,13,33,.04) 22%, transparent 42%),
    repeating-radial-gradient(circle at 70% 46%, transparent 0 78px, rgba(103,13,33,.10) 79px 80px);
  -webkit-mask-image: radial-gradient(circle at 70% 46%, #000 0, #000 30%, transparent 58%);
          mask-image: radial-gradient(circle at 70% 46%, #000 0, #000 30%, transparent 58%);
}
.hero__radar::after {
  content: ''; position: absolute; left: 70%; top: 46%; width: 44vw; height: 44vw; margin: -22vw 0 0 -22vw; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(103,13,33,.08), transparent 14%);
  animation: hero-sweep 6s linear infinite;
}
@keyframes hero-sweep { to { transform: rotate(360deg); } }
@media (max-width: 980px) {
  .hero__bg-grid { background: linear-gradient(170deg, #fff 0%, #f2f2f1 60%, #e7e7e6 100%); }
  .hero__radar {
    background: radial-gradient(circle at 50% 74%, rgba(103,13,33,.10) 0, transparent 40%),
                repeating-radial-gradient(circle at 50% 74%, transparent 0 58px, rgba(103,13,33,.10) 59px 60px);
    -webkit-mask-image: radial-gradient(circle at 50% 74%, #000 0, #000 25%, transparent 50%);
            mask-image: radial-gradient(circle at 50% 74%, #000 0, #000 25%, transparent 50%);
  }
  .hero__radar::after { left: 50%; top: 74%; width: 90vw; height: 90vw; margin: -45vw 0 0 -45vw; }
}
@media (prefers-reduced-motion: reduce) { .hero__radar::after { animation: none; } }

/* ---------- Language switcher: globe + EN, dropdown with the other languages ----------
   Hidden while [data-soon] is on the element (until the BM / Chinese pages exist). */
.lang { position: relative; font-family: var(--font-body); }
.lang__btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 11px; border: 1px solid rgba(4,4,4,0.14); border-radius: 999px; background: var(--white); color: var(--black); font: 600 12px/1 var(--font-body); letter-spacing: 0.06em; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.lang__btn:hover, .lang.is-open .lang__btn { border-color: var(--maroon); color: var(--maroon); }
.lang__btn svg { flex: none; }
.lang__globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang__chev { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 0.25s; }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; margin: 0; padding: 6px; list-style: none; background: var(--white); border: 1px solid rgba(4,4,4,0.08); border-radius: 14px; box-shadow: 0 14px 40px rgba(4,4,4,0.12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 50; }
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: var(--black); font-size: 14px; font-weight: 500; line-height: 1.2; transition: background 0.15s, color 0.15s; }
.lang__menu a b { min-width: 30px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--grey-600); }
.lang__menu a:hover { background: rgba(103,13,33,0.06); color: var(--maroon); }
.lang__menu a.is-current { color: var(--maroon); }
.lang__menu a.is-current b { color: var(--maroon); }
.lang__menu a.is-current::after { content: ''; width: 9px; height: 5px; margin-left: auto; border: solid var(--maroon); border-width: 0 0 1.6px 1.6px; transform: translateY(-2px) rotate(-45deg); }
.lang--menu { display: none; }
.lang[data-soon] { display: none !important; }
@media (max-width: 1240px) { .nav__cta-label { display: none; } }
@media (max-width: 980px) {
  .lang--desk { display: none; }
  body.nav-open .nav__links .lang--menu { display: block; margin-top: 28px; }
  body.nav-open .nav__links .lang__btn { height: 46px; padding: 0 16px; font-size: 15px; }
  body.nav-open .nav__links .lang__menu { left: 0; right: auto; }
  body.nav-open .nav__links .lang__menu { min-width: 240px; }
  body.nav-open .nav__links .lang__menu a { white-space: nowrap; }
  body.nav-open .nav__links .lang__menu a.is-current::after { display: block; position: static; background: none; height: 5px; }
  body.nav-open .nav__links .lang__menu a { width: auto; padding: 12px 14px; border-bottom: 0; font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
}

/* ---------- Mobile pass (2026-10-14): calmer type sizes on phones ---------- */
@media (max-width: 560px) {
  html body .hero__title-line { font-size: 36px; }
  html body .hero__title-sub { font-size: 19px; }
  html body .hero__eyebrow { margin-bottom: 20px; }
  html body .ab-eyebrow, html body .st-title, html body .cl-title, html body .tm-eyebrow, html body .br-eyebrow, html body .ct-eyebrow, html body .sp-eyebrow { font-size: 13px; letter-spacing: 0.18em; }
  html body .ab-eyebrow { margin-bottom: 18px; }
  html body .ab-title, html body .tm-title { font-size: 28px; }
  html body .ab-copy .ab-lead { font-size: 16px; }
  html body .ab-more p { font-size: 14.5px; }
  html body .tm-sub { font-size: 16px; margin-top: 12px; }
  html body .st-info__name { font-size: 26px; }
  html body .ct-company { font-size: 22px; }
  html body .br-city { font-size: 16px; }
  html body .sp-head h1 { font-size: 30px; }
  html body .sp-head h1 span { font-size: 16px; }
  html body .sp-lead { font-size: 15px; }
  html body .sp-card h2 { font-size: 19px; }
  html body .sp-cta h2 { font-size: 21px; }
}

/* ---------- Preloader ---------- */
.pl { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f4f3 45%, #e9e9e8 100%);
  transition: opacity 0.6s ease, visibility 0s linear 0.6s; animation: pl-safety 0.4s ease 5s forwards; }
.pl img { width: 64px; height: auto; animation: pl-in 0.8s cubic-bezier(0.23, 1, 0.32, 1) both; }
.pl-bar { position: relative; width: 120px; height: 2px; background: rgba(4,4,4,0.1); overflow: hidden; }
.pl-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--maroon); animation: pl-load 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.pl.is-done { opacity: 0; visibility: hidden; }
@keyframes pl-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pl-load { to { width: 100%; } }
@keyframes pl-safety { to { opacity: 0; visibility: hidden; } }   /* never block the page if a script fails */
@media (prefers-reduced-motion: reduce) { .pl img, .pl-bar i { animation: none; } .pl-bar i { width: 100%; } }

h1.hero__eyebrow { margin: 0 0 28px; font-family: var(--font-body); line-height: normal; }
@media (max-width: 860px) { html body h1.hero__eyebrow { margin-bottom: 20px; } }
@media (max-width: 420px) { html body h1.hero__eyebrow { font-size: 10.5px; letter-spacing: 0.03em; padding: 6px 12px; } }
