/* ============================================================
   ELISABETH BUTLER — Complete Redesign
   Light, warm, editorial — like a magazine spread, not a CV
   ============================================================ */

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

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  /* Light, warm, creamy — absolutely not dark */
  --bg:           hsl(35, 25%, 97%);
  --bg-warm:      hsl(34, 30%, 93%);
  --bg-card:      hsl(0, 0%, 100%);
  --surface:      hsl(35, 20%, 95%);

  /* Text */
  --ink:          hsl(20, 15%, 12%);
  --ink-mid:      hsl(20, 10%, 35%);
  --ink-soft:     hsl(20, 8%, 55%);

  /* The accent — dark cyan, Elisabeth's chosen brand colour #2e7d7d */
  --clay:         hsl(180, 46%, 33%);
  --clay-light:   hsl(180, 42%, 45%);
  --clay-dim:     hsl(180, 50%, 26%);
  --clay-pale:    hsl(180, 30%, 93%);

  /* Warm secondary for contrast */
  --teal:         hsl(180, 46%, 33%);
  --teal-light:   hsl(180, 42%, 45%);

  /* Typography */
  --serif:  'Playfair Display', 'Georgia', serif;
  --sans:   'Inter', system-ui, sans-serif;

  /* Spacing */
  --max-w:    1200px;
  --pad:      clamp(1.25rem, 5vw, 3.5rem);
  --section:  clamp(5rem, 10vw, 8rem);
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders */
  --border:   hsl(30, 15%, 88%);
  --radius:   12px;
  --radius-sm: 6px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); overflow-x: hidden; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; cursor: pointer; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

/* ── Utilities ──────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.25rem;
}

.section-tag.light { color: var(--clay-pale); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  background: var(--clay);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--clay-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px hsla(14, 75%, 52%, 0.32);
}

.btn-primary.full-w {
  width: 100%;
  justify-content: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-3px);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.5rem var(--pad);
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: hsla(35, 25%, 97%, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px hsla(20, 15%, 12%, 0.06);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-e { color: var(--clay); }
.logo-b { font-style: italic; font-weight: 400; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  transition: color 0.2s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clay);
  transition: width 0.3s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--ink); }

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.4rem !important;
  background: var(--clay) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: all 0.25s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--clay-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(14, 75%, 52%, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--bg);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 var(--pad);
  gap: 2rem;
}

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

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: var(--pad);
  font-size: 1.5rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--clay); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem var(--pad) 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-blob {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(14, 80%, 62%, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: blobFloat 8s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  z-index: 2;
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--clay-pale);
  border: 1px solid hsla(14, 60%, 75%, 0.4);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clay-dim);
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

.hero-h1 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}

.hero-h1-bold {
  display: block;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero portrait */
.hero-portrait-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait-inner {
  width: clamp(280px, 38vw, 480px);
  aspect-ratio: 4/5;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  overflow: hidden;
  background: var(--bg-warm);
  position: relative;
  animation: morphShape 10s ease-in-out infinite;
  box-shadow: 0 30px 80px hsla(14, 60%, 40%, 0.15);
}

@keyframes morphShape {
  0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  25%  { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
  50%  { border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%; }
  75%  { border-radius: 40% 60% 60% 40% / 60% 40% 50% 60%; }
}

.hero-portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  /* Fade edges into the background */
  -webkit-mask-image:
    radial-gradient(ellipse 90% 88% at 50% 46%,
      black 52%, transparent 80%);
  mask-image:
    radial-gradient(ellipse 90% 88% at 50% 46%,
      black 52%, transparent 80%);
  /* Warm up the photo slightly to match the terracotta palette */
  filter: saturate(1.05) contrast(1.02) brightness(1.02);
}

.portrait-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clay-pale), var(--bg-warm));
}

.portrait-fallback span {
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 900;
  color: var(--clay-dim);
  font-style: italic;
}

.hero-portrait-badge {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  background: var(--clay);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 30px hsla(14, 75%, 52%, 0.35);
}

.badge-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.badge-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.4;
  margin-top: 0.2rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}

.hero-scroll-hint span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: var(--ink-soft);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--ink-soft), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.5); opacity: 0.2; }
}

/* ── Ticker strip ────────────────────────────────────────── */
.ticker-wrap {
  background: var(--ink);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 2rem;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(35, 25%, 85%);
}

.ticker-dot {
  color: var(--clay) !important;
  font-size: 0.5rem !important;
}

/* ── Pull Quote ──────────────────────────────────────────── */
.pull-quote-section {
  padding: var(--section) var(--pad);
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
}

.pull-quote-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--clay);
}

.pq-container {
  max-width: 900px;
  margin: 0 auto;
}

.pq-mark {
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 900;
  color: var(--clay);
  line-height: 0.6;
  margin-bottom: 1rem;
  opacity: 0.3;
  display: block;
}

.pq-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pq-cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-style: normal;
}

/* ── About ──────────────────────────────────────────────── */
.about {
  padding: var(--section) var(--pad);
  background: var(--bg);
}

.about-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius);
  display: block;
  background: var(--bg-warm);
  box-shadow: 0 20px 60px hsla(20, 15%, 12%, 0.12);
  /* Warm up to complement the camel/terracotta palette */
  filter: saturate(1.04) contrast(1.02) brightness(1.01);
  /* Fade the bottom edge into the page background */
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 78%,
    transparent 100%
  );
}

.about-photo-fallback {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--clay-pale), var(--bg-warm));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-fallback span {
  font-family: var(--serif);
  font-size: 7rem;
  font-weight: 900;
  font-style: italic;
  color: var(--clay-dim);
}

.about-org-badge {
  position: absolute;
  top: 2rem;
  right: -1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px hsla(20, 15%, 12%, 0.1);
}

.org-name {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.org-role {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-mid);
  margin-bottom: 0.15rem;
}

.org-years {
  display: block;
  font-size: 0.72rem;
  color: var(--clay);
  font-weight: 600;
}

.about-stats {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px hsla(20, 15%, 12%, 0.06);
}

.stat-item {
  flex: 1;
  padding: 1.25rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.3;
}

.stat-div {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

.about-h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.about-h2 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}

.about-divider {
  width: 48px;
  height: 3px;
  background: var(--clay);
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.about-p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 1.25rem;
}

.about-p strong { color: var(--ink); font-weight: 600; }

.about-right .btn-primary { margin-top: 1.5rem; }

/* ── What I Do ───────────────────────────────────────────── */
.what-i-do {
  padding: var(--section) var(--pad);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.what-i-do::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(14, 75%, 52%, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.wid-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.wid-header {
  margin-bottom: 4rem;
}

.wid-header .section-tag { color: var(--clay-light); }

.wid-h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.wid-h2 em {
  font-style: italic;
  color: var(--clay-light);
  font-weight: 400;
}

.wid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.wid-card {
  background: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.wid-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--clay);
  transition: width 0.4s var(--ease);
}

.wid-card:hover {
  background: hsla(0, 0%, 100%, 0.08);
  border-color: hsla(0, 0%, 100%, 0.14);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px hsla(0, 0%, 0%, 0.2);
}

.wid-card:hover::before { width: 100%; }

.wid-icon {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 900;
  font-style: italic;
  color: hsla(0, 0%, 100%, 0.1);
  line-height: 1;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.wid-card:hover .wid-icon { color: var(--clay); opacity: 0.5; }

.wid-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.wid-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: hsl(35, 20%, 70%);
}

/* ── Recovery Callout ────────────────────────────────────── */
.recovery-callout {
  padding: var(--section) var(--pad);
  background: var(--clay);
  position: relative;
  overflow: hidden;
}

.recovery-callout::before {
  content: '"';
  position: absolute;
  bottom: -2rem;
  right: 3rem;
  font-family: var(--serif);
  font-size: 20rem;
  font-weight: 900;
  color: hsla(0, 0%, 0%, 0.06);
  line-height: 1;
  pointer-events: none;
}

.rec-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.rec-h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.rec-h2 em {
  font-style: italic;
  font-weight: 400;
  color: hsla(0, 0%, 100%, 0.6);
}

.rec-p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  color: hsla(0, 0%, 100%, 0.82);
  margin-bottom: 1rem;
}

.rec-p strong { color: #fff; font-weight: 600; }

.rec-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rec-step {
  padding: 1.5rem 0;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.15);
}

.rec-step:last-child { border-bottom: none; }

.rec-step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.rec-step-n {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 900;
  font-style: italic;
  color: hsla(0, 0%, 100%, 0.25);
  line-height: 1;
  width: 2.5rem;
  flex-shrink: 0;
}

.rec-step-title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.rec-step p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: hsla(0, 0%, 100%, 0.7);
  padding-left: 3.5rem;
}

/* ── Work ────────────────────────────────────────────────── */
.work {
  padding: var(--section) var(--pad);
  background: var(--bg);
}

.work-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.work-header {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.work-h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.work-h2 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}

.work-note {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 1rem;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  padding: 3rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 4px 24px hsla(20, 15%, 12%, 0.04);
  transition: all 0.3s var(--ease);
}

.work-item:first-child { border-top: none; }

.work-item:hover {
  box-shadow: 0 8px 32px hsla(20, 15%, 12%, 0.08);
  transform: translateY(-2px);
}

.work-item-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.work-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--clay);
  line-height: 1;
  opacity: 0.3;
  transition: color 0.3s;
}

.work-item:hover .work-num { color: var(--clay-pale); }

.work-sector {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.work-item-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.work-item-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}

.work-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-outcomes span {
  padding: 0.35rem 0.85rem;
  background: var(--clay-pale);
  border: 1px solid hsla(14, 60%, 70%, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clay-dim);
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonials {
  padding: var(--section) var(--pad);
  background: var(--bg-warm);
}

.test-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.test-header {
  margin-bottom: 3.5rem;
}

.test-h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.test-h2 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.test-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 24px hsla(20, 15%, 12%, 0.06);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  position: relative;
}

.test-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px hsla(20, 15%, 12%, 0.12);
}

.test-card::before {
  content: '"';
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 900;
  color: var(--clay);
  opacity: 0.15;
  line-height: 0.8;
  display: block;
  margin-bottom: 0.5rem;
}

.test-quote {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.test-who {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.test-who strong {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.test-who span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact {
  padding: var(--section) var(--pad);
  background: var(--bg);
}

.contact-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.contact-h2 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}

.contact-p {
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 2rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: hsl(142, 50%, 95%);
  border: 1px solid hsl(142, 40%, 80%);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(142, 45%, 35%);
  margin-bottom: 2.5rem;
}

.avail-dot {
  width: 8px;
  height: 8px;
  background: hsl(142, 55%, 45%);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: 70px;
  flex-shrink: 0;
  padding-top: 2px;
}

.contact-row a {
  color: var(--clay);
  transition: color 0.2s;
}

.contact-row a:hover { color: var(--clay-dim); text-decoration: underline; }

/* Form */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 8px 40px hsla(20, 15%, 12%, 0.07);
}

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.f-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.f-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.f-group input,
.f-group textarea,
.f-group select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s;
  border-radius: var(--radius-sm);
}

.f-group input:focus,
.f-group textarea:focus,
.f-group select:focus {
  border-color: var(--clay);
  background: #fff;
  box-shadow: 0 0 0 3px hsla(14, 75%, 52%, 0.1);
}

.f-group input::placeholder,
.f-group textarea::placeholder { color: var(--ink-soft); }

.f-group textarea { resize: vertical; min-height: 130px; }

.form-feedback {
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

.form-feedback.ok {
  background: hsl(142, 50%, 95%);
  border: 1px solid hsl(142, 40%, 80%);
  color: hsl(142, 45%, 30%);
}

.form-feedback.err {
  background: hsl(0, 80%, 96%);
  border: 1px solid hsl(0, 60%, 85%);
  color: hsl(0, 55%, 40%);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 3rem var(--pad);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-title {
  font-size: 0.75rem;
  color: hsl(35, 15%, 60%);
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(35, 15%, 60%);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--clay-light); }

.footer-copy {
  font-size: 0.75rem;
  color: hsl(35, 10%, 45%);
  text-align: right;
}

/* ── Reveal animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    gap: 3rem;
  }

  .hero-portrait-wrap { order: -1; }
  .hero-portrait-inner { width: clamp(200px, 50vw, 320px); }
  .hero-scroll-hint { display: none; }

  .about-container,
  .rec-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-org-badge { right: 0; }

  .wid-grid { grid-template-columns: repeat(2, 1fr); }

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



  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .footer-nav { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .wid-grid { grid-template-columns: 1fr; }

  .work-item {
    padding: 2rem 1.5rem;
  }
  .work-num { font-size: 2rem; }

  .test-grid { grid-template-columns: 1fr; }

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

  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .hero-portrait-badge { right: 0; }

  .about-stats { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero { padding-top: 6rem; }
  .hero-h1 { font-size: 3rem; }
  .contact-form { padding: 1.5rem; }
}

/* Line break helper */
.br-desk { display: block; }

@media (max-width: 600px) {
  .br-desk { display: none; }
}

/* ═══════════  COOKIE CONSENT BANNER  ═══════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ink);
  border-top: 1px solid hsla(30, 15%, 50%, 0.2);
  padding: 1.2rem 2rem;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cookie-inner p {
  font-size: 0.85rem;
  color: var(--clay-pale);
  line-height: 1.5;
  margin: 0;
}
.cookie-inner a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-accept {
  white-space: nowrap;
  padding: 0.6rem 1.6rem;
  font-size: 0.8rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ═══════════  LEGAL / PRIVACY PAGE  ═══════════ */
.legal-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.legal-h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.legal-updated {
  font-size: 0.85rem;
  color: var(--clay-dim);
  margin-bottom: 3rem;
}
.legal-section {
  margin-bottom: 2.5rem;
}
.legal-section h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.legal-section p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--clay-light);
  margin-bottom: 0.8rem;
}
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}
.legal-section li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--clay-light);
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section a:hover {
  color: var(--cream);
}
