/* =========================================================
   KSAuto Performance & Diagnostics
   Layout + motion modelled on spykercars.com
   ========================================================= */

:root {
  --ink: #101010;
  --black: #000;
  --white: #fff;
  --muted: rgba(16, 16, 16, 0.5);
  --body: rgba(16, 16, 16, 0.8);
  --line: rgba(0, 0, 0, 0.1);
  --ph: #161616;

  --gold: #d4a63a;
  --f-wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-display: "Barlow Condensed", "Futura PT Condensed", "Arial Narrow", sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "PT Serif", Georgia, serif;

  --gutter: 40px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading,
body.menu-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.container { width: 100%; padding-inline: var(--gutter); margin-inline: auto; }
.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { clip: auto; width: auto; height: auto; z-index: 999; background: #fff; padding: 12px 16px; top: 8px; left: 8px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.spacer { height: var(--s); }
.rule { height: 1px; background: var(--line); }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--white); }

.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 56px;
  line-height: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.display--xl { font-size: 120px; letter-spacing: 2px; }

.body {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--body);
}

.section-title {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
}

/* underline link (grows from left on hover) */
.u-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.u-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.u-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 36px;
  padding: 0 32px;
  border-radius: 2px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.3s, color 0.3s;
}
.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: rgba(255, 255, 255, 0.9); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: rgba(0, 0, 0, 0.85); }
.btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* rolling label: text slides up, duplicate slides in from below */
.btn__label {
  display: block;
  height: 1.3em;
  line-height: 1.3em;
  overflow: hidden;
}
.btn__roll {
  display: block;
  text-shadow: 0 1.3em 0 currentColor;
  transition: transform 0.55s var(--ease);
}
.btn:hover .btn__roll { transform: translateY(-1.3em); }

/* clip-path reveal from centre outwards (as on Spyker) */
.clip-in { clip-path: inset(0 50%); transition: clip-path 1s var(--ease), background-color 0.3s, color 0.3s; }
.clip-in.is-in { clip-path: inset(0 0); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

.reveal-lines .line { display: block; overflow: hidden; padding-top: 0.08em; margin-top: -0.08em; }
.reveal-lines .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.reveal-lines.is-in .line > span { transform: none; }
.reveal-lines.is-in .line:nth-child(2) > span { transition-delay: 0.08s; }
.reveal-lines.is-in .line:nth-child(3) > span { transition-delay: 0.16s; }

/* ---------- Photo slots ---------- */
/* Placeholder until a real photo exists in /images (see READ-ME-PHOTOS.txt) */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--ph);
  background-image:
    radial-gradient(120% 90% at 70% 20%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(160deg, #1d1d1d 0%, #0c0c0c 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='white' stroke-width='1.5'%3E%3Crect x='5' y='9' width='38' height='30' rx='2'/%3E%3Ccircle cx='17' cy='19' r='4'/%3E%3Cpath d='M5 34l11-10 8 7 6-5 13 11'/%3E%3C/svg%3E") center / 44px no-repeat;
  opacity: 0.22;
}
.ph::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.ph > span {
  position: absolute; left: 20px; bottom: 18px;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.ph > span::before { content: "Photo 4  "; }
.ph.is-loaded::before,
.ph.is-loaded::after,
.ph.is-loaded > span { display: none; }
.ph.is-loaded { background-color: #000; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
}
.preloader__sheet {
  position: absolute; inset: 0;
  background: var(--white);
  transition: transform 1.1s var(--ease);
}
.preloader__logo {
  position: fixed;
  left: 50%; top: 50%;
  width: 320px; height: 93px;
  margin: -47px 0 0 -160px;
  color: var(--black);
  transform-origin: center;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.8s var(--ease-out), transform 1.1s var(--ease), color 0.6s;
}
.preloader__logo .ks-logo { width: 100%; height: 100%; }
.preloader.is-shown .preloader__logo { opacity: 1; transform: none; }
.preloader.is-leaving .preloader__sheet { transform: translateY(-100%); }
.preloader.is-leaving .preloader__logo { color: var(--white); }
.preloader.is-done { display: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 40;
  color: var(--white);
  background: rgba(255, 255, 255, 0);
  transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.header__nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 88px;
}
.brand { display: block; width: 168px; height: 49px; }
.ks-logo { display: block; width: 100%; height: 100%; overflow: visible; }
body.is-loading .brand { opacity: 0; }

.nav { display: flex; justify-content: center; gap: clamp(20px, 3vw, 44px); }
.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; color: var(--gold); }
.header__end { display: flex; align-items: center; gap: 20px; justify-self: end; }
.header .menu-toggle { display: none; }

/* outlined button with arrow (mockup style) */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn-line .arrow-r { transition: transform 0.4s var(--ease); }
.btn-line:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn-line:hover .arrow-r { transform: translateX(4px); }
.nav-cta { height: 42px; }

.header.is-solid { background: rgba(10, 10, 10, 0.92); color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header.is-hidden { transform: translateY(-100%); }
body.menu-open .header { color: var(--black); background: transparent; box-shadow: none; transform: none; }

.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; }
.burger { position: relative; width: 22px; height: 10px; display: block; }
.burger span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:first-child { top: 0; }
.burger span:last-child { top: 8.5px; }
body.menu-open .burger span:first-child { top: 4.25px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 4.25px; transform: rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 30; visibility: hidden; }
.menu__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.6s var(--ease); }
.menu__panel {
  position: absolute; inset: 0 0 auto 0;
  height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
}
body.menu-open .menu { visibility: visible; }
body.menu-open .menu__scrim { opacity: 1; }
body.menu-open .menu__panel { clip-path: inset(0 0 0 0); }
.menu__body {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 88px;
}
.menu__links li { overflow: hidden; }
.menu__links a {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 0;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out), color 0.3s;
}
body.menu-open .menu__links a { transform: none; }
body.menu-open .menu__links li:nth-child(2) a { transition-delay: 0.05s; }
body.menu-open .menu__links li:nth-child(3) a { transition-delay: 0.1s; }
body.menu-open .menu__links li:nth-child(4) a { transition-delay: 0.15s; }
body.menu-open .menu__links li:nth-child(5) a { transition-delay: 0.2s; }
body.menu-open .menu__links li:nth-child(6) a { transition-delay: 0.25s; }
.menu__links:hover a { color: rgba(16, 16, 16, 0.3); }
.menu__links a:hover { color: var(--ink); }
.menu__links a[aria-current="page"]::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 16px; vertical-align: middle; border-radius: 50%; background: currentColor; }
.footer__nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu__preview { position: relative; width: min(38vw, 520px); aspect-ratio: 1; flex-shrink: 0; }
.menu__preview .ph { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; }
.menu__preview .ph.is-active { opacity: 1; }
.menu__foot { flex-shrink: 0; }
.menu__contact { display: flex; flex-wrap: wrap; gap: 20px 64px; padding-block: 24px; font-size: 14px; }
.menu__contact > div { display: flex; flex-direction: column; gap: 2px; }
.menu__contact > div a + a { margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero__media { position: absolute; inset: -10% 0 auto 0; height: 120%; }
.hero__media .ph,
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { z-index: 1; opacity: 0; transition: opacity 1s; }
.hero__video.is-playing { opacity: 1; }
.hero .ph { background-position: 50% 72%; }
.hero__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.45) 100%); }
.hero__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
  padding-top: 88px;
}
.hero__text { display: flex; flex-direction: column; gap: 14px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* home hero (mockup design): sliding photos, wide headline, slide counter */
.hero--home .hero__slides { position: absolute; inset: -6% 0 auto 0; height: 112%; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade--home {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.25) 62%, rgba(0,0,0,0.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.5) 100%);
}
.hero--home .hero__content { justify-content: center; }
.hero__copy { max-width: 780px; display: flex; flex-direction: column; align-items: flex-start; }
.hero__kicker {
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hero__kicker span { margin: 0 8px; color: var(--gold); }
.hero__title {
  display: grid;
  margin-top: 22px;
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__headline { grid-area: 1 / 1; display: flex; flex-direction: column; pointer-events: none; }
.hero__headline.is-active { pointer-events: auto; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.hero__line--gold { color: var(--gold); }
.hero__headline.is-active .hero__line > span { transform: none; transition-delay: 0.25s; }
.hero__headline.is-active .hero__line--gold > span { transition-delay: 0.35s; }
body.is-loading .hero__line > span { transform: translateY(105%) !important; }
.hero__lede {
  max-width: 430px;
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.hero__copy .btn-line { margin-top: 34px; }
.hero__dots {
  position: absolute; z-index: 4;
  right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 18px;
}
.hero__dots button {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-wide);
  font-stretch: 125%;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s;
}
.hero__dots i { display: block; width: 1px; height: 48px; background: rgba(255, 255, 255, 0.3); transform: scaleY(0.46); transform-origin: top; transition: transform 0.5s var(--ease), background-color 0.3s; }
.hero__dots button:hover,
.hero__dots button.is-active { color: var(--white); }
.hero__dots button.is-active i { transform: none; background: var(--gold); }

/* page banners (inner pages) */
.hero--page { min-height: 72svh; }
.hero--page .hero__content { justify-content: flex-end; padding-bottom: 72px; }
.hero--page .display { font-size: 96px; }

/* ---------- Intro ---------- */
.intro__wrap { max-width: 1117px; margin-inline: auto; }
.intro__text { max-width: 432px; display: flex; flex-direction: column; }
.intro__text .display { margin-top: 10px; }
.intro__text .body { margin-top: 40px; }
.intro { margin-bottom: 80px; }

/* ---------- Staggered gallery ---------- */
.stagger__grid {
  position: relative;
  max-width: 1117px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}
.stagger__fig { display: flex; flex-direction: column; gap: 12px; }
.stagger__fig figcaption { font-size: 12px; color: var(--muted); letter-spacing: -0.01em; }
.stagger__fig--1 { grid-column: 8 / span 4; grid-row: 1; }
.stagger__fig--1 .ph { aspect-ratio: 1110 / 890; }
.stagger__fig--2 { grid-column: 1 / span 5; grid-row: 2; margin-top: -120px; }
.stagger__fig--2 .ph { aspect-ratio: 432 / 576; }
.stagger__fig--3 { grid-column: 6 / span 6; grid-row: 3; margin-top: -300px; }
.stagger__fig--3 .ph { aspect-ratio: 3 / 2; }

/* ---------- Motto + reel ---------- */
.motto { position: relative; background: var(--black); color: var(--white); padding-top: 120px; }
.motto__head { display: flex; justify-content: center; }
.motto__text { width: 100%; max-width: 732px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 64px; }
.motto__kicker { font-family: var(--f-serif); font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
.motto__sub { font-size: 14px; line-height: 32px; color: rgba(255, 255, 255, 0.8); }
.reel { position: relative; height: min(802px, 90vh); overflow: hidden; color: var(--white); }
.reel__media { position: absolute; inset: -10% 0 auto 0; height: 120%; }
.reel__media .ph,
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__video { z-index: 1; opacity: 0; transition: opacity 0.6s; }
.reel.is-playing .reel__video { opacity: 1; }
.reel__shade { position: absolute; inset: 0; z-index: 2; background: rgba(0, 0, 0, 0.2); pointer-events: none; }
.reel__play {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  min-width: 120px; height: 80px;
  transform: translate(-50%, -50%);
}
.reel.is-playing .reel__play { opacity: 0; pointer-events: none; }
.reel.is-playing:hover .reel__play { opacity: 1; pointer-events: auto; }
.reel__bar { position: absolute; inset: auto 0 0 0; z-index: 3; height: 48px; display: flex; align-items: center; font-size: 12px; letter-spacing: 0.02em; }
.reel__bar-inner { display: flex; align-items: center; gap: 24px; }
.reel__track { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.3); }
.reel__progress { height: 100%; width: 0; background: var(--white); }

/* ---------- Workshop scatter ---------- */
.scatter { position: relative; isolation: isolate; height: 100svh; min-height: 720px; overflow: hidden; }
.scatter__imgs { position: absolute; inset: 0; z-index: 0; }
.scatter__img { position: absolute; }
.scatter__img .ph { width: 100%; height: 100%; }
.s1 { left: 29%; top: 4%; width: 42%; aspect-ratio: 599 / 337; }
.s2 { left: -5%; top: 38%; width: 22%; aspect-ratio: 314 / 176; }
.s3 { left: 8%; top: 10%; width: 15.4%; aspect-ratio: 220 / 147; }
.s4 { left: 85%; top: 12%; width: 22%; aspect-ratio: 314 / 209; }
.s5 { left: 75%; top: 48%; width: 14%; aspect-ratio: 200 / 133; }
.s6 { left: 18%; top: 75%; width: 14.7%; aspect-ratio: 210 / 140; }
.s7 { left: 82%; top: 70%; width: 21%; aspect-ratio: 300 / 188; }
.scatter__center {
  position: relative; z-index: 10;
  height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 var(--gutter) 13vh;
}
.scatter__text { width: 100%; max-width: 438px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.scatter__text .display { margin-top: 16px; }
.scatter__text .body { margin-top: 30px; }
.scatter__text .btn { margin-top: 30px; }

/* ---------- Services (news-card layout) ---------- */
.services__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 40px; }
.services__arrows { display: flex; gap: 8px; }
.arrow {
  width: 40px; height: 40px; border-radius: 2px;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}
.arrow:hover { background: var(--black); color: var(--white); }
.arrow:disabled { opacity: 0.3; pointer-events: none; }
.services__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gutter) * 2 - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.services__track::-webkit-scrollbar { display: none; }
.services__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.services__track.is-dragging .card { pointer-events: none; }
.card { display: flex; flex-direction: column; scroll-snap-align: start; }
.card__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f0f0f0; }
.card__img .ph { transition: transform 1.2s var(--ease-out); }
.card:hover .card__img .ph { transform: scale(1.04); }
.card__meta { display: flex; gap: 16px; margin-top: 24px; font-size: 14px; line-height: 20px; }
.card__num { color: var(--muted); font-weight: 500; }
.card__cat { font-family: var(--f-display); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 { margin-top: 8px; font-weight: 400; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; font-size: 14px; line-height: 1.6; letter-spacing: -0.01em; color: var(--muted); }
.services__cta { margin-top: 60px; display: flex; }

/* services page: 3-column grid of cards */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 24px;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.contact__item { display: flex; flex-direction: column; gap: 14px; }
.contact__big { font-weight: 400; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Gallery ---------- */
.gallery__title { margin-bottom: 40px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery__item .ph { aspect-ratio: 4 / 5; }

/* ---------- Builds ---------- */
.build__wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.build__media .ph { aspect-ratio: 4 / 5; }
.build__info { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 460px; }
.build__stats { display: grid; grid-template-columns: repeat(3, auto); gap: 24px 36px; margin: 8px 0; border-top: 1px solid var(--line); padding-top: 24px; }
.build__stats dt { font-size: 12px; color: var(--muted); }
.build__stats dd { margin: 4px 0 0; font-family: var(--f-wide); font-stretch: 125%; font-weight: 600; font-size: 18px; }

/* ---------- Book in ---------- */
.book { position: relative; isolation: isolate; display: flex; align-items: center; min-height: min(1080px, 120vh); overflow: hidden; color: var(--white); background: #000; }
.book__bg { position: absolute; inset: -10% 0 auto 0; height: 120%; z-index: 0; }
.book .ph { background-position: 50% 55%; }
.book__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%); }
.book__content { position: relative; z-index: 1; }
.book--page { min-height: 100svh; padding-top: 88px; }
.book__text { max-width: 400px; display: flex; flex-direction: column; gap: 40px; }
.book__title { font-family: var(--f-body); font-weight: 400; font-size: 38px; line-height: 1.1; letter-spacing: -0.01em; }
.book__text p { font-size: 14px; line-height: 1.6; letter-spacing: -0.01em; }
.book__form {
  display: flex; align-items: center; gap: 16px;
  max-width: 340px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 8px;
}
.book__form input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: 0;
  color: var(--white);
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.book__form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.book__form button { font-size: 12px; letter-spacing: 0.02em; }
.book__form button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 30; background: var(--white); }
.footer__top { display: flex; gap: 40px; padding-top: 80px; }
.footer__logo { display: block; width: 240px; height: 70px; flex-shrink: 0; margin-right: 120px; color: var(--black); }
.footer__cols { flex: 1; display: flex; gap: 40px; justify-content: space-between; max-width: 844px; }
.footer__nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { font-size: 36px; line-height: 1.3; letter-spacing: -0.02em; }
.footer__list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer__list .muted { margin-bottom: 6px; }
.footer__social { display: flex; gap: 28px; padding-top: 60px; padding-bottom: 40px; padding-left: calc(var(--gutter) + 400px); }
.footer__social a { opacity: 1; transition: opacity 0.3s; }
.footer__social a:hover { opacity: 0.5; }
.footer__bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 40px;
  font-size: 13px;
  line-height: 1.6;
}
.footer__item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer__item--right { align-items: flex-end; text-align: right; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .footer__logo { margin-right: 40px; }
  .footer__social { padding-left: calc(var(--gutter) + 260px); }
  .services__track { grid-auto-columns: calc((100% - var(--gutter) * 2 - 24px) / 2); }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav, .nav-cta { display: none; }
  .header .menu-toggle { display: grid; }
  .build__wrap { grid-template-columns: 1fr; gap: 40px; }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  .spacer { height: var(--sm, var(--s)); }

  .header__nav { height: 64px; }
  .brand { width: 132px; height: 39px; }

  .display { font-size: 40px; }
  .display--xl { font-size: 60px; letter-spacing: 1px; }

  .hero .ph { background-position: 40% 60%; }
  .hero__content { justify-content: flex-end; padding-bottom: 48px; gap: 32px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas li, .hero__ctas .btn { width: 100%; min-width: 0; }

  .intro__text .body { margin-top: 24px; }
  .intro { margin-bottom: 48px; }

  .stagger__grid { grid-template-columns: repeat(6, 1fr); column-gap: 12px; row-gap: 0; }
  .stagger__fig--1 { grid-column: 3 / span 4; }
  .stagger__fig--2 { grid-column: 1 / span 4; margin-top: -60px; }
  .stagger__fig--3 { grid-column: 2 / span 5; margin-top: -40px; }
  .stagger__fig { margin-bottom: 0; }

  .motto { padding-top: 72px; }
  .motto__text { padding-bottom: 48px; }
  .reel { height: 70vh; }
  .reel__play { min-width: 96px; height: 64px; }
  .reel__bar-inner a { display: none; }

  .scatter { height: auto; min-height: 0; padding: 0; }
  .scatter__imgs { position: relative; height: 92vw; }
  .s1 { left: 18%; top: 4%; width: 64%; }
  .s2 { left: -6%; top: 48%; width: 40%; }
  .s3 { left: 4%; top: 14%; width: 26%; }
  .s4 { left: 72%; top: 52%; width: 36%; }
  .s5, .s6, .s7 { display: none; }
  .scatter__center { padding-bottom: 0; }

  .services__head { padding-bottom: 24px; }
  .services__track { grid-auto-columns: 82%; gap: 12px; }
  .services__cta { margin-top: 40px; }
  .services__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero--home .hero__content { justify-content: flex-end; padding-bottom: 72px; }
  .hero__shade--home { background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.15) 75%, rgba(0,0,0,0.4) 100%); }
  .hero__title { font-size: 34px; margin-top: 16px; }
  .hero__kicker { font-size: 10px; letter-spacing: 0.14em; }
  .hero__kicker span { margin: 0 4px; }
  .hero__lede { font-size: 14px; margin-top: 18px; }
  .hero__copy .btn-line { margin-top: 26px; }
  .hero__dots { top: auto; bottom: 28px; transform: none; flex-direction: row; gap: 14px; }
  .hero__dots button { flex-direction: row; }
  .hero__dots i { width: 32px; height: 1px; transform: scaleX(0.5); transform-origin: left; }
  .hero__dots button.is-active i { transform: none; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .build__stats { grid-template-columns: 1fr 1fr; }
  .hero--page { min-height: 60svh; }
  .hero--page .hero__content { padding-bottom: 40px; }
  .hero--page .display { font-size: 56px; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__big { font-size: 24px; }
  .book--page { padding-top: 64px; }
  .services__cta .btn { width: 100%; min-width: 0; }

  .book { min-height: 100svh; align-items: flex-end; padding-bottom: 64px; }
  .book .ph { background-position: 50% 55%; }
.book__shade { background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 70%); }
  .book__text { gap: 24px; }
  .book__title { font-size: 32px; }

  .menu__body { flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 64px; }
  .menu__preview { display: none; }
  .menu__contact { gap: 16px 32px; }

  .footer__top { flex-direction: column; padding-top: 56px; gap: 40px; }
  .footer__logo { display: none; }
  .footer__cols { flex-direction: column; }
  .footer__nav a { font-size: 30px; }
  .footer__social { padding-left: var(--gutter); padding-top: 40px; }
  .footer__bottom { grid-template-columns: 1fr; gap: 20px; }
  .footer__item--right { align-items: flex-start; text-align: left; }
  .footer__mobile-logo { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-lines .line > span { opacity: 1; transform: none; }
  .clip-in { clip-path: none; }
}
