/* ===========================================================================
   GRATZ — base / reset / primitives
   Modern reset, typography defaults, layout container, buttons, utilities,
   accessibility. Shared across every page.
   =========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

input {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--white);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ---- headings ------------------------------------------------------------ */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  color: var(--white);
}

/* ===========================================================================
   LAYOUT
   =========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(58px, 7vw, 100px);
}

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

/* ===========================================================================
   TEXT PRIMITIVES
   =========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 15.5px;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: #CFD2D7;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
}

.mono {
  font-family: var(--font-mono);
}

/* ===========================================================================
   BUTTONS
   =========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .01em;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.btn--primary:hover {
  background: #E6E7E9;
}

.btn--ghost {
  background: rgba(255, 255, 255, .02);
  border-color: var(--line-2);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .05);
}

.btn--sm {
  padding: 12px 19px;
  font-size: 16px;
}

/* ===========================================================================
   ACCESSIBILITY / MOTION
   =========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* JS adds .motion-off to <html> on phones / touch / reduced-motion:
   decorative animation + heavy canvas are skipped there. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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