:root {
  --ink: #0f1115;
  --paper: #f7f8fa;
  --white: #fff;
  --blue: #2857ff;
  --coral: #ff5b45;
  --green: #20a36a;
  --yellow: #ffd84a;
  --line: rgba(15, 17, 21, .16);
  --muted: #5e626d;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.scroll-progress {
  position: fixed;
  z-index: 110;
  inset: 0 0 auto;
  height: 3px;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 82px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--white);
  transition: height .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.site-header.scrolled {
  height: 66px;
  color: var(--ink);
  background: rgba(247, 248, 250, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 4px;
  font-size: 16px;
}

.desktop-nav { display: flex; gap: 34px; }
.desktop-nav a { font-size: 14px; opacity: .82; }
.desktop-nav a:hover { opacity: 1; }

.header-contact {
  justify-self: end;
  font-size: 14px;
  font-weight: 700;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

.menu-button {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform .25s ease;
}

.menu-button.open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-button.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  align-content: center;
  gap: 10px;
  padding: 100px 24px 40px;
  background: var(--yellow);
}

.mobile-nav.open { display: grid; }
.mobile-nav a { font-size: clamp(30px, 10vw, 54px); font-weight: 800; line-height: 1.2; }

.hero {
  position: relative;
  min-height: min(820px, 88svh);
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-image, .hero-shade, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 48%; transform: scale(1.01); }
.hero-shade { background: linear-gradient(90deg, rgba(5, 8, 12, .83) 0%, rgba(5, 8, 12, .48) 52%, rgba(5, 8, 12, .12) 100%); }
.hero-grid {
  opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin: 0 max(20px, calc((100vw - var(--max)) / 2));
  padding-bottom: clamp(90px, 12vh, 132px);
}

.eyebrow, .kicker {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--yellow); }

.hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(54px, 9vw, 112px);
  line-height: .95;
  font-weight: 900;
}

.hero-copy {
  max-width: 610px;
  margin: 28px 0 0;
  font-size: clamp(16px, 1.7vw, 20px);
  color: rgba(255,255,255,.83);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 20px;
  border-radius: 4px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--yellow); }
.button-primary:hover { background: #ffe476; }
.button-quiet { color: var(--white); border: 1px solid rgba(255,255,255,.56); }
.button-quiet:hover { background: rgba(255,255,255,.12); }

.hero-meta {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 26px;
  display: flex;
  gap: 22px;
  font-size: 10px;
  font-weight: 700;
  opacity: .72;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--ink);
  background: var(--yellow);
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: ticker 24s linear infinite;
  font-size: 18px;
  font-weight: 900;
}

.ticker-set {
  flex: 0 0 max(100vw, 920px);
  min-width: max(100vw, 920px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 30px;
}

.ticker-set span, .ticker-set i { flex: 0 0 auto; }
.ticker-set i { font-style: normal; font-size: 12px; }

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(90px, 13vw, 160px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  margin-bottom: clamp(54px, 7vw, 90px);
}

.kicker { padding-top: 12px; color: var(--blue); }

.section-heading h2, .ai-intro h2, .contact h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 900;
}

.section-heading h2 span { color: var(--blue); }

.about { padding-bottom: 100px; }
.about-layout { display: grid; grid-template-columns: 1.4fr .85fr; gap: clamp(38px, 7vw, 110px); align-items: start; }
.about-story { padding-left: calc(33.333% + 12px); }
.about-story p { color: var(--muted); font-size: 17px; }
.about-story .lead { margin-top: 0; color: var(--ink); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.35; font-weight: 700; }

.fact-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.fact-row span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--ink); background: var(--white); }

.about-note {
  position: relative;
  min-height: 330px;
  padding: 42px 36px;
  background: var(--coral);
  transform: rotate(1.5deg);
  box-shadow: 10px 14px 0 var(--ink);
}

.note-pin { position: absolute; top: 18px; right: 20px; width: 16px; height: 16px; border: 4px solid var(--ink); border-radius: 50%; }
.hand-label { margin: 0; font-size: 12px; font-weight: 900; }
.note-main { margin: 44px 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; font-weight: 900; }
.note-footer { display: flex; gap: 8px; flex-wrap: wrap; }
.note-footer span { padding: 6px 9px; border: 1px solid rgba(15,17,21,.55); border-radius: 4px; font-size: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div { min-height: 170px; display: flex; flex-direction: column; justify-content: center; padding: 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { font-size: clamp(46px, 6vw, 76px); line-height: 1; }
.stats span { margin-top: 12px; color: var(--muted); }

.journey { border-top: 1px solid var(--line); }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.timeline li {
  min-height: 145px;
  display: grid;
  grid-template-columns: 100px 1.3fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--ink);
  transition: color .25s ease, background .25s ease;
}

.timeline li:hover { color: var(--white); background: var(--blue); }
.timeline li.is-current { background: var(--yellow); }
.timeline li.is-current:hover { color: var(--ink); background: var(--yellow); }
.timeline-number, .timeline-stage { font-size: 12px; font-weight: 900; }
.timeline h3 { margin: 6px 0 0; font-size: clamp(22px, 3vw, 34px); line-height: 1.2; }
.timeline p { margin: 0; }
.timeline > li > p { color: inherit; opacity: .7; }

.interests { border-top: 1px solid var(--line); }
.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.interest-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--ink);
  border-radius: 6px;
}

.interest-card.photo { color: var(--white); background: var(--blue); }
.interest-card.game { background: var(--yellow); }
.interest-card.travel { background: var(--white); }
.interest-index { font-size: 12px; font-weight: 900; }
.interest-icon { align-self: center; font-size: 100px; font-weight: 300; line-height: 1; }
.interest-card h3 { margin: 0; font-size: 34px; }
.interest-card p { margin: 8px 0 0; max-width: 300px; opacity: .78; }

.city-list {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.city-list p { margin: 0; font-size: 13px; font-weight: 900; }
.city-list div { display: flex; flex-wrap: wrap; gap: 12px; }
.city-list a { padding: 10px 14px; border: 1px solid var(--ink); border-radius: 4px; font-weight: 700; background: var(--white); transition: color .2s, background .2s; }
.city-list a:hover { color: var(--white); background: var(--green); }

.ai-section {
  width: 100%;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 10vw, 150px);
  color: var(--white);
  background: var(--ink);
}

.ai-intro { position: sticky; top: 120px; align-self: start; }
.ai-intro .kicker { color: var(--yellow); }
.ai-intro h2 span { color: var(--yellow); }
.ai-intro > p:last-child { max-width: 520px; margin-top: 28px; color: rgba(255,255,255,.68); font-size: 17px; }
.ai-list { border-top: 1px solid rgba(255,255,255,.3); }
.ai-list article { display: grid; grid-template-columns: 46px 1fr; gap: 10px 18px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.ai-list article > span { grid-row: 1 / 3; color: var(--yellow); font-size: 12px; }
.ai-list h3 { margin: 0; font-size: clamp(26px, 3vw, 38px); }
.ai-list p { margin: 0; color: rgba(255,255,255,.63); }

.resources { border-bottom: 1px solid var(--line); }
.resource-list { border-top: 1px solid var(--ink); }
.resource-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 34px;
  gap: 24px;
  align-items: center;
  min-height: 110px;
  padding: 18px;
  border-bottom: 1px solid var(--ink);
  transition: color .25s, background .25s;
}

.resource-row:hover { color: var(--white); background: var(--coral); }
.resource-number { font-size: 12px; font-weight: 900; }
.resource-row strong { font-size: clamp(22px, 3vw, 34px); }
.resource-row p { color: inherit; opacity: .66; }
.resource-row > span:last-child { font-size: 24px; }

.contact {
  padding: clamp(90px, 12vw, 150px) max(20px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: var(--green);
}

.contact .kicker { color: var(--ink); }
.contact-main { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; }
.contact h2 span { color: var(--white); }
.contact-main > div p { max-width: 430px; font-size: 17px; }
.contact-mail { display: inline-block; margin: 18px 0; padding-bottom: 4px; border-bottom: 2px solid var(--ink); font-size: clamp(17px, 2.2vw, 25px); font-weight: 800; overflow-wrap: anywhere; }
.copy-button { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 180px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 4px; background: transparent; font-weight: 800; cursor: pointer; }
.copy-button:hover { color: var(--white); background: var(--ink); }

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 150px;
  padding: 32px max(20px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--ink);
}

.footer-brand { color: var(--white); }
footer p { margin: 0; color: rgba(255,255,255,.58); font-size: 12px; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 18px; font-size: 13px; }
.credit { grid-column: 1 / -1; }
.credit a { text-decoration: underline; }

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 24px);
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .header-contact { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 86svh; }
  .hero-meta { display: none; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .kicker { padding-top: 0; }
  .about-layout { grid-template-columns: 1fr; }
  .about-story { padding-left: 0; }
  .about-note { max-width: 520px; }
  .interest-grid { grid-template-columns: 1fr; }
  .interest-card { min-height: 300px; }
  .ai-section { grid-template-columns: 1fr; }
  .ai-intro { position: static; }
  .contact-main { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .hero { min-height: 84svh; }
  .hero-image { object-position: 60% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,8,12,.88), rgba(5,8,12,.24)); }
  .hero-content { width: calc(100% - 36px); margin-inline: 18px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section { width: calc(100% - 36px); }
  .stats { grid-template-columns: 1fr; }
  .stats div { min-height: 120px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats div:last-child { border-bottom: 0; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 16px; }
  .timeline li > p { grid-column: 2; }
  .city-list { grid-template-columns: 1fr; gap: 22px; }
  .ai-section { padding-inline: 18px; }
  .resource-row { grid-template-columns: 40px 1fr 26px; gap: 12px; }
  .resource-row p { grid-column: 2 / 4; margin: -6px 0 12px; }
  .contact { padding-inline: 18px; }
  footer { grid-template-columns: 1fr; justify-items: start; }
  footer p { text-align: left; }
  .footer-links { justify-self: start; }
  .credit { grid-column: auto; }
}

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