/* =============================================
   RICH JARVIS PORTFOLIO — STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Lora:ital,wght@0,400;1,400&display=swap');

/* === VARIABLES === */
:root {
  --teal:        #2B8075;
  --teal-light:  #3AA898;
  --teal-dark:   #1C6158;
  --teal-faint:  rgba(43, 128, 117, 0.09);
  --teal-glow:   rgba(43, 128, 117, 0.25);

  --dark:   #0D1117;
  --dark-2: #131C2B;
  --dark-3: #1A2538;

  --text-primary:   #111827;
  --text-secondary: #4B5563;
  --text-muted:     #9CA3AF;

  --bg-light: #F7F9FB;
  --bg-white: #FFFFFF;
  --border:      #E5E7EB;
  --border-dark: #233044;

  --font-heading:  'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-display:  'Lora', Georgia, serif;

  --container-max: 100%;
  --container-pad: clamp(2rem, 10vw, 10rem);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 56px rgba(0,0,0,0.13), 0 8px 20px rgba(0,0,0,0.07);

  --ease: 250ms ease;
  --ease-slow: 700ms ease;

  --nav-h: 72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--bg-white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.75rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
p  { line-height: 1.75; color: var(--text-secondary); }

/* === UTILITIES === */
.teal  { color: var(--teal); }
.white { color: #fff; }

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

.section-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.section-label::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}
.section-label.light         { color: var(--teal-light); }
.section-label.light::before { background: var(--teal-light); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--teal-glow);
}
.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}
.btn--ghost-light {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn--ghost-light:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.btn--secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--secondary:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}
[data-theme="light"] .btn--secondary {
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.25);
}
[data-theme="light"] .btn--secondary:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.5);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--teal);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn-nav:hover { background: var(--teal-light); }

.cs-card .link-arrow,
.timeline__content .link-arrow { display: none; }

.link-arrow {
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--ease), color var(--ease);
}
.link-arrow:hover { gap: 0.6rem; color: var(--teal-dark); }

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}
.nav.scrolled {
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-dark);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Full-width nav — override container max-width */
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Logo */
.nav__logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  /* Mobile: square mono only */
  height: 36px;
  width: 36px;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-expanded,
.logo-mono {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-expanded {
  height: 48px;
  width: auto;
  opacity: 0; /* hidden on mobile */
}
.logo-mono {
  height: 36px;
  width: auto;
  opacity: 1; /* visible on mobile */
}

/* Desktop: show full logo, collapse to mono on scroll */
@media (min-width: 768px) {
  .nav__logo {
    height: 48px;
    width: 329px;
  }
  .logo-expanded { opacity: 1; }
  .logo-mono    { opacity: 0; }
  .nav.scrolled .nav__logo { width: 36px; height: 36px; }
  .nav.scrolled .logo-expanded { opacity: 0; }
  .nav.scrolled .logo-mono    { opacity: 1; }
}

/* Icon-only logo (footer, avatar) */
.logo-svg {
  width: 58px; height: 58px;
  display: block;
  flex-shrink: 0;
  transition: width 0.45s ease, height 0.45s ease, opacity 0.45s ease;
}
.logo-svg--sm { width: 28px; height: 28px; }

/* legacy text label (footer) */
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: #fff;
}

/* Taller nav on load, compact when sticky */
.nav {
  transition: height 0.45s ease, background var(--ease), box-shadow var(--ease);
  height: 88px;
}
.nav.scrolled {
  height: var(--nav-h);
}

/* Nav links — hidden on mobile */
.nav__links { display: none; align-items: center; gap: 2.25rem; }
.nav__links li a {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  transition: color var(--ease);
}
.nav__links li a:hover { color: #fff; }
.nav__links li a.active:not(.btn-nav) {
  color: var(--teal-light);
  position: relative;
}
.nav__links li a.active:not(.btn-nav)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--teal-light);
  border-radius: 1px;
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--ease);
}
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav open state */
.nav.open { background: var(--dark-2); }
.nav.open .nav__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--dark-2);
  padding: 2rem var(--container-pad) 2.5rem;
  border-top: 1px solid var(--border-dark);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.nav.open .nav__links li a { font-size: 1rem; color: rgba(255,255,255,0.8); }

@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    gap: 2.25rem !important;
    align-items: center !important;
  }
  .nav__links li a { font-size: 1rem !important; }
}

/* ================================================
   HERO
   ================================================ */
.hero {
  min-height: 100svh;
  width: 100%;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 4rem) clamp(2rem, 10vw, 10rem) 8rem;
}

/* Glow sits on the right — fills the negative space beside the left-aligned text */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 80% 50%, rgba(43,128,117,0.14) 0%, transparent 68%);
  pointer-events: none;
  animation: heroPulse 14s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.65; transform: scale(1.05); }
}

/* ── Content — left-aligned ── */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Availability badge */
.hero__available {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43,128,117,0.14);
  border: 1px solid rgba(43,128,117,0.28);
  color: var(--teal-light);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero__available-dot {
  width: 6px; height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Three-line editorial headline ── */
.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 2rem;
  /* Single shared size — all three lines form a balanced block */
  --hl-size: clamp(1.75rem, 8.5vw, 5.2rem);
}
/* All lines share these base properties */
.hero__hl-ghost,
.hero__hl-name,
.hero__hl-line2 {
  font-family: var(--font-display);
  font-size: var(--hl-size);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
/* Line 1 — whisper / provenance */
.hero__hl-ghost {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.15);
}
/* Line 2 — name, full presence */
.hero__hl-name {
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
/* Line 3 — "Human-centred [rolling]" */
.hero__hl-line2 {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  gap: 0.28em;
}
.hero__hl-static {
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}
/* Rolling word container — overflow clips the slot-machine roll */
.hero__hl-cycle {
  display: inline-block;
  overflow: hidden;
  height: 1.25em;
  vertical-align: bottom;
  font-style: italic;
  font-weight: 400;
  color: var(--teal-light);
  line-height: 1;
  padding-bottom: 0.1em;
}
/* The actual word — this is what rolls */
#heroWord {
  display: inline-block;
  will-change: transform;
}

/* Body paragraph */
.hero__body {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.42);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 0;
}

/* CTAs */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}
.hero__email {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  text-decoration: none;
  transition: color var(--ease);
}
.hero__email:hover { color: rgba(255,255,255,0.65); }
.hero__email svg { flex-shrink: 0; }

/* Sketch portrait — right-side hero fill */
.hero__monogram {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 42vw, 640px);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 767px) {
  .hero__monogram { display: none; }
  .hero__hl-line2 { white-space: normal; flex-wrap: wrap; }
}
.hero__sketch {
  width: 100%;
  height: auto;
  display: block;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%),
              linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%),
                      linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: source-in;
}
/* Hidden in dark mode */
.hero__sketch--dark  { display: none; }
.hero__sketch--light { display: none; }

/* Light mode only */
[data-theme="light"] .hero__sketch--light { display: block; opacity: 0.52; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.18);
  font-size: 0.65rem;
  font-family: var(--font-heading);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.12);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50%       { opacity: 0.8; height: 56px; }
}

/* ================================================
   ABOUT
   ================================================ */
.about {
  padding: 6rem 0;
  background: #f7f8f6;
}
.about__inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: start;
}
.about__bio h2 { color: var(--text-primary); margin-bottom: 1.25rem; }
.about__bio p { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.25rem; color: var(--text-secondary); }
.about__skills {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about__skills .skill-group {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.about__skills .skill-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
/* About metrics — 2×2 card grid in right column */
.about__metrics {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 3.5rem;
}
.about__metric {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.about__metric-val {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.about__metric-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.skill-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.skill-group__stmt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.skill-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.skill-chip {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-faint);
  border: 1px solid rgba(43,128,117,0.18);
  padding: 0.22rem 0.55rem;
  border-radius: 100px;
}

/* Profile card */
.avatar-card {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.avatar-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--teal-glow), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.avatar-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: radial-gradient(ellipse 80% 100% at 30% 100%, rgba(43,128,117,0.12), transparent);
  pointer-events: none;
}
.avatar-logo {
  width: 72px; height: 72px;
  display: block;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.avatar-card__info { margin-bottom: 1.5rem; position: relative; z-index: 1; }
.avatar-card__name  { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.avatar-card__role  { font-size: 0.82rem; color: var(--teal-light); font-weight: 500; margin-bottom: 0.4rem; }
.avatar-card__loc   { font-size: 0.78rem; color: rgba(255,255,255,0.38); }

.tool-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; position: relative; z-index: 1; }
.tool-tags span {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-size: 0.73rem;
  padding: 0.28rem 0.65rem;
  border-radius: 100px;
}

@media (max-width: 768px) {
  .about__inner { grid-template-columns: 1fr; gap: 2rem; }
  .about__metrics { padding-top: 0; }
  .about__skills { grid-template-columns: 1fr; }
  .about__skills .skill-group {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
  }
  .about__skills .skill-group:last-child { border-bottom: none; padding-bottom: 0; }
  .about__skills .skill-group:not(:first-child) { padding-left: 0; }
}

/* ================================================
   EXPERIENCE
   ================================================ */
.experience {
  padding: 6rem 0;
  background: var(--bg-light);
}
.section-header { margin-bottom: 3.5rem; }
.section-header h2   { margin-bottom: 0.6rem; }
.section-header > p  { font-size: 1.05rem; }

/* Timeline */
.timeline { position: relative; }

@media (min-width: 768px) {
  .timeline { padding-left: 2rem; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--teal) 60%, transparent);
  }
}

.timeline__item {
  padding-bottom: 2.5rem;
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  display: none;
  position: absolute;
  left: -2rem;
  top: 10px;
  transform: translateX(calc(-50% + 1px));
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--bg-light);
  z-index: 1;
}
.timeline__marker.current {
  background: var(--teal-light);
  box-shadow: 0 0 0 5px rgba(58,168,152,0.18);
}

@media (min-width: 768px) {
  .timeline__marker { display: block; }
}

.timeline__content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}
.timeline__content:hover {
  box-shadow: var(--shadow);
  border-color: rgba(43,128,117,0.3);
  transform: translateY(-2px);
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}
.timeline__date {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.timeline__company {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.timeline__content h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.timeline__content > p { font-size: 0.95rem; margin-bottom: 1.25rem; }

.outcomes { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.outcomes li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.65;
}
.outcomes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.78rem;
  top: 0.05em;
}
.outcome__metric { color: var(--text-primary); font-weight: 600; }

/* Earlier roles row */
.timeline__item--earlier .timeline__content {
  background: transparent;
  border: 2px dashed var(--border);
}
.earlier-roles { display: flex; flex-direction: column; gap: 0.9rem; }
.earlier-role {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.3rem 1rem;
  font-size: 0.85rem;
}
.earlier-role__date {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  padding-top: 0.1rem;
}
.earlier-role__title { font-weight: 600; color: var(--text-primary); }
.earlier-role__co    { grid-column: 2; font-size: 0.78rem; color: var(--text-muted); margin-top: -0.2rem; }

/* ================================================
   CASE STUDIES
   ================================================ */
.case-studies {
  padding: 6rem 0;
  background: var(--bg-white);
}
.cs-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cs-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  text-decoration: none;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(43,128,117,0.28);
}

@media (min-width: 768px) {
  .cs-card { flex-direction: row; }
  .cs-card:nth-child(even) { flex-direction: row-reverse; }
}

.cs-card__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  overflow: hidden;
  min-height: 240px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cs-card__visual { width: 40%; min-height: unset; aspect-ratio: 1600/1314; }
}

.cs-card__visual--inventory { background: linear-gradient(145deg, #0D1117 0%, #103830 55%, #2B8075 100%); }
.cs-card__visual--bulk      { background: linear-gradient(145deg, #0D1117 0%, #102040 55%, #1E5A9C 100%); }
.cs-card__visual--data-in   { background: linear-gradient(145deg, #0a1a12 0%, #0d3320 55%, #1a7a4a 100%); }
.cs-card__visual--pos       { background: linear-gradient(145deg, #130d1a 0%, #2a1040 55%, #6b35a0 100%); }
.cs-card__visual--virgin    { background: linear-gradient(145deg, #17080E 0%, #3D1528 55%, #8E2050 100%); aspect-ratio: 1600/960; }

/* Subtle shimmer on card visual */
.cs-card__visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 100% 0%, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}

.cs-card__tag {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  letter-spacing: 0.07em;
  backdrop-filter: blur(8px);
}

.cs-card__content {
  padding: 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
}
.cs-card__co {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.cs-card__content h3 { font-size: 2rem; color: var(--text-primary); line-height: 1.2; margin: 0; }
.cs-card__content p  { font-size: 0.9rem; flex: 1; color: var(--text-secondary); margin: 0; }

.cs-card__metrics {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}
.cs-card__metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--teal-faint);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
  flex: 1;
}
.cs-card__metric-val   { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: var(--teal); line-height: 1; }
.cs-card__metric-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; line-height: 1.3; }

.cs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

/* ================================================
   CONTACT
   ================================================ */
.contact {
  padding: 6rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(43,128,117,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
}

/* Contact info panel */
.contact-info { padding-top: 1rem; }
.contact-info h2 { color: #fff; margin-bottom: 1rem; line-height: 1.1; }
.contact-info > p { color: rgba(255,255,255,0.7); font-size: 1.05rem; line-height: 1.75; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: rgba(43,128,117,0.15);
  border: 1px solid rgba(43,128,117,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-detail__body { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-detail__label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.3); font-family: var(--font-heading);
}
.contact-detail__value { font-size: 0.95rem; color: rgba(255,255,255,0.75); font-weight: 500; }
.contact-detail__value a { color: rgba(255,255,255,0.75); transition: color var(--ease); }
.contact-detail__value a:hover { color: var(--teal-light); }
.contact-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); padding: 0.6rem 1rem; border-radius: var(--radius);
  font-size: 0.82rem; font-family: var(--font-heading); font-weight: 600;
  transition: all var(--ease); letter-spacing: 0.04em;
}
.social-link:hover { background: rgba(43,128,117,0.15); border-color: rgba(43,128,117,0.35); color: var(--teal-light); }

/* Contact form card */
.contact-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 500px) { .form-row--2col { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); font-family: var(--font-heading);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); color: rgba(255,255,255,0.85);
  font-family: var(--font-body); font-size: 0.95rem; padding: 0.85rem 1rem;
  width: 100%; outline: none; transition: border-color var(--ease), background var(--ease);
  appearance: none; -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--teal); background: rgba(43,128,117,0.07); }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer;
}
.form-group select option { background: var(--dark-2); color: #fff; }
.form-group textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.form-submit {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.form-submit p { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin: 0; }
.form-submit .btn { min-width: 160px; justify-content: center; }
.form-success {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 3rem 2rem; gap: 1rem;
}
.form-success__icon {
  width: 64px; height: 64px; background: rgba(43,128,117,0.15);
  border: 2px solid var(--teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.form-success h3 { color: #fff; font-size: 1.5rem; }
.form-success p  { color: rgba(255,255,255,0.5); max-width: 280px; margin: 0; }
.contact-form-card.submitted .contact-form { display: none; }
.contact-form-card.submitted .form-success { display: flex; }

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-dark);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--teal-light); }

@media (min-width: 640px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ================================================
   CASE STUDY PAGES
   ================================================ */
.cs-hero {
  min-height: 58vh;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 3.5rem) 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 0);
  background-size: 44px 44px;
  pointer-events: none;
}
.cs-hero__glow {
  position: absolute; inset: 0;
  pointer-events: none;
}
.cs-hero__glow--inventory { background: radial-gradient(ellipse 70% 60% at 25% 60%, rgba(43,128,117,0.22) 0%, transparent 70%); }
.cs-hero__glow--contacts  { background: radial-gradient(ellipse 70% 60% at 25% 60%, rgba(30,90,156,0.22) 0%, transparent 70%); }
.cs-hero__glow--virgin    { background: radial-gradient(ellipse 70% 60% at 25% 60%, rgba(142,32,80,0.22) 0%, transparent 70%); }

.cs-hero__content { position: relative; z-index: 1; }

.cs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  transition: color var(--ease);
}
.cs-hero__back:hover { color: var(--teal-light); }

.cs-hero h1 { color: #fff; max-width: 820px; margin-bottom: 1.75rem; }
.cs-hero__intro {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 2rem;
}

.cs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.cs-meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.cs-meta-item__label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
}
.cs-meta-item__val {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* Case study body */
.cs-body { padding: 4.5rem 0 6rem; }
.cs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.cs-main { max-width: 740px; }

.cs-section { margin-bottom: 3.5rem; }
.cs-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}
.cs-section p         { font-size: 1rem; margin-bottom: 1rem; }
.cs-section p:last-child { margin-bottom: 0; }

/* Outcome cards */
.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.cs-outcome {
  background: var(--teal-faint);
  border: 1px solid rgba(43,128,117,0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.cs-outcome__val {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.cs-outcome__label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

/* Process steps */
.cs-process {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.cs-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.cs-step__num {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: var(--dark);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
}
.cs-step__body h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.4rem;
}
.cs-step__body p { font-size: 0.9rem; margin: 0; }

/* Visual placeholder */
.cs-visual-placeholder {
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 2rem 0;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
.cs-visual-placeholder__icon { font-size: 2.25rem; opacity: 0.35; }

/* Pull quote */
.cs-quote {
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--teal-faint);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cs-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 0;
}

/* Case study pagination */
.cs-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}
.cs-pagination a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cs-pagination__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-heading);
}
.cs-pagination__title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--teal);
  font-size: 0.92rem;
  transition: color var(--ease);
}
.cs-pagination a:hover .cs-pagination__title { color: var(--teal-dark); }
.cs-pagination__next { align-items: flex-end; text-align: right; }

/* ================================================
   HERO — ANIMATED SENTENCES  (Nicole Roberts style)
   ================================================ */
.hero__sentences {
  position: relative;
  width: 100%;
  max-width: 960px;
  /* flex height: one line of text + breathing room */
  height: clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__sentence {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  /* Scales freely — shrinks enough on mobile to stay one line */
  font-size: clamp(1rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap; /* force single line — sentences are short enough */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  pointer-events: none;
}
.hero__sentence.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Teal highlight — inline italic */
.hero__sentence .hl {
  display: inline;
  color: var(--teal-light);
  font-style: italic;
}

/* ================================================
   THEME TOGGLE BUTTON
   ================================================ */
.nav__logo { flex: 1; } /* push right-side items to the right */

/* ================================================
   LIGHT MODE OVERRIDES  [data-theme="light"]
   ================================================ */

/* ── Nav ── */
[data-theme="light"] .nav.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07), 0 1px 0 rgba(0,0,0,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
[data-theme="light"] .nav.open { background: #fff; }
[data-theme="light"] .nav__links li a { color: rgba(0,0,0,0.5); }
[data-theme="light"] .nav__links li a:hover { color: var(--text-primary); }
[data-theme="light"] .nav__links li a.active:not(.btn-nav) { color: var(--teal); }
[data-theme="light"] .nav__links li a.active:not(.btn-nav)::after { background: var(--teal); }
[data-theme="light"] .nav__toggle span { background: #333; }
[data-theme="light"] .nav.open .nav__links {
  background: #fff;
  border-top-color: var(--border);
}
[data-theme="light"] .nav.open .nav__links li a:not(.btn-nav) {
  color: rgba(0,0,0,0.7);
}
/* Logo swap dark ↔ light */
/* logo-full theme rules removed — single light-mode logo now used */

/* Footer logo swap */
/* footer logo theme rules removed — single light logo used */

/* ── Hero ── */
[data-theme="light"] .hero { background: #F2FAFA; }
[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse 70% 90% at 80% 50%, rgba(43,128,117,0.1) 0%, transparent 68%);
}
[data-theme="light"] .hero__hl-ghost  { color: rgba(0,0,0,0.12); }
[data-theme="light"] .hero__hl-name   { color: rgba(0,0,0,0.88); }
[data-theme="light"] .hero__hl-static { color: rgba(0,0,0,0.88); }
[data-theme="light"] .hero__hl-cycle  { color: var(--teal); }
[data-theme="light"] .hero__body { color: rgba(0,0,0,0.45); }
[data-theme="light"] .hero__available {
  background: rgba(43,128,117,0.1);
  border-color: rgba(43,128,117,0.22);
  color: var(--teal-dark);
}
[data-theme="light"] .hero__available-dot { background: var(--teal-dark); }
[data-theme="light"] .hero__email { color: rgba(0,0,0,0.3); }
[data-theme="light"] .hero__email:hover { color: rgba(0,0,0,0.6); }
[data-theme="light"] .btn--ghost {
  color: rgba(0,0,0,0.65);
  border-color: rgba(0,0,0,0.22);
}
[data-theme="light"] .btn--ghost:hover {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.5);
}
[data-theme="light"] .hero__scroll { color: rgba(0,0,0,0.2); }
[data-theme="light"] .scroll-line { background: rgba(0,0,0,0.1); }

/* ── Logo strip ── */
[data-theme="light"] .logo-strip {
  background: #E8F5F4;
  border-top-color: rgba(43,128,117,0.12);
  border-bottom-color: rgba(43,128,117,0.12);
}
[data-theme="light"] .logo-strip__label { color: rgba(0,0,0,0.28); }
[data-theme="light"] .logo-strip__logo { color: rgba(0,0,0,0.22); }
[data-theme="light"] .logo-strip__logo:hover { color: rgba(0,0,0,0.6); }
[data-theme="light"] .logo-strip__sep { color: rgba(0,0,0,0.1); }

/* ── Case studies (already light — minor tweaks) ── */
[data-theme="light"] .cs-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1), 0 0 0 1px rgba(43,128,117,0.2);
}

/* ── Approach (dark → light) ── */
[data-theme="light"] .approach { background: var(--bg-light); }
[data-theme="light"] .approach::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
}
[data-theme="light"] .approach::after {
  background: linear-gradient(90deg, transparent 0%, rgba(43,128,117,0.25) 40%, rgba(43,128,117,0.25) 60%, transparent 100%);
}
[data-theme="light"] .approach .section-label { color: var(--teal); }
[data-theme="light"] .approach .section-label::before { background: var(--teal); }
[data-theme="light"] .approach .section-header h2 { color: var(--text-primary); }
[data-theme="light"] .approach .section-header p { color: var(--text-secondary); }
[data-theme="light"] .approach__num { color: rgba(43,128,117,0.14); }
[data-theme="light"] .approach__item:hover .approach__num { color: rgba(43,128,117,0.28); }
[data-theme="light"] .approach__item h3 { color: var(--text-primary); }
[data-theme="light"] .approach__item p { color: var(--text-secondary); }

/* ── About / Experience / Case Studies — ensure teal accent survives ── */
[data-theme="light"] .avatar-card { background: var(--dark); } /* keep dark card on light bg — intentional contrast */
[data-theme="light"] .section-label { color: var(--teal); }
[data-theme="light"] .section-label::before { background: var(--teal); }
[data-theme="light"] .teal { color: var(--teal); }

/* ── Testimonials (dark → light) ── */
[data-theme="light"] .testimonials { background: var(--bg-white); }
[data-theme="light"] .testimonials::before {
  background: linear-gradient(90deg, transparent, rgba(43,128,117,0.3), transparent);
}
[data-theme="light"] .testimonials .section-label { color: var(--teal); }
[data-theme="light"] .testimonials .section-label::before { background: var(--teal); }
[data-theme="light"] .testimonials .section-header h2 { color: var(--text-primary); }
[data-theme="light"] .testimonial {
  background: var(--bg-light);
  border-color: var(--border);
}
[data-theme="light"] .testimonial:hover { border-color: rgba(43,128,117,0.3); background: #fff; }
[data-theme="light"] .testimonial__mark { color: var(--teal); }
[data-theme="light"] .testimonial__quote { color: var(--text-secondary); font-style: italic; }
[data-theme="light"] .testimonial__author { border-top-color: var(--border); }
[data-theme="light"] .testimonial__name { color: var(--text-primary); }
[data-theme="light"] .testimonial__role { color: var(--text-muted); }
[data-theme="light"] .testimonials__note { color: rgba(0,0,0,0.2); }

/* ── Contact CTA (keep dark — intentional contrast anchor) ── */
/* No change needed — dark contact on light bg creates a nice full-bleed accent */

/* ── Footer ── */
[data-theme="light"] .footer {
  background: var(--bg-light);
  border-top-color: var(--border);
}
[data-theme="light"] .footer__logo-full { opacity: 0.75; }
[data-theme="light"] .footer__tagline { color: var(--text-secondary); }
[data-theme="light"] .footer__nav-label { color: var(--teal); }
[data-theme="light"] .footer__nav-col a { color: var(--text-secondary); }
[data-theme="light"] .footer__nav-col a:hover { color: var(--teal); }
[data-theme="light"] .footer__top { border-bottom-color: var(--border); }
[data-theme="light"] .footer__copy { color: var(--text-muted); }
[data-theme="light"] .footer__location { color: var(--text-muted); }

/* ── Case study pages — hero stays dark (intentional) ── */
/* ── Contact page ── */
[data-theme="light"] .contact-page { background: var(--bg-light); }
[data-theme="light"] .contact-page__grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
}
[data-theme="light"] .contact-form-card {
  background: #fff;
  border-color: var(--border);
}
[data-theme="light"] .social-link {
  background: rgba(0,0,0,0.04);
  border-color: var(--border);
  color: var(--text-secondary);
}
.contact .btn-nav {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}
[data-theme="light"] .social-link:hover {
  background: var(--teal-faint);
  border-color: rgba(43,128,117,0.3);
  color: var(--teal);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: var(--bg-light);
  border-color: var(--border);
  color: var(--text-primary);
}
[data-theme="light"] .form-group label { color: rgba(0,0,0,0.45); }
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: rgba(0,0,0,0.25); }
[data-theme="light"] .form-submit p { color: rgba(0,0,0,0.3); }
[data-theme="light"] .form-submit { border-top-color: var(--border); }

/* ================================================
   WORK INDEX PAGE
   ================================================ */
.work-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 4rem 0 6rem;
  max-width: 800px;
}
@media (min-width: 640px) {
  .work-index-grid { grid-template-columns: 1fr 1fr; }
}
.work-co-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.work-co-card:hover {
  border-color: rgba(43,128,117,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(43,128,117,0.15);
  transform: translateY(-2px);
}
.work-co-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.work-co-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.work-co-card__tenure {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}
.work-co-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}
.work-co-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.work-co-card .link-arrow {
  font-size: 0.85rem;
  color: var(--teal-light);
  font-family: var(--font-heading);
}

[data-theme="light"] .work-co-card {
  background: var(--bg-white);
  border-color: var(--border);
}
[data-theme="light"] .work-co-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(43,128,117,0.2);
}
[data-theme="light"] .work-co-card__name { color: var(--text-primary); }
[data-theme="light"] .work-co-card__tenure { color: var(--text-muted); }
[data-theme="light"] .work-co-card p { color: var(--text-secondary); }

/* ================================================
   COMPANY PAGE — KEY AREAS
   ================================================ */
.co-areas {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.co-area {
  padding: 1.75rem 2rem;
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--teal);
}
.co-area h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.75rem;
}
.co-area p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}
.co-area p + p { margin-top: 0.75rem; }
.co-area a { color: var(--teal-light); }
.co-area__metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
}
.co-area__metric { display: flex; flex-direction: column; }
.co-area__metric-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  line-height: 1;
}
.co-area__metric-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* Company page case study mini-grid */
.co-cs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .co-cs-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
.co-cs-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.co-cs-card:hover {
  border-color: rgba(43,128,117,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.co-cs-card__label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.co-cs-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.co-cs-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0;
}
.co-cs-card .link-arrow {
  font-size: 0.82rem;
  color: var(--teal-light);
  font-family: var(--font-heading);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Light mode overrides */
[data-theme="light"] .co-area { background: var(--bg-white); border-color: var(--border); }
[data-theme="light"] .co-area h3 { color: var(--text-primary); }
[data-theme="light"] .co-area p { color: var(--text-secondary); }
[data-theme="light"] .co-area__metrics { border-top-color: var(--border); }
[data-theme="light"] .co-area__metric-val { color: var(--text-primary); }
[data-theme="light"] .co-area__metric-label { color: var(--text-muted); }
[data-theme="light"] .co-cs-card { background: var(--bg-white); border-color: var(--border); }
[data-theme="light"] .co-cs-card h3 { color: var(--text-primary); }
[data-theme="light"] .co-cs-card p { color: var(--text-secondary); }
[data-theme="light"] .co-cs-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* ================================================
   LOGO STRIP
   ================================================ */
.logo-strip {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem 0;
}
.logo-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.logo-strip__label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
.logo-strip__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}
.logo-strip__logo {
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.06em;
  transition: color 0.4s ease;
  cursor: default;
  user-select: none;
}
.logo-strip__logo:hover { color: rgba(255,255,255,0.52); }
.logo-strip__img {
  height: 36px;
  width: auto;
  filter: grayscale(1) brightness(0.88);
  opacity: 0.65;
  transition: opacity 0.3s ease;
}
.logo-strip__img:hover { opacity: 1; }
.logo-strip__img:nth-child(1) { height: 28px; } /* Xero */
.logo-strip__img:nth-child(2) { height: 40px; } /* Virgin Media */
.logo-strip__img:nth-child(3) { height: 22px; } /* CEWE */
.logo-strip__img:nth-child(4) { height: 60px; } /* AA Traveller */
.logo-strip__sep {
  color: rgba(255,255,255,0.07);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ================================================
   UPGRADED CASE STUDY CARDS
   ================================================ */
.cs-card__visual {
  height: auto;
}
.cs-card__num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.22);
  z-index: 1;
}
/* Abstract shape layers inside card visual */
.cs-card__shape {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cs-card__shape::before,
.cs-card__shape::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.cs-card__visual--inventory .cs-card__shape::before {
  width: 300px; height: 300px;
  border: 1px solid rgba(43,168,152,0.15);
  top: -80px; right: -60px;
}
.cs-card__visual--inventory .cs-card__shape::after {
  width: 180px; height: 180px;
  border: 1px solid rgba(43,168,152,0.1);
  bottom: -40px; left: 20px;
}
.cs-card__visual--contacts .cs-card__shape::before {
  width: 260px; height: 260px;
  border: 1px solid rgba(30,90,200,0.18);
  top: -60px; left: -40px;
}
.cs-card__visual--contacts .cs-card__shape::after {
  width: 140px; height: 140px;
  border: 1px solid rgba(30,90,200,0.12);
  bottom: 10px; right: 30px;
}
.cs-card__visual--virgin .cs-card__shape::before {
  width: 280px; height: 280px;
  border: 1px solid rgba(180,32,80,0.2);
  top: -70px; right: -50px;
}
.cs-card__visual--virgin .cs-card__shape::after {
  width: 160px; height: 160px;
  border: 1px solid rgba(180,32,80,0.13);
  bottom: -20px; left: 30px;
}
/* Metric at top of content area instead */
.cs-card__content {
  gap: 0.55rem;
}
.cs-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}
.cs-card__chip {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-faint);
  border: 1px solid rgba(43,128,117,0.18);
  padding: 0.22rem 0.55rem;
  border-radius: 100px;
}
/* Hover glow on cards */
.cs-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.14), 0 0 0 1px rgba(43,128,117,0.22), 0 8px 24px rgba(43,128,117,0.07);
}

/* ================================================
   HOW I WORK / APPROACH
   ================================================ */
.approach {
  padding: 7rem 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.approach::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.032) 1px, transparent 0);
  background-size: 44px 44px;
  pointer-events: none;
}
.approach::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(43,128,117,0.4) 40%, rgba(43,128,117,0.4) 60%, transparent 100%);
}
.approach .section-label { color: var(--teal-light); }
.approach .section-label::before { background: var(--teal-light); }
.approach .section-header h2 { color: #fff; }
.approach .section-header p { color: rgba(255,255,255,0.42); }
.approach__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .approach__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
.approach__item { position: relative; }
.approach__num {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 900;
  color: rgba(43,128,117,0.12);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
  transition: color 0.4s ease;
}
.approach__item:hover .approach__num { color: rgba(43,128,117,0.22); }
.approach__item h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}
.approach__item p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.85;
  margin: 0;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials {
  padding: 7rem 0;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,128,117,0.5), transparent);
}
.testimonials .section-label { color: var(--teal-light); }
.testimonials .section-label::before { background: var(--teal-light); }
.testimonials .section-header h2 { color: #fff; }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}
@media (min-width: 768px) { .testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.testimonial:hover {
  border-color: rgba(43,128,117,0.28);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}
.testimonial__mark {
  font-size: 3.5rem;
  line-height: 0.75;
  color: var(--teal);
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 1.25rem;
  display: block;
  opacity: 0.45;
}
.testimonial__quote {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-bottom: 1.75rem;
  font-style: italic;
  flex: 1;
}
.testimonial__author {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1rem;
}
.testimonial__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.2rem;
}
.testimonial__role {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
}
.testimonials__note {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.18);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

/* ================================================
   UPGRADED FOOTER
   ================================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 4rem 0 2.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 640px) {
  .footer__top { grid-template-columns: 1fr 1fr; align-items: start; }
}
.footer__brand {}
.footer__logo-full {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.footer__tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer__nav { display: flex; gap: 3rem; justify-content: flex-end; }
}
.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer__nav-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.25rem;
}
.footer__nav-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.38);
  font-family: var(--font-heading);
  font-weight: 500;
  transition: color var(--ease);
}
.footer__nav-col a:hover { color: var(--teal-light); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer__copy { font-size: 0.73rem; color: rgba(255,255,255,0.2); }
.footer__location { font-size: 0.73rem; color: rgba(255,255,255,0.18); }
