:root {
  color-scheme: light;
  --paper: #f8f3f2;
  --paper-rgb: 248, 243, 242;
  --ink: #353338;
  --muted: #8c8789;
  --hairline: #d8d0d0;
  --blue: #315cff;
  --blue-soft: #9db5ff;
  --card: #fffefd;
  --window-shell: #e8e3de;
  --window-edge: #c9c2bb;
  --shadow: rgba(73, 58, 56, 0.15);
  --shade: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171716;
  --paper-rgb: 23, 23, 22;
  --ink: #efede8;
  --muted: #77746f;
  --hairline: #393735;
  --blue: #43ca73;
  --blue-soft: #2f7450;
  --card: #232321;
  --window-shell: #353431;
  --window-edge: #171716;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  transition: background-color 460ms var(--ease), color 460ms var(--ease);
}

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

button {
  color: inherit;
  font: inherit;
}

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

.splash {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: opacity 240ms ease, visibility 240ms;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.splash__mark {
  width: 48px;
  height: 48px;
  animation: mark-breathe 1.6s ease-in-out infinite;
}

@keyframes mark-breathe {
  50% { transform: scale(1.05); filter: brightness(1.12); }
}

.pass-stage {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(49, 92, 255, 0.06), transparent 34%),
    var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms;
  touch-action: none;
}

.pass-stage.is-visible {
  opacity: 1;
  visibility: visible;
}

.pass-stage.is-granted {
  opacity: 0;
  visibility: hidden;
  transition-delay: 520ms;
}

.pass-stage__scanner {
  position: absolute;
  z-index: 3;
  left: calc(50% + min(36vw, 155px));
  top: 50%;
  width: 20px;
  height: 208px;
  border-radius: 7px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, #292a2e, #62646a 45%, #242529);
  box-shadow: 0 16px 42px rgba(34, 31, 34, 0.28), inset 1px 0 rgba(255, 255, 255, 0.25);
}

.pass-stage__scanner::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 28px;
  bottom: 12px;
  width: 2px;
  background: #ff5147;
  box-shadow: 0 0 9px #ff5147;
}

.scanner__light {
  position: absolute;
  left: 7px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5147;
  box-shadow: 0 0 8px #ff5147;
}

.scanner__label {
  position: absolute;
  left: 4px;
  bottom: -28px;
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.boarding-pass {
  --ticket-x: 0px;
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: flex;
  width: min(330px, 82vw);
  height: 176px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 18px 44px rgba(45, 39, 45, .2);
  transform: translate(calc(-50% + var(--ticket-x)), -50%) rotate(-4deg);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow 200ms ease;
}

.boarding-pass::before,
.boarding-pass::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 69px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
}

.boarding-pass::before { top: -9px; }
.boarding-pass::after { bottom: -9px; }

.boarding-pass.is-dragging {
  cursor: grabbing;
  box-shadow: 0 24px 58px rgba(45, 39, 45, .28);
  transition: none;
}

.boarding-pass.is-granted {
  animation: ticket-through 680ms var(--ease) forwards;
}

@keyframes ticket-through {
  42% { transform: translate(calc(-50% + 132px), -50%) rotate(0deg); }
  100% { transform: translate(calc(-50% + 520px), -50%) rotate(4deg); opacity: 0; }
}

.boarding-pass__stub {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 78px;
  overflow: hidden;
  border-right: 1px dashed #c9c4c1;
  border-radius: 9px 0 0 9px;
  background: #315cff;
  color: white;
}

.boarding-pass__vertical {
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  transform: rotate(-90deg);
  white-space: nowrap;
}

.boarding-pass__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px 18px 14px;
  text-align: left;
  color: #26262b;
}

.boarding-pass__eyebrow {
  color: #868188;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .2em;
}

.boarding-pass__route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 15px 0 18px;
  font: 700 clamp(24px, 7vw, 32px)/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -.05em;
}

.boarding-pass__route svg {
  width: 100%;
  min-width: 34px;
  fill: none;
  stroke: #315cff;
  stroke-width: 1.5;
}

.boarding-pass__meta {
  display: grid;
  grid-template-columns: 1.7fr .7fr .6fr;
  gap: 10px;
  font: 700 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  white-space: nowrap;
}

.boarding-pass__meta small {
  display: block;
  margin-bottom: 4px;
  color: #aaa4a9;
  font-size: 6px;
  letter-spacing: .16em;
}

.boarding-pass__barcode {
  height: 18px;
  margin-top: auto;
  opacity: .5;
  background: repeating-linear-gradient(90deg, #222 0 1px, transparent 1px 3px, #222 3px 5px, transparent 5px 7px);
}

.pass-stage__hint {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 132px);
  margin: 0;
  color: var(--muted);
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  text-align: center;
  animation: hint-pulse 1.8s ease-in-out infinite;
}

@keyframes hint-pulse { 50% { opacity: .42; transform: translateX(4px); } }

.pass-stage__skip {
  position: absolute;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  white-space: nowrap;
  width: max-content;
  cursor: pointer;
}

.pass-stage__flash {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background: #eefff4;
  opacity: 0;
}

.pass-stage.is-granted .pass-stage__flash {
  animation: grant-flash 500ms ease-out;
}

.pass-stage.is-granted .scanner__light,
.pass-stage.is-granted .pass-stage__scanner::after {
  background: #49e27e;
  box-shadow: 0 0 12px #49e27e;
}

@keyframes grant-flash { 30% { opacity: .62; } 100% { opacity: 0; } }

.folio {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(38px, env(safe-area-inset-top)) 26px max(32px, env(safe-area-inset-bottom));
  opacity: 0;
  transition: opacity 480ms ease;
}

.folio.is-ready {
  opacity: 1;
}

.identity {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 138px;
  padding-left: 38px;
}

.identity::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 12px;
  height: 118px;
  opacity: .72;
  background-image: radial-gradient(circle, var(--hairline) 1.3px, transparent 1.5px);
  background-size: 4px 6px;
}

.identity__meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font: 600 10px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .18em;
  text-align: left;
  text-transform: uppercase;
}

.identity__meta strong {
  color: var(--ink);
  font-weight: 700;
}

.language {
  position: absolute;
  right: -2px;
  top: -3px;
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.language button {
  padding: 4px 1px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.language button[aria-pressed="true"] {
  color: var(--blue);
}

.plane-window {
  position: relative;
  width: 200px;
  height: 300px;
  margin: 6px auto 0;
  isolation: isolate;
  border: 9px solid var(--window-shell);
  border-radius: 46% 46% 45% 45% / 34% 34% 45% 45%;
  background: var(--window-shell);
  box-shadow:
    0 8px 16px var(--shadow),
    inset 0 0 0 2px rgba(255, 255, 255, .42),
    inset 0 0 0 10px var(--window-edge);
  transition: border-color 460ms var(--ease), background-color 460ms var(--ease), box-shadow 460ms var(--ease);
}

.plane-window::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 12px;
  pointer-events: none;
  border: 3px solid rgba(255, 255, 255, .56);
  border-radius: 44% 44% 42% 42% / 32% 32% 43% 43%;
  box-shadow: inset 0 0 12px rgba(67, 58, 55, .24);
}

.plane-window__sky,
.plane-window__shade,
.plane-window__control {
  position: absolute;
  inset: 25px 24px 28px;
  border-radius: 43% 43% 40% 40% / 30% 30% 42% 42%;
}

.plane-window__sky {
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(#66b4f5 0%, #9bd5ff 40%, #e8f6ff 64%, #fff 76%);
  box-shadow: inset 0 2px 9px rgba(19, 52, 86, .26);
  transition: background 460ms var(--ease);
}

:root[data-theme="dark"] .plane-window__sky {
  background: linear-gradient(#090d23 0%, #16265d 58%, #42567d 100%);
}

.cloud {
  position: absolute;
  width: 94px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  filter: blur(5px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { width: 48px; height: 48px; left: 18px; top: -21px; }
.cloud::after { width: 34px; height: 34px; right: 10px; top: -10px; }
.cloud--one { left: -28px; top: 118px; animation: drift 8s ease-in-out infinite alternate; }
.cloud--two { right: -43px; top: 151px; opacity: .74; animation: drift 10s 1s ease-in-out infinite alternate-reverse; }

@keyframes drift { to { transform: translateX(28px); } }

.star {
  position: absolute;
  z-index: 2;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 5px white;
  opacity: 0;
  transition: opacity 300ms ease;
}

:root[data-theme="dark"] .star { opacity: .9; }
.star--one { left: 32px; top: 54px; }
.star--two { left: 96px; top: 84px; }
.star--three { left: 68px; top: 30px; }

.plane-window__shade {
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.plane-window__shade::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, rgba(0, 0, 0, .035) 1px 3px),
    linear-gradient(90deg, #cbc4bc, #ece7df 50%, #bdb6ae);
  box-shadow: inset 0 -7px 9px rgba(47, 39, 34, .24);
  transform: translateY(calc((-100% + 19px) * (1 - var(--shade))));
  transition: transform 720ms var(--ease);
}

.plane-window.is-dragging .plane-window__shade::before {
  transition: none;
}

.plane-window__shade span {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 7px;
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: rgba(72, 65, 61, .45);
  transform: translateX(-50%);
}

.plane-window__control {
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.plane-window__control:active { cursor: grabbing; }

.shade-hint {
  margin: 16px 0 44px;
  color: var(--muted);
  font: 600 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .17em;
  text-align: center;
}

.hero__copy {
  margin: 0 -12px;
  text-align: center;
}

.hero__copy h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.22;
}

.journey {
  position: relative;
  margin-top: 56px;
}

.flight-plan {
  display: grid;
  place-items: center;
  width: 72px;
  margin: 0 0 42px -35px;
  color: var(--blue);
}

.flight-plan span {
  font: 700 6px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .17em;
}

.timeline-shell {
  --timeline-progress: 0;
  position: relative;
}

.timeline-track {
  position: absolute;
  z-index: 0;
  left: 1px;
  top: -42px;
  width: 1px;
  height: calc(100% - 38px);
  pointer-events: none;
}

.timeline-track__base,
.timeline-track__progress {
  position: absolute;
  inset: 0;
  display: block;
  width: 1px;
  transform-origin: top;
}

.timeline-track__base {
  background: var(--hairline);
}

.timeline-track__progress {
  height: calc(var(--timeline-progress) * 100%);
  background: var(--blue);
  box-shadow: 0 0 8px color-mix(in srgb, var(--blue) 24%, transparent);
}

.timeline-plane {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(var(--timeline-progress) * 100%);
  width: 16px;
  height: 20px;
  overflow: visible;
  fill: var(--blue);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--blue) 35%, transparent));
  transform: translate(-50%, -50%) rotate(180deg);
  transition: fill 460ms var(--ease), filter 460ms var(--ease), transform 280ms var(--ease);
}

.timeline-track.is-returning .timeline-plane {
  transform: translate(-50%, -50%) rotate(0deg);
}

.timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 64px;
  margin: 0;
  padding: 0 0 0 29px;
  list-style: none;
}

.timeline__item {
  position: relative;
}

.timeline__dot {
  position: absolute;
  left: -34px;
  top: 8px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 1px var(--hairline);
  transition: border-color 460ms var(--ease), background-color 260ms ease, box-shadow 260ms ease, transform 260ms var(--ease);
}

.timeline__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid var(--blue);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.7);
}

.timeline__dot.is-rippling::after {
  animation: dot-ripple 620ms var(--ease) both;
}

@keyframes dot-ripple {
  0% { opacity: .78; transform: translate(-50%, -50%) scale(.72); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4); }
}

.timeline__dot--current {
  box-shadow: 0 0 0 1px var(--blue-soft);
}

.timeline__dot.is-lit {
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue-soft), 0 0 14px color-mix(in srgb, var(--blue) 42%, transparent);
  transform: scale(1.08);
}

.timeline__year {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font: 600 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}

.timeline__company {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.timeline__logos {
  display: flex;
  align-items: center;
  padding-right: 2px;
}

.timeline__logos .timeline__logo + .timeline__logo {
  margin-left: -7px;
}

.timeline__logos .timeline__logo {
  position: relative;
  box-shadow: 0 0 0 2px var(--paper);
  transition: transform 240ms var(--ease), box-shadow 460ms var(--ease);
}

.timeline__logos .timeline__logo:hover,
.timeline__logos .timeline__logo:focus-visible {
  z-index: 2;
  transform: translateY(-3px) scale(1.06);
}

.timeline__logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.timeline__logo--muted { background: #a7a0a3; }
.timeline__logo--dark { background: #37363a; }
.timeline__logo--ai { background: #7964e8; }

.timeline__logo--100 {
  background: #f1eee8;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.timeline__logo--100 span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: -.08em;
}

.timeline__logo--100::after {
  content: "б";
  position: absolute;
  right: 3px;
  top: 7px;
  font-size: 4px;
  font-weight: 800;
}

.timeline__logo--a {
  overflow: hidden;
  background: #0d0d0b;
  color: #c8a86b;
  font: 400 12px/1 Georgia, serif;
  text-decoration: none;
}

.timeline__logo--a::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #c8a86b;
  border-radius: 50%;
}

.timeline__logo--plane svg {
  width: 11px;
  height: 14px;
  fill: currentColor;
}

.timeline__logo--image {
  overflow: hidden;
  background: #0c0920;
  box-shadow: 0 0 0 1px var(--hairline);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.timeline__logo--image:hover,
.timeline__logo--image:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 14px var(--shadow);
}

.timeline__logo--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline__company strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.timeline__company em {
  color: var(--blue);
  font: normal 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
}

.timeline__body h3 {
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 500;
}

.timeline__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer {
  display: grid;
  gap: 13px;
  margin-top: 70px;
  padding: 24px 0 0;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font: 600 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em;
}

.footer p,
.footer span { margin: 0; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.social-links a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  opacity: .58;
}

.replay {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 700px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    z-index: -1;
    top: 0;
    bottom: 0;
    width: 1px;
    background: color-mix(in srgb, var(--hairline) 50%, transparent);
  }
  body::before { left: calc(50% - 240px); }
  body::after { right: calc(50% - 240px); }
}

@media (max-width: 365px) {
  .folio { padding-inline: 21px; }
  .identity__meta { letter-spacing: .15em; }
  .language { right: -3px; }
  .boarding-pass__stub { flex-basis: 64px; }
  .boarding-pass::before,
  .boarding-pass::after { left: 55px; }
  .boarding-pass__main { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
