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

html.motion {
  scroll-behavior: smooth;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--sea-top);
  outline-offset: 4px;
  border-radius: 6px;
}

[tabindex="-1"]:focus {
  outline: none;
}

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

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-dark);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.4em;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink-dark);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgb(255 107 61 / 0.6);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgb(255 107 61 / 0.75);
}

.button svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.4s var(--ease-out);
}

.button:hover svg {
  transform: translateX(3px);
}

.button--large {
  min-height: 60px;
  padding: 0 1.9em;
  font-size: var(--step-1);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.4em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0.4em calc(100% - 12px) / calc(100% - 0.8em) 1px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}

.text-link:hover {
  background-size: 0 1px;
}

.section-title {
  font-size: var(--step-3);
}

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.motion .sky,
.motion .sun-track,
.motion .wave-layer,
.motion .hero__content,
.motion .stack__item,
.motion .process__track,
.motion .values__row {
  will-change: transform;
}
