/* ============================================================
   YIANNI PSALTIS — Personal Brand Site
   Holographik Studio Aesthetic: minimal, typography-driven
   ============================================================ */

/* --- Reset & Custom Properties --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ── Background & Surface ── */
  --bg: #f8f9fb;
  --bg2: #eef0f4;
  --bg3: #e2e5eb;
  --surface: #fff;

  /* ── Text ── */
  --ink: #0a0f1a;
  --tx: #1a1f2e;
  --tx2: #3d4555;
  --tx3: #6b7280;
  --tx4: #9ca3af;

  /* ── Borders ── */
  --border: #dde1e8;
  --border2: #c5cad4;

  /* ══════════════════════════════════════════════
     ACCENT THEME — uncomment ONE block below
     ══════════════════════════════════════════════ */

  /* ── NAVY (Georgetown) ── */
  --accent: #041E42;
  --accent2: #1a3a6b;
  --accent-light: rgba(4, 30, 66, .06);
  --accent-glow: rgba(26, 58, 107, .12);

  /* ── SILVER (uncomment to swap) ──
  --accent: #4a5568;
  --accent2: #718096;
  --accent-light: rgba(74, 85, 104, .06);
  --accent-glow: rgba(113, 128, 150, .12);
  */

  /* Legacy aliases — keeps the rest of CSS working */
  --gold: var(--accent);
  --gold2: var(--accent2);
  --gold-light: var(--accent-light);
  --gold-glow: var(--accent-glow);

  --heading: 'Inter', -apple-system, system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  --mono: 'DM Mono', 'SF Mono', monospace;
  --max-w: 1120px;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --transition: .4s ease-in-out;
}

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- Utilities --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx3);
}

.section-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
  display: block;
}

.section-heading {
  font-family: var(--heading);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--ink);
}

.epigraph {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--tx3);
  letter-spacing: .01em;
  line-height: 1.65;
  margin-top: 0.5rem;
  margin-bottom: 3.5rem;
  max-width: 44ch;
}

/* --- Page Switching --- */
.page {
  display: none;
  padding-top: 0;
  opacity: 0;
  transition: opacity .4s ease;
}

.page.active { display: block; }
.page.visible { opacity: 1; }


/* Fade-up entrance for elements within active page */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.page.visible .fade-in {
  animation: fadeUp 1s var(--ease-out) both;
}

.page.visible .fade-in-d1 { animation-delay: .1s; }
.page.visible .fade-in-d2 { animation-delay: .2s; }
.page.visible .fade-in-d3 { animation-delay: .3s; }
.page.visible .fade-in-d4 { animation-delay: .4s; }
.page.visible .fade-in-d5 { animation-delay: .5s; }
.page.visible .fade-in-d6 { animation-delay: .6s; }

/* Grid border grow-in animations (Sequoia-inspired) */
@keyframes growX {
  0%, 40% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes growY {
  0%, 40% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

.page.visible .section-header {
  animation: fadeUp .7s var(--ease-out) both;
}

.page.visible .section-header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  transform-origin: left;
  animation: growX 1s ease-in-out both;
}

/* --- Hero Scribble Animation (SVG path drawing, Sequoia-inspired) --- */
.hero-scribble {
  position: absolute;
  z-index: -1;
  fill: none;
  stroke: var(--accent2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-miterlimit: 0;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  opacity: 0;
}

.page.visible .hero-scribble {
  animation: drawScribble 2s ease-out .8s forwards;
}

@keyframes drawScribble {
  0% { stroke-dashoffset: 600; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.hero-scribble-underline {
  position: absolute;
  fill: none;
  stroke: var(--accent2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0;
}

.page.visible .hero-scribble-underline {
  animation: drawScribbleUnderline .6s ease-out 3.2s forwards;
}

@keyframes drawScribbleUnderline {
  0% { stroke-dashoffset: 400; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.hero-tagline {
  position: relative;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: .8rem 0;
  background: rgba(248, 249, 251, .92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .3s;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--heading);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx4);
  opacity: .5;
  transition: opacity .4s ease, color .4s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  opacity: 1;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .2s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity .3s;
}

.nav-mobile.open {
  display: flex;
  opacity: 1;
}

.nav-mobile a {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .25s;
}

.nav-mobile a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero-left {
  padding: 1.5rem 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 1.5rem 0;
}

/* Hero name */
.hero-name {
  display: flex;
  flex-direction: column;
}

.hero-name .h1,
.hero-name .h2 {
  font-family: var(--heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: .88;
  text-transform: none;
  color: var(--ink);
}

.hero-name-line {
  display: flex;
  align-items: baseline;
  gap: .3em;
}

.hero-suffix {
  font-size: clamp(1rem, 2vw, 1.7rem);
  font-weight: 400;
  color: var(--tx3);
}

.hero-rule {
  display: none;
}

@keyframes expandIn {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

.hero-tagline {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--tx4);
  max-width: 38ch;
  line-height: 1.7;
  position: relative;
}

.hero-credo {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--tx3);
}

.hero-role {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx4);
}

/* --- Home Credo --- */
.home-credo {
  padding: 3rem 0 1rem;
  text-align: center;
}

.home-credo p {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--tx3);
}

/* --- Proof Bar (merged affiliations + stages) --- */
.proof-bar {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.proof-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.proof-item {
  font-family: var(--heading);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx4);
  text-align: center;
  line-height: 1.4;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: .12rem;
}

.hero-meta-value {
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-scroll {
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx4);
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: color .25s;
}

.hero-scroll:hover { color: var(--gold); }

.hero-scroll-arrow {
  display: inline-block;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Photo treatment */
.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-photo-mask {
  position: relative;
  overflow: hidden;
  max-height: 560px;
  border-radius: 6px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 92%, transparent 100%);
}

.hero-photo-mask::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: .02;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: color;
}

.hero-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}

.photo-ring {
  position: absolute;
  top: -30px; right: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  border: 1px solid var(--gold2);
  border-radius: 50%;
  opacity: .12;
  z-index: 1;
  animation: spin 60s linear infinite;
}

.photo-ring-2 {
  position: absolute;
  top: -55px; right: -55px;
  width: calc(100% + 110px);
  height: calc(100% + 110px);
  border: 1px dashed var(--gold2);
  border-radius: 50%;
  opacity: .06;
  z-index: 0;
  animation: spin 90s linear infinite reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hero decorative elements */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--gold2);
  opacity: .15;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(15px, -10px); }
  50% { transform: translate(-5px, -18px); }
  75% { transform: translate(-15px, -5px); }
  100% { transform: translate(0, 0); }
}

.p1 { width: 80px; height: 80px; top: 15%; right: 20%; animation: drift 12s ease-in-out infinite; }
.p2 { width: 50px; height: 50px; top: 40%; right: 35%; animation: drift 16s ease-in-out infinite 2s; border-style: dashed; }
.p3 { width: 120px; height: 120px; top: 65%; right: 10%; animation: drift 20s ease-in-out infinite 4s; opacity: .08; }
.p4 { width: 35px; height: 35px; top: 25%; right: 55%; animation: float 8s ease-in-out infinite; opacity: .12; }
.p5 { width: 60px; height: 60px; top: 75%; right: 45%; animation: drift 14s ease-in-out infinite 3s; border-style: dotted; opacity: .1; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { padding: 4.5rem 0 6rem; }

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-decor {
  position: absolute;
  inset: -24px;
  pointer-events: none;
  z-index: 1;
}

.about-photo {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 4px 24px rgba(4, 30, 66, .12);
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(4, 30, 66, .18);
  pointer-events: none;
  border-radius: 12px;
}

.about-lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--tx2);
  max-width: 34ch;
}

.about-lead strong {
  color: var(--ink);
  font-weight: 600;
}

.about-body {
  margin-top: 1.5rem;
  font-size: .96rem;
  line-height: 1.82;
  color: var(--tx3);
  max-width: 48ch;
}

.about-body + .about-body { margin-top: 1rem; }

.about-credo {
  margin-top: 2.2rem;
  padding-top: 1.8rem;
}

.about-credo blockquote {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
}

/* --- As Featured At --- */
.featured-at {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.featured-at .mono {
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: .18em;
}

.featured-logos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.featured-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  transition: transform var(--transition);
}

.featured-logo-item:hover {
  transform: translateY(-2px);
}

.featured-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
  opacity: .7;
  transition: opacity var(--transition);
}

.featured-logo-item:hover .featured-logo-img {
  opacity: 1;
}

.featured-logo {
  font-family: var(--heading);
  font-size: .78rem;
  font-weight: 600;
  color: var(--tx4);
  letter-spacing: -.01em;
  text-align: center;
  max-width: 160px;
  transition: color var(--transition);
}

.featured-logo-item:hover .featured-logo {
  color: var(--ink);
}

.featured-wordmark {
  font-family: var(--heading);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tx4);
  transition: color var(--transition);
}

.featured-logo-item:hover .featured-wordmark {
  color: var(--ink);
}

.xprize-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.xprize-mark svg {
  width: 36px;
  height: 36px;
}

.xprize-text {
  display: flex;
  flex-direction: column;
  font-family: var(--heading);
  font-weight: 700;
  font-size: .7rem;
  line-height: 1.2;
  letter-spacing: .06em;
  color: var(--tx3);
  transition: color var(--transition);
}

.featured-logo-item:hover .xprize-text {
  color: var(--ink);
}

.featured-logo-wide {
  height: 36px;
  width: auto;
  opacity: .6;
  transition: opacity var(--transition);
}

.featured-logo-item:hover .featured-logo-wide {
  opacity: 1;
}

/* ============================================================
   THESIS
   ============================================================ */
.thesis-section { padding: 4.5rem 0 6rem; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  position: relative;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 1.5rem;
}

.thesis-card {
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: background var(--transition), transform .25s var(--ease-spring), box-shadow var(--transition);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.thesis-card:last-child { border-right: none; }

.thesis-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}

.thesis-card:hover::before { transform: scaleX(1); }
.thesis-card:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 30, 66, .06);
}

.thesis-card h3 {
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.thesis-card p {
  font-size: .92rem;
  line-height: 1.72;
  color: var(--tx3);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-section { padding: 4.5rem 0 6rem; }

.portfolio-category {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
  margin-top: 2.2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.portfolio-card {
  padding: 1.8rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.portfolio-card:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(4, 30, 66, .08);
}

/* Slide-in left accent bar on hover */
.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease-out);
}

.portfolio-card:hover::after {
  transform: scaleY(1);
}

.portfolio-card-top {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.portfolio-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.portfolio-name {
  font-family: var(--heading);
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink);
}

.portfolio-arrow {
  font-size: .72rem;
  color: var(--tx4);
  margin-left: auto;
  transition: color .25s, transform .25s var(--ease-out);
}

.portfolio-card:hover .portfolio-arrow {
  color: var(--gold);
  transform: translate(2px, -2px);
}

.portfolio-label {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx4);
}

.portfolio-desc {
  font-size: .82rem;
  color: var(--tx3);
  line-height: 1.5;
  max-height: none;
  overflow: visible;
  opacity: 1;
}

/* Staggered entrance for portfolio cards */
.page.visible .portfolio-card {
  animation: fadeUp .5s var(--ease-out) both;
}

.page.visible .portfolio-card:nth-child(1) { animation-delay: .05s; }
.page.visible .portfolio-card:nth-child(2) { animation-delay: .1s; }
.page.visible .portfolio-card:nth-child(3) { animation-delay: .15s; }
.page.visible .portfolio-card:nth-child(4) { animation-delay: .2s; }
.page.visible .portfolio-card:nth-child(5) { animation-delay: .25s; }
.page.visible .portfolio-card:nth-child(6) { animation-delay: .3s; }
.page.visible .portfolio-card:nth-child(7) { animation-delay: .35s; }
.page.visible .portfolio-card:nth-child(8) { animation-delay: .4s; }
.page.visible .portfolio-card:nth-child(9) { animation-delay: .45s; }
.page.visible .portfolio-card:nth-child(10) { animation-delay: .5s; }
.page.visible .portfolio-card:nth-child(11) { animation-delay: .55s; }

.portfolio-stealth {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx4);
  font-style: italic;
}

.portfolio-stealth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .64rem;
  color: var(--tx4);
  font-weight: 600;
  background: none;
  border: 1px dashed var(--border2);
  border-radius: 4px;
}

/* ============================================================
   PATH / TIMELINE
   ============================================================ */
.path-section { padding: 4.5rem 0 6rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.8rem;
  padding: 2rem 1rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background .3s;
  border-radius: 2px;
}

.timeline-item:first-of-type { border-top: 1px solid var(--border); }
.timeline-item:hover { background: var(--gold-light); }

/* Sequoia-style timeline border grow-in */
.page.visible .timeline-item {
  animation: fadeUp .6s var(--ease-out) both;
}

.page.visible .timeline-item:nth-child(2) { animation-delay: .1s; }
.page.visible .timeline-item:nth-child(3) { animation-delay: .2s; }

.timeline-date {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .1em;
  color: var(--tx4);
  padding-top: .25rem;
}

.timeline-role {
  font-family: var(--mono);
  font-size: .70rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx3);
  margin-top: .1rem;
  display: block;
}

.timeline-body h4 {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--ink);
}

.timeline-body p {
  font-size: .92rem;
  color: var(--tx3);
  line-height: 1.78;
  max-width: 52ch;
}

.path-photo {
  margin: 1.5rem 0;
  max-width: 720px;
}

.path-photo img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.path-photo-inline {
  margin-top: 1rem;
}

.path-photo-inline img {
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.path-photo-cap {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--tx4);
  margin-top: .5rem;
  letter-spacing: .04em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 4.5rem 0 5rem; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: end;
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
}

.contact-heading {
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}

.contact-subtitle {
  margin-top: 1rem;
  font-size: .92rem;
  color: var(--tx4);
  line-height: 1.5;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.contact-link {
  font-size: .96rem;
  color: var(--tx3);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.contact-link:hover { color: var(--ink); }

.contact-link .arrow {
  font-size: .65em;
  transition: transform var(--transition);
}

.contact-link:hover .arrow {
  transform: translate(2px, -2px);
}

.social-row {
  display: flex;
  gap: 1.4rem;
  margin-top: .2rem;
}

/* ============================================================
   DIVIDER BANNERS (between sections)
   ============================================================ */
.section-divider {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 3rem 0;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2rem 0;
  background: var(--ink);
  margin-top: auto;
}

.footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer p {
  font-family: var(--mono);
  font-size: .64rem;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer a {
  color: rgba(255, 255, 255, .75);
  transition: color var(--transition);
}

.footer a:hover {
  color: #fff;
}

/* ============================================================
   SOCIAL PROOF BAR
   ============================================================ */
.social-proof {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.social-proof .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.social-proof span {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tx4);
  font-variant: small-caps;
}

.social-proof-dot {
  color: var(--border2);
  font-size: .8rem;
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.testimonial blockquote {
  max-width: 52ch;
  margin: 0 auto;
}

.testimonial blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--tx2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.testimonial blockquote cite {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tx4);
  font-style: normal;
}

/* ============================================================
   WRITING / LATEST THINKING
   ============================================================ */
.writing-inner {
  padding: 6rem 0;
}

.article-cards {
  margin-top: 1.5rem;
}

.article-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1.2rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), padding-left .25s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.article-card:first-child {
  border-top: 1px solid var(--border);
}

.article-card:hover {
  background: var(--gold-light);
  padding-left: 2rem;
}

.article-card-content {
  flex: 1;
}

.article-card h3 {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: .35rem;
}

.article-card-subtitle {
  font-size: .92rem;
  color: var(--tx3);
  line-height: 1.6;
}

.article-card-date {
  font-size: .68rem;
  color: var(--tx4);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Staggered entrance for article cards */
.page.visible .article-card {
  animation: fadeUp .5s var(--ease-out) both;
}

/* ============================================================
   RESPONSIVE — Tablet (< 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-right {
    order: -1;
    padding: 4rem 0 1rem;
    justify-content: center;
  }

  .hero-left {
    padding: 1rem 0 3rem;
  }

  .hero-photo-wrap {
    max-width: 300px;
  }

  .hero-photo-mask {
    max-height: 420px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo-wrap {
    max-width: 320px;
  }

  .thesis-grid {
    grid-template-columns: 1fr;
  }

  .thesis-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .featured-logos {
    gap: 2rem;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (< 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-brand {
    font-size: .76rem;
  }

  /* Hero */
  .hero {
    padding-top: 2.5rem;
  }

  .hero-name .h1,
  .hero-name .h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-suffix {
    font-size: clamp(.8rem, 2vw, 1.2rem);
  }

  .hero-tagline {
    font-size: .95rem;
  }

  .hero-meta {
    gap: 1.2rem;
  }

  .hero-meta-value {
    font-size: .88rem;
  }

  .hero-right {
    padding: 3rem 0 1rem;
  }

  .hero-photo-wrap {
    max-width: 240px;
  }

  .hero-photo-mask {
    max-height: 340px;
  }

  /* Social proof */
  .social-proof .container {
    gap: .4rem .5rem;
  }

  .social-proof span {
    font-size: .58rem;
    letter-spacing: .1em;
  }

  /* About */
  .about-section {
    padding: 3.5rem 0 4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-photo-wrap {
    max-width: 260px;
  }

  .about-lead {
    font-size: 1.15rem;
  }

  .about-body {
    font-size: .9rem;
  }

  .featured-at {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .featured-logos {
    gap: 1.5rem;
  }

  .featured-logo {
    font-size: .68rem;
    max-width: 100px;
  }

  .featured-logo-img {
    width: 28px;
    height: 28px;
  }

  .featured-wordmark {
    font-size: .72rem;
  }

  /* Thesis */
  .thesis-section {
    padding: 3.5rem 0 4rem;
  }

  .thesis-card {
    padding: 1.6rem 1.2rem;
  }

  .thesis-card h3 {
    font-size: 1.1rem;
  }

  /* Portfolio */
  .portfolio-section {
    padding: 3.5rem 0 4rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .portfolio-card {
    padding: 1rem .8rem;
  }

  .portfolio-name {
    font-size: .85rem;
  }

  .portfolio-desc {
    font-size: .76rem;
  }

  /* Path */
  .path-section {
    padding: 3.5rem 0 4rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: .3rem;
    padding: 1.5rem .5rem;
  }

  .timeline-body h4 {
    font-size: 1.05rem;
  }

  .timeline-body p {
    font-size: .86rem;
  }

  .path-photo-inline img {
    max-width: 100%;
  }

  .path-photo img {
    border-radius: 6px;
  }

  /* Contact */
  .contact-section {
    padding: 3.5rem 0 3rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .contact-heading {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-epigraph {
    max-width: none;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    text-align: center;
  }

  /* Section headings */
  .section-heading {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .epigraph {
    font-size: 1.05rem;
  }

  /* Mobile nav overlay */
  .nav-mobile a {
    font-size: 1.2rem;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-name .h1,
  .hero-name .h2 {
    font-size: clamp(2rem, 14vw, 3rem);
  }

  .hero-photo-wrap {
    max-width: 200px;
  }

  .hero-photo-mask {
    max-height: 280px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .featured-logos {
    flex-direction: column;
    gap: 1.2rem;
  }

  .featured-logo {
    max-width: none;
  }

  .social-proof .container {
    flex-direction: column;
    gap: .3rem;
  }

  .social-proof-dot {
    display: none;
  }
}

/* ============================================================
   LINK UNDERLINE ANIMATION (micro-interaction)
   ============================================================ */
/* Sequoia-style text underline fade */
.link-animate {
  text-decoration: underline;
  text-decoration-color: var(--gold2);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition), color var(--transition);
}

.link-animate:hover {
  text-decoration-color: transparent;
  color: var(--ink);
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .nav-hamburger, .hero-particles,
  .photo-ring, .photo-ring-2, .section-divider { display: none; }
  body { background: #fff; color: #000; }
}
