/* =========================================================
   Jessica Hernandez — portfolio styles
   Layout concept: one centered 1120px column; every section
   uses the SAME vertical padding (--section) so spacing is
   even on every page. Change a value here and it updates
   everywhere.
   ========================================================= */

:root {
  /* Color */
  --cream: #FBF7F3;      /* page background */
  --white: #FFFFFF;      /* cards */
  --blush: #F5E6DE;      /* tinted bands, image placeholders */
  --charcoal: #2B2522;   /* text, dark footer */
  --muted: #6E625C;      /* secondary text */
  --line: #E8DCD4;       /* hairlines, borders */
  --coral: #E07A5F;      /* accent: buttons, big numbers */
  --coral-text: #B8573C; /* accent for small text (readable on cream) */
  --on-dark: #FBF7F3;
  --on-dark-muted: #CFC4BC;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --fs-label: 0.78rem;
  --fs-small: 0.9rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.375rem;
  --fs-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
  --fs-stat: clamp(2.2rem, 1.6rem + 2vw, 3rem);

  /* Spacing — the whole site uses only these */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --section: clamp(72px, 6vw + 40px, 112px); /* top AND bottom of every section */
  --gutter: 24px;  /* gap between cards / grid items */
  --width: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--width) + 2 * var(--space-3));
  margin-inline: auto;
  padding-left: max(var(--space-3), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-3), env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* Every section gets identical top/bottom padding. */
.section { padding-block: var(--section); }
.section--band { background: var(--blush); }
.section--white { background: var(--white); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }

/* Two plain sections in a row would double the gap; collapse it. */
.section:not(.section--band):not(.section--white):not(.section--dark)
  + .section:not(.section--band):not(.section--white):not(.section--dark) {
  padding-top: 0;
}

/* Standard heading block at the top of a section */
.section-head {
  display: grid;
  gap: var(--space-2);
  max-width: 680px;
  margin-bottom: var(--space-5);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.stack { display: grid; gap: var(--space-3); }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0; max-width: 65ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-text);
  margin: 0;
}
.section--dark .eyebrow { color: var(--coral); }
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.55; }
.section--dark .lead { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid var(--coral);
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--coral-text); border-color: var(--coral-text); }
.btn--outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.text-link {
  font-weight: 700;
  color: var(--coral-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.text-link:hover { border-color: currentColor; }

.tag {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 76px;
}
.brand { text-decoration: none; display: grid; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; }
.brand-role { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: var(--space-4); }
.nav a {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--coral); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--charcoal);
  border-radius: 999px;
  padding: 8px 16px;
  font: 700 var(--fs-label)/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--space-1) max(16px, env(safe-area-inset-right, 0px)) var(--space-2) max(16px, env(safe-area-inset-left, 0px));
  }
  .nav a { padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav:not(.is-open) { display: none; }
}

/* ---------- Media (images) ----------
   If an image is missing, the blush box shows its label
   instead of a broken-image icon. */
.media {
  position: relative;
  margin: 0;
  background: var(--blush);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 100%;
}
.media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.media::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: var(--space-2);
  text-align: center;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-text);
}
.ratio-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-2-3 { aspect-ratio: 2 / 3; }
.media--contain img { object-fit: contain; background: var(--white); }

.caption { display: grid; gap: 4px; margin-top: var(--space-2); }
.caption .tag { color: var(--coral-text); }
.caption p { font-size: var(--fs-small); color: var(--muted); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gutter); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .grid-4.grid-keep-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4:not(.grid-keep-2) { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--section); }
.hero .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-copy { display: grid; gap: var(--space-3); min-width: 0; }
.hero-photo { max-width: 400px; justify-self: end; width: 100%; }
@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 280px; order: -1; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: var(--gutter);
}
.stat { display: grid; gap: 4px; align-content: start; }
.stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  line-height: 1.1;
  color: var(--coral);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-label { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.section--dark .stat-label { color: var(--on-dark-muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-4); } }

/* ---------- Case study cards ---------- */
.case-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
a.case-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.case-card .body { display: grid; gap: var(--space-1); align-content: start; min-width: 0; }
.case-card h3 { margin-bottom: 4px; }
.case-card p { font-size: var(--fs-small); color: var(--muted); }
.case-card .more { margin-top: var(--space-1); font-size: var(--fs-small); font-weight: 700; color: var(--coral-text); }
.case-card .soon { margin-top: var(--space-1); font-size: var(--fs-small); color: var(--muted); font-style: italic; }
@media (max-width: 1000px) { .case-card { grid-template-columns: 1fr; } .case-card .media { aspect-ratio: 16 / 9; } }

/* Case studies index: wider rows with stats */
.case-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
}
.case-row .body { display: grid; gap: var(--space-2); min-width: 0; }
.case-row .stats { --cols: 3; margin-block: var(--space-1); }
.case-row .stat-value { font-size: 2rem; }
@media (max-width: 800px) {
  .case-row { grid-template-columns: 1fr; padding: var(--space-3); gap: var(--space-3); }
  .case-row .media { aspect-ratio: 16 / 9; }
  .case-row .stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Case study detail ---------- */
.cs-hero { display: grid; gap: var(--space-3); max-width: 820px; }
.cs-hero .stats { margin-top: var(--space-4); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.two-col > * { min-width: 0; }
.two-col--top { align-items: start; }
.two-col--flip > :first-child { order: 2; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-4); }
  .two-col--flip > :first-child { order: 0; }
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.7em;
  width: 12px; height: 1.5px;
  background: var(--coral);
}

.facts { display: grid; gap: var(--space-3); padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-text); }
.facts dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.15rem; }

.result { display: grid; gap: var(--space-2); }
.source { font-size: var(--fs-label); color: var(--muted); letter-spacing: 0.04em; }
.results { display: grid; gap: var(--section); }

.takeaway { max-width: 760px; margin-inline: auto; text-align: center; display: grid; gap: var(--space-3); justify-items: center; }
.takeaway blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.4; }

/* ---------- Résumé ---------- */
.timeline { display: grid; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-item .when { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-text); padding-top: 6px; }
.timeline-item .what { display: grid; gap: var(--space-1); min-width: 0; }
.timeline-item .org { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 700px) { .timeline-item { grid-template-columns: 1fr; gap: var(--space-1); } }

.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chip-list li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: var(--fs-small); }

/* ---------- Footer / contact ---------- */
.site-footer .container { display: grid; gap: var(--space-3); justify-items: center; text-align: center; }
.site-footer h2 { color: var(--on-dark); }
.site-footer .email { font-family: var(--font-display); font-size: 1.2rem; color: var(--on-dark); user-select: all; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-1); }
.footer-links a { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-muted); }
.footer-links a:hover { color: var(--on-dark); }
.footer-base { width: 100%; margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(251, 247, 243, 0.15); font-size: var(--fs-label); color: var(--on-dark-muted); letter-spacing: 0.06em; }
.site-footer .btn:hover { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }

/* Placeholders on tinted bands use white so they stay visible */
.section--band .media { background: var(--white); }

/* Smaller-thumbnail card (creator content) */
.case-card--sm { grid-template-columns: 160px 1fr; }
.case-card--sm .stat-value { font-size: 2rem; }
@media (max-width: 1000px) { .case-card--sm { grid-template-columns: 140px 1fr; } .case-card--sm .media { aspect-ratio: 9 / 16; } }
@media (max-width: 480px) { .case-card--sm { grid-template-columns: 1fr; } .case-card--sm .media { max-width: 200px; } }

/* ---------- Home profile card ---------- */
.profile-card {
  justify-self: end;
  width: 100%;
  max-width: 400px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4);
  background: #EFD7CC;
  box-shadow: 0 24px 48px -20px rgba(43, 37, 34, 0.28), 0 4px 12px rgba(43, 37, 34, 0.06);
}
.profile-photo {
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--cream);
}
.profile-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
}
.profile-rule {
  width: 64px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 10px, transparent 10px 13px);
}
.profile-role {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 820px) {
  .profile-card { justify-self: center; order: -1; max-width: 340px; padding: var(--space-4) var(--space-3); }
}

/* ---------- Process steps (analytics page) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.step { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-3); background: var(--white); border-radius: var(--radius); min-width: 0; }
.step-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--coral); font-variant-numeric: lining-nums; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Video cards (creator content) ---------- */
.video-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
}
.video-card .body { display: grid; gap: var(--space-2); min-width: 0; }
.video-card .stat-value { font-size: 2rem; }
.video-card .why { font-size: var(--fs-small); color: var(--muted); }
.video-card .why strong { color: var(--charcoal); }
.video-frame { background: var(--white); }
.video-frame video { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; background: var(--white); }
@media (max-width: 1000px) { .video-card { grid-template-columns: 160px 1fr; } }
@media (max-width: 480px) { .video-card { grid-template-columns: 1fr; } .video-card .video-frame { max-width: 240px; } }

/* Reels that play on the page */
.reel-frame video { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; background: var(--charcoal); }

/* Light outline on still graphics */
.media--outline { box-shadow: 0 0 0 1px rgba(43, 37, 34, 0.14); }

/* Report slides */
.span-2 { grid-column: 1 / -1; }
.zoom { display: block; border-radius: var(--radius); }
.zoom .media { transition: box-shadow .2s; }
.zoom:hover .media { box-shadow: 0 0 0 1px var(--coral), 0 12px 28px -16px rgba(43, 37, 34, 0.35); }
.zoom .media img { object-fit: contain; background: var(--white); }

/* About me credentials: three lines in stepped greys */
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.creds li {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}
.creds li:nth-child(1) { color: var(--charcoal); }
.creds li:nth-child(2) { color: #5E534D; }
.creds li:nth-child(3) { color: #8A7D76; }

/* A heading block that ends its section doesn't add extra space below */
.section-head:last-child { margin-bottom: 0; }

/* Full-width result: text above a wide image */
.result-wide { display: grid; gap: var(--space-3); }
.result-wide .result { max-width: 680px; }

/* Two reels side by side in a result row */
.reel-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); max-width: 460px; }
.checklist strong { color: var(--charcoal); font-weight: 700; }

/* Malware recovery checklist card */
.recovery-card { display: grid; gap: var(--space-3); padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.recovery-list { list-style: none; margin: 0; padding: 0; display: grid; }
.recovery-list li { display: grid; grid-template-columns: 32px 1fr; gap: var(--space-2); align-items: start; padding-block: var(--space-2); border-top: 1px solid var(--line); }
.recovery-list li:first-child { border-top: 0; padding-top: 0; }
.recovery-list li:last-child { padding-bottom: 0; }
.recovery-list .check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blush); color: var(--coral-text); font-weight: 700; font-size: 0.9rem; }
.recovery-list div { display: grid; gap: 2px; min-width: 0; }
.recovery-list strong { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.recovery-list span:not(.check) { font-size: var(--fs-small); color: var(--muted); }

/* Smaller cover photo beside a case study title */
.cs-cover { width: 100%; max-width: 320px; justify-self: end; }
@media (max-width: 820px) { .cs-cover { justify-self: start; max-width: 260px; } }

/* KPI circles on case study pages */
.stats--circles { justify-items: center; }
.stats--circles .stat {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: var(--space-1);
}
.stats--circles .stat-value { color: var(--coral-text); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); white-space: nowrap; }
.stats--circles .stat-label { max-width: 17ch; line-height: 1.4; color: var(--muted); font-weight: 700; }
@media (max-width: 700px) { .stats--circles { row-gap: var(--gutter); } .stats--circles .stat { max-width: 170px; } }

/* Slimmer band for the KPI circles */
.section--kpis { padding-block: var(--space-4); }
.section--kpis .stats--circles .stat { max-width: 180px; }
@media (max-width: 700px) { .section--kpis .stats--circles .stat { max-width: 150px; } }

/* Case study takeaway: left-aligned, titled, regular-size body */
.takeaway--left { max-width: calc(var(--width) + 2 * var(--space-3)); text-align: left; justify-items: start; gap: var(--space-2); }
.takeaway--left h2 { max-width: 680px; }
.takeaway--left blockquote { max-width: 680px; font-family: var(--font-body); font-size: 1.125rem; line-height: 1.7; color: var(--muted); }
.takeaway--left .text-link { margin-top: var(--space-1); }

/* Keep skill chips at their natural height */
.stack { align-content: start; }
.chip-list { align-content: flex-start; align-items: flex-start; }

/* Slimmer stats strip on the home page */
.section--stats { padding-block: var(--space-5); }

/* Before / after slide pairs */
.ba-pair .media { aspect-ratio: 16 / 9 !important; }
.ba-pair .media img { object-fit: contain; background: var(--white); }
.ba { padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; }
.ba--before { background: var(--line); color: var(--muted); }
.ba--after { background: var(--blush); color: var(--coral-text); }
.caption .ba { justify-self: start; }

/* ---------- Compact footer ---------- */
.site-footer { padding-block: var(--space-5) var(--space-3); }
.site-footer .container { display: flex; text-align: left; justify-items: initial; }
.footer-top { align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-cta { display: grid; gap: var(--space-1); min-width: 0; }
.site-footer h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); color: var(--on-dark); }
.footer-sub { color: var(--on-dark-muted); font-size: var(--fs-small); }
.footer-contact { display: grid; gap: var(--space-1); justify-items: end; }
.site-footer .email { font-family: var(--font-body); font-size: var(--fs-small); color: var(--on-dark-muted); margin: 0; }
.site-footer .footer-base {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(251, 247, 243, 0.15);
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  width: auto;
}
.footer-base p { margin: 0; font-size: var(--fs-label); color: var(--on-dark-muted); letter-spacing: 0.06em; }
.site-footer .footer-links { margin: 0; gap: var(--space-3); }
@media (max-width: 700px) {
  .footer-contact { justify-items: start; }
  .site-footer .footer-base { flex-direction: column-reverse; align-items: flex-start; }
}
.site-footer .footer-base { border-top: 0; background: linear-gradient(rgba(251, 247, 243, 0.15), rgba(251, 247, 243, 0.15)) top / 100% 1px no-repeat; background-origin: content-box; background-clip: content-box; }
/* Smaller footer button, aligned with the bottom of the text */
.footer-top { align-items: flex-end; }
.footer-contact .btn { min-height: 40px; padding: 0 20px; font-size: 0.72rem; }
.site-footer .footer-base { padding-top: 0; }
.site-footer .footer-base > * { padding-top: var(--space-3); }
@media (max-width: 700px) { .site-footer .footer-base > p { padding-top: 0; } }

/* ---------- Resume: dates on the right, quieter bullets ---------- */
.timeline-item { grid-template-columns: 1fr auto; }
.timeline-item .what { order: 1; }
.timeline-item .when { order: 2; text-align: right; white-space: nowrap; }
.timeline .checklist { gap: var(--space-1); }
.timeline .checklist li { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }
.timeline .checklist li::before { top: 0.75em; }
.timeline .checklist strong { font-weight: 400; color: inherit; }
@media (max-width: 700px) {
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-item .when { order: 0; text-align: left; }
}

/* ---------- Lusky content pillars card ---------- */
.pillar-card { display: grid; gap: var(--space-2); padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.pillar-stage { display: grid; grid-template-columns: 84px 1fr; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); position: relative; }
.pillar-stage:first-of-type { border-top: 0; padding-top: 0; }
.stage-label {
  align-self: start;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--coral-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stage-label--buy { background: var(--coral); color: var(--white); }
.pillar-stage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); min-width: 0; }
.pillar-stage li { display: grid; gap: 2px; }
.pillar-stage strong { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.pillar-stage li span { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 480px) { .pillar-stage { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ---------- Lusky content pillars: horizontal ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
.pillar { display: grid; gap: 4px; align-content: start; padding: var(--space-3) var(--space-2); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; min-width: 0; }
.pillar strong { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.pillar span { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.pillar--buy { border-color: var(--coral); }
.stage { position: relative; display: grid; place-items: center; height: 28px; }
.stage::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: var(--coral); opacity: .5; }
.stage span { position: relative; padding: 2px 10px; border-radius: 999px; background: var(--blush); color: var(--coral-text); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.stage--discover { grid-column: 1 / 3; }
.stage--trust { grid-column: 3 / 5; }
.stage--buy { grid-column: 5 / 6; }
.stage--buy span { background: var(--coral); color: var(--white); }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .stage { display: none; }
  .pillar--buy { grid-column: 1 / -1; }
}

/* ---------- Resume skills: horizontal rows ---------- */
.skill-rows { display: grid; }
.skill-row { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-4); align-items: center; padding-block: var(--space-3); border-top: 1px solid var(--line); }
.skill-row:last-child { border-bottom: 1px solid var(--line); }
.skill-row h3 { font-size: 1.15rem; }
.skill-row .chip-list { min-width: 0; }
@media (max-width: 700px) { .skill-row { grid-template-columns: 1fr; gap: var(--space-2); align-items: start; } }
