@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Initial hidden state — prevents flash before animate.js runs */
.site-avatar-wrap, .site-name, .site-bio,
.cv-section-title, .work-card, .cv-row, .contact-row,
.back-btn, .project-title, .project-meta,
.img-block, .img-grid-2, .video-embed, .callout, blockquote, .project-content h2 {
  opacity: 0;
}

/* Revealed state — set by JS after animation; restores hover/transitions */
.is-revealed {
  opacity: 1;
}

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

:root {
  --text:   oklch(0.162 0 0);
  --gray:   oklch(0.549 0 0);
  --muted:  oklch(0.695 0 0);
  --border: oklch(0.879 0 0);
  --bg:     oklch(1 0 0);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-feature-settings: 'ss05' 1;
}

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

/* ── Page wrapper ── */
.page-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 64px;
}

.project-page .page-wrapper {
  max-width: 960px;
}

/* ── Header ── */
.site-header {
  margin-bottom: 48px;
}

.site-avatar-wrap {
  width: 96px;
  height: 96px;
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.site-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.site-name {
  font-size: clamp(16px, 4.5vw, 18px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.site-bio {
  font-size: clamp(14px, 3.8vw, 15px);
  font-weight: 450;
  letter-spacing: 0;
  color: var(--gray);
  line-height: 1.64;
  max-width: 100%;
  text-wrap: balance;
}

/* ── Sections ── */
.cv-section {
  margin-bottom: 48px;
}

.cv-section-title {
  font-size: clamp(16px, 4.5vw, 18px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 16px;
}

/* ── Selected Work cards ── */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.work-cover,
.work-info {
  transition: opacity 0.15s ease;
}

.work-card:hover .work-cover,
.work-card:hover .work-info {
  opacity: 0.75;
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  order: 2;
}

.work-cover {
  order: 1;
}

.work-title {
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 450;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.5;
}

.work-subtitle {
  font-size: clamp(13px, 3.5vw, 14px);
  font-weight: 450;
  letter-spacing: 0;
  color: var(--gray);
  line-height: 1.8;
}

.work-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: oklch(0.965 0 0);
  overflow: hidden;
  border-radius: 0;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── Experience / Education rows ── */
.cv-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  align-items: start;
}

.cv-date {
  font-size: clamp(13px, 3.5vw, 14px);
  letter-spacing: 0;
  color: oklch(0.606 0 0);
  line-height: 18px;
  white-space: nowrap;
}

.cv-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cv-name {
  font-size: clamp(14px, 3.8vw, 15px);
  letter-spacing: 0;
  color: var(--text);
  line-height: 18px;
}

.cv-name a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.cv-name a:hover {
  color: oklch(0.606 0 0);
}

.cv-location {
  font-size: clamp(13px, 3.5vw, 14px);
  letter-spacing: 0;
  color: var(--gray);
  line-height: 25px;
}

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

/* ── Contact rows ── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: baseline;
}

.contact-label {
  font-size: clamp(13px, 3.5vw, 14px);
  letter-spacing: 0;
  color: oklch(0.606 0 0);
  line-height: 1.8;
}

.contact-value {
  font-size: clamp(14px, 4vw, 16px);
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-value:hover {
  opacity: 0.7;
}

/* ══════════════════════════════════════════
   PROJECT PAGE STYLES
══════════════════════════════════════════ */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(13px, 3.5vw, 14px);
  font-weight: 450;
  letter-spacing: 0;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 48px;
  touch-action: manipulation;
  transition: color 0.15s ease;
}
.back-btn:hover {
  color: var(--text);
}
.back-btn:hover .back-arrow {
  transform: translateX(-2px);
}
.back-arrow {
  transition: transform 0.15s ease;
}
.back-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 0;
}

.project-title {
  font-size: clamp(20px, 5.5vw, 24px);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.project-link {
  font-size: clamp(14px, 4vw, 16px);
  letter-spacing: 0;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.project-link:hover { color: var(--text); }

.project-desc {
  font-size: clamp(14px, 4vw, 16px);
  letter-spacing: 0;
  color: oklch(0.348 0 0);
  line-height: 1.6;
  max-width: 640px;
  text-wrap: balance;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-content h2 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -4px;
}

.img-block {
  margin: 12px 0;
}

.img-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.img-grid-2 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.callout {
  border-left: 1px solid var(--border);
  padding: 0 0 0 14px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
  line-height: 1.7;
}

.callout-body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray);
}

blockquote {
  border-left: 2px solid var(--border);
  padding: 2px 0 2px 14px;
  color: var(--gray);
  font-size: 15px;
  letter-spacing: 0;
  margin: 12px 0;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0;
  margin: 12px 0;
  border: 1px solid var(--border);
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.caption {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Project social links ── */
.project-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding-top: 64px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.social-icon-btn:hover {
  color: oklch(0.606 0 0);
}

.social-icon-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 0;
}
