/* ─────────────────────────────────────────────
   Sasri Dedigama — portfolio styles
   Editorial sans + display serif · circadian accent
   Dark/light · custom cursor · command palette
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Italianno&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; padding: 2px 6px; border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}

/* ── Tokens (light) ── */
:root {
  --accent-h: 12;
  --accent-s: 92%;
  --accent-l: 56%;
  --accent: hsl(var(--accent-h) var(--accent-s) var(--accent-l));
  --accent-soft: hsl(var(--accent-h) 90% 96%);
  --accent-line: hsl(var(--accent-h) 80% 88%);

  --bg: #f7f5f0;
  --bg-grain: rgba(0,0,0,0.012);
  --surface: #ffffff;
  --surface-2: #f0ede5;
  --border: #e3dfd5;
  --text: #161412;
  --muted: #6b675f;
  --subtle: #95918a;

  --max: 1180px;
  --prose: 680px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Tokens (dark) ── */
[data-theme="dark"] {
  --accent-s: 88%;
  --accent-l: 64%;
  --accent-soft: hsl(var(--accent-h) 60% 14%);
  --accent-line: hsl(var(--accent-h) 50% 22%);

  --bg: #0e0d0c;
  --bg-grain: rgba(255,255,255,0.02);
  --surface: #161413;
  --surface-2: #1d1b19;
  --border: #2a2724;
  --text: #f2efe8;
  --muted: #8a857b;
  --subtle: #6b6760;
}

/* Subtle grain background */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 10%, var(--accent-soft) 0%, transparent 35%),
    radial-gradient(circle at 80% 90%, var(--accent-soft) 0%, transparent 40%);
  opacity: 0.5; mix-blend-mode: multiply;
  transition: opacity 0.6s ease;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.18; }

main, header, footer { position: relative; z-index: 1; }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.prose { max-width: var(--prose); margin: 0 auto; }

/* ── Type ── */
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; }

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.05; color: var(--text); }
h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 700; letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; margin: 96px 0 20px; line-height: 1.1; }
h3 { font-size: 22px; font-weight: 600; margin: 40px 0 10px; }
p  { margin-bottom: 18px; }
.lead { font-size: 22px; line-height: 1.45; color: var(--muted); font-weight: 400; }
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--accent);
}
strong { font-weight: 600; color: var(--text); }
em { font-style: italic; color: var(--muted); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
/* Scroll progress — orange line fixed to the bottom of the viewport */
.scroll-progress {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: transparent;
  pointer-events: none;
  z-index: 100;
}
.scroll-progress::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--accent);
  transition: width 0.08s linear;
  box-shadow: 0 0 12px hsla(var(--accent-h), 95%, 55%, 0.7);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  gap: 16px;
}
.nav-inner > .nav-right { margin-left: auto; }
.nav-inner > .theme-toggle, .nav-inner > .hamburger { flex-shrink: 0; }
.nav-brand {
  font-family: 'Italianno', 'Instrument Serif', cursive;
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
  display: inline-flex; align-items: baseline; gap: 0;
  color: var(--text);
  transition: color 0.2s, transform 0.3s var(--ease);
}
.nav-brand:hover { transform: rotate(-2deg) translateY(-1px); }
.nav-brand .dot {
  font-family: 'Italianno', 'Instrument Serif', cursive;
  color: var(--accent);
  margin-left: 2px;
  font-size: 38px;
  line-height: 1;
}
.nav-right { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-right a:hover { color: var(--text); }
.nav-cmdk {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-cmdk:hover { color: var(--text); border-color: var(--text); }
.nav-cmdk kbd { background: transparent; border: 0; padding: 0; color: var(--muted); }
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); transform: rotate(15deg); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: block; } .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.theme-toggle .tt-label { display: none; }
/* Hide the inner (dropdown-menu) theme toggle on desktop */
.theme-toggle-inner { display: none; }
@media (max-width: 760px) {
  /* On mobile, hide the standalone (icon-only) toggle in the nav bar */
  .nav-inner > .theme-toggle:not(.theme-toggle-inner) { display: none !important; }
}

@media (max-width: 720px) {
  .nav-cmdk { display: none; }
  .nav-right { gap: 14px; }
}

/* ── Hero (homepage) ── */
.hero { padding-top: 100px; padding-bottom: 40px; position: relative; isolation: isolate; }

/* Animated background — drifting circadian blobs + slow orbit */
.hero-bg {
  position: absolute; inset: -120px -10vw -40px;
  z-index: -1; pointer-events: none;
  overflow: hidden;
}
.hero-bg .blob {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
  transition: background 0.8s ease;
}
.hero-bg .blob-a {
  background: hsl(var(--accent-h) 92% 64%);
  top: -180px; left: -140px;
  animation: blobDriftA 24s ease-in-out infinite;
}
.hero-bg .blob-b {
  background: hsl(calc(var(--accent-h) + 48) 88% 72%);
  top: 60px; right: -120px;
  animation: blobDriftB 30s ease-in-out infinite;
}
.hero-bg .blob-c {
  background: hsl(calc(var(--accent-h) - 28) 90% 78%);
  bottom: -160px; left: 28%;
  animation: blobDriftC 36s ease-in-out infinite;
  opacity: 0.4;
}
[data-theme="dark"] .hero-bg .blob { opacity: 0.32; mix-blend-mode: screen; filter: blur(100px); }

@keyframes blobDriftA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33%      { transform: translate3d(90px, 70px, 0) scale(1.15); }
  66%      { transform: translate3d(-50px, 110px, 0) scale(0.95); }
}
@keyframes blobDriftB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33%      { transform: translate3d(-70px, 50px, 0) scale(1.12); }
  66%      { transform: translate3d(60px, -40px, 0) scale(0.9); }
}
@keyframes blobDriftC {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%      { transform: translate3d(-90px, -60px, 0) scale(1.22); }
}

/* Slow rotating dashed orbit ring — concept nod to circadian cycle */
.hero-orbit {
  position: absolute; top: 50%; right: -160px;
  width: 540px; height: 540px;
  transform: translateY(-50%);
  z-index: -1; pointer-events: none;
  animation: orbitSpin 120s linear infinite;
  opacity: 0.55;
}
[data-theme="dark"] .hero-orbit { opacity: 0.4; }
.hero-orbit circle.ring { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 8; opacity: 0.5; }
.hero-orbit circle.sun {
  fill: var(--accent);
  filter: drop-shadow(0 0 14px hsla(var(--accent-h), 90%, 60%, 0.8));
}
@keyframes orbitSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* Faint floating particles inside the hero */
.hero-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: particleFloat 18s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
  filter: blur(0.5px);
}
.hero-particle:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; animation-duration: 22s; }
.hero-particle:nth-child(2) { top: 60%; left: 8%;  animation-delay: -6s; animation-duration: 26s; opacity: 0.25; width: 3px; height: 3px; }
.hero-particle:nth-child(3) { top: 32%; left: 78%; animation-delay: -12s; animation-duration: 30s; }
.hero-particle:nth-child(4) { top: 78%; left: 62%; animation-delay: -3s; animation-duration: 24s; opacity: 0.28; width: 5px; height: 5px; }
.hero-particle:nth-child(5) { top: 12%; left: 48%; animation-delay: -9s; animation-duration: 28s; opacity: 0.22; }
.hero-particle:nth-child(6) { top: 88%; left: 30%; animation-delay: -15s; animation-duration: 32s; width: 3px; height: 3px; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  25%      { transform: translate(40px, -30px); opacity: 0.55; }
  50%      { transform: translate(-20px, -60px); opacity: 0.25; }
  75%      { transform: translate(30px, -20px); opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg .blob, .hero-orbit, .hero-particle { animation: none !important; }
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: end; }
.hero h1 .display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  color: var(--accent);
}
.hero .lead { max-width: 56ch; margin-top: 32px; }
.hero-now {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 13px;
  margin-bottom: 24px;
}
.hero-now .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 hsla(var(--accent-h), 80%, 60%, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 hsla(var(--accent-h), 80%, 60%, 0.55); }
  70%  { box-shadow: 0 0 0 8px hsla(var(--accent-h), 80%, 60%, 0); }
  100% { box-shadow: 0 0 0 0 hsla(var(--accent-h), 80%, 60%, 0); }
}

.hero-meta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  background: var(--text); color: var(--bg);
  border: 1px solid var(--text);
  transition: transform 0.18s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--text); color: var(--bg); }
.btn .arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Marquee ── */
.marquee {
  margin: 64px 0 80px;
  border-block: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: var(--muted); letter-spacing: 0.04em;
}
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee-track span::before { content: '✦'; color: var(--accent); font-size: 11px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Work grid ── */
.work { padding-top: 24px; padding-bottom: 96px; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.work-head h2 { margin: 0; }
.work-head .meta { color: var(--muted); font-size: 14px; font-family: 'JetBrains Mono', monospace; }

.work-list { display: flex; flex-direction: column; }
.work-row {
  display: grid; grid-template-columns: 80px 1fr 200px 28px;
  gap: 28px; padding: 32px 0; align-items: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding 0.4s var(--ease);
}
.work-row:hover { padding-left: 24px; }
.work-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.work-row:hover::before { transform: scaleY(1); }
.work-row .num { font-family: 'JetBrains Mono', monospace; color: var(--subtle); font-size: 13px; }
.work-row .title-cell h3 { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.02em; }
.work-row .title-cell .summary { color: var(--muted); font-size: 15px; max-width: 56ch; }
.work-row .title-cell .preview {
  display: inline-block; max-height: 0; overflow: hidden; opacity: 0;
  color: var(--text); font-size: 14px; margin-top: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, margin-top 0.3s ease;
}
.work-row:hover .title-cell .preview { max-height: 60px; opacity: 1; margin-top: 10px; }
.work-row .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tag {
  padding: 3px 10px; border-radius: 999px; background: var(--surface-2);
  color: var(--muted); font-size: 11px; letter-spacing: 0.04em;
  font-family: 'JetBrains Mono', monospace;
}
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.work-row .arrow {
  font-size: 20px; color: var(--muted); justify-self: end;
  transition: transform 0.3s var(--ease), color 0.2s;
}
.work-row:hover .arrow { color: var(--accent); transform: translateX(6px); }

/* Disabled state for case studies that aren't published yet */
.work-row-disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.work-row-disabled:hover { padding-left: 0 !important; transform: none; }
.work-row-disabled:hover::before { transform: scaleY(0) !important; }
.work-row-disabled:hover .arrow { color: var(--muted); transform: none; }
.work-row-disabled .title-cell h3, .work-row-disabled .title-cell .summary { color: var(--muted); }
.work-row-disabled .arrow { color: var(--subtle); }

@media (max-width: 820px) {
  .work-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .work-row .num { font-size: 11px; }
  .work-row .tags { justify-content: flex-start; }
  .work-row .arrow { display: none; }
}

/* ── Earlier work — denser grid ── */
.earlier { padding-top: 24px; padding-bottom: 96px; }
.earlier-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.earlier-card {
  display: block; padding: 24px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.earlier-card:hover { border-color: var(--text); transform: translateY(-3px); }
.earlier-card .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--subtle); }
.earlier-card h4 { font-size: 18px; margin: 8px 0 6px; letter-spacing: -0.02em; }
.earlier-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ── Now strip (homepage details) ── */
.now-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
  padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}
.now-cell .label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 8px;
}
.now-cell .value { font-size: 16px; color: var(--text); }
.now-cell .value .accent { color: var(--accent); }

/* ── Case study layout ── */
.case-hero { padding-top: 80px; padding-bottom: 48px; }
.case-hero .eyebrow { color: var(--accent); }
.case-hero .eyebrow::before { background: var(--accent); }
.case-hero h1 { max-width: 22ch; margin-bottom: 28px; font-size: clamp(40px, 5.4vw, 76px); }
.case-hero h1 .display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400; color: var(--accent);
}
.case-hero .lead { max-width: 60ch; margin-bottom: 48px; }
.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.case-meta dt {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); margin-bottom: 6px;
}
.case-meta dd { font-size: 15px; color: var(--text); }
@media (max-width: 720px) { .case-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.case-body { padding-bottom: 96px; }
.case-body p, .case-body ul, .case-body ol { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.case-body ul, .case-body ol { padding-left: 22px; margin-bottom: 20px; }
.case-body li { margin-bottom: 8px; }
.case-body h2, .case-body h3 { max-width: var(--prose); margin-left: auto; margin-right: auto; }
.case-body h2 { display: flex; align-items: baseline; gap: 16px; }
.case-body h2::before {
  content: ''; width: 28px; height: 1px; background: var(--accent); display: inline-block;
  flex-shrink: 0; transform: translateY(-8px);
}

.case-body figure {
  margin: 56px auto;
  max-width: min(920px, 100%);
  text-align: center;
}
.case-body figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 720px;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.case-body figcaption { text-align: center; font-size: 13px; color: var(--subtle); margin-top: 14px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em; }

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 56px auto;
  max-width: min(920px, 100%);
  align-items: center;
  justify-items: center;
}
@media (max-width: 720px) { .two-up { grid-template-columns: 1fr; gap: 18px; } }
.two-up img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 560px;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* Case-hero banner image: same centering rules */
.case-hero figure { margin: 0 auto; max-width: min(1120px, 100%); }
.case-hero figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.callout {
  max-width: var(--prose); margin: 36px auto; padding: 28px 32px;
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
}
.callout .label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.callout p { margin-bottom: 0; font-size: 17px; line-height: 1.55; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; max-width: var(--prose); margin: 36px auto 16px;
  padding: 36px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
}
.stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 48px; font-weight: 400; font-style: italic;
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 8px; color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--muted); line-height: 1.4; }

.placeholder {
  max-width: 920px; margin: 56px auto;
  padding: 56px 32px; border: 1.5px dashed var(--border);
  border-radius: 14px; background: var(--surface-2);
  text-align: center; color: var(--muted); font-size: 14px;
}
.placeholder strong { display: block; margin-bottom: 10px; color: var(--text); font-size: 15px; }
.placeholder code { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent); background: var(--bg); padding: 2px 8px; border-radius: 4px; }

.disclaimer {
  max-width: var(--prose); margin: 24px auto; padding: 14px 18px;
  background: var(--surface-2); border-radius: 10px;
  font-size: 13px; color: var(--muted); line-height: 1.5;
}

.credits {
  max-width: var(--prose); margin: 56px auto 0;
  padding: 28px 0; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 28px;
  font-size: 13px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.credits strong { color: var(--text); margin-right: 8px; font-weight: 500; }

/* Case nav */
.case-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: var(--max); margin: 64px auto; padding: 0 32px;
}
.case-nav a {
  display: block; padding: 28px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.case-nav a:hover { border-color: var(--text); transform: translateY(-2px); }
.case-nav .dir { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--subtle); margin-bottom: 8px; letter-spacing: 0.08em; }
.case-nav .title { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.case-nav .right { text-align: right; }

/* ── Footer ── */
footer { padding: 64px 0; border-top: 1px solid var(--border); margin-top: 64px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer-mark { font-family: 'Italianno', 'Instrument Serif', cursive; font-size: 124px; line-height: 0.9; color: var(--text); letter-spacing: 0; }
.footer-mark .accent { color: var(--accent); }
.footer-meta { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; justify-content: flex-end; font-size: 14px; color: var(--muted); }
.footer-meta a { display: inline-block; transition: color 0.2s; }
.footer-meta a:hover { color: var(--text); }
.footer-meta .links { display: flex; gap: 18px; }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { align-items: flex-start; }
}

/* ── About page ── */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; } }
.about-photo { width: 100%; aspect-ratio: 4/5; background: var(--surface-2); border-radius: 14px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Cursor trail — native cursor + fading orange particles ── */
.cursor-trail {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle,
    hsla(var(--accent-h), 95%, 60%, 0.95) 0%,
    hsla(var(--accent-h), 95%, 60%, 0.5) 45%,
    transparent 75%);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  will-change: transform, opacity;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}
[data-theme="light"] .cursor-trail { mix-blend-mode: multiply; }
@media (hover: none) { .cursor-trail { display: none; } }

/* ── Scroll reveals ── */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Command palette ── */
.cmdk {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 16vh;
}
.cmdk.is-open { display: flex; }
.cmdk-scrim {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--bg) 50%, transparent);
  backdrop-filter: blur(8px);
}
.cmdk-panel {
  position: relative; width: min(560px, 90vw);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: cmdkIn 0.18s var(--ease);
}
@keyframes cmdkIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cmdk-input {
  width: 100%; padding: 18px 22px; border: 0; outline: 0;
  font: inherit; font-size: 16px; background: transparent; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.cmdk-input::placeholder { color: var(--muted); }
.cmdk-list { list-style: none; max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px; cursor: pointer;
  font-size: 14px;
}
.cmdk-list li.is-active { background: var(--accent-soft); }
.cmdk-list .cmdk-label { color: var(--text); font-weight: 500; }
.cmdk-list li.is-active .cmdk-label { color: var(--accent); }
.cmdk-list .cmdk-hint { color: var(--muted); font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.cmdk-empty { padding: 22px; text-align: center; color: var(--muted); }
.cmdk-foot {
  display: flex; gap: 18px; padding: 12px 18px;
  border-top: 1px solid var(--border); background: var(--surface-2);
  font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace;
}
.cmdk-foot kbd { margin-right: 4px; }

/* ── Easter egg ── */
@keyframes confettiPop {
  0%   { transform: scale(0.95); }
  50%  { transform: scale(1.02); filter: hue-rotate(40deg); }
  100% { transform: scale(1); }
}
body.confetti { animation: confettiPop 2.4s var(--ease); }
body.confetti::after {
  content: 'hi sasri.'; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 1100;
  font-family: 'Italianno', cursive; font-size: 168px;
  color: var(--accent); pointer-events: none;
  animation: cmdkIn 0.4s var(--ease);
}

/* ─────────────────────────────────────────────
   Résumé page
───────────────────────────────────────────── */
.resume-page { max-width: 920px; margin: 0 auto; padding: 56px 32px 96px; }

.resume-toolbar {
  position: sticky; top: 78px; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; margin-bottom: 32px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.resume-toolbar .toolbar-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.resume-toolbar .toolbar-actions { display: flex; gap: 10px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-size: 14px; font-weight: 500;
  transition: transform 0.18s var(--ease), background 0.2s;
}
.btn-download:hover { transform: translateY(-1px); background: hsl(var(--accent-h) var(--accent-s) calc(var(--accent-l) - 6%)); }
.btn-download svg { width: 14px; height: 14px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { color: var(--text); border-color: var(--text); }

.resume-paper {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 56px 64px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.06);
}
[data-theme="dark"] .resume-paper { box-shadow: 0 30px 60px rgba(0,0,0,0.5); }

.resume-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.resume-mark {
  font-family: 'Italianno', cursive; font-size: 88px; line-height: 0.85;
  color: var(--text); letter-spacing: 0;
}
.resume-mark .accent { color: var(--accent); }
.resume-pron { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; margin-top: 6px; }
.resume-contact { display: flex; flex-direction: column; gap: 4px; text-align: right; font-size: 13px; color: var(--muted); }
.resume-contact a { color: var(--text); }
.resume-contact a:hover { color: var(--accent); }

.resume-summary { font-size: 16px; color: var(--text); line-height: 1.55; margin-bottom: 40px; max-width: 64ch; }
.resume-summary .display { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }

.resume-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; }
@media (max-width: 720px) { .resume-body { grid-template-columns: 1fr; gap: 32px; } }

.resume-section { margin-bottom: 32px; }
.resume-section .section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
}
.resume-section .section-label::before {
  content: ''; width: 18px; height: 1px; background: var(--accent);
}

.role { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.role:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.role-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.role-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.role-title .at { color: var(--muted); font-weight: 400; }
.role-title .accent { color: var(--accent); }
.role-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.role-loc { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--subtle); letter-spacing: 0.04em; margin-bottom: 12px; }
.role-bullets { padding-left: 18px; margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.55; }
.role-bullets li { margin-bottom: 6px; }
.role-bullets li::marker { color: var(--accent); }

.skills-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.skills-list .pill {
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
  color: var(--text); font-size: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.02em;
}
.resume-section .sublabel {
  font-size: 12px; letter-spacing: 0.04em; color: var(--muted);
  margin-bottom: 8px; font-weight: 500; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.edu-block { font-size: 14.5px; color: var(--text); line-height: 1.55; }
.edu-block .school { font-weight: 600; }
.edu-block .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 2px; }

@media (max-width: 720px) {
  .resume-paper { padding: 32px 24px; }
  .resume-head { grid-template-columns: 1fr; align-items: start; }
  .resume-contact { text-align: left; }
  .resume-mark { font-size: 64px; }
  .role-head { flex-direction: column; gap: 2px; align-items: flex-start; }
}

/* ─────────────────────────────────────────────
   Global responsive sweep
───────────────────────────────────────────── */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, p, li { overflow-wrap: break-word; word-wrap: break-word; }

/* Hamburger — desktop hidden, mobile only · no border, no background */
@media (min-width: 761px) {
  button.hamburger { display: none !important; }
}
button.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  position: relative;
  z-index: 5;
  transition: color 0.2s, transform 0.2s;
}
button.hamburger:hover { color: var(--accent); }
button.hamburger svg { width: 24px; height: 24px; transition: transform 0.25s var(--ease); display: block; }
button.hamburger svg line { stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
button.hamburger .icon-close { display: none; }
button.hamburger[aria-expanded="true"] .icon-bars { display: none; }
button.hamburger[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 920px) {
  .container { padding: 0 22px; }
  .nav-inner { padding: 14px 22px; }
  .work-card { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  h2 { margin: 64px 0 16px; }
  .case-body h2::before { display: none; }
  .case-body h2 { padding-left: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 24px; }

  /* Mobile nav: brand left, theme-toggle + hamburger right */
  .nav-inner { padding: 12px 24px; gap: 10px; position: relative; }
  .nav-brand { font-size: 30px; }
  .nav-brand .dot { font-size: 30px; }
  button.hamburger { display: inline-flex; }

  /* Nav-right (Work/About/Résumé/Search) collapses to a dropdown panel */
  .nav-right {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    margin: 0;
    background: color-mix(in oklab, var(--bg) 96%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    font-size: 16px;
  }
  .nav-right.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-right > a,
  .nav-right > button {
    padding: 14px 4px;
    border-top: 1px solid var(--border);
    border-radius: 0;
    text-align: left;
    width: 100%;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    justify-content: flex-start;
  }
  .nav-right > a:first-child,
  .nav-right > button:first-child { border-top: 0; }
  .nav-right .nav-cmdk { border: 0; padding-left: 4px; padding-right: 4px; }
  .nav-right .nav-cmdk kbd { margin-left: auto; }

  /* Inner theme toggle appears as a menu row in the dropdown */
  .theme-toggle-inner {
    display: inline-flex !important;
    align-items: center;
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--border) !important;
    background: transparent !important;
    color: var(--text) !important;
    padding: 14px 4px !important;
    text-align: left;
    justify-content: flex-start !important;
    gap: 12px;
    font-size: 17px;
    width: 100% !important;
    height: auto !important;
  }
  .theme-toggle-inner:hover { transform: none !important; color: var(--accent) !important; }
  .theme-toggle-inner svg { width: 20px !important; height: 20px !important; flex-shrink: 0; }
  .theme-toggle-inner .tt-label { display: inline !important; font-size: 17px; }

  /* Hero */
  .hero { padding-top: 48px; padding-bottom: 28px; }
  .hero-now {
    font-size: 11px; padding: 6px 12px;
    max-width: 100%; box-sizing: border-box;
  }
  .hero-now span:last-child {
    display: inline-block;
    max-width: calc(100% - 18px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    vertical-align: middle;
  }
  .hero h1 { font-size: 30px; line-height: 1.1; max-width: 100%; }
  .hero h1 .display { font-size: 1em; }
  .hero .lead { font-size: 15.5px; margin-top: 22px; max-width: 100%; }
  .hero-meta { gap: 10px; margin-top: 26px; flex-wrap: wrap; }
  .btn { padding: 10px 16px; font-size: 13.5px; }

  /* Marquee */
  .marquee { margin: 36px 0 48px; padding: 14px 0; }
  .marquee-track { gap: 40px; font-size: 12px; }

  /* Work list */
  .work { padding-top: 12px; padding-bottom: 48px; }
  .work-head { margin-bottom: 24px; }
  .work-head h2 { font-size: 26px; }
  .work-row { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .work-row:hover { padding-left: 0; }
  .work-row .num { font-size: 11px; }
  .work-row .title-cell h3 { font-size: 22px; }
  .work-row .title-cell .summary { font-size: 14.5px; }
  .work-row .tags { justify-content: flex-start; }
  .work-row .arrow { display: none; }
  .work-row::before { display: none; }
  .work-row .preview { display: none; }

  /* Earlier */
  .earlier-grid { gap: 14px; grid-template-columns: 1fr; }
  .earlier-card { padding: 18px; }
  .earlier-card h4 { font-size: 17px; }

  /* Now strip */
  .now-strip { padding: 32px 0; gap: 22px; grid-template-columns: 1fr 1fr; margin-bottom: 32px; }
  .now-cell .value { font-size: 14px; }

  /* Case study */
  .case-hero { padding-top: 40px; padding-bottom: 24px; }
  .case-hero h1 { font-size: clamp(26px, 7.5vw, 36px); line-height: 1.12; }
  .case-hero .lead { font-size: 16px; margin-bottom: 24px; }
  .case-meta { padding: 16px 0; gap: 14px; margin-bottom: 28px; }
  .case-meta dd { font-size: 13.5px; }

  .case-body { padding-bottom: 56px; }
  .case-body p, .case-body ul, .case-body ol { font-size: 16px; }
  .case-body h2 { font-size: 26px; margin: 48px 0 12px; }
  .case-body h3 { font-size: 18px; }
  .case-body figure { margin: 28px auto; }
  .case-body figure img { max-height: 540px; }
  .case-body figcaption { font-size: 12px; padding: 0 8px; }

  .two-up { margin: 28px auto; grid-template-columns: 1fr; gap: 14px; }
  .two-up img { max-height: 480px; }

  .callout { padding: 18px 20px; margin: 24px auto; }
  .stats { padding: 22px; gap: 18px; }
  .stat-num { font-size: 32px; }
  .placeholder { padding: 36px 22px; margin: 28px auto; }

  .case-nav { grid-template-columns: 1fr; gap: 10px; margin: 36px auto; padding: 0 18px; }
  .case-nav a { padding: 18px; }
  .case-nav .right { text-align: left; }

  /* Footer */
  footer { padding: 36px 0; margin-top: 32px; }
  .footer-inner { padding: 0 18px; gap: 22px; grid-template-columns: 1fr; }
  .footer-mark { font-size: 84px; }
  .footer-meta { align-items: flex-start; }

  /* About */
  .about-grid { padding-top: 36px; padding-bottom: 36px; gap: 28px; grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4/4; max-width: 280px; }

  /* Command palette */
  .cmdk { padding-top: 8vh; }
  .cmdk-panel { width: 92vw; }

  /* Resume page */
  .resume-page { padding: 32px 18px 64px; }
  .resume-paper { padding: 24px 18px; }
  .resume-toolbar { flex-direction: column; gap: 12px; align-items: stretch; }
  .resume-toolbar .toolbar-actions { justify-content: space-between; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .case-hero h1 { font-size: clamp(22px, 6.5vw, 30px); }
  .case-body h2 { font-size: 22px; }
  .footer-mark { font-size: 60px; }
  .now-strip { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr; }
  .case-body figure img { max-height: 480px; }
  .two-up img { max-height: 420px; }
}

/* Ensure scroll-progress bar hidden in print */
@media print { .scroll-progress { display: none !important; } }

/* ─────────────────────────────────────────────
   Print — clean US Letter PDF via window.print()
───────────────────────────────────────────── */
@media print {
  @page { size: Letter; margin: 0.45in 0.5in; }

  /* Force light-mode tokens for print regardless of current theme.
     This is what makes the PDF look identical whether the user is in
     light or dark mode when they hit Download. */
  html, html[data-theme="dark"], html[data-theme="light"] {
    --bg: #ffffff !important;
    --surface: #ffffff !important;
    --surface-2: #f0ede5 !important;
    --border: #d8d4cc !important;
    --text: #000000 !important;
    --muted: #444444 !important;
    --subtle: #777777 !important;
    --accent-h: 12 !important;
    --accent-s: 92% !important;
    --accent-l: 50% !important;
    --accent: hsl(12 92% 50%) !important;
    --accent-soft: hsl(12 90% 96%) !important;
    --accent-line: hsl(12 80% 88%) !important;
    background: #ffffff !important;
    color: #000000 !important;
    color-scheme: light !important;
  }

  body { background: #fff !important; color: #000 !important; }
  body::before, body::after { display: none !important; }
  body { font-size: 9.5pt; line-height: 1.32; }

  /* Hide all site chrome — only the résumé content prints */
  .nav, footer, .resume-toolbar,
  .cmdk, .cursor-trail, .cursor-dot, .cursor-ring,
  .case-nav, .hero-bg, .hero-orbit, .hero-particle,
  .marquee { display: none !important; }

  /* Strip the screen-only paper card so content flows in @page area */
  main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .resume-page { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .resume-paper {
    border: 0 !important; box-shadow: none !important;
    padding: 0 !important; background: transparent !important;
    border-radius: 0 !important; max-width: none !important;
  }

  /* Force colors so accent doesn't get washed out */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .accent, .resume-mark .accent, .role-title .accent { color: #ff5733 !important; }
  .role-bullets li::marker { color: #ff5733 !important; }
  .resume-section .section-label { color: #ff5733 !important; }
  .resume-section .section-label::before { background: #ff5733 !important; }
  .role { border-bottom: 1px solid #d8d4cc !important; }

  /* Two-column body — float-based for reliable print rendering */
  .resume-body {
    display: block !important;
    width: 100% !important;
    gap: 0 !important;
  }
  .resume-body::after { content: ''; display: block; clear: both; }
  .resume-body > div:first-child {
    float: left !important;
    width: 62% !important;
    padding-right: 24pt !important;
    box-sizing: border-box !important;
  }
  .resume-body > div:last-child {
    float: right !important;
    width: 38% !important;
    box-sizing: border-box !important;
  }

  /* Header: float-based for the same reliability */
  .resume-head {
    display: block !important;
    width: 100% !important;
  }
  .resume-head::after { content: ''; display: block; clear: both; }
  .resume-head > div:first-child { float: left !important; }
  .resume-head > div:last-child { float: right !important; text-align: right !important; }

  /* Only hold individual roles together; let sections break naturally */
  .role { break-inside: avoid; page-break-inside: avoid; }
  .resume-head { break-inside: avoid; page-break-inside: avoid; }
  .role-head { page-break-after: avoid; }

  /* Type sized to actually fill a Letter page */
  .resume-mark { font-size: 46pt !important; line-height: 0.85 !important; }
  .resume-pron { font-size: 8pt !important; margin-top: 4pt !important; letter-spacing: 0.04em !important; }
  .resume-contact { font-size: 9pt !important; gap: 2pt !important; text-align: right !important; }
  .resume-contact a { color: #1a1a1a !important; }
  .resume-summary { font-size: 9.5pt !important; line-height: 1.36 !important; margin-bottom: 10pt !important; max-width: 100% !important; }
  .resume-summary .display { color: #ff5733 !important; }
  .resume-head { padding-bottom: 8pt !important; margin-bottom: 10pt !important; border-bottom: 1px solid #d8d4cc !important; }

  .resume-section { margin-bottom: 10pt !important; }
  .resume-section .section-label { font-size: 8.5pt !important; margin-bottom: 6pt !important; letter-spacing: 0.12em !important; }

  .role { padding-bottom: 6pt !important; margin-bottom: 6pt !important; }
  .role-head {
    display: flex !important; justify-content: space-between !important; align-items: baseline !important;
    margin-bottom: 1pt !important; gap: 12pt !important;
  }
  .role-title { font-size: 10.5pt !important; font-weight: 600 !important; }
  .role-meta { font-size: 8pt !important; white-space: nowrap !important; }
  .role-loc { font-size: 7.5pt !important; margin-bottom: 3pt !important; color: #666 !important; }
  .role-bullets { font-size: 8.8pt !important; line-height: 1.3 !important; padding-left: 12pt !important; margin: 0 !important; }
  .role-bullets li { margin-bottom: 1.5pt !important; }

  .skills-list { display: flex !important; flex-wrap: wrap !important; gap: 3pt !important; margin-bottom: 4pt !important; }
  .skills-list .pill {
    font-size: 8pt !important; padding: 1.5pt 6pt !important;
    background: #f0ede5 !important; border-radius: 999pt !important;
    color: #1a1a1a !important;
  }
  .resume-section .sublabel { font-size: 8.5pt !important; margin-bottom: 4pt !important; margin-top: 7pt !important; color: #555 !important; }
  .resume-section .sublabel:first-of-type { margin-top: 0 !important; }
  .edu-block { font-size: 9pt !important; line-height: 1.4 !important; }
  .edu-block .school { font-weight: 600 !important; }
  .edu-block .meta { font-size: 8pt !important; color: #777 !important; margin-top: 2pt !important; }

  /* Print-only footer */
  .resume-page::after {
    content: 'sasridedigama.com  ·  Updated May 2026';
    display: block; text-align: center;
    font-size: 7.5pt; color: #999;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 12pt; padding-top: 8pt;
    border-top: 1px solid #e8e5df;
  }
}
