@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap");

:root {
  --accent: #bc8cf2;
  --accent-soft: rgba(188, 140, 242, 0.18);
  --ink: #f7f5f2;
  --muted: #dfdfde;
  --subtle: #a8a4aa;
  --black: #050505;
  --panel: #111111;
  --panel-soft: #1b1b1b;
  --line: rgba(247, 245, 242, 0.13);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 14%, rgba(188, 140, 242, 0.13), transparent 28rem),
    linear-gradient(180deg, #050505 0%, #0b0b0b 42%, #050505 100%);
  font-family: "Roboto", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

section {
  padding: 9rem 6%;
}

::selection {
  color: var(--ink);
  background: var(--accent);
}

::-webkit-scrollbar {
  width: 0.8rem;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99rem;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem 6%;
  background: rgba(5, 5, 5, 0);
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.header.sticky {
  padding-block: 1.5rem;
  background: rgba(5, 5, 5, 0.88);
  border-bottom: 0.1rem solid var(--line);
  backdrop-filter: blur(16px);
}

.logo {
  color: var(--accent);
  font-size: 2.4rem;
  font-weight: 900;
  transition: color 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  color: var(--ink);
  transform: translateX(0.4rem);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.navbar a {
  position: relative;
  color: var(--muted);
  font-size: 1.55rem;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a::after {
  position: absolute;
  right: 0;
  bottom: -0.7rem;
  left: 0;
  height: 0.15rem;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.navbar a:hover,
.navbar a.active {
  color: var(--accent);
  transform: translateY(-0.2rem);
}

.navbar a:hover::after,
.navbar a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

#menu-btn {
  display: none;
  width: 4rem;
  height: 4rem;
  color: var(--ink);
  background: transparent;
  border: 0.1rem solid var(--line);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#menu-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(4deg);
}

#menu-btn::before {
  content: "☰";
  font-size: 2.6rem;
  line-height: 1;
}

#menu-btn.is-open::before {
  content: "×";
}

.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 11rem;
}

.section-grid {
  width: 100%;
  max-width: 118rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(30rem, 0.92fr);
  align-items: center;
  gap: 5.5rem;
}

.hero-copy {
  max-width: 70rem;
}

.eyebrow,
.heading p {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 1rem;
  color: var(--ink);
  font-size: clamp(5rem, 8vw, 9.5rem);
  line-height: 0.95;
  font-weight: 900;
  transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease;
}

.hero-copy h1:hover {
  color: var(--accent);
  text-shadow: 0 0 3rem rgba(188, 140, 242, 0.28);
  transform: translateX(0.6rem);
}

.hero-copy h2 {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 500;
}

.lead {
  max-width: 64rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1.8;
}

.principle {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  color: var(--ink);
  background: var(--accent-soft);
  border-left: 0.3rem solid var(--accent);
  font-size: 1.6rem;
  transition: background 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.principle:hover {
  background: rgba(188, 140, 242, 0.28);
  border-color: var(--ink);
  transform: translateX(0.6rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.8rem;
  padding: 0 2.2rem;
  color: var(--black);
  background: var(--accent);
  border: 0.1rem solid var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.btn:hover {
  color: var(--accent);
  background: transparent;
  box-shadow: 0 1.2rem 3rem rgba(188, 140, 242, 0.18);
  transform: translateY(-0.4rem);
}

.text-link {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  word-break: break-all;
  transition: color 0.3s ease, transform 0.3s ease;
}

.text-link:hover {
  color: var(--ink);
  transform: translateX(0.5rem);
}

.portrait-placeholder,
.asset-placeholder {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(188, 140, 242, 0.2), rgba(188, 140, 242, 0.03)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 0.1rem, transparent 0.1rem 1.2rem),
    var(--panel);
  border: 0.1rem solid rgba(188, 140, 242, 0.45);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.portrait-placeholder::after,
.asset-placeholder::after {
  position: absolute;
  inset: 1.2rem;
  content: "";
  border: 0.1rem dashed rgba(247, 245, 242, 0.22);
  pointer-events: none;
  transition: inset 0.4s ease, border-color 0.4s ease;
}

.portrait-placeholder::before,
.asset-placeholder::before {
  position: absolute;
  top: -30%;
  left: -70%;
  width: 45%;
  height: 160%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: rotate(18deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.portrait-placeholder {
  min-height: 56rem;
  border-radius: 50% 50% 48% 48% / 34% 34% 66% 66%;
  animation: portrait-float 6s ease-in-out infinite;
}

.portrait-placeholder:hover,
.asset-card:hover .asset-placeholder {
  border-color: rgba(188, 140, 242, 0.9);
  box-shadow: 0 2rem 5rem rgba(188, 140, 242, 0.16);
  filter: saturate(1.1);
  transform: translateY(-0.8rem) scale(1.015);
}

.portrait-placeholder:hover::before,
.asset-card:hover .asset-placeholder::before {
  left: 130%;
}

.portrait-placeholder:hover::after,
.asset-card:hover .asset-placeholder::after {
  inset: 0.8rem;
  border-color: rgba(247, 245, 242, 0.38);
}

.portrait-placeholder span,
.asset-placeholder {
  font-size: 1.8rem;
  font-weight: 700;
}

.portrait-placeholder img,
.asset-placeholder img,
.asset-placeholder video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.asset-placeholder.tall img,
.asset-placeholder.square img,
.asset-placeholder video {
  object-fit: contain;
  padding: 1.2rem;
}

.portrait-placeholder.has-image,
.asset-placeholder.has-image,
.asset-placeholder.has-video {
  background: #0d0d0d;
}

.portrait-placeholder.has-image::after,
.asset-placeholder.has-image::after,
.asset-placeholder.has-video::after {
  z-index: 2;
}

.portrait-placeholder.has-image::before,
.asset-placeholder.has-image::before,
.asset-placeholder.has-video::before {
  z-index: 3;
}

.portrait-placeholder:hover img,
.asset-card:hover .asset-placeholder img,
.asset-card:hover .asset-placeholder video {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.12);
}

.asset-placeholder.tall:hover img,
.asset-card:hover .asset-placeholder.tall img,
.asset-card:hover .asset-placeholder.square img,
.asset-card:hover .asset-placeholder video {
  transform: scale(1.08);
}

.portrait-placeholder strong,
.portrait-placeholder small {
  max-width: 78%;
  color: var(--subtle);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
}

.heading {
  max-width: 118rem;
  margin: 0 auto 3.8rem;
  text-align: center;
}

.heading h2 {
  margin-top: 0.6rem;
  color: var(--ink);
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  line-height: 1.1;
  transition: color 0.35s ease, transform 0.35s ease;
}

.heading:hover h2 {
  color: var(--accent);
  transform: translateY(-0.3rem);
}

.about-grid,
.now-grid {
  align-items: stretch;
}

.story-panel,
.fact-list,
.project-card,
.tool-group,
.asset-card,
.now-card,
.timeline-item {
  min-width: 0;
  background: rgba(27, 27, 27, 0.88);
  border: 0.1rem solid var(--line);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.story-panel:hover,
.fact-list:hover,
.timeline-item:hover {
  background: rgba(31, 28, 34, 0.96);
  border-color: rgba(188, 140, 242, 0.48);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.24);
  transform: translateY(-0.4rem);
}

.story-panel {
  padding: 3.2rem;
}

.story-panel p,
.now-card p,
.project-card p,
.tool-group p,
.asset-card p,
.timeline-item p {
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1.8;
  transition: color 0.3s ease, transform 0.3s ease;
}

.story-panel p:hover,
.now-card p:hover,
.project-card p:hover,
.tool-group p:hover,
.asset-card p:hover,
.timeline-item p:hover {
  color: var(--ink);
  transform: translateX(0.4rem);
}

.story-panel p + p,
.now-card p + p {
  margin-top: 1.4rem;
}

.fact-list {
  display: grid;
  gap: 1.4rem;
  padding: 2.4rem;
}

.fact-list div {
  padding-bottom: 1.4rem;
  border-bottom: 0.1rem solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.fact-list div:hover {
  border-color: rgba(188, 140, 242, 0.5);
  transform: translateX(0.5rem);
}

.fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.fact-list span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
}

.fact-list strong {
  display: block;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.6;
}

.timeline {
  position: relative;
  max-width: 96rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.1rem;
  width: 0.2rem;
  content: "";
  background: var(--accent);
}

.timeline-item {
  position: relative;
  margin-left: 4.5rem;
  padding: 2.4rem;
}

.timeline-item::before {
  position: absolute;
  top: 2.5rem;
  left: -4.4rem;
  width: 2.2rem;
  height: 2.2rem;
  content: "";
  background: var(--accent);
  border: 0.5rem solid var(--black);
  border-radius: 50%;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.timeline-item:hover::before {
  box-shadow: 0 0 0 0.8rem rgba(188, 140, 242, 0.15);
  transform: scale(1.12);
}

.timeline-item span,
.project-card span {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
}

.timeline-item h3,
.project-card h3,
.tool-group h3,
.asset-card h3,
.now-card h3 {
  margin: 0.8rem 0 1rem;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1.35;
  transition: color 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover h3,
.project-card:hover h3,
.tool-group:hover h3,
.asset-card:hover h3,
.now-card:hover h3 {
  color: var(--accent);
  transform: translateX(0.4rem);
}

.card-grid,
.tool-grid,
.asset-grid {
  max-width: 118rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.project-card,
.tool-group,
.asset-card,
.now-card {
  padding: 2.4rem;
}

.project-card:hover,
.tool-group:hover,
.asset-card:hover,
.now-card:hover {
  border-color: rgba(188, 140, 242, 0.5);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.26);
  transform: translateY(-0.8rem);
}

.project-card:hover span {
  text-shadow: 0 0 2rem rgba(188, 140, 242, 0.65);
}

.tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asset-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.asset-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.asset-card-video {
  grid-column: span 2;
}

.asset-placeholder {
  width: 100%;
  min-height: 20rem;
  margin-bottom: 1.8rem;
  padding: 3rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.asset-placeholder.wide,
.asset-placeholder.video {
  aspect-ratio: 16 / 10;
}

.asset-placeholder.tall {
  aspect-ratio: 9 / 14;
}

.asset-placeholder.square {
  aspect-ratio: 1 / 1;
}

.asset-placeholder.video {
  min-height: 24rem;
}

.now-card.quiet {
  background: rgba(188, 140, 242, 0.08);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.4rem 6%;
  color: var(--subtle);
  background: var(--panel);
  border-top: 0.1rem solid var(--line);
  font-size: 1.45rem;
}

.footer a {
  color: var(--accent);
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(3.2rem);
  transition: opacity 0.75s ease, transform 0.75s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

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

.story-panel.reveal.is-visible:hover,
.fact-list.reveal.is-visible:hover,
.timeline-item.reveal.is-visible:hover {
  transform: translateY(-0.4rem);
}

.project-card.reveal.is-visible:hover,
.tool-group.reveal.is-visible:hover,
.asset-card.reveal.is-visible:hover,
.now-card.reveal.is-visible:hover {
  transform: translateY(-0.8rem);
}

.portrait-placeholder.reveal.is-visible:hover {
  transform: translateY(-0.8rem) scale(1.015);
}

.card-grid .reveal:nth-child(2),
.tool-grid .reveal:nth-child(2),
.asset-grid .reveal:nth-child(2),
.timeline .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.card-grid .reveal:nth-child(3),
.asset-grid .reveal:nth-child(3),
.timeline .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.card-grid .reveal:nth-child(4),
.asset-grid .reveal:nth-child(4),
.timeline .reveal:nth-child(4) {
  transition-delay: 0.2s;
}

.card-grid .reveal:nth-child(5),
.asset-grid .reveal:nth-child(5),
.timeline .reveal:nth-child(5) {
  transition-delay: 0.26s;
}

.card-grid .reveal:nth-child(6),
.asset-grid .reveal:nth-child(6),
.timeline .reveal:nth-child(6) {
  transition-delay: 0.32s;
}

@keyframes portrait-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.4rem);
  }
}

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

  *,
  .reveal {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  html {
    font-size: 58%;
  }

  .section-grid,
  .card-grid,
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  section {
    padding: 7rem 2rem;
  }

  .header {
    padding: 1.5rem 2rem;
  }

  #menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar {
    position: fixed;
    top: 6.8rem;
    right: 2rem;
    left: 2rem;
    display: grid;
    gap: 0;
    padding: 1rem;
    background: rgba(17, 17, 17, 0.96);
    border: 0.1rem solid var(--line);
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
  }

  .navbar.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar a {
    padding: 1.2rem;
    border-bottom: 0.1rem solid var(--line);
  }

  .navbar a:last-child {
    border-bottom: 0;
  }

  .home {
    padding-top: 9rem;
  }

  .section-grid,
  .card-grid,
  .tool-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    min-height: 42rem;
    border-radius: 38% 38% 32% 32% / 24% 24% 45% 45%;
  }

  .asset-card-video {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .hero-copy h1 {
    font-size: 4.8rem;
  }

  .lead,
  .story-panel p,
  .now-card p,
  .project-card p,
  .tool-group p,
  .asset-card p,
  .timeline-item p {
    font-size: 1.55rem;
  }

  .portrait-placeholder {
    min-height: 34rem;
  }
}
