/* EZM base styles */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--muted-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--brand); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.wrap-text { max-width: var(--wrap-text); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type helpers */
.label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
em, .italic { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { color: var(--brand); }
.light h1 em, .light h2 em, .light h3 em { color: inherit; background: var(--brand); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.display { font-size: clamp(46px, 8.2vw, 132px); line-height: 0.93; letter-spacing: -0.055em; }
.h1 { font-size: clamp(40px, 6.2vw, 92px); line-height: 0.96; letter-spacing: -0.05em; }
.h2 { font-size: clamp(34px, 4.8vw, 68px); line-height: 0.98; letter-spacing: -0.045em; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--muted-2); max-width: 620px; }
.light .lead { color: var(--text-dark); }
.muted { color: var(--muted); }

/* Sections */
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(56px, 7vw, 88px); }
.light { background: var(--paper); color: var(--ink); }
.light a:hover { color: var(--text-dark); }
.light .label { color: var(--text-dark-2); }
.light hr { border-color: var(--paper-line); }
.lime { background: var(--brand); color: var(--ink); }
.lime .label { color: var(--ink); }
.lime a:hover { color: var(--ink); }
.panel { background: var(--ink-2); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > div { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.section-head p { max-width: 420px; color: var(--muted); }
.light .section-head p { color: var(--text-dark-2); }

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }
