/* ============================================================
   蒋鑫宝 Simba — Personal Site
   Design: Apple-style light, frosted glass, soft motion
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --ink-dim: #51515b;
  --ink-faint: #86868b;
  --line: rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.06);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --blur: saturate(180%) blur(22px);
  --accent: #0071e3;          /* Apple blue */
  --accent-2: #7d5bff;        /* violet */
  --accent-3: #ff6aa6;        /* pink */
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --maxw: 1460px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  letter-spacing: 0.01em;
  background-color: #eceef3;
}

/* ============================================================
   Section bands — alternating white / tint for visual rhythm.
   Full-bleed via ::before so max-width sections still band edge-to-edge.
   ============================================================ */
.statement, .about, .pillars, .work, .reel, .timeline, .creds, .words, .contact { position: relative; isolation: isolate; }
.statement::before, .about::before, .pillars::before, .work::before,
.reel::before, .timeline::before, .creds::before, .words::before, .contact::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw; top: 0; bottom: 0; z-index: -2;
}
/* white bands */
.statement::before, .pillars::before, .creds::before { background: #ffffff; }
/* tinted bands with soft color wash */
.about::before { background: linear-gradient(180deg, #eef3fc 0%, #eceef3 100%); }
.reel::before  { background: linear-gradient(180deg, #ffffff 0%, #f4f1fb 100%); }
.timeline::before { background: linear-gradient(180deg, #fdeef5 0%, #eceef3 100%); }
.work::before  { background: linear-gradient(180deg, #eceef3 0%, #e9ecf6 100%); }
/* decorative blurred accent orbs for depth */
.about::after, .work::after, .pillars::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none;
}
.about::after { width: 36vw; height: 36vw; top: -6%; right: -8%; background: radial-gradient(circle, rgba(0,113,227,0.18), transparent 70%); }
.work::after  { width: 40vw; height: 40vw; bottom: -10%; left: -10%; background: radial-gradient(circle, rgba(125,91,255,0.16), transparent 70%); }
.pillars::after { width: 32vw; height: 32vw; top: 10%; left: -12%; background: radial-gradient(circle, rgba(255,106,166,0.12), transparent 70%); }

/* vivid statement band — the "moment" section */
.words::before { background: linear-gradient(135deg, #0071e3 0%, #7d5bff 52%, #ff6aa6 100%); }
.words { color: #fff; }
.words .section-tag { color: rgba(255,255,255,0.85); }
.words .words__quote { color: #fff; }
.words .words__by { color: rgba(255,255,255,0.82); }

/* contact finale — soft gradient */
.contact::before { background: linear-gradient(180deg, #eceef3 0%, #e7eefb 55%, #f7ecf4 100%); }

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

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  background: rgba(0,0,0,0.06);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  color: var(--accent);
}
strong { font-weight: 600; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
/* CSS-only safety net: if JS never runs, the curtain still lifts (no blank page ever) */
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.loader { animation: loaderSafety 0.5s var(--ease) 4s forwards; }
.loader__inner { text-align: center; }
.loader__name {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 300; letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--ink);
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}
.loader__bar {
  width: min(260px, 60vw); height: 2px; margin: 28px auto 0;
  background: var(--line); overflow: hidden; border-radius: 2px;
}
.loader__bar i {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  animation: load 1.4s var(--ease-out) 0.2s forwards;
}
@keyframes load { to { width: 100%; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 200; border-radius: 0 3px 3px 0;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.is-scrolled {
  padding: 12px clamp(20px, 5vw, 56px);
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 1px 0 var(--line-soft), 0 6px 24px rgba(0,0,0,0.05);
}
.nav__brand {
  font-size: 1.2rem; font-weight: 600; letter-spacing: 0.02em;
}
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a {
  font-size: 0.92rem; color: var(--ink-dim); position: relative;
  transition: color 0.35s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__menu { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 6px; }
.nav__menu span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.4s var(--ease); }
.nav.is-open .nav__menu span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__menu span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 100px; font-size: 0.95rem; font-weight: 500;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s, border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0,113,227,0.28); }
.btn--primary:hover { transform: translateY(-3px) scale(1.02); background: #0077ed; box-shadow: 0 12px 30px rgba(0,113,227,0.34); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--glass); backdrop-filter: var(--blur); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 0 20px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.6;
  will-change: transform;
}
.orb--1 { width: 46vw; height: 46vw; left: -8vw; top: -8vw;
  background: radial-gradient(circle, rgba(0,113,227,0.55), transparent 70%); }
.orb--2 { width: 42vw; height: 42vw; right: -6vw; top: 8vh;
  background: radial-gradient(circle, rgba(255,106,166,0.45), transparent 70%); }
.orb--3 { width: 40vw; height: 40vw; left: 28vw; bottom: -14vw;
  background: radial-gradient(circle, rgba(125,91,255,0.42), transparent 70%); }
.grain { display: none; }
.hero__content { position: relative; z-index: 2; max-width: 1040px; width: 100%; }
.hero__eyebrow {
  font-size: 0.85rem; letter-spacing: 0.32em; color: var(--ink-dim);
  text-transform: uppercase; margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(4rem, 18vw, 14rem); font-weight: 700; line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__title .reveal-mask > span {
  background: linear-gradient(180deg, #1d1d1f 30%, #5b5b66);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 0.08em;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.35rem); color: var(--ink-dim);
  max-width: 560px; margin: 28px auto 0; font-weight: 400;
}
.hero__badges {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px;
}
.hero__badges span {
  font-size: 0.8rem; color: var(--ink); padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line-soft); background: var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 0.7rem; letter-spacing: 0.3em; color: var(--ink-faint);
}
.hero__scroll-line { width: 2px; height: 56px; background: var(--line); overflow: hidden; border-radius: 2px; }
.hero__scroll-line i { display: block; width: 100%; height: 40%; background: var(--accent);
  animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* Hero text reveal */
.reveal-mask { display: inline-block; overflow: hidden; }
.reveal-mask > span { display: inline-block; transform: translateY(110%); }
.reveal-line { opacity: 0; transform: translateY(20px); }
body.is-loaded .reveal-mask > span { animation: riseUp 1.1s var(--ease) forwards; }
body.is-loaded .hero__eyebrow { animation: fadeUp 0.9s var(--ease) 0.15s forwards; }
body.is-loaded .hero__subtitle { animation: fadeUp 0.9s var(--ease) 0.5s forwards; }
body.is-loaded .hero__badges { animation: fadeUp 0.9s var(--ease) 0.65s forwards; }
body.is-loaded .hero__cta { animation: fadeUp 0.9s var(--ease) 0.8s forwards; }
@keyframes riseUp { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Sections shared ---------- */
section { position: relative; }
.section-tag {
  font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px; font-weight: 600;
}
.section-title {
  font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 600; line-height: 1.04;
  letter-spacing: -0.02em;
}

/* ---------- Statement ---------- */
.statement {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(110px, 16vh, 200px) clamp(20px, 6vw, 80px);
}
.statement__text {
  font-size: clamp(1.8rem, 5vw, 4.2rem); font-weight: 400; line-height: 1.25;
  letter-spacing: -0.01em;
}
.statement__text .word { display: inline-block; color: rgba(29,29,31,0.18); transition: color 0.5s var(--ease); }
.statement__text .word.is-lit { color: var(--ink); }

/* ---------- Glass panel mixin look ---------- */
.glass {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--shadow);
}

/* ---------- About ---------- */
.about { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vh, 150px) clamp(20px, 6vw, 80px); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.about__media { will-change: transform; }
.about__photo {
  position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--shadow-lg);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__para { color: var(--ink-dim); font-size: 1.1rem; font-weight: 400; margin-top: 22px; max-width: 48ch; }
.about__stats { display: flex; gap: clamp(20px, 4vw, 52px); margin-top: 44px; list-style: none; flex-wrap: wrap; }
.about__stats li { display: flex; flex-direction: column; gap: 4px; }
.about__stats strong { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about__stats span { font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.08em; }

/* ---------- Placeholder block ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.6); border-radius: 18px;
  color: var(--ink-faint); overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(circle at center, #000, transparent 75%);
}
.ph span { font-size: 1rem; color: var(--ink-dim); position: relative; z-index: 1; }
.ph small { font-size: 0.78rem; position: relative; z-index: 1; }
.ph--video { aspect-ratio: 16/9; }

.play {
  width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(6px); cursor: pointer;
  display: grid; place-items: center; margin-bottom: 6px; position: relative; z-index: 1;
  box-shadow: var(--shadow); transition: transform 0.4s var(--ease), background 0.4s;
}
.play:hover { transform: scale(1.08); background: #fff; }
.play svg { width: 30px; height: 30px; fill: var(--accent); margin-left: 4px; }

.gallery__sub { color: var(--ink-dim); font-weight: 400; margin-top: 16px; max-width: 54ch; font-size: 1.05rem; }
.reel__head .gallery__sub { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Two pillars ---------- */
.pillars { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vh, 150px) clamp(20px, 6vw, 80px); }
.pillars__head { margin-bottom: clamp(40px, 6vw, 64px); }
.pillars__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pillar {
  position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pillar__no { font-size: 0.9rem; color: var(--accent); letter-spacing: 0.2em; margin-bottom: 18px; font-weight: 600; }
.pillar h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; margin-bottom: 16px; }
.pillar p { color: var(--ink-dim); font-weight: 400; margin-bottom: 22px; }
.pillar ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pillar li { position: relative; padding-left: 20px; color: var(--ink); font-size: 0.95rem; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---------- Work / Projects ---------- */
.work { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vh, 150px) clamp(20px, 6vw, 80px); }
.work__head { margin-bottom: clamp(40px, 6vw, 64px); }
.work__sub { color: var(--ink-dim); font-weight: 400; margin-top: 16px; max-width: 56ch; font-size: 1.05rem; }

/* metrics strip */
.work__metrics {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.work__metrics span {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 10px 18px; border-radius: 100px; font-size: 0.9rem; color: var(--ink-dim);
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
}
.work__metrics b {
  font-weight: 700; font-size: 1.02rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.proj {
  display: block; position: relative; border-radius: 24px; overflow: hidden;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  color: var(--ink); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.proj:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* feature list inside cards */
.proj__features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; width: 100%; }
.proj__features li { position: relative; padding-left: 26px; color: var(--ink-dim); font-size: 0.9rem; line-height: 1.45; }
.proj__features li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 18px; height: 18px; border-radius: 50%; font-size: 0.66rem; font-weight: 700;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* glow behind featured cards */
.proj--featured { position: relative; }
.proj--featured::after {
  content: ""; position: absolute; inset: -1px; border-radius: 24px; z-index: -1; pointer-events: none;
  background: linear-gradient(120deg, rgba(0,113,227,0.35), rgba(125,91,255,0.35), rgba(255,106,166,0.3));
  filter: blur(28px); opacity: 0; transition: opacity 0.6s var(--ease);
}
.proj--featured:hover::after { opacity: 0.7; }

/* ============================================================
   Premium motion — restrained / Apple style
   ============================================================ */
/* cursor spotlight glow that follows the pointer over cards */
.cred { position: relative; }
.proj::before, .pillar::before, .cred::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(0,113,227,0.16), transparent 46%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.proj:hover::before, .pillar:hover::before, .cred:hover::before { opacity: 1; }

/* big titles reveal character by character */
.section-title .char, .contact__title .char {
  display: inline-block; opacity: 0; transform: translateY(0.5em);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); will-change: transform;
}
.section-title.is-revealed .char, .contact__title.is-revealed .char { opacity: 1; transform: none; }

/* hero content uses JS-driven transform on scroll; keep it smooth */
.hero__content { will-change: transform, opacity; }

.proj__shot { position: relative; overflow: hidden; background: #0a0a0c; }
.browserbar {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft);
}
.browserbar i { width: 11px; height: 11px; border-radius: 50%; }
.browserbar i:nth-child(1) { background: #ff5f57; }
.browserbar i:nth-child(2) { background: #febc2e; }
.browserbar i:nth-child(3) { background: #28c840; }
.browserbar span {
  margin-left: 10px; font-size: 0.75rem; color: var(--ink-faint);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.9s var(--ease); }
.proj:hover .proj__shot img { transform: scale(1.03); }

.proj__cover {
  position: relative; aspect-ratio: 16/10; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; overflow: hidden;
}
.proj__cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 72%); opacity: 0.6;
}
.proj__cover--blue { background: linear-gradient(140deg, #4a90ff, #0a4fd0); }
.proj__cover--graphite { background: linear-gradient(140deg, #7d5bff, #4a2fb8); }
.proj__icon { font-size: 2.6rem; position: relative; z-index: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3)); }
.proj__platform {
  position: relative; z-index: 1; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.92); border: 1px solid rgba(255,255,255,0.45); padding: 5px 12px; border-radius: 100px;
}

.proj__body { padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; align-items: flex-start; }
.proj__role { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 600; }
.proj__body h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 600; margin-bottom: 12px; }
.proj__body p { color: var(--ink-dim); font-weight: 400; font-size: 0.98rem; margin-bottom: 18px; }
.proj__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.proj__tags span {
  font-size: 0.76rem; color: var(--ink-dim); padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,0.5);
}
.proj__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); }
.proj__link em { font-style: normal; transition: transform 0.4s var(--ease); display: inline-block; }
.proj:hover .proj__link em { transform: translate(3px, -3px); }

/* ---------- Per-product showcase modules (alternating rows) ---------- */
.showcases { display: flex; flex-direction: column; gap: clamp(48px, 8vh, 110px); margin-top: clamp(48px, 8vh, 100px); }
.showcase {
  display: grid; grid-template-columns: 1.18fr 0.82fr; gap: clamp(36px, 5vw, 80px); align-items: center;
}
.showcase--reverse .showcase__media { order: 2; }
.showcase__media { will-change: transform; }

/* screenshot media with browser chrome */
.showcase__shot {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease);
}
.showcase:hover .showcase__shot { transform: translateY(-6px); }
.showcase__shot img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top center; transition: transform 0.9s var(--ease); }
.showcase:hover .showcase__shot img { transform: scale(1.04); }
/* app/window mockups: show full composition, no browser bar, no crop */
.showcase__shot--app { box-shadow: 0 40px 90px rgba(20,30,80,0.28); }
.showcase__shot--app img { aspect-ratio: auto; height: auto; }

/* gradient cover media (no screenshot) */
.showcase__cover {
  position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16/11;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  box-shadow: var(--shadow-lg); transition: transform 0.6s var(--ease);
}
.showcase:hover .showcase__cover { transform: translateY(-6px); }
.showcase__cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 38%, #000, transparent 74%); opacity: 0.55;
}
.showcase__cover--blue { background: linear-gradient(140deg, #4a90ff, #0a4fd0); }
.showcase__cover--violet { background: linear-gradient(140deg, #9a7bff, #4a2fb8); }
.showcase__glyph { font-size: 3.4rem; position: relative; z-index: 1; filter: drop-shadow(0 8px 22px rgba(0,0,0,0.32)); }
.cover__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 80%; }
.cover__chips span {
  font-size: 0.82rem; color: #fff; padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.32); backdrop-filter: blur(6px);
}

/* info column */
.showcase__info { display: flex; flex-direction: column; align-items: flex-start; }
.showcase__index {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.55;
}
.showcase__platform { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.showcase__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; }
.showcase__desc { color: var(--ink-dim); font-size: 1.05rem; font-weight: 400; line-height: 1.6; margin-bottom: 22px; max-width: 52ch; }
.showcase__features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; width: 100%; }
.showcase__features li { position: relative; padding-left: 28px; color: var(--ink); font-size: 0.96rem; line-height: 1.5; }
.showcase__features li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%; font-size: 0.7rem; font-weight: 700;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.showcase__info .proj__tags { margin-bottom: 26px; }
.showcase__info .btn em { font-style: normal; transition: transform 0.4s var(--ease); display: inline-block; margin-left: 6px; }
.showcase__info .btn:hover em { transform: translate(3px, -3px); }

.proj--featured { display: grid; grid-template-columns: 0.95fr 1.25fr; align-items: stretch; margin-bottom: 22px; }
.proj--featured .proj__shot img { height: 100%; min-height: 320px; }
.proj--reverse { margin-top: 22px; margin-bottom: 0; }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work__grid .proj { display: flex; flex-direction: column; }
.work__grid .proj__shot img { aspect-ratio: 16/10; }

/* ---------- Reel ---------- */
.reel { max-width: 1680px; margin: 0 auto; padding: clamp(70px, 11vh, 150px) clamp(20px, 6vw, 80px); }
.reel__head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.reel__stage { perspective: 1400px; }
.reel__frame {
  position: relative; border-radius: 24px; overflow: hidden; will-change: transform;
  box-shadow: var(--shadow-lg);
}
.reel__video { width: 100%; display: block; }

/* ---------- Timeline ---------- */
.timeline { max-width: 1000px; margin: 0 auto; padding: clamp(70px, 11vh, 150px) clamp(20px, 6vw, 80px); }
.timeline__head { margin-bottom: clamp(40px, 6vw, 64px); }
.timeline__list { list-style: none; position: relative; }
.timeline__list::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__list li { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: clamp(20px, 4vw, 56px); padding: 0 0 clamp(40px, 5vw, 56px) 40px; }
.timeline__list li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 0 5px rgba(0,113,227,0.12); }
.timeline__list li:last-child { padding-bottom: 0; }
.timeline__year { color: var(--accent); font-size: 0.92rem; letter-spacing: 0.04em; padding-top: 2px; font-weight: 600; }
.timeline__body h3 { font-size: clamp(1.15rem, 2.2vw, 1.55rem); font-weight: 600; margin-bottom: 8px; }
.timeline__body p { color: var(--ink-dim); font-weight: 400; }

/* ---------- Credentials wall ---------- */
.creds { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vh, 150px) clamp(20px, 6vw, 80px); }
.creds__head { margin-bottom: clamp(40px, 6vw, 64px); }
.creds__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cred {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: 18px;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cred:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cred strong { font-size: 1.05rem; font-weight: 600; }
.cred span { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Words / quote ---------- */
.words { padding: clamp(96px, 15vh, 190px) clamp(20px, 6vw, 80px); text-align: center; overflow: hidden; }
.words__inner { max-width: 1200px; margin: 0 auto; position: relative; }
.words__inner::before, .words__inner::after {
  position: absolute; font-family: "Noto Serif SC", serif; font-size: clamp(8rem, 20vw, 18rem);
  line-height: 1; color: rgba(255,255,255,0.16); pointer-events: none; z-index: 0;
}
.words__inner::before { content: "\201C"; top: -0.18em; left: -0.1em; }
.words__inner::after { content: "\201D"; bottom: -0.55em; right: -0.05em; }
.words__quote {
  position: relative; z-index: 1;
  font-family: "Noto Serif SC", serif; font-weight: 500;
  font-size: clamp(2.1rem, 6vw, 5rem); line-height: 1.28; margin-top: 26px;
  letter-spacing: -0.01em;
}
.words__quote span { display: block; }
.words__by { margin-top: 30px; color: var(--ink-dim); letter-spacing: 0.08em; }

/* ---------- Contact ---------- */
.contact { padding: clamp(90px, 15vh, 200px) clamp(20px, 6vw, 80px); text-align: center; }
.contact__inner { max-width: 1040px; margin: 0 auto; }
.contact__title { font-size: clamp(2.6rem, 8vw, 7rem); font-weight: 600; line-height: 1.0; letter-spacing: -0.03em; margin: 12px 0 36px; }
.contact__mail {
  font-size: clamp(1.2rem, 3vw, 2rem); position: relative; display: inline-block; font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contact__meta { color: var(--ink-dim); margin-top: 20px; font-weight: 400; letter-spacing: 0.02em; }
.contact__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.contact__socials { display: flex; gap: clamp(20px, 4vw, 48px); justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.contact__socials a { color: var(--ink-dim); font-size: 0.95rem; transition: color 0.4s var(--ease); }
.contact__socials a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 36px clamp(20px, 6vw, 80px); border-top: 1px solid var(--line-soft);
  color: var(--ink-faint); font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center;
    gap: 28px; background: var(--glass-strong); backdrop-filter: var(--blur);
    transform: translateY(-100%); transition: transform 0.6s var(--ease);
  }
  .nav__links a { font-size: 1.4rem; color: var(--ink); }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav__menu { display: flex; z-index: 160; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .creds__grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .showcase--reverse .showcase__media { order: -1; }
  .showcase__media { order: -1; }
  .proj--featured { grid-template-columns: 1fr; }
  .proj--featured .proj__shot { order: -1; }
  .proj--reverse .proj__shot { order: -1; }
  .proj--featured .proj__shot img { min-height: 0; aspect-ratio: 16/10; }
  .work__grid { grid-template-columns: 1fr; }
  .timeline__list li { grid-template-columns: 1fr; gap: 6px; }
  .timeline__year { padding-top: 0; }
}
@media (max-width: 540px) {
  .creds__grid { grid-template-columns: 1fr; }
  .about__stats { gap: 24px; }
  .hero__title { font-size: clamp(3.4rem, 17vw, 6rem); }
  .hero__subtitle, .hero__badges { max-width: 100%; }
  .words__inner::before, .words__inner::after { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-line, .reveal-mask > span { opacity: 1 !important; transform: none !important; }
  .section-title .char, .contact__title .char { opacity: 1 !important; transform: none !important; }
  .hero__content { opacity: 1 !important; transform: none !important; }
  .statement__text .word { color: var(--ink) !important; }
}
