/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — KRISHNAS HEMANTH
   Editorial + Work-first hybrid
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Colors */
  --paper: #f6f2ea;
  --paper-2: #ede7db;
  --paper-3: #e4dccc;
  --ink: #1a1814;
  --ink-2: #3c3832;
  --ink-3: #6b6359;
  --ink-4: #9a9084;
  --rule: rgba(26, 24, 20, 0.12);
  --rule-strong: rgba(26, 24, 20, 0.3);
  --accent: #a84a1f;
  --accent-2: #c8642a;
  --accent-bg: rgba(168, 74, 31, 0.06);
  --good: #2f6b3a;
  --bad: #a33;

  /* Type */
  --ff-display: 'Fraunces', 'Times New Roman', serif;
  --ff-italic: 'Instrument Serif', Georgia, serif;
  --ff-sans: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --max-w: 1280px;
  --gutter: 48px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ─── Paper noise texture ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  mix-blend-mode: multiply;
}
main, header, footer { position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 242, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.nav-brand small {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 400;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--ink-3);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.nav-menu-btn { display: none; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; font-family: var(--ff-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
  .nav-menu-btn.open ~ .nav-links,
  .site-nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px 0;
  }
  .site-nav.open .nav-links a {
    padding: 16px var(--gutter); border-top: 1px solid var(--rule);
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════════════
   LAYOUT PRIMITIVES
   ═══════════════════════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }

.rule-h { border-top: 1px solid var(--rule); }
.rule-thick { border-top: 1px solid var(--rule-strong); }

.kicker {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 400;
}
.kicker-accent { color: var(--accent); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}

/* ═══════════════════════════════════════════════════
   TYPE SCALE
   ═══════════════════════════════════════════════════ */
.h-display {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.h-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lede {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  font-weight: 400;
}
.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-family: var(--ff-italic); font-style: italic; font-size: 1.05em; color: var(--ink); }

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 14px; font-weight: 500;
  border-radius: 100px;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }
.btn-ghost {
  border: 1px solid var(--rule-strong); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn .arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.link-arrow:hover { border-bottom-color: var(--accent); }

/* ═══════════════════════════════════════════════════
   CASE-HERO (landing page)
   ═══════════════════════════════════════════════════ */
.case-hero { padding-top: 72px; padding-bottom: 56px; }
.case-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 960px) {
  .case-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.case-hero .eyebrow { margin-bottom: 28px; }
.case-hero-title { margin-bottom: 32px; }
.case-hero-dek { max-width: 580px; margin-bottom: 36px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
}
.tag.ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
}

/* Hero visual (right side) */
.hero-visual {
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-visual::before {
  content: '';
  position: absolute; top: -20%; right: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(168, 74, 31, 0.35), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-visual .kicker { color: var(--ink-4); position: relative; z-index: 1; }
.hv-main { position: relative; z-index: 1; margin-top: 24px; }
.hv-big {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(96px, 14vw, 148px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--paper);
}
.hv-unit {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 20px;
  color: var(--accent-2);
  margin-top: 12px;
}
.hv-caption {
  font-size: 13px;
  color: rgba(246, 242, 234, 0.7);
  line-height: 1.55;
  max-width: 320px;
  margin-top: 20px;
}
.hv-spark {
  display: flex; align-items: flex-end; gap: 4px;
  height: 60px;
  position: relative; z-index: 1;
}
.hv-spark span { flex: 1; background: rgba(246, 242, 234, 0.12); border-radius: 2px; transition: background 0.4s; }
.hv-spark span.hi { background: var(--accent-2); }

/* ═══════════════════════════════════════════════════
   METRIC STRIP
   ═══════════════════════════════════════════════════ */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 8px;
}
@media (max-width: 820px) {
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip .ms-cell:nth-child(2) { border-right: none; }
  .metric-strip .ms-cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.ms-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--rule);
}
.ms-cell:last-child { border-right: none; }
.ms-val {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.ms-label {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   SECTION: INTRO / ABOUT (short)
   ═══════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

.intro-grid {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
}
.intro-meta {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.intro-meta .val {
  display: block;
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════
   WORK INDEX (list of case studies)
   ═══════════════════════════════════════════════════ */
.work-list { border-top: 1px solid var(--rule-strong); }
.work-item {
  display: grid;
  grid-template-columns: 80px 1fr 220px auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding 0.25s ease;
  cursor: pointer;
}
@media (max-width: 820px) {
  .work-item { grid-template-columns: 40px 1fr; gap: 16px; padding: 24px 0; }
  .work-item .wi-outcome, .work-item .wi-chev { grid-column: 2; }
}
.work-item:hover { padding-left: 16px; background: linear-gradient(to right, var(--paper-2), transparent 30%); }
.wi-num {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.wi-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.wi-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 8px;
}
.wi-outcome {
  font-family: var(--ff-mono);
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-2);
}
.wi-outcome strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500; font-size: 22px; letter-spacing: -0.015em;
  color: var(--accent);
  margin-bottom: 4px;
}
.wi-chev {
  font-family: var(--ff-mono); font-size: 14px;
  color: var(--ink-4);
  transition: transform 0.2s, color 0.2s;
}
.work-item:hover .wi-chev { color: var(--accent); transform: translateX(4px); }
.work-item[data-nda] .wi-title::after {
  content: 'NDA';
  font-family: var(--ff-mono);
  font-size: 9px; letter-spacing: 0.1em;
  background: var(--paper-3);
  color: var(--ink-3);
  padding: 3px 6px;
  border-radius: 3px;
  margin-left: 10px;
  vertical-align: middle;
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════
   MANIFESTO CARDS
   ═══════════════════════════════════════════════════ */
.principles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.principle {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 820px) {
  .principle { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}
.principle-num {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.principle-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.principle-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 620px;
}
.principle-body strong { color: var(--ink); font-weight: 600; }

/* ═══════════════════════════════════════════════════
   CASE STUDY PAGE
   ═══════════════════════════════════════════════════ */
.cs-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.cs-meta-row {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.cs-meta-row span + span { position: relative; }
.cs-meta-row span + span::before {
  content: '·'; margin-right: 24px; color: var(--ink-4);
}
.cs-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.cs-title em { font-style: italic; color: var(--accent); }
.cs-dek {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 760px;
}

.cs-section { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.cs-section:last-of-type { border-bottom: none; }
.cs-section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .cs-section-grid { grid-template-columns: 1fr; gap: 20px; }
}
.cs-section-label {
  position: sticky;
  top: 88px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.cs-section-label .num {
  display: block;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-top: 8px;
  text-transform: none;
}
.cs-h {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin-bottom: 24px;
}

/* pull quote */
.pullquote {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  margin: 40px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--accent);
  max-width: 720px;
}

/* diff / before-after */
.diff-box {
  background: var(--paper-2);
  border-radius: 10px;
  padding: 28px;
  margin: 32px 0;
  font-family: var(--ff-mono);
  font-size: 14px;
  line-height: 2;
}
.diff-row { display: grid; grid-template-columns: 24px 1fr 140px; gap: 16px; align-items: baseline; }
.diff-row.minus { color: var(--bad); }
.diff-row.plus { color: var(--good); }
.diff-row .label { color: var(--ink-3); font-size: 12px; }

/* Callout */
.callout {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  border-radius: 0 4px 4px 0;
}
.callout strong { color: var(--ink); }

/* Outcomes grid (case studies) */
.outcomes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  margin: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 820px) { .outcomes { grid-template-columns: 1fr 1fr; } }
.outcome {
  background: var(--paper);
  padding: 24px 20px;
}
.outcome .v {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.outcome .v em { font-style: italic; color: var(--accent); font-weight: 400; }
.outcome .l {
  font-family: var(--ff-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.4;
}

/* Role list (what I did) */
.role-list {
  display: grid; gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 24px;
}
.role-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.role-item .k {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 2px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(168, 74, 31, 0.25), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(246, 242, 234, 0.1);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
.footer-h {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.footer-h em { font-style: italic; color: var(--accent-2); font-weight: 400; }
.footer-dek {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: 20px;
  color: rgba(246, 242, 234, 0.7);
  line-height: 1.5;
  max-width: 540px;
  margin-bottom: 32px;
}

.footer-contact-list { font-size: 15px; }
.footer-contact-list li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(246, 242, 234, 0.1);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.footer-contact-list li:first-child { padding-top: 0; }
.footer-contact-list .k {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4);
}
.footer-contact-list a:hover { color: var(--accent-2); }

.footer-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.05em;
  color: rgba(246, 242, 234, 0.5);
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--paper); }

/* ═══════════════════════════════════════════════════
   AVAILABILITY BADGE (shared)
   ═══════════════════════════════════════════════════ */
.avail-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.avail-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

/* ═══════════════════════════════════════════════════
   BIO / TIMELINE (about page)
   ═══════════════════════════════════════════════════ */
.timeline {
  margin-top: 48px;
  border-top: 1px solid var(--rule-strong);
}
.tl-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 820px) { .tl-item { grid-template-columns: 1fr; gap: 12px; } }
.tl-date {
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 6px;
}
.tl-role {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.tl-company {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.tl-highlights {
  list-style: none;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}
.tl-highlights li {
  padding: 8px 0 8px 20px;
  position: relative;
}
.tl-highlights li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
  font-family: var(--ff-mono);
}
.tl-highlights strong { color: var(--ink); font-weight: 600; }

/* ═══════════════════════════════════════════════════
   SKILLS / CAPABILITIES
   ═══════════════════════════════════════════════════ */
.skill-group {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: baseline;
}
@media (max-width: 820px) { .skill-group { grid-template-columns: 1fr; gap: 12px; } }
.skill-label {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 13px;
  padding: 7px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--ink-2);
}
.skill-tag.strong {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ═══════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   PAGE TITLE HEADER (for non-home pages)
   ═══════════════════════════════════════════════════ */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.page-header .kicker { margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════
   MISC
   ═══════════════════════════════════════════════════ */
hr.fancy {
  border: none;
  text-align: center;
  margin: 64px 0;
  color: var(--ink-4);
}
hr.fancy::before {
  content: '❦';
  font-size: 20px;
  font-family: var(--ff-display);
}

.print-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
}
.print-link:hover { color: var(--accent); border-color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .section { padding: 56px 0; }
  .case-hero { padding-top: 48px; }
  .r-grid-2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   RESUME SKILL CHIPS
   ═══════════════════════════════════════════════════ */
.r-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.r-skill-chip {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  color: var(--ink-2);
  white-space: nowrap;
}
.r-skill-chip.strong {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ═══════════════════════════════════════════════════
   LOGO
   ═══════════════════════════════════════════════════ */
.nav-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.footer-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
  opacity: 0.9;
}
