/* ==========================================================================
   Elevate 360 — reset, elements, layout primitives, buttons.
   Reads only from tokens.css.
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: var(--leading-snug); }
h4 { font-size: var(--step-0); line-height: var(--leading-snug); }

p { margin: 0 0 var(--space-md); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

img, svg, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

strong, b { font-weight: var(--weight-bold); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--space-2xl) 0;
}

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

.on-dark :focus-visible { outline-color: var(--focus-on-dark); }

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.container--wide   { max-width: calc(var(--container-wide)   + var(--gutter) * 2); }

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

.on-dark {
  background: var(--surface-inverse);
  color: var(--text-inverse);
}

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

/* --- Type helpers -------------------------------------------------------- */

/* DESIGN.md: eyebrows are quiet. Slightly narrow, medium, muted. Not gold. */
.eyebrow {
  margin: 0 0 var(--space-sm);
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  font-stretch: var(--width-narrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.on-dark .eyebrow { color: var(--text-inverse-muted); }

/* Display type: size does the work. One <em> per headline is the voice. */
.display {
  font-weight: var(--weight-regular);
  font-stretch: var(--width-normal);
  line-height: 1.02;
  letter-spacing: -0.022em;
}

.display em { font-style: italic; font-weight: inherit; }

/* Stamp: numerals and short labels, wide and heavy. */
.stamp {
  font-weight: var(--weight-bold);
  font-stretch: var(--width-wide);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Divider: a hairline with a short label set into it. Marks the seam
   between two sections on the same ground; the line draws itself in. */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--section-y-tight);
}
.divider__label {
  flex: none;
  font-size: var(--step--2);
  font-weight: var(--weight-medium);
  font-stretch: var(--width-narrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-meta);
}
.divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
}
.js .divider[data-reveal]::after { transform: scaleX(0); transition: transform var(--dur-scroll) var(--ease-emph) 120ms; }
.js .divider[data-reveal].is-in::after { transform: scaleX(1); }

/* Placeholder image slot: the shape of the picture and a note saying what
   belongs there. Replace the whole .slot with the <picture> when chosen. */
.slot {
  display: grid;
  place-content: center;
  gap: var(--space-xs);
  padding: var(--space-lg);
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--text-meta);
  border-radius: var(--radius-sm);
  background: rgba(15, 41, 66, 0.05);
  text-align: center;
}
.slot--tall { aspect-ratio: 4 / 5; }
.slot__label {
  font-size: var(--step--2);
  font-weight: var(--weight-medium);
  font-stretch: var(--width-narrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-meta);
}
.slot__note { max-width: 28ch; font-size: var(--step--1); line-height: var(--leading-snug); color: var(--text-muted); }

/* Every image slot carries a note saying what belongs there. */
.slot-note {
  display: block;
  font-size: var(--step--2);
  color: var(--text-meta);
}

.tm { font-size: 0.45em; vertical-align: super; font-weight: var(--weight-medium); opacity: 0.7; }

.lede {
  font-size: var(--step-1);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  color: var(--text-muted);
  max-width: var(--measure-tight);
}

.on-dark .lede { color: var(--text-inverse-muted); }

.meta { font-size: var(--step--1); color: var(--text-meta); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Skip link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: var(--z-skip);
  padding: var(--space-sm) var(--space-md);
  background: var(--navy);
  color: var(--on-navy);
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  transform: translateY(calc(-100% - var(--space-md)));
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible { transform: translateY(0); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem var(--space-lg);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn:active { transform: translateY(1px); }

/* A larger button for a page's main ask. */
.btn--lg { padding: 1.05rem var(--space-xl); font-size: var(--step-0); letter-spacing: 0.01em; }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--on-navy); }

.on-dark .btn--ghost { color: var(--on-navy); border-color: rgba(244, 242, 237, 0.4); }
.on-dark .btn--ghost:hover { background: var(--on-navy); color: var(--navy); border-color: var(--on-navy); }

.btn--lg { padding: 1.125rem var(--space-xl); font-size: var(--step-0); }

/* --- Text link with arrow ------------------------------------------------ */

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: 4px;
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.arrow-link svg { width: 20px; flex: none; transition: transform var(--dur-base) var(--ease-emph); }
.arrow-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.arrow-link:hover svg { transform: translateX(4px); }

.on-dark .arrow-link { color: var(--on-navy); border-bottom-color: var(--on-navy-line); }
.on-dark .arrow-link:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }

/* --- Reveal on scroll ----------------------------------------------------- */
/* site.js adds html.js, then .is-in as each element enters the viewport.
   Without JS nothing is hidden. --d on the element staggers siblings. */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-scroll) var(--ease-out),
              transform var(--dur-scroll) var(--ease-emph);
  transition-delay: calc(var(--d, 0) * 110ms);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
