/* ==========================================================================
   Coding Culture — Design Tokens & Base
   ========================================================================== */

:root {
  --navy-950: oklch(21% 0.02 264);
  --navy-900: oklch(27% 0.025 264);
  --navy-800: oklch(30% 0.03 262);
  --navy-border: oklch(32% 0.02 264);
  --navy-border-soft: oklch(35% 0.02 264);

  --blue: oklch(52% 0.14 262);
  --blue-dark: oklch(42% 0.14 262);
  --blue-light-text: oklch(75% 0.05 262);
  --blue-chip-bg: oklch(93% 0.02 262);
  --blue-soft-bg: oklch(96% 0.02 262);

  --amber: oklch(52% 0.14 50);
  --amber-light-text: oklch(75% 0.13 50);
  --amber-chip-bg: oklch(93% 0.02 50);

  --bg: oklch(98% 0.006 85);
  --bg-muted: oklch(96% 0.008 85);
  --white: #fff;

  --border: oklch(92% 0.01 85);
  --border-soft: oklch(90% 0.01 85);
  --border-softer: oklch(88% 0.01 85);

  --ink-900: oklch(21% 0.02 264);
  --ink-800: oklch(25% 0.02 264);
  --ink-700: oklch(28% 0.02 264);
  --ink-600: oklch(30% 0.02 264);
  --ink-500: oklch(35% 0.02 264);
  --ink-400: oklch(40% 0.02 264);
  --ink-350: oklch(42% 0.02 264);
  --ink-300: oklch(45% 0.02 264);
  --ink-250: oklch(48% 0.02 264);
  --ink-200: oklch(50% 0.02 264);

  --on-dark-100: #fff;
  --on-dark-90: oklch(85% 0.01 264);
  --on-dark-85: oklch(80% 0.01 264);
  --on-dark-80: oklch(78% 0.02 264);
  --on-dark-75: oklch(75% 0.02 264);
  --on-dark-72: oklch(72% 0.02 264);
  --on-dark-70: oklch(70% 0.02 264);
  --on-dark-60: oklch(63% 0.01 264);
  --on-dark-55: oklch(63% 0.01 264);
  --on-dark-50: oklch(50% 0.02 264);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --font-heading: 'Manrope', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --container: 1160px;
  --container-wide: 1320px;

  --shadow-panel: 0 24px 48px -12px rgba(20,20,30,0.18), 0 0 0 1px oklch(93% 0.01 85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink-600);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 0;
}

button { font-family: inherit; }

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-border);
}

.header-inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 87px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item { }
.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-trigger .caret { font-size: 10px; color: var(--on-dark-70); }

.nav-link {
  padding: 10px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}
.nav-link:hover { color: oklch(75% 0.1 262); }
.nav-link.nav-active { color: oklch(75% 0.1 262); position: relative; }

.mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 42px 28px 28px;
  margin-top: 0;
  display: none;
  gap: 36px;
  width: 760px;
  z-index: 200;
}
.mega-panel.services-panel { grid-template-columns: 1fr 240px; }
.mega-panel.hire-panel { grid-template-columns: 200px 220px 240px; width: 740px; }

.nav-item.open .mega-panel,
.nav-item:hover .mega-panel { display: grid; }

.mega-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-50);
  margin-bottom: 14px;
}

.mega-links { display: flex; flex-direction: column; gap: 2px; }
.mega-links a {
  padding: 7px 0;
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
}
.mega-links a:hover { color: oklch(75% 0.1 262); }
.mega-links a.view-all { color: var(--blue); font-weight: 700; }

.mega-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
}
.mega-grid-2col a {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
}
.mega-grid-2col a:hover { color: oklch(75% 0.1 262); }
.mega-grid-2col a.view-all { color: var(--blue); font-weight: 700; border-bottom: none; }

.mega-cta {
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}
.mega-cta.services-cta { background: var(--navy-950); }
.mega-cta.hire-cta { background: var(--amber); }
.mega-cta-title { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.mega-cta-body { font-size: 13.5px; line-height: 1.5; }
.mega-cta.services-cta .mega-cta-body { color: var(--on-dark-80); }
.mega-cta.hire-cta .mega-cta-body { color: oklch(96% 0.01 50); }
.mega-cta-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}
.mega-cta.services-cta .mega-cta-btn { background: var(--blue); color: #fff; }
.mega-cta.hire-cta .mega-cta-btn { background: #fff; color: oklch(30% 0.05 50); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone { font-size: 13.5px; font-weight: 600; color: var(--on-dark-80); white-space: nowrap; }
.header-phone:hover { color: oklch(75% 0.1 262); }

.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline-dark { background: transparent; color: #fff; border: 1.5px solid oklch(45% 0.02 264); }
.btn-outline-dark:hover { color: #fff; border-color: oklch(60% 0.02 264); }
.btn-outline-light { background: #fff; color: var(--ink-900); border: 1.5px solid var(--border-softer); }
.btn-outline-light:hover { color: var(--ink-900); border-color: var(--ink-400); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.mobile-nav-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid oklch(40% 0.02 264);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.mobile-nav-btn span {
  width: 18px;
  height: 2px;
  background: #fff;
  box-shadow: 0 6px 0 #fff, 0 -6px 0 #fff;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px 32px 28px;
  border-top: 1px solid var(--navy-border);
  background: var(--navy-950);
}
.mobile-nav a {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 8px 0;
}
.mobile-nav a.nav-active { color: oklch(75% 0.1 262); }
.mobile-nav .btn { margin-top: 8px; }
.mobile-nav.open { display: flex; }

@media (max-width: 980px) {
  .main-nav, .header-actions { display: none; }
  .mobile-nav-btn { display: flex; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: var(--on-dark-90);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--navy-border-soft);
}
.footer-inner { max-width: var(--container-wide); margin: 0 auto; padding: 0 32px; }
.footer-logo { height: 78px; width: auto; display: block; margin-bottom: 16px; }
.footer-blurb { font-size: 13.5px; line-height: 1.6; color: var(--on-dark-70); max-width: 260px; margin: 0; }
.footer-col-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-dark-60);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--on-dark-90); font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-hours { color: var(--on-dark-60); font-size: 12.5px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12.5px; color: var(--on-dark-55); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12.5px; color: var(--on-dark-70); }
.footer-legal a:hover { color: #fff; }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Sections / Layout primitives
   ========================================================================== */

.section { padding: 96px 32px; }
.section-sm { padding: 72px 32px; }
.section-tight { padding: 48px 32px 72px; }
.section-hero { padding: 100px 32px 88px; }
.section-hero-sm { padding: 64px 32px 56px; }
.section-dark { background: var(--navy-950); }
.section-muted { background: var(--bg-muted); }
.section-white { background: #fff; }
.text-center { text-align: center; }

@media (max-width: 700px) {
  .section { padding: 64px 20px; }
  .section-sm { padding: 56px 20px; }
  .section-hero { padding: 72px 20px 56px; }
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow-blue { color: var(--blue); }
.eyebrow-amber { color: var(--amber); }
.eyebrow-blue-light { color: var(--blue-light-text); }
.eyebrow-amber-light { color: var(--amber-light-text); }

.hero-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--navy-800);
  color: oklch(75% 0.05 262);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

h1.display {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 24px;
}
h1.page-title {
  font-size: clamp(30px, 4.5vw, 48px);
  color: #fff;
  margin: 0 0 16px;
}
h1.service-title {
  font-size: clamp(32px, 4.5vw, 50px);
  color: var(--ink-900);
  margin: 0 0 20px;
}
h2.section-title {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink-900);
  margin: 0;
}
h2.section-title-lg {
  font-size: clamp(28px, 3.5vw, 38px);
  color: var(--ink-900);
  margin: 0;
}
h2.cta-title {
  font-size: clamp(26px, 3.5vw, 38px);
  color: #fff;
  margin: 0 0 16px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head.narrow { max-width: 600px; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 16px;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-80);
  max-width: 640px;
  margin: 0 auto 40px;
}
.lead-dark {
  font-size: 16.5px;
  color: var(--on-dark-80);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}
.lead-service {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-350);
  margin: 0 0 32px;
}

.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px 0;
  font-size: 13px;
  color: var(--ink-200);
}
.breadcrumb a { color: var(--ink-200); }
.breadcrumb .current { color: var(--ink-800); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-7 { grid-template-columns: repeat(7, 1fr); }
.gap-sm { gap: 16px; }
.gap-md { gap: 20px; }

@media (max-width: 980px) {
  .grid-7 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4, .grid-5, .grid-7 { grid-template-columns: 1fr; }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-tight { padding: 22px; border-radius: var(--radius-md); }
.card-xl { border-radius: var(--radius-xl); padding: 40px; }
.card-flex { display: flex; flex-direction: column; }
.card-dark {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-dark-title { font-weight: 700; font-size: 15.5px; color: #fff; margin-bottom: 10px; }
.card-dark-body { font-size: 13.5px; color: var(--on-dark-72); line-height: 1.6; }

.card-title { font-weight: 700; font-size: 14.5px; color: var(--ink-900); }
.card-subtitle { font-size: 13px; color: var(--ink-250); margin-top: 6px; }

/* Pills / tags */
.pill {
  font-size: 11.5px;
  background: var(--bg-muted);
  color: var(--ink-400);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
}
.tag-stack {
  background: var(--bg-muted);
  border: 1px solid var(--border-soft);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  display: inline-block;
}

/* Stat blocks */
.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 34px;
  color: var(--ink-900);
}
.stat-label { font-size: 13.5px; color: var(--ink-250); margin-top: 4px; }

.step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  color: oklch(80% 0.03 262);
  margin-bottom: 10px;
}
.step-num-light { color: oklch(75% 0.05 262); }
.step-title { font-weight: 700; font-size: 15.5px; color: var(--ink-900); margin-bottom: 6px; }
.step-body { font-size: 13.5px; color: var(--ink-250); line-height: 1.5; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--border-soft); padding: 18px 0; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
}
.faq-question span.q { font-weight: 700; font-size: 15.5px; color: var(--ink-900); }
.faq-question span.symbol { font-size: 18px; color: var(--blue); flex-shrink: 0; margin-left: 12px; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  font-size: 14.5px;
  color: var(--ink-300);
  line-height: 1.6;
}
.faq-item.open .faq-answer { max-height: 300px; margin-top: 10px; }

/* Comparison table */
.compare-table {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.compare-row {
  display: grid;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row.head { background: var(--navy-950); border-bottom: none; }
.compare-row.head .cell { font-size: 12.5px; font-weight: 700; color: #fff; }
.compare-row.head .cell:first-child { color: var(--on-dark-70); }
.cell { font-size: 13.5px; color: var(--ink-600); }
.cell.muted { color: var(--ink-250); }
.cell.strong { font-weight: 700; }

/* Filter buttons (Work page) */
.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-softer);
  background: #fff;
  color: var(--ink-600);
}
.filter-btn.active { border: none; background: var(--blue); color: #fff; }

/* Case study card */
.case-study {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.case-study-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.case-client { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-250); }
.case-headline { font-family: var(--font-heading); font-weight: 700; font-size: 23px; color: var(--ink-900); margin-bottom: 22px; line-height: 1.35; }
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.case-block-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.case-block-label.amber { color: var(--amber); }
.case-block-label.blue { color: var(--blue); }
.case-block-body { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; }

@media (max-width: 700px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
}

/* Contact form */
.form-panel { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; }
.step-dots { display: flex; gap: 8px; margin-bottom: 32px; }
.step-dot { flex: 1; height: 4px; border-radius: var(--radius-pill); background: var(--border); }
.step-dot.active { background: var(--blue); }
.form-step { display: none; }
.form-step.active { display: block; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.option-btn {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border-softer);
  background: #fff;
  color: var(--ink-800);
}
.option-btn.selected { border: 2px solid var(--blue); background: var(--blue-soft-bg); }
.form-input, .form-textarea {
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid var(--border-softer);
  font-size: 14.5px;
  font-family: var(--font-body);
  width: 100%;
}
.form-textarea { resize: vertical; }
.form-actions { display: flex; gap: 12px; }
.btn-form-primary {
  padding: 14px 24px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex: 1;
}
.btn-form-primary:disabled { background: var(--border-soft); color: var(--ink-200); cursor: not-allowed; }
.btn-form-back {
  padding: 14px 24px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink-600);
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid var(--border-softer);
  cursor: pointer;
}
.thanks-panel { display: none; text-align: center; padding: 40px 0; }
.thanks-panel.active { display: block; }
.contact-side-card { border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.contact-side-card.muted { background: var(--bg-muted); border: none; }
.contact-side-title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--ink-900); margin-bottom: 16px; }
.contact-direct-link { font-size: 14.5px; color: var(--ink-600); display: flex; align-items: center; gap: 8px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr !important; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Misc responsive collapses for two-col content sections */
@media (max-width: 900px) {
  .grid-2.stack-mobile { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .case-grid, .compare-row { font-size: 13px; }
}

.industry-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.industry-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.industry-icon.blue { background: var(--blue-chip-bg); color: var(--blue); }
.industry-icon.amber { background: var(--amber-chip-bg); color: var(--amber); }
.industry-title { font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--ink-900); margin-bottom: 10px; }
.industry-body { font-size: 14.5px; color: var(--ink-300); line-height: 1.6; margin-bottom: 16px; }
.industry-list { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-500); }
.industry-list.row { flex-direction: row; gap: 24px; }
.industry-card.span-2 { grid-column: span 2; }

@media (max-width: 700px) {
  .industry-card.span-2 { grid-column: span 1; }
  .industry-list.row { flex-direction: column; gap: 6px; }
}

.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; background: #fff; cursor: pointer; }
.blog-tag { font-size: 11.5px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: 0.05em; }
.blog-title { font-family: var(--font-heading); font-weight: 700; font-size: 17.5px; color: var(--ink-900); line-height: 1.35; }
.blog-body { font-size: 13.5px; color: var(--ink-250); line-height: 1.55; }

/* Article modal (Resources page) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-panel {
  background: #fff;
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 48px 40px 40px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-600);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-muted); }

@media (max-width: 700px) {
  .modal-panel { padding: 40px 24px 32px; max-height: 90vh; }
}
