:root {
  --paper: #F0F0E4;
  --paper-deep: #E4DEC8;
  --ink: #004884;
  --ink-soft: rgba(0, 72, 132, 0.65);
  --ink-faint: rgba(0, 72, 132, 0.2);
  --rust: #F0843C;
  --rust-deep: #D96B27;
  --cream: #F7F3EA;
  --blue: #0078D8;
  --gold: #F0B448;
  --sky: #54B4FC;
}

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

html {
  background: var(--paper);
  overflow-x: clip;
  max-width: 100%;
}

html,
body {
  min-height: 100%;
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  background: var(--paper);
}

.paper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 8% 0%, rgba(255, 248, 230, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(240, 132, 60, 0.08) 0%, transparent 50%);
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

.top,
.sheet,
.reel-stage,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.15rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--ink-faint);
}

.studio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chobo-mark {
  display: block;
  height: 2.15rem;
  width: auto;
}

.reach {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.4rem 1.15rem;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--cream);
  background: var(--rust);
  border: 0;
  border-radius: 2px;
  flex: 0 0 auto;
  transition: background-color 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--rust-deep);
}

.cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.cta.is-quiet {
  background: var(--ink);
}

.cta.is-static {
  cursor: default;
  pointer-events: none;
  background: var(--rust);
  color: var(--cream);
  letter-spacing: 0.06em;
}

.soon {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
  pointer-events: none;
}

.soon.is-revealed,
.soon:target {
  opacity: 1;
  transform: none;
}

.sheet {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: clamp(1.75rem, 7vh, 5rem) clamp(1.15rem, 4vw, 3.5rem) clamp(1.35rem, 3.5vh, 2.5rem);
  min-width: 0;
}

.craft {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 6.5rem;
  width: 100%;
  max-width: 76rem;
  margin: 0 0 clamp(1.1rem, 3vh, 2.4rem);
}

.orbiter {
  display: block;
  width: auto;
  height: auto;
  max-width: min(16.5rem, 58%);
  max-height: min(14rem, 52%);
  object-fit: contain;
  object-position: left center;
  animation: settle 2.6s ease-out both;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem 2.75rem;
  width: 100%;
  max-width: 76rem;
  min-width: 0;
}

.wordmark {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-weight: 800;
  font-size: clamp(3.15rem, 12.2vw, 8.25rem);
  line-height: 0.84;
  letter-spacing: -0.05em;
  color: var(--blue);
  min-width: 0;
}

.wordmark span {
  display: block;
}

.lede {
  max-width: 22ch;
}

.job {
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}

.services {
  margin-top: 0.55rem;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.job::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  margin-bottom: 0.7rem;
  background: var(--rust);
}

.reel-stage {
  position: relative;
  overflow: visible;
}

.reel {
  position: relative;
  margin: 0;
  height: clamp(7.25rem, 18vh, 11.25rem);
  background: var(--paper-deep);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  overflow: hidden;
}

.wave {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-body {
  fill: var(--ink);
}

.wave-base {
  stroke: var(--rust);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.reel-label {
  position: absolute;
  top: 0.65rem;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 2;
}

.reel-label.start {
  left: clamp(1.15rem, 4vw, 3.5rem);
  max-width: calc(100% - 8rem);
  letter-spacing: 0.1em;
}

.reel-label.end {
  right: clamp(1.15rem, 4vw, 3.5rem);
}

.shuttle {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
  transform: translateX(6%);
  will-change: transform;
  pointer-events: none;
}

.shuttle.is-hauling {
  animation: haul 10s cubic-bezier(0.42, 0, 0.18, 1) 1 forwards;
}

.shuttle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--rust);
  transform: translateX(-50%);
}

.shuttle svg {
  position: relative;
  display: block;
  width: 2.15rem;
  height: 1rem;
  fill: var(--rust);
}

.foot {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.15rem clamp(1.15rem, 4vw, 3.5rem) calc(1.4rem + env(safe-area-inset-bottom));
}

.wordmark-lockup {
  display: block;
  height: auto;
  width: auto;
  max-height: 1.7rem;
  max-width: min(12rem, 72vw);
  mix-blend-mode: screen;
}

.legal {
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.quiet {
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
}

.mail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.mail .at {
  font-family: "Newsreader", "Iowan Old Style", Palatino, serif;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--rust);
}

.mail .sep {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-0.08em);
}

@media (min-width: 860px) {
  .mast {
    grid-template-columns: minmax(0, auto) minmax(12rem, 1fr);
    align-items: end;
  }

  .wordmark {
    font-size: clamp(5.5rem, 9.4vw, 8.25rem);
  }

  .job {
    justify-self: start;
    padding-bottom: 0.45rem;
  }
}

@media (max-width: 859px) {
  .wordmark {
    font-size: clamp(3.05rem, 17.6vw, 5.4rem);
  }

  .orbiter {
    max-width: min(8.25rem, 46vw);
    max-height: 7rem;
  }

  .wordmark-lockup {
    max-height: 1.2rem;
    width: min(9.5rem, 68vw);
    max-width: 68vw;
  }

  .legal {
    letter-spacing: 0.05em;
    font-size: 0.5625rem;
    max-width: 90vw;
    line-height: 1.35;
  }

  .foot {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    text-align: center;
  }

  .quiet {
    text-align: center;
  }

  .mail {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.6875rem;
    gap: 0.4rem;
    max-width: 100%;
  }

  .mail .sep {
    width: 0.28rem;
    height: 0.28rem;
    flex: 0 0 auto;
  }

  .pad {
    position: absolute;
    top: 50%;
    right: 0.15rem;
    width: 40px;
    max-width: 40px;
    height: 40px;
  }

  .liftoff {
    width: 40px;
    max-width: 40px;
  }
}

@media (max-width: 420px) {
  .reach {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
  }

  .soon {
    font-size: 0.8125rem;
  }

  .soon:not(.is-revealed):not(:target) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shuttle {
    animation: none;
    left: 42%;
  }

  .pad,
  .pad.is-launch,
  .pad.is-return,
  .pad.is-below {
    animation: none;
  }

  .orbiter {
    animation: none;
  }

  .cta,
  .soon {
    transition: none;
  }
}

.pad {
  position: fixed;
  right: clamp(0.35rem, 2.4vw, 1.8rem);
  top: var(--park-top, 72vh);
  width: 48px;
  max-width: 48px;
  height: 48px;
  transform: translateY(-46%);
  z-index: 8;
  pointer-events: none;
  overflow: visible;
}

.liftoff {
  display: block;
  width: 48px;
  max-width: 48px;
  height: auto;
  transform: rotate(-48deg);
  filter: drop-shadow(0 8px 10px rgba(0, 72, 132, 0.18));
}

.pad.is-below {
  transform: translateY(110vh);
  animation: none;
}

.pad.is-launch {
  animation: launch 1.15s cubic-bezier(0.22, 0.82, 0.2, 1) forwards;
}

.pad.is-return {
  animation: rise 1.15s cubic-bezier(0.22, 0.82, 0.2, 1) forwards;
}

@keyframes haul {
  0% { transform: translateX(6%); }
  100% { transform: translateX(calc(100vw - 8.25rem)); }
}

@keyframes launch {
  0% {
    transform: translateY(-46%) rotate(0deg);
  }
  10% {
    transform: translateY(-38%) rotate(-2deg);
  }
  100% {
    transform: translateY(calc(-100vh - 6rem)) rotate(-10deg);
  }
}

@keyframes rise {
  0% {
    transform: translateY(110vh);
  }
  100% {
    transform: translateY(-46%);
  }
}


@media (max-width: 859px) {
  /* mobile pad last */
  .pad {
    position: absolute;
    top: 50%;
    right: 0.15rem;
    width: 40px;
    max-width: 40px;
    height: 40px;
  }
  .liftoff {
    width: 40px;
    max-width: 40px;
  }
}
