/* === TOKENS === */
:root {
  --bg: #09090b;
  --panel: #0d0d10;
  --card: #0c0c0f;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #ededf0;
  --muted: #a0a0a8;
  --dim: #6c6c75;
  --accent: #7c82f0;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(124, 130, 240, 0.32);
  color: #fff;
}

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

h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === LAYOUT === */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 9, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  display: inline-flex;
  color: var(--dim);
  transition: color 0.15s;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--muted);
}

.main-nav a { transition: color 0.15s; }
.main-nav a:hover { color: var(--text); }

.btn-nav-contact {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.btn-nav-contact:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: #fafafa;
  color: #09090b;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #fafafa;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary:hover {
  background: #e7e7ea;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--line2);
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

.btn-ghost:hover { color: var(--text); }

/* === FOCUS === */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === INTRO (plain static header, no hero spectacle) === */
.intro-section {
  padding: clamp(48px, 8vw, 84px) 0 clamp(40px, 6vw, 64px);
}

.intro-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.intro-photo {
  flex: none;
  width: 200px;
}

.intro-avatar {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--line2);
}

.intro-text {
  min-width: 0;
  padding-top: 8px;
}

.intro-availability {
  display: block;
  margin-bottom: 14px;
}

.intro-name {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.intro-stance {
  margin-top: 20px;
  max-width: 74ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.intro-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line2);
  transition: text-decoration-color 0.15s;
}

.intro-link:hover { text-decoration-color: var(--text); }

/* === PILLAR RAILS === */
.pillars-section {
  padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 8vw, 96px);
}

.pillar-rail {
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.pillar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  margin-bottom: 20px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pillar-desc {
  flex: 1;
  min-width: 260px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-item { display: block; }

.post-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 12px 4px;
  transition: padding-left 0.2s ease;
}

.post-link:hover { padding-left: 10px; }

.post-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--text);
}

.post-meta {
  flex: none;
  color: var(--dim);
}

.post-list-empty {
  color: var(--dim);
  padding: 4px;
}

/* === PROSE (essay reading typography) === */
.prose {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  color: var(--text);
  max-width: 66ch;
}

.prose p { margin-top: 1.4em; }
.prose p:first-of-type { margin-top: 0; }

.prose-formula {
  font-family: 'Geist Mono', monospace;
  font-size: 1.05rem;
  color: var(--text);
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prose-meta {
  margin-bottom: clamp(28px, 5vw, 44px);
}

.prose-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.prose-summary {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
}


/* === SECTIONS === */
.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-ruled {
  border-top: 1px solid var(--line);
}

.contact-section {
  padding-bottom: clamp(40px, 6vw, 72px);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.section-title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* === PROOF CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

.proof-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.proof-card:hover {
  transform: translateY(-3px);
  border-color: var(--line2);
  background: #101014;
}

/* <a> cards need block display to match <article> */
a.proof-card {
  display: flex;
  cursor: pointer;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.card-link-icon {
  margin-left: auto;
  font-size: 13px;
  color: var(--dim);
  transition: color 0.15s, transform 0.15s;
}

a.proof-card:hover .card-link-icon {
  color: var(--muted);
  transform: translate(2px, -2px);
}

.card-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: 6px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card-readmore {
  margin-top: 18px;
  color: var(--muted);
}

.card-label {
  margin-top: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--dim);
}

.card-lines {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-lines li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.card-lines li::before {
  content: '';
  display: block;
  margin-top: 7px;
  width: 5px;
  height: 5px;
  background: var(--line2);
  border-radius: 1px;
  flex: none;
}

.tier-note {
  margin-top: 20px;
  color: var(--dim);
}

/* === ROLES === */
.role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  padding: 24px 4px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.2s ease;
}

.role-row:hover { padding-left: 12px; }

.role-num {
  width: 28px;
  flex: none;
}

.role-title {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  min-width: 260px;
  flex: 1;
}

.role-desc {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}

.roles-rule {
  border-top: 1px solid var(--line);
}

/* === CONTACT === */
.contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(130% 130% at 50% 0%, #101016 0%, #0a0a0c 60%);
  padding: clamp(36px, 5vw, 64px);
}

.contact-title {
  margin-top: 16px;
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.contact-sub {
  margin-top: 18px;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* === CV PAGE === */
.cv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.cv-name {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cv-role {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cv-profile {
  max-width: 100%;
  padding-bottom: clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.cv-section-heading {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.cv-section-heading-spaced {
  display: block;
  margin-top: clamp(24px, 3vw, 32px);
}

.cv-entry {
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}

.cv-experience .cv-section-heading {
  display: block;
  padding-top: clamp(28px, 4vw, 36px);
}

.cv-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
}

.cv-entry-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cv-entry-dates {
  flex: none;
  color: var(--dim);
}

.cv-entry-context {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.94rem;
}

.cv-entry .card-lines { margin-top: 16px; }

.cv-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 36px);
}

.cv-cred {
  margin-top: 18px;
}

.cv-cred:first-of-type { margin-top: 16px; }

.cv-cred-title {
  font-size: 0.98rem;
  font-weight: 500;
}

.cv-cred-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .cv-columns { grid-template-columns: 1fr; }
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-reading {
  padding-top: 26px;
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--muted);
}

.footer-inner {
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: var(--dim);
}

.footer-inner a {
  transition: color 0.15s;
}

.footer-inner a:hover { color: var(--text); }

/* === UTILITIES === */
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: 'Geist Mono', monospace; }
.mono-sm {
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.mono-xs {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--dim);
}

/* === REVEAL ANIMATION === */
[data-reveal-hidden] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal-visible] {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* === RESPONSIVE === */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .role-title { min-width: 100%; }
  .role-desc { min-width: 100%; }
  .intro-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .intro-photo { width: 140px; }
  .intro-avatar { width: 140px; height: 140px; }
}

@media (max-width: 480px) {
  .contact-ctas { flex-direction: column; }
  .contact-ctas .btn-primary,
  .contact-ctas .btn-secondary { width: 100%; justify-content: center; }
}
