/* ════════════════════════════════════════════════
   Paula Poyatos — Medical Writer Portfolio
   ════════════════════════════════════════════════ */

:root {
  /* ─ Brand accent (warm near-black, editorial) ─ */
  --blue:        #1c1914;
  --blue-hover:  #2e2a22;
  --blue-light:  #f5f0e7;
  --blue-mid:    #e0d8c8;
  /* ─ Neutrals ─ */
  --bg:          #ffffff;
  --surface:     #f3f0ea;
  --surface-2:   #ebe6db;
  --border:      #e0d9cc;
  --border-2:    #ccc4b4;
  --text:        #1c1914;
  --text-2:      #2e2a22;
  --muted:       #6b6355;
  --muted-2:     #9c917f;
  /* ─ Dark ─ */
  --dark:        #1c1914;
  --dark-2:      #2e2a22;
  /* ─ Green ─ */
  --green:       #10b981;
  /* ─ Radius ─ */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  /* ─ Layout ─ */
  --max:         1200px;
  --page:        clamp(20px, 5vw, 64px);
  /* ─ Shadows ─ */
  --shadow-xs:   0 1px 3px rgba(28,25,20,.06), 0 1px 2px rgba(28,25,20,.04);
  --shadow-sm:   0 4px 12px rgba(28,25,20,.07), 0 1px 4px rgba(28,25,20,.05);
  --shadow:      0 8px 28px rgba(28,25,20,.09), 0 2px 8px rgba(28,25,20,.06);
  --shadow-lg:   0 20px 56px rgba(28,25,20,.12), 0 4px 14px rgba(28,25,20,.07);
  --shadow-blue: 0 8px 28px rgba(28,25,20,.28);
  /* ─ Easing ─ */
  --ease:        cubic-bezier(.16, 1, .3, 1);
  --ease-std:    cubic-bezier(.25, .46, .45, .94);
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
button { cursor: pointer; }

/* ── LAYOUT ─────────────────────────────────── */
.container {
  width: min(100% - calc(var(--page) * 2), var(--max));
  margin-inline: auto;
}
.section { padding: clamp(72px, 9vw, 116px) 0; }
.section.alt { background: var(--bg); }

/* ── EYEBROW ────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #8c7355;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 2px;
  background: #8c7355;
  border-radius: 9px;
  flex-shrink: 0;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease-std), color .2s var(--ease-std),
              box-shadow .25s var(--ease), transform .22s var(--ease),
              border-color .2s var(--ease-std);
}
.btn:active { transform: scale(.97); }
.btn-sm  { padding: 6px 15px; font-size: 12.5px; }
.btn-lg  { padding: 10px 22px; font-size: 14px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 9px 20px;
  box-shadow: 0 2px 8px rgba(28,25,20,.18);
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 8px 20px;
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--text); color: var(--text); background: var(--surface-2); transform: translateY(-1px); }

.btn-white {
  background: var(--bg);
  color: var(--dark);
  padding: 10px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--surface-2); transform: translateY(-1px); }

.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,.82);
  padding: 10px 22px;
  border: 1.5px solid rgba(255,255,255,.26);
}
.btn-ghost-white:hover { border-color: rgba(255,255,255,.68); color: #fff; transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   NAV — Docshield-exact structure
   ══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .35s var(--ease-std), border-color .35s var(--ease-std), box-shadow .35s var(--ease-std);
}
.site-header.scrolled {
  background: rgba(250,249,246,.96);
  border-bottom-color: rgba(224,217,204,.9);
  box-shadow: 0 2px 16px rgba(28,25,20,.08);
}

.nav {
  width: min(100% - calc(var(--page) * 2), var(--max));
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--dark);
  transition: opacity .2s; flex-shrink: 0;
}
.brand:hover { opacity: .7; }
.brand--white { color: var(--dark); }
.brand-pp { width: 26px; height: 26px; flex-shrink: 0; }
.brand-logo { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }

/* Nav links row */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: flex-end;
}
.nav-links > a:not(.btn) {
  padding: 7px 13px;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .18s, background .18s;
}
.nav-links > a:not(.btn):hover { color: var(--text); background: var(--surface-2); }

/* ── Dropdown item ────────────────────────── */
.nav-has-dropdown { position: relative; }
.nav-link-dd {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 13px;
  border-radius: 9999px;
  background: none; border: none; font: inherit;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s, background .18s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link-dd:hover { color: var(--text); background: var(--surface-2); }
.nav-has-dropdown.is-open .nav-link-dd { color: var(--text); background: var(--surface-2); }

.nav-chevron { flex-shrink: 0; transition: transform .28s var(--ease); color: var(--muted-2); }
.nav-has-dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease-std), transform .22s var(--ease);
  z-index: 200;
}
/* open via JS class */
.nav-has-dropdown.is-open .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
/* open via hover on desktop */
@media (hover: hover) {
  .nav-has-dropdown:hover .nav-dropdown {
    opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
  }
  .nav-has-dropdown:hover .nav-chevron { transform: rotate(180deg); }
  .nav-has-dropdown:hover .nav-link-dd { color: var(--text); background: var(--surface-2); }
}
.dropdown-divider { height: 1px; background: var(--border); margin: 6px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.dropdown-item:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-num { font-size: 10.5px; font-weight: 700; color: var(--muted-2); width: 16px; flex-shrink: 0; }

/* Divider + secondary action */
.nav-divider { width: 1px; height: 22px; background: var(--border); margin: 0 10px; flex-shrink: 0; }
.nav-secondary {
  padding: 7px 13px;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-secondary:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 6px; }

/* Mobile toggle */
.nav-toggle { display: none; }

/* ── HERO ───────────────────────────────────── */
.hero {
  height: 100dvh;
  margin-top: -68px;
  display: flex;
  flex-direction: column;
  padding: calc(68px + clamp(32px, 4vw, 52px)) 0 0;
  background: var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.hero-content {
  display: flex; flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(32px, 4vw, 52px);
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start; margin-bottom: 22px;
  padding: 7px 14px;
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  border-radius: 9999px; color: var(--blue);
  font-size: 12.5px; font-weight: 600;
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(40px, 5.8vw, 72px);
  font-weight: 600; color: var(--text);
  line-height: 1.06; letter-spacing: .01em; margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--muted); line-height: 1.74;
  max-width: 52ch; margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-stats {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0; padding: 20px 0 0; border-top: 1px solid var(--border);
}
.hstat { display: flex; flex-direction: column; gap: 2px; padding: 0 22px 0 0; }
.hstat strong { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.025em; line-height: 1; }
.hstat span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.hstat-sep { width: 1px; height: 32px; background: var(--border); margin: 0 22px 0 0; flex-shrink: 0; }

/* Portrait */
.hero-visual {
  position: relative; display: flex;
  justify-content: center; align-items: flex-end;
  overflow: visible;
}
.portrait {
  position: relative; z-index: 1;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  box-shadow: none;
  background: transparent;
  width: min(100%, 500px);
  height: 100%;
  max-height: calc(100% + 20px);
  align-self: flex-end;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait::after { display: none; }

/* Floating badges */
.float-badge {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  animation: floatBadge 5s ease-in-out infinite;
}
.float-badge-1 { top: 14%; left: -20px; animation-delay: 0s; }
.float-badge-2 { bottom: 16%; right: -20px; animation-delay: 2.5s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.fbadge-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fbadge-icon--green { background: var(--green); }
.fbadge-stat { font-size: 20px; font-weight: 800; color: var(--blue); letter-spacing: -.03em; line-height: 1; flex-shrink: 0; }
.fbadge-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.2; }
.fbadge-text span { font-size: 11.5px; color: var(--muted); }


/* ── LOGOS STRIP ────────────────────────────── */
.logos-strip {
  padding: 30px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.logos-label {
  text-align: center; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2);
  margin-bottom: 18px;
}
.marquee-wrap { position: relative; overflow: hidden; }
.marquee-wrap::before,
.marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 100px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.marquee-track {
  display: flex; align-items: center; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 30px; font-size: 13px; font-weight: 600;
  color: var(--muted); white-space: nowrap; transition: color .2s;
}
.marquee-item:hover { color: var(--text); }
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .4; flex-shrink: 0; }

/* ── STATS SECTION ──────────────────────────── */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(52px, 6vw, 80px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
}
.stat-item { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 0 20px; }
.stat-item strong { font-size: clamp(44px, 5vw, 62px); font-weight: 800; color: var(--text); letter-spacing: -.04em; line-height: 1; }
.stat-item span { font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.stat-div { width: 1px; height: 54px; background: var(--border); justify-self: center; }

/* ── SECTION INTRO ──────────────────────────── */
.section-intro { max-width: 560px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-intro.centered { max-width: 640px; margin-inline: auto; text-align: center; }
.section-intro.centered .eyebrow { justify-content: center; }
.section-intro.centered .eyebrow::before { display: none; }
.section-intro h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 4.5vw, 54px); font-weight: 600; letter-spacing: .01em; color: var(--text); margin-bottom: 14px; }
.section-intro p { font-size: 17px; color: var(--muted); line-height: 1.72; }

/* ── DIFFERENCE / FEATURES ──────────────────── */
.difference-section { background: var(--bg); }
.diff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.diff-card {
  padding: 28px 24px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease-std);
}
.diff-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(28,25,20,.22); }
.diff-icon {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.diff-card h3 { font-size: 17.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -.01em; }
.diff-card p  { font-size: 14.5px; color: var(--muted); line-height: 1.68; }

/* ══════════════════════════════════════════════
   WORKS — 5 equal cards (3 + 2 centred)
   ══════════════════════════════════════════════ */
.works-section { background: var(--bg); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 52px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(36px, 4.8vw, 58px); font-weight: 600; letter-spacing: .01em; color: var(--text); line-height: 1.07; }
.section-head > p { font-size: 16px; color: var(--muted); line-height: 1.7; }

.work-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.work-card {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease-std);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(28,25,20,.20); }

.work-card__num {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11px; font-weight: 700; color: var(--blue);
  background: rgba(255,255,255,.94); border: 1px solid var(--border);
  border-radius: 9999px; padding: 3px 10px;
  backdrop-filter: blur(8px);
}
.work-card__thumb {
  position: relative; margin: 0; aspect-ratio: 3 / 2;
  overflow: hidden; background: var(--surface-2);
}
.work-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.work-card:hover .work-card__thumb img { transform: scale(1.05); }
.work-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,20,.30) 0%, transparent 52%);
  opacity: 0; transition: opacity .3s var(--ease-std);
}
.work-card:hover .work-card__overlay { opacity: 1; }
.work-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-tag {
  display: inline-block; margin-bottom: 9px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--blue); background: var(--blue-light); border-radius: 9999px; padding: 3px 10px;
}
.work-card h3 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -.02em; }
.work-card p  { font-size: 14px; color: var(--muted); line-height: 1.64; }
.arrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 18px;
  color: var(--blue); font-weight: 700; font-size: 13px;
  transition: gap .22s var(--ease);
}
.arrow svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .22s var(--ease); }
.work-card:hover .arrow { gap: 12px; }
.work-card:hover .arrow svg { transform: translateX(2px); }

/* ── SERVICES ───────────────────────────────── */
.services-section { background: var(--bg); }
.service-list { display: flex; flex-direction: column; }
.service {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 0 24px; padding: 28px 0;
  border-top: 1px solid var(--border);
  align-items: start; border-radius: 0;
  transition: background .22s var(--ease-std), padding .22s var(--ease-std), margin .22s var(--ease-std), border-radius .22s var(--ease-std);
}
.service:last-child { border-bottom: 1px solid var(--border); }
.service:hover {
  background: var(--blue-light);
  padding-left: 14px; padding-right: 14px;
  margin-left: -14px; margin-right: -14px;
  border-radius: var(--radius);
}
.service:hover .service-num { color: var(--blue); }
.service-num { font-size: 36px; font-weight: 800; color: var(--border-2); line-height: 1; padding-top: 4px; letter-spacing: -.03em; transition: color .22s; }
.service-body h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 7px; letter-spacing: -.02em; }
.service-body p  { font-size: 14.5px; color: var(--muted); line-height: 1.68; max-width: 72ch; }
.service-tag-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; padding-top: 4px; }
.service-pill {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--blue); background: var(--blue-light);
  border: 1px solid var(--blue-mid); border-radius: 9999px; padding: 4px 11px;
  white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.service:hover .service-pill { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ══════════════════════════════════════════════
   ABOUT + TIMELINE — radical redesign
   ══════════════════════════════════════════════ */
.about-section { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 68px); align-items: start;
}
.about-intro { position: sticky; top: 88px; }
.about-intro h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(34px, 4.5vw, 54px); font-weight: 600; letter-spacing: .01em; color: var(--text); margin: 10px 0 18px; }
.about-copy { font-size: 16.5px; color: var(--muted); line-height: 1.76; margin-bottom: 22px; }
.about-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.about-pills span {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--blue); background: var(--blue-light);
  border: 1px solid var(--blue-mid); border-radius: 9999px; padding: 5px 13px;
}

/* ── Timeline vertical line + dot system ── */
.timeline {
  position: relative;
  display: flex; flex-direction: column; gap: 0;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 20px; bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, #8c7355 0%, var(--border) 100%);
  border-radius: 2px;
}

.role {
  position: relative;
  display: grid; grid-template-columns: 128px 1fr;
  gap: 0 16px; align-items: start;
  padding: 20px 22px; margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: default;
  /* hover transition */
  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    border-color .3s var(--ease-std),
    border-left-color .3s var(--ease-std),
    background .3s var(--ease-std);
}

/* Timeline dot — aligned to line centre (line: left:8px w:2px → centre 9px;
   padding-left:36px so dot left:-34px → absolute pos 2px, centre 2+7=9px ✓) */
.role::before {
  content: '';
  position: absolute;
  left: -36px; top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--border-2);
  z-index: 1;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}

.role-feature {
  background: var(--blue-light);
  border-left-color: var(--blue);
  border-color: var(--blue-mid);
}
.role-feature::before {
  background: var(--blue); border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,25,20,.16);
}

/* Premium hover: slide right + left glow shadow */
.role:hover {
  transform: translateX(5px) translateY(-2px);
  box-shadow:
    -3px 0 0 0 var(--blue),
    0 12px 32px rgba(28,25,20,.12);
  border-left-color: var(--blue);
  border-color: rgba(28,25,20,.18);
  background: linear-gradient(to right, var(--blue-light) 0%, var(--surface) 100%);
}
.role:hover::before {
  background: var(--blue); border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,25,20,.12);
  transform: translateX(-5px) translateY(2px);
}

.role time { color: var(--blue); font-size: 11.5px; font-weight: 700; display: block; padding-top: 3px; letter-spacing: .02em; }
.role strong { display: block; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -.01em; }
.role span { color: var(--muted); font-size: 13.5px; line-height: 1.52; }

/* ── Education ─── */
.education-block { margin-top: clamp(52px, 7vw, 82px); }
.edu-head { margin-bottom: 26px; }
.edu-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(26px, 3.5vw, 42px); font-weight: 600; letter-spacing: .01em; color: var(--text); margin-top: 8px; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.education-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 24px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .2s var(--ease-std), box-shadow .2s var(--ease-std), border-color .2s;
}
.education-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(28,25,20,.25); }
.education-card span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--blue); }
.education-card strong { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.25; letter-spacing: -.01em; }
.education-card p { font-size: 13.5px; color: var(--muted); max-width: none; }
.education-card--membership {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px;
  background: linear-gradient(135deg, var(--blue-light), rgba(224,216,200,.28));
  border-color: var(--blue-mid); padding: 20px 24px;
}
.mem-badge {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.education-card--membership strong { font-size: 18px; }

/* ── FAQ ────────────────────────────────────── */
.faq-section { background: var(--bg); }
.faq-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px); align-items: start;
}
.faq-intro { position: sticky; top: 88px; }
.faq-intro h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(30px, 3.8vw, 48px); font-weight: 600; letter-spacing: .01em; color: var(--text); margin: 10px 0 12px; }
.faq-intro p { font-size: 16px; color: var(--muted); line-height: 1.7; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; background: none; border: none; cursor: pointer; text-align: left;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--text);
  letter-spacing: -.01em; transition: color .2s;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .22s, border-color .22s;
}
.faq-icon svg { width: 13px; height: 13px; stroke: var(--muted); transition: stroke .22s, transform .32s var(--ease); }
.faq-item.open .faq-icon { background: var(--blue); border-color: var(--blue); }
.faq-item.open .faq-icon svg { stroke: #fff; transform: rotate(45deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding-bottom: 22px; font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 76ch; }

/* ── FOOTER CTA COL ─────────────────────────── */
.footer-cta-col { display: flex; flex-direction: column; gap: 0; }
.footer-cta-col .brand { margin-bottom: 30px; }
.footer-cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; color: var(--text);
  line-height: 1.08; letter-spacing: .01em; margin-bottom: 14px;
}
.footer-cta-sub { font-size: 14.5px; color: var(--muted); line-height: 1.72; max-width: 30ch; margin-bottom: 26px; }
.footer-cta-col .footer-contact-links { margin-bottom: 26px; }
.footer-back-up { align-self: flex-start; margin-bottom: 32px; }
.footer-dark .btn-ghost-white {
  color: var(--muted);
  border-color: var(--border-2);
}
.footer-dark .btn-ghost-white:hover {
  color: var(--text);
  border-color: var(--text);
}
.footer-cta-col .footer-nav { margin-top: auto; }

/* ── FOOTER (main) ──────────────────────────── */
.footer-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(60px, 8vw, 92px) 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 480px);
  gap: clamp(32px, 6vw, 72px); margin-bottom: 52px;
}
.footer-info { display: flex; flex-direction: column; gap: 18px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.48); line-height: 1.7; max-width: 30ch; }
.footer-contact-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: color .2s;
}
.footer-link:hover { color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-nav a {
  padding: 6px 13px; border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: border-color .2s, color .2s;
}
.footer-nav a:hover { border-color: var(--border-2); color: var(--text); }
.footer-form-wrap h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; letter-spacing: -.02em; }
.contact-form { display: grid; gap: 12px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff;
  color: var(--text); padding: 11px 14px; font: inherit; font-size: 14px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: rgba(140,115,85,.55);
  background: #fff; box-shadow: 0 0 0 3px rgba(140,115,85,.16);
}
.form-submit { width: 100%; min-height: 48px; border: 0; font: inherit; }
.form-note { font-size: 12px; color: var(--muted-2); text-align: center; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--muted-2);
}

/* ── INNER PAGE FOOTER ──────────────────────── */
.footer-inner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer-inner-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .56s var(--ease), transform .56s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Timeline slide-from-left override (higher specificity) */
.timeline .role.reveal {
  transform: translateX(-20px) translateY(6px);
}
.timeline .role.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
/* hover can freely apply its own transform once visible */
.timeline .role.is-visible:hover {
  transform: translateX(5px) translateY(-2px);
}
/* dot stays anchored to the line while card slides right */
.timeline .role.is-visible:hover::before {
  transform: translateX(-5px) translateY(2px);
}

/* Works cards: scale-in for more drama */
.work-card.reveal {
  transform: translateY(28px) scale(.985);
}
.work-card.is-visible {
  transform: translateY(0) scale(1);
}
.work-card.is-visible:hover {
  transform: translateY(-6px) scale(1);
}

/* ── INNER PAGE STYLES ──────────────────────── */
.page-hero { padding: clamp(52px, 7vw, 88px) 0 clamp(40px, 5vw, 60px); background: var(--bg); }
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px); align-items: end;
}
.page-hero h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(44px, 6vw, 82px); font-weight: 600; letter-spacing: .01em; overflow-wrap: anywhere; color: var(--text); }
.page-hero p  { font-size: 17px; color: var(--muted); margin-top: 18px; line-height: 1.74; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px; color: var(--blue); font-weight: 700; font-size: 13.5px;
  text-decoration: none; transition: gap .2s var(--ease);
}
.back-link:hover { gap: 13px; }

.hero-image { aspect-ratio: 1.36/1; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.content-band { padding: clamp(40px, 5vw, 68px) 0 clamp(72px, 9vw, 112px); }
.detail-section {
  display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4vw, 52px) 0;
  border-top: 1px solid var(--border);
}
.detail-section h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 38px; font-weight: 600; letter-spacing: .01em; color: var(--text); position: sticky; top: 88px; }
.pub-list, .abstract-list { margin: 0; padding-left: 18px; display: grid; gap: 16px; color: var(--text-2); }
.pub-list li, .abstract-list li { padding-left: 4px; line-height: 1.65; font-size: 15px; }
.pub-list em { color: var(--blue); font-style: normal; font-weight: 700; }
.abstract-list h3 { font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 5px; color: var(--text); letter-spacing: -.01em; }
.text-link { color: var(--blue); font-weight: 700; text-underline-offset: 4px; }
.image-pair, .image-stack { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.media-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card.tall img { height: auto; object-fit: contain; background: var(--surface); }
.pending-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pending-list span { border: 1px solid var(--border); border-radius: 9999px; padding: 6px 14px; color: var(--blue); font-size: 12px; font-weight: 700; }
.content-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }

.next-work {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(32px, 4vw, 48px) 0;
}
.next-work a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; text-decoration: none;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease-std), background .28s;
}
.next-work a:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg);
  border-color: rgba(28,25,20,.18); background: var(--blue-light);
}
.next-work .next-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 6px; }
.next-work strong { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.025em; display: block; }
.next-arrow {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border-2);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  transition: background .2s, border-color .2s, transform .3s var(--ease);
}
.next-arrow svg { width: 20px; height: 20px; }
.next-work a:hover .next-arrow {
  background: var(--blue); border-color: var(--blue); color: #fff;
  transform: translateX(4px);
}

.small-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 3.8vw, 46px); font-weight: 600; letter-spacing: .01em; color: var(--text); }

/* ── RESPONSIVE 960px ───────────────────────── */
@media (max-width: 960px) {
  :root { --page: 24px; }
  .diff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 32px 0; }
  .stat-div { display: none; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; margin-bottom: 28px; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .detail-section { grid-template-columns: 1fr; }
  .detail-section h2 { position: static; }
  .image-pair, .image-stack { grid-template-columns: 1fr; }
  .about-intro { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 28px; }
  .nav-has-dropdown,
  .nav-secondary,
  .nav-divider { display: none; }
}

/* ── RESPONSIVE 768px ───────────────────────── */
@media (max-width: 768px) {
  .hero { height: auto; min-height: auto; margin-top: 0; padding-top: 40px; padding-bottom: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .work-grid { gap: 14px; }
  .work-card { flex: 0 0 calc(50% - 7px); }
  .service { grid-template-columns: 48px 1fr; gap: 0 16px; }
  .service-tag-wrap { display: none; }
  .service:hover { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
  .education-grid { grid-template-columns: 1fr; }
  .education-card--membership { flex-direction: column; align-items: flex-start; gap: 12px; }
  .role { grid-template-columns: 1fr; gap: 4px; }
  .role time { padding-top: 0; }
  .field-row { grid-template-columns: 1fr; }

  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    padding: 8px; background: none; border: none;
    order: 2; z-index: 51;
  }
  .nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed; inset: 68px 0 0;
    background: rgba(250,249,246,.98);
    backdrop-filter: blur(16px);
    flex-direction: column; align-items: flex-start;
    padding: 28px var(--page); gap: 4px;
    transform: translateX(100%);
    transition: transform .36s var(--ease); z-index: 40;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a:not(.btn) {
    width: 100%; padding: 12px 0;
    font-size: 17px; border-radius: 0;
    background: none !important;
  }
  .nav-has-dropdown,
  .nav-secondary,
  .nav-divider { display: none; }
  .nav-cta { width: 100%; margin-top: 12px; border-radius: var(--radius); justify-content: center; }
}

/* ── RESPONSIVE 480px ───────────────────────── */
@media (max-width: 480px) {
  .work-card { flex: 0 0 100%; }
  .site-header {top: 0 !important;}
  .hero-stats { gap: 10px; }
  .hstat-sep { display: none; }
  .hstat { padding: 0 10px 0 0; }
  .stats-grid { padding: 28px 0 !important; }
  .diff-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .section-intro { max-width: 100%; }
  .footer-inner-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal, .reveal.is-visible,
  .timeline .role.reveal, .timeline .role.is-visible,
  .work-card.reveal, .work-card.is-visible { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .float-badge { animation: none; }
}
