/* Navia Tracking home, tokens + first-screen styles.
   All values measured from the live site (see /ANALYSIS.md). Root = 100vw/108 = 13.333px @1440. */

@font-face { font-family: 'BT Steinhart'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../assets/fonts/6a44eec1ed1af2c4c403df89_BTSteinhart-Medium-subset.woff2') format('woff2'); }
@font-face { font-family: 'BT Steinhart'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../assets/fonts/6a44eec1ed1af2c4c403df88_BTSteinhart-Bold-subset.woff2') format('woff2'); }
@font-face { font-family: 'BT Steinhart Mono'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../assets/fonts/6a44eec1ed1af2c4c403df8c_BTSteinhart-RegularMono-subset.woff2') format('woff2'); }
@font-face { font-family: 'Helvetica Neue'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../assets/fonts/6a44eec1ed1af2c4c403df8a_HelveticaNeueRoman-subset.woff2') format('woff2'); }
@font-face { font-family: 'Helvetica Neue'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../assets/fonts/6a44eec1ed1af2c4c403df8b_HelveticaNeueMedium-subset.woff2') format('woff2'); }

:root {
  --blue: #28a69c;  /* Navia teal */
  --orange: #ffc208; /* Navia yellow */
  --orange-2: #ffc208;
  --gold: #d9b45e;
  --black: #111;
  --white: #fff;
  --grey-1: #f4f4f4;
  --txt-soft: rgba(17, 17, 17, .72);
  --txt-note: rgba(17, 17, 17, .4);
  --border-light: rgba(17, 17, 17, .2);
  --font-heading: 'BT Steinhart', Arial, sans-serif;
  --font-mono: 'BT Steinhart Mono', Arial, sans-serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: calc(100vw / 108); }
@media (max-width: 991px) { html { font-size: calc(100vw / 76); } }
@media (max-width: 767px) { html { font-size: calc(100vw / 39); } }
/* Desktop-positioned scenes (globe labels, service road) poke past 100vw; on phones Chrome
   widens the layout viewport to fit them and zooms the whole page out, and clipping html/body
   does not stop that. Clip each section instead: clip (unlike hidden) makes no scroll
   container, so the sticky scenes inside keep working and y overflow stays visible. */
@media (max-width: 767px) { main > * { overflow-x: clip; } }
html.lenis { height: auto; }
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  /* live .body = 1.6rem @ 8.333px html rem = 13.33px = 1rem in our rem system; lh 1.3 */
  font-size: 1rem;
  line-height: 1.3;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); text-transform: uppercase; }
.heading { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; line-height: .92; }
.txt { font-family: var(--font-body); font-weight: 500; }

/* ============ cursor ============ */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 900; }
.cursor-main { position: absolute; top: 0; left: 0; width: .4rem; height: .4rem;
  border-radius: 50%; background: var(--white); mix-blend-mode: difference; opacity: 0; }
.cursor-outline { position: absolute; top: 0; left: 0; width: 4rem; height: 4rem; opacity: 0; }
.cursor-outline circle { fill: none; stroke: var(--white); stroke-width: .55; }
@media (max-width: 991px), (hover: none) { .cursor { display: none; } }

/* ============ loader ============ */
.loader { position: fixed; inset: 0; z-index: 999; background: var(--black); color: var(--white); overflow: hidden; }
.loader-ring { position: absolute; top: -3.2rem; left: -3.2rem; width: 8.9rem; height: 8.9rem; }
.loader-ring circle { fill: none; stroke: rgba(255,255,255,.45); stroke-width: .55; }

.loader-logo { position: absolute; top: 24.9rem; left: 8.85rem; }
.loader-logo svg { height: .8rem; width: auto; display: block; }
.loader-logo .header-logo-char { display: inline-flex; }
.loader-logo .header-logo-char-single, .loader-logo .header-logo-char-full, .loader-logo .header-logo-char-full-inner { display: flex; height: .8rem; }
.loader-logo .header-logo-mb { display: none; }

.loader-countries, .loader-services { position: absolute; top: 29.5rem; width: 14rem; height: 16rem; overflow: hidden; }
.loader-countries { left: 8.85rem; }
.loader-services { right: 8.85rem; text-align: right; }
.loader-list-inner { will-change: transform; }
.loader-countries-list, .loader-services-list { margin: 0; padding: 0; color: rgba(255,255,255,.32); }
.loader-countries-list li, .loader-services-list li { list-style: none; font-family: var(--font-mono);
  text-transform: uppercase; font-size: .75rem; line-height: 1; padding: .36rem 0; letter-spacing: .06em; }

.loader-count-wrap { position: absolute; top: 24.5rem; right: 8.85rem; display: flex; align-items: center; gap: .7rem; }
.loader-count { font-family: var(--font-mono); font-size: 1rem; letter-spacing: .04em; color: var(--white); }
.loader-spinner { width: .95rem; height: .95rem; }

.loader-countries-list li { transition: color .6s ease; }
.loader-countries-list li.is-reached { color: rgb(233,154,13); }
.loader-map { position: absolute; top: 50%; left: 50%; width: 40.5rem; height: 19.6rem; transform: translate(-50%, -50%); }
.loader-map canvas { width: 100%; height: 100%; display: block; }

/* ============ topbar + header ============ */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; }
.topbar-inner { display: flex; align-items: flex-start; justify-content: space-between; padding: .75rem 2.5rem 0; }
.topbar-news { display: flex; align-items: baseline; gap: .7rem; font-family: var(--font-mono);
  font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.6);
  max-width: 54rem; overflow: hidden; white-space: nowrap; }
.topbar-news-label { color: rgba(255,255,255,.45); }
.topbar-right { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.topbar-links { display: flex; align-items: center; gap: .8rem; font-family: var(--font-mono);
  font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }
.topbar-links a { color: rgba(255,255,255,.6); }
.topbar-links .sep { color: rgba(255,255,255,.3); }
.topbar .btn { height: 2.85rem; padding: 0 .75rem; font-size: .65rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 100rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase;
  height: 3rem; padding: 0 1.5rem; border: 1px solid transparent; cursor: pointer; }
.btn-white { background: var(--white); color: var(--black); }
.btn-outline { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 310; }
.header-inner { display: flex; align-items: flex-start; justify-content: space-between; padding: 2.4rem 2.5rem 0; }
.header-logo { display: flex; align-items: flex-start; gap: .1rem; color: var(--white); position: relative; top: 1.95rem; }
.header-logo svg { height: 1.02rem; width: auto; display: block; }
.header-logo .header-logo-char { display: inline-flex; align-items: flex-start; }
.header-logo .header-logo-char-single, .header-logo .header-logo-char-full, .header-logo .header-logo-char-full-inner { display: flex; height: 1.02rem; }
.header-logo .header-logo-mb { display: none; }
/* Navia lockup (PNG) — static, no animation (original logo had none in the rebuild either) */
.brand-reveal { display: inline-block; overflow: hidden; line-height: 0; }
.brand-lockup { display: block; width: auto; height: 2.3rem; max-width: none; }
.header-logo { top: 1.55rem; }
.loader-logo .brand-lockup { height: 1.7rem; }
@media screen and (max-width: 991px) { .brand-lockup { height: 2.6rem; } .loader-logo .brand-lockup { height: 2.2rem; } }
@media screen and (max-width: 767px) { .brand-lockup { height: 3.1rem; } .loader-logo .brand-lockup { height: 3rem; } }

.header-nav { position: absolute; left: 31rem; top: 4rem; }
.header-nav ul { list-style: none; margin: 0; padding: 0; }
.header-nav li { height: 1.93rem; display: flex; align-items: center; }
.header-nav a { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(255,255,255,.92); }
.header-nav a:hover { color: var(--white); }

/* phone: one clean bar. Logo left (header), Start Tracking right (topbar), centred on the
   logo's midline (header pad 2.4 + logo offset 1.55 + half of 3.1 = 5.5rem). The ticker,
   text links and the stacked nav column don't fit beside the globe at this width. */
@media (max-width: 767px) {
  .topbar-news, .topbar-links, .header-nav { display: none; }
  .topbar-inner { justify-content: flex-end; padding: 3.7rem 2.5rem 0; }
  .topbar .btn { height: 3.6rem; padding: 0 1.4rem; font-size: 1rem; }
}

/* ============ hero ============ */
.home-hero-wrap { position: relative; }
.home-hero { position: relative; height: 168.75rem; }
.home-hero-stick { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-stars { position: absolute; inset: 0; background: #0a0a0c url('../assets/img/6a4b96c759907c751a922995_7eca9aaa3d4bf61032fb078c55b2ccf4_star-p-1080.avif') center/cover no-repeat; opacity: .8; }
.hero-grid { position: relative; height: 100%; }

.home-hero-globe { position: absolute; left: 56.1rem; top: 0; width: 67.5rem; height: 67.5rem; }
.home-hero-canvas { width: 100%; height: 100%; display: block; }
.globe-shadow { position: absolute; inset: 2.4rem; border-radius: 50%; pointer-events: none; filter: blur(7rem); }
.globe-shadow.orange { background: radial-gradient(closest-side, rgba(244,83,0,.3), rgba(244,83,0,0) 72%);
  transform: translate(-6%, -8%); }
.globe-shadow.blue { background: radial-gradient(closest-side, rgba(40,166,156,.28), rgba(40,166,156,0) 72%);
  transform: translate(6%, 8%); }
.globe-label { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: flex-start;
  gap: .15rem; pointer-events: none; will-change: transform, opacity; }
.globe-label-dot { width: .32rem; height: .32rem; border-radius: 50%; background: var(--orange-2); }
.globe-label-text { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--orange-2); white-space: nowrap; }

.hero-copy { position: absolute; left: 31rem; top: 31.3rem; }
.hero-label { display: inline-block; font-family: var(--font-mono); font-size: .95rem; line-height: 1.5;
  letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: .6rem; }
.hero-h1 { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  font-size: 6rem; line-height: 1.05; letter-spacing: .06em; }
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line > span { display: block; }
.hero-desc { margin-top: 2.55rem; max-width: 20.4rem; font-size: 1rem; line-height: 1.2;
  color: rgba(255,255,255,.72); font-weight: 500; }
.hero-ctas { margin-top: 3.75rem; display: flex; gap: .55rem; }
.hero-ctas .btn { min-width: 10.05rem; height: 3rem; }

/* phone: globe centred up top, copy anchored to the bottom inside the header gutter.
   No transform here: GSAP owns transform on the globe (scale) and copy (y). */
@media (max-width: 767px) {
  .home-hero-globe { left: 50%; top: 8rem; width: 46rem; height: 46rem; margin-left: -23rem; }
  .globe-shadow { filter: blur(4rem); }
  .globe-label-text { font-size: .9rem; }
  .hero-grid::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
    background: linear-gradient(to top, rgba(10,10,12,.92) 35%, rgba(10,10,12,0)); pointer-events: none; }
  .hero-copy { left: 2.5rem; right: 2.5rem; top: auto; bottom: 6rem; z-index: 1; }
  .hero-label { font-size: 1.1rem; letter-spacing: .22em; margin-bottom: 1rem; }
  .hero-h1 { font-size: 4.6rem; letter-spacing: .03em; }
  .hero-desc { margin-top: 1.8rem; max-width: 32rem; font-size: 1.5rem; line-height: 1.35; }
  .hero-ctas { margin-top: 2.6rem; gap: 1rem; }
  .hero-ctas .btn { flex: 1 1 0; min-width: 0; height: 4.6rem; padding: 0 1rem; font-size: 1.1rem; }
}

.is-loading .header, .is-loading .topbar, .is-loading .hero-copy, .is-loading .home-hero-globe { visibility: hidden; }
