/* =========================================================
   Cecile Ho — Personal Brand Site
   Palette: deep navy · luminous azure · cyan  (blue-forward, premium)
   ========================================================= */

:root {
  --ink:       #06111f;
  --navy:      #0a1c31;
  --navy-2:    #0e2744;
  --navy-3:    #123458;
  --blue:      #2e7cf6;
  --blue-brt:  #4f9bff;
  --cyan:      #37d0d6;
  --sky:       #9cc7ff;
  --gold:      #e6c281;

  --paper:     #f4f7fb;
  --paper-2:   #e9f0f8;
  --card:      #ffffff;

  --text:      #0d1e33;
  --text-soft: #4a5c72;
  --text-mut:  #7f8ea3;
  --on-dark:   #eaf2fc;
  --on-dark-soft: #a9bdd6;

  --line:      rgba(13, 30, 51, .10);
  --line-d:    rgba(255, 255, 255, .10);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Fraunces", Georgia, "Noto Serif TC", serif;
  --sans:  "Manrope", -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
  --cjk:   "Noto Sans TC", "Manrope", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 2px 12px rgba(9, 24, 44, .06);
  --shadow-md: 0 18px 50px -22px rgba(9, 24, 44, .35);
  --shadow-lg: 0 40px 90px -40px rgba(9, 24, 44, .55);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* ---------- shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--ink  { background: var(--ink);  color: var(--on-dark); }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.section--dark .eyebrow, .section--ink .eyebrow { color: var(--cyan); }
.section--dark .eyebrow::before, .section--ink .eyebrow::before { background: linear-gradient(90deg, var(--cyan), transparent); }

h1, h2, h3, .display { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -.01em; }
.h-sec {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin-top: 18px;
  font-optical-sizing: auto;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.32rem); color: var(--text-soft); max-width: 60ch; }
.section--dark .lead, .section--ink .lead { color: var(--on-dark-soft); }

.cjk { font-family: var(--cjk); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--blue);
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 700; font-size: .92rem;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: 100px;
  background: var(--bg);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  box-shadow: 0 12px 30px -12px rgba(46,124,246,.7);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 42px -14px rgba(46,124,246,.8); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost {
  background: transparent; color: var(--on-dark);
  border-color: rgba(255,255,255,.28);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn--dark { background: var(--navy); box-shadow: 0 12px 30px -14px rgba(10,28,49,.7); }
.btn--dark:hover { box-shadow: 0 20px 40px -16px rgba(10,28,49,.8); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .4s var(--ease), backdrop-filter .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(8, 18, 33, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(255,255,255,.08);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-weight: 800; letter-spacing: .02em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: #fff;
  background: linear-gradient(140deg, var(--blue), var(--cyan));
  box-shadow: 0 8px 20px -8px rgba(46,124,246,.8);
}
.brand .mark-txt small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .22em; color: var(--on-dark-soft); text-transform: uppercase; }
.brand .mark-txt b { font-size: 1.02rem; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--on-dark-soft); font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  position: relative; padding: 6px 0; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .35s var(--ease);
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: 11px 22px; font-size: .85rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--on-dark); margin: 5px auto; transition: .3s var(--ease); border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: var(--ink); color: var(--on-dark); overflow: hidden;
  padding-top: 100px; padding-bottom: 60px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
/* animated aurora blobs */
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; }
.aurora.a1 { width: 55vw; height: 55vw; left: -10vw; top: -18vw; background: radial-gradient(circle, #2e7cf6, transparent 62%); animation: drift1 20s var(--ease) infinite alternate; }
.aurora.a2 { width: 46vw; height: 46vw; right: -12vw; top: 6vw; background: radial-gradient(circle, #37d0d6, transparent 62%); animation: drift2 24s var(--ease) infinite alternate; }
.aurora.a3 { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle, #6a4dff, transparent 64%); opacity: .4; animation: drift3 28s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(12vw, 8vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-8vw, 10vw) scale(1.1); } }
@keyframes drift3 { to { transform: translate(6vw, -8vw) scale(1.2); } }
.hero__grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 30%, transparent 78%);
}
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 40%, rgba(3,9,18,.7)); }

.hero__inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-size: .78rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cyan);
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(55,208,214,.2); animation: pulse 2.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(55,208,214,0); } }

.hero h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); margin: 22px 0 6px; letter-spacing: -.02em; }
.hero h1 .grad {
  background: linear-gradient(105deg, var(--sky) 0%, var(--blue-brt) 40%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__zh { font-family: var(--cjk); font-weight: 500; font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--on-dark-soft); letter-spacing: .18em; }
.hero__role {
  margin: 22px 0 0; font-size: clamp(1.05rem, 1.8vw, 1.32rem); color: var(--on-dark);
  font-weight: 600;
}
.hero__role b { color: var(--cyan); font-weight: 700; }
.hero__desc { margin-top: 20px; max-width: 46ch; color: var(--on-dark-soft); font-size: 1.05rem; }
.hero__cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__meta { margin-top: 44px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero__meta div { line-height: 1.2; }
.hero__meta .n { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; display: block; }
.hero__meta .l { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); }

/* portrait */
.hero__portrait { position: relative; justify-self: center; width: min(100%, 380px); }
.portrait-frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 1000/1114;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 55%, rgba(6,17,31,.55)); }
.portrait-glow { position: absolute; inset: -30px; z-index: -1; border-radius: 40px;
  background: conic-gradient(from 120deg, var(--blue), var(--cyan), #6a4dff, var(--blue));
  filter: blur(45px); opacity: .5; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-badge {
  position: absolute; left: -22px; bottom: 30px; z-index: 3;
  background: rgba(9,20,36,.82); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.portrait-badge .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(140deg,var(--blue),var(--cyan)); }
.portrait-badge .ico svg { width: 20px; height: 20px; stroke: #fff; }
.portrait-badge b { display: block; font-size: .95rem; color: #fff; }
.portrait-badge small { color: var(--on-dark-soft); font-size: .74rem; letter-spacing: .04em; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--on-dark-soft); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; border-radius: 3px; background: var(--cyan); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 100%{opacity:0;transform:translate(-50%,10px)} }

/* marquee logos strip */
.trust { border-top: 1px solid var(--line-d); background: var(--ink); color: var(--on-dark-soft); padding-block: 30px; overflow: hidden; }
.trust .lbl { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; text-align: center; margin-bottom: 20px; color: var(--on-dark-soft); }
.marquee { display: flex; gap: 60px; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(1rem,1.6vw,1.35rem); white-space: nowrap; color: rgba(234,242,252,.55); font-weight: 500; letter-spacing: .01em; }
.marquee-mask { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: var(--paper); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 34px); }
.stat { text-align: left; padding: 30px 4px; border-top: 2px solid var(--line); position: relative; }
.stat::before { content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.stat .n { font-family: var(--serif); font-size: clamp(2.3rem, 4.2vw, 3.3rem); line-height: 1; color: var(--navy); font-weight: 500; }
.stat .n .suf { color: var(--blue); }
.stat .l { margin-top: 10px; font-size: .92rem; color: var(--text-soft); font-weight: 600; letter-spacing: .01em; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__side .kicker { font-family: var(--serif); font-size: clamp(1.5rem,2.6vw,2.1rem); color: var(--navy); line-height: 1.2; margin-top: 20px; }
.about__side .sign { margin-top: 26px; font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 1.4rem; }
.about__side .sign small { display: block; font-family: var(--sans); font-style: normal; color: var(--text-mut); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.about__body p { color: var(--text-soft); font-size: 1.08rem; }
.about__body p + p { margin-top: 20px; }
.about__body strong { color: var(--text); font-weight: 700; }
.about__tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.about__tags span { font-size: .9rem; color: var(--text-soft); font-weight: 600; display: inline-flex; align-items: center; gap: 9px; }
.about__tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* =========================================================
   EXPERTISE
   ========================================================= */
.exp__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.exp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.xcard {
  background: rgba(255,255,255,.03); border: 1px solid var(--line-d); border-radius: 20px;
  padding: 38px 32px; position: relative; overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.xcard::before { content: ""; position: absolute; inset: 0; border-radius: 20px; opacity: 0; transition: opacity .5s;
  background: radial-gradient(120% 100% at 0% 0%, rgba(46,124,246,.16), transparent 55%); }
.xcard:hover { transform: translateY(-8px); border-color: rgba(79,155,255,.4); }
.xcard:hover::before { opacity: 1; }
.xcard .num { font-family: var(--serif); font-size: .95rem; color: var(--cyan); letter-spacing: .1em; }
.xcard .xicon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin: 18px 0 22px;
  background: linear-gradient(150deg, rgba(46,124,246,.22), rgba(55,208,214,.14)); border: 1px solid rgba(255,255,255,.1); }
.xcard .xicon svg { width: 26px; height: 26px; stroke: var(--sky); }
.xcard h3 { font-size: 1.4rem; color: #fff; margin-bottom: 14px; }
.xcard ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.xcard li { color: var(--on-dark-soft); font-size: .96rem; padding-left: 22px; position: relative; }
.xcard li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-right: 1.5px solid var(--cyan); border-bottom: 1.5px solid var(--cyan); transform: rotate(-45deg) translateY(-2px); }
.xcard .tools { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-d); font-size: .82rem; color: var(--text-mut); letter-spacing: .02em; }
.xcard .tools b { color: var(--sky); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; display: block; margin-bottom: 5px; }

/* =========================================================
   WORK / GALLERY
   ========================================================= */
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }

/* category tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 2px 30px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.tabs button {
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: 15px 2px; cursor: pointer; background: none; border: 0; color: var(--text-mut);
  position: relative; white-space: nowrap; transition: color .3s var(--ease);
}
.tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .38s var(--ease);
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--navy); }
.tabs button.active::after { transform: scaleX(1); }

/* category intro */
.cat-intro { margin-bottom: 30px; max-width: 760px; }
.cat-intro__head { display: flex; align-items: baseline; gap: 16px; }
.cat-intro h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); }
.cat-count { font-family: var(--sans); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.cat-intro p { margin-top: 10px; color: var(--text-soft); font-size: 1.05rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; transition: opacity .3s var(--ease); }
.gitem {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: var(--paper-2);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.gitem.in-cat { animation: cardIn .55s var(--ease) both; }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s; }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,17,31,.86)); opacity: .55; transition: opacity .5s; }
.gitem:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gitem:hover img { transform: scale(1.07); }
.gitem:hover::after { opacity: .9; }
.gitem__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; transform: translateY(8px); opacity: .92; transition: transform .5s var(--ease); }
.gitem:hover .gitem__cap { transform: translateY(0); }
.gitem__cap .cat { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.gitem__cap h4 { font-family: var(--sans); font-weight: 700; color: #fff; font-size: 1.02rem; margin-top: 5px; line-height: 1.25; }
.gitem__cap .yr { color: var(--on-dark-soft); font-size: .8rem; margin-top: 3px; }
.gitem.hide { display: none; }
.gitem .plus { position: absolute; top: 16px; right: 16px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: grid; place-items: center;
  opacity: 0; transform: scale(.6); transition: .4s var(--ease); }
.gitem:hover .plus { opacity: 1; transform: scale(1); }
.gitem .plus svg { width: 16px; height: 16px; stroke: #fff; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 4vw;
  background: rgba(4,10,20,.9); backdrop-filter: blur(10px); }
.lightbox.open { display: grid; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { max-width: 1000px; width: 100%; text-align: center; }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { margin-top: 18px; color: var(--on-dark); }
.lightbox figcaption .cat { color: var(--cyan); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.lightbox figcaption h4 { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 4px; font-weight: 500; }
.lightbox figcaption p { color: var(--on-dark-soft); font-size: .95rem; max-width: 62ch; margin: 0 auto; }
.lb-close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-size: 1.4rem; cursor: pointer; transition: .3s; }
.lb-close:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1.3rem; transition: .3s; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }

/* =========================================================
   TIMELINE
   ========================================================= */
.tl { position: relative; margin-top: 20px; }
.tl__era { display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px,4vw,60px); padding-block: 40px; border-top: 1px solid var(--line); }
.tl__era:first-child { border-top: 0; }
.tl__year { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); position: relative; }
.tl__year .tag { display: block; font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-top: 6px; }
.tl__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.tl__item { position: relative; padding-left: 26px; }
.tl__item::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); transition: .3s; }
.tl__item:hover::before { background: var(--blue); box-shadow: 0 0 0 5px rgba(46,124,246,.15); }
.tl__item h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.tl__item .who { font-size: .84rem; color: var(--text-mut); margin-top: 2px; }
.tl__item .role { font-size: .82rem; color: var(--blue); font-weight: 600; margin-top: 3px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; overflow: hidden; }
.contact .aurora.c1 { width: 40vw; height: 40vw; left: -10vw; bottom: -20vw; opacity: .35; }
.contact .aurora.c2 { width: 34vw; height: 34vw; right: -8vw; top: -14vw; background: radial-gradient(circle,#37d0d6,transparent 62%); opacity: .3; }
.contact__inner { position: relative; z-index: 2; text-align: center; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); color: #fff; }
.contact h2 .grad { background: linear-gradient(105deg, var(--sky), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact p { margin: 22px auto 0; max-width: 52ch; color: var(--on-dark-soft); font-size: 1.1rem; }
.contact__cards { margin-top: 48px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.ccard { display: flex; align-items: center; gap: 16px; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  padding: 20px 26px; transition: .4s var(--ease); min-width: 260px; }
.ccard:hover { transform: translateY(-5px); border-color: rgba(79,155,255,.5); background: rgba(255,255,255,.07); }
.ccard .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg,var(--blue),var(--cyan)); flex: none; }
.ccard .ico svg { width: 22px; height: 22px; stroke: #fff; }
.ccard small { display: block; color: var(--on-dark-soft); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.ccard b { color: #fff; font-size: 1.05rem; font-weight: 700; }

/* footer */
.foot { background: var(--ink); color: var(--on-dark-soft); padding: 40px 0; border-top: 1px solid var(--line-d); }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .86rem; }
.foot a:hover { color: #fff; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__portrait { order: -1; width: min(78%, 320px); }
  .portrait-badge { left: 0; }
  .exp__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 34px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tl__era { grid-template-columns: 1fr; gap: 16px; }
  .tl__items { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,18,33,.97); backdrop-filter: blur(18px); padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid rgba(255,255,255,.1); transform: translateY(-120%); transition: transform .45s var(--ease); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: block; }
  .hero__meta { gap: 24px; }
  .gallery { gap: 14px; grid-template-columns: 1fr; }
  .gitem { aspect-ratio: 16/10; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 6px 18px; }
  body { font-size: 16px; }
}
