:root {
  --pearl:     #FBF9FF;
  --ink:       #1C1733;
  --lilac:     #CCB2FF;
  --font-body: 'Instrument Sans', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html {
  background: var(--pearl);
  color-scheme: light;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

html::-webkit-scrollbar { display: none; }

body {
  font-family: var(--font-body);
  background: var(--pearl);
  color: var(--ink);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 5;
  background: var(--pearl);
  pointer-events: none;
}

body.static .veil { opacity: 0; }

.hero {
  --logo-size: min(320px, 80vw);
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  text-align: center;
  padding: 0 var(--gutter);
  pointer-events: none;
  scroll-snap-align: start;
}

.spin {
  position: relative;
  z-index: 3;
  height: 100svh;
  pointer-events: none;
  scroll-snap-align: start;
}

body.static .spin { display: none; }

.hero-logo {
  grid-row: 2;
  width: var(--logo-size);
  aspect-ratio: 1556 / 416;
}

body.static .hero-logo { background: url(/images/orrivo-wordmark.svg) center / contain no-repeat; }

.hero-line,
.hero-hint {
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: transparent;
  user-select: none;
}

.hero-line {
  grid-row: 1;
  align-self: end;
  margin-bottom: max(24px, calc(var(--logo-size) * 0.1));
  text-indent: 0.34em;
}

.hero-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(clamp(16px, 3.4svh, 34px) + env(safe-area-inset-bottom) + 7px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2em;
  padding-left: 0.34em;
  font-size: calc(clamp(12px, 1.1vw, 14px) * 0.86);
  opacity: 0.72;
}

.hero-hint::before {
  content: '';
  box-sizing: border-box;
  width: 1em;
  height: 1.55em;
  border: 0.1em solid;
  border-radius: 999px;
}

body.static .hero-line,
body.static .hero-hint { color: var(--ink); user-select: auto; }
