/* ===== FONTS ===== */
/* Change fonts here - applies to entire site */

/* Google Fonts for mono accent */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* PP Neue Montreal */
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('./fonts/PPNeueMontreal-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('./fonts/PPNeueMontreal-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'PP Neue Montreal';
  src: url('./fonts/PPNeueMontreal-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

/* ===== ROOT & THEMES ===== */
:root {
  --sans: 'PP Neue Montreal', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.4s ease;
  color-scheme: dark light;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --fg-muted: #888888;
  --fg-subtle: #6e6e6e;
  --border: #222222;
  --accent: #4ade80;
  --card-bg: #111111;
  --status-available: #4ade80;
  --status-selective: #facc15;
  --status-engaged: #f87171;
}

[data-theme="y2k"] {
  color-scheme: light;
  --bg: #e8eef2;
  --fg: #0a3d62;
  --fg-muted: #1a5276;
  --fg-subtle: #4a6572;
  --border: #aed6f1;
  --accent: #00b4d8;
  --card-bg: #ffffff;
  --status-available: #22c55e;
  --status-selective: #eab308;
  --status-engaged: #ef4444;
}

/* ===== BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: var(--fg); color: var(--bg); }
a { cursor: none; }
html, body { height: 100%; }

body {
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
  cursor: none;
}

/* ===== ACCESSIBILITY ===== */
/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
.toggle-icon:focus-visible,
.header-name:focus-visible {
  outline: 1px solid var(--fg-muted);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== STAGGERED REVEAL ===== */
.stagger-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stagger-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Y2K EFFECTS ===== */
[data-theme="y2k"]::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,180,216,0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="y2k"] .header-name::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  color: var(--accent);
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  z-index: 100;
  background: var(--bg);
  transition: background var(--transition);
}

.header-name {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-flex;
  position: relative;
  padding-bottom: 6px;
  cursor: none;
}

.header-name::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--fg-subtle);
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.header-name span {
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.header-name:hover::before { width: 100%; }
.header-name:hover span { opacity: 1; }

.header-meta {
  font-size: 0.6875rem;
  color: var(--fg-muted);
  display: flex;
  gap: 1.5rem;
  letter-spacing: 0.01em;
}

.header-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== STATUS SYSTEM ===== */
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--status-color, var(--status-available));
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}

/* Glow ring for click animation */
.status-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: transparent;
  border: 1px solid var(--status-color, var(--status-available));
  border-radius: 50%;
  opacity: 0;
}

.status.clicked .status-dot::after {
  animation: glowPulse 0.6s ease-out forwards;
}

@keyframes glowPulse {
  0% { width: 6px; height: 6px; opacity: 1; }
  100% { width: 28px; height: 28px; opacity: 0; }
}

.status[data-status="available"] { --status-color: var(--status-available); }
.status[data-status="selective"] { --status-color: var(--status-selective); }
.status[data-status="engaged"] { --status-color: var(--status-engaged); }

.status-link {
  color: var(--fg-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.status-link:hover { color: var(--fg); }

.status {
  transition: color 0.2s;
  cursor: none;
}

.status:hover { color: var(--fg); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== HEADER NAV DROPDOWN ===== */
.header-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  z-index: 99;
}

.header-nav.open {
  max-height: 400px;
  padding: 1.5rem 2rem;
}

.header-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-nav-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: padding 0.2s, color 0.2s;
}

.header-nav-link:hover {
  padding-left: 0.5rem;
  color: var(--fg);
}

.header-nav-link.active { color: var(--fg); }

.header-nav-index {
  font-size: 0.5rem;
  color: var(--fg-subtle);
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* For pages that need scrolling content (work, about, etc) */
main.scroll {
  justify-content: flex-start;
  padding: 8rem 2rem 4rem;
  max-width: 800px;
}

.page-header { margin-bottom: 3rem; }
main.scroll .page-header { margin-bottom: 4rem; }

.page-number {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
  margin-bottom: 1rem;
}

.page-title {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-intro {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 600px;
}

/* ===== FOOTER ===== */
footer {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.5rem;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

/* ===== TOGGLE ===== */
.toggle-group {
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  display: flex;
  gap: 0.75rem;
  z-index: 200;
  transition: bottom 0.2s ease;
}

.toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: none;
  transition: all 0.3s ease;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--fg-muted);
}

.toggle-theme::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg-subtle);
  border: 1.5px solid transparent;
  box-sizing: border-box;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="y2k"] .toggle-theme::before {
  background: transparent;
  border-color: var(--accent);
}

/* ===== CURSOR ===== */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s;
}

.cursor-dot.clickable {
  width: 16px;
  height: 16px;
  background: transparent;
  border: 1px solid var(--fg);
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998;
  pointer-events: none;
}

.loader .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.2s;
}

.loader .overlay.fade { opacity: 0; }

.loader .line {
  position: absolute;
  top: 50%;
  height: 1px;
  background: var(--fg-subtle);
  transform: translateY(-50%);
  width: 0;
  z-index: 1;
}

.loader .line-left { left: 0; }
.loader .line-right { right: 0; }

@keyframes lineLeftIn { from { width: 0; } to { width: 50%; } }
@keyframes lineRightIn { from { width: 0; } to { width: 50%; } }
@keyframes lineLeftOut { from { width: 50%; } to { width: 0; } }
@keyframes lineRightOut { from { width: 50%; } to { width: 0; } }

/* ===== PAGE NAV ===== */
.page-nav {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--fg); }
.nav-link .arrow { transition: transform 0.2s ease; }
.nav-link:hover .arrow { transform: translateX(4px); }
.nav-link.prev:hover .arrow { transform: translateX(-4px); }

.nav-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.25s; }
.fade-in:nth-child(5) { animation-delay: 0.3s; }
.fade-in:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header { padding: 1.25rem; }
  main { padding: 5rem 1.25rem 2rem; }
  main.scroll { padding: 6rem 1.25rem 3rem; }
  .page-title { font-size: 2rem; }
  footer { padding: 1.25rem 1.25rem 2rem; }
  .toggle-group { right: 1rem; }
  .header-meta { gap: 0; }
  .header-meta .location,
  .header-meta .clock { display: none; }
}

@media (pointer: coarse) {
  body, a, .header-name, .status, .toggle-icon { cursor: auto; }
  a, .toggle-icon { cursor: pointer; }
  .cursor-dot { display: none; }
}

/* ===== CONTACT PAGE SPECIFIC ===== */
.contact-intro {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 500px;
}

.contact-list {
  list-style: none;
  margin-bottom: 3rem;
}

.contact-item {
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
}

.contact-item:last-child {
  border-bottom: 1px solid var(--border);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.3s ease;
  position: relative;
}

.contact-link::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--fg);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.contact-link:hover { padding-left: 1rem; }
.contact-link:hover::before { transform: scaleY(1); }
.contact-link:hover .contact-label { color: var(--fg); }

.contact-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  transition: color 0.3s ease;
}

.contact-value {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

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

.contact-value .arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
}

.contact-link:hover .contact-value .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Availability Note */
.availability-note {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  transition: background var(--transition), border-color var(--transition);
}

.availability-note[data-status="available"] { --status-color: var(--status-available); }
.availability-note[data-status="selective"] { --status-color: var(--status-selective); }
.availability-note[data-status="engaged"] { --status-color: var(--status-engaged); }

.availability-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.availability-dot {
  width: 8px;
  height: 8px;
  background: var(--status-color, var(--status-available));
  border-radius: 50%;
}

.availability-title {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
}

.availability-text {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .contact-link {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }
  .contact-value { font-size: 0.8125rem; }
}

/* ===== WORK PAGE SPECIFIC ===== */
.work-list {
  list-style: none;
  margin-bottom: 4rem;
}

.work-item {
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
}

.work-item:last-child {
  border-bottom: 1px solid var(--border);
}

.work-link {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  text-decoration: none;
  color: var(--fg);
  transition: all 0.3s ease;
  position: relative;
}

.work-link::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--fg);
  transform: scaleY(0);
  transition: transform 0.3s ease, background var(--transition);
}

.work-link:hover { padding-left: 1rem; }
.work-link:hover::before { transform: scaleY(1); }
.work-link:hover .work-title { color: var(--fg); }
.work-link:hover .work-index { color: var(--fg-muted); }
.work-link:hover .work-type { color: var(--fg-muted); }
.work-link:hover .work-year { color: var(--fg-muted); }

.work-index {
  font-size: 0.5rem;
  color: var(--fg-subtle);
  transition: color 0.3s ease;
}

.work-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.work-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
  transition: color 0.3s ease;
  line-height: 1.4;
}

.work-client {
  font-size: 0.625rem;
  color: var(--fg-subtle);
  transition: color 0.3s ease;
}

.work-type {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.work-year {
  font-size: 0.5rem;
  color: var(--fg-subtle);
  transition: color 0.3s ease;
  min-width: 3rem;
  text-align: right;
}

.work-depth {
  display: inline-block;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--border);
  color: var(--fg-subtle);
  margin-left: 0.75rem;
  vertical-align: middle;
  transition: all var(--transition);
}

.work-depth.full {
  border-color: var(--accent);
  color: var(--accent);
}

.work-depth.ongoing {
  border-color: var(--status-selective);
  color: var(--status-selective);
}

/* Previous Iteration Section */
.previous-iteration {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin: 2rem 0 3rem 0;
  opacity: 0.85;
  transition: background var(--transition), border-color var(--transition), opacity 0.2s ease;
}

.previous-iteration:hover {
  opacity: 1;
}

.previous-iteration.stagger-section {
  opacity: 0;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), background var(--transition), border-color var(--transition);
}

.previous-iteration.stagger-section.visible {
  opacity: 0.85;
  transform: none;
}

.previous-iteration.stagger-section.visible:hover {
  opacity: 1;
}

.previous-iteration-header {
  margin-bottom: 0.75rem;
}

.previous-iteration-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
}

.previous-iteration-desc {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.previous-iteration-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.previous-iteration-link:hover {
  color: var(--fg);
}

.previous-iteration-link .arrow {
  transition: transform 0.3s ease;
}

.previous-iteration-link:hover .arrow {
  transform: translateX(4px);
}

/* Cursor Image Preview */
.cursor-preview {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 280px;
  height: 180px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
  border: 1px solid var(--fg-subtle);
  background: var(--card-bg);
}

.cursor-preview.visible {
  opacity: 1;
  transform: scale(1);
}

.cursor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cursor-preview .placeholder {
  width: 100%;
  height: 100%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


@media (max-width: 768px) {
  .work-link {
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
  }
  .work-type, .work-year { display: none; }
  .work-title { font-size: 0.8125rem; }
  .work-depth { display: none; }
  .cursor-preview { display: none; }
}

@media (pointer: coarse) {
  .cursor-preview { display: none; }
}

/* ===== CASE STUDY PAGE SPECIFIC ===== */

/* Project Header */
.project-header {
  padding-top: 6rem;
  margin-bottom: 4rem;
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.project-index {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
  transition: color var(--transition);
}

.back-link {
  font-size: 0.5rem;
  color: var(--fg-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--fg); }
.back-link .arrow { transition: transform 0.2s ease; }
.back-link:hover .arrow { transform: translateX(-4px); }

.project-title {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 700px;
  transition: color var(--transition);
}

.project-summary {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 3rem;
  transition: color var(--transition);
}

/* Project Meta */
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  transition: border-color var(--transition);
}

.meta-block {}

.meta-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.meta-value {
  font-size: 0.8125rem;
  color: var(--fg);
  transition: color var(--transition);
}

/* Scope Block */
.scope-block {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.scope-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.scope-content {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  transition: color var(--transition);
}

/* Case Study Main - old rule, now handled in CASE STUDY PAGES section */

/* Image Placeholders */
.image-full {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-subtle);
  font-size: 0.75rem;
  margin: 3rem 0;
  transition: all var(--transition);
}

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

.image-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-subtle);
  font-size: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: all var(--transition);
}

/* Project Sections */
.project-section {
  margin: 4rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
}

.section-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
  padding-top: 0.3rem;
  transition: color var(--transition);
}

.section-content h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.section-content p {
  color: var(--fg-muted);
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.section-content p:last-child { margin-bottom: 0; }

.section-content ul {
  list-style: none;
  margin-top: 1.5rem;
}

.section-content li {
  margin-bottom: 0.75rem;
  color: var(--fg-muted);
  transition: color var(--transition);
}

/* Remove dash from lists that shouldn't have it */
.timeline li::before,
.education-list li::before,
.input-block li::before,
.capability-block li::before,
.principles-list li::before,
.principles-list-interactive li::before,
.section-content .tab-content li::before {
  content: none;
}

/* Reset padding for lists that don't need it */
.timeline li,
.education-list li,
.input-block li,
.principles-list-interactive li,
.section-content .tab-content li {
  padding-left: 0;
  margin-bottom: 0;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.result-block {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.result-number {
  font-family: var(--sans);
  font-size: 2.5rem;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}

.result-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  transition: color var(--transition);
}

/* Deliverables Grid */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.deliverable-item {
  padding: 1rem;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--fg-muted);
  transition: all var(--transition);
}

/* Project Navigation */
.project-nav {
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  transition: border-color var(--transition);
}

.project-nav-link {
  flex: 1;
  text-decoration: none;
  color: var(--fg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-nav-link:hover { border-color: var(--fg-muted); }
.project-nav-link.next { text-align: right; }

.nav-direction {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}

.project-nav-link.next .nav-direction { justify-content: flex-end; }

.nav-project-title {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  transition: color 0.3s ease;
}

.project-nav-link:hover .nav-project-title { color: var(--fg); }

/* Case Study Responsive */
@media (max-width: 768px) {
  .project-header { padding-top: 5rem; }
  .project-title { font-size: 1.75rem; }
  .project-summary { font-size: 0.8125rem; }
  
  .project-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .section-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section-label { margin-bottom: 0.5rem; }
  
  .image-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; gap: 1rem; }
  .deliverables-grid { grid-template-columns: 1fr; }
  
  .project-nav { flex-direction: column; }
  .project-nav-link.next { text-align: left; }
  .project-nav-link.next .nav-direction { justify-content: flex-start; }
  
  main.case-study { padding: 1.25rem; }
}

/* ===== OVERVIEW PAGE SPECIFIC (shorter case studies) ===== */
.overview-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin: 3rem 0;
}

.overview-block h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.overview-block p {
  color: var(--fg-muted);
  line-height: 1.8;
  transition: color var(--transition);
}

.overview-block ul {
  list-style: none;
  margin-top: 0;
}

.overview-block li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.75rem;
  color: var(--fg-muted);
  transition: color var(--transition);
}

.overview-block li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-subtle);
}

/* Inline Results */
.results-inline {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 3rem 0;
  transition: border-color var(--transition);
}

.result-item {
  text-align: center;
  flex: 1;
}

.result-item .result-number {
  font-family: var(--sans);
  font-size: 2rem;
  color: var(--fg);
  display: block;
  margin-bottom: 0.25rem;
  transition: color var(--transition);
}

.result-item .result-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  transition: color var(--transition);
}

/* Takeaway Block */
.takeaway {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 4rem;
  transition: all var(--transition);
}

.takeaway-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  margin-bottom: 1rem;
  transition: color var(--transition);
}

.takeaway p:not(.takeaway-label) {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  transition: color var(--transition);
}

@media (max-width: 768px) {
  .overview-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .results-inline {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .result-item .result-number { font-size: 1.75rem; }
}

/* ===== POSITION PAGE SPECIFIC ===== */

/* Statement */
.statement {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--fg);
  margin-bottom: 2rem;
}

.clarification {
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.clarification p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.clarification .highlight {
  color: var(--fg);
  margin-top: 1rem;
  font-style: italic;
}

/* Principles */
.principles-list {
  list-style: none;
}

.principles-list li {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.principles-list li:first-child {
  border-top: 1px solid var(--border);
}

.principle-number {
  font-size: 0.5rem;
  color: var(--fg-subtle);
  min-width: 1.5rem;
}

/* Capabilities */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.capability-block h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--fg);
}

.capability-block ul {
  list-style: none;
}

.capability-block li {
  font-size: 0.75rem;
  color: var(--fg-muted);
  padding: 0.4rem 0;
}

/* Focus */
.focus-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
}

.focus-list li {
  font-size: 0.8125rem;
  color: var(--fg);
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.25rem;
}

.focus-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--fg-subtle);
}

@media (max-width: 768px) {
  .capabilities-grid { grid-template-columns: 1fr; gap: 2rem; }
  .focus-list { grid-template-columns: 1fr; }
}

/* ===== ABOUT PAGE SPECIFIC ===== */

/* Page Header with Headshot */
.page-header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* Headshot */
.headshot-container {
  text-align: center;
}

.headshot-placeholder {
  width: 120px;
  height: 150px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  transition: all var(--transition);
}

.headshot-image {
  width: 120px;
  height: 150px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  transition: all var(--transition);
}

.headshot-label {
  font-size: 0.5rem;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Content Sections */
.content-section {
  margin-bottom: 4rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
}

.section-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
  padding-top: 0.3rem;
}

/* Bio */
.bio p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 1rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

/* Timeline */
.timeline {
  list-style: none;
}

.timeline-item {
  border-bottom: 1px solid var(--border);
}

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

.timeline-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 1rem 0.5rem;
  margin: 0 -0.5rem;
  align-items: baseline;
  cursor: pointer;
  transition: background 0.2s;
}

.timeline-header:hover {
  background: var(--card-bg);
}

.timeline-role {
  font-size: 0.8125rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.timeline-date {
  font-size: 0.5rem;
  color: var(--fg-subtle);
  text-align: right;
  white-space: nowrap;
}

.timeline-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.timeline-detail p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  padding: 0 0.5rem 1rem;
  margin: 0 -0.5rem;
}

.timeline-item.open .timeline-detail {
  max-height: 150px;
}

.timeline-toggle {
  font-size: 0.5rem;
  color: var(--fg-subtle);
  margin-left: 0.5rem;
  transition: transform 0.3s;
  display: inline-block;
}

.timeline-item.open .timeline-toggle {
  transform: rotate(45deg);
}

/* Education */
.education-list {
  list-style: none;
}

.education-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.education-program {
  font-size: 0.8125rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.education-institution {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-block h4 {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.skill-block p {
  font-size: 0.8125rem;
  color: var(--fg);
}

/* Inputs Section */
.inputs-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.inputs-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.inputs-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
}

.inputs-timestamp {
  font-size: 0.625rem;
  color: var(--fg-subtle);
  opacity: 0.6;
}

.inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.input-block h4 {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  margin-bottom: 0.75rem;
  font-weight: 400;
  opacity: 0.6;
}

.input-block ul {
  list-style: none;
  line-height: 1.9;
}

.input-block li {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

@media (max-width: 768px) {
  .page-header-grid { grid-template-columns: 1fr; gap: 2rem; }
  .headshot-container { order: -1; }
  .headshot-placeholder { width: 100px; height: 125px; }
  .headshot-image { width: 100px; height: 125px; }
  .section-grid { grid-template-columns: 1fr; gap: 1rem; }
  .timeline-header { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline-date { text-align: left; }
  .skills-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .inputs-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (pointer: coarse) {
  .timeline-header { cursor: pointer; }
}

/* ===== TRANSMISSIONS PAGE ===== */

.transmissions-page {
  padding-top: 6rem;
}

.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-description {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* Featured Drift Section */
.drift-section {
  margin: 2rem 0 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
}

.drift-thumbnail {
  width: 100px;
  height: 100px;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.drift-section:hover .drift-thumbnail {
  border-color: var(--fg-muted);
}

/* Drift thumbnail types */
.drift-thumbnail.type-visual::before {
  content: '';
  width: 30px;
  height: 30px;
  border: 1px solid var(--fg-subtle);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.drift-section:hover .drift-thumbnail.type-visual::before {
  opacity: 0.7;
}

.drift-thumbnail.type-music {
  gap: 3px;
}

.drift-thumbnail.type-music .mini-bar {
  width: 3px;
  background: var(--fg-subtle);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.drift-section:hover .drift-thumbnail.type-music .mini-bar {
  opacity: 0.7;
}

.drift-thumbnail.type-text {
  flex-direction: column;
  gap: 4px;
  padding: 30px;
}

.drift-thumbnail.type-text .mini-line {
  height: 2px;
  background: var(--fg-subtle);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.drift-section:hover .drift-thumbnail.type-text .mini-line {
  opacity: 0.7;
}

.drift-thumbnail.type-video .mini-play {
  width: 32px;
  height: 32px;
  border: 1px solid var(--fg-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.drift-thumbnail.type-video .mini-play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid var(--fg-subtle);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 3px;
}

.drift-section:hover .drift-thumbnail.type-video .mini-play {
  opacity: 0.7;
}

.drift-thumbnail.type-link {
  flex-direction: column;
  gap: 4px;
}

.drift-thumbnail.type-link .mini-arrow {
  font-size: 1.25rem;
  color: var(--fg-subtle);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.drift-thumbnail.type-link .mini-domain {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.drift-section:hover .drift-thumbnail.type-link .mini-arrow,
.drift-section:hover .drift-thumbnail.type-link .mini-domain {
  opacity: 0.7;
}

/* Drift track area */
.drift-thumb-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.drift-thumb-area::before,
.drift-thumb-area::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.drift-thumb-area::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.drift-thumb-area::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--bg) 100%);
}

.drift-track {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.drift-content {
  display: flex;
  animation: drift 20s linear infinite;
  width: max-content;
}

.drift-section:hover .drift-content {
  animation-play-state: paused;
}

@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.drift-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.drift-title {
  font-family: var(--sans);
  font-size: 1.125rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.drift-section:hover .drift-title {
  color: var(--fg);
}

.drift-separator {
  margin: 0 2rem;
  color: var(--fg-subtle);
}

.drift-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--card-bg);
  font-size: 0.5rem;
  margin-bottom: 3rem;
}

.drift-type {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.drift-type[data-type="visual"] { color: var(--accent); }
.drift-type[data-type="music"] { color: #a78bfa; }
.drift-type[data-type="text"] { color: var(--fg-muted); }
.drift-type[data-type="video"] { color: #f87171; }
.drift-type[data-type="link"] { color: #fbbf24; }

.drift-date {
  color: var(--fg-subtle);
}

.drift-cta {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.drift-cta:hover {
  color: var(--fg);
}

/* Filter Section */
.filter-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.filter-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
}

.filter-tag {
  font-family: var(--mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  border-color: var(--fg-muted);
  color: var(--fg-muted);
}

.filter-tag.active {
  border-color: var(--fg);
  color: var(--fg);
  background: var(--card-bg);
}

/* Archive Grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.grid-card {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.grid-card:hover {
  transform: translateY(-2px);
}

.grid-card:hover .grid-thumbnail {
  border-color: var(--fg-muted);
}

.grid-card:hover .grid-title {
  color: var(--fg);
}

.grid-thumbnail {
  aspect-ratio: 1/1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
}

.grid-thumbnail.type-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-thumbnail.type-visual::before {
  content: '';
  width: 30px;
  height: 30px;
  border: 1px solid var(--fg-subtle);
  opacity: 0.3;
}

.grid-thumbnail.type-music {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.mini-bar {
  width: 2px;
  background: var(--fg-subtle);
}

.grid-thumbnail.type-text {
  padding: 0.75rem;
  display: flex;
  align-items: center;
}

.mini-text {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.grid-thumbnail.type-video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-play {
  width: 24px;
  height: 24px;
  border: 1px solid var(--fg-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid var(--fg-subtle);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
}

.grid-thumbnail.type-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
}

.mini-arrow {
  font-size: 1rem;
  color: var(--fg-subtle);
}

.mini-domain {
  font-size: 0.4375rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
}

.grid-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.grid-date {
  font-size: 0.5rem;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.grid-type {
  font-size: 0.4375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
}

.grid-type[data-type="visual"] { color: var(--accent); }
.grid-type[data-type="music"] { color: #a78bfa; }
.grid-type[data-type="text"] { color: var(--fg-muted); }
.grid-type[data-type="video"] { color: #f87171; }
.grid-type[data-type="link"] { color: #fbbf24; }

.grid-title {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
  transition: color 0.2s ease;
}

/* Load More */
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.load-more-btn {
  font-family: var(--mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

/* Grid card animations */
.grid-card.fade-in:nth-child(1) { animation-delay: 0.1s; }
.grid-card.fade-in:nth-child(2) { animation-delay: 0.15s; }
.grid-card.fade-in:nth-child(3) { animation-delay: 0.2s; }
.grid-card.fade-in:nth-child(4) { animation-delay: 0.25s; }
.grid-card.fade-in:nth-child(5) { animation-delay: 0.3s; }
.grid-card.fade-in:nth-child(6) { animation-delay: 0.35s; }
.grid-card.fade-in:nth-child(7) { animation-delay: 0.4s; }
.grid-card.fade-in:nth-child(8) { animation-delay: 0.45s; }

/* Responsive */
@media (max-width: 768px) {
  .main-content { padding: 0 1.25rem; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .filter-section { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .drift-meta { padding: 0.75rem 1.25rem; }
  .drift-thumbnail { width: 80px; height: 80px; }
}

@media (max-width: 480px) {
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-wrap: wrap; }
}

/* ===== MONO ACCENTS ===== */
/* Technical/metadata elements use monospace */
.page-number,
.nav-num,
.header-nav-index,
.status,
.status-link,
.clock,
.location,
.filter-label,
.filter-tag,
.grid-date,
.grid-type,
.transmission-type,
.transmission-date,
.timeline-date,
.drift-type,
.drift-date,
.nav-label,
.section-label,
.list-label,
footer,
.load-more-btn {
  font-family: var(--mono);
}

/* ===== UTILITIES ===== */
.text-right { text-align: right; }

/* ===== CASE STUDY PAGES ===== */

main.case-study {
  justify-content: flex-start;
  padding: 8rem 2rem 4rem;
  max-width: 800px;
}

.case-study-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero */
.case-hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.case-hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-index,
.case-label,
.case-year {
  font-family: var(--mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
}

.case-index {
  text-decoration: none;
  transition: color 0.2s;
}

.case-index:hover {
  color: var(--fg-muted);
}

.case-title {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.case-client {
  font-size: 1.125rem;
  color: var(--fg-muted);
}

/* Overview Grid */
.case-overview {
  margin-bottom: 3rem;
}

.case-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.overview-block h3 {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
  margin-bottom: 0.5rem;
}

.overview-block p {
  font-size: 0.8125rem;
  color: var(--fg);
  line-height: 1.5;
}

.overview-summary p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

/* Case Sections */
.case-section {
  margin-bottom: 3rem;
}

.case-section .section-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-subtle);
  margin-bottom: 1.5rem;
}

.case-section .section-content {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--fg-muted);
}

.case-section .section-content p {
  margin-bottom: 1rem;
}

.case-section .section-content h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.case-section .section-content h3:first-child {
  margin-top: 0;
}

.case-section .section-content ul {
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

.case-section .section-content li {
  margin-bottom: 0.5rem;
}

/* Case Images */
.case-image {
  margin: 3rem 0;
}

.case-image-full {
  margin-left: -2rem;
  margin-right: -2rem;
}

.case-image figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-subtle);
  margin-top: 1rem;
  padding: 0 2rem;
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Image Placeholder */
.image-placeholder {
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-subtle);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.image-placeholder[data-aspect="16/9"] {
  aspect-ratio: 16/9;
}

.image-placeholder[data-aspect="4/3"] {
  aspect-ratio: 4/3;
}

.image-placeholder[data-aspect="1/1"] {
  aspect-ratio: 1/1;
}

/* Disclosure */
.case-disclosure {
  margin: 3rem 0;
  padding: 1.5rem;
  background: var(--card-bg);
  border-left: 2px solid var(--fg-subtle);
}

.case-disclosure p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin: 0;
}

.case-disclosure-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-disclosure-link:hover {
  color: var(--fg);
}

/* Client link in hero */
.case-client-link {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-client-link:hover {
  color: var(--fg);
}

.case-client-link .external-arrow {
  font-size: 0.75em;
  margin-left: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.case-client-link:hover .external-arrow {
  opacity: 1;
}

/* Case Read Time */
.case-read-time {
  font-size: 0.625rem;
  font-family: var(--mono);
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  opacity: 0.6;
}

/* Role List Condensed */
.role-list-condensed {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-list-condensed li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg-muted);
}

.role-list-condensed li:last-child {
  border-bottom: none;
}

.role-label {
  color: var(--fg);
  margin-right: 0.5rem;
}

.role-label::after {
  content: ':';
}

/* Case Accordion (Details/Summary) */
.case-accordion {
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  background: var(--card-bg);
  overflow: hidden;
}

.case-accordion summary {
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.case-accordion summary::-webkit-details-marker {
  display: none;
}

.case-accordion summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-accordion[open] summary::after {
  transform: rotate(45deg);
}

.case-accordion summary:hover {
  background: var(--bg-elevated);
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--fg-muted);
  animation: accordionSlideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes accordionSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accordion-content h4 {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.25rem 0 0.5rem;
}

.accordion-content h4:first-child {
  margin-top: 0;
}

.accordion-content p {
  margin: 0 0 0.75rem;
}

.accordion-content ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.accordion-content li {
  margin-bottom: 0.25rem;
}

/* Inline images in accordions */
.case-image-inline {
  margin: 1rem 0;
}

.case-image-inline .image-placeholder {
  background: var(--bg);
}

/* Case Nav */
.case-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.case-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.case-nav-link:hover {
  color: var(--fg);
}

.case-nav-link .arrow {
  transition: transform 0.2s;
}

.case-nav-link.back:hover .arrow {
  transform: translateX(-4px);
}

.case-nav-link.next:hover .arrow {
  transform: translateX(4px);
}

/* Before/After Comparison Slider */
.compare-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.compare-slider img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  background: var(--card-bg);
}

.compare-slider .compare-after {
  position: relative;
  z-index: 0;
}

.compare-slider .compare-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.compare-slider .compare-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

.compare-slider .compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--fg);
  z-index: 2;
  transform: translateX(-50%);
}

.compare-slider .compare-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 50%;
}

.compare-slider .compare-handle::after {
  content: '◂ ▸';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.625rem;
  color: var(--fg);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.compare-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
}

/* Responsive */
@media (max-width: 768px) {
  .case-study-content {
    padding: 0;
  }

  .case-title {
    font-size: 1.75rem;
  }

  .case-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .case-image-full {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }
  
  .case-image figcaption {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .case-overview-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}