/* ============================================================
   Richelle Parra — Data Governance Portfolio
   Vanilla CSS · no frameworks · light/dark themes
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --ink: #0e1b2c;
  --ink-soft: #33445c;
  --muted: #5b6b83;
  --line: #dfe6f0;
  --accent: #0f766e;          /* teal-700 */
  --accent-2: #4f46e5;        /* indigo-600 */
  --accent-soft: rgba(15, 118, 110, 0.10);
  --accent-2-soft: rgba(79, 70, 229, 0.10);
  --grad: linear-gradient(120deg, #4f46e5 0%, #0d9488 100%);
  --shadow: 0 10px 30px -12px rgba(14, 27, 44, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(14, 27, 44, 0.25);
  --mesh-dot: rgba(79, 70, 229, 0.55);
  --mesh-line: rgba(13, 148, 136, 0.28);
  --header-bg: rgba(245, 247, 251, 0.82);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg: #0a101d;
  --bg-soft: #0e1626;
  --surface: #111a2c;
  --surface-2: #16213a;
  --ink: #e8eefa;
  --ink-soft: #c3cfe2;
  --muted: #8fa1bd;
  --line: #223050;
  --accent: #2dd4bf;          /* teal-400 */
  --accent-2: #818cf8;        /* indigo-400 */
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-2-soft: rgba(129, 140, 248, 0.12);
  --grad: linear-gradient(120deg, #818cf8 0%, #2dd4bf 100%);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --mesh-dot: rgba(129, 140, 248, 0.6);
  --mesh-line: rgba(45, 212, 191, 0.25);
  --header-bg: rgba(10, 16, 29, 0.8);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { vertical-align: middle; }

::selection { background: var(--accent-2); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width 0.08s linear;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.35s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover {
  text-decoration: none;
  color: var(--ink);
  background: var(--accent-2-soft);
}
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-links a.nav-cta {
  color: #fff;
  background: var(--grad);
  font-weight: 600;
  margin-left: 6px;
}
.nav-links a.nav-cta:hover { opacity: 0.9; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { transform: translateY(-1px); color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }

/* theme toggle shows one icon at a time */
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px;
  background: var(--accent-2-soft);
  top: -140px; right: -120px;
}
.hero::after {
  width: 420px; height: 420px;
  background: var(--accent-soft);
  bottom: -160px; left: -120px;
}

#mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text { max-width: 640px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
.kicker .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  margin: 22px 0 10px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tag {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 6px;
}
.rotator {
  display: inline-block;
  min-width: 0;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rotator.fade { opacity: 0; transform: translateY(8px); }

.hero-sub {
  color: var(--muted);
  max-width: 600px;
  font-size: 1.02rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
  padding: 0;
  list-style: none;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
}
.hero-chips svg { width: 14px; height: 14px; color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero photo ---------- */
.hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 350px);
}
.photo-frame {
  position: relative;
  background: var(--grad);
  padding: 5px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform 0.3s ease;
}
.photo-frame:hover { transform: rotate(0deg) scale(1.01); }
.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 25px;
}
.photo-fallback { display: none; }
.photo-frame.noimg img { display: none; }
.photo-frame.noimg .photo-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  aspect-ratio: 1 / 1.08;
  border-radius: 25px;
  background: var(--surface);
  color: var(--muted);
}
.photo-frame.noimg .photo-fallback b {
  font-family: var(--font-display);
  font-size: 3.4rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.photo-frame.noimg .photo-fallback span { font-size: 0.8rem; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.float-chip svg { width: 15px; height: 15px; color: var(--accent); }
.float-chip.tl { top: 16px; left: -26px; animation: floaty 4s ease-in-out infinite; }
.float-chip.br { bottom: 24px; right: -18px; animation: floaty 4.6s ease-in-out 0.6s infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  z-index: 1;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint svg { width: 22px; height: 22px; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }

.sec-head { margin-bottom: 44px; max-width: 640px; }
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-label::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-copy p { color: var(--ink-soft); }
.about-copy strong { color: var(--ink); }

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.fact-card h3 { font-size: 1.02rem; margin-bottom: 16px; }
.fact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.fact-list li {
  display: flex;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.fact-list li:last-child { border-bottom: none; }
.fact-list svg { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: 3px; }
.fact-list span strong { display: block; color: var(--ink); font-weight: 600; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
}
.tag.teal { background: var(--accent-soft); color: var(--accent); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Experience timeline ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
  max-width: 760px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-2), var(--accent));
  opacity: 0.4;
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -29px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline li.current::before { background: var(--accent); }

.t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.t-card:hover { transform: translateX(4px); border-color: var(--accent); box-shadow: var(--shadow); }
.t-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
}
.t-role { font-weight: 700; font-family: var(--font-display); font-size: 1.02rem; }
.t-date { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.t-org { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.t-loc { color: var(--muted); font-size: 0.82rem; }
.badge-now {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Work cards ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.work-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.work-card:hover {
  text-decoration: none;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.work-card:hover::before { transform: scaleX(1); }

.work-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  margin-bottom: 18px;
}
.work-icon svg { width: 26px; height: 26px; }
.work-card:nth-child(2) .work-icon { background: var(--accent-soft); color: var(--accent); }

.work-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.work-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px dashed var(--accent-2);
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-soon .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.work-arrow { color: var(--accent); transition: transform 0.2s ease; }
.work-arrow svg { width: 18px; height: 18px; }
.work-card:hover .work-arrow { transform: translateX(5px); }

/* ---------- Writing / article ---------- */
.article-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.article-icon {
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  flex: none;
}
.article-icon svg { width: 34px; height: 34px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.article-meta .tag { font-size: 0.74rem; }
.article-card h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); margin-bottom: 8px; }
.article-card p { color: var(--muted); margin: 0; font-size: 0.95rem; max-width: 560px; }

/* ---------- Certifications ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.cert-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.cert-card.hide { display: none; }

.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cert-issuer {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cert-card[data-cat="iso"] .cert-issuer,
.cert-card[data-cat="governance"] .cert-issuer {
  background: var(--accent-soft);
  color: var(--accent);
}
.cert-date { color: var(--muted); font-size: 0.8rem; }

.cert-card h3 { font-size: 1.04rem; margin-bottom: 6px; flex: none; }
.cert-id {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 14px;
  flex: 1;
}
.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 600;
}
.cert-link svg { width: 14px; height: 14px; }

/* ---------- Contact ---------- */
.contact-wrap { text-align: center; max-width: 640px; margin-inline: auto; }
.contact-wrap h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.contact-wrap > div > p { color: var(--muted); margin-bottom: 34px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  text-align: left;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 17px 20px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.contact-card svg { width: 21px; height: 21px; color: var(--accent); flex: none; }
.contact-card .cc-label { font-weight: 600; display: block; }
.contact-card .cc-sub { color: var(--muted); font-size: 0.8rem; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-inner a { color: var(--ink-soft); font-weight: 500; }

/* ---------- Case-study (work) pages ---------- */
.case-hero {
  padding: 150px 0 60px;
  background:
    radial-gradient(600px 300px at 85% 0%, var(--accent-2-soft), transparent),
    radial-gradient(500px 260px at 10% 10%, var(--accent-soft), transparent);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 26px;
}
.back-link:hover { color: var(--accent); text-decoration: none; }
.back-link svg { width: 16px; height: 16px; }

.case-hero .tag { margin-bottom: 14px; display: inline-block; }
.case-hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin-bottom: 14px; }
.case-hero .lede { color: var(--ink-soft); font-size: 1.08rem; max-width: 680px; }

.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 20px;
  border: 1px dashed var(--accent-2);
  border-radius: var(--radius-sm);
  background: var(--accent-2-soft);
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 680px;
}
.status-banner .pulse {
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 1.8s ease-in-out infinite;
}

.case-body { padding: 60px 0 90px; }
.case-section { max-width: 760px; margin-bottom: 44px; }
.case-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
}
.case-section h2 .num {
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 4px 9px;
  font-family: var(--font-display);
  font-weight: 700;
}

.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 26px;
  color: var(--muted);
  font-size: 0.94rem;
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.placeholder:hover { border-color: var(--accent-2); }
.placeholder .ph-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.placeholder p { margin: 0; }

.case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 34px;
  max-width: 760px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s 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; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; width: min(62%, 280px); }
  .float-chip.tl { left: -14px; }
  .float-chip.br { right: -12px; }
  .about-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .article-card { grid-template-columns: auto 1fr; }
  .article-card .btn { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 104px 0 64px; }
  .hero-photo { width: min(64%, 250px); }
  .float-chip { font-size: 0.72rem; padding: 6px 11px; }
  .float-chip.tl { left: -6px; }
  .float-chip.br { right: -6px; }

  .menu-btn { display: grid; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px clamp(20px, 5vw, 32px) 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px 14px; font-size: 1rem; border-radius: 10px; }
  .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; }

  .work-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; padding: 24px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1; justify-content: center; }
  .scroll-hint { display: none; }
  .timeline { padding-left: 26px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
