:root {
  color-scheme: dark;
  --start-bg: #04050a;
  --start-ink: #f7f7fb;
  --start-muted: rgba(247, 247, 251, 0.58);
  --start-line: rgba(247, 247, 251, 0.16);
  --start-red: #ff4338;
  --start-width: min(1440px, calc(100vw - 80px));
  --start-radius: 24px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  overflow-x: clip;
  background: var(--start-bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background: var(--start-bg);
  color: var(--start-ink);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

.start-art {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: url("./assets/eazo-world-wide.jpg") 62% 50% / cover no-repeat;
  animation: art-arrive 1.4s cubic-bezier(.2, .7, .2, 1) both;
}

.start-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 10, 0.98) 0%, rgba(4, 5, 10, 0.94) 28%, rgba(4, 5, 10, 0.44) 65%, rgba(4, 5, 10, 0.14) 100%),
    linear-gradient(180deg, rgba(4, 5, 10, 0.38) 0%, rgba(4, 5, 10, 0.02) 48%, rgba(4, 5, 10, 0.88) 100%);
}

.start-grid {
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(40px, calc((100vw - 1440px) / 2));
  z-index: -2;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--start-line) 12%, var(--start-line) 88%, transparent);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--start-red);
  border-radius: 999px;
  color: var(--start-bg);
  font-weight: 900;
  text-decoration: none;
}

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

.start-header,
.start-main,
.start-footer {
  width: var(--start-width);
  margin-inline: auto;
}

.start-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--start-line);
  animation: line-in 0.7s ease-out both;
}

.start-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.start-brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 42px;
  background: var(--start-red);
  border-radius: 12px;
  color: var(--start-bg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.start-brand-copy,
.start-stamp,
.start-kicker,
.start-manifesto,
.portal-index,
.start-footer {
  font-family: "IBM Plex Mono", monospace;
}

.start-brand-copy {
  color: rgba(247, 247, 251, 0.72);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.14em;
}

.start-stamp {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--start-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.start-stamp span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--start-red);
  box-shadow: 0 0 18px rgba(255, 67, 56, 0.9);
}

.start-main {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  align-items: end;
  padding: clamp(64px, 8vh, 112px) 0 28px;
}

.start-hero {
  align-self: center;
  max-width: 780px;
  padding-bottom: clamp(56px, 8vh, 112px);
}

.start-kicker {
  margin: 0 0 18px;
  color: var(--start-red);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  animation: rise-in 0.65s 0.12s ease-out both;
}

.start-hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(64px, 9.6vw, 148px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.start-hero h1 span { animation: rise-in 0.8s cubic-bezier(.2, .7, .2, 1) both; }
.start-hero h1 span:nth-child(2) { animation-delay: 0.08s; }

.start-intro {
  max-width: 520px;
  margin: 30px 0 0;
  color: rgba(247, 247, 251, 0.76);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.8;
  animation: rise-in 0.7s 0.2s ease-out both;
}

.start-manifesto {
  margin: 20px 0 0;
  color: var(--start-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  animation: rise-in 0.7s 0.28s ease-out both;
}

.start-manifesto i {
  padding: 0 6px;
  color: var(--start-red);
  font-style: normal;
}

.portal-links {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
  animation: rise-in 0.8s 0.32s ease-out both;
}

.portal-link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  min-height: 132px;
  padding: 18px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--start-line);
  border-radius: var(--start-radius);
  background: rgba(7, 9, 15, 0.7);
  color: var(--start-ink);
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.portal-link:last-child { border-right: 1px solid var(--start-line); }
.portal-link:hover {
  border-color: rgba(247, 247, 251, 0.3);
  background: rgba(247, 247, 251, 0.09);
  transform: translateY(-3px);
}
.portal-link:active { transform: translateY(0); }

.portal-link.portal-link-primary {
  border-color: rgba(255, 67, 56, 0.68);
  background:
    radial-gradient(circle at 0 0, rgba(255, 67, 56, 0.28), transparent 58%),
    rgba(7, 9, 15, 0.78);
  color: var(--start-ink);
}

.portal-link.portal-link-primary:hover {
  border-color: var(--start-red);
  background:
    radial-gradient(circle at 0 0, rgba(255, 67, 56, 0.38), transparent 62%),
    rgba(12, 13, 19, 0.92);
}

.portal-index {
  grid-column: 1;
  color: currentColor;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.62;
}

.portal-copy {
  grid-column: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.portal-copy b {
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.portal-copy small {
  color: currentColor;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0.58;
}

.portal-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 16px;
  border: 1px solid var(--start-line);
  border-radius: 50%;
  background: rgba(247, 247, 251, 0.06);
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  transition: transform 180ms ease;
}

.portal-link.portal-link-primary .portal-arrow {
  border-color: var(--start-red);
  background: var(--start-red);
  color: var(--start-bg);
}

.portal-link:hover .portal-arrow { transform: translate(3px, -3px); }

.start-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0 max(16px, env(safe-area-inset-bottom));
  color: rgba(247, 247, 251, 0.42);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

a:focus-visible {
  outline: 2px solid var(--start-red);
  outline-offset: 4px;
}

.portal-link-primary:focus-visible { outline-color: var(--start-red); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes line-in {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes art-arrive {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 760px) {
  :root { --start-width: calc(100vw - 32px); }

  body { display: block; }
  body::after { background-size: 34px 34px; }

  .start-art {
    position: absolute;
    height: 76svh;
    background-position: 68% top;
  }

  .start-art::after {
    background:
      linear-gradient(90deg, rgba(4, 5, 10, 0.96) 0%, rgba(4, 5, 10, 0.54) 70%, rgba(4, 5, 10, 0.24) 100%),
      linear-gradient(180deg, rgba(4, 5, 10, 0.18) 0%, rgba(4, 5, 10, 0.45) 50%, #04050a 100%);
  }

  .start-grid { left: 16px; }
  .start-header { padding: 18px 0 14px; }
  .start-brand-mark { width: 56px; height: 38px; }
  .start-brand-copy { display: none; }
  .start-stamp { font-size: 8px; letter-spacing: 0.08em; }

  .start-main {
    display: block;
    padding: clamp(88px, 18vh, 160px) 0 24px;
  }

  .start-hero { padding-bottom: 56px; }
  .start-kicker { margin-bottom: 14px; font-size: 9px; }

  .start-hero h1 {
    font-size: clamp(58px, 20vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  .start-intro {
    max-width: 330px;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.7;
  }

  .start-manifesto { max-width: 300px; line-height: 1.8; }
  .portal-links { grid-template-columns: 1fr; gap: 10px; }

  .portal-link {
    min-height: 112px;
    border: 1px solid var(--start-line);
    border-radius: 20px;
  }

  .portal-link:last-child { border: 1px solid var(--start-line); }
  .portal-copy b { font-size: 20px; }

  .start-footer {
    flex-direction: column;
    gap: 7px;
    padding-top: 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    line-height: 1.5;
  }
}

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