/* ==========================================================
   Base — reset, type roles, layout primitives
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-16);
  font-variation-settings: "wdth" var(--wdth-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

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

address {
  font-style: normal;
}

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

::selection {
  background: var(--blue);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--ink-dark);
  transform: translateY(-200%);
  transition: transform var(--t-fast);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Type roles ---------- */

.t-hero,
.t-72,
.t-44,
.t-28 {
  font-variation-settings: "wdth" var(--wdth-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.t-hero {
  font-size: var(--fs-hero);
  line-height: 0.9;
}

.t-72 {
  font-size: var(--fs-72);
  line-height: 0.95;
}

.t-44 {
  font-size: var(--fs-44);
  line-height: 1;
}

.t-28 {
  font-size: var(--fs-28);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.t-lead {
  font-size: var(--fs-20);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 44ch;
  text-wrap: pretty;
}

.t-body {
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.t-small {
  font-size: var(--fs-14);
  color: var(--ink-3);
}

/* Small section marker: a dimension line, the way a technical drawing labels a part */
.dim {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--blue-hi);
}

.dim::before {
  content: "";
  width: 40px;
  height: 9px;
  border-inline: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  opacity: 0.8;
}

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

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

.section {
  position: relative;
  padding-block: clamp(96px, 12vw, var(--s-10));
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}

.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.js [data-split] .w > span {
  display: inline-block;
  will-change: transform;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
