:root {
  color-scheme: dark;
  --night: #07090b;
  --night-soft: #0d1113;
  --ink: #111513;
  --paper: #f4f5f1;
  --white: #ffffff;
  --muted: #929b96;
  --line-dark: rgba(255, 255, 255, .16);
  --line-light: #d9ddd8;
  --green: #42e58d;
  --green-dark: #0b6b3d;
  --coral: #ff795f;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--night);
  color: var(--white);
}

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

a {
  color: inherit;
}

img,
svg,
canvas {
  display: block;
}

.hero {
  position: relative;
  height: min(900px, calc(100svh - 48px));
  min-height: 680px;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}

.galaxy {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.galaxy canvas {
  width: 100%;
  height: 100%;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(7, 9, 11, .24);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-grid::before,
.hero-grid::after {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  content: "";
}

.hero-grid::before {
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 1px;
}

.hero-grid::after {
  top: 70%;
  right: 0;
  left: 0;
  height: 1px;
}

.site-header {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 64px));
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-dark);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--white);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 1px solid currentColor;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.brand-mark::before {
  top: 3px;
  bottom: 3px;
  left: 6px;
  width: 1px;
}

.brand-mark::after {
  top: 6px;
  right: 3px;
  left: 3px;
  height: 1px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-header nav a {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--white);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 92px;
}

.hero-kicker,
.micro,
.section-label p,
.process-head > p,
.closing > p {
  margin: 0;
  color: var(--green);
  font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: 112px;
  font-weight: 780;
  line-height: .88;
  letter-spacing: 0;
}

.hero-lower {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: 46px;
}

.hero-lower > p {
  margin: 0;
  font-size: 29px;
  font-weight: 620;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button-primary {
  min-width: 190px;
  background: var(--green);
  color: #031109;
}

.button-primary:hover {
  background: #73f1aa;
}

.button-primary svg:last-child {
  margin-left: auto;
}

.button-quiet {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(7, 9, 11, .58);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button-quiet:hover {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(7, 9, 11, .86);
}

.hero-rail {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(1280px, calc(100% - 64px));
  height: 116px;
  display: grid;
  grid-template-columns: repeat(2, 1fr) 2fr;
  align-items: center;
  margin: 0 auto;
  border-top: 1px solid var(--line-dark);
}

.hero-rail > a {
  min-height: 46px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  padding-right: 22px;
  border-right: 1px solid var(--line-dark);
  text-decoration: none;
  transition: background-color 180ms ease;
}

.hero-rail > a + a {
  padding-left: 22px;
}

.hero-rail > a:hover {
  background: rgba(255, 255, 255, .04);
}

.hero-rail span {
  color: rgba(255, 255, 255, .42);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero-rail strong {
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 650;
}

.hero-rail > p {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero-rail > p i,
.deck-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(66, 229, 141, .12);
}

.reel {
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid #1b2220;
  border-bottom: 1px solid #1b2220;
  background: #0a0e10;
}

.reel-track {
  width: max-content;
  display: flex;
  gap: 16px;
  animation: reel 34s linear infinite;
}

.reel figure {
  width: 310px;
  aspect-ratio: 16 / 9;
  flex: 0 0 310px;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .78;
  filter: saturate(.72);
  transition:
    opacity 200ms ease,
    filter 200ms ease;
}

.reel figure:hover img {
  opacity: 1;
  filter: saturate(1);
}

@keyframes reel {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}

.intro {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: 72px;
  padding: 112px max(32px, calc((100% - 1280px) / 2));
  background: var(--paper);
  color: var(--ink);
}

.section-label {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.section-label span {
  color: #909893;
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.section-label p {
  color: var(--green-dark);
}

.intro-copy h2,
.process-head h2,
.mail-copy h2,
.closing h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: 0;
}

.intro-copy > p {
  width: min(560px, 100%);
  margin: 40px 0 0;
  color: #646d67;
  font-size: 16px;
  line-height: 1.9;
}

.ppt-stage {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  overflow: hidden;
  background: var(--night-soft);
}

.stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 72px max(88px, calc((100vw - 1280px) / 2));
}

.stage-copy h3 {
  margin: 22px 0 44px;
  font-size: 46px;
  font-weight: 690;
  line-height: 1.18;
  letter-spacing: 0;
}

.stage-copy ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.stage-copy li {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.stage-copy li span {
  color: rgba(255, 255, 255, .36);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  color: var(--green);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.text-link:hover {
  color: var(--white);
}

.deck-scene {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-left: 1px solid var(--line-dark);
  background: #13191b;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.deck-scene::before,
.deck-scene::after {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  content: "";
}

.deck-scene::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.deck-scene::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.deck {
  position: absolute;
  width: min(78%, 700px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .42);
  transition: transform 400ms cubic-bezier(.2, .8, .2, 1);
}

.deck-back {
  top: 10%;
  left: 5%;
  transform: translate3d(var(--tilt-x, 0), var(--tilt-y, 0), -100px) rotate(-7deg);
  opacity: .5;
}

.deck-mid {
  top: 23%;
  right: 3%;
  transform: translate3d(var(--tilt-x-rev, 0), var(--tilt-y, 0), -40px) rotate(5deg);
  opacity: .72;
}

.deck-front {
  right: 10%;
  bottom: 13%;
  transform: translate3d(var(--tilt-x, 0), var(--tilt-y-rev, 0), 40px);
}

.deck-status {
  position: absolute;
  right: 9%;
  bottom: 7%;
  left: 9%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(7, 9, 11, .82);
  backdrop-filter: blur(12px);
}

.deck-status span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .64);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.deck-status strong {
  color: var(--green);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.process {
  padding: 116px max(32px, calc((100% - 1280px) / 2)) 128px;
  background: #101513;
}

.section-label.light p {
  color: var(--green);
}

.process-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-top: 72px;
}

.process-head > p {
  padding-bottom: 10px;
  color: rgba(255, 255, 255, .44);
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 96px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.process-line li {
  position: relative;
  min-height: 190px;
  padding: 34px 24px 24px 0;
  border-right: 1px solid var(--line-dark);
}

.process-line li + li {
  padding-left: 24px;
}

.process-line li::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--green);
  background: #101513;
  content: "";
  transform: rotate(45deg);
}

.process-line li + li::before {
  left: 24px;
}

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

.process-line span {
  color: rgba(255, 255, 255, .38);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.process-line strong {
  display: block;
  margin-top: 34px;
  font-size: 24px;
  font-weight: 680;
}

.process-line p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.mail {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr);
  background: var(--coral);
  color: #160b08;
}

.mail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 94px 72px 94px max(32px, calc((100vw - 1280px) / 2));
}

.mail .section-label p,
.mail .section-label span {
  color: rgba(22, 11, 8, .58);
}

.mail-copy h2 {
  margin-top: 64px;
  font-size: 52px;
}

.mail-copy > p {
  max-width: 470px;
  margin: 32px 0 0;
  color: rgba(22, 11, 8, .68);
  font-size: 15px;
  line-height: 1.85;
}

.button-dark {
  width: fit-content;
  min-width: 190px;
  margin-top: 40px;
  background: #17100e;
  color: var(--white);
}

.button-dark:hover {
  background: var(--white);
  color: var(--ink);
}

.button-dark svg:last-child {
  margin-left: auto;
}

.inbox-shell {
  align-self: center;
  width: calc(100% - 72px);
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid rgba(22, 11, 8, .32);
  background: #111513;
  color: var(--white);
  box-shadow: 24px 24px 0 rgba(22, 11, 8, .14);
}

.inbox-top {
  height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-dark);
}

.inbox-top strong {
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.inbox-top svg {
  color: rgba(255, 255, 255, .48);
}

.inbox-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 10px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

.inbox-row:last-child {
  border-bottom: 0;
}

.inbox-row > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
}

.inbox-row strong {
  color: rgba(255, 255, 255, .8);
}

.inbox-row time {
  color: rgba(255, 255, 255, .36);
  font: 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.inbox-row.unread {
  background: #1a2821;
  color: var(--white);
}

.inbox-row.unread > i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(66, 229, 141, .1);
}

.closing {
  position: relative;
  min-height: 580px;
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 88px 28px;
  background: var(--night);
  text-align: center;
  isolation: isolate;
}

.closing-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .42;
  background-image: url("/assets/showcase-city.webp");
  background-position: center;
  background-size: cover;
  filter: grayscale(1) brightness(.22);
}

.closing::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 9, 11, .55);
  content: "";
}

.closing h2 {
  margin: 24px 0 42px;
  font-size: 68px;
}

.closing-mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .64);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.closing-mail:hover {
  color: var(--white);
}

footer {
  min-height: 128px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 28px max(32px, calc((100% - 1280px) / 2));
  border-top: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--ink);
}

.footer-mark {
  color: var(--ink);
}

footer p,
footer > span {
  margin: 0;
  color: #6e7671;
  font-size: 11px;
}

footer > span {
  text-align: right;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(.2, .8, .2, 1),
    transform 700ms cubic-bezier(.2, .8, .2, 1);
}

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

@media (max-width: 980px) {
  .site-header,
  .hero-content,
  .hero-rail {
    width: min(100% - 40px, 1280px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero h1 {
    font-size: 86px;
  }

  .hero-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-rail > p {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-copy {
    max-width: 760px;
  }

  .ppt-stage {
    grid-template-columns: 1fr;
  }

  .stage-copy {
    padding: 88px max(28px, calc((100vw - 760px) / 2));
  }

  .deck-scene {
    min-height: 600px;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

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

  .mail-copy {
    padding: 92px max(28px, calc((100vw - 760px) / 2));
  }

  .inbox-shell {
    width: min(760px, calc(100% - 56px));
    max-width: none;
    margin-bottom: 96px;
  }
}

@media (max-width: 700px) {
  .hero {
    height: calc(100svh - 32px);
    min-height: 620px;
  }

  .site-header,
  .hero-content,
  .hero-rail {
    width: calc(100% - 32px);
  }

  .site-header {
    height: 68px;
  }

  .header-action span {
    display: none;
  }

  .header-action {
    width: 36px;
    height: 36px;
    justify-content: center;
    border: 1px solid var(--line-dark);
    border-radius: 6px;
  }

  .hero-content {
    padding-top: 76px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: 58px;
  }

  .hero-lower {
    display: block;
    margin-top: 34px;
  }

  .hero-lower > p {
    font-size: 23px;
  }

  .hero-actions {
    display: grid;
    justify-content: stretch;
    width: min(100%, 330px);
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }

  .hero-rail {
    height: 80px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-rail > a {
    min-height: 36px;
    display: block;
    padding: 0 10px;
  }

  .hero-rail > a:first-child {
    padding-left: 0;
  }

  .hero-rail > a + a {
    padding-left: 10px;
  }

  .hero-rail span {
    display: block;
    margin-bottom: 6px;
  }

  .hero-rail strong {
    display: block;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reel figure {
    width: 230px;
    flex-basis: 230px;
  }

  .intro {
    gap: 56px;
    padding: 80px 24px 88px;
  }

  .intro-copy h2,
  .process-head h2,
  .mail-copy h2,
  .closing h2 {
    font-size: 40px;
  }

  .intro-copy > p {
    margin-top: 28px;
    font-size: 14px;
  }

  .stage-copy {
    padding: 76px 24px;
  }

  .stage-copy h3 {
    font-size: 35px;
  }

  .deck-scene {
    min-height: 410px;
  }

  .deck {
    width: 78%;
  }

  .deck-back {
    top: 12%;
  }

  .deck-mid {
    top: 25%;
  }

  .deck-front {
    bottom: 18%;
  }

  .deck-status {
    right: 5%;
    bottom: 6%;
    left: 5%;
  }

  .process {
    padding: 82px 24px 92px;
  }

  .process-head {
    display: block;
    margin-top: 54px;
  }

  .process-head > p {
    margin-top: 28px;
  }

  .process-line {
    grid-template-columns: 1fr 1fr;
    margin-top: 64px;
  }

  .process-line li {
    min-height: 160px;
  }

  .process-line li:nth-child(2) {
    border-right: 0;
  }

  .process-line li:nth-child(n+3) {
    border-top: 1px solid var(--line-dark);
  }

  .process-line li:nth-child(3)::before,
  .process-line li:nth-child(4)::before {
    top: -5px;
  }

  .mail-copy {
    padding: 80px 24px;
  }

  .mail-copy h2 {
    margin-top: 54px;
  }

  .inbox-shell {
    width: calc(100% - 32px);
    margin-bottom: 72px;
    box-shadow: 12px 12px 0 rgba(22, 11, 8, .14);
  }

  .inbox-top {
    padding: 0 16px;
  }

  .inbox-row {
    grid-template-columns: 8px 92px minmax(0, 1fr);
    gap: 9px;
    padding: 0 14px;
  }

  .inbox-row time {
    display: none;
  }

  .closing {
    min-height: 500px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 36px 24px;
    text-align: center;
  }

  .footer-mark {
    margin: 0 auto;
  }

  footer > span {
    text-align: center;
  }
}

@media (max-width: 390px) {
  .hero-content {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-lower > p {
    font-size: 21px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .button {
    min-height: 46px;
  }

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

  .process-line li {
    min-height: 130px;
    border-right: 0;
    border-top: 1px solid var(--line-dark);
  }

  .process-line li:first-child {
    border-top: 0;
  }

  .process-line li + li {
    padding-left: 0;
  }

  .process-line li + li::before {
    left: 0;
  }

  .inbox-row {
    grid-template-columns: 8px 78px minmax(0, 1fr);
  }
}

@media (max-height: 690px) and (min-width: 701px) {
  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 82px;
  }

  .hero-lower {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reel-track {
    animation: none;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .deck {
    transition: none;
  }
}
