/* ============================================
   Page-specific sections
   ============================================ */

/* ── Hero (Cinematic Center-Aligned) ── */
.hero-cinematic {
  position: relative;
  padding-block: clamp(80px, 10vw + 60px, 180px) clamp(64px, 8vw + 40px, 120px);
  text-align: center;
  overflow: hidden;
}

.hero-cinematic-bg {
  position: absolute; inset: 0; z-index: -1;
  background: var(--surface);
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.glow-orb.orb-1 {
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  background: var(--lime-soft);
  top: -20%; left: 50%;
  transform: translateX(-50%);
}

.glow-orb.orb-2 {
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  background: rgba(11, 51, 40, 0.08);
  bottom: -10%; right: -10%;
  animation-delay: -5s;
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(to right, rgba(9,9,11,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9,9,11,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 20%, transparent 80%);
}

@keyframes orbFloat {
  0% { transform: translate(-50%, 0) scale(1); }
  100% { transform: translate(-50%, 5%) scale(1.05); }
}

.hero-cinematic-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: 'Geist Mono', monospace;
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--forest);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 4vw + 1.5rem, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--sp-6);
  max-width: 900px;
  text-align: center;
  margin-inline: auto;
}

.hero-title .highlight {
  color: var(--forest);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px;
  height: 12px; background: var(--lime);
  z-index: -1; transform: skewX(-15deg);
  transition: width 0.35s var(--ease);
}

/* Role-cycling animation states */
#hero-role {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

#hero-role.role-exit {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#hero-role.role-enter {
  animation: roleSlideIn 0.4s var(--ease) both;
}

@keyframes roleSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-lead {
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.375rem);
  color: var(--ink-60);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: var(--sp-8);
  text-align: center;
  margin-inline: auto;
}

.hero-actions {
  display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center;
  margin-bottom: var(--sp-8);
}

.hero-perks {
  display: flex; gap: var(--sp-6); flex-wrap: wrap; justify-content: center;
  font-size: 0.9375rem; color: var(--ink-60); font-weight: 500;
}

.hero-perks span {
  display: inline-flex; align-items: center; gap: 6px;
}

.hero-perks i {
  color: var(--success); font-size: 1.2em;
}

.hero-stats-bar {
  margin-top: clamp(64px, 8vw, 120px);
  position: relative; z-index: 2;
}

.hs-grid {
  display: grid;
  /* Single column on mobile; responsive.css expands */
  grid-template-columns: 1fr;
  
  /* Premium Dark Theme Override */
  --border: rgba(255, 255, 255, 0.1);
  background: var(--forest);
  border-radius: var(--r-2xl);
  box-shadow: 0 32px 64px -16px rgba(11, 51, 40, 0.4), 0 0 0 1px rgba(197, 241, 53, 0.3);
  overflow: hidden;
  position: relative;
}

/* Subtle inner glow */
.hs-grid::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hs-item {
  padding: var(--sp-8);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  z-index: 1;
}

.hs-val {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 800; color: #fff; letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 8px;
}

.hs-label {
  font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}

.hs-tech { 
  background: rgba(197, 241, 53, 0.03); 
  position: relative;
}
.hs-tech::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, rgba(197, 241, 53, 0.08) 0%, transparent 70%);
}

.hs-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.hs-icons .mono { 
  background: rgba(255, 255, 255, 0.05); 
  color: var(--lime); 
  padding: 4px 10px; 
  border-radius: 6px; 
  border: 1px solid rgba(197, 241, 53, 0.2); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Page hero (interior pages) ── */
.page-hero {
  padding-block: clamp(72px, 5vw + 48px, 128px) clamp(48px, 3vw + 24px, 80px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197,241,53,.18), transparent 65%),
    var(--surface);
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: var(--sp-4); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); margin-bottom: var(--sp-4); }
.page-hero p { font-size: 1.125rem; max-width: 640px; margin-inline: auto; }

/* ── Problem cards ── */
.problem-card { border-color: var(--border); }
.problem-card .card-icon { background: #FEF2F2; color: var(--error); }

/* ── Process / Timeline ── */
.process-list {
  display: grid;
  /* Single column by default (mobile). Responsive.css expands at 768px and 1024px */
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  position: relative;
}
.process-step {
  position: relative;
  padding: var(--sp-6);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.process-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--forest); color: var(--lime);
  font-family: 'Geist Mono', monospace; font-weight: 700; font-size: 1rem;
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}
.process-step h4 { margin-bottom: 6px; font-size: 1.0625rem; }
.process-step p { font-size: .9375rem; }

/* Vertical timeline (about) */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; padding-bottom: var(--sp-10); }
.tl-item::before {
  content: ''; position: absolute; left: -34px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--lime); border: 3px solid var(--forest);
}
.tl-year { font-family: 'Geist Mono', monospace; font-size: .8125rem; color: var(--forest); font-weight: 600; letter-spacing: .08em; margin-bottom: 6px; }
.tl-item h4 { font-size: 1.125rem; margin-bottom: 6px; }
.tl-item p { font-size: .9375rem; }

/* ── Industries / Solutions ── */
.industry-card {
  position: relative;
  padding: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: #fff;
  transition: all var(--t-base) var(--ease);
  overflow: hidden;
}
.industry-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.industry-card:hover::before { transform: scaleX(1); }
.industry-card .ic-icon { font-size: 1.875rem; color: var(--forest); margin-bottom: var(--sp-4); }
.industry-card h3 { margin-bottom: 8px; font-size: 1.125rem; }
.industry-card p { font-size: .9375rem; }

/* ── Testimonials ── */
.tm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.tm {
  padding: var(--sp-8);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.tm-stars { color: var(--lime); display: flex; gap: 2px; font-size: 1.05rem; }
.tm-quote { font-size: 1.0625rem; color: var(--ink-80); line-height: 1.55; flex-grow: 1; }
.tm-author { display: flex; align-items: center; gap: 12px; padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.tm-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest); color: var(--lime);
  display: grid; place-items: center;
  font-weight: 700; font-size: .9375rem;
}
.tm-name { font-weight: 600; font-size: .9375rem; }
.tm-role { font-size: .8125rem; color: var(--ink-60); }

/* ── CTA band ── */
.cta-band {
  padding-block: clamp(64px, 4vw + 40px, 112px);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(197,241,53,.18), transparent 60%),
    var(--forest);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--sp-4); max-width: 720px; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin-inline: auto; margin-bottom: var(--sp-8); font-size: 1.0625rem; }
.cta-band .cta-row { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ── Pricing / Curriculum card ── */
.price-card {
  padding: var(--sp-10) var(--sp-8);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  background: var(--forest); color: #fff;
  border-color: var(--forest);
}
.price-card.featured h3 { color: #fff; }
.price-card.featured p { color: rgba(255,255,255,.7); }
.price-amount { font-size: 3.25rem; font-weight: 800; letter-spacing: -.03em; color: var(--forest); }
.price-card.featured .price-amount { color: var(--lime); }
.price-amount .currency { font-size: 1.5rem; font-weight: 600; vertical-align: top; margin-right: 4px; }
.price-strike { text-decoration: line-through; color: var(--ink-40); margin-left: 8px; font-size: 1.125rem; font-weight: 500; }

/* ── Values / Mission grid (about) ── */
.value-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.value {
  padding: var(--sp-8);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: #fff;
  transition: all var(--t-base);
}
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--forest-border); }
.value-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--lime-soft); color: var(--forest);
  font-size: 1.375rem;
  margin-bottom: var(--sp-4);
}
.value h4 { margin-bottom: 8px; font-size: 1.0625rem; }
.value p { font-size: .9375rem; }

/* ── Team ── */
.team-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
}
.team-photo {
  width: 96px; height: 96px; margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), #0E4738);
  color: var(--lime);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.625rem;
}
.team-name { font-weight: 600; font-size: 1rem; }
.team-role { font-size: .875rem; color: var(--ink-60); margin-top: 2px; }

/* ── Case study ── */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.case {
  padding: var(--sp-8);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.case-meta { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.case h3 { margin-bottom: var(--sp-3); font-size: 1.25rem; }
.case-result {
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
}
.case-result .v { font-size: 1.5rem; font-weight: 700; color: var(--forest); letter-spacing: -.02em; }
.case-result .l { font-size: .75rem; color: var(--ink-60); margin-top: 2px; }

/* ── Contact split layout ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-12);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--sp-6); }
.info-item {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface-raised);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.info-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--forest); color: var(--lime);
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 1.125rem;
}
.info-item h4 { font-size: .9375rem; margin-bottom: 2px; }
.info-item p { font-size: .875rem; color: var(--ink-60); }
.info-item a { color: var(--forest); font-weight: 500; }

.contact-form-wrap {
  padding: var(--sp-10);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* Office cards */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.office {
  padding: var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}
.office h4 { font-size: 1rem; margin-bottom: 4px; }
.office p { font-size: .875rem; }

/* ── Resources Editorial (services-style) ── */
.res-editorial { background: var(--surface); }

.res-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-16);
  align-items: start;
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.res-row:last-child { border-bottom: none; }

.res-row-reverse { direction: rtl; }
.res-row-reverse > * { direction: ltr; }

.res-row-text { position: relative; }

.res-module-label {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(11,51,40,0.07);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}

.res-watermark {
  position: absolute;
  top: 0;
  right: 0;
  font-size: clamp(6rem, 10vw, 9rem);
  font-weight: 900;
  color: rgba(11,51,40,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
  overflow: visible;
}

.res-module-title {
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.res-module-desc {
  font-size: 1.0625rem;
  color: var(--ink-60);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 1;
}

.res-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  position: relative; z-index: 1;
}

.res-pill {
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-80);
  background: #fff;
}

/* Card (right/left panel) */
.res-row-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) var(--ease);
}
.res-row-card:hover { box-shadow: var(--shadow-md); }

.res-card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--sp-6);
}

.res-deliverables-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--sp-4);
}

.res-deliverables {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: var(--sp-8);
}

.res-deliverables li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem;
  color: var(--ink-80);
}

.res-deliverables li i {
  color: var(--forest);
  font-size: 1.1em;
  flex-shrink: 0;
}

.res-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.res-card-price {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.res-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  transition: gap var(--t-fast);
}
.res-card-link:hover { gap: 10px; }

.newsletter {
  padding: var(--sp-10);
  background: var(--forest);
  border-radius: var(--r-2xl);
  text-align: center;
  color: #fff;
}
.newsletter h2 { color: #fff; margin-bottom: var(--sp-3); }
.newsletter p { color: rgba(255,255,255,.7); margin-bottom: var(--sp-6); }
.newsletter-form { display: flex; gap: var(--sp-3); max-width: 480px; margin-inline: auto; }
.newsletter-form .input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.newsletter-form .input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form .input:focus { background: #fff; color: var(--ink); }

/* ── Curriculum / Feature rows ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-block: var(--sp-12);
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row h2 { margin-bottom: var(--sp-4); }
.feature-row .feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: var(--sp-6); }
.feature-row .feature-list li { display: flex; gap: 12px; font-size: .9375rem; color: var(--ink-80); }
.feature-row .feature-list i { color: var(--success); font-size: 1.1em; margin-top: 3px; }
.feature-visual {
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--lime-soft), #fff);
  border: 1px solid var(--border);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.fv-window {
  background: #fff; border-radius: var(--r-md); padding: var(--sp-4);
  border: 1px solid var(--border);
  font-family: 'Geist Mono', monospace; font-size: .8125rem;
  box-shadow: var(--shadow-sm);
}
.fv-window .dots { display: flex; gap: 6px; margin-bottom: var(--sp-3); }
.fv-window .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.fv-line { color: var(--ink-60); margin-bottom: 4px; }
.fv-line .kw { color: #BE185D; }
.fv-line .str { color: var(--success); }
.fv-line .cm { color: var(--ink-40); }