/* ===================================================================
   About — A first step into sport
   Pixel-faithful recreation on a fixed 1440 x 3900 canvas.
   Every element is absolutely positioned with its exact design coords.
   =================================================================== */

:root {
  --ink:        #0d1117;
  --lime:       #c8e830;
  --brown:      #1d0d13;
  --blue-bar:   #176695;
  --card:       #0f5680;
  --card-line:  #2a3550;
  --card-desc:  #dbeaf3;
  --tag-bg:     #edf2f7;
  --tag-line:   #cbd5e0;
  --tag-text:   #4a5568;
  --line:       rgba(226, 232, 240, 0.5);
  --white:      #ffffff;

  --font-display: 'Archivo', 'butter_sans', sans-serif;
  --font-serif:   'Noto Rashi Hebrew', Georgia, serif;
  --font-cond:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-ui:      'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Intel One Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-serif);
  background: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { display: block; }

::selection { background: var(--lime); color: var(--ink); }
a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ===================================================================
   Canvas
   =================================================================== */
.stage {
  position: relative;
  width: 100%;
}
.page {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 3941px;
  margin-left: -720px;
  transform-origin: top center;
  background: #ffffff;
}
.bg {
  position: absolute;
  inset: 0 0 124px 0;  /* gradient lives on the 3817px "Introduction" frame */
  background: linear-gradient(
    180deg,
    rgb(24, 117, 166) 0%,
    rgb(210, 170, 102) 29.635%,
    rgb(64, 128, 152) 57.789%,
    rgb(85, 133, 142) 73.594%,
    rgb(190, 153, 89) 95.821%
  );
}

/* ===================================================================
   Scroll-reveal
   =================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(56px); }
[data-reveal="down"]  { transform: translateY(-56px); }
[data-reveal="left"]  { transform: translateX(-72px); }
[data-reveal="right"] { transform: translateX(72px); }
[data-reveal="zoom"]  { transform: scale(0.82); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===================================================================
   Photos
   =================================================================== */
.photo {
  position: absolute;
  object-fit: cover;
  border-radius: 0;
  z-index: 1;
}

/* floating decorative icons keep a playful hover */
.photo-float {
  z-index: 3;
  transition: opacity 0.9s var(--ease-out), transform 0.5s var(--ease-spring);
}
.photo-float:hover { transform: scale(1.15) rotate(-4deg); }

/* front photos: subtle lift on hover, sharp corners kept */
.photo-hover {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.photo-hover:hover {
  transform: scale(1.06);
  box-shadow: 0 20px 40px -18px rgba(6, 32, 48, 0.45);
  z-index: 3;
}

/* ===================================================================
   Opening copy
   =================================================================== */
.hero-title {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.5px;
  z-index: 2;
}
.hero-sub {
  position: absolute;
  font-size: 24px;
  line-height: 1.6;
  color: var(--white);
  z-index: 2;
}
.hero-note {
  position: absolute;
  font-size: 24px;
  line-height: 1.7;
  color: var(--white);
  z-index: 2;
}
.hero-note em { font-style: italic; }

.truth-head {
  position: absolute;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: var(--lime);
  text-align: center;
  z-index: 2;
}
.truth-text {
  position: absolute;
  font-size: 24px;
  line-height: 1.5;
  color: var(--brown);
  z-index: 2;
}

/* ===================================================================
   Welcome bar
   =================================================================== */
.welcome-bar {
  position: absolute;
  left: 124px;
  top: 1104px;
  width: 1232px;
  height: 224px;
  background: var(--blue-bar);
}
.welcome-text {
  position: absolute;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.7;
  color: var(--lime);
  z-index: 2;
}

/* ===================================================================
   Stories heading
   =================================================================== */
.stories-title {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.5px;
  z-index: 2;
}
.stories-title .big { font-size: 64px; font-weight: 800; }
.stories-intro {
  position: absolute;
  font-size: 24px;
  line-height: 1.65;
  color: var(--white);
  z-index: 2;
}

/* ===================================================================
   Story cells (six people)
   =================================================================== */
.story-cell {
  position: absolute;
  border-top: 1px solid var(--line);
  z-index: 2;
  transition: transform 0.5s var(--ease-out), background-color 0.5s var(--ease-out);
}
.story-cell.right { border-left: 1px solid var(--line); }

.story-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 5px;
  height: 100%;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease-spring);
}
.story-cell:hover { transform: translateY(-8px); background: rgba(15, 86, 128, 0.22); }
.story-cell:hover::before { transform: scaleY(1); }

.story-head {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.story-name {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  color: var(--ink);
  transform-origin: left;
  transition: color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.story-cell:hover .story-name { color: var(--lime); transform: translateX(6px); }

.sport-tag {
  align-self: flex-start;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  color: var(--tag-text);
  background: var(--tag-bg);
  border: 1px solid var(--tag-line);
  border-radius: 4px;
  padding: 6px 10px;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              color 0.4s var(--ease-out), transform 0.4s var(--ease-spring);
}
.story-cell:hover .sport-tag {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: translateY(-2px);
}

.story-text {
  position: absolute;
  font-size: 24px;
  line-height: 1.4;
  color: var(--white);
  transition: transform 0.5s var(--ease-out);
}
.story-cell:hover .story-text { transform: translateX(4px); }

.story-photo {
  position: absolute;
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 16px 30px -16px rgba(6, 32, 48, 0.55);
  transition: transform 0.6s var(--ease-spring);
}
.story-cell:hover .story-photo { transform: scale(1.08) rotate(-2deg); }

/* ===================================================================
   Perspective + belief
   =================================================================== */
.belief-title {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.5px;
  z-index: 2;
}
.belief-copy {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 24px;
  line-height: 1.65;
  color: var(--white);
  z-index: 2;
}

/* ===================================================================
   Question
   =================================================================== */
.question-title {
  position: absolute;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.5;
  color: var(--lime);
  z-index: 2;
}

/* ===================================================================
   Next steps
   =================================================================== */
.next-label {
  position: absolute;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
  white-space: nowrap;
  z-index: 2;
}
.next-row {
  position: absolute;
  display: flex;
  gap: 24px;
  z-index: 2;
}
.next-card {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  transition: transform 0.45s var(--ease-out), background-color 0.45s var(--ease-out),
              border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.next-card:hover {
  transform: translateY(-10px);
  background: #12628f;
  border-color: var(--lime);
  box-shadow: 0 30px 50px -30px rgba(4, 24, 38, 0.8);
}

.card-icon { width: 28px; height: 28px; transition: transform 0.5s var(--ease-spring); }
.next-card:hover .card-icon { transform: translateY(-4px) scale(1.1); }

.card-title {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: var(--white);
}
.card-desc {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--card-desc);
}
.card-actions { display: flex; gap: 20px; align-items: center; padding-top: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 48px;
  padding: 0 20px;
  background: var(--lime);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.35s var(--ease-out), transform 0.35s var(--ease-spring);
}
.pill svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease-spring); }
.pill:hover { background: #d8f55a; transform: translateY(-3px); }
.pill:hover svg { transform: translate(2px, -2px); }

.social {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transition: transform 0.35s var(--ease-spring);
}
.social svg { width: 48px; height: 48px; }
.social:hover { transform: translateY(-4px) scale(1.12); }

/* ===================================================================
   Reduced motion
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 手机端「双指缩放」提示（about.js 动态注入，仅触屏显示，几秒后淡出） */
.dayone-zoom-hint {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 1001;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.86);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.dayone-zoom-hint.hide { opacity: 0; }
