/* ==========================================================================
   NYC ICON LIMO — Base
   Reset, typography, layout primitives, accessibility.
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-5));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

/* Component display rules (e.g. `.vcard { display: flex }`) outrank the
   browser default for [hidden], which the fleet filter relies on. */
[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5 {
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-d1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h2 {
  font-size: var(--fs-d2);
  line-height: 1.14;
  letter-spacing: var(--ls-tight);
}

h3 {
  font-size: var(--fs-d3);
  font-weight: 700;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
}

h5 {
  font-size: var(--fs-base);
  font-weight: 700;
}

p {
  color: var(--text-muted);
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
  color: inherit;
}

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-body);
}

/* A gold underline swash behind a word inside a heading. */
.mark {
  position: relative;
  display: inline-block;
  color: inherit;
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.34em;
  background: var(--accent-tint-2);
  border-radius: var(--r-xs);
  z-index: -1;
}

.gold {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: -120px;
  left: var(--space-4);
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: top var(--t-fast) var(--ease);
}

.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.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;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

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

.shell--narrow {
  max-width: var(--shell-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--sm {
  padding-block: var(--section-y-sm);
}

.section--flush-top {
  padding-top: 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--dark {
  background: var(--ink);
  color: var(--text-invert-muted);
  overflow: hidden;
}

.section--navy {
  background: var(--navy);
  color: var(--text-invert-muted);
  overflow: hidden;
}

/* `.on-dark` applies the same treatment to a panel that sits on ink
   without being a full-width section. */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5,
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4,
.on-dark h5 {
  color: var(--text-invert);
}

.section--dark p,
.section--navy p,
.on-dark p {
  color: var(--text-invert-muted);
}

/* Decorative dot grid, used behind soft and dark sections. */
.deco-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px;
  color: rgba(11, 18, 32, 0.07);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
}

.section--dark .deco-dots,
.section--navy .deco-dots,
.on-dark .deco-dots {
  color: rgba(255, 255, 255, 0.09);
}

/* Soft gold glow used to lift dark sections. */
.deco-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-5);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--loose {
  gap: var(--space-6);
}

@media (max-width: 1080px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3.6vw, 4.5rem);
  align-items: center;
}

.split--reverse > *:first-child {
  order: 2;
}

.split--top {
  align-items: start;
}

/* Weighted split — a wide primary column beside a narrower aside. */
.split--major {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

@media (max-width: 1024px) {
  .split--major {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 940px) {
  .split,
  .split--major {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--reverse > *:first-child {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.flow > * + * {
  margin-top: var(--space-4);
}

.flow-lg > * + * {
  margin-top: var(--space-5);
}

.center {
  text-align: center;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.cluster--between {
  justify-content: space-between;
}

.cluster--center {
  justify-content: center;
}

.cluster--end {
  align-items: flex-end;
}

.fs-sm {
  font-size: var(--fs-sm);
}

.fs-xs {
  font-size: var(--fs-xs);
}

/* --------------------------------------------------------------------------
   Section header
   -------------------------------------------------------------------------- */

.head {
  max-width: 60ch;
  margin-bottom: var(--space-7);
}

.head--center {
  margin-inline: auto;
  text-align: center;
}

.head > * + * {
  margin-top: var(--space-4);
}

.head p {
  font-size: var(--fs-lg);
}

.head--center p {
  margin-inline: auto;
}

/* Pill eyebrow — the small labelled chip above every section title. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.42rem 0.95rem;
  border-radius: var(--r-pill);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.section--dark .eyebrow,
.section--navy .eyebrow,
.on-dark .eyebrow {
  background: rgba(201, 162, 77, 0.16);
  border-color: rgba(201, 162, 77, 0.32);
  color: var(--gold-light);
}
