:root {
  --ink: #151515;
  --muted: #6b6864;
  --paper: #f7f6f2;
  --card: #ffffff;
  --line: rgba(20, 20, 20, 0.08);
  --violet: #5134e8;
  --gold: #e8b640;
  --shadow: 0 28px 90px rgba(28, 25, 20, 0.14);
  --soft-shadow: 0 18px 54px rgba(30, 28, 24, 0.11);
  font-family: "Avenir Next", "Gill Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f2f1ee;
}

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

img {
  display: block;
  width: 100%;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 86px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--violet);
  font-weight: 950;
  font-size: 24px;
}

.rail nav {
  display: flex;
  gap: 24px;
  writing-mode: vertical-rl;
}

.rail-link {
  color: #a3a09b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rail-link.active,
.rail-link:hover {
  color: var(--ink);
}

.rail-foot {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #77736d;
  font-size: 12px;
  font-weight: 850;
}

main {
  padding-left: 86px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 20px);
  overflow: hidden;
  margin: 10px 10px 0;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 42%, rgba(81, 52, 232, 0.055), transparent 35%),
    linear-gradient(180deg, #fbfbfa 0%, #f7f6f3 100%);
  box-shadow: 0 18px 60px rgba(22, 18, 12, 0.08);
}

.hero-topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 34px 34px 0 0;
  background: #121212;
  color: white;
  font-size: 14px;
  font-weight: 760;
}

.pill {
  border-radius: 9px;
  background: var(--violet);
  padding: 3px 9px;
  font-size: 12px;
}

.hero-center {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 5;
  width: min(780px, calc(100% - 44px));
  transform: translate(-50%, -42%);
  text-align: center;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: #8b8781;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--violet);
  font-size: clamp(58px, 8.7vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.search-bar {
  display: flex;
  width: min(520px, 56vw);
  align-items: center;
  justify-content: space-between;
  margin: 24px auto 0;
  padding: 6px 8px 6px 24px;
  border: 3px solid rgba(21, 21, 21, 0.045);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 44px rgba(28, 25, 20, 0.1);
  color: #6d6a66;
  font-size: 17px;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.search-bar b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: white;
  font-size: 22px;
}

.float-card {
  position: absolute;
  z-index: 3;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: drift 8s ease-in-out infinite;
}

.float-card:hover {
  box-shadow: 0 36px 104px rgba(28, 25, 20, 0.2);
}

.product-card {
  width: 220px;
  overflow: hidden;
  padding: 13px;
}

.product-card img {
  height: 132px;
  object-fit: cover;
  border-radius: 20px;
}

.product-card div {
  padding: 12px 4px 3px;
}

.product-card strong,
.object-card strong,
.text-badge strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.product-card span,
.text-badge span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.object-card {
  width: 156px;
  overflow: hidden;
  padding: 11px;
  text-align: center;
}

.object-card img {
  height: 190px;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
}

.object-card strong {
  margin-top: 11px;
}

.image-tile {
  width: 198px;
  overflow: hidden;
  padding: 0;
}

.image-tile img {
  height: 126px;
  object-fit: cover;
}

.image-tile div {
  padding: 10px 13px 12px;
}

.image-tile strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.image-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.card-life {
  width: 320px;
}

.card-life img {
  height: 230px;
  object-position: center 45%;
}

.card-snow {
  width: 212px;
}

.card-snow img {
  height: 128px;
  object-position: center;
}

.text-badge {
  width: 204px;
  padding: 18px 21px;
}

.card-squash {
  top: 15%;
  left: 6%;
}

.card-music {
  top: 8%;
  right: 35%;
  animation-delay: -2s;
}

.card-slush {
  top: 12%;
  right: 8%;
  animation-delay: -3.2s;
}

.card-life {
  bottom: 4%;
  left: 8.5%;
  animation-delay: -1.4s;
}

.card-snow {
  top: 13%;
  left: 29%;
  animation-delay: -0.9s;
}

.card-mwc {
  bottom: 3%;
  left: 36.5%;
  animation-delay: -3.8s;
}

.card-robotex {
  right: 30%;
  bottom: 4%;
  animation-delay: -1.8s;
}

.card-slush23 {
  right: 8%;
  bottom: 33%;
  animation-delay: -2.2s;
}

.card-ai {
  right: 8%;
  bottom: 4%;
  animation-delay: -4s;
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -13px;
  }
}

.intro {
  padding: 100px max(8vw, 32px);
  text-align: center;
}

.intro p {
  max-width: 1020px;
  margin: 0 auto;
  font-size: clamp(30px, 5vw, 70px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.anchor-section {
  display: grid;
  min-height: 86vh;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  margin: 10px;
  padding: max(7vw, 48px);
  border-radius: 34px;
  background: white;
}

.anchor-section.warm {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 205, 93, 0.24), transparent 36%),
    #24140f;
  color: white;
}

.anchor-section.cool {
  background:
    radial-gradient(circle at 20% 0%, rgba(150, 182, 89, 0.24), transparent 30%),
    #eff3ea;
}

.anchor-section.dark {
  grid-template-columns: 0.62fr 1.38fr;
  background:
    radial-gradient(circle at 82% 20%, rgba(81, 52, 232, 0.35), transparent 34%),
    #111111;
  color: white;
}

.section-copy {
  max-width: 560px;
}

.index {
  color: var(--violet);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.warm .index,
.dark .index {
  color: #f7c764;
}

h2 {
  margin: 12px 0 22px;
  font-size: clamp(42px, 7vw, 90px);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.section-copy p {
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.75;
}

.gallery.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gallery.two-up img {
  height: clamp(230px, 33vw, 400px);
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.gallery.two-up img:first-child {
  grid-column: 1 / -1;
}

.music-panel {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
  backdrop-filter: blur(14px);
}

.music-panel img {
  max-height: 620px;
  border-radius: 24px;
  object-fit: cover;
  object-position: top;
}

.music-panel strong {
  font-size: clamp(32px, 4vw, 62px);
  letter-spacing: -0.06em;
}

.music-panel p,
.music-panel li {
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.7;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.link-row a,
.button,
.closing a {
  display: inline-flex;
  border-radius: 999px;
  background: var(--violet);
  padding: 12px 18px;
  color: white;
  font-weight: 800;
}

.quote-card {
  display: grid;
  min-height: 360px;
  place-items: center;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(81, 52, 232, 0.12), rgba(240, 160, 40, 0.14)),
    white;
  box-shadow: var(--shadow);
}

.quote-card p {
  max-width: 650px;
  padding: 42px;
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.08em;
}

.life-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr;
  gap: 18px;
}

.life-gallery img {
  height: 250px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--soft-shadow);
}

.life-gallery img.face-focus {
  height: 300px;
  object-position: 70% 52%;
}

.life-gallery img.portrait-fit {
  height: 300px;
  object-fit: cover;
  object-position: 34% 50%;
  background: transparent;
  padding: 0;
  border-radius: 30px;
}

.life-gallery img:first-child {
  grid-row: span 2;
  height: 518px;
  object-position: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.metric-grid article {
  min-height: 260px;
  border-radius: 30px;
  background: white;
  padding: 26px;
  box-shadow: var(--shadow);
}

.metric-grid strong {
  display: block;
  margin-bottom: 18px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.metric-grid span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.quest-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
  margin-top: -18px;
}

.quest-gallery img {
  height: 260px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--soft-shadow);
}

.quest-gallery img:first-child {
  object-position: center;
}

.timeline {
  display: grid;
  gap: 18px;
}

.volunteer-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-auto-rows: 154px;
  gap: 14px;
}

.volunteer-strip img {
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  opacity: 0.96;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.volunteer-strip img:first-child {
  grid-row: span 2;
}

.volunteer-strip img:nth-child(6) {
  grid-column: span 2;
}

.timeline article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  padding: 22px;
}

.timeline span {
  color: #f7c764;
  font-size: 13px;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin: 8px 0;
  font-size: 20px;
}

.timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.phone-shot {
  justify-self: center;
  width: min(420px, 100%);
  overflow: hidden;
  border: 14px solid #111;
  border-radius: 46px;
  background: #111;
  box-shadow: var(--shadow);
}

.phone-shot img {
  max-height: 760px;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
}

.closing {
  min-height: 70vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 80px 28px;
  text-align: center;
}

.closing p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.closing h2 {
  max-width: 960px;
  margin: 0;
}

@media (max-width: 1180px) {
  .hero {
    min-height: auto;
    padding: 96px 20px 28px;
  }

  .hero-center {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    padding: 40px 0;
  }

  .float-card {
    position: relative;
    inset: auto;
  }

  .hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .hero-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .product-card,
  .object-card,
  .image-tile,
  .text-badge,
  .logo-card {
    width: 100%;
  }

  .image-tile img,
  .product-card img {
    height: 170px;
  }

  .anchor-section,
  .anchor-section.dark {
    grid-template-columns: 1fr;
  }

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

  .quest-gallery {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .life-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .life-gallery img:first-child {
    grid-row: auto;
    height: 250px;
  }
}

@media (max-width: 760px) {
  .rail {
    display: none;
  }

  main {
    padding-left: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    margin: 0;
    border-radius: 0 0 30px 30px;
  }

  .hero-topbar {
    border-radius: 0;
    font-size: 12px;
  }

  .search-bar {
    padding-left: 22px;
    font-size: 15px;
  }

  h1 {
    font-size: clamp(58px, 19vw, 96px);
  }

  .anchor-section {
    margin: 8px;
    padding: 38px 22px;
  }

  .music-panel {
    grid-template-columns: 1fr;
  }

  .volunteer-strip {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .volunteer-strip img:first-child,
  .volunteer-strip img:nth-child(6) {
    grid-row: auto;
    grid-column: auto;
  }

  .life-gallery,
  .gallery.two-up {
    grid-template-columns: 1fr;
  }

  .gallery.two-up img:first-child {
    grid-column: auto;
  }

  .quest-gallery img {
    height: 230px;
  }
}
