/* Kestrel Automobiles — homepage
   Two voices: a condensed geometric display face (Antonio) for every heading,
   eyebrow and button, and a neutral grotesque (Inter) for reading copy.
   Colour is almost entirely absent — ink, paper, and the car itself. */

:root {
  --ink: #101010;
  --paper: #ffffff;
  --mute: rgba(16, 16, 16, 0.55);
  --line: rgba(16, 16, 16, 0.12);
  --display: "Antonio", "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wordmark: "Playfair Display", Georgia, serif;
  --gutter: clamp(20px, 2.1vw, 40px);
  --head-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.anchor { position: absolute; top: 0; }
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  font-size: clamp(38px, 4.9vw, 74px);
}
.display--md { font-size: clamp(36px, 3.6vw, 58px); }
.display--xl { font-size: clamp(56px, 8.4vw, 132px); line-height: 0.9; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--paper); }

.lede { max-width: 42ch; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  line-height: 1;
  padding: 13px 26px 12px;
  border: 1px solid var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--paper); color: var(--ink); }
.btn--ghost { background: rgba(16, 16, 16, 0.35); color: var(--paper); border-color: var(--paper); backdrop-filter: blur(6px); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--paper); color: var(--ink); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--paper);
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark { width: 44px; height: 44px; color: #8a8a8a; animation: mark-draw 1.4s var(--ease) infinite alternate; stroke-dasharray: 90; }
@keyframes mark-draw { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 300;
  height: var(--head-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
}
.site-head > * { pointer-events: auto; }
.menu-btn { justify-self: start; width: 28px; height: 28px; display: grid; place-items: center; gap: 4px; align-content: center; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), width 0.3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.brand { display: inline-flex; align-items: center; gap: 6px; }
.brand-mark { width: 14px; height: 14px; }
.brand-word { font-family: var(--wordmark); font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: -0.01em; line-height: 1; }
.brand-word--lg { font-size: 48px; }

.head-cta {
  justify-self: end;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: 10px; letter-spacing: 0.14em;
  padding-bottom: 2px; border-bottom: 1px solid currentColor;
}

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 290;
  background: var(--paper); color: var(--ink);
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--head-h);
  transform: translateY(-100%);
  transition: transform 0.7s var(--ease);
  overflow: auto;
}
.menu[hidden] { display: grid; visibility: hidden; }
.menu.is-open { transform: none; visibility: visible; }
.menu-inner {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  gap: 24px var(--gutter); padding: 0 var(--gutter) 28px;
  min-height: 60vh;
}
.menu-list { grid-column: 1; grid-row: 1; align-self: start; }
.menu-list a { display: block; font-size: clamp(26px, 2.3vw, 40px); line-height: 1.45; letter-spacing: -0.01em; transition: opacity 0.3s; }
.menu-list a:hover { opacity: 0.45; }
.menu-fig { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; overflow: hidden; }
.menu-fig img { width: 100%; height: 100%; object-fit: cover; }
.menu-social { grid-column: 1; grid-row: 2; }

.social { display: flex; gap: 18px; }
.social svg { width: 14px; height: 14px; }
.social a { display: block; transition: opacity 0.3s; }
.social a:hover { opacity: 0.45; }

.contact-bar {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr 1fr;
  gap: 16px var(--gutter); padding: 22px var(--gutter) 26px;
  border-top: 1px solid var(--line);
  font-size: 11px; line-height: 1.55;
}
.contact-bar > div { display: flex; flex-direction: column; }
.contact-bar a:hover { opacity: 0.55; }
.cb-label { display: block; }
.cb-gap { margin-top: 10px; }
.cb-right { text-align: right; }

/* ---------- hero ---------- */
.hero { position: relative; height: 200vh; background: var(--ink); color: var(--paper); }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: opacity; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.35)); }
.hero-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--gutter);
}
.hero-copy .display { max-width: 12ch; margin-bottom: 26px; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero-copy .eyebrow { margin-bottom: 12px; }

/* ---------- making of ---------- */
.making { background: var(--paper); position: relative; z-index: 2; padding: clamp(80px, 9vw, 150px) var(--gutter) clamp(60px, 7vw, 120px); }
.making-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.making-intro { grid-column: 3 / span 4; grid-row: 1; padding-top: 4px; }
.making-intro .display { margin-bottom: 22px; }
.making-fig--a { grid-column: 8 / span 3; grid-row: 1 / span 2; margin-top: 30px; }
.making-fig--b { grid-column: 3 / span 4; grid-row: 2 / span 2; margin-top: 140px; }
.making-fig--c { grid-column: 8 / span 4; grid-row: 3 / span 2; margin-top: 160px; }
.making-fig--d { grid-column: 3 / span 5; grid-row: 4 / span 2; margin-top: 220px; margin-bottom: 40px; }
.making-fig img { width: 100%; height: auto; }
.making-fig--a img { aspect-ratio: 3 / 4; object-fit: cover; }
.making-fig--b img { aspect-ratio: 4 / 5; object-fit: cover; }
.making-fig--c img { aspect-ratio: 3 / 4; object-fit: cover; }
.making-fig--d img { aspect-ratio: 16 / 10; object-fit: cover; }
.making-fig figcaption { font-size: 11px; line-height: 1.6; color: var(--mute); margin-top: 12px; max-width: 46ch; }

/* ---------- axiom ---------- */
.axiom { position: relative; background: var(--paper); color: var(--paper); z-index: 2; }
.axiom-head { background: var(--ink); text-align: center; padding: clamp(70px, 8vw, 120px) var(--gutter) clamp(24px, 3vw, 44px); }
.axiom-sub { font-size: 12px; margin-top: 14px; opacity: 0.9; }
.axiom-frame {
  position: relative;
  height: clamp(360px, 88vh, 900px);
  background: var(--ink);
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}
.axiom-video { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 46px; background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.play-btn svg { width: 18px; height: 18px; }
.play-btn:hover { transform: translate(-50%, -50%) scale(1.06); }
.axiom-frame.is-playing .play-btn { opacity: 0; pointer-events: none; }
/* white gutter under the frame so the clipped panel reads as matted */
.axiom::after { content: ""; display: block; height: clamp(40px, 6vw, 90px); }

/* ---------- heritage ---------- */
.heritage {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  background: var(--paper); overflow: clip;
  padding: 120px var(--gutter);
}
.heritage-field { position: absolute; inset: 0; pointer-events: none; }
.hf {
  position: absolute; width: clamp(110px, 14vw, 260px); height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  opacity: 0.42; filter: saturate(0.85);
  will-change: transform;
  transition: opacity 0.6s var(--ease);
}
.heritage:hover .hf { opacity: 0.7; }
.hf-1 { left: 18%; top: 4%; width: clamp(90px, 12vw, 220px); }
.hf-2 { left: 34%; top: -2%; width: clamp(150px, 23vw, 420px); }
.hf-3 { left: 76%; top: 6%; width: clamp(110px, 17vw, 320px); }
.hf-4 { left: 8%; top: 30%; width: clamp(120px, 17vw, 330px); }
.hf-5 { left: 68%; top: 38%; width: clamp(90px, 11vw, 210px); }
.hf-6 { left: 25%; top: 62%; width: clamp(100px, 12vw, 230px); aspect-ratio: 4 / 5; }
.hf-7 { left: 73%; top: 58%; width: clamp(120px, 16vw, 320px); }
.hf-8 { left: 44%; top: 84%; width: clamp(110px, 14vw, 260px); }
.heritage-copy { position: relative; z-index: 1; text-align: center; max-width: 44ch; }
.heritage-copy .display { margin-bottom: 18px; }
.heritage-copy p { margin-bottom: 26px; }

/* ---------- news ---------- */
.news { background: var(--paper); padding: clamp(40px, 5vw, 80px) 0 clamp(70px, 7vw, 120px); }
.news-title { font-family: var(--body); font-weight: 400; font-size: 13px; padding: 0 var(--gutter) 18px; }
.news-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 0 var(--gutter);
}
.news-card { display: block; }
.news-media { overflow: hidden; margin-bottom: 14px; }
.news-media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; transition: transform 1.1s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.03); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 10px; margin-bottom: 8px; }
.tag-pill { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 9px; }
.news-card h3 { font-family: var(--body); font-weight: 400; font-size: 15px; line-height: 1.35; margin-bottom: 8px; }
.news-card > p:last-child { color: var(--mute); font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-foot { text-align: center; padding-top: 48px; }

/* ---------- register ---------- */
.register {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--paper); padding: 80px var(--gutter);
}
.register-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.22) translateX(9%); transform-origin: center; }
.register::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.2)); z-index: -1; }
.register-inner { max-width: 420px; margin-left: clamp(0px, 12vw, 260px); }
.register-inner h2 { font-family: var(--body); font-weight: 400; font-size: clamp(24px, 2vw, 32px); line-height: 1.15; margin-bottom: 26px; }
.register-inner > p { font-size: 12px; margin-bottom: 30px; }
.register-form { display: flex; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,0.7); }
.register-form input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--paper);
  font-family: var(--display); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 0;
}
.register-form input::placeholder { color: rgba(255,255,255,0.7); }
.register-form input:focus { outline: none; }
.register-form button { font-family: var(--body); font-size: 12px; padding: 10px 0 10px 16px; color: var(--paper); transition: opacity 0.3s; }
.register-form button:hover { opacity: 0.6; }
.register-note { font-size: 12px; margin-top: 16px; }

/* ---------- footer ---------- */
.site-foot { position: relative; z-index: 2; background: var(--paper); color: var(--ink); }
.foot-main {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px var(--gutter);
  padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(40px, 5vw, 80px);
  align-items: start;
}
.foot-brand { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.foot-brand .brand-mark { width: 16px; height: 16px; align-self: flex-start; margin-top: 4px; }
.foot-nav ul:first-child a { display: block; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.5; letter-spacing: -0.01em; transition: opacity 0.3s; }
.foot-nav ul:first-child a:hover { opacity: 0.45; }
.foot-nav .social { margin-top: 56px; }
.foot-aside { text-align: right; font-size: 11px; line-height: 1.5; }
.foot-aside a:hover { opacity: 0.55; }
.foot-aside-gap { margin-top: 30px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader-mark { animation: none; }
  .hf { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .making-intro { grid-column: 1 / span 6; }
  .making-fig--a { grid-column: 8 / span 5; }
  .making-fig--b { grid-column: 1 / span 5; margin-top: 90px; }
  .making-fig--c { grid-column: 7 / span 6; margin-top: 110px; }
  .making-fig--d { grid-column: 1 / span 7; margin-top: 140px; }
  .contact-bar { grid-template-columns: 1fr 1fr 1fr; }
  .cb-right { text-align: left; }
}

@media (max-width: 760px) {
  :root { --head-h: 56px; }
  body { font-size: 14px; }
  .brand-word { font-size: 20px; }
  .head-cta { display: none; }

  .menu-inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .menu-list { grid-row: 1; }
  .menu-list a { font-size: 30px; }
  .menu-fig { grid-column: 1; grid-row: 2; max-height: 34vh; }
  .menu-social { grid-row: 3; }

  .hero { height: 170vh; }
  .hero-copy .display { font-size: clamp(34px, 11vw, 48px); }

  .making { padding-top: 70px; }
  .making-grid { grid-template-columns: 1fr; gap: 0; }
  .making-grid > * { grid-column: 1 !important; grid-row: auto !important; margin-top: 44px !important; }
  .making-intro { margin-top: 0 !important; }
  .making-fig--a img, .making-fig--c img { aspect-ratio: 4 / 5; }
  .making-fig figcaption { max-width: none; }

  .axiom-frame { height: 62vh; }

  .heritage { min-height: 90vh; padding: 90px var(--gutter); }
  .hf { opacity: 0.38; width: 34vw; transform: none !important; }
  .hf-2, .hf-4, .hf-5, .hf-8 { display: none; }
  .hf-1 { left: 5%; top: 3%; }
  .hf-3 { left: 58%; top: 9%; }
  .hf-6 { left: 7%; top: 76%; width: 28vw; }
  .hf-7 { left: 58%; top: 80%; }

  .news-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); gap: 12px; scrollbar-width: none; padding-bottom: 6px; }
  .news-track::-webkit-scrollbar { display: none; }
  .news-card { flex: 0 0 82%; scroll-snap-align: start; }

  .register-inner { margin-left: 0; }

  .foot-main { grid-template-columns: 1fr; gap: 36px; }
  .foot-aside { text-align: left; }
  .foot-aside-gap { margin-top: 18px; }
  .contact-bar { grid-template-columns: 1fr 1fr; }
}
