/* ============================================
   AJ Consulting — Shared Stylesheet
   ============================================ */

:root {
  --bg: #f5f2ec;
  --bg-elev: #ffffff;
  --bg-soft: #ece8df;
  --line: #d8d2c5;
  --line-strong: #b8b1a1;
  --text: #1a1a1a;
  --text-dim: #5c5a55;
  --text-mute: #8a8780;
  --accent: #b8541a;
  --accent-soft: rgba(184, 84, 26, 0.08);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(245, 242, 236, 0.85);
  border-bottom: 1px solid var(--line);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-text strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-text em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}

/* ---------- PAGE INTRO ---------- */
.page-intro {
  padding: 100px 0 80px;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-intro::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  pointer-events: none;
}
.page-intro .container { position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}
.page-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.5vw, 88px); 
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  max-width: 1000px;
}
.page-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-lede {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 680px;
  line-height: 1.55;
}

/* ---------- SECTION SCAFFOLDING ---------- */
section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
section:last-of-type { border-bottom: none; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 64px;
  align-items: end;
}

.section-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-title em {
  font-style: italic;
  color: var(--text-dim);
}

/* ---------- BUTTONS / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--text);
  padding: 14px 22px;
  border: 1px solid var(--text);
  background: transparent;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent:hover { background: var(--accent); color: var(--bg-elev); }
.arrow { font-family: var(--sans); transition: transform 0.25s; }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 320px;
  line-height: 1.55;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ---------- ENTRANCE ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; }

.pulse {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 84, 26, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(184, 84, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 84, 26, 0); }
}

/* ---------- STATS GRID (About page) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  height: 100%;
}
.stat { background: var(--bg); padding: 28px 24px; }
.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 12px;
}
.stat-wide {
  grid-column: 1 / -1;
}


/* ---------- CAPABILITY ROWS (About page principles) ---------- */
.cap-list { border-top: 1px solid var(--line); }
.cap {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.3s;
}
.cap:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 35%);
  padding-left: 16px;
}
.cap-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 8px;
}
.cap-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.cap-desc { color: var(--text-dim); font-size: 16px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ---------- CARDS (Thinking page) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.5s;
}
.card:hover::before { width: 100%; }
.card-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
.card-meta span:last-child { color: var(--text-mute); }
.card-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.card-body { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

/* ---------- ENGAGEMENT STRIP ---------- */
.engage-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 64px;
}
.engage-cell {
  background: var(--bg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.engage-cell::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s;
}
.engage-cell:hover {
  background: var(--bg-elev);
}
.engage-cell:hover::before {
  width: 100%;
}

.engage-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.engage-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.engage-desc { font-size: 15px; color: var(--text-dim); line-height: 1.55; }


/* ---------- MATRIX (Case Studies, Services) ---------- */
.matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -32px;
  padding: 0 32px;
}
.matrix {
  display: grid;
   grid-template-columns: 200px repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 860px;
}
.matrix-header {
  background: var(--bg-soft);
  padding: 20px 16px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 500;
}
.matrix-header.col-header { text-align: center; }
.matrix-row-label {
  background: var(--bg-soft);
  padding: 20px 16px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.matrix-row-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.matrix-cell {
  background: var(--bg);
  padding: 20px 16px;
  min-height: 100px;
  transition: background 0.2s;
  cursor: default;
}
/*.matrix-cell[data-case] { cursor: pointer; }*/
.matrix-cell[data-case]:hover { background: var(--bg-elev); }
.matrix-cell.empty { background: var(--bg); }
.matrix-cell.empty::after {
  content: 'Let\'s discuss';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 14px;
}
.cell-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cell-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 10px;
}
.cell-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cell-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-mute);
  border: 1px solid var(--line-strong);
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Expandable detail (matrix) */
.cell-expand {
  display: none;
  grid-column: 1 / -1;
  background: var(--bg-elev);
  padding: 32px;
  border-bottom: 2px solid var(--accent);
}
.cell-expand.active { display: block; }
.cell-expand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.expand-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
}
.expand-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}
.expand-detail-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.expand-detail-list {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ---------- SERVICES MATRIX ---------- */
.svc-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -32px;
  padding: 0 32px;
}
.svc-matrix {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 860px;
}
.svc-header {
  background: var(--bg-soft);
  padding: 20px 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 500;
}
.svc-header.col-header { text-align: center; }
.svc-row-label {
  background: var(--bg-soft);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.svc-row-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.svc-row-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.svc-cell {
  background: var(--bg);
  padding: 20px 16px;
  min-height: 110px;
  transition: background 0.2s;
  cursor: default;
}
.svc-cell[data-svc] { cursor: pointer; }
.svc-cell[data-svc]:hover { background: var(--bg-elev); }
.svc-cell.empty { background: var(--bg); }
.svc-cell.empty::after {
  content: '-';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 14px;
}
.svc-cell-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.svc-cell-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Expand panel */
.svc-expand {
  display: none;
  grid-column: 1 / -1;
  background: var(--bg-elev);
  padding: 36px 32px;
  border-bottom: 2px solid var(--accent);
}
.svc-expand.active { display: block; }
.svc-expand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.svc-expand-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.svc-expand-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}
.svc-expand-qlabel {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.svc-q-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.svc-q-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.svc-q-item:last-child { border-bottom: none; padding-bottom: 0; }
.svc-q-fn {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.svc-q-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}

/* Navigation cards */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}

.nav-card {
  background: var(--bg);
  padding: 36px 28px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.nav-card:hover {
  background: var(--bg-elev);
}
.nav-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s;
}
.nav-card:hover::before {
  width: 100%;
}
.nav-card-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.nav-card-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.nav-card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 20px;
}
.nav-card-arrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s;
}
.nav-card:hover .nav-card-arrow {
  color: var(--accent);
}
.nav-card-arrow .arrow {
  font-family: var(--sans);
  transition: transform 0.25s;
}
.nav-card:hover .nav-card-arrow .arrow {
  transform: translate(3px, -3px);
}


.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  padding: 6px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Home-specific */
.home-hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.home-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
  opacity: 0.3;
}
.home-hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}
.home-content {
  position: relative;
  z-index: 2;
}



/* SERVICES */


/* ---------- SERVICES PAGE ---------- */

/* Two-column overview */
.svc-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: none;
}

.svc-col {
  background: var(--bg);
  padding: 32px 28px;
}
.svc-col-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.svc-col-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.svc-col-title em {
  font-style: italic;
  color: var(--text-dim);
}
.svc-col-intro {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Capability rows with expand */
.cap-rows {
  border-top: 1px solid var(--line);
}
.cap-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.cap-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  transition: padding 0.3s;
  position: relative;
}
.cap-row-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  transition: width 0.4s;
}
.cap-row:hover .cap-row-header {
  padding-left: 16px;
}
.cap-row:hover .cap-row-header::before {
  width: 100%;
}
.cap-row-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cap-row-name-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.cap-row-num {
  font-family: var(--mono);
  font-size: 11px;
  
	color: var(--accent);
	  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;

  flex-shrink: 0;
}


.cap-row-name,
.cap-row-name2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cap-row-sub {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.45;
  padding-left: 0;
  transition: color 0.3s;
}
.cap-row:hover .cap-row-sub {
  color: var(--text-dim);
}
.cap-row-toggle {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--text-mute);
  transition: transform 0.3s, color 0.3s;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cap-row.active .cap-row-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

/* Expand panel */
.cap-row-expand {
  display: none;
  padding: 28px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--accent);
}
.cap-row.active .cap-row-expand {
  display: block;
}
.cap-expand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 0 24px;
}

.cap-expand-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.cap-expand-body {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}
.cap-q-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cap-q-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cap-q-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cap-q-fn {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.cap-q-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
}

/* Engagement items */
.eng-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.eng-item {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.eng-item:first-child {
  border-top: 1px solid var(--line);
}
.eng-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.4s;
}
.eng-item:hover {
  background: var(--bg-elev);
}
.eng-item:hover::before {
  width: 100%;
}
.eng-item-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.eng-item-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.eng-item-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}


@media (max-width: 820px) {
  .nav-links { gap: 18px; font-size: 11px; }
  .logo span { display: none; }
}


@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .engage-strip { grid-template-columns: 1fr; }
  .nav-cards { grid-template-columns: 1fr; }
  .cred-numbers { gap: 24px; }
}

@media (max-width: 860px) {
  .svc-overview { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .cap-expand-grid { grid-template-columns: 1fr; padding-left: 0; }
}

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  section { padding: 70px 0; }
  .cap { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; }
  .cap-num { padding-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .cell-expand-inner { grid-template-columns: 1fr; }
  .svc-expand-inner { grid-template-columns: 1fr; }
}

/* Home-specific styles */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.home-grid > div {
  display: flex;
}

.home-grid .stats,
.home-grid .compact-cards {
  width: 100%;
  height: 100%;
}

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

.compact-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  height: 100%;
}

.compact-cards .nav-card {
  flex: 1;
}

/* About description */
.home-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.65;
}
.home-desc a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.home-desc a:hover {
  color: var(--accent);
}



/* ---------- CONTACT PAGE ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 80px;
  align-items: start;
}

.contact-email-wrap {
  margin-bottom: 48px;
}

.contact-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--text);
  text-decoration: none;
  
  padding-bottom: 6px;
  display: inline-block;
  transition: color 0.3s, border-color 0.3s;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-list-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.contact-list {
  list-style: none;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}

.contact-list li::before {
  content: '· ';
  color: var(--accent);
}

.contact-card {
  background: var(--bg-soft);
  padding: 36px 32px;
  border: 1px solid var(--line);
}

.contact-detail {
  margin-bottom: 24px;
}

.contact-detail:last-child {
  margin-bottom: 0;
}

.contact-detail-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.contact-detail-value {
  font-family: var(--serif);
  font-size: 18px;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-fit-grid {
    grid-template-columns: 1fr;
  }
}