/* ============================================
   ABDUL RAFAY — PORTFOLIO
   Technical Editorial · Dark · Geist + JetBrains Mono
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-1: #0f0f0f;
  --bg-2: #141414;
  --bg-3: #1a1a1a;
  --line: #232323;
  --line-2: #2e2e2e;
  --fg: #f5f5f3;
  --fg-1: #c8c8c4;
  --fg-2: #8a8a86;
  --fg-3: #5a5a56;
  --accent: oklch(0.85 0.18 145);
  --accent-dim: oklch(0.85 0.18 145 / 0.15);
  --accent-line: oklch(0.85 0.18 145 / 0.4);
  --warn: oklch(0.78 0.16 70);

  --serif: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1400px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(170, 255, 100, 0.04), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(100, 200, 255, 0.02), transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0a; }

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

[hidden] { display: none !important; }

/* === Type scale === */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em; }
.mono { font-family: var(--mono); font-weight: 400; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.85 0.18 145 / 0.6); }
  70% { box-shadow: 0 0 0 8px oklch(0.85 0.18 145 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.85 0.18 145 / 0); }
}

/* === Layout primitives === */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 10vh, 120px) 0;
  position: relative;
}
.section-meta {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 800px) {
  .section-meta { grid-template-columns: 1fr; gap: 16px; }
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-title em { font-style: normal; color: var(--accent); font-weight: 500; }
.section-meta .meta-col { display: flex; flex-direction: column; gap: 8px; }
.section-meta .meta-col .num { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-1);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 18px;
  border-radius: 4px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); background: oklch(0.9 0.18 145); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--fg-2); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.arrow-link:hover { color: var(--accent); border-color: var(--accent); }
.arrow-link .arr { display: inline-block; transition: transform 0.2s; }
.arrow-link:hover .arr { transform: translateX(3px); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .hide-mobile { display: none !important; }
}

/* ============================================
   COMPONENTS
   ============================================ */

/* === TOPBAR === */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.topbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px; font-weight: 600;
  border-radius: 4px;
}
.brand-name { font-size: 13px; color: var(--fg); }
.brand-tag { font-size: 11px; color: var(--fg-3); }
.topbar-nav { display: flex; align-items: center; gap: 28px; }
.topbar-link { font-size: 12px; color: var(--fg-2); transition: color 0.15s; }
.topbar-link:hover { color: var(--fg); }
.cmdk-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.cmdk-btn:hover { border-color: var(--fg-2); }
.cmdk-btn span { font-size: 13px; }

.mobile-menu-btn {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.mobile-menu {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mobile-menu a {
  padding: 14px var(--gutter);
  font-size: 13px;
  color: var(--fg-1);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--accent); background: var(--bg-1); }
@media (max-width: 800px) { .mobile-menu-btn { display: inline-block; } }

/* === CMD-K === */
.cmdk-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
.cmdk-panel {
  width: 560px; max-width: 92vw;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.cmdk-input-wrap {
  display: flex; align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.cmdk-input { flex: 1; background: transparent; border: 0; outline: none; color: var(--fg); font-size: 14px; }
.cmdk-list { padding: 8px; max-height: 50vh; overflow-y: auto; }
.cmdk-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--fg-1);
  transition: background 0.1s;
  cursor: pointer;
}
.cmdk-item:hover, .cmdk-item.active { background: var(--bg-2); color: var(--fg); }
.cmdk-section { color: var(--fg-3); font-size: 11px; }
.cmdk-arrow { color: var(--fg-3); font-size: 11px; }

/* === HERO === */
.hero { padding: 120px 0 0; position: relative; }
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 80px;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-left { display: flex; flex-direction: column; gap: 32px; }

.hero-title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.8vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--fg);
}
.hero-title em { font-style: normal; color: var(--accent); font-weight: 500; }
.hero-amp { font-style: normal; color: var(--fg-2); font-size: 0.85em; font-weight: 300; }

.hero-meta {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-meta-row { display: grid; grid-template-columns: 80px 1fr; gap: 16px; font-size: 12px; }
.hero-meta-k { color: var(--fg-3); }
.hero-meta-v { color: var(--fg-1); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-right { display: flex; flex-direction: column; gap: 12px; }
.agent-label { font-size: 11px; color: var(--fg-2); display: flex; align-items: center; gap: 8px; }
.agent-frame {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 540px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.agent-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.agent-header-left { display: flex; align-items: center; gap: 8px; }
.agent-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.agent-stream {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 13px;
  line-height: 1.55;
}
.agent-msg { display: flex; flex-direction: column; gap: 4px; }
.agent-msg-label { font-size: 10px; color: var(--fg-3); }
.agent-msg-system .agent-msg-body { color: var(--fg-3); font-style: italic; font-size: 12px; }
.agent-msg-user .agent-msg-body { color: var(--fg); }
.agent-msg-agent .agent-msg-body {
  color: var(--fg-1);
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  padding: 10px 12px;
  border-radius: 0 4px 4px 0;
  white-space: pre-wrap;
}
.agent-tool {
  font-size: 11px;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
}
.agent-spinner {
  width: 8px; height: 8px;
  border: 1px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.agent-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.agent-chip {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  font-size: 10.5px;
  padding: 5px 9px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.agent-chip:hover:not(:disabled) { border-color: var(--accent-line); color: var(--accent); }
.agent-chip:disabled { opacity: 0.4; cursor: not-allowed; }

.agent-input {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.agent-input input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--fg); font-size: 13px;
}
.agent-input input::placeholder { color: var(--fg-3); }
.agent-send {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg-1);
  font-size: 11px;
  padding: 4px 8px; border-radius: 3px;
  cursor: pointer;
}
.agent-send:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.agent-send:disabled { opacity: 0.3; cursor: not-allowed; }
.agent-footer { font-size: 10px; color: var(--fg-3); text-align: right; }

/* hero marquee */
.hero-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg-1);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.15em;
  animation: marquee 60s linear infinite;
  width: max-content;
}
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* === STATS STRIP === */
.stats-strip { padding: 80px 0; border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1000px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { background: var(--bg); padding: 28px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.stat-label { font-size: 11px; color: var(--fg-1); }
.stat-note { font-size: 11px; color: var(--fg-3); line-height: 1.4; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-body { display: flex; flex-direction: column; gap: 20px; max-width: 56ch; }
.about-para {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  font-weight: 400;
}
.about-para:first-child { color: var(--fg); font-weight: 500; }
.about-signature { font-size: 12px; color: var(--fg-3); margin-top: 12px; }

.about-cap { display: flex; flex-direction: column; gap: 16px; }
.cap-eyebrow { font-size: 11px; color: var(--fg-3); }
.cap-list { list-style: none; display: flex; flex-direction: column; }
.cap-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cap-row:last-child { border-bottom: 1px solid var(--line); }
.cap-num { font-size: 11px; color: var(--fg-3); padding-top: 2px; }
.cap-key { font-size: 14px; color: var(--fg); margin-bottom: 4px; }
.cap-val { font-size: 11.5px; color: var(--fg-2); line-height: 1.5; }

/* === CASE STUDIES === */
.cases { display: flex; flex-direction: column; gap: 80px; }
.case {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .case { grid-template-columns: 1fr; gap: 24px; } }
.case-side {
  display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 100px; align-self: start;
}
@media (max-width: 900px) { .case-side { position: static; } }
.case-num {
  font-size: 88px;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.05em;
  font-weight: 500;
}
.case-num::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--accent);
  margin-top: 12px;
}
.case-meta { display: flex; flex-direction: column; gap: 8px; }
.case-meta-row { display: grid; grid-template-columns: 50px 1fr; gap: 8px; font-size: 11px; }
.case-meta-row span:first-child { color: var(--fg-3); }
.case-meta-row span:last-child { color: var(--fg-1); }
.case-accent { font-size: 10px; color: var(--accent); letter-spacing: 0.15em; }

.case-main { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.case-title {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-weight: 500;
}
.case-tagline {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--fg-1);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.case-section-label { font-size: 10px; color: var(--fg-3); margin-bottom: 6px; letter-spacing: 0.1em; }
.case-section-body { font-size: 15px; line-height: 1.65; color: var(--fg-1); letter-spacing: -0.005em; }
.case-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.case-impact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.impact-cell { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.impact-v {
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  font-weight: 500;
}
.impact-l { font-size: 11px; color: var(--fg-2); }

.case-featured .case-num { color: var(--accent); }
.case-featured .case-title { color: var(--accent); }
.case-ref {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.case-ref:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-line);
}
.case-section-body code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 1px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--accent);
}

/* === PROJECTS GRID === */
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.filter-chip {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover { color: var(--fg); border-color: var(--fg-2); }
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.filter-count { opacity: 0.6; font-size: 10px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.proj-card {
  background: var(--bg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s;
}
.proj-card:hover { background: var(--bg-1); }
.proj-card-top { display: flex; justify-content: space-between; align-items: center; }
.proj-num { font-size: 10px; color: var(--fg-3); }
.proj-type { font-size: 10px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.proj-name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--fg);
  letter-spacing: -0.025em;
  font-weight: 500;
}
.proj-desc { font-size: 13px; color: var(--fg-2); line-height: 1.5; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.proj-tag {
  font-size: 10px;
  color: var(--fg-3);
  border: 1px solid var(--line-2);
  padding: 2px 7px;
  border-radius: 3px;
}

/* === STACK MATRIX === */
.stack-matrix { border-top: 1px solid var(--line); }
.stack-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) { .stack-row { grid-template-columns: 1fr; gap: 12px; } }
.stack-cat { display: flex; align-items: baseline; gap: 16px; }
.stack-cat-num { font-size: 11px; color: var(--fg-3); }
.stack-cat-name { font-size: 22px; color: var(--fg); letter-spacing: -0.025em; font-weight: 500; }
.stack-items { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; padding-top: 4px; }
.stack-pill {
  font-size: 11px;
  color: var(--fg-1);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 5px 10px;
  border-radius: 3px;
}

/* === EXPERIENCE TIMELINE === */
.timeline { display: flex; flex-direction: column; }
.tl-row {
  display: grid;
  grid-template-columns: 200px 40px 1fr;
  gap: 16px;
  padding: 24px 0;
}
@media (max-width: 800px) {
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .tl-line { display: none; }
}
.tl-period { font-size: 11px; color: var(--fg-3); padding-top: 8px; }
.tl-line { position: relative; display: flex; justify-content: center; padding-top: 12px; }
.tl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-rail {
  position: absolute;
  top: 22px; bottom: -24px;
  left: 50%;
  width: 1px;
  background: var(--line-2);
  transform: translateX(-50%);
}
.tl-body { display: flex; flex-direction: column; gap: 6px; }
.tl-role { font-size: 22px; color: var(--fg); letter-spacing: -0.025em; font-weight: 500; }
.tl-company { font-size: 12px; color: var(--fg-1); }
.tl-domain { font-size: 12px; color: var(--fg-3); margin-bottom: 8px; }
.tl-bullets { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.tl-bullets li {
  font-size: 13.5px; color: var(--fg-1); line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.tl-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  top: 4px;
}

/* === SPEAKING / WRITING === */
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .sw-grid { grid-template-columns: 1fr; gap: 32px; } }
.sw-col { display: flex; flex-direction: column; gap: 16px; }
.sw-label { font-size: 11px; color: var(--fg-3); }
.sw-list { display: flex; flex-direction: column; }
.sw-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.sw-item:last-child { border-bottom: 1px solid var(--line); }
.sw-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sw-item-title { font-size: 17px; color: var(--fg); letter-spacing: -0.02em; flex: 1; font-weight: 500; }
.sw-item-year { font-size: 11px; color: var(--fg-3); white-space: nowrap; }
.sw-item-meta { font-size: 11px; color: var(--fg-2); }

/* === RECOMMENDATIONS === */
.recs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .recs { grid-template-columns: 1fr; } }
.rec {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
}
.rec::before {
  content: '"';
  position: absolute;
  top: 12px; left: 20px;
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  font-weight: 500;
}
.rec-quote { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.rec-quote p {
  font-family: var(--serif);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: var(--fg-1);
  letter-spacing: -0.005em;
  font-weight: 400;
}
.rec-quote p:first-child { color: var(--fg); font-weight: 500; }
.rec-quote em { font-style: normal; color: var(--accent); font-weight: 500; }
.rec-cap {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rec-who { font-size: 14px; color: var(--fg); font-weight: 500; }
.rec-role { font-size: 11px; color: var(--fg-1); }
.rec-meta { font-size: 10.5px; color: var(--fg-3); margin-top: 2px; }

/* === CONTACT === */
.section-contact {
  background:
    radial-gradient(ellipse at top right, oklch(0.85 0.18 145 / 0.08), transparent 60%),
    var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 24px 0 32px;
  color: var(--fg);
  font-weight: 500;
}
.contact-title em { color: var(--accent); font-style: normal; font-weight: 500; }
.contact-sub {
  font-family: var(--serif);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--fg-1);
  max-width: 56ch;
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-card {
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 24px;
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) { .contact-card { position: static; } }
.contact-card-label { font-size: 11px; color: var(--fg-3); margin-bottom: 12px; }
.contact-card-pre {
  font-size: 13px;
  color: var(--fg-1);
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
}

.footer-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.footer-left, .footer-right { font-size: 11px; color: var(--fg-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
}
