/* =============================================
   tejorugonda.com — shared stylesheet
   Inter font is loaded asynchronously from each HTML page's <head>
   (rel="stylesheet" media="print" onload trick) so it doesn't block
   render. Fallback to system sans serif if it never loads.
   ============================================= */

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

:root {
  --bg:            #0a0a0a;
  --surface:       #111111;
  --surface-2:     #161616;
  --border:        #1e1e1e;
  --border-hover:  #333333;
  --accent:        #c8f07a;
  --accent-dim:    rgba(200, 240, 122, 0.10);
  --accent-border: rgba(200, 240, 122, 0.22);
  --text:          #f0f0f0;
  --text-2:        #999999;
  --text-3:        #888888;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:         64px;
  --max-w:         960px;
  --radius:        12px;
  --radius-sm:     8px;
}

html { scroll-behavior: smooth; }

/* --- Accessibility: skip link & focus styles --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 200;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible,
.project-card:focus-visible,
.notes-link:focus-visible,
.feature-card:focus-visible,
.card:focus-visible,
.movie-card:focus-visible,
.review-card:focus-visible,
.social-link:focus-visible {
  outline-offset: 3px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* --- Page Wrapper --- */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Shared Section Styles --- */
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* --- Pulse animation --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.8); }
}

/* --- Hero (index) --- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero-portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.75rem;
  border: 1px solid var(--border);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-eyebrow-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-jump {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.2rem;
  transition: opacity 0.15s, transform 0.15s;
}
.hero-jump:hover { opacity: 0.78; transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) {
  .hero-jump { transition: none; }
  .hero-jump:hover { transform: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover { background: #d9f79a; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover { color: var(--text); border-color: #555; background: var(--surface); }

/* --- About --- */
.about-text {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.85;
}
.about-text p + p { margin-top: 1rem; }
.about-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 240, 122, 0.3);
  transition: border-color 0.15s;
}
.about-text a:hover { border-bottom-color: var(--accent); }

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.8rem;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-2); }
.social-link svg { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }

/* --- Tags (used in detail-page tech rows) --- */
.tag {
  padding: 0.28rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--border-hover); color: var(--text); }

/* --- Page Hero (blog / movies) --- */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.page-hero p {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.7;
}
/* Inline body-text links: lime + underline, never color-only.
   Lighthouse flags pure-color links as "relies on color to be
   distinguishable". A subtle border-bottom satisfies the audit
   without making the page feel underline-heavy. */
.page-hero p a,
.detail-prose a,
.state-box a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 240, 122, 0.3);
  transition: border-color 0.15s;
}
.page-hero p a:hover,
.detail-prose a:hover,
.state-box a:hover { border-bottom-color: var(--accent); }

/* --- Cards Grid --- */
.cards-section { padding: 0 0 5rem; }

.cards-meta {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

/* Blog card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}
.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-2) 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 2rem;
}
.card-num {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-source {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.845rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* Movie card (list layout) */
.movie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.movie-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.movie-poster {
  width: 68px;
  height: 102px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}
.movie-poster-placeholder {
  width: 68px;
  height: 102px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.movie-info { flex: 1; min-width: 0; }

.movie-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.movie-year {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.movie-rating {
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.movie-review {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-date {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.5rem;
}

/* --- Curated review cards (movies page) --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.review-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.review-rating {
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  line-height: 1;
}

.review-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.review-year {
  color: var(--text-3);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 0.35rem;
  letter-spacing: 0;
}

.review-quote {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  font-style: italic;
}
.review-quote::before { content: '\201C'; }
.review-quote::after  { content: '\201D'; }

/* =============================================
   Project detail pages (Ledge, Entremigas, ...)
   Reusable section blocks below.
   ============================================= */

.detail-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.detail-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.25rem;
}
.detail-tagline {
  font-size: 1.1rem;
  color: var(--text-2);
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.status-badge .dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

.detail-section { padding: 4rem 0; }
.detail-section + .detail-section { border-top: 1px solid var(--border); }

.hero-banner {
  margin: 0 0 1rem;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.detail-h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.detail-prose {
  max-width: 640px;
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.8;
}
.detail-prose p + p { margin-top: 1rem; }
.detail-prose strong { color: var(--text); font-weight: 600; }

/* Feature grid (2-4 cards, auto-fit) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Screenshot strip */
.shots-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.shot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.shot svg,
.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px var(--border);
}
.shot img { cursor: zoom-in; transition: transform 0.18s ease; }
.shot img:hover { transform: translateY(-2px); }

/* Desktop-only override: pages with fewer mockups can pin to a fixed column count */
@media (min-width: 769px) {
  .shots-strip.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Lightbox dialog */
.lightbox[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: min(92vw, 480px);
  max-height: 92vh;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  display: block;
  cursor: zoom-out;
}
.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(20,20,20,0.7);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--font);
  transition: background 0.15s, border-color 0.15s;
}
.lightbox-close:hover { background: rgba(40,40,40,0.9); border-color: rgba(255,255,255,0.32); }
@media (prefers-reduced-motion: reduce) {
  .shot img:hover { transform: none; }
  .shot img { transition: none; }
}
.shot-caption {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
  text-align: center;
  font-weight: 500;
}

/* Tech tags reuse .tag block; just provide a row wrapper */
.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.detail-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.detail-footer-cta {
  text-align: center;
  padding: 4.5rem 0 5rem;
  border-top: 1px solid var(--border);
}
.detail-footer-cta h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.detail-footer-cta p {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .shots-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 68%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 1.25rem 1rem;
    margin: 0 -1.25rem;
  }
  .shot { scroll-snap-align: start; }
  .detail-section { padding: 3rem 0; }
}

/* --- Loading / Error states --- */
.state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-3);
}
.state-box p { font-size: 0.9rem; line-height: 1.6; }

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade-in for cards */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.5s ease forwards; }
.fade-in-delay-1 { animation: fadeUp 0.5s ease 0.08s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeUp 0.5s ease 0.18s forwards; opacity: 0; }
.fade-in-delay-3 { animation: fadeUp 0.5s ease 0.30s forwards; opacity: 0; }
.fade-in-delay-4 { animation: fadeUp 0.5s ease 0.42s forwards; opacity: 0; }

/* --- Projects (homepage spine) --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.project-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.project-name .arrow {
  color: var(--text-3);
  font-size: 0.85rem;
  transition: color 0.2s, transform 0.2s;
}
.project-card:hover .project-name .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-story {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}

.project-tech {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* --- Work (homepage compressed) --- */
.work-paragraph {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.work-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.work-bullets li {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
  max-width: 720px;
}
.work-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.work-footer {
  font-size: 0.85rem;
  color: var(--text-3);
}
.work-footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 240, 122, 0.3);
  transition: border-color 0.15s;
}
.work-footer a:hover { border-bottom-color: var(--accent); }

/* --- Notes (homepage flavor) --- */
.notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.notes-link {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.notes-link:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.notes-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.notes-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* --- Mobile nav toggle (used by index) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Prose (privacy policy / long-form text pages) --- */
.prose {
  max-width: 640px;
  padding-bottom: 5rem;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.85;
}
.prose p { margin-bottom: 1.25rem; }
.prose h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
}
.footer a { color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--text-2); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .js .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    z-index: 99;
  }
  .js .nav-links.open { display: flex; }
  .js .nav-links li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }
  .js .nav-links li:last-child { border-bottom: none; }
  .js .nav-links a { font-size: 0.95rem; }
}

@media (max-width: 640px) {
  .nav { padding: 0 1.25rem; }
  .page { padding: 0 1.25rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero-portrait { width: 64px; height: 64px; margin-bottom: 1.25rem; }
  .hero-subtitle { font-size: 1rem; }
  section { padding: 4.5rem 0; }

  .cards-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .notes-list { grid-template-columns: 1fr; }

  .page-hero { padding: 3rem 0 2rem; }
  .detail-section { padding: 3rem 0; }
  .detail-hero { padding: 3.5rem 0 2.5rem; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in,
  .fade-in-delay-1,
  .fade-in-delay-2,
  .fade-in-delay-3,
  .fade-in-delay-4 { opacity: 1; animation: none; }
  .hero-eyebrow-dot,
  .status-badge .dot { animation: none; }
  .project-card:hover,
  .card:hover,
  .movie-card:hover,
  .review-card:hover,
  .feature-card:hover,
  .notes-link:hover,
  .btn-primary:hover { transform: none; }
}
