:root {
  --fg: #F3F1EC;
  --text: #E6E4DF;
  --muted: #B3B1AC;
  --line: #1F1F1F;
  --line-2: #262626;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: var(--fg);
  font-family: 'Host Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(243, 241, 236, .3); }
a:hover { text-decoration-color: var(--fg); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--fg); color: #000; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.greek { font-family: 'GFS Didot', 'Didot', 'Bodoni 72', Georgia, serif; font-weight: 400; }

/* Background: drifting glows, cursor aura, grain */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(30px); will-change: transform;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle at center, #000 0%, transparent 65%);
}
.o1 { left: -12rem; top: -14rem; width: 46rem; height: 46rem; background-color: rgba(72, 92, 255, .34); animation: drift1 26s ease-in-out infinite alternate; }
.o2 { right: -16rem; top: 30%; width: 50rem; height: 50rem; background-color: rgba(28, 186, 168, .22); animation: drift2 32s ease-in-out infinite alternate; }
.o3 { left: 20%; bottom: -22rem; width: 48rem; height: 48rem; background-color: rgba(150, 92, 255, .26); animation: drift3 29s ease-in-out infinite alternate; }
@keyframes drift1 { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(55%,35%,0) scale(1.15); } 100% { transform: translate3d(20%,70%,0) scale(.9); } }
@keyframes drift2 { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-45%,-30%,0) scale(.9); } 100% { transform: translate3d(-70%,25%,0) scale(1.1); } }
@keyframes drift3 { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(40%,-55%,0) scale(1.2); } 100% { transform: translate3d(-35%,-25%,0) scale(1); } }

.aura {
  position: fixed; left: 0; top: 0; z-index: 0; width: 56rem; height: 56rem; margin: -28rem 0 0 -28rem;
  pointer-events: none; border-radius: 50%; background-color: rgba(58, 108, 255, .46);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, rgba(0,0,0,.5) 30%, transparent 64%);
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0,0,0,.5) 30%, transparent 64%);
  filter: blur(24px); transform: translate3d(65vw, 20rem, 0); transition: background-color .9s ease; will-change: transform;
}
.grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .2; background-image: url(assets/grain.png); background-size: 240px 240px; }

.page { position: relative; z-index: 1; }

/* Header */
.site-header { max-width: 72rem; margin: 0 auto; padding: 1.25rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; }
.local { font-size: .8125rem; color: var(--muted); }
.local time { margin-left: .375rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.nav { display: flex; gap: 1.25rem; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: .8125rem; color: var(--muted); text-decoration: none; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

main { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }

/* Entrance + reveal */
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade { animation: fade .9s var(--ease) both; }
.ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.ready .reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { min-height: calc(100vh - 5.25rem); min-height: calc(100svh - 5.25rem); display: flex; align-items: center; padding: 3rem 0 4rem; }
.name { margin: 0; font-weight: 500; font-size: clamp(2.5rem, 5.5vw, 4.25rem); line-height: 1; letter-spacing: -.04em; }
.hero-grid { width: 100%; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 3rem 5rem; }
.hero-left { flex: 1 1 24rem; min-width: 0; }
.bio { margin-top: 2rem; display: flex; flex-direction: column; gap: .375rem; font-size: 1.25rem; line-height: 1.45; letter-spacing: -.01em; color: var(--text); }
.bio p { margin: 0; }
.edu { flex: 0 1 22rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: .875rem; }
.label { margin: 0; font-size: .8125rem; color: var(--muted); }
.edu dl { margin: 1.125rem 0 0; display: grid; grid-template-columns: 4rem 1fr; gap: .375rem 1rem; line-height: 1.5; }
.edu dt { color: var(--muted); }
.edu dd { margin: 0; color: var(--fg); }
.edu-hkis { padding-top: 1.5rem; border-top: 1px solid var(--line-2); }

/* Index rows */
.index { margin-top: 1rem; border-bottom: 1px solid var(--line); }
.row-btn { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 2rem; padding: 1.375rem 0; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: opacity .35s ease; }
.index:hover .row-btn { opacity: .35; }
.index .row-btn:hover, .index .row-btn:focus-visible { opacity: 1; }
.lbl { display: inline-block; font-size: clamp(1.875rem, 4.2vw, 3.25rem); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; transition: transform .5s var(--ease); }
.row-btn:hover .lbl, .row-btn:focus-visible .lbl { transform: translateX(14px); }
.row-meta { display: flex; align-items: center; gap: 1rem; font-size: .875rem; color: var(--muted); }
.plus { transition: transform .4s var(--ease); }
.row.open .plus { transform: rotate(45deg); }
.acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.row.open .acc { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear .55s; }
.row.open .acc-inner { visibility: visible; transition-delay: 0s; }
.panel { padding: .75rem 0 3.5rem; }
.row.open .stg > * { animation: fade .7s var(--ease) both; }
.row.open .stg > *:nth-child(2) { animation-delay: .08s; }
.row.open .stg > *:nth-child(3) { animation-delay: .16s; }

/* Experience */
.exp { display: flex; flex-direction: column; gap: 2rem; max-width: 46rem; }
.firms { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2.75rem; }
.firm { display: flex; align-items: center; min-height: 52px; padding: 0 0 .5rem; background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; transition: border-color .25s ease; }
.firm img { width: auto; opacity: .35; transition: opacity .25s ease; }
.firm:hover img, .firm[aria-pressed="true"] img { opacity: 1; }
.firm[aria-pressed="true"] { border-bottom-color: var(--fg); }
.role { margin: 0; font-size: 1rem; color: var(--fg); }
.where { margin: 0; font-size: .875rem; color: var(--muted); }
.deal-wrap { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #2A2A2A; container-type: inline-size; }
.deal { margin: .375rem 0 0; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; white-space: nowrap; font-size: clamp(.8125rem, 2.7cqi, 1.375rem); }

/* Athletics */
.ath { display: flex; flex-direction: column; gap: 2rem; }
.cal-wrap { container-type: inline-size; }
.cal-row { display: flex; align-items: center; gap: 1.25rem; }
.cal-row img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; }
.cal-line { margin: 0; min-width: 0; line-height: 1.55; color: var(--text); white-space: nowrap; font-size: clamp(.75rem, calc((100cqi - 84px) / 49), 1.0625rem); }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.ph { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: #0B0B0B; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ph:hover img { transform: scale(1.04); }

/* Recognition & Leadership */
.lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem 5rem; }
.list { list-style: none; margin: .5rem 0 0; padding: 0; }
.list > li { padding: 1rem 0; border-top: 1px solid var(--line); }
.big-title { margin: 0; font-size: 1.25rem; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.sub { margin: .125rem 0 0; font-size: .875rem; color: var(--muted); }
.bap { margin: 0; font-size: 2.25rem; line-height: 1.1; letter-spacing: .14em; color: #FFF; }
.tickers { list-style: none; margin: .875rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .25rem 1rem; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Outside of Work */
.out { display: flex; flex-direction: column; gap: 3rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 2rem 1.5rem; align-items: start; }
.tile { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: .5rem 0; background: none; border: 0; color: #DAD8D3; font-family: inherit; text-align: center; cursor: pointer; transition: color .25s ease; }
.tile:hover, .tile.on { color: var(--fg); }
.tile-text { display: flex; flex-direction: column; align-items: center; gap: .125rem; line-height: 1.4; }
.tile-name { font-size: .9375rem; font-weight: 500; }
.tile-note { font-size: .8125rem; color: var(--muted); }
.ic { display: inline-flex; }
.ic.sway { transform-origin: 30% 95%; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 35% { transform: translateY(-6px); } 60% { transform: translateY(0); } 80% { transform: translateY(-2px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { 0%,100% { transform: rotate(0deg); } 30% { transform: rotate(-9deg); } 70% { transform: rotate(7deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.tile:hover .ic.bounce, .tile.on .ic.bounce { animation: bounce .9s ease infinite; }
.tile:hover .ic.spin, .tile.on .ic.spin { animation: spin 1.4s linear infinite; }
.tile:hover .ic.sway, .tile.on .ic.sway { animation: sway 1.2s ease-in-out infinite; }
.tile:hover .ic.float, .tile.on .ic.float { animation: float 1.6s ease-in-out infinite; }
.tile:hover .ic.pop, .tile.on .ic.pop { animation: pop 1s ease-in-out infinite; }
.lp { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem 5rem; max-width: 52rem; }
.lp ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.lp li { padding: .625rem 0; border-top: 1px solid var(--line); }
.lp .langs li { display: flex; justify-content: space-between; gap: 1rem; }
.lp .note { font-size: .8125rem; color: var(--muted); }

/* Contact */
.contact { padding-top: 7rem; max-width: 46rem; }
.links { list-style: none; margin: 2.75rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.links li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.links .k { flex: 0 0 6.5rem; font-size: .8125rem; color: var(--muted); }
.links a { flex: 1 1 auto; min-width: 0; font-size: 1.0625rem; text-decoration: none; }
.copy { min-height: 44px; padding: 0; background: none; border: 0; color: var(--muted); font-family: inherit; font-size: .8125rem; cursor: pointer; }
.copy:hover { color: var(--fg); }
.clocks { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem 2rem; }
.clocks time { display: block; margin-top: .25rem; font-size: 1.875rem; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

footer { max-width: 72rem; margin: 9rem auto 0; padding: 1.5rem 2rem 2.5rem; font-size: 1rem; font-weight: 500; letter-spacing: -.02em; }

@media (max-width: 760px) {
  .cal-line { white-space: normal; font-size: 1rem; }
}
@media (max-width: 640px) {
  .site-header, main, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .deal { white-space: normal; font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, .orb, .row.open .stg > *, .tile .ic { animation: none !important; }
  .ready .reveal { opacity: 1 !important; transform: none !important; }
  .acc, .row-btn, .lbl, .ph img, .plus { transition: none !important; }
}
