/* ==========================================================================
   Rohan Saraf Portfolio — Design System
   Satoshi · Neutral · Editorial
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700,500,400,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  --font:      'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Surface */
  --bg:         #f8f7f5;
  --bg-2:       #f0efec;
  --bg-card:    #ffffff;
  --bg-ink:     #18181a;

  /* Text */
  --text:       #18181a;
  --text-muted: #6b6b6f;
  --text-faint: #a3a3a7;
  --text-on-ink: #f8f7f5;

  /* Borders */
  --border:       #e2e1dd;
  --border-strong: #b4b3ae;

  /* Structure */
  --radius: 2px;
  --max-w:  1040px;
  --nav-h:  60px;
}

/* 2. Reset ----------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

/* 3. Typography ------------------------------------------------------------ */

.t-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.t-display {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.t-heading-xl {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.t-heading-lg {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.t-heading-md {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.t-body {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-muted);
}

.t-body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.t-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* 4. Layout --------------------------------------------------------------- */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.section-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

/* 5. Navigation ----------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.25s, border-bottom 0.25s;
}

.nav.scrolled {
  background: rgba(248, 247, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-agent-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--text);
  color: var(--text-on-ink);
  border: none;
  border-radius: var(--radius);
  padding: 7px 14px;
  cursor: pointer;
  transition: opacity 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-agent-btn:hover { opacity: 0.8; }

/* 6. Cards ---------------------------------------------------------------- */

/* Work card */
.work-card {
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.work-card:hover { background: var(--bg-2); }

.work-card-thumb {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.work-card-featured .work-card-thumb { height: 200px; }

.work-card-no-thumb {
  height: 180px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.work-card-featured .work-card-no-thumb { height: 200px; }

.work-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.work-card-org {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 1px;
  white-space: nowrap;
}

.badge.live {
  color: #1a7a3c;
  background: #f0faf4;
  border-color: #c3e8d2;
}

.work-card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.work-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.work-card-outcome {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-card-outcome::before {
  content: '→';
  color: var(--text-faint);
  font-weight: 400;
}

/* Research card */
.research-card {
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.research-card:hover { background: var(--bg-2); }

.research-card-thumb {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.research-card-no-thumb {
  height: 160px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.research-card-body {
  padding: 28px;
  flex: 1;
}

.research-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.research-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.research-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
}
.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
}
.status-dot.frozen::before { background: var(--text-faint); }

/* 7. Grids ---------------------------------------------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

/* Work grid: 3-col with featured card spanning full width */
.grid-work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.work-card-featured {
  grid-column: 1 / -1;
}

/* 2-col grid that stacks on mobile (replaces inline 1fr 1fr) */
.grid-halves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* 8. Framework list ------------------------------------------------------- */

.framework-list {
  border: 1px solid var(--border);
}

.framework-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  transition: background 0.15s;
}
.framework-item:last-child { border-bottom: none; }
.framework-item a {
  text-decoration: none;
  color: inherit;
}
.framework-item:hover { background: var(--bg-2); }

.framework-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.framework-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text);
}

.framework-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 9. Content page layout -------------------------------------------------- */

/* Header for case study / research pages */
.page-header {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}
.page-breadcrumb a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.page-breadcrumb a:hover { color: var(--text); }
.page-breadcrumb-sep {
  font-size: 13px;
  color: var(--text-faint);
}
.page-breadcrumb-current {
  font-size: 13px;
  color: var(--text-faint);
}

.page-header-meta {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Case study body */
.case-body {
  max-width: 760px;
}

.case-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 56px 0 20px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.case-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.case-body h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--text);
}

.case-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.case-body p strong {
  color: var(--text);
  font-weight: 600;
}

.case-body blockquote {
  border-left: 2px solid var(--text);
  padding: 4px 24px;
  margin: 32px 0;
}
.case-body blockquote p {
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
}

.case-body ul, .case-body ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 20px;
}
.case-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.case-body li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-faint);
  font-size: 14px;
}

.case-body .callout {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.case-body .callout p {
  font-size: 15px;
  margin-bottom: 0;
}

/* Outcome card */
.outcome-card {
  background: var(--bg-ink);
  color: var(--text-on-ink);
  border-radius: var(--radius);
  padding: 40px 48px;
  margin: 48px 0;
}
.outcome-card .t-label { color: rgba(248,247,245,0.4); margin-bottom: 16px; }
.outcome-card .outcome-stat {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.outcome-card .outcome-desc {
  font-size: 16px;
  color: rgba(248,247,245,0.65);
  line-height: 1.5;
}
.outcome-card .outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  margin-top: 32px;
}

/* Principle table */
.principle-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}
.principle-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.principle-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.55;
}
.principle-table td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.principle-table tr:last-child td { border-bottom: none; }
.principle-table tr:nth-child(even) td { background: var(--bg-2); }

/* 10. Case study navigation ----------------------------------------------- */

.case-nav {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 80px;
}
.case-nav-item {
  flex: 1;
  padding: 24px 28px;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.case-nav-item:hover { background: var(--bg-2); }
.case-nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.case-nav-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.case-nav-item.next { text-align: right; }

/* 11. Footer -------------------------------------------------------------- */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
  text-align: right;
}

/* 12. Ask Rohan drawer ---------------------------------------------------- */

.ar-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(24, 24, 26, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 16px) 28px 28px;
}
.ar-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ar-drawer {
  width: 420px;
  max-height: calc(100vh - var(--nav-h) - 60px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(8px);
  transition: transform 0.2s;
}
.ar-overlay.open .ar-drawer { transform: translateY(0); }

.ar-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ar-head-left { display: flex; flex-direction: column; gap: 3px; }
.ar-head-title { font-size: 15px; font-weight: 700; }
.ar-head-sub { font-size: 12px; color: var(--text-muted); }

.ar-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.15s;
}
.ar-close:hover { color: var(--text); }

.ar-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ar-msg { max-width: 90%; }
.ar-msg.user { align-self: flex-end; }
.ar-msg.bot  { align-self: flex-start; }

.ar-bubble {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 3px;
}
.ar-msg.user .ar-bubble {
  background: var(--text);
  color: var(--text-on-ink);
}
.ar-msg.bot .ar-bubble {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.ar-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  width: fit-content;
}
.ar-typing span {
  width: 5px; height: 5px;
  background: var(--text-faint);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
.ar-typing span:nth-child(2) { animation-delay: 0.2s; }
.ar-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.ar-caveat {
  padding: 8px 20px;
  font-size: 11px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.ar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ar-input {
  flex: 1;
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  resize: none;
}
.ar-input:focus { border-color: var(--text); }
.ar-input::placeholder { color: var(--text-faint); }

.ar-send {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  background: var(--text);
  color: var(--text-on-ink);
  border: none;
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.ar-send:hover { opacity: 0.8; }
.ar-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* 13. Entry routing overlay ----------------------------------------------- */

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  opacity: 1;
  transition: opacity 0.4s;
}
.entry-screen.hiding { opacity: 0; pointer-events: none; }
.entry-screen.hidden { display: none; }

.entry-box {
  max-width: 500px;
  width: 100%;
}

.entry-pre {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248,247,245,0.35);
  margin-bottom: 28px;
}

.entry-q {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-on-ink);
  margin-bottom: 36px;
}

.entry-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.entry-opt {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-ink);
  background: rgba(248,247,245,0.08);
  border: 1px solid rgba(248,247,245,0.15);
  border-radius: 3px;
  padding: 14px 20px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  letter-spacing: 0.005em;
}
.entry-opt:hover {
  background: rgba(248,247,245,0.16);
  border-color: rgba(248,247,245,0.35);
}

.entry-skip {
  font-family: var(--font);
  font-size: 13px;
  color: rgba(248,247,245,0.3);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  letter-spacing: 0.02em;
}
.entry-skip:hover { color: rgba(248,247,245,0.6); }

/* 14. Entry screen responsive ---------------------------------------------- */

@media (max-width: 560px) {
  .entry-screen { padding: 28px 24px; }
  .entry-box { max-width: 100%; }
  .entry-q { font-size: 26px; margin-bottom: 24px; }
  .entry-opt { font-size: 14px; padding: 12px 16px; }
}

/* 14b. Hamburger + mobile menu --------------------------------------------- */

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(248, 247, 245, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 32px;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
  letter-spacing: -0.01em;
}
.nav-mobile-menu a:last-of-type { border-bottom: none; }
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { color: var(--text); }
.nav-mobile-menu-agent {
  margin-top: 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  background: var(--text);
  color: var(--text-on-ink);
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
}

/* 15. Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-work { grid-template-columns: 1fr 1fr; }
  .work-card-featured { grid-column: 1 / -1; }
  .grid-halves { gap: 48px; }
}

@media (max-width: 768px) {
  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-work { grid-template-columns: 1fr; }
  .grid-halves { grid-template-columns: 1fr; gap: 40px; }

  /* Override inline grid for case study / research detail layout (1fr + 280px sidebar) */
  div[style*="grid-template-columns: 1fr 280px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }
  div[style*="grid-template-columns: 1fr 280px"] > div:last-child {
    position: static !important;
    top: auto !important;
  }

  /* Spacing */
  .section { padding: 48px 0; }
  .section-top { flex-wrap: wrap; gap: 12px; }

  /* Page headers */
  .page-header { padding: calc(var(--nav-h) + 36px) 0 40px; }
  .page-header-meta { gap: 20px; flex-wrap: wrap; }

  /* Case navigation */
  .case-nav { flex-direction: column; }
  .case-nav-item.next { text-align: left; }

  /* Nav */
  .nav-links a { display: none; }
  .nav-links .nav-agent-btn { display: none; }
  .nav-links { gap: 12px; }
  .nav-hamburger { display: flex; }

  /* Ask Rohan drawer */
  .ar-drawer { width: 100%; border-radius: 4px 4px 0 0; }
  .ar-overlay { align-items: flex-end; padding: 0; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-copy { text-align: left; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .outcome-card { padding: 28px 24px; }

  /* Hero padding reduction on small screens */
  .hero-section > .container > div {
    padding-top: calc(var(--nav-h) + 48px) !important;
    padding-bottom: 48px !important;
  }

  /* Reduce hero stat gap */
  .hero-section > .container > div > div:last-child {
    gap: 28px;
  }

  /* Typography scale-down */
  .case-body p { font-size: 16px; }
  .case-body blockquote p { font-size: 17px; }

  /* Thin section-top */
  .section-top { margin-bottom: 32px; }
}
