/* ==========================================================================
   AJ — core stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-alt: #121214;
  --bg-raised: #17171a;
  --text: #f3f1ea;
  --text-dim: #8f8d87;
  --text-faint: #56544f;
  --accent: #c9ff3d;
  --accent-dim: #8fb52c;
  --line: rgba(243, 241, 234, 0.12);
  --line-strong: rgba(243, 241, 234, 0.22);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 84px;
}

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

html { background: var(--bg); }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Loading intro ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
#loader .mark {
  font-family: var(--font-display);
  font-size: clamp(16px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 0.22em 0.32em;
  max-width: min(760px, 86vw);
}
#loader .mark span { display: inline-block; will-change: transform; }
#loader .bar-track {
  width: min(320px, 60vw);
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
#loader .bar-fill {
  position: absolute; inset: 0 100% 0 0;
  background: var(--accent);
  transform-origin: left;
}
#loader .pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ---------- Nav ---------- */
header.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 10px 16px;
  transition: color .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 1px;
  background: var(--accent);
}
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
.lang-switch button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.lang-switch button:hover { color: var(--text-dim); }
.lang-switch button.active { color: var(--accent); }
.nav-toggle { display: none; width: 28px; height: 20px; position: relative; }
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1px; background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* ---------- Main / transitions ---------- */
main#view {
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.transition-veil {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  transform: translateY(101%);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-canvas {
  position: absolute;
  top: 0; right: -5%;
  width: 60%; height: 100%;
  z-index: 1;
  opacity: 0.95;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 96px);
  max-width: 900px;
  margin: 20px 0 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  max-width: 520px;
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 36px;
}
.scroll-cue {
  position: absolute;
  bottom: 36px; left: 40px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 30px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue { to { top: 100%; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.filled { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }
.btn.filled:hover { background: transparent; color: var(--accent); }

/* ---------- Kinetic marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 44px);
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-stroke: 1px var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span.solid { -webkit-text-stroke: 0; color: var(--text-dim); }
.marquee-track i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Sections ---------- */
section { position: relative; padding: 120px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head h2 { font-size: clamp(28px, 4vw, 48px); margin-top: 16px; }
.section-head p { color: var(--text-dim); margin-top: 16px; font-size: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.stat {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--accent);
}
.stat .label { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }

/* Pillar cards (home) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar-card {
  background: var(--bg);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .4s var(--ease);
}
.pillar-card:hover { background: var(--bg-alt); }
.pillar-card .idx { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.pillar-card h3 { font-size: 26px; margin-top: 24px; }
.pillar-card p { color: var(--text-dim); font-size: 14px; margin-top: 12px; }
.pillar-card .go { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); display: flex; align-items: center; gap: 8px; transition: color .3s, gap .3s; }
.pillar-card:hover .go { color: var(--accent); gap: 14px; }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .p-a { grid-column: span 4; grid-row: span 2; }
.photo-grid .p-b { grid-column: span 2; }
.photo-grid .p-c { grid-column: span 2; }
.photo-grid .p-wide { grid-column: span 6; aspect-ratio: 21/9; }

.figure-frame { position: relative; overflow: hidden; }
.figure-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0) 60%, rgba(10,10,11,0.5));
  pointer-events: none;
}

/* Timeline (education) */
.timeline { border-top: 1px solid var(--line); }
.t-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.t-row .yr { font-family: var(--font-mono); color: var(--accent); font-size: 14px; }
.t-row h4 { font-size: 18px; font-weight: 600; }
.t-row p { color: var(--text-dim); font-size: 14px; }

/* Roles list (basketball / startup) */
.roles { border-top: 1px solid var(--line); }
.role-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.role-row h4 { font-size: 20px; margin-bottom: 6px; }
.role-row p { color: var(--text-dim); font-size: 14px; max-width: 560px; }
.role-row .tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 20px; }

/* Coming soon (blog) */
.coming-soon { text-align: center; padding: 160px 0; }
.coming-soon h2 { font-size: clamp(36px, 6vw, 72px); }
.coming-soon p { color: var(--text-dim); margin-top: 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
.contact-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.contact-links a:hover { color: var(--accent); padding-left: 10px; }
.contact-links a .arr { font-family: var(--font-mono); font-size: 14px; color: var(--text-faint); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--font-body); font-size: 15px; padding: 12px 0; resize: none;
}
.contact-form label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: -10px;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 32px;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 48px; }
.footer-top h3 { font-size: clamp(28px, 4vw, 44px); max-width: 520px; }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.footer-socials a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.04em;
}

/* ---------- Reveal utility ---------- */
.reveal { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; justify-content: flex-start; padding: 40px 24px; gap: 8px; transform: translateY(-100%); opacity: 0; transition: transform .4s var(--ease), opacity .3s; pointer-events: none; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 20px; padding: 14px 0; width: 100%; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
  .hero-canvas { width: 100%; right: 0; opacity: 0.35; }
  .grid-2, .grid-3, .contact-grid, .pillars { grid-template-columns: 1fr; }
  .pillars { border: none; }
  .pillar-card { border-bottom: 1px solid var(--line); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid .p-a { grid-column: span 2; }
  .t-row { grid-template-columns: 1fr; gap: 6px; }
  .role-row { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
