/* =============================================
   INDEX PAGE — Hero
============================================= */

/* Push hero content below fixed nav (~72px tall) */
#home {
  background: var(--near-black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* top padding clears the fixed nav + breathing room */
  padding: calc(72px + 4rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-blob--1 { top: -120px; right: -120px; width: 480px; height: 480px; background: var(--sage); opacity: 0.06; }
.hero-blob--2 { bottom: -80px; left: -80px; width: 300px; height: 300px; background: var(--indigo); opacity: 0.08; }

.hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* h1 inherits global h1 size; override em color and boost presence */
.hero-headline {
  color: #fff;
  margin-bottom: 1.75rem;
  max-width: 900px;
  /* Override global clamp — go bigger in the hero */
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero-headline em { font-style: italic; color: var(--sage); }

.hero-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);  /* 18–22px */
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 0;   /* no longer followed immediately by button */
}

/* =============================================
   INDEX PAGE — Expertise Grid
============================================= */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.expertise-item { display: flex; align-items: flex-start; gap: 1rem; }

.expertise-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(106,143,110,0.15);
  border-radius: 8px;
}
.expertise-icon i {
  font-size: 22px;
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-label {
  font-size: var(--text-base);
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
}

.expertise-desc {
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

/* Resume CTA sits below the full expertise grid */
.expertise-cta {
  grid-column: 1 / -1;         /* spans full width of the 2-col grid */
  padding-top: 1.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* =============================================
   INDEX PAGE — Work Section
============================================= */
#work {
  background: var(--off-white);
  padding: 6rem 0;
}

/* h2 section heading — styled as editorial label above case study list */
.work-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);   /* matches global h2 */
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.15;
}

.cs-list { display: flex; flex-direction: column; }

.cs-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  align-items: center;
}
.cs-card:last-child { border-bottom: 1px solid var(--border); }

/* Color block visual */
.cs-visual {
  height: 230px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.cs-visual-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.cs-visual-number {
  position: absolute;
  bottom: -0.5rem; right: 1rem;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: #fff;
  opacity: 0.18;           /* raised: white on color is decorative, now more visible */
  user-select: none;
  pointer-events: none;
}

.cs-visual-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.28);   /* dark scrim behind badge = contrast boost */
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 0.35rem 0.875rem;
}

/* Accent backgrounds */
/* Solid color fallback for non-image cards */
.cs-card--sage   .cs-visual-inner { background-color: var(--sage); }
.cs-card--indigo .cs-visual-inner { background-color: var(--indigo); }
.cs-card--terra  .cs-visual-inner { background-color: var(--terracotta); }

/* Image thumbnail — no overlay, clean full-bleed crop */
.cs-visual-inner--img {
  background-size: cover;
  background-repeat: no-repeat;
}

/* Per-image crop positions */
.cs-card--sage   .cs-visual-inner--img { background-position: top center; }
.cs-card--indigo .cs-visual-inner--img { background-position: top left; }
.cs-card--terra  .cs-visual-inner--img { background-position: top left; }

/* Mobile crop adjustments */
@media (max-width: 768px) {
  .cs-card--sage   .cs-visual-inner--img { background-position: top center; }
  .cs-card--indigo .cs-visual-inner--img { background-position: top center; }
  .cs-card--terra  .cs-visual-inner--img { background-position: top left; }
}

/* Themed cs-tags — tinted background, themed border and text */
.cs-card--sage   .cs-tag {
  background-color: rgba(88, 120, 90, 0.08);
  border-color: rgba(88, 120, 90, 0.35);
  color: var(--sage-dark);
}
.cs-card--indigo .cs-tag {
  background-color: rgba(75, 75, 140, 0.08);
  border-color: rgba(75, 75, 140, 0.3);
  color: var(--indigo);
}
.cs-card--terra  .cs-tag {
  background-color: rgba(160, 85, 60, 0.08);
  border-color: rgba(160, 85, 60, 0.3);
  color: var(--terracotta);
}

/* Content */
.cs-content { padding-left: clamp(1.5rem, 4vw, 3rem); }

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.cs-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(28,28,28,0.2);
  color: var(--text-primary);    /* near-black on off-white = full contrast */
  letter-spacing: 0.02em;
}

/* h3 inherits global h3 size */
.cs-title { color: var(--text-primary); margin-bottom: 1rem; }

.cs-desc {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--text-secondary);  /* #4A4A4A on off-white ≈ 8:1 */
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  padding-bottom: 0.125rem;
  border-bottom: 1.5px solid currentColor;
  min-height: 44px;
}
.cs-cta-arrow { display: inline-block; }

.cs-card--sage   .cs-cta { color: var(--sage-dark); }
.cs-card--indigo .cs-cta { color: var(--indigo); }
.cs-card--terra  .cs-cta { color: var(--terracotta); }

@media (prefers-reduced-motion: no-preference) {
  .cs-cta-arrow { transition: transform 0.2s ease; }
  .cs-card:hover .cs-cta-arrow,
  .cs-cta:focus-visible .cs-cta-arrow { transform: translateX(4px); }
}

/* =============================================
   INDEX PAGE — About Snippet
============================================= */
#about-snippet {
  background: var(--near-black);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.about-blob {
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--indigo);
  opacity: 0.1;
  pointer-events: none;
}

.about-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

/* h2 styles come from global h2 */
.about-headline { color: #fff; margin-bottom: 1.25rem; }
.about-headline em { font-style: italic; color: var(--sage); }

.about-body {
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(255,255,255,0.78);  /* contrast-safe */
  line-height: 1.85;
  margin-bottom: 2rem;
}

/* Pillars */
.about-pillars { display: flex; flex-direction: column; gap: 1rem; }

.about-pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}

.pillar-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.dot-sage    { background: var(--sage); }
.dot-indigo  { background: var(--indigo-mid); }
.dot-terra   { background: var(--terracotta-mid); }
.dot-neutral { background: rgba(255,255,255,0.4); }

.pillar-text {
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(255,255,255,0.78);  /* contrast-safe */
  line-height: 1.65;
}
.pillar-text strong {
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 0.2rem;
}

/* =============================================
   INDEX — Responsive
============================================= */
@media (max-width: 900px) {
  .cs-card { grid-template-columns: 260px 1fr; }
}

@media (max-width: 768px) {
  #home { padding: calc(72px + 3rem) 0 3.5rem; }

  .expertise-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .cs-card { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .cs-visual { height: 180px; width: 100%; }
  .cs-content { padding-left: 0; padding-top: 1.5rem; }

  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cs-visual { height: 160px; }
  .cs-visual-number { font-size: 5rem; }
}

@media (max-width: 360px) {
  #home { padding: calc(72px + 2rem) 0 3rem; }
  .cs-visual { height: 140px; }
  .cs-visual-number { font-size: 4rem; }
  .cs-tag { font-size: 0.6875rem; padding: 0.2rem 0.625rem; }
}
