/* =========================================================
   Diego M. Macana Roa — sitio personal
   Paleta: tinta (negro azulado), marfil y oro.
   ========================================================= */

:root {
  --ink: #0A0D14;
  --ink-2: #0F131C;
  --ink-3: #171C28;
  --ivory: #F4EFE6;
  --paper: #FAF7F1;

  --gold: #C9A25A;
  --gold-hi: #E6C98E;
  --gold-lo: #9C7A3C;
  --bronze: #7A5A22;

  --text: #1A1D24;
  --text-2: #4E525C;
  --light: #ECE6DA;
  --light-2: #A9A497;

  --line-d: rgba(201, 162, 90, .22);
  --line-l: rgba(26, 29, 36, .12);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--light);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--ink); }

/* Cormorant usa numerales antiguos por defecto; forzamos los de caja alta */
h1, h2, h3, blockquote, .cred-k, .cap-n, .t-year {
  font-variant-numeric: lining-nums;
}

/* Textos corridos justificados (con división silábica para evitar huecos) */
p:where(:not(.eyebrow, .tag, .book-meta, .copy)),
.press-p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  /* solo se dividen palabras largas, y nunca dejando menos de 4 letras */
  hyphenate-limit-chars: 9 4 4;
  -webkit-hyphenate-limit-before: 4;
  -webkit-hyphenate-limit-after: 4;
}
/* nombres propios, marcas y citas no se dividen */
.nh, strong, em, cite, a,
.pull p, .quote-band p, .quote-line, .hero-lede {
  -webkit-hyphens: manual;
  hyphens: manual;
}
.dimensions p, .chart-note { text-align: left; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--gold); color: var(--ink);
  padding: 8px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía común ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: .8;
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  max-width: 60ch;
  color: var(--light-2);
}
.light .lede { color: var(--text-2); }

.prose p { max-width: 64ch; }
.prose a { color: var(--bronze); text-underline-offset: 3px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 1px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: #1C2230; }
.btn-ghost { border-color: var(--line-d); color: var(--light); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--bronze);
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Cabecera ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 13, 20, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-d);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-emblem {
  width: 48px; height: 48px; flex: none;
}
.brand-text { display: flex; flex-direction: column; gap: 7px; }
.brand-name {
  white-space: nowrap;
  font-family: var(--serif); font-weight: 600;
  font-size: 1.12rem; line-height: 1; letter-spacing: .26em; text-transform: uppercase;
  color: var(--light);
}
.brand-tag {
  display: flex; align-items: center; gap: 10px;
  font-size: .56rem; font-weight: 700; line-height: 1; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold);
}
.brand-tag::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.nav a {
  position: relative;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--light-2);
  transition: color .3s;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--light); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-cta {
  padding: 10px 18px; border: 1px solid var(--gold); color: var(--gold);
}
.nav .nav-cta:hover { background: var(--gold); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-d); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span {
  width: 18px; height: 1.5px; background: var(--gold);
  transition: transform .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(60% 70% at 85% 25%, rgba(201, 162, 90, .07), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(40, 56, 92, .22), transparent 70%),
    var(--ink);
  overflow: hidden;
}


.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: clamp(32px, 6vw, 96px);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.015em;
  margin-bottom: 30px;
}
.hero-title span { display: block; font-style: italic; font-weight: 500; color: var(--gold); }

.hero-lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.65; max-width: 34em;
  color: var(--light-2);
  margin-bottom: 38px;
}
.hero-lede strong { color: var(--light); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
}
.hero-portrait::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  border: 1px solid var(--gold); opacity: .55;
}
.hero-portrait img {
  position: relative;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%;
  filter: saturate(.95) contrast(1.03);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}

.credentials {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line-d);
}
.credentials li {
  padding: 26px 24px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.credentials li + li { padding-left: 24px; border-left: 1px solid var(--line-d); }
.cred-k {
  font-family: var(--serif); font-size: 1.65rem; font-weight: 600; line-height: 1.1;
  color: var(--gold-hi);
}
.cred-v { font-size: .9rem; line-height: 1.5; color: var(--light-2); }

/* ---------- Secciones ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section.dark { background: var(--ink); color: var(--light); }
.section.light { background: var(--ivory); color: var(--text); }
.section.light .eyebrow { color: var(--bronze); }
.section.light .section-title { color: var(--ink); }

.section-head { margin-bottom: clamp(44px, 6vw, 72px); }

/* ---------- Perfil ---------- */

.profile-grid {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(36px, 7vw, 110px); align-items: start;
}
.profile-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-photo img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%;
}
.profile-photo::after {
  content: ""; position: absolute; left: -16px; bottom: -16px; width: 45%; height: 45%;
  border-left: 1px solid var(--gold-lo); border-bottom: 1px solid var(--gold-lo);
  pointer-events: none;
}

.pull {
  margin: 40px 0;
  padding: 6px 0 6px 28px;
  border-left: 2px solid var(--gold);
}
.pull p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.3;
  margin-bottom: 12px; max-width: 30em;
}
.pull cite {
  font-style: normal; font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--bronze);
}
.pull cite em { font-style: normal; }
.pull-sm p { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }

.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 0; border-top: 1px solid var(--line-l);
}
.facts div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line-l); }
.facts div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-l); }
.facts dt {
  font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 4px;
}
.facts dd { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text); }

/* ---------- Anubis ---------- */

.anubis {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(201, 162, 90, .05), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, #070A10 100%);
}
.anubis-head {
  display: grid; grid-template-columns: 300px 1fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.anubis-logo {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1px solid var(--line-d);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.anubis .section-title .amp { font-style: italic; color: var(--gold); font-weight: 500; }
.anubis .lede { margin-bottom: 34px; }
.anubis .lede strong { color: var(--gold-hi); font-weight: 600; }

.dimensions {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-d);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.dimensions li { padding: 28px 22px; }
.dimensions li + li { border-left: 1px solid var(--line-d); }
.dimensions svg {
  width: 30px; height: 30px; margin-bottom: 18px;
  fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.dimensions h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; margin-bottom: 4px; }
.dimensions p { margin: 0; font-size: .88rem; color: var(--light-2); }

/* Montaje: tablero + gráficos superpuestos */
.montage {
  position: relative;
  margin-bottom: clamp(72px, 9vw, 120px);
}
.montage-dash {
  position: relative;
  width: 84%;
}
.montage-charts {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px;
  width: 90%; margin: -11% 0 0 auto;
}
.chart-card {
  display: flex; flex-direction: column;
  padding: 24px 26px 18px;
  background: linear-gradient(180deg, #111725, #0C111B);
  border: 1px solid var(--line-d);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .35);
}
.chart-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.chart-kicker {
  font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.chart-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; color: var(--light); }
.chart-sub { font-size: .78rem; color: var(--light-2); }

.chart { position: relative; height: 230px; }
.chart svg { display: block; overflow: visible; }
.chart .tick { font: 500 10.5px var(--sans); fill: #8D8A82; font-variant-numeric: tabular-nums; }
.chart .lbl { font: 700 11.5px var(--sans); fill: var(--light); }
.chart .bar { fill: #B08A3E; transition: fill .2s; }
.chart .bar.hl { fill: #D9BC7E; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 3;
  padding: 7px 10px; white-space: nowrap;
  background: #1B2232; border: 1px solid var(--line-d);
  font-size: .76rem; color: var(--light-2);
  transform: translate(-50%, calc(-100% - 10px));
  opacity: 0; transition: opacity .15s;
}
.chart-tip b { color: var(--light); font-weight: 700; margin-left: 6px; }
.chart-tip.on { opacity: 1; }

.chart-foot {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(201, 162, 90, .12);
  font-size: .7rem; color: #8D8A82;
}
.chart-data summary { cursor: pointer; color: var(--gold); list-style: none; white-space: nowrap; }
.chart-data summary::-webkit-details-marker { display: none; }
.chart-data[open] summary { margin-bottom: 8px; }
.chart-table { max-height: 200px; overflow-y: auto; }
.chart-table table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: 3px 10px; text-align: right; color: var(--light-2); font-size: .74rem; }
.chart-table th { color: var(--light); font-weight: 600; position: sticky; top: 0; background: #0E131D; }

.hbars { display: flex; flex-direction: column; gap: 18px; margin: 10px 0 18px; }
.hbar { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; }
.hbar-k { font-size: .8rem; font-weight: 600; color: var(--light-2); font-variant-numeric: tabular-nums; }
.hbar-track { display: flex; align-items: center; gap: 10px; }
.hbar-fill {
  height: 20px; width: calc((100% - 70px) * var(--v));
  min-width: 4px;
  background: #B08A3E; border-radius: 0 4px 4px 0;
}
.hbar:hover .hbar-fill { background: #D9BC7E; }
.hbar-v { font-size: .86rem; font-weight: 700; color: var(--light); white-space: nowrap; }
.chart-note { font-size: .82rem; color: var(--light-2); margin: 0 0 14px; }

.browser {
  border: 1px solid var(--line-d);
  background: var(--ink-3);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border-bottom: 1px solid var(--line-d);
  font-size: .72rem; letter-spacing: .08em; color: var(--light-2);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A3142; }
.browser-bar span { margin-left: 12px; }
.phone {
  position: absolute; right: -15%; top: -7%;
  width: 21%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .8)) drop-shadow(0 0 1px rgba(201, 162, 90, .4));
}

.capabilities {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-d); border: 1px solid var(--line-d);
}
.capabilities article {
  background: #080B11;
  padding: clamp(28px, 3vw, 40px);
  transition: background .4s var(--ease);
}
.capabilities article:hover { background: var(--ink-3); }
.cap-n {
  display: block; margin-bottom: 18px;
  font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: .1em;
  color: var(--gold);
}
.capabilities h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; margin-bottom: 10px; }
.capabilities p { margin: 0; font-size: .94rem; color: var(--light-2); }

/* ---------- Perspectivas ---------- */

.persp-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 90px); align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.persp-head .section-title { margin-bottom: 0; }
.persp-head .lede { margin: 0; }

.report {
  display: grid; grid-template-columns: 1.08fr .92fr;
  background: var(--paper); border: 1px solid var(--line-l);
  box-shadow: 0 30px 70px -40px rgba(10, 13, 20, .25);
}
.report-body { padding: clamp(28px, 4vw, 52px); border-right: 1px solid var(--line-l); }
.report-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 18px;
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze);
  text-align: left !important;
}
.report-meta span + span { color: var(--text-2); }
.report-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.1;
  color: var(--ink); margin-bottom: 16px;
}
.report-dek { font-size: 1.05rem; color: var(--text); margin-bottom: 26px; }
.report-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 0 26px; border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l);
}
.report-stats div { padding: 16px 14px 16px 0; display: flex; flex-direction: column; gap: 4px; }
.report-stats dd { order: -1; }
.report-stats div + div { padding-left: 16px; border-left: 1px solid var(--line-l); }
.report-stats dd { margin: 0; font-size: 1.9rem; font-weight: 600; line-height: 1; color: var(--ink); white-space: nowrap; }
.report-stats dd small {
  display: block; margin-top: 6px;
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze);
}
.report-stats dt { font-size: .74rem; line-height: 1.35; color: var(--text-2); }
.report-text p { font-size: .96rem; color: var(--text-2); }
.report-text p:last-child { margin-bottom: 0; }
.report-text strong { color: var(--ink); }
.report-keys {
  grid-column: 1 / -1;
  counter-reset: k;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-l);
  background: var(--paper);
}
.report-keys li {
  counter-increment: k;
  display: grid; grid-template-columns: 30px 1fr; gap: 12px;
  padding: 26px clamp(20px, 3vw, 36px);
  font-size: .92rem; line-height: 1.6; color: var(--text-2);
  text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 9 4 4;
}
.report-keys li::before {
  content: counter(k, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.4; color: var(--bronze);
  font-variant-numeric: lining-nums;
}
.report-keys li + li { border-left: 1px solid var(--line-l); }
.report-keys b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; text-align: left; }

.report-side { display: flex; flex-direction: column; background: #FCFBF8; }
.report-download {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 18px; align-items: center;
  padding: 20px clamp(24px, 3.5vw, 44px);
  border-top: 1px solid var(--line-l);
  text-decoration: none;
  transition: background .3s var(--ease);
}
.report-download:hover { background: var(--ivory); }
.report-download img { width: 78px; box-shadow: 0 10px 24px -10px rgba(10, 13, 20, .45); }
.rd-text { display: flex; flex-direction: column; gap: 2px; }
.rd-text small { font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.rd-text strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.rd-text span { font-size: .78rem; color: var(--text-2); }
.rd-arrow {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--ink); color: var(--ink); font-size: 1.1rem;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.report-download:hover .rd-arrow { background: var(--ink); color: var(--ivory); }

.report-chart { flex: 1 1 auto; display: flex; flex-direction: column; padding: clamp(24px, 3.5vw, 44px); }
.rc-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.rc-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: var(--ink); }
.rc-sub { font-size: .78rem; color: var(--text-2); }
.legend { display: flex; gap: 18px; margin-bottom: 8px; font-size: .78rem; font-weight: 600; color: var(--text); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ""; width: 18px; height: 2px; border-radius: 2px; }
.lg::before { height: 10px; width: 10px; border-radius: 2px; }
.lg-up::before { background: #A07A2E; }
.lg-down::before { background: #3F6CA8; }
.lg-tot::before { background: #1F2633; }
.lg-ref::before { background: #8A8F9C; }
.legend { flex-wrap: wrap; row-gap: 6px; }
.chart-light { height: auto; min-height: 300px; flex: 1 1 auto; }
.chart-light .tick { fill: #77736A; }
.chart-light .lbl { fill: var(--ink); }
.chart-light .chart-tip { background: #FFFFFF; border-color: var(--line-l); color: var(--text-2); box-shadow: 0 8px 24px -10px rgba(10, 13, 20, .3); }
.chart-light .chart-tip b { color: var(--ink); }
.report-chart .chart-foot { border-top-color: var(--line-l); color: #77736A; }
.report-chart .chart-data summary { color: var(--bronze); }
.report-chart .chart-table th { background: #FCFBF8; color: var(--ink); }
.report-chart .chart-table td { color: var(--text-2); }

.subscribe {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 24px; padding: 26px clamp(24px, 4vw, 52px);
  border: 1px solid var(--line-l); background: var(--ivory);
}
.subscribe h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
.subscribe p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* ---------- Círculo Huerta de Soto ---------- */

.circulo {
  overflow: hidden;
  color: var(--light);
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(128, 24, 40, .42), transparent 62%),
    radial-gradient(55% 45% at 0% 100%, rgba(128, 24, 40, .22), transparent 70%),
    radial-gradient(40% 30% at 50% 38%, rgba(201, 162, 90, .07), transparent 70%),
    #0D090E;
  border-top: 1px solid var(--line-d);
}
.circulo-rings {
  position: absolute; top: -170px; right: -190px;
  width: 680px; height: 680px; pointer-events: none;
  fill: none; stroke: var(--gold); stroke-width: .8; opacity: .12;
}
.circulo-rings circle:nth-child(2) { opacity: .75; }
.circulo-rings circle:nth-child(3) { opacity: .5; }
.circulo-rings circle:nth-child(4) { opacity: .3; }
.circulo .wrap { position: relative; }

.circulo-head { text-align: center; max-width: 900px; margin: 0 auto; }
.circulo-head .eyebrow { justify-content: center; }
.circulo-head .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .8; }
.circulo-crest {
  position: relative;
  width: clamp(200px, 21vw, 270px);
  margin: 0 auto clamp(40px, 5vw, 56px);
}
.circulo-crest::before {
  content: ""; position: absolute; inset: -14px;
  border: 1px solid var(--gold); opacity: .55; pointer-events: none;
}
.circulo-crest::after {
  content: ""; position: absolute; left: 50%; bottom: -14px;
  width: 9px; height: 9px; background: var(--gold);
  transform: translate(-50%, 50%) rotate(45deg);
}
.circulo-crest img {
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(201, 162, 90, .35),
    0 40px 90px -25px rgba(0, 0, 0, .9);
}
.circulo-motto {
  margin: -10px 0 26px;
  font-family: var(--serif); font-size: clamp(.95rem, 1.3vw, 1.1rem); font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  text-align: center; color: var(--gold-hi);
}
.circulo-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(3rem, 8.2vw, 7.2rem); line-height: .95; letter-spacing: -.015em;
  margin-bottom: 28px;
}
.circulo-title span { display: block; font-style: italic; font-weight: 500; color: var(--gold); }
.circulo-lede {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--light-2);
  max-width: 40em; margin: 0 auto;
  text-align: center;
}

.manifesto {
  position: relative;
  max-width: 980px; margin: clamp(56px, 7vw, 96px) auto;
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
}
.manifesto::before, .manifesto::after {
  content: ""; position: absolute; left: 50%;
  width: 9px; height: 9px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.manifesto::before { top: 0; }
.manifesto::after { top: 100%; }
.manifesto p {
  margin: 0; text-wrap: balance;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.25; color: var(--light);
  text-align: center;
  -webkit-hyphens: manual; hyphens: manual;
}

.circulo-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px); align-items: start;
  margin-bottom: clamp(64px, 8vw, 110px);
}
.circulo-grid .prose p { color: var(--light-2); }
.circulo-pillars { display: grid; gap: 14px; }
.circulo-pillars li {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--line-d);
  background: linear-gradient(90deg, rgba(128, 24, 40, .16), rgba(128, 24, 40, 0) 70%);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.circulo-pillars li:hover { border-color: rgba(201, 162, 90, .55); transform: translateX(4px); }
.cp-n {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-hi);
}
.circulo-pillars h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; margin: 2px 0 6px; }
.circulo-pillars p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--light-2); }

.aval {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px); align-items: center;
}
.aval-shot { position: relative; margin: 18px 0 0 18px; }
.aval-shot::before {
  content: ""; position: absolute; inset: -18px 18px 46px -18px;
  border: 1px solid var(--gold); opacity: .55; pointer-events: none;
}
.aval-shot img {
  position: relative; width: 100%;
  border-radius: 6px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
}
.aval-shot figcaption {
  margin-top: 16px;
  font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--light-2);
}
.aval-quote { position: relative; margin: 0 0 34px; padding-top: 34px; }
.aval-quote::before {
  content: "“"; position: absolute; top: -26px; left: -6px;
  font-family: var(--serif); font-size: 7rem; line-height: 1; color: var(--gold); opacity: .55;
}
.aval-quote p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 1.7vw, 1.45rem); line-height: 1.45; color: var(--light);
  margin-bottom: 22px;
  -webkit-hyphens: manual; hyphens: manual;
}
.aval-quote cite {
  display: flex; flex-direction: column; gap: 4px;
  font-style: normal; font-size: .8rem; color: var(--light-2);
}
.aval-quote cite strong {
  font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Obra ---------- */

.book-feature {
  display: grid; grid-template-columns: .82fr 1.18fr;
  gap: clamp(36px, 7vw, 100px); align-items: start;
  padding-bottom: clamp(64px, 8vw, 110px);
  margin-bottom: clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--line-l);
}
.book-cover { position: relative; }
.book-cover img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .04) inset,
    0 50px 80px -30px rgba(10, 13, 20, .55),
    0 18px 30px -18px rgba(10, 13, 20, .5);
}
.book-feature .book-cover { position: sticky; top: calc(var(--header-h) + 24px); }

.tag {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 12px; border: 1px solid var(--gold-lo);
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze);
}
.book-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1;
  color: var(--ink); margin-bottom: 18px;
}
.book-title span {
  display: block; margin-top: 10px;
  font-style: italic; font-weight: 500; font-size: .52em; line-height: 1.2;
  color: var(--bronze);
}
.book-title.sm { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.book-meta {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 28px;
}

.chapters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 8px 0 8px;
}
.chapters li {
  padding: 7px 14px;
  background: var(--paper); border: 1px solid var(--line-l);
  font-size: .82rem; color: var(--text);
}

.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.book-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start;
}
.book-card p { font-size: .98rem; color: var(--text-2); }
.book-card .tag { font-size: .68rem; color: var(--bronze); }
.quote-line {
  font-family: var(--serif); font-style: italic;
  font-size: 1.2rem !important; line-height: 1.4;
  color: var(--ink) !important;
  padding-top: 14px; border-top: 1px solid var(--line-l);
}

/* ---------- Conferencias ---------- */

.talks-grid {
  display: grid; grid-template-columns: .78fr 1.22fr;
  gap: clamp(36px, 7vw, 100px); align-items: start;
}
.talks-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.talks-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }

.talks-grid .prose { margin-bottom: 8px; }
.talks-grid .prose p { color: var(--light-2); }

.pillars {
  margin: 36px 0 32px;
  border: 1px solid var(--line-d);
  background: linear-gradient(135deg, rgba(201, 162, 90, .06), rgba(201, 162, 90, 0) 60%);
}
.pillars article {
  display: grid; grid-template-columns: 200px 1fr; grid-template-rows: auto 1fr;
  column-gap: 28px; align-items: start;
  padding: 26px 28px;
}
.pillars article + article { border-top: 1px solid var(--line-d); }
.pillar-n {
  display: block; margin-bottom: 6px;
  font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: .14em; color: var(--gold);
}
.pillars h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; grid-column: 1; }
.pillars .pillar-n { grid-column: 1; }
.pillars p { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: .95rem; line-height: 1.65; color: var(--light-2); }

.audiences {
  padding: 22px 0; margin-bottom: 36px;
  border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d);
}
.aud-k {
  display: block; margin-bottom: 14px;
  font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.audiences ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.audiences li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.15rem; color: var(--light);
}
.audiences li::before {
  content: ""; width: 6px; height: 6px; flex: none;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------- Trayectoria ---------- */

.timeline-grid {
  display: grid; grid-template-columns: 1.35fr .65fr;
  gap: clamp(36px, 6vw, 90px); align-items: start;
}
.timeline-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.timeline-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; }
.timeline-photo figcaption {
  margin-top: 14px;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze);
}

.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 150px; top: 8px; bottom: 48px; width: 1px;
  background: linear-gradient(180deg, var(--gold-lo), rgba(156, 122, 60, .2));
}
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 150px 1fr; gap: 44px;
  padding-bottom: 40px;
}
.timeline li::after {
  content: ""; position: absolute; left: 150px; top: 12px;
  width: 9px; height: 9px; background: var(--ivory); border: 1px solid var(--gold-lo);
  transform: translateX(-50%) rotate(45deg);
}
.timeline li.is-now::after { background: var(--gold); border-color: var(--gold); }
.t-year {
  font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.2;
  color: var(--bronze); text-align: right; padding-right: 22px;
}
.timeline h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--ink); margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--text-2); max-width: 56ch; }

/* ---------- Galería ---------- */

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery figure {
  position: relative; aspect-ratio: 4 / 5;
  overflow: hidden; cursor: zoom-in; background: var(--ink-3);
}
.gallery .g-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  transition: transform .9s var(--ease), filter .6s var(--ease);
  filter: saturate(.92);
}
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 5px;
  padding: 56px 16px 14px;
  background: linear-gradient(rgba(5, 7, 11, 0), rgba(5, 7, 11, .62) 40%, rgba(5, 7, 11, .94));
}
.g-k {
  font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-hi);
}
.g-n {
  font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.2;
  color: #FFFFFF;
}
.g-feature figcaption { padding: 90px 24px 22px; }
.g-feature .g-k { font-size: .68rem; }
.g-feature .g-n { font-size: 1.6rem; }
.gallery figure:hover img { transform: scale(1.04); filter: saturate(1.05); }

/* ---------- Prensa ---------- */

.press-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); }
.press-grid .section-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.columns-list { border-top: 1px solid var(--line-l); }
.columns-list li {
  padding: 18px 0; border-bottom: 1px solid var(--line-l);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.columns-list span {
  display: block; margin-bottom: 4px;
  font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze);
}
.press-card {
  display: block; text-decoration: none;
  padding: 26px 28px; margin-bottom: 16px;
  background: var(--paper); border: 1px solid var(--line-l);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.press-card:hover { border-color: var(--gold-lo); transform: translateY(-2px); }
.press-src, .press-h, .press-p { display: block; }
.press-src {
  font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 8px;
}
.press-h { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; color: var(--ink); margin-bottom: 8px; }
.press-p { font-size: .92rem; color: var(--text-2); }
.press-intro { color: var(--text-2); margin-bottom: 22px; max-width: 52ch; }

/* ---------- Cita ---------- */

.quote-band {
  padding: clamp(80px, 10vw, 140px) 0;
  background:
    radial-gradient(40% 70% at 50% 50%, rgba(201, 162, 90, .07), transparent 70%),
    linear-gradient(180deg, #0C1220, var(--ink));
  border-block: 1px solid var(--line-d);
  text-align: center;
}
.quote-band blockquote { margin: 0 auto; max-width: 980px; }
.quote-band p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.25;
  color: var(--light); margin-bottom: 28px;
  text-align-last: center;
}
.quote-band cite {
  font-style: normal; font-size: .74rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.quote-band cite em { font-style: normal; }

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: clamp(40px, 7vw, 100px); align-items: center;
}
.contact .section-title { font-size: clamp(2.8rem, 6vw, 5rem); }
.contact-links { display: grid; gap: 1px; margin-top: 40px; background: var(--line-d); border: 1px solid var(--line-d); }
.contact-link {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px; background: var(--ink);
  text-decoration: none;
  transition: background .3s var(--ease);
}
.contact-link:hover { background: var(--ink-3); }
.contact-link svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact-link span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: break-word; font-size: 1.05rem; color: var(--light); }
.contact-email { display: block !important; }
.contact-email small { display: block; }
.contact-link small {
  font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--light-2);
}
.contact-link::after { content: "→"; margin-left: auto; color: var(--gold); transition: transform .3s var(--ease); }
.contact-link:hover::after { transform: translateX(4px); }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }

/* ---------- Pie ---------- */

.site-footer { background: #06080C; border-top: 1px solid var(--line-d); padding: 48px 0; }
.footer-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
}
.footer-inner p { margin: 0; font-size: .84rem; color: var(--light-2); line-height: 1.6; }
.footer-inner .copy { text-align: right; }

/* ---------- Visor ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  background: rgba(5, 7, 11, .95);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; object-fit: contain; }
.lightbox figcaption {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi);
  text-align: center;
}
.lightbox button {
  background: none; border: 1px solid var(--line-d); color: var(--gold);
  width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer;
  font-family: var(--serif);
  transition: background .3s, color .3s;
}
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lb-close { position: absolute; top: 20px; right: 20px; }

/* ---------- Animación de entrada ---------- */

.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(10, 13, 20, .98);
    border-bottom: 1px solid var(--line-d);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid rgba(201, 162, 90, .1); font-size: .82rem; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--gold); }
  .site-header.menu-open { background: rgba(10, 13, 20, .98); }
}

@media (max-width: 1100px) {
  .dimensions { grid-template-columns: repeat(3, 1fr); }
  .dimensions li:nth-child(4) { border-left: 0; }
  .dimensions li:nth-child(n+4) { border-top: 1px solid var(--line-d); }
  .book-card { grid-template-columns: 1fr; }
  .book-card .book-cover { max-width: 240px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }


  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; width: min(100% - 18px, 420px); order: -1; margin-left: 18px; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .credentials li:nth-child(3) { padding-left: 0; border-left: 0; }
  .credentials li:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line-d); }

  .profile-grid, .talks-grid, .book-feature, .press-grid, .contact-grid, .timeline-grid,
  .circulo-grid, .aval, .persp-head, .report { grid-template-columns: 1fr; }
  .report-body { border-right: 0; border-bottom: 1px solid var(--line-l); }
  .report-keys { grid-template-columns: 1fr; }
  .report-keys li + li { border-left: 0; border-top: 1px solid var(--line-l); }
  .circulo-rings { width: 460px; height: 460px; top: -120px; right: -170px; }
  .profile-photo, .talks-photo, .book-feature .book-cover, .timeline-photo { position: relative; top: 0; }
  .timeline-photo { max-width: 420px; }
  .profile-photo { max-width: 460px; margin-left: 16px; }
  .talks-photo { max-width: 520px; }
  .book-feature .book-cover { max-width: 340px; }
  .contact-photo { display: none; }

  .anubis-head { grid-template-columns: 1fr; }
  .anubis-logo { max-width: 240px; }
  .montage-dash { width: 100%; }
  .phone { right: -1%; top: -8%; width: 20%; }
  .montage-charts { grid-template-columns: 1fr; width: 100%; margin-top: 24px; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 200px 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-inner .copy { text-align: left; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { gap: 12px; }
  .brand-emblem { width: 40px; height: 40px; }
  .brand-name { font-size: .88rem; letter-spacing: .18em; }
  .brand-tag { font-size: .5rem; letter-spacing: .32em; gap: 8px; }
  .brand-tag::before { width: 14px; }
  .contact-email { font-size: .92rem !important; }

  .hero-actions .btn { flex: 1 1 100%; }
  .credentials { grid-template-columns: 1fr; }
  .credentials li, .credentials li + li { padding: 20px 0 0; border-left: 0; }
  .credentials li + li { margin-top: 20px; border-top: 1px solid var(--line-d); }

  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(even) { padding-left: 0; border-left: 0; }

  .dimensions { grid-template-columns: 1fr 1fr; }
  .dimensions li { border-left: 0 !important; border-top: 1px solid var(--line-d); }
  .dimensions li:nth-child(even) { border-left: 1px solid var(--line-d) !important; }
  .dimensions li:nth-child(-n+2) { border-top: 0; }
  .dimensions li:last-child { grid-column: 1 / -1; border-left: 0 !important; }

  .phone { position: relative; right: auto; top: auto; width: 42%; margin: -14% 4% 0 auto; }
  .browser-bar span { display: none; }
  .chart-card { padding: 20px 16px 14px; }
  .chart { height: 200px; }

  .capabilities { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 1fr; }
  .book-card .book-cover { max-width: 220px; }

  .circulo-pillars li { grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 16px; }
  .report-stats { grid-template-columns: 1fr; }
  .report-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-l); }
  .report-stats div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 12px 0; }
  .report-stats dd { order: 2; }
  .report-stats dd { font-size: 1.5rem; }
  .chart-light { min-height: 280px; height: 280px; flex: none; }
  .report-stats dd small { display: inline; margin: 0 0 0 6px; }
  .report-download { grid-template-columns: 60px 1fr auto; gap: 14px; }
  .report-download img { width: 60px; }
  .subscribe .btn { width: 100%; }
  .cp-n { width: 44px; height: 44px; font-size: 1rem; }
  .aval-shot { margin: 12px 0 0 12px; }
  .aval-shot::before { inset: -12px 12px 46px -12px; }
  .circulo-head .eyebrow::before, .circulo-head .eyebrow::after { width: 20px; }
  .pillars article { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .pillars p { grid-column: 1; grid-row: auto; }
  .audiences li { font-size: 1.05rem; }

  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 32px; padding-bottom: 32px; }
  .timeline li::after { left: 5px; top: 10px; }
  .t-year { text-align: left; font-size: 1.3rem; padding-right: 0; }

  .gallery { gap: 8px; }
  .gallery figcaption { padding: 40px 10px 9px; gap: 3px; }
  .gallery figcaption:has(.g-n) .g-k { display: none; }
  .g-k { font-size: .52rem; letter-spacing: .14em; }
  .g-n { font-size: .84rem; line-height: 1.15; }
  .g-feature figcaption { padding: 60px 14px 12px; }
  .g-feature .g-n { font-size: 1.1rem; }

  .pull { padding-left: 20px; }

  .lightbox { grid-template-columns: 1fr; padding: 64px 12px 80px; }
  .lb-prev, .lb-next { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
