/* ============================================================
   Shared foundation — type, reset, motion primitives
   Used by the studio site and all three concept sites.
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body, "Inter Tight", system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
  font-weight: var(--body-weight, 400);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

a, button, summary, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--focus, #39d3a0);
  outline-offset: 4px;
}

::selection { background: var(--selection, rgba(57, 211, 160, .28)); }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip:focus-visible { transform: translateY(0); }

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

/* --- shared layout helpers -------------------------------- */
.shell {
  width: min(var(--shell, 1320px), 100% - var(--gutter, 48px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent, #39d3a0);
}

.display {
  font-family: var(--font-display, inherit);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(16px, 1.15vw + 12px, 19px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 56ch;
}

.rule { height: 1px; background: var(--line); border: 0; }

/* --- scroll reveal ----------------------------------------
   Armed only after reveal.js runs (html.js-reveal). Without JS, or if the
   reveal mechanism fails, every element stays visible. */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity .9s cubic-bezier(.22, .61, .36, 1),
    transform .9s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

html.js-reveal [data-reveal="fade"] { transform: none; }
html.js-reveal [data-reveal="scale"] { transform: scale(.965); }
html.js-reveal [data-reveal="scale"].is-in { transform: none; }
html.js-reveal [data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s cubic-bezier(.22, .61, .36, 1);
}
html.js-reveal [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
