* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis drives smooth scroll; native smooth-scroll would fight it */
}

html.has-lenis {
  overflow: hidden; /* Lenis manages the actual scrollable element itself */
}

body {
  margin: 0;
  background: var(--role-bg);
  color: var(--role-text);
  font-family: var(--body);
}

img {
  max-width: 100%;
  display: block;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------- eyebrow ---------- */

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--role-accent);
  overflow: hidden; /* SplitText line-mask reveal clips within this */
}

.eyebrow--on-dark {
  color: rgba(255, 255, 255, .85);
}

/* ---------- brand wordmark ---------- */

.wordmark {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--role-text);
}

/* ---------- bracket-frame accent (echoes the logo's offset open-corner frame) ---------- */

.bracket-frame {
  position: relative;
}

.bracket-frame::before,
.bracket-frame::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--role-accent);
  pointer-events: none;
  transition: width var(--dur-fast) var(--ease-ui), height var(--dur-fast) var(--ease-ui), inset var(--dur-fast) var(--ease-ui);
}

.bracket-frame::before {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.bracket-frame::after {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

.bracket-frame:hover::before,
.bracket-frame:focus-within::before {
  top: -14px;
  left: -14px;
}

.bracket-frame:hover::after,
.bracket-frame:focus-within::after {
  bottom: -14px;
  right: -14px;
}

.on-dark .bracket-frame::before,
.on-dark .bracket-frame::after,
.brush-reveal .bracket-frame::before,
.brush-reveal .bracket-frame::after,
.closing-cta .bracket-frame::before,
.closing-cta .bracket-frame::after {
  border-color: var(--role-label-on-dark);
}

/* ---------- section rhythm ---------- */

.section {
  padding-block: clamp(80px, 10vw, 140px);
  position: relative;
}

.section h2 {
  margin: 0 0 16px;
  font-family: var(--heading);
  font-weight: 700;
  color: var(--role-text);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  overflow: hidden;
}

.section-copy {
  margin: 0 0 8px;
  font-family: var(--body);
  color: var(--role-text-muted);
}

@media (max-width: 767px) {
  .section {
    padding-block: clamp(48px, 12vw, 72px);
  }
  .section h2 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
}

/* ---------- reveal primitives (see js/engine/reveal.js) ---------- */

[data-reveal] {
  will-change: transform, opacity;
}

.reveal-line {
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

.js-reveal-ready [data-reveal="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
}

.js-reveal-ready [data-reveal="mask"] {
  clip-path: inset(0 0 100% 0);
}

/* If JS never runs (blocked, error, no-JS), nothing must stay hidden. */
.no-js-reveal [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}
