:root {
  color-scheme: dark;
  --bg: #040706;
  --panel: #0b100d;
  --panel-2: #101813;
  --panel-3: #17140d;
  --ink: #f7f4ed;
  --soft: #d9d4c9;
  --muted: #9faaa4;
  --line: rgba(247, 244, 237, 0.13);
  --line-strong: rgba(247, 244, 237, 0.2);
  --accent: #88dcaf;
  --accent-2: #55b786;
  --gold: #d8af65;
  --shadow: rgba(0, 0, 0, 0.34);
  --shadow-strong: rgba(0, 0, 0, 0.48);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.62; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
a:hover { color: #b8f0d0; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 99px; }
body.is-loading { overflow: hidden; }
.page-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; gap: 18px; align-content: center; padding: 24px; background: rgba(4, 7, 6, 0.96); color: var(--ink); opacity: 1; visibility: visible; transition: opacity .42s ease, visibility .42s ease; animation: loader-failsafe .42s ease 1.8s forwards; }
.page-loader::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(136,220,175,.05), transparent 48%, rgba(216,175,101,.04)); pointer-events: none; }
.loader-mark { position: relative; width: 74px; height: 74px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.03); box-shadow: 0 18px 44px var(--shadow-strong), inset 0 1px 0 rgba(255,255,255,.06); }
.loader-mark::before { content: ""; position: absolute; inset: 9px; border: 2px solid rgba(247,244,237,.12); border-top-color: var(--accent); border-radius: 99px; animation: loader-spin .9s linear infinite; }
.loader-mark span { position: absolute; inset: 27px; border-radius: 99px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 24px rgba(136,220,175,.28); }
.page-loader p { position: relative; margin: 0; color: var(--soft); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
body.is-ready .page-loader { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes loader-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.site-header, main, .footer { transition: opacity .42s ease; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1), border-color .18s ease, box-shadow .18s ease; transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.8,.2,1), border-color .18s ease, box-shadow .18s ease; transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal-scale.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.hero .eyebrow, .hero h1, .hero .lede, .hero .actions, .hero .facts { animation: hero-rise .78s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 { animation-delay: .08s; }
.hero .lede { animation-delay: .16s; }
.hero .actions { animation-delay: .24s; }
.hero .facts { animation-delay: .34s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.wrap { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(4, 7, 6, 0.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 850; line-height: 1.1; text-decoration: none; letter-spacing: 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; font-size: 13px; font-weight: 750; }
.nav-links a { color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: 99px; padding: 8px 11px; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.045); border-color: var(--line); }
.hero { min-height: calc(100vh - 72px); display: flex; align-items: center; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(4,7,6,.99) 0%, rgba(4,7,6,.94) 45%, rgba(4,7,6,.62) 76%, rgba(4,7,6,.88) 100%), url("/assets/mariano-jose-crespo-gonzalez-profile-photo.jpg") right center / auto 86% no-repeat, #040706; }
.hero-inner { max-width: 1000px; padding: 72px 0 62px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; }
h1 { margin: 0; max-width: 900px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(44px, 7vw, 86px); line-height: .98; letter-spacing: 0; text-wrap: balance; }
main > section:first-child:not(.hero) h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.02; }
.lede { max-width: 760px; color: var(--soft); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; margin: 20px 0 24px; text-wrap: pretty; }
.lede strong { color: var(--ink); }
.actions, .socials { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 1000px; }
.button, .pill { min-height: 46px; border-radius: 99px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: rgba(12,18,14,.76); color: var(--ink); text-decoration: none; font-weight: 820; line-height: 1.15; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.hero .button { width: 100%; min-width: 0; min-height: 46px; padding: 9px 8px; font-size: clamp(11px, 1.05vw, 13px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.button:hover, .pill:hover { transform: translateY(-1px); background: rgba(18,27,21,.92); border-color: rgba(136,220,175,.38); color: var(--ink); }
.button.primary { background: rgba(12,18,14,.76); color: var(--ink); border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.button.primary:hover { background: rgba(18,27,21,.92); border-color: rgba(136,220,175,.38); color: var(--ink); }
.pill { color: var(--soft); font-weight: 740; min-height: 38px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 24px; max-width: 1000px; }
.hero .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 100%; }
.fact, .card, .source, .large-panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--panel); border-radius: 8px; box-shadow: 0 14px 34px var(--shadow); }
.fact { min-height: 96px; padding: 15px; }
.hero .fact { min-width: 0; min-height: 116px; padding: 14px 13px; }
.fact span, .kicker { display: block; color: var(--gold); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.fact strong { display: block; font-size: 16px; line-height: 1.3; }
.hero .fact span { font-size: 10px; letter-spacing: .08em; }
.hero .fact strong { font-size: clamp(13px, 1.25vw, 15px); line-height: 1.28; overflow-wrap: anywhere; }
section { padding: 62px 0; border-bottom: 1px solid var(--line); }
main > section:last-child { border-bottom: 0; }
.band-dark { background: #060a08; }
.band-warm { background: linear-gradient(180deg, rgba(23,20,13,.72), rgba(4,7,6,0)); }
.section-top { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; margin-bottom: 24px; }
h2 { margin: 0; max-width: 430px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: 0; text-wrap: nowrap; }
h3 { margin: 0 0 12px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 19px; line-height: 1.25; letter-spacing: 0; text-wrap: balance; }
p { margin: 0 0 14px; }
.section-copy { max-width: 900px; color: var(--soft); font-size: 17px; line-height: 1.68; text-wrap: pretty; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.priority-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: stretch; }
.card { min-height: 160px; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; }
.card:hover, .source:hover, .large-panel:hover, .event:hover, .fact:hover { border-color: rgba(247,244,237,.22); box-shadow: 0 18px 44px var(--shadow-strong); }
.card p, .source span, .note { color: var(--muted); }
.card a { display: inline-block; margin-top: auto; padding-top: 14px; font-weight: 760; }
.large-panel { padding: 22px; background: linear-gradient(180deg, rgba(136,220,175,.045), rgba(255,255,255,.012)), var(--panel-2); }
.large-panel.warm { background: linear-gradient(180deg, rgba(216,175,101,.06), rgba(255,255,255,.012)), var(--panel-3); }
.quote { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(22px, 3vw, 35px); line-height: 1.18; font-weight: 650; color: var(--ink); letter-spacing: 0; text-wrap: balance; }
.quote em { color: var(--accent); font-style: normal; }
.mini-list { display: grid; gap: 10px; margin-top: 16px; }
.mini-list div { border-top: 1px solid var(--line); padding-top: 12px; color: var(--soft); }
.mini-list strong { color: var(--ink); }
.credential-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.credential-strip span { border: 1px solid var(--line); border-radius: 99px; color: var(--soft); padding: 8px 12px; background: rgba(255,255,255,.035); font-weight: 760; line-height: 1.2; }
.timeline { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 155px minmax(0,1fr); gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: var(--panel); box-shadow: 0 12px 30px var(--shadow); }
.event time { color: var(--gold); font-weight: 900; }
.event p { color: var(--soft); margin: 0; }
.source-list { display: grid; gap: 10px; }
.source { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; }
.source strong { display: block; }
.source a { flex: 0 0 auto; font-weight: 780; }
.machine-note { border-left: 4px solid var(--accent); background: #0d1812; border-radius: 0 8px 8px 0; padding: 15px 17px; color: var(--soft); margin-top: 14px; }
.doc-frame { border: 1px solid var(--line); border-radius: 8px; background: #111; padding: 12px; box-shadow: 0 14px 34px var(--shadow); overflow: hidden; }
.doc-frame img { width: 100%; display: block; border-radius: 5px; }
.footer { padding: 12px 0 16px; color: var(--muted); font-size: 12px; }
.footer-grid { min-height: 30px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.footer-brand, .footer-source { color: rgba(217,212,201,.76); text-decoration: none; }
.footer-brand { font-weight: 780; }
.footer-source { font-weight: 720; }
.footer-brand:hover, .footer-source:hover { color: var(--ink); }
@media (max-width: 920px) {
  .hero { min-height: auto; background: linear-gradient(180deg, rgba(4,7,6,.4) 0%, rgba(4,7,6,.98) 60%), url("/assets/mariano-jose-crespo-gonzalez-profile-photo.jpg") center top / min(82%, 460px) auto no-repeat, #040706; }
  .hero-inner { padding-top: min(58vw, 320px); padding-bottom: 48px; }
  .hero .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .grid, .grid.two, .grid.four, .priority-grid, .section-top { grid-template-columns: 1fr; }
  .hero .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event { grid-template-columns: 1fr; gap: 6px; }
  .nav { align-items: flex-start; flex-direction: column; padding: 16px 0; gap: 14px; }
  .nav-links { justify-content: flex-start; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 1120px) {
  h2 { max-width: none; text-wrap: balance; }
}
@media (min-width: 921px) and (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .card:nth-last-child(1):nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .site-header { position: static; }
  section { padding: 42px 0; }
  .hero-inner { padding-bottom: 40px; }
  h1 { font-size: clamp(39px, 12vw, 50px); }
  main > section:first-child:not(.hero) h1 { font-size: clamp(36px, 11vw, 48px); }
  h2 { font-size: clamp(25px, 7vw, 34px); text-wrap: balance; }
  .actions { flex-direction: column; }
  .hero .actions { grid-template-columns: 1fr; }
  .hero .facts { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .card, .large-panel { padding: 16px; }
  .fact { min-height: auto; }
  .source { align-items: flex-start; flex-direction: column; }
  .nav-links { gap: 7px; }
  .nav-links a { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
}
