/* Hallmark · pre-emit critique: P5 H5 E4 S4 R5 V4
 * Hallmark · genre: editorial · macrostructure: Marquee Hero · H1 marquee knobs: size=xl, alignment=left-bias, underlay=full-bleed media
 * theme: custom · vibe: "black & silver with champagne gold, discreet, nocturnal" · paper: oklch(15% 0.006 255) · accent: oklch(80% 0.105 88) gold
 * display: Cormorant Garamond · body: EB Garamond · axes: dark / roman-serif / chromatic-gold
 * nav: N9 edge-aligned minimal · footer: Ft1 mast-headed
 * enrichment: E-photographic — blurred hero (black Lincoln Navigator, cropped to car) + CSS moon motif (Wolf nod) + full-bleed cabin band, grayscale + dark scrim (Unsplash, placeholder)
 * studied: no · context: inferred · v1.0.0
 */

@import url("tokens.css");

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
#contact { scroll-margin-top: var(--space-xl); }
body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:where(button) { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ============ Base ============ */
body {
  background-color: var(--color-paper);
  /* subtle diagonal hairline texture over a faint nocturnal vignette */
  background-image:
    repeating-linear-gradient(135deg, var(--pattern-line) 0 1px, transparent 1px 10px),
    radial-gradient(120% 80% at 50% -10%, var(--color-paper-2), var(--color-paper) 60%);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: oldstyle-nums;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  min-width: 0;
}

::selection { background: var(--color-accent); color: var(--color-accent-ink); }

/* Shared label — tracked small caps, used for eyebrows + meta */
.label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted);
  font-weight: 500;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

/* Thin silver hairline used as a section divider */
.rule {
  border: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

/* ============ Nav · N9 edge-aligned minimal ============ */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;   /* wolf mark left, Enquire right */
  gap: var(--space-md);
  padding-block: var(--space-lg);
}

/* ---- Logo marks (from the brand artwork) ---- */
.nav__logo {
  display: inline-flex;
  opacity: 0.9;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.nav__logo img { display: block; width: 46px; height: auto; }
.nav__logo:hover, .nav__logo:focus-visible { opacity: 1; }
.wordmark {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .mr { color: var(--color-ink-2); font-weight: 500; font-style: italic; }

.nav__cta {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-ink);
  padding: var(--space-xs) 0;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__cta::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav__cta:hover, .nav__cta:focus-visible { color: var(--color-accent); }
.nav__cta:hover::after, .nav__cta:focus-visible::after { transform: scaleX(1); }

/* ============ Hero · full-bleed blurred media ============ */
.hero-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
}
.hero-wrap__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;   /* image is pre-cropped to a landscape whole-car frame; keep it centred + full-bleed */
  /* heavier, dreamier blur; image is already dark so it needs far less brightness knock-down */
  filter: blur(13px) grayscale(42%) brightness(0.74) contrast(1.05);
  transform: scale(1.04);   /* just enough to keep full-bleed under the 13px blur */
  z-index: -2;
}
.hero-wrap__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    var(--scrim-top) 0%,
    var(--scrim-mid) 34%,
    var(--scrim-low) 72%,
    var(--color-paper) 100%
  );
}
.hero-wrap__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: var(--space-2xl) var(--space-3xl);
}
/* Brand lockup — the name is the hero (digital business card) */
.hero__brand { display: block; margin: 0; min-width: 0; }
.hero__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.7rem, 2rem + 9vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-shadow: 0 1px 44px oklch(10% 0.006 255 / 0.55);
  overflow-wrap: anywhere;
}
.hero__name .mr {
  font-style: italic;
  font-weight: 400;
  color: var(--color-ink-2);
}
.hero__cat {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 0.6rem + 0.7vw, 1.35rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-ink-2);
  text-shadow: 0 1px 24px oklch(10% 0.006 255 / 0.6);
}
.hero__tagline {
  margin-top: var(--space-xl);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  max-width: 24ch;
  text-shadow: 0 1px 30px oklch(10% 0.006 255 / 0.5);
}
.hero__tagline em { font-style: italic; color: var(--color-accent); }

/* ============ Lede — below the fold reveal ============ */
.lede {
  padding-block: var(--space-2xl);
}
.lede__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  align-items: end;
}
.lede__text {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-ink);
  max-width: 30ch;
}
.lede__meta {
  font-size: var(--text-base);
  color: var(--color-ink-2);
  max-width: 34ch;
}
/* Two logical lines: cities grouped on top, the sentence set off below.
   Block spans + a gap keep the split legible even though the cities wrap
   within the narrow grid column (a bare <br> read as continuous wrapping). */
.lede__cities { display: block; }
.lede__note { display: block; margin-top: var(--space-sm); }

/* ============ Services · F3 tabular spec sheet ============ */
.services { padding-block: var(--space-3xl); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
}
.spec { border-top: var(--rule-hair) solid var(--color-rule); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-lg);
  align-items: baseline;
  padding-block: var(--space-lg);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  transition: background-color var(--dur-mid) var(--ease-out);
}
.spec__row:hover { background-color: var(--color-paper-2); }
.spec__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.spec__desc {
  font-size: var(--text-base);
  color: var(--color-ink-2);
  max-width: 46ch;
}

/* ============ Ethos · full-bleed photographic band ============ */
.ethos {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(var(--space-3xl), 18vh, 11rem);
}
.ethos__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: grayscale(45%) brightness(0.52) contrast(1.06);
  z-index: -2;
}
.ethos__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    var(--color-paper) 0%,
    var(--scrim-mid) 42%,
    var(--scrim-low) 66%,
    var(--color-paper) 100%
  );
}
.ethos__line {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  max-width: 20ch;
  margin-inline: auto;
  text-shadow: 0 1px 40px oklch(10% 0.006 255 / 0.6);
}
.ethos__line span { color: var(--color-accent); font-style: normal; }
.ethos__sub {
  margin-top: var(--space-lg);
  font-size: var(--text-md);
  color: var(--color-ink-2);
  max-width: 42ch;
  margin-inline: auto;
}

/* ============ Contact ============ */
.contact { padding-block: var(--space-3xl); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: start;
}
.contact h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
}
.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  line-height: 1.1;
  padding-block: var(--space-2xs);   /* ≥44px tap target on mobile */
  transition: color var(--dur-fast) var(--ease-out);
}
.contact__email::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 6px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.contact__email:hover, .contact__email:focus-visible { color: var(--color-accent); }
.contact__email:hover::after, .contact__email:focus-visible::after { transform: scaleX(1); }

.contact__meta {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 34rem;
}
.contact__meta dt { margin-bottom: var(--space-2xs); }
.contact__meta dd { font-size: var(--text-base); color: var(--color-ink); }

/* ============ Credentials strip ============ */
.creds { padding-block: var(--space-2xl); }
.creds__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.creds__row li {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-left: var(--rule-hair) solid var(--color-rule-2);
}
.creds__row li:first-child { border-left: none; }
.creds__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.creds__l {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-muted);
  letter-spacing: 0.03em;
  line-height: 1.35;
}

/* ============ Footer · fleet mark + mast-head (left-aligned) ============ */
.footer { padding-block: var(--space-2xl) var(--space-xl); }
.footer__fleet {
  display: block;
  width: clamp(240px, 40vw, 420px);
  height: auto;
  opacity: 0.72;
  margin-bottom: var(--space-md);
}
.footer__band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);   /* the horizontal line under the cars */
}
.footer__brand .wordmark { font-size: var(--text-lg); }
.footer__tag {
  font-size: var(--text-sm);
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin-top: var(--space-2xs);
}
.footer__copy { font-size: var(--text-sm); color: var(--color-muted); }

/* ============ Cursor trail (fine-pointer only; JS-driven) ============ */
#trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ============ Focus (instant, never animated) ============ */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* ============ Entrance — one orchestrated reveal on load ============ */
@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise {
  opacity: 0;
  animation: rise var(--dur-slow) var(--ease-out) forwards;
}
.rise-1 { animation-delay: 60ms; }
.rise-2 { animation-delay: 220ms; }
.rise-3 { animation-delay: 380ms; }

/* ============ Responsive ============ */
@media (max-width: 60rem) {
  .lede__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
  /* blur is absolute px — ease it off as the viewport narrows so it stays proportional */
  .hero-wrap__img { filter: blur(9px) grayscale(42%) brightness(0.74) contrast(1.05); }
}
@media (max-width: 40rem) {
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); padding-block: var(--space-md); }
  .contact__meta { grid-template-columns: minmax(0, 1fr); }
  .contact__email { padding-block: 0.7rem; }   /* ≥44px hit target on phones */
  .hero-wrap__img { filter: blur(6px) grayscale(42%) brightness(0.74) contrast(1.05); }  /* car stays legible on phones */
  .creds__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds__row li:nth-child(3) { border-left: none; }
  .creds__row li:nth-child(3), .creds__row li:nth-child(4) { border-top: var(--rule-hair) solid var(--color-rule-2); }
  .footer__band { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .footer__fleet { width: clamp(220px, 62vw, 320px); }
  .hero { padding-block: var(--space-2xl) var(--space-xl); }
  .hero__display { letter-spacing: -0.01em; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; }
}
