@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f9fa;
  --bg-alt: #f0f2f4;
  --surface: #ffffff;
  --surface-soft: #e9ecef;
  --text-primary: #1a1a2e;
  --text-secondary: #495057;
  --text-muted: #868e96;
  --border: #dee2e6;
  --accent: #0f7b6c;
  --accent-strong: #0a5e52;
  --accent-soft: #34c7a9;
  --shadow-soft: 0 10px 28px rgba(10, 94, 82, 0.07);
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg) 0%, #eef0f2 100%);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

button,
a {
  cursor: pointer;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

button:focus-visible,
a:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.75);
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-primary);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  font-weight: 600;
}

.section-title {
  max-width: 680px;
  margin-bottom: 18px;
  line-height: 1.18;
}

.section-intro {
  max-width: 820px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.subheading {
  margin-top: 22px;
  margin-bottom: 12px;
  color: var(--accent-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  border-color: var(--accent-soft);
  color: var(--accent-strong);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--accent-strong);
  background: rgba(15, 123, 108, 0.06);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 2px solid var(--accent-faded);
  padding: 2px 0;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-link:hover {
  border-color: var(--accent-strong);
  transform: translateX(4px);
}

.nav {
  position: fixed;
  inset: 24px 0 auto 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
}

.nav.scrolled {
  inset: 12px 0 auto 0;
}

.nav-inner {
  width: min(700px, 94%);
  margin: 0 auto;
  min-height: 52px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: auto;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px -1px rgba(0, 0, 0, 0.03);
}

.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-strong);
  text-decoration: none;
}

.nav-logo {
  height: 24px;
  width: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: white;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-strong);
  background: rgba(10, 94, 82, 0.08);
  /* More subtle, less green */
}

.nav-links a.active {
  color: #fff;
  background: var(--accent-strong);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.88rem;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(31, 36, 48, 0.3);
  z-index: 62;
  display: none;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  margin-left: auto;
  width: min(320px, 82vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-close {
  align-self: flex-end;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 600;
}

.mobile-link {
  font-size: 1.05rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--surface-soft);
}

.mobile-link.active {
  color: var(--accent-strong);
}

.hero {
  padding-top: 160px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(248, 249, 250, 0.94) 0%, rgba(248, 249, 250, 0.85) 100%),
    repeating-linear-gradient(0deg, rgba(15, 123, 108, 0.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(15, 123, 108, 0.04) 0 1px, transparent 1px 40px);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(52, 199, 169, 0.06) 0%, rgba(52, 199, 169, 0) 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-layout {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.hero-layout h1 {
  font-size: 4.5rem;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
}

.hero-role {
  margin-top: 12px;
  font-size: 1.2rem;
  color: var(--accent-strong);
  max-width: 800px;
}

.hero-summary {
  margin-top: 18px;
  max-width: 800px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.hero-snapshot {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 840px;
}

.snapshot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-metrics {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 94, 82, 0.12);
}

.metric-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.66rem;
  font-weight: 600;
  color: var(--accent-strong);
  line-height: 1.1;
}

.metric-label {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

.profile-image-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.profile-image {
  border-radius: calc(var(--radius-lg) - 8px);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.kpi-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kpi-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.kpi-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.kpi-label {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.expertise-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Technical Tool Stack - Premium Refinement */
.tech-stack-container {
  margin-top: 100px;
  padding: 60px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 123, 108, 0.1);
  border-radius: var(--radius-xl);
  box-shadow:
    0 10px 30px -10px rgba(10, 94, 82, 0.08),
    0 0 0 1px rgba(10, 94, 82, 0.02);
  position: relative;
  overflow: hidden;
}

.tech-stack-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  opacity: 0.6;
}

.tech-stack-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 16px;
}

.tech-stack-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.tech-stack-group h4 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-stack-group h4::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tech-stack-group:nth-child(2) h4::before {
  background: #5851db;
}

.tech-stack-group:nth-child(3) h4::before {
  background: #1f2430;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-tag {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  display: inline-flex;
  align-items: center;
}

.tech-tag:hover {
  border-color: var(--accent-soft);
  color: var(--accent-strong);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(15, 123, 108, 0.12);
  background: #fff;
}

/* Category-specific tag hover enhancements */
.tech-stack-group:nth-child(2) .tech-tag:hover {
  border-color: #5851db66;
  color: #5851db;
  box-shadow: 0 8px 20px rgba(88, 81, 219, 0.12);
}

.tech-stack-group:nth-child(3) .tech-tag:hover {
  border-color: #1f2430;
  color: #1f2430;
  box-shadow: 0 8px 20px rgba(31, 36, 48, 0.12);
}

.expertise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -12px rgba(10, 94, 82, 0.15);
  border-color: var(--accent-soft);
}

.expertise-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.expertise-header .icon {
  width: 24px;
  height: 24px;
  color: var(--accent-strong);
}

.expertise-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-strong);
  line-height: 1.2;
}

/* Redesigned List Style */
.expertise-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expertise-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.expertise-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--accent-soft);
  border-radius: 50%;
}

.expertise-proof-box {
  margin-top: auto;
  padding: 16px;
  background: #f4f9f7;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expertise-proof-box .proof-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.expertise-proof-box .proof-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.timeline {
  margin-top: 24px;
  position: relative;
  display: grid;
  gap: 16px;
  padding: 6px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e0f5ee 0%, #0f7b6c 100%);
  opacity: 0.85;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Odd items slide in from left, even from right */
.timeline-item-odd {
  opacity: 0;
  transform: translateX(-28px);
}

.timeline-item-even {
  opacity: 0;
  transform: translateX(28px);
}

/* Override base .reveal translateY for timeline items */
.timeline-item-odd.reveal,
.timeline-item-even.reveal {
  transform: translateX(-28px);
}

.timeline-item-even.reveal {
  transform: translateX(28px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.timeline-node {
  position: absolute;
  left: 8px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ecfdf8;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(10, 94, 82, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

@keyframes nodeRingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 123, 108, 0.35);
  }

  60% {
    box-shadow: 0 0 0 8px rgba(15, 123, 108, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(15, 123, 108, 0);
  }
}

.timeline-node .icon {
  width: 14px;
  height: 14px;
}

.timeline-item.visible .timeline-node {
  background: #d4f5eb;
  animation: nodeRingPulse 1.2s ease 0.3s forwards;
}

.timeline-card {
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f5faf8 100%);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 7px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.visible .timeline-card {
  border-left-color: var(--accent-soft);
}

.timeline-item:hover .timeline-card {
  transform: translateX(3px);
  box-shadow: 0 14px 32px rgba(31, 36, 48, 0.12);
  border-color: var(--border);
  border-left-color: var(--accent);
}

.timeline-period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-period {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.timeline-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ecfdf8;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.timeline-role {
  font-size: 1.24rem;
  color: var(--accent-strong);
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.timeline-track {
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 4px;
}

.timeline-impact {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ecfdf8;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Production Showcase Grid (Featured Work) ── */
.production-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
  background: #f5faf8;
}

.filter-btn.is-active {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
  box-shadow: 0 4px 12px rgba(10, 94, 82, 0.2);
}

.production-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -12px rgba(10, 94, 82, 0.15);
}

.work-media-link {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  width: 100%;
}

.work-media {
  width: 100%;
  height: 100%;
  position: relative;
}

.work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card:hover .work-thumb {
  transform: scale(1.05);
}

.work-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-media-overlay {
  opacity: 1;
}

.play-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(10, 94, 82, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.work-card:hover .play-icon-wrap {
  transform: scale(1);
}

.play-icon-wrap .icon {
  width: 24px;
  height: 24px;
}

.work-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 0;
  background: var(--surface);
}

.work-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-platform-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-faded);
  color: var(--accent-strong);
}

.work-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.work-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.35;
  margin-top: -2px;
}

.work-impact-bar {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.impact-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.impact-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
}

/* ── Channel Presence Section Refinement ── */
.channel-presence {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.channel-presence h3 {
  margin-bottom: 8px;
}

.channel-presence-intro {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.presence-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.presence-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.presence-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 20px -5px rgba(10, 94, 82, 0.1);
  transform: translateY(-4px);
}

.presence-platform {
  display: flex;
  align-items: center;
  gap: 10px;
}

.presence-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(31, 36, 48, 0.16);
}

.presence-icon-wrap .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

/* Real logo image rendered inside the icon wrap */
.presence-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* Text-initial fallback badge when logo file is absent */
.presence-fallback-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

.presence-icon-wrap.brand-youtube {
  background: linear-gradient(145deg, #ff4f45 0%, #d9291f 100%);
  border-color: #bf1f17;
}

.presence-icon-wrap.brand-instagram {
  background: linear-gradient(145deg, #f77737 0%, #c13584 50%, #5851db 100%);
  border-color: #a83472;
}

.presence-icon-wrap.brand-quora {
  background: linear-gradient(145deg, #b92b27 0%, #8b1b17 100%);
  border-color: #7a1714;
}

.presence-icon-wrap.brand-linkedin {
  background: linear-gradient(145deg, #2a78d2 0%, #1358aa 100%);
  border-color: #104b91;
}

.presence-title {
  display: grid;
  gap: 2px;
}

.presence-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.presence-metric {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: #d4f5eb;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  width: fit-content;
}

.presence-context {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.presence-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-strong);
  border-bottom: 1px solid var(--accent-soft);
  width: fit-content;
}

.presence-cta:hover {
  border-color: var(--accent-strong);
}

.presence-cta .icon {
  width: 12px;
  height: 12px;
}

/* ── Case Study Redesign (Preview Cards & Modal) ── */

.case-preview-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.case-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.case-preview-card:hover,
.case-preview-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 12px 24px -8px rgba(10, 94, 82, 0.12);
}

.case-preview-card:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-faded), 0 12px 24px -8px rgba(10, 94, 82, 0.12);
}

.case-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-preview-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: var(--accent-faded);
  color: var(--accent-strong);
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
}

.case-preview-period {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.case-preview-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--accent-strong);
}

.case-preview-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: -8px;
}

.case-preview-summary {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.case-preview-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-pm-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.case-pm-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.case-preview-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 8px;
}

.case-preview-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.case-preview-card:hover .case-preview-cta svg {
  transform: translateX(4px);
}

/* ── Modal System ── */

body.modal-open {
  overflow: hidden;
}

.case-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 40, 35, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.case-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.case-modal {
  background: var(--surface);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
}

.case-modal-overlay.is-active .case-modal {
  transform: translateY(0) scale(1);
}

.case-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2010;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.case-modal-close:hover {
  background: #eee0d4;
  color: var(--accent-strong);
  transform: rotate(90deg);
}

.case-modal-body {
  padding: 40px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.case-modal-body::-webkit-scrollbar {
  width: 6px;
}

.case-modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* ── Modal Content Elements ── */

.modal-header {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  color: var(--accent-strong);
  line-height: 1;
}

.modal-role-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.modal-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.modal-period {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-summary {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 800px;
  margin-top: 20px;
}

/* ── Strategic Systems Section ── */

.system-preview-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.system-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  border-bottom: 3px solid var(--border);
}

.system-preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #f5faf8;
}

.sys-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sys-preview-head .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.sys-badge {
  font-family: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.system-preview-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.system-preview-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.sys-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: auto;
}

/* ── Modal Expansion for Systems ── */

.modal-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.modal-data-table th,
.modal-data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.modal-data-table th {
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.modal-system-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.modal-sys-metric-card {
  padding: 16px;
  background: var(--surface-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.modal-sys-metric-val {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
}

.modal-sys-metric-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.modal-technical-list {
  background: #f8fbfa;
  border-left: 4px solid var(--accent-soft);
  padding: 24px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 20px 0;
}

.modal-technical-list h5 {
  color: var(--accent-strong);
  font-size: 1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-technical-list ul {
  display: grid;
  gap: 12px;
}

.modal-technical-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}

.modal-technical-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 800;
}

/* ── Keeping rest of file ── */


.modal-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--accent-strong);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-section-title .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* ── Chart Styles (Modal) ── */

.modal-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

/* Donut Chart */
.chart-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.chart-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.chart-donut-container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.chart-donut-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.chart-donut-wrapper svg {
  transform: rotate(-90deg);
}

.chart-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.chart-donut-center .val {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1;
}

.chart-donut-center .lbl {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.chart-legend {
  display: grid;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-meta {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Bar Chart */
.chart-bar-container {
  display: grid;
  gap: 20px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
}

.bar-label {
  color: var(--text-secondary);
}

.bar-value {
  color: var(--accent-strong);
}

.bar-track {
  height: 10px;
  background: var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-active .bar-fill {
  transform: scaleX(1);
}

/* CTR Progress Chart */
.ctr-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding-top: 20px;
}

.ctr-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ctr-bar {
  width: 100%;
  max-width: 60px;
  background: var(--accent-faded);
  border: 1px solid var(--accent-soft);
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ctr-bar.is-peak {
  background: var(--accent);
  border-color: var(--accent-strong);
}

.ctr-bar-val {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 800;
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.ctr-bar-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

/* Systems Matrix (Modal) */
.modal-systems-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.modal-system-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 700;
}

.msc-head .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.msc-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.msc-proof {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dotted var(--border);
}

/* Platform Accordion (Modal) */
.modal-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.modal-platform-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.modal-platform-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--accent-strong);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}

.modal-platform-item ul {
  display: grid;
  gap: 10px;
}

.modal-platform-item li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 14px;
}

.modal-platform-item li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ORM Credibility (Modal) */
.modal-orm-section {
  background: linear-gradient(135deg, var(--surface) 0%, #ecfdf8 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 40px;
}

.modal-orm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-orm-chip {
  background: white;
  border: 1px solid var(--accent-soft);
  color: var(--accent-strong);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(10, 94, 82, 0.05);
}

/* Credential Callout (Modal) */
.modal-credential {
  margin-top: 40px;
  background: #fdfaf5;
  border: 1px solid #eee0d4;
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: center;
}

.modal-credential-icon {
  width: 48px;
  height: 48px;
  background: #eee0d4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a583d;
  flex-shrink: 0;
}

.modal-credential-content h4 {
  color: #5f422c;
  margin-bottom: 4px;
}

.modal-credential-content p {
  color: #7a583d;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Responsive Mobile Adjustments ── */

@media (max-width: 992px) {
  .modal-data-grid {
    grid-template-columns: 1fr;
  }
}

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

  .case-modal {
    max-height: 100vh;
    border-radius: 0;
  }

  .case-modal-overlay {
    padding: 0;
  }

  .case-modal-body {
    padding: 24px;
  }

  .modal-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .case-preview-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .chart-donut-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Keeping Writing Evidence Styles ── */
.writing-evidence {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.writing-evidence-head {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
}

.writing-evidence-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.2;
  position: relative;
  padding-left: 16px;
}

.writing-evidence-head h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent-soft);
  border-radius: 2px;
}

.writing-evidence-sub {
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
  max-width: 620px;
}

/* Keep old h3 rule for any other usage */
.writing-evidence h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 6px;
  line-height: 1.2;
  position: relative;
  padding-left: 16px;
}

.writing-evidence h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--accent-soft);
  border-radius: 2px;
}

.writing-evidence>.section-intro {
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 4px;
}

/* ── New Writing Clients Grid ── */
.writing-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.writing-client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.writing-client-card:hover,
.writing-client-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
  /* Neutral shadow */
  background: #ffffff;
  /* Clean white */
}

.writing-client-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.writing-client-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1a1a2e;
  /* Neutral dark instead of greenish/brownish gradient */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.writing-client-head-text {
  display: flex;
  flex-direction: column;
}

.writing-client-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.1;
}

.writing-client-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.writing-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.writing-type-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  background: var(--accent-faded);
  color: var(--accent-strong);
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
}

.writing-domain-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
}

.writing-client-scope {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.writing-areas-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: -4px;
}

.writing-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.writing-area-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: #f8f9fa;
  /* More neutral */
  padding: 2px 10px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.writing-client-cta {
  margin-top: auto;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.writing-client-cta::after {
  content: '→';
  transition: transform 0.2s ease;
}

.writing-client-card:hover .writing-client-cta::after {
  transform: translateX(4px);
}

.writing-skills-bar {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.writing-skill {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  background: #ffffff;
  /* Clean white instead of greenish gradient */
  padding: 14px 16px;
  display: grid;
  gap: 5px;
}

.writing-skill-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-strong);
}

.writing-skill-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Writing client grid (old, hidden) */
.writing-client-grid {
  display: none;
}



/* Duplicate Writing Portfolio styles removed */

.contact-meta-row {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f5faf8;
  color: var(--accent-strong);
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
}

.contact-meta-pill .icon {
  width: 13px;
  height: 13px;
}

.contact-exec-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}

.contact-profile-card,
.contact-action-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f5faf8 100%);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.contact-profile-card h3,
.contact-action-card h3 {
  margin-bottom: 8px;
  color: var(--accent-strong);
}

.contact-profile-lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-profile-sublead {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.service-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-chip {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ecfdf8;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-profile-meta {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.contact-profile-meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-profile-meta .icon {
  width: 15px;
  height: 15px;
  color: #846346;
  margin-top: 2px;
}

.contact-action-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-action-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-route {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f5faf8;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0 12px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.contact-route:hover {
  border-color: var(--accent-soft);
  color: var(--accent-strong);
  background: #f5faf8;
}

.contact-route-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-route .icon {
  width: 14px;
  height: 14px;
}

.contact-route-primary {
  border-color: var(--accent-soft);
  background: #ecfdf8;
  color: var(--accent-strong);
}

.contact-route-primary:hover {
  border-color: var(--accent);
  background: #d4f5eb;
}

.contact-route-secondary {
  background: #fffdf9;
}

.contact-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* --- Contact redesign: shell + action matrix --- */
.contact-shell {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.contact-header-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.contact-intent-card,
.contact-operating-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f5faf8 100%);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.contact-intent-card h3,
.contact-operating-card h3 {
  margin-bottom: 8px;
  color: var(--accent-strong);
}

.contact-intent-copy {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.contact-operating-meta {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.contact-action-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.contact-action-tile {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f5faf8 100%);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  text-decoration: none;
}

.contact-action-tile:hover {
  border-color: var(--accent-soft);
  background: #f5faf8;
  transform: translateY(-1px);
}

.contact-action-primary {
  border-color: var(--accent-soft);
  background: linear-gradient(180deg, #ecfdf8 0%, #d4f5eb 100%);
}

.contact-action-primary:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, #d4f5eb 0%, #b8eddb 100%);
}

.contact-action-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--accent-strong);
  grid-column: 1;
  grid-row: 1;
}

.contact-action-title .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.contact-action-copy {
  font-size: 0.79rem;
  color: var(--text-muted);
  grid-column: 1;
  grid-row: 2;
  line-height: 1.4;
}

.contact-action-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  color: var(--accent-soft);
}

.contact-action-arrow .icon {
  width: 14px;
  height: 14px;
}

.contact-secondary-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color var(--transition), background var(--transition);
}

.contact-secondary-link:hover {
  border-color: var(--accent-soft);
  background: #f5faf8;
}

/* ── Education Section ─────────────────────────────────────── */
.education-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.edu-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #f5faf8 100%);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  display: grid;
  gap: 0;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.edu-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(10, 94, 82, 0.13);
}

.edu-card--active {
  border-color: var(--accent-soft);
  background: linear-gradient(160deg, #f0fdf9 0%, #d4f5eb 100%);
}

.edu-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.edu-badge--pursuing {
  background: linear-gradient(135deg, #b8eddb, #34c7a9);
  border: 1px solid #0f7b6c;
  color: #063d34;
  box-shadow: 0 0 10px rgba(52, 199, 169, 0.3);
}

.edu-badge--completed {
  background: #eef7ee;
  border: 1px solid #a8cfa8;
  color: #2e6b2e;
}

.edu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf8;
  border: 1px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.edu-icon svg {
  width: 18px;
  height: 18px;
}

.edu-card-body {
  display: grid;
  gap: 6px;
}

.edu-degree {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-strong);
  line-height: 1.3;
  margin: 0;
}

.edu-spec {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0.02em;
}

.edu-school {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.edu-note {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.edu-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edu-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ecfdf8;
  color: var(--accent-strong);
  font-size: 0.73rem;
  font-weight: 600;
}

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

/* ── End Education Section ─────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  background: var(--surface);
  text-align: center;
}

.footer p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.06s;
}

.reveal-delay-2 {
  transition-delay: 0.12s;
}

.reveal-delay-3 {
  transition-delay: 0.18s;
}

.reveal-delay-4 {
  transition-delay: 0.24s;
}

.reveal-delay-5 {
  transition-delay: 0.3s;
}

@media (max-width: 1024px) {

  .hero-metrics,
  .numbers-ribbon,
  .impact-grid,
  .presence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-image-wrap {
    max-width: 480px;
  }

  .kpi-strip,
  .lead-split-grid,
  .systems-matrix,
  .ownership-grid,
  .writing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expertise-grid,
  .accordion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-exec-grid,
  .contact-header-row {
    grid-template-columns: 1fr;
  }

  .hero-snapshot {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .case-accordion summary {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  .summary-meta {
    grid-column: 1 / span 2;
    justify-self: start;
    text-align: left;
    max-width: 100%;
  }

  .case-accordion summary::after {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 74px 0;
  }

  .nav-inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-role {
    font-size: 1.08rem;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .snapshot-chip {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  .hero-metrics,
  .kpi-strip,
  .expertise-grid,
  .numbers-ribbon,
  .lead-split-grid,
  .impact-grid,
  .systems-matrix,
  .presence-grid,
  .writing-grid,
  .writing-client-grid,
  .ownership-grid,
  .accordion-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 46px;
  }

  .timeline-node {
    left: 2px;
  }

  .carousel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-card {
    flex-basis: min(82vw, 320px);
  }

  .ctr-journey {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ctr-line {
    width: 100%;
  }

  .summary-meta {
    grid-column: 1 / span 2;
    justify-self: start;
    text-align: left;
    font-size: 0.78rem;
    max-width: 100%;
  }

  .case-accordion summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .writing-card-head {
    flex-wrap: wrap;
  }

  .writing-sample-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

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

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

  .contact-route {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .carousel-block,
  .case-card,
  .writing-card,
  .contact-profile-card,
  .contact-action-card,
  .timeline-card {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}