:root {
  color-scheme: dark;
  --midnight: #0b0e14;
  --midnight-soft: #111722;
  --ink: #171a21;
  --coral: #ff6b57;
  --coral-soft: #ff9a83;
  --sea-glass: #8fd5cc;
  --paper: #f4f5f0;
  --harbor: #244760;
  --muted: #9da6b4;
  --line: rgba(244, 245, 240, 0.14);
  --page: min(1240px, calc(100vw - 48px));
  --display: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--midnight);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 9%, rgba(36, 71, 96, 0.22), transparent 33rem),
    var(--midnight);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  box-shadow: 0 0 14px rgba(255, 107, 87, 0.65);
  transition: width 80ms linear;
}

body.has-scroll::before {
  width: var(--scroll-progress, 0%);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--sea-glass);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  width: var(--page);
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: rgba(244, 245, 240, 0.72);
  font-size: 14px;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.nav-cta {
  padding: 9px 15px;
  border: 1px solid rgba(244, 245, 240, 0.3);
  border-radius: 999px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 22px;
  height: 1px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 920px;
  padding: 160px max(24px, calc((100vw - 1240px) / 2)) 88px;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-bottom: 76px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--coral-soft);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(68px, 7.5vw, 122px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

h1 .motion-word {
  display: inline-block;
  color: var(--sea-glass);
  font-style: italic;
  font-weight: 400;
}

.hero-intro {
  max-width: 540px;
  margin-bottom: 34px;
  color: rgba(244, 245, 240, 0.68);
  font-size: clamp(17px, 1.5vw, 21px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--coral);
  color: #0b0e14;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(244, 245, 240, 0.04);
}

.button svg {
  width: 16px;
  height: 16px;
}

.hero-art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: max(-14vw, -220px);
  width: min(62vw, 950px);
  height: 100%;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--midnight) 0%, transparent 30%, transparent 72%, var(--midnight) 100%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(0.8) contrast(1.08);
}

.timeline {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 64px;
  left: max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  color: rgba(244, 245, 240, 0.52);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-track {
  position: relative;
  height: 1px;
  background: rgba(244, 245, 240, 0.18);
}

.timeline-track::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: var(--timeline, 36%);
  height: 5px;
  content: "";
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral), var(--sea-glass));
  box-shadow: 0 0 18px rgba(255, 107, 87, 0.55);
  transition: width 120ms linear;
}

.section {
  width: var(--page);
  margin: 0 auto;
  padding: 130px 0;
}

.section-head {
  display: grid;
  margin-bottom: 72px;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}

.section h2 {
  max-width: 830px;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-lede {
  max-width: 500px;
  margin: 8px 0 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.process-card {
  min-height: 320px;
  padding: 32px 32px 36px 0;
  border-right: 1px solid var(--line);
}

.process-card + .process-card {
  padding-left: 32px;
}

.process-card:last-child {
  border-right: 0;
}

.process-meta {
  display: flex;
  margin-bottom: 82px;
  justify-content: space-between;
  color: var(--sea-glass);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  color: var(--coral);
}

.process-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.process-card p {
  max-width: 310px;
  margin-bottom: 0;
  color: var(--muted);
}

.studio-stage {
  display: grid;
  width: var(--page);
  min-height: 720px;
  margin: 32px auto 0;
  padding: 72px;
  border: 1px solid rgba(143, 213, 204, 0.18);
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(36, 71, 96, 0.45), rgba(17, 23, 34, 0.72) 50%, rgba(255, 107, 87, 0.08)),
    var(--midnight-soft);
  grid-template-columns: 0.9fr 1.1fr;
  gap: 88px;
  align-items: center;
  overflow: hidden;
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-wrap::before {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 76%;
  height: 74%;
  content: "";
  border-radius: 50%;
  background: rgba(143, 213, 204, 0.15);
  filter: blur(50px);
}

.phone {
  position: relative;
  width: min(100%, 326px);
  padding: 8px;
  border: 1px solid rgba(244, 245, 240, 0.24);
  border-radius: 46px;
  background: #05070a;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.46);
  transform: rotate(-3deg);
}

.phone img {
  border-radius: 38px;
}

.stage-copy h2 {
  margin-bottom: 28px;
}

.stage-copy > p {
  max-width: 490px;
  color: rgba(244, 245, 240, 0.66);
  font-size: 18px;
}

.feature-list {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 34px 1fr;
  align-items: center;
  font-size: 15px;
}

.feature-list span {
  color: var(--coral-soft);
  font-family: var(--utility);
  font-size: 10px;
}

.quiet-section {
  width: var(--page);
  margin: 0 auto;
  padding: 144px 0;
  text-align: center;
}

.quiet-section blockquote {
  max-width: 990px;
  margin: 0 auto 30px;
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.quiet-section blockquote em {
  color: var(--sea-glass);
  font-weight: 400;
}

.quiet-section p {
  color: var(--muted);
}

.closing {
  position: relative;
  min-height: 570px;
  padding: 125px 24px;
  overflow: hidden;
  text-align: center;
}

.closing::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(11, 14, 20, 0.4), rgba(11, 14, 20, 0.76)),
    url("assets/hero.png") center 42% / cover;
  filter: saturate(0.78);
}

.closing-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.closing h2 {
  margin-bottom: 30px;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 98px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.site-footer {
  width: var(--page);
  margin: 0 auto;
  padding: 58px 0 34px;
}

.footer-main {
  display: flex;
  padding-bottom: 48px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.footer-note {
  max-width: 320px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px 50px;
  color: rgba(244, 245, 240, 0.72);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--paper);
}

.footer-base {
  display: flex;
  padding-top: 24px;
  justify-content: space-between;
  color: rgba(244, 245, 240, 0.4);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages */
.legal-page {
  background:
    radial-gradient(circle at 82% 4%, rgba(36, 71, 96, 0.22), transparent 28rem),
    var(--midnight);
}

.legal-page .site-header {
  position: relative;
}

.legal-layout {
  display: grid;
  width: var(--page);
  margin: 0 auto;
  padding: 96px 0 130px;
  grid-template-columns: 270px minmax(0, 760px);
  gap: 100px;
  justify-content: center;
}

.legal-aside {
  position: sticky;
  top: 40px;
  align-self: start;
}

.legal-aside .eyebrow {
  margin-bottom: 14px;
}

.legal-aside p {
  color: var(--muted);
  font-size: 13px;
}

.legal-aside nav {
  display: flex;
  margin-top: 38px;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.legal-aside nav a {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: rgba(244, 245, 240, 0.55);
}

.legal-aside nav a:hover {
  color: var(--sea-glass);
}

.legal-document h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 7vw, 92px);
}

.legal-date {
  margin-bottom: 64px;
  color: var(--sea-glass);
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-intro {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  color: rgba(244, 245, 240, 0.78);
  font-size: 18px;
}

.legal-section {
  padding: 42px 0 12px;
  scroll-margin-top: 30px;
}

.legal-section h2 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 30px 0 12px;
  font-size: 17px;
  font-weight: 650;
}

.legal-section p,
.legal-section li {
  color: rgba(244, 245, 240, 0.65);
}

.legal-section ul,
.legal-section ol {
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 10px;
}

.legal-section a,
.legal-intro a {
  color: var(--sea-glass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  :root {
    --page: min(100% - 36px, 760px);
  }

  .hero {
    min-height: 900px;
    padding-right: 18px;
    padding-left: 18px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art {
    right: -22%;
    width: 82%;
    opacity: 0.68;
  }

  .section-head,
  .studio-stage {
    grid-template-columns: 1fr;
  }

  .section-lede {
    margin-left: 0;
  }

  .studio-stage {
    padding: 58px 44px;
    gap: 64px;
  }

  .stage-copy {
    order: -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-aside {
    position: static;
  }

  .legal-aside nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 72px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 62px;
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 36px));
    padding: 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 14, 20, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-button[aria-expanded="true"] span {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"]::before {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"]::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    min-height: 820px;
    padding-top: 138px;
    padding-bottom: 110px;
  }

  h1 {
    font-size: clamp(58px, 19vw, 82px);
  }

  .hero-art {
    right: -68%;
    width: 140%;
  }

  .hero-art::after {
    background: linear-gradient(90deg, var(--midnight) 0%, rgba(11, 14, 20, 0.34) 62%, var(--midnight) 100%);
  }

  .timeline {
    bottom: 34px;
    gap: 10px;
    font-size: 8px;
  }

  .section {
    padding: 92px 0;
  }

  .section-head {
    margin-bottom: 50px;
    gap: 24px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card,
  .process-card + .process-card {
    min-height: auto;
    padding: 28px 0 36px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-meta {
    margin-bottom: 40px;
  }

  .studio-stage {
    width: calc(100% - 20px);
    padding: 46px 24px;
    border-radius: 28px;
  }

  .quiet-section {
    padding: 100px 0;
  }

  .footer-main,
  .footer-base {
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    width: 100%;
  }

  .legal-layout {
    padding-top: 64px;
  }

  .legal-document h1 {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
