:root {
  --ink: #161616;
  --paper: #f0ebd8;
  --mint: #a7ced1;
  --sand: #e4dbb2;
  --pink: #ebc7e6;
  --card: #fdfdfb;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

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

.intro-title {
  font-family: "Literata", serif;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0.45rem 1rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
  max-width: none;
  width: fit-content;
  margin: 0;
  display: inline-block;
}

.cv-nav {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
}

.cv-nav__inner {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.nav-links a {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fff;
}

.nav-links a.nav-download {
  font-weight: 700;
  box-shadow: 4px 4px 0 #000;
}

.lang-toggle {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: #161616;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 3rem;
  position: relative;
}

.stage__inner {
  width: min(1040px, calc(100% - 3rem));
  margin: 0 auto;
}

.stage--hero {
  background: var(--paper);
}

.stage--mint {
  background: var(--mint);
}

.stage--sand {
  background: var(--sand);
}

.stage--pink {
  background: var(--pink);
}

.stage--paper {
  background: #f8f4e6;
}

.stage--contact {
  background: #fff;
}

.wave-container {
  position: absolute;
  top: calc(100vh - 88px);
  left: 0;
  right: 0;
  height: 88px;
  overflow: hidden;
  pointer-events: none;
}

.hero-stage {
  overflow: hidden;
  padding-bottom: 6rem;
}

.hero-stage__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-headline {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-line;
  font-size: clamp(1.9rem, 3.9vw, 3rem);
  line-height: 1.02;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-cta {
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  max-width: none;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  width: min(470px, 42vw);
  margin: 0.45rem auto 0.9rem;
  pointer-events: none;
}

.hero-graphic {
  position: relative;
  width: 100%;
  opacity: 0.86;
  pointer-events: none;
}

#hero-lottie {
  width: 100%;
  height: 320px;
}

#hero-bomb {
  position: absolute;
  right: -26px;
  top: -18px;
  width: 92px;
  height: 92px;
  pointer-events: none;
}

.hero-wave-container {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 88px;
  overflow: hidden;
  z-index: 2;
}

.hero-wave-track {
  display: flex;
  width: 200%;
  animation: wave-move 16s linear infinite;
}

.hero-wave-track img {
  width: 50%;
  object-fit: cover;
}

.wave-track {
  display: flex;
  width: 200%;
  animation: wave-move 18s linear infinite;
}

.wave-track img {
  width: 50%;
  object-fit: cover;
}

@keyframes wave-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.eyebrow {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  background: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-family: "Literata", serif;
  font-size: clamp(1.9rem, 4.3vw, 3.35rem);
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1rem;
  max-width: 64ch;
  text-align: center;
}

.hero-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.hero-tags span {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: #fff;
  font-weight: 600;
}

.float-shape {
  position: absolute;
  border: 2px solid var(--ink);
  opacity: 0.24;
  z-index: 0;
  box-shadow: 4px 4px 0 #000;
  pointer-events: none;
  filter: saturate(80%);
  display: none;
}

.float-shape--pill {
  width: 86px;
  height: 24px;
  border-radius: 999px;
  background: #ffbcbc;
}

.float-shape--circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #ddffbc;
}

.float-shape--diamond {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  transform: rotate(45deg);
  background: #dfeaf5;
}

.section-title {
  font-family: "Literata", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.story-card {
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 6px 6px 0 #000;
  padding: 1.2rem;
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.story-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.logo-box {
  width: 72px;
  height: 72px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}

.logo-box img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.story-head h3 {
  font-size: 1.16rem;
  line-height: 1.22;
}

.story-head p {
  color: #454545;
  margin-top: 0.18rem;
}

.story-points {
  display: grid;
  gap: 0.8rem;
}

.point {
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  padding: 0.8rem;
}

.point h4 {
  font-size: 0.98rem;
  margin-bottom: 0.28rem;
}

.point p {
  color: #333;
}

.contact-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.primary-button,
.chip {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
}

.primary-button {
  box-shadow: 5px 5px 0 #000;
}

.chip {
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
}

.side-toc {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: grid;
  gap: 8px;
  padding: 8px 6px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.side-toc__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: #fff;
  display: block;
  transition: all 0.2s ease;
}

.side-toc__dot:hover,
.side-toc__dot.is-active {
  background: var(--ink);
  transform: scale(1.2);
}

.logo-marquee-wrap {
  position: relative;
  z-index: 4;
  background: transparent;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.logo-marquee {
  overflow: hidden;
  padding: 0.6rem 0;
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  gap: 2.3rem;
  animation: logo-move 30s linear infinite;
  align-items: center;
}

.logo-marquee__track img {
  height: 38px;
  width: auto;
  object-fit: contain;
  background: transparent !important;
  mix-blend-mode: normal;
}

.logo-marquee__track img.logo--boost {
  height: 48px;
}

.logo-marquee__track img.logo--industrial {
  height: 54px;
}

.logo-marquee__track img.logo--spdb {
  height: 54px;
}

.logo-marquee__track img.logo--hku {
  height: 58px;
}

.logo-marquee__track img.logo--shu {
  height: 48px;
}

@keyframes logo-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .nav-links {
    gap: 0.5rem;
  }

  .story-head {
    grid-template-columns: 60px 1fr;
  }

  .logo-box {
    width: 60px;
    height: 60px;
  }

  .point p {
    font-size: 0.94rem;
  }

  .nav-links a {
    display: none;
  }

  .side-toc {
    display: none;
  }

  .hero-graphic {
    display: block;
  }

  #hero-bomb {
    right: -18px;
    top: -12px;
    width: 68px;
    height: 68px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-lead {
    white-space: normal;
    max-width: 88vw;
  }

  .hero-visual {
    width: min(360px, 78vw);
  }

  #hero-lottie {
    height: 260px;
  }
}
