:root {
  color-scheme: dark;
  --ink: #080c12;
  --depth: #070d14;
  --bone: #e9edf2;
  --muted: #a8b4c4;
  --accent: #9bc8fb;
  --quiet: #8999ab;
  --line: #384858;
  --page-gutter: clamp(24px, 5.2vw, 96px);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-synthesis: none;
  background: var(--ink);
  color: var(--bone);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button:not(:disabled),
select {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
:focus-visible {
  outline: 2px solid var(--focus-color, var(--accent));
  outline-offset: 6px;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--bone);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}

.art-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.story {
  position: relative;
  isolation: isolate;
  z-index: 1;
  display: grid;
  grid-template: repeat(3, auto) / minmax(0, 1fr);
}
.story::before,
.story::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: clamp(150px, 31svh, 360px);
  background: radial-gradient(
    ellipse 48% 50% at 72% 50%,
    #6894ba1b,
    #38567710 42%,
    transparent 95%
  );
  pointer-events: none;
}
.story::before {
  top: 0;
  transform: translateY(-50%);
}
.story::after {
  bottom: 0;
  transform: translateY(50%);
}
.story-stage {
  /* One sticky grid item spans the three chapters. Its painted edges travel with
     the story when entering and leaving instead of clipping a fixed canvas. */
  grid-area: 1 / 1 / -1 / 2;
  align-self: start;
  position: sticky;
  top: 0;
  height: 100svh;
  pointer-events: none;
}
.chapter-assembly {
  grid-area: 1 / 1;
}
.chapter-fulfillment {
  grid-area: 2 / 1;
}
.chapter-repair {
  grid-area: 3 / 1;
}
.world-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--scene-opacity, 1);
}
.world-glow {
  position: absolute;
  inset: 0;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 78%, transparent);
  background:
    radial-gradient(ellipse at 74% 45%, #2c455a55, transparent 55%),
    radial-gradient(ellipse at 85% 90%, #19365432, transparent 48%);
}
#world-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 520ms ease;
}
.world-fallback,
.world-sequence {
  position: absolute;
  top: 50%;
  left: 72%;
  width: min(55vw, calc(85svh * 352 / 272));
  aspect-ratio: 352 / 272;
  transform: translate(-50%, -50%);
  transition: opacity 520ms ease;
}
.world-fallback svg {
  display: block;
  width: 100%;
  height: 100%;
}
.world-sequence {
  /* The first baked pose can paint as soon as it downloads, even before initialization. */
  background-image: var(--world-sequence, none);
  background-size: 500% 500%;
  background-position: var(--sequence-x, 0%) var(--sequence-y, 0%);
  background-repeat: no-repeat;
  mask-image: radial-gradient(ellipse 70% 70% at center, black 84%, transparent 100%);
}
.sequence-ready .world-fallback {
  opacity: 0;
}
.sequence-ready:not(.scene-ready) .world-glow {
  opacity: 0;
}
.scene-ready #world-canvas {
  opacity: 1;
}
.scene-ready .world-fallback,
.scene-ready .world-sequence {
  opacity: 0;
}

.site-header {
  height: 110px;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: absolute;
  z-index: 5;
  isolation: isolate;
  top: 0;
  width: 100%;
}
.site-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto;
  height: clamp(145px, 13vw, 246px);
  background:
    url('media/header-field.webp') center top / max(1120px, 100%) auto no-repeat,
    linear-gradient(to bottom, #070a10c9, transparent 90%);
}
.site-header a {
  text-shadow:
    0 1px 4px #04070c,
    0 0 9px #04070c;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 38px;
  letter-spacing: -2.7px;
  font-weight: 650;
  line-height: 1;
}
.wordmark span {
  color: var(--accent);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  font-size: 14px;
  color: #c4cfdb;
}
.site-header nav a {
  padding: 12px 0;
  transition: color 180ms ease;
}
.site-header nav a:hover,
.header-contact:hover {
  color: var(--accent);
}
.header-contact {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.site-header .header-contact[href='#contact']::after {
  content: '';
  width: 11px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(
    16% 4%,
    100% 4%,
    100% 88%,
    87% 88%,
    87% 27%,
    10% 100%,
    0 89%,
    76% 17%,
    16% 17%
  );
}
.chapter {
  min-height: 110svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 150px var(--page-gutter);
}
.chapter-copy {
  width: 51%;
  max-width: 760px;
  position: relative;
  z-index: 1;
}
h1 {
  font-size: clamp(64px, 7.7vw, 124px);
  line-height: 0.99;
  letter-spacing: -0.068em;
}
.chapter h2 {
  font-size: clamp(50px, 5.3vw, 86px);
  letter-spacing: -0.06em;
  line-height: 1.04;
}
.chapter h2 span {
  color: #a2b6cc;
}
.chapter-copy > p {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  max-width: 430px;
  margin-top: 35px;
  color: #c5cfd9;
}
.chapter-copy > .chapter-detail {
  font-size: 15px;
  line-height: 1.7;
  max-width: 385px;
  color: var(--muted);
  margin-top: 24px;
}
.button {
  border: 0;
  border-radius: 3px;
  min-height: 54px;
  padding: 16px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}
.button span {
  font-size: 23px;
  line-height: 15px;
}
.button-primary {
  background: var(--accent);
  color: var(--ink);
}
.button-primary:hover:not(:disabled) {
  background: #a6caff;
  transform: translateY(-2px);
}
.button-primary:disabled {
  background: #253140;
  color: #aab5c2;
}
.chapter-fulfillment {
  min-height: 120svh;
  padding-top: 210px;
  padding-bottom: 210px;
}
.chapter-repair {
  min-height: 115svh;
}
.chapter-repair .chapter-copy {
  padding-top: 4vh;
}

.data-section {
  position: relative;
  background: var(--depth);
  color: var(--bone);
  padding: clamp(90px, 10vw, 170px) var(--page-gutter) 130px;
}

.partner-section {
  background: radial-gradient(ellipse at 85% 40%, #111d2b, transparent 66%), #0a1018;
  color: var(--bone);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 10vw;
  padding: 135px var(--page-gutter) 145px;
}
.partner-copy h2 {
  font-size: clamp(42px, 4.5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}
.partner-copy p {
  max-width: 405px;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 32px;
  color: var(--muted);
}
.text-link {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #5d7997;
}
.text-link span {
  font-size: 22px;
}
.partner-contexts {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.partner-contexts li {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.25;
  padding: 21px 0;
  letter-spacing: -0.03em;
  color: #c9d6e2;
}
.partner-contexts li:last-child {
  color: var(--quiet);
}
.partner-contexts span {
  margin-left: 16px;
}

.contact-section {
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10vw;
  padding: 145px var(--page-gutter) 115px;
}
.contact-intro h2 {
  font-size: clamp(48px, 4.9vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}
.contact-intro h2 span {
  color: var(--accent);
}
.contact-intro p {
  max-width: 340px;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 32px;
  color: var(--muted);
}
#contact-form {
  padding-top: 6px;
  min-width: 0;
}
#contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
#contact-form label {
  display: block;
  font-size: 12px;
  color: #c0ccda;
  line-height: 1.5;
  margin-bottom: 29px;
}
#contact-form label > span {
  color: var(--quiet);
}
#contact-form input,
#contact-form select,
#contact-form textarea {
  appearance: none;
  width: 100%;
  display: block;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--bone);
  padding: 13px 0;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 3px;
}
#contact-form select {
  padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23a8b4c4' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
#contact-form option {
  background: var(--ink);
}
#contact-form textarea {
  resize: vertical;
  min-height: 115px;
}
#contact-form textarea::placeholder {
  color: var(--quiet);
  font-size: 14px;
}
#contact-form input:focus-visible,
#contact-form select:focus-visible,
#contact-form textarea:focus-visible {
  outline-offset: 4px;
}
.honey-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-privacy {
  font-size: 11px;
  color: var(--quiet);
  line-height: 1.7;
  max-width: 520px;
}
.form-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.verification {
  margin-top: 24px;
}
.verification-widget {
  min-height: 65px;
  /* Turnstile's flexible widget needs 300px; center it within the 320px page minimum. */
  width: max(100%, 300px);
  margin-inline-start: min(0px, calc((100% - 300px) / 2));
}
.verification-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.verification[data-state='failed'] .verification-status,
.verification[data-state='expired'] .verification-status {
  color: #f4b6bf;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 25px;
}
.form-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 18px;
  min-height: 39px;
}
#contact-form[data-state='failed'] .form-status {
  color: #f4b6bf;
}
#contact-form[data-state='succeeded'] .form-status {
  color: #a8d8c8;
}
.retry-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  padding: 8px 0;
  font-size: 12px;
}
.site-footer {
  position: relative;
  background: #06090e;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: 32px;
  border-top: 1px solid #26323f;
  padding: 48px var(--page-gutter) 72px;
}
.site-footer .wordmark {
  justify-self: start;
  align-items: center;
  min-height: 44px;
  font-size: 30px;
}
.footer-address {
  margin: 0;
  padding-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--muted);
  font-size: 13px;
}
.footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--bone);
  text-underline-offset: 4px;
}
.footer-email:hover {
  text-decoration: underline;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 5px;
}
.footer-links a:hover {
  color: var(--bone);
  text-decoration: underline;
}
.motion-toggle {
  position: fixed;
  bottom: 25px;
  right: var(--page-gutter);
  z-index: 10;
  background: #111b26d9;
  color: #c7d3e0;
  border: 1px solid #6d84994f;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.motion-icon {
  width: 11px;
  font-size: 12px;
}
.motion-toggle:hover {
  background: #243343;
}

.privacy-page .site-header {
  position: relative;
}
.privacy-content {
  max-width: 900px;
  padding: 80px var(--page-gutter) 120px;
  margin: 0 auto;
}
.privacy-content h1 {
  font-size: clamp(46px, 6vw, 76px);
  margin-bottom: 55px;
}
.privacy-content h2 {
  font-size: 25px;
  letter-spacing: -0.03em;
  margin: 36px 0 14px;
}
.privacy-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 18px;
}
.privacy-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 1800px) {
  :root {
    --page-gutter: max(96px, calc((100vw - 1650px) / 2));
  }
}

@media (max-width: 1050px) {
  .site-header {
    height: 95px;
  }
  .site-header nav {
    gap: 24px;
  }
  h1 {
    font-size: clamp(66px, 8.4vw, 90px);
  }
  .chapter-copy {
    width: 57%;
  }
  .chapter h2 {
    font-size: clamp(48px, 5.6vw, 64px);
  }
  .partner-section,
  .contact-section {
    gap: 7vw;
  }
  .partner-copy h2 {
    font-size: 46px;
  }
  .contact-intro h2 {
    font-size: 54px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  :root {
    --page-gutter: 25px;
    scroll-padding-top: 28px;
  }
  .site-header {
    height: 85px;
    gap: 20px;
  }
  .wordmark {
    font-size: 33px;
  }
  .site-header nav {
    gap: 22px;
    font-size: 12px;
  }
  .site-header nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .header-contact {
    font-size: 12px;
    gap: 15px;
  }
  .story {
    --story-art-height: clamp(150px, 40svh, 560px);
    display: block;
  }
  .story-stage {
    height: var(--story-art-height);
    z-index: 3;
    background: var(--ink);
  }
  .story-stage::after {
    content: '';
    position: absolute;
    inset: auto 0 -20px;
    height: 20px;
    background: linear-gradient(var(--ink), transparent);
  }
  .chapter {
    min-height: calc(100svh - var(--story-art-height));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(28px, 4svh, 48px) var(--page-gutter);
    scroll-margin-top: var(--story-art-height);
  }
  h1 {
    font-size: clamp(48px, 10.4vw, 73px);
    line-height: 1.04;
    letter-spacing: -0.065em;
  }
  .button {
    min-height: 51px;
    padding: 15px 19px;
    font-size: 13px;
  }
  .world-fallback,
  .world-sequence {
    left: 50%;
    width: min(100%, calc(var(--story-art-height) * 352 / 272));
  }
  .world-glow {
    background: radial-gradient(ellipse at 50% 54%, #2c455a4a, transparent 67%);
  }
  .chapter-copy {
    width: 100%;
    max-width: 660px;
  }
  .chapter h2 {
    font-size: clamp(40px, 8.9vw, 60px);
  }
  .chapter-copy > p {
    font-size: 16px;
    max-width: 430px;
    margin-top: 27px;
  }
  .chapter-copy > .chapter-detail {
    font-size: 14px;
    max-width: 400px;
    margin-top: 18px;
  }
  .chapter-repair .chapter-copy {
    padding-top: 0;
  }
  .data-section {
    padding-top: 85px;
    padding-bottom: 65px;
  }
  .partner-section {
    grid-template-columns: 1fr;
    padding-top: 85px;
    padding-bottom: 80px;
    gap: 40px;
  }
  .partner-copy h2 {
    font-size: clamp(40px, 9.6vw, 61px);
  }
  .partner-copy p {
    font-size: 15px;
  }
  .partner-contexts {
    margin-top: 0;
  }
  .partner-contexts li {
    font-size: 23px;
    padding: 14px 0;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 85px;
    padding-bottom: 50px;
  }
  .contact-intro h2 {
    font-size: clamp(50px, 12vw, 70px);
  }
  .contact-intro p {
    font-size: 15px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .form-privacy {
    font-size: 11px;
  }
  .site-footer {
    gap: 24px;
    padding-top: 36px;
  }
  .motion-toggle {
    right: 18px;
    bottom: 18px;
    padding: 11px;
  }
  .motion-label {
    display: none;
  }
  .privacy-content {
    padding-top: 45px;
    padding-bottom: 70px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-address {
    padding-top: 0;
  }
  .site-header nav a:not(:first-child) {
    display: none;
  }
}

@media (max-width: 380px) {
  :root {
    --page-gutter: 20px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  h1 {
    font-size: 46px;
  }
}

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