/* ============================================================
   GTSEAT P47 — design tokens
   ============================================================ */
:root {
  --carbon:      #0C0E10;   /* dominant dark field */
  --carbon-2:    #121518;   /* raised dark surface */
  --porcelain:   #EDEFF1;   /* light studio field */
  --porcelain-2: #E2E5E8;   /* raised light surface */
  --apex:        #E0261F;   /* racing red — the one accent */
  --machined:    #9AA3AB;   /* meta silver */
  --ink:         #14171A;   /* text on light */
  --line-d:      rgba(237,239,241,.12);  /* hairline on dark */
  --line-l:      rgba(20,23,26,.14);     /* hairline on light */

  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Satoshi', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --pad: clamp(20px, 5vw, 80px);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--carbon);
  color: var(--porcelain);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 2000;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
main { position: relative; z-index: 1; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

:focus-visible { outline: 2px solid var(--apex); outline-offset: 3px; }

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

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--carbon);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--ease-out);
}
.preloader.is-done { transform: translateY(-101%); }
.preloader__inner { text-align: center; }
.preloader__mark {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5em;
  color: var(--machined);
  margin-bottom: 18px;
  padding-left: .5em;
}
.preloader__count {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(90px, 16vw, 200px);
  line-height: 1;
  color: var(--porcelain);
  font-variant-numeric: tabular-nums;
}
.preloader__tag { display: block; margin-top: 22px; color: var(--apex); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
  color: #fff;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .18em;
}
.nav__brand sup { font-size: 9px; letter-spacing: 0; color: var(--apex); }
.nav__links { display: flex; gap: 34px; }
.nav__links a { opacity: .72; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }
.nav__cta {
  border: 1px solid rgba(255,255,255,.5);
  padding: 10px 22px;
  border-radius: 100px;
  transition: background .3s, color .3s, border-color .3s;
}
.nav__cta:hover { background: #fff; color: #000; border-color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) 0;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,14,16,.55) 0%, rgba(12,14,16,0) 34%, rgba(12,14,16,.08) 62%, rgba(12,14,16,.88) 100%),
    radial-gradient(120% 90% at 12% 92%, rgba(12,14,16,.72) 0%, rgba(12,14,16,0) 55%);
}
.hero__ghost {
  position: absolute;
  top: 6vh;
  right: -2vw;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(300px, 44vw, 700px);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237,239,241,.14);
  pointer-events: none;
  user-select: none;
}
.hero__content { padding-bottom: 34px; max-width: 1100px; }
.hero__kicker { color: var(--apex); margin-bottom: 26px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 9.2vw, 148px);
  line-height: .94;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero__title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--porcelain); }
.line { display: block; overflow: hidden; }
.line__in { display: block; will-change: transform; }
.hero__sub { max-width: 520px; color: rgba(237,239,241,.78); margin-bottom: 38px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 100px;
  transition: transform .35s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--apex); color: #fff; }
.btn--solid:hover { background: #ff352d; }
.btn--ghost { border: 1px solid rgba(237,239,241,.35); color: var(--porcelain); }
.btn--ghost:hover { border-color: var(--porcelain); background: rgba(237,239,241,.08); }

.hero__telemetry {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-d);
  padding: 20px 0 26px;
  color: var(--machined);
}
.hero__telemetry span::before { content: '●'; color: var(--apex); margin-right: 10px; font-size: 7px; vertical-align: 2px; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  background: var(--apex);
  color: #fff;
  overflow: hidden;
  padding: 14px 0;
  position: relative;
  z-index: 2;
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; margin: 0 26px; font-size: 9px; vertical-align: 2px; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Shared section furniture
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: clamp(70px, 10vw, 130px);
  margin-bottom: clamp(36px, 5vw, 64px);
  color: var(--ink);
}
.section-head__no {
  color: var(--apex);
  font-size: 13px;
}
.section-head__label { color: inherit; opacity: .55; }
.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-l);
  align-self: center;
}
.section-head--dark { color: var(--porcelain); }
.section-head--dark::after { background: var(--line-d); }

/* ============================================================
   Atelier — the light studio
   ============================================================ */
.atelier {
  background: var(--porcelain);
  color: var(--ink);
  padding: 0 var(--pad) clamp(90px, 12vw, 170px);
  position: relative;
  background-image:
    linear-gradient(var(--line-l) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  background-position: var(--pad) 0;
  background-clip: padding-box;
}
.atelier__title,
.eng__title,
.models__title,
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7.4vw, 118px);
  line-height: .96;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.atelier__title em { font-style: normal; color: var(--apex); }
.atelier__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  margin-bottom: clamp(50px, 7vw, 100px);
}
.atelier__lede { font-size: clamp(20px, 2.2vw, 29px); line-height: 1.45; font-weight: 500; }
.atelier__note { color: rgba(20,23,26,.6); align-self: end; max-width: 380px; }
.atelier__figure { position: relative; }
.atelier__img {
  width: 100%;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}
.atelier__cap {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  color: rgba(20,23,26,.55);
  border-top: 1px solid var(--line-l);
  margin-top: 18px;
}

/* ============================================================
   Engineering — dark cards
   ============================================================ */
.eng {
  padding: 0 var(--pad) clamp(90px, 12vw, 170px);
  background:
    radial-gradient(90% 60% at 80% 0%, rgba(224,38,31,.07) 0%, transparent 55%),
    var(--carbon);
}
.eng__title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px var(--porcelain); }
.eng__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 34px);
}
.card {
  background: var(--carbon-2);
  border: 1px solid var(--line-d);
  padding: 18px 18px 34px;
  position: relative;
  transition: transform .5s var(--ease-out), border-color .4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(237,239,241,.3); }
.card__media { overflow: hidden; margin-bottom: 26px; }
.card__media img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__no { color: var(--apex); display: block; margin-bottom: 14px; padding: 0 8px; }
.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  padding: 0 8px;
}
.card__body { color: var(--machined); font-size: 15px; padding: 0 8px; }

/* ============================================================
   Studio — pinned scrub sequence
   ============================================================ */
.studio { position: relative; height: 320vh; background: #000; }
.studio__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.studio__stage { position: absolute; inset: 0; }
.studio__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
.studio__frame.is-active { opacity: 1; }
.studio__ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(160px, 30vw, 480px);
  line-height: 1;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.38);
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}
.studio__hud {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.studio__caption::before { content: '— '; color: var(--apex); }

/* ============================================================
   Models — configurator
   ============================================================ */
.models {
  padding: 0 var(--pad) clamp(90px, 12vw, 170px);
  background: var(--carbon);
  border-top: 1px solid var(--line-d);
}
.models__title em { font-style: normal; color: var(--apex); }
.models__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-d);
}
.model {
  padding: clamp(28px, 3.5vw, 48px);
  border-right: 1px solid var(--line-d);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background .4s;
}
.model:last-child { border-right: 0; }
.model:hover { background: var(--carbon-2); }
.model__no { color: var(--machined); margin-bottom: clamp(30px, 4vw, 60px); }
.model__badge {
  position: absolute;
  top: clamp(28px, 3.5vw, 48px);
  right: clamp(28px, 3.5vw, 48px);
  color: var(--apex);
  border: 1px solid var(--apex);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 9px;
}
.model__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.model__role { color: var(--apex); margin-bottom: 30px; }
.model__specs { flex: 1; margin-bottom: 34px; }
.model__specs li {
  padding: 12px 0;
  border-top: 1px solid var(--line-d);
  color: var(--machined);
  font-size: 15px;
}
.model__specs li::before { content: '+'; color: var(--apex); margin-right: 12px; }
.model__order {
  align-self: flex-start;
  border-bottom: 1px solid var(--apex);
  padding-bottom: 6px;
  color: var(--porcelain);
  transition: color .3s, letter-spacing .3s;
}
.model__order:hover { color: var(--apex); letter-spacing: .3em; }
.model--flag { background: linear-gradient(180deg, rgba(224,38,31,.06), transparent 60%); }

/* ============================================================
   Contact — light
   ============================================================ */
.contact {
  background: var(--porcelain);
  color: var(--ink);
  padding: 0 var(--pad) clamp(90px, 12vw, 160px);
}
.contact__title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.contact__lede { max-width: 480px; color: rgba(20,23,26,.65); margin-bottom: 40px; }
.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 88px);
  letter-spacing: -.02em;
  line-height: 1.1;
  border-bottom: 3px solid var(--apex);
  margin-bottom: clamp(50px, 7vw, 90px);
  transition: color .3s;
  overflow-wrap: anywhere;
}
.contact__email:hover { color: var(--apex); }
.contact__rows { border-top: 1px solid var(--line-l); }
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-l);
  transition: padding-left .4s var(--ease-out);
}
.contact__row:hover { padding-left: 18px; }
.contact__row .mono { color: rgba(20,23,26,.55); }
.contact__addr { font-weight: 500; font-size: 18px; }
.contact__arrow { font-size: 22px; color: var(--apex); transition: transform .4s var(--ease-out); }
.contact__row:hover .contact__arrow { transform: translateX(8px); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--carbon);
  border-top: 1px solid var(--line-d);
  padding: clamp(60px, 8vw, 110px) var(--pad) 34px;
  position: relative;
  overflow: hidden;
}
.footer__word {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(90px, 17.5vw, 300px);
  line-height: .85;
  letter-spacing: .02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237,239,241,.16);
  margin-bottom: clamp(50px, 7vw, 90px);
  user-select: none;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-d);
}
.footer__head { display: block; color: var(--apex); margin-bottom: 18px; }
.footer__col p { color: var(--machined); max-width: 320px; font-size: 15px; }
.footer__col a { display: block; color: var(--machined); padding: 6px 0; transition: color .3s; }
.footer__col a:hover { color: var(--porcelain); }
.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  color: rgba(154,163,171,.6);
}

/* ============================================================
   Reveal system (JS adds .is-in)
   ============================================================ */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .rv.is-in { opacity: 1; transform: none; }
.js [data-hero-fade] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .hero.is-live [data-hero-fade] { opacity: 1; transform: none; }
.js .line__in { transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.js .is-in .line__in, .js .hero.is-live .line__in { transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .atelier__grid { grid-template-columns: 1fr; }
  .atelier__note { align-self: start; }
  .eng__cards { grid-template-columns: 1fr; max-width: 560px; }
  .models__list { grid-template-columns: 1fr; }
  .model { border-right: 0; border-bottom: 1px solid var(--line-d); }
  .model:last-child { border-bottom: 0; }
  .hero__ghost { font-size: clamp(220px, 50vw, 380px); top: 9vh; }
}
@media (max-width: 600px) {
  .hero__telemetry { gap: 10px; }
  .hero__telemetry span { width: 46%; }
  .contact__row { grid-template-columns: 1fr auto; }
  .contact__addr { grid-column: 1; grid-row: 2; }
  .contact__arrow { grid-row: 1 / span 2; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .marquee__track span { font-size: 12px; }
}

/* ============================================================
   Headless review mode — settled states for screenshots
   ============================================================ */
.shot, .shot * {
  scroll-behavior: auto !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  animation-duration: 0s !important;
}

/* ============================================================
   Reduced motion — everything visible, nothing moves
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .preloader { display: none; }
  .js .rv, .js [data-hero-fade] { opacity: 1; transform: none; transition: none; }
  .js .line__in { transform: none; transition: none; }
  .studio { height: auto; }
  .studio__pin { position: relative; height: auto; }
  .studio__stage { position: relative; height: auto; }
  .studio__frame { position: relative; opacity: 1; }
  .studio__ghost, .studio__hud { display: none; }
  .card, .card__media img, .contact__row, .contact__arrow, .btn { transition: none; }
}
