/* ==========================================================================
   HॐME PG — Reset, typography, layout primitives
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink-soft);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

/* The hidden attribute must win over any `display` we set on a component.
   Without this, `el.hidden = true` silently does nothing to a grid or flex
   container and the "hidden" panel stays on screen. */
[hidden] { display: none !important; }

/* --- Headings ------------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--c-ink);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-display);
  font-variation-settings: 'SOFT' 30, 'WONK' 0;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); line-height: var(--leading-snug); }
h4 { font-size: var(--text-lg); line-height: var(--leading-snug); }

p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

a { color: inherit; }

/* --- Reusable type ------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--c-copper);
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--text-lg);
  color: var(--c-ink-soft);
  line-height: 1.55;
}

.muted { color: var(--c-ink-mute); }

.fig {                       /* numerals in prices / stats */
  font-family: var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: var(--track-tight);
  color: var(--c-ink);
}

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

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

.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.band {
  background: var(--c-paper);
  color: var(--c-ink-soft);
}
.band--deep { background: var(--c-paper-deep); }
.band--dark { background: var(--c-paper); }   /* pairs with .on-dark */

/* Section heading block: big title left, supporting copy right. */
.sec-head {
  display: grid;
  gap: var(--space-5) var(--space-8);
  grid-template-columns: 1fr;
  align-items: end;
  margin-bottom: var(--space-8);
}
@media (min-width: 62rem) {
  .sec-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .sec-head > p { justify-self: end; }
}

.rule {
  border: 0;
  border-top: 1px solid var(--c-rule);
  margin: 0;
}

/* --- Utility ------------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: var(--radius);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--c-copper);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- The lattice ---------------------------------------------------------
   The building's street facade is a steel screen of stacked triangles.
   Reused here as the site's one repeating graphic device.
   ------------------------------------------------------------------------ */

.lattice {
  --lattice-size: 46px;
  --lattice-color: var(--c-rule);
  background-image:
    linear-gradient(45deg,  var(--lattice-color) 1px, transparent 1px),
    linear-gradient(-45deg, var(--lattice-color) 1px, transparent 1px);
  background-size: var(--lattice-size) var(--lattice-size);
}

.lattice-rule {
  height: 24px;
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
  --lattice-size: 24px;
  opacity: .75;
}

/* --- Entrance motion ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }

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