/* ==========================================================================
   Natalia M. Morales Campillo — portfolio
   Palette: plum (authority) · sand (warmth) · coral (accent) · sage (labels)
   ========================================================================== */

:root {
  --plum-900: #2a1530;
  --plum-700: #4a2548;
  --plum-500: #6b3a67;
  --plum-100: #efe3ec;
  --sand-50: #fbf6ef;
  --sand-100: #f4eadc;
  --sand-200: #eadbc6;
  --coral-400: #e0674f;
  --coral-600: #b8452f;
  --coral-100: #fbe1d8;
  --sage-600: #4f5e45;
  --sage-100: #e3e8dc;
  --ink: #1e1a1d;
  --muted: #5e5560;
  --line: #e2d6c6;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(42, 21, 48, .06), 0 8px 24px rgba(42, 21, 48, .06);
  --shadow-lg: 0 24px 60px rgba(42, 21, 48, .16);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Language switching ---------- */
html[lang="en"] [data-l="es"],
html[lang="es"] [data-l="en"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-600); text-underline-offset: 3px; }
a:hover { color: var(--plum-700); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; color: var(--plum-900); }
p { margin: 0 0 var(--space-3); }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--plum-700); color: var(--white);
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .8125rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sage-600);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--coral-400); }
.script { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.display {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .92;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--plum-700); color: var(--white); }
.btn-primary:hover { background: var(--plum-900); color: var(--white); transform: translateY(-1px); }
.btn-ghost { border-color: var(--plum-700); color: var(--plum-700); background: transparent; }
.btn-ghost:hover { background: var(--plum-700); color: var(--white); }
.btn-light { background: var(--white); color: var(--plum-900); }
.btn-light:hover { background: var(--sand-100); color: var(--plum-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 239, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(42, 21, 48, .05); }
.header-inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum-900); margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase; }
.brand-tag { font-family: var(--font-serif); font-style: italic; font-size: .85rem; color: var(--muted); }

.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 999px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-list a:hover { background: var(--sand-100); color: var(--plum-700); }
.nav-list a[aria-current="true"] { color: var(--plum-700); background: var(--plum-100); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--sand-100); border: 1px solid var(--line);
}
.lang-toggle button {
  min-width: 44px; min-height: 38px; border: 0; border-radius: 999px; background: transparent;
  font-weight: 600; font-size: .85rem; letter-spacing: .06em; color: var(--muted);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.lang-toggle button[aria-pressed="true"] { background: var(--plum-700); color: var(--white); }
.header-cta { min-height: 44px; padding: 8px 18px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--plum-900); align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--sand-50);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: var(--space-3) 16px var(--space-4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; }
  .nav-list a { width: 100%; font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--space-6) 0 0; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -10% -10% 20%;
  background:
    radial-gradient(40% 45% at 50% 42%, rgba(224, 103, 79, .30), transparent 70%),
    radial-gradient(30% 35% at 70% 30%, rgba(107, 58, 103, .16), transparent 70%),
    radial-gradient(35% 40% at 28% 60%, rgba(234, 219, 198, .9), transparent 70%);
}
.hero-greeting {
  text-align: center; font-size: clamp(2.3rem, 5.6vw, 5.2rem); line-height: 1.05; color: var(--plum-900); text-wrap: balance;
  position: relative; z-index: 1; margin-bottom: var(--space-5);
}
.hero-greeting .hl { color: var(--coral-600); }
.hero-grid {
  display: grid; grid-template-columns: 1fr minmax(260px, 400px) 1fr; gap: var(--space-5);
  align-items: end;
}
.hero-portrait { position: relative; z-index: 0; }
.hero-portrait .frame {
  aspect-ratio: 3 / 4; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden;
  background: var(--sand-200); box-shadow: var(--shadow-lg); border: 6px solid var(--white);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 20%; }
.hero-portrait .seal {
  position: absolute; right: -18px; bottom: 18%; width: 96px; height: 96px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center; padding: 16px;
}

.hero-left { padding-bottom: var(--space-6); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow); font-weight: 500; font-size: .9rem; color: var(--ink);
}
.badge .pulse { width: 10px; height: 10px; border-radius: 50%; background: #3f8f5a; box-shadow: 0 0 0 4px rgba(63, 143, 90, .18); }
.hero-intro { margin: var(--space-4) 0; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-right { padding-bottom: var(--space-6); text-align: right; }
.hero-role { font-size: clamp(2.2rem, 4.2vw, 3.6rem); color: var(--plum-900); }
.hero-role span { display: block; }
.hero-role .accent { color: var(--coral-600); }
.hero-focus { list-style: none; margin-top: var(--space-4); display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-weight: 500; }
.hero-stats { display: flex; justify-content: flex-end; gap: var(--space-5); margin-top: var(--space-5); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--plum-700); }
.stat-label { font-size: .85rem; color: var(--muted); max-width: 16ch; margin-left: auto; line-height: 1.35; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-portrait { order: -1; width: min(78vw, 360px); margin-inline: auto; }
  .hero-left, .hero-right { padding-bottom: 0; text-align: center; }
  .hero-intro { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .stat-label { margin-inline: auto; }
  .hero-greeting { margin-bottom: var(--space-4); }
  .hero-portrait .seal { right: -8px; width: 76px; height: 76px; padding: 12px; }
}

/* Marquee */
.marquee {
  margin-top: var(--space-7); border-block: 1px solid var(--line); background: var(--white);
  overflow: hidden; padding: 18px 0;
}
.marquee-track { display: flex; width: max-content; gap: var(--space-6); animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: var(--space-6);
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--plum-500); white-space: nowrap;
}
.marquee-item::after { content: "✦"; color: var(--coral-400); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-countries { margin-top: 0; border-top: 0; background: var(--plum-900); padding: 14px 0; }
.marquee-countries .marquee-track { animation-direction: reverse; animation-duration: 60s; }
.marquee-countries .marquee-item { color: #f3e9f1; font-size: 1.15rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--plum-900); color: #efe6ee; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-5); align-items: end; margin-bottom: var(--space-6); }
.section-num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 9vw, 7rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--coral-400); grid-row: span 2;
}
.section-title { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.section-title .script { text-transform: none; font-size: .78em; color: var(--coral-600); letter-spacing: 0; }
.section-lede { grid-column: 2; max-width: 62ch; color: var(--muted); font-size: 1.125rem; margin: var(--space-3) 0 0; }
@media (max-width: 640px) {
  .section { padding: var(--space-7) 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-num { grid-row: auto; }
  .section-lede { grid-column: 1; }
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Highlights list */
.highlights { list-style: none; display: grid; gap: var(--space-3); }
.highlights li {
  position: relative; padding: var(--space-3) var(--space-3) var(--space-3) 52px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.section-alt .highlights li { background: var(--sand-50); }
.highlights li::before {
  content: ""; position: absolute; left: 18px; top: 22px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, var(--coral-400) 0 4px, var(--coral-100) 5px);
}
.highlights strong { color: var(--plum-900); }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.stat-card {
  padding: var(--space-4); border-radius: var(--radius); background: var(--plum-700); color: #f3e9f1;
  display: flex; flex-direction: column; gap: 6px; min-height: 150px; justify-content: space-between;
}
.stat-card:nth-child(4n+2), .stat-card:nth-child(4n+3) { background: var(--sand-100); color: var(--ink); }
.stat-card:nth-child(4n+2) .stat-card-num, .stat-card:nth-child(4n+3) .stat-card-num { color: var(--plum-700); }
.stat-card-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--white); }
.stat-card p { margin: 0; font-size: .95rem; line-height: 1.4; }
.stat-source { font-size: .8rem; color: var(--muted); margin-top: var(--space-3); }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }

/* Sub-heading inside sections */
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-7) 0 var(--space-4); }
.sub-head h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.75rem; letter-spacing: .01em; }
.sub-head p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
/* Masonry via CSS columns: photos keep their natural proportions, no gaps */
.gallery { columns: 3 260px; column-gap: 12px; }
.gallery.duo { columns: 2 260px; }
.gallery-item {
  position: relative; display: block; width: 100%; margin: 0 0 12px; border: 0; padding: 0; border-radius: var(--radius);
  overflow: hidden; background: var(--sand-200); cursor: zoom-in; break-inside: avoid; -webkit-column-break-inside: avoid;
}
.gallery-item img { width: 100%; height: auto; transition: transform var(--dur-slow) var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42, 21, 48, .72));
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.gallery-item .cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: var(--white);
  font-size: .9rem; font-weight: 500; text-align: left; line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item:hover::after, .gallery-item:focus-visible::after,
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; transform: none; }
.gallery-item[hidden] { display: none; }
@media (hover: none) {
  .gallery-item::after, .gallery-item .cap { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .gallery, .gallery.duo { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; border-radius: var(--radius-sm); }
  .gallery-item .cap { font-size: .8rem; left: 10px; right: 10px; bottom: 8px; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-4); }
.chip {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-weight: 500; font-size: .92rem;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--plum-500); }
.chip[aria-pressed="true"] { background: var(--plum-700); border-color: var(--plum-700); color: var(--white); }

/* ---------- Reports ---------- */
.reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.report {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4);
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.section-alt .report { background: var(--sand-50); }
.report:hover { border-color: var(--plum-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.report-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; background: var(--sage-100); color: var(--sage-600);
}
.tag.lang { background: var(--plum-100); color: var(--plum-700); }
.report h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.report p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.report-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: var(--space-2); }
.report-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none;
  color: var(--plum-700);
}
.report-links a:hover { color: var(--coral-600); }
.report-links svg { width: 18px; height: 18px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-7); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.about-bio p { font-size: 1.125rem; }
.about-bio .pull {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35;
  color: var(--plum-700); border-left: 3px solid var(--coral-400); padding-left: var(--space-4); margin: var(--space-5) 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--sand-100); font-size: .92rem; font-weight: 500; }

.info-block + .info-block { margin-top: var(--space-6); }
.info-block h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin-bottom: var(--space-3); letter-spacing: .01em; }

.tl-employer { font-weight: 600; color: var(--plum-700); margin: 0 0 var(--space-4); font-size: 1rem; }
.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-5); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sand-50); border: 3px solid var(--plum-700);
}
.timeline li.current::before { background: var(--coral-400); border-color: var(--coral-400); box-shadow: 0 0 0 5px var(--coral-100); }
.timeline li.collab::before { background: var(--sand-50); border: 3px dashed var(--coral-400); }
.timeline li.collab { background: var(--sand-100); border-radius: var(--radius-sm); padding-top: 12px; padding-right: 12px; padding-bottom: 12px; margin-bottom: var(--space-4); }
.tl-date {font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-600); font-size: .95rem; }
.tl-role { font-weight: 600; color: var(--plum-900); font-size: 1.1rem; line-height: 1.35; margin: 2px 0; }
.tl-org { color: var(--muted); font-size: .95rem; }
.tl-note { font-size: .95rem; margin: 6px 0 0; }

.cred-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cred-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; line-height: 1.4; }
.cred-list svg { flex: none; width: 20px; height: 20px; color: var(--coral-600); margin-top: 1px; }

.cv-downloads { display: grid; gap: 10px; }
.cv-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
}
.cv-title { font-weight: 600; color: var(--plum-900); line-height: 1.3; }
.cv-links { display: flex; gap: 6px; }
.cv-links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: var(--plum-700); color: var(--white); text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: background var(--dur-fast) var(--ease);
}
.cv-links a:hover { background: var(--plum-900); color: var(--white); }
.cv-links svg { width: 16px; height: 16px; }
.lang-bars {list-style: none; display: grid; gap: 12px; }
.lang-bars li { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; font-weight: 500; }
.bar { height: 8px; border-radius: 99px; background: var(--sand-200); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--plum-700); border-radius: inherit; }
.lang-level { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Feature / case study ---------- */
/* Photo keeps its own 4:3 proportions instead of being stretched to the text column's height */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--plum-900); color: #efe6ee; margin-top: var(--space-6);
}
.feature-media { padding: var(--space-5) 0 var(--space-5) var(--space-5); }
.feature-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) { .feature-media { padding: var(--space-4) var(--space-4) 0; } }
.feature-body { padding: var(--space-6); }
.feature-body h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: var(--space-3) 0; }
.feature-body .eyebrow { color: #cbb9c9; }
.feature .phases { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-4) 0; counter-reset: ph; }
.feature .phases li { position: relative; padding-left: 44px; }
.feature .phases li::before {
  counter-increment: ph; content: counter(ph); position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  border-radius: 50%; background: var(--coral-400); color: var(--plum-900); font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}
.feature .phases strong { color: var(--white); }
.feature-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); border-top: 1px solid rgba(255,255,255,.15); padding-top: var(--space-4); }
.feature-stats b { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; color: var(--coral-400); }
.feature-stats span { font-size: .88rem; line-height: 1.35; display: block; margin-top: 6px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-body { padding: var(--space-5) var(--space-4); }
}
@media (max-width: 480px) { .feature-stats { grid-template-columns: 1fr; } }

/* Article card */
.article-card {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center;
  padding: var(--space-5); border-radius: var(--radius-lg); background: var(--sand-100); margin-top: var(--space-6);
}
.article-card .quote-mark { font-family: var(--font-serif); font-size: 7rem; line-height: .6; color: var(--coral-400); }
.article-card h3 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 6px 0 10px; }
.article-card p { color: var(--muted); }
@media (max-width: 640px) { .article-card { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-title { font-size: clamp(2.8rem, 7vw, 5.5rem); color: var(--white); }
.contact-title .script { text-transform: none; color: var(--coral-400); font-size: .8em; }
.section-dark p { color: #d9cbd7; }
.services { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: var(--space-5) 0; }
.services li {
  padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  font-weight: 500; color: #f3e9f1; line-height: 1.35;
}
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }
.contact-card { background: var(--sand-50); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-5); }
.contact-card h3 { color: var(--plum-900); font-family: var(--font-display); text-transform: uppercase; font-size: 1.6rem; margin-bottom: var(--space-3); }
.contact-list { list-style: none; display: grid; gap: 6px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; min-height: 56px; transition: background var(--dur-fast) var(--ease);
  overflow-wrap: anywhere;
}
.contact-list a:hover { background: var(--sand-100); color: var(--plum-700); }
.contact-list .ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--plum-700); color: var(--white);
}
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-loc { display: flex; align-items: center; gap: 10px; margin-top: var(--space-3); color: var(--muted); font-size: .95rem; padding-left: 12px; }
.contact-loc svg { width: 18px; height: 18px; color: var(--coral-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-900); color: #bfaebd; border-top: 1px solid rgba(255,255,255,.1); padding: var(--space-5) 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.footer-brand img { width: 36px; height: 36px; background: var(--sand-50); border-radius: 10px; padding: 3px; }
.site-footer a { color: #e9dbe7; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(26, 12, 30, .94); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade var(--dur) var(--ease); }
.lightbox::backdrop { background: transparent; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-count { font-family: var(--font-display); letter-spacing: .1em; font-size: 1rem; color: #cbb9c9; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-cap { text-align: center; padding: 14px 16px 22px; font-size: 1rem; color: #efe6ee; min-height: 56px; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: var(--white); display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -60px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-cap { padding-inline: 72px; }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 8px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Article page ---------- */
.article-page { padding: var(--space-7) 0 var(--space-8); }
.article-wrap { width: min(100% - 32px, 740px); margin-inline: auto; }
.article-wrap h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: var(--space-3) 0; }
.article-wrap .subtitle { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.article-wrap .byline { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: var(--space-4) 0; margin: var(--space-4) 0 var(--space-5); border-block: 1px solid var(--line); font-weight: 500; }
.article-wrap p { font-size: 1.15rem; line-height: 1.75; }
.article-wrap .equation { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; color: var(--plum-700); padding-left: var(--space-4); border-left: 3px solid var(--coral-400); line-height: 1.6; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--plum-700); }
.lang-note { background: var(--sand-100); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .95rem; color: var(--muted); }
