:root {
  --ink: #17211e;
  --text: #30413c;
  --muted: #66776f;
  --paper: #fbfaf5;
  --white: #ffffff;
  --soft: #eef4ef;
  --line: #d8e2dc;
  --green: #176b4d;
  --teal: #0f7f7b;
  --coral: #c95d43;
  --gold: #d4a531;
  --plum: #6d3b63;
  --blue: #234f8f;
  --danger: #a53835;
  --shadow: 0 22px 52px rgba(23, 33, 30, 0.16);
  --shadow-deep: 0 36px 90px rgba(3, 8, 7, 0.32);
  --radius: 8px;
  --font-display: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--teal), var(--blue));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  font-size: 5.8rem;
}

h2 {
  font-size: 3.25rem;
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button,
.file-button,
.close-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.file-button:hover,
.close-view:hover {
  transform: translateY(-1px);
}

.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--teal));
  box-shadow: 0 12px 30px rgba(15, 127, 123, 0.2);
}

.light {
  color: var(--ink);
  background: var(--white);
}

.secondary,
.file-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.danger {
  color: var(--white);
  background: var(--danger);
}

.liquid-glass {
  background: rgba(0, 0, 0, 0.4);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.1) 80%,
    rgba(255, 255, 255, 0.3) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #cbd8d1;
  border-radius: var(--radius);
  background: #fffefa;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(212, 165, 49, 0.46);
  outline-offset: 2px;
}

body.intro-active {
  overflow-x: hidden;
  background: #030807;
}

.intro-scroll-space {
  display: none;
}

body.intro-active .intro-scroll-space {
  display: block;
  height: 620vh;
  background: #030807;
}

.scrolly-intro {
  --intro-progress: 0;
  --intro-x: 0;
  --intro-y: 0;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  color: var(--white);
  background: #030807;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.scrolly-intro.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.scrolly-intro.is-complete {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.intro-hud {
  position: absolute;
  z-index: 18;
  top: 18px;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.intro-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: inherit;
  text-decoration: none;
}

.intro-brand {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(3, 8, 7, 0.64);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.brand-emblem {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-weight: 700;
}

.intro-brand strong,
.intro-brand small,
.brand strong,
.brand small {
  display: block;
}

.intro-brand strong,
.brand strong {
  font-family: var(--font-display);
  line-height: 1;
}

.intro-brand small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.intro-skip,
.session-badge {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(3, 8, 7, 0.68);
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.scrolly-intro.is-login .intro-skip {
  opacity: 0;
  pointer-events: none;
}

.session-badge {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.intro-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 8, 7, 0.86), rgba(3, 8, 7, 0.2) 48%, rgba(3, 8, 7, 0.66)),
    #030807;
}

.intro-video,
.intro-video-bg,
.intro-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
}

.intro-video,
.intro-video-bg {
  opacity: 0;
  transition: opacity 420ms ease;
}

.intro-video-bg {
  z-index: 1;
  object-fit: cover;
  filter: blur(18px) brightness(0.6) saturate(1.18);
  transform: scale(1.1);
}

.intro-video {
  z-index: 2;
  object-fit: contain;
  filter: saturate(1.06) contrast(1.04);
}

.intro-art {
  z-index: 3;
  object-fit: cover;
  opacity: 0.96;
  transform: scale(calc(1.04 + var(--intro-progress) * 0.08)) translate3d(
    calc(var(--intro-x) * -18px),
    calc(var(--intro-progress) * -44px + var(--intro-y) * -14px),
    0
  );
  filter: saturate(1.08) contrast(1.02) brightness(0.9);
  transition: filter 260ms ease;
}

.scrolly-intro.video-ready .intro-video {
  opacity: calc(var(--intro-video-opacity, 1) * 0.1);
}

.scrolly-intro.video-ready .intro-video-bg {
  opacity: calc(var(--intro-video-bg-opacity, 0.72) * 0.16);
}

.intro-stage::before,
.intro-stage::after,
.intro-gridline {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-stage::before {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 34%, transparent 68%, rgba(0, 0, 0, 0.52)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 42%, rgba(0, 0, 0, 0.3));
}

.intro-stage::after {
  z-index: 5;
  background:
    linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, 0.12) 42%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
  opacity: 0.28;
  animation: introSweep 7s ease-in-out infinite;
}

.intro-particles {
  position: absolute;
  inset: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.75;
}

.intro-lens {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
}

.intro-lens span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 44px rgba(125, 220, 214, 0.18);
  transform: translate(-50%, -50%) scale(calc(0.7 + var(--intro-progress) * 0.46));
}

.intro-lens span:first-child {
  top: calc(48% + var(--intro-y) * 8%);
  left: calc(58% + var(--intro-x) * 8%);
  width: min(620px, 58vw);
  aspect-ratio: 1;
}

.intro-lens span:last-child {
  top: calc(58% + var(--intro-y) * 6%);
  left: calc(44% + var(--intro-x) * 5%);
  width: min(360px, 38vw);
  aspect-ratio: 1;
  border-color: rgba(212, 165, 49, 0.28);
}

.intro-gridline {
  z-index: 6;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 88px 100%;
  opacity: calc(0.1 + var(--intro-progress) * 0.2);
  transform: translateY(calc(var(--intro-progress) * -28px));
}

.story-cards {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.story-card {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 150px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(3, 8, 7, 0.56);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  font-weight: 700;
  opacity: 0;
  transform: translate(var(--card-x), var(--card-y)) translateY(24px);
}

.story-card.accent {
  border-left-color: var(--gold);
}

.story-card.warm {
  border-left-color: var(--coral);
}

.story-card.deep {
  border-left-color: var(--plum);
}

.logo-reveal {
  position: absolute;
  z-index: 12;
  top: 50%;
  left: 41.5%;
  display: grid;
  place-items: center;
  width: min(620px, 78vw);
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.9);
  pointer-events: none;
  filter: drop-shadow(0 32px 46px rgba(0, 0, 0, 0.56));
}

.logo-halo {
  position: absolute;
  inset: -14% -5%;
  border: 0;
  background: radial-gradient(
    62% 56% at 50% 46%,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.62) 56%,
    rgba(255, 255, 255, 0) 78%
  );
  filter: blur(14px);
}

.logo-reveal img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-reveal p {
  position: relative;
  margin-top: -8px;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.72);
}

.intro-copy {
  position: absolute;
  z-index: 16;
  left: 7vw;
  bottom: 18vh;
  width: min(620px, calc(100% - 42px));
  transition: opacity 260ms ease, transform 260ms ease;
}

.intro-copy h1 {
  color: var(--white);
  font-size: 4.8rem;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}

.intro-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.scrolly-intro.is-login .intro-copy {
  opacity: 0;
  transform: translateY(18px);
}

.login-panel {
  position: absolute;
  z-index: 18;
  right: 6vw;
  bottom: 8vh;
  display: grid;
  gap: 13px;
  width: min(430px, calc(100% - 36px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(3, 8, 7, 0.78);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(26px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.scrolly-intro.is-login .login-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.entry-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.login-panel img {
  justify-self: center;
  width: min(300px, 82%);
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--paper);
}

.login-panel h2 {
  color: var(--white);
  font-size: 2.45rem;
}

.login-panel label span,
.login-panel .consent-check span {
  color: rgba(255, 255, 255, 0.88);
}

.login-panel input {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.login-panel input::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.form-feedback {
  min-height: 22px;
  color: var(--coral);
  font-weight: 700;
}

.login-panel .form-feedback {
  color: #ffd783;
}

.intro-progress-panel {
  position: absolute;
  z-index: 17;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  grid-template-columns: minmax(90px, auto) 1fr minmax(58px, auto);
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.intro-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.intro-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--coral), var(--teal));
}

.chapter-rail {
  position: absolute;
  z-index: 18;
  top: 50%;
  right: 28px;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.chapter-rail span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 0 rgba(212, 165, 49, 0);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.chapter-rail span.is-active {
  background: var(--gold);
  transform: scale(1.38);
  box-shadow: 0 0 0 7px rgba(212, 165, 49, 0.18);
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 24px;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 8px 16px;
  border-radius: 12px;
  color: var(--white);
}

.site-header .brand,
.site-header .main-nav,
.site-header .nav-actions {
  position: relative;
  z-index: 1;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.site-header .brand strong {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.site-header .session-badge {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.main-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #d1d5db;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 24px;
  border-radius: 8px;
  color: #000;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #000;
  background: #f3f4f6;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 4;
  flex: 1;
  width: 100%;
  padding: 128px 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-copy h1 {
  max-width: 920px;
  color: var(--white);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.34);
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-18px);
  transition-property: opacity, transform;
  transition-duration: 500ms;
  transition-timing-function: ease;
}

.hero.is-animated .hero-char {
  opacity: 1;
  transform: translateX(0);
}

.hero-subtitle {
  max-width: 660px;
  margin-top: 16px;
  margin-bottom: 20px;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.55;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

[data-fade-delay] {
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease;
}

[data-fade-delay].is-visible {
  opacity: 1;
}

.hero-tag-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: 28px;
}

.hero-tag {
  position: relative;
  z-index: 1;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-actions,
.editor-actions,
.data-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 0;
}

.hero .button {
  min-height: 48px;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 500;
}

.hero .button.primary {
  color: #000;
  background: var(--white);
  box-shadow: none;
}

.hero .button.primary:hover,
.hero .button.primary:focus-visible {
  background: #f3f4f6;
}

.glass-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-button:hover,
.glass-button:focus-visible {
  color: #000;
  background: var(--white);
  border-color: var(--white);
}

.editorial-ticker {
  overflow: hidden;
  border-block: 1px solid rgba(216, 226, 220, 0.82);
  background: var(--ink);
}

.editorial-ticker div {
  display: flex;
  width: max-content;
  gap: 24px;
  padding: 13px 0;
  color: rgba(255, 255, 255, 0.82);
  animation: tickerMove 32s linear infinite;
}

.editorial-ticker span {
  position: relative;
  padding-left: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
}

.editorial-ticker span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.manifesto-section {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 165, 49, 0.16), transparent 30%),
    radial-gradient(circle at 82% 68%, rgba(15, 127, 123, 0.22), transparent 34%),
    var(--ink);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 42px;
  align-items: start;
}

.manifesto-grid h2,
.manifesto-section .eyebrow {
  color: var(--white);
}

.manifesto-copy {
  display: grid;
  gap: 22px;
}

.manifesto-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.manifesto-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.manifesto-points span {
  min-height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.section {
  scroll-margin-top: 88px;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0;
}

.metrics-band {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.metrics-grid article {
  min-height: 118px;
  padding: 20px;
  border-left: 5px solid var(--green);
  background: var(--soft);
}

.metrics-grid article:nth-child(2) {
  border-color: var(--coral);
}

.metrics-grid article:nth-child(3) {
  border-color: var(--blue);
}

.metrics-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.metrics-grid span {
  color: var(--muted);
}

.feature-section {
  background:
    linear-gradient(180deg, var(--paper), #edf4ef);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: center;
}

.feature-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--ink);
}

.feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  opacity: 0.86;
  transform: scale(1.05);
}

.feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(3, 8, 7, 0.76), transparent 54%),
    linear-gradient(90deg, rgba(3, 8, 7, 0.32), transparent 58%);
}

.issue-card {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(3, 8, 7, 0.64);
  backdrop-filter: blur(14px);
}

.issue-card span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.issue-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.feature-copy {
  display: grid;
  gap: 18px;
}

.feature-copy h2 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.feature-copy .article-meta {
  font-size: 0.92rem;
}

.feature-copy p:not(.eyebrow) {
  max-width: 640px;
  font-size: 1.08rem;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-muted {
  background: #f0f3ee;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.72fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.article-grid,
.news-grid {
  display: grid;
  gap: 18px;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card,
.edition-card,
.news-card,
.team-member,
.admin-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 33, 30, 0.06);
}

.article-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 420px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover,
.edition-card:hover,
.news-card:hover,
.team-member:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 127, 123, 0.36);
  box-shadow: 0 18px 42px rgba(23, 33, 30, 0.12);
}

.article-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.article-meta,
.edition-meta,
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.pill.published {
  color: var(--white);
  background: var(--green);
}

.pill.review {
  color: var(--ink);
  background: #f7df9c;
}

.pill.draft {
  color: var(--white);
  background: var(--blue);
}

.read-more {
  justify-self: start;
  margin-top: 6px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.submit-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(23, 33, 30, 0.98), rgba(23, 107, 77, 0.88)),
    #17211e;
}

.submit-section h2,
.submit-section .eyebrow,
.submit-section label span {
  color: var(--white);
}

.submit-section p {
  color: rgba(255, 255, 255, 0.82);
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: 36px;
  align-items: start;
}

.review-line {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.review-line span {
  display: block;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.submission-form,
.editor-form,
.panel-list {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fffdf8;
  box-shadow: 0 12px 36px rgba(23, 33, 30, 0.08);
}

.submission-form {
  display: grid;
  gap: 16px;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(3, 8, 7, 0.34);
}

.submission-preview {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(15, 127, 123, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(238, 244, 239, 0.96), rgba(255, 255, 255, 0.98));
}

.submission-preview span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.submission-preview strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.submission-preview p {
  color: var(--muted);
}

.mail-draft {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 127, 123, 0.25);
  border-radius: var(--radius);
  background: var(--soft);
}

.mail-draft strong {
  color: var(--ink);
}

.submission-form label span,
.editor-form label span {
  color: var(--ink);
}

.form-row {
  display: grid;
  gap: 14px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.consent-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 4px;
}

.consent-check span {
  color: var(--text);
  font-weight: 700;
}

.news-card,
.edition-card,
.team-member,
.admin-item {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.news-card {
  min-height: 250px;
  border-top: 5px solid var(--coral);
}

.news-card:nth-child(2) {
  border-top-color: var(--teal);
}

.news-card:nth-child(3) {
  border-top-color: var(--gold);
}

.news-date {
  color: var(--muted);
  font-weight: 700;
}

.diffusion-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(23, 33, 30, 0.98), rgba(35, 79, 143, 0.76)),
    var(--ink);
}

.diffusion-section h2,
.diffusion-section .eyebrow {
  color: var(--white);
}

.diffusion-section p {
  color: rgba(255, 255, 255, 0.82);
}

.diffusion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 40px;
  align-items: center;
}

.share-tool {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.share-tool label span {
  color: rgba(255, 255, 255, 0.92);
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.qr-showcase {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 380px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-deep);
  text-align: center;
}

.qr-preview {
  position: relative;
  width: min(230px, 70vw);
  aspect-ratio: 1;
  border: 14px solid var(--white);
  background:
    linear-gradient(90deg, var(--ink) 12px, transparent 12px) 0 0 / 36px 36px,
    linear-gradient(var(--ink) 12px, transparent 12px) 0 0 / 36px 36px,
    radial-gradient(circle at 24px 24px, var(--ink) 0 17px, transparent 18px) 0 0 / 76px 76px,
    var(--white);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.qr-preview span {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 10px solid var(--ink);
  background: var(--white);
}

.qr-preview span:nth-child(1) {
  top: 10px;
  left: 10px;
}

.qr-preview span:nth-child(2) {
  top: 10px;
  right: 10px;
}

.qr-preview span:nth-child(3) {
  bottom: 10px;
  left: 10px;
}

.qr-showcase strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2rem;
}

.edition-card {
  min-height: 260px;
}

.edition-card .month {
  color: var(--coral);
  font-weight: 700;
  text-transform: uppercase;
}

.edition-count {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.project-section {
  background: var(--paper);
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
}

.project-layout > div:first-child > p:not(.eyebrow) {
  margin-top: 16px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.timeline article {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.timeline strong {
  color: var(--green);
}

.team-list {
  display: grid;
  gap: 12px;
}

.team-member strong {
  display: block;
  color: var(--ink);
}

.team-member span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Insignia de fundador: mas especifica que la regla de arriba, que pinta de
   gris todos los span de la tarjeta. */
.team-member .team-badge {
  justify-self: start;
  padding: 3px 11px;
  border-radius: 999px;
  color: #0e1614;
  background: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-section {
  background: #f7f6ef;
}

.panel-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
  gap: 22px;
  align-items: start;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.panel-stats article {
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.panel-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.editor-form,
.panel-list {
  display: grid;
  gap: 16px;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.article-admin-list {
  display: grid;
  gap: 12px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.admin-item h4 {
  margin: 0;
  color: var(--ink);
}

.admin-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-actions .delete {
  color: var(--danger);
}

.parity-box {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.parity-box strong,
.parity-box span {
  display: block;
}

.parity-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

.meter {
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(23, 33, 30, 0.14);
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 200ms ease;
}

.article-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: auto;
  padding: 4vw;
  background: rgba(23, 33, 30, 0.72);
}

.article-view-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.close-view {
  margin-bottom: 22px;
  color: var(--ink);
  border-color: var(--line);
  background: var(--soft);
}

.article-detail h2 {
  margin: 10px 0 12px;
  font-size: 3.2rem;
}

.article-detail .detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.article-detail-body {
  display: grid;
  gap: 16px;
  color: var(--text);
  font-size: 1.04rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto) minmax(220px, auto);
  gap: 24px;
  align-items: center;
  padding: 34px 4vw;
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
}

.site-footer img {
  width: min(260px, 100%);
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--paper);
}

.site-footer address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.site-footer a,
.site-footer strong {
  color: var(--white);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.82, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.82, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes introSweep {
  0%,
  100% {
    transform: translateX(-7%);
    opacity: 0.2;
  }
  50% {
    transform: translateX(7%);
    opacity: 0.42;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(-1%, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(2%, -1.5%, 0);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotateX(66deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(66deg) rotateZ(360deg);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 768px) {
  .site-header {
    right: 48px;
    left: 48px;
  }

  .main-nav {
    display: flex;
  }

  .hero-content {
    padding-right: 48px;
    padding-bottom: 48px;
    padding-left: 48px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-tag {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .site-header {
    right: 64px;
    left: 64px;
  }

  .hero-content {
    padding-right: 64px;
    padding-bottom: 64px;
    padding-left: 64px;
  }

  .hero-copy h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.35fr);
    gap: 40px;
    align-items: end;
  }

  .hero-tag-wrap {
    justify-content: flex-end;
    margin-top: 0;
  }

  .hero-tag {
    font-size: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-copy h1 {
    font-size: 4.5rem;
  }
}

@media (max-width: 1020px) {
  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .section-heading,
  .submit-layout,
  .project-layout,
  .panel-layout,
  .manifesto-grid,
  .feature-layout,
  .diffusion-layout {
    grid-template-columns: 1fr;
  }

  .article-grid,
  .edition-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-panel {
    right: 24px;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  .intro-hud {
    right: 16px;
    left: 16px;
    align-items: flex-start;
  }

  .intro-brand small {
    display: none;
  }

  .intro-skip {
    max-width: 128px;
  }

  .intro-copy {
    left: 18px;
    right: 18px;
    bottom: 128px;
    width: auto;
  }

  .intro-copy h1 {
    font-size: 2.85rem;
  }

  .story-card {
    min-width: 118px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .logo-reveal {
    left: 50%;
    width: min(360px, 82vw);
    transform: translate(-50%, -54%) scale(0.82);
  }

  .scrolly-intro.is-login .logo-reveal {
    transform: translate(-50%, -74%) scale(0.72) !important;
  }

  .login-panel {
    right: 16px;
    bottom: 54px;
    left: 16px;
    width: auto;
    max-height: none;
    overflow: visible;
    gap: 8px;
    padding: 14px;
  }

  .login-panel img {
    display: none;
  }

  .login-panel h2 {
    font-size: 1.78rem;
  }

  .login-panel label {
    gap: 5px;
  }

  .login-panel input {
    min-height: 40px;
    padding: 8px 10px;
  }

  .login-panel .button {
    min-height: 42px;
  }

  .intro-progress-panel {
    right: 16px;
    left: 16px;
    bottom: 16px;
    grid-template-columns: 1fr 62px;
    gap: 8px;
  }

  .intro-progress-panel > span:first-child {
    grid-column: 1 / -1;
  }

  .site-header {
    top: 24px;
    right: 24px;
    left: 24px;
    min-height: 52px;
  }

  .session-badge {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    padding: 118px 16px 48px;
  }

  .hero-subtitle {
    font-size: 1.04rem;
  }

  .manifesto-points,
  .panel-stats,
  .mail-draft {
    grid-template-columns: 1fr;
  }

  .chapter-rail {
    display: none;
  }

  .section-inner {
    width: min(100% - 32px, 1120px);
    padding: 58px 0;
  }

  .metrics-grid,
  .filters,
  .article-grid,
  .edition-grid,
  .news-grid,
  .form-row.two,
  .form-row.three {
    grid-template-columns: 1fr;
  }

  .feature-visual,
  .feature-visual img {
    min-height: 360px;
  }

  .metrics-grid article,
  .article-card,
  .edition-card,
  .news-card {
    min-height: auto;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .article-view {
    padding: 18px;
  }

  .article-view-inner {
    padding: 22px;
  }

  .article-detail h2 {
    font-size: 2.2rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Revista hojeable - EcoSaber N.1
   ============================================================ */

.gaceta-section {
  background: linear-gradient(180deg, var(--paper) 0%, var(--soft) 45%, var(--paper) 100%);
}

.gaceta-shell {
  --fb-max-h: min(74vh, 760px);
  --fb-ratio: 1.294;
  position: relative;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) * 2);
  background: radial-gradient(120% 120% at 50% 0%, #23312c 0%, #17211e 55%, #0e1614 100%);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

/* ---------- barra superior ---------- */

.gaceta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.gaceta-bar-left {
  display: flex;
  flex: 1 1 220px;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.gaceta-tag {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0e1614;
  background: var(--gold);
}

.gaceta-folio {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gaceta-bar-right {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.fb-tool {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fb-tool:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.fb-tool:focus-visible,
.fb-edge:focus-visible,
.fb-step:focus-visible,
.fb-thumb:focus-visible,
.gaceta-toc button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.fb-tool-strong {
  color: #0e1614;
  border-color: transparent;
  background: var(--gold);
}

.fb-tool-strong:hover {
  background: #e5b842;
}

.fb-tool svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-tool[aria-expanded="true"] {
  color: #0e1614;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.92);
}

/* ---------- escenario y libro ---------- */

.gaceta-stage {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 26px 14px 10px;
}

.fb-book {
  position: relative;
  width: min(100%, calc(var(--fb-max-h) * var(--fb-ratio)));
  aspect-ratio: 792 / 612;
  perspective: 2600px;
  touch-action: pan-y;
  transition: transform 0.45s cubic-bezier(0.36, 0.06, 0.22, 1);
}

/* Portada y contraportada van solas: el bloque entero se recorre para que
   la unica pagina visible quede centrada, igual que al abrir una revista. */
.fb-book[data-solo="right"] {
  transform: translateX(-25%);
}

.fb-book[data-solo="left"] {
  transform: translateX(25%);
}

.gaceta-shell[data-mode="single"] .fb-book {
  transform: none;
}

.gaceta-shell[data-mode="single"] .fb-book {
  --fb-ratio: 0.647;
  aspect-ratio: 396 / 612;
}

.fb-slot {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  background: #f4f2ea;
}

.fb-slot-left {
  left: 0;
  border-radius: 3px 0 0 3px;
  box-shadow: -12px 20px 38px rgba(0, 0, 0, 0.45);
}

.fb-slot-right {
  left: 50%;
  border-radius: 0 3px 3px 0;
  box-shadow: 12px 20px 38px rgba(0, 0, 0, 0.45);
}

.gaceta-shell[data-mode="single"] .fb-slot-left {
  display: none;
}

.gaceta-shell[data-mode="single"] .fb-slot-right {
  left: 0;
  width: 100%;
  border-radius: 3px;
}

.fb-slot.is-blank {
  background: transparent;
  box-shadow: none;
}

.gaceta-shell[data-mode="single"] .fb-slot-right {
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.45);
}

.fb-slot img,
.fb-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* sombra del lomo, sobre las dos paginas */
.fb-gutter {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12%;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.16) 42%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.16) 58%,
    rgba(0, 0, 0, 0) 100%
  );
}

.gaceta-shell[data-mode="single"] .fb-gutter,
.fb-book[data-cover="true"] .fb-gutter {
  opacity: 0;
}

/* ---------- hoja que gira ---------- */

.fb-flip {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.36, 0.06, 0.22, 1);
  pointer-events: none;
  visibility: hidden;
  z-index: 4;
}

.fb-flip.is-active {
  visibility: visible;
}

/* El estado inicial se declara explicito (no "none"): asi el navegador tiene
   un valor de partida que interpolar y la transicion arranca de verdad. */
.fb-flip[data-dir="next"] {
  left: 50%;
  transform-origin: left center;
  transform: rotateY(0deg);
}

.fb-flip[data-dir="prev"] {
  left: 0;
  transform-origin: right center;
  transform: rotateY(0deg);
}

.fb-flip.is-turning[data-dir="next"] {
  transform: rotateY(-180deg);
}

.fb-flip.is-turning[data-dir="prev"] {
  transform: rotateY(180deg);
}

/* En celular no hay lomo ni pagina vecina, asi que la hoja se dobla sobre su
   canto izquierdo y deja ver la siguiente, que ya esta debajo. Es el mismo
   mecanismo del pliego, solo que con un cuarto de vuelta en vez de media. */
.gaceta-shell[data-mode="single"] .fb-flip {
  left: 0;
  width: 100%;
  transform-origin: left center;
  transition-duration: 0.46s;
}

.gaceta-shell[data-mode="single"] .fb-face {
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.gaceta-shell[data-mode="single"] .fb-face-back {
  display: none;
}

.gaceta-shell[data-mode="single"] .fb-flip[data-dir="next"] {
  transform: rotateY(0deg);
}

.gaceta-shell[data-mode="single"] .fb-flip.is-turning[data-dir="next"] {
  transform: rotateY(-90deg);
}

.gaceta-shell[data-mode="single"] .fb-flip[data-dir="prev"] {
  transform: rotateY(-90deg);
}

.gaceta-shell[data-mode="single"] .fb-flip.is-turning[data-dir="prev"] {
  transform: rotateY(0deg);
}

/* Al terminar el giro la hoja vuelve a su posicion base; sin esto la animaria
   de regreso (invisible, pero seguiria corriendo). */
.fb-flip.is-resetting,
.fb-flip.is-resetting .fb-face::after {
  transition: none !important;
}

.fb-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #f4f2ea;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.fb-face-back {
  transform: rotateY(180deg);
}

/* brillo que recorre la hoja mientras gira */
.fb-face::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0) 45%, rgba(255, 255, 255, 0.18));
  transition: opacity 0.62s ease;
}

.fb-flip.is-turning .fb-face::after {
  opacity: 1;
}

.gaceta-shell[data-mode="single"] .fb-face::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.4));
}

/* ---------- flechas laterales ---------- */

.fb-edge {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.fb-edge:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.fb-edge:disabled,
.fb-step:disabled {
  opacity: 0.25;
  cursor: default;
}

.fb-edge svg,
.fb-step svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- controles inferiores ---------- */

.gaceta-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 22px 20px;
}

.fb-step {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.fb-scrub {
  flex: 1;
  min-width: 0;
}

.fb-scrub input {
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.fb-scrub input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.fb-scrub input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.fb-scrub input::-webkit-slider-thumb {
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  -webkit-appearance: none;
  appearance: none;
}

.fb-scrub input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
}

.fb-counter {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- indice ---------- */

.gaceta-index {
  padding: 4px 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gaceta-index-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
}

.gaceta-index-head .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.gaceta-index-body {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
}

.gaceta-toc {
  max-height: 420px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.gaceta-toc li + li {
  margin-top: 2px;
}

.gaceta-toc .toc-group {
  margin: 14px 0 6px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gaceta-toc li:first-child .toc-group {
  margin-top: 0;
}

.gaceta-toc button {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font-size: 0.86rem;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease;
}

.gaceta-toc button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.gaceta-toc button span:last-child {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.gaceta-thumbs {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
}

.fb-thumb {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  line-height: 0;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.fb-thumb img {
  width: 100%;
  height: auto;
}

.fb-thumb span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 1px 5px;
  border-radius: 3px;
  color: #fff;
  background: rgba(14, 22, 20, 0.78);
  font-size: 0.62rem;
  line-height: 1.5;
}

.fb-thumb:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.fb-thumb.is-current {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 165, 49, 0.35);
}

.gaceta-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.gaceta-note kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.78rem;
}

/* ---------- pantalla completa ---------- */

.gaceta-shell:fullscreen {
  --fb-max-h: min(88vh, 1100px);
  display: flex;
  flex-direction: column;
  border-radius: 0;
  justify-content: center;
}

.gaceta-shell:fullscreen .gaceta-stage {
  flex: 1;
}

/* ---------- visor ampliado ---------- */

.fb-lightbox {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: rgba(8, 13, 12, 0.96);
  backdrop-filter: blur(6px);
}

.fb-lightbox[hidden] {
  display: none;
}

.fb-lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.fb-lightbox-tools {
  display: flex;
  gap: 8px;
}

/* Centrado con flex, no con grid: dentro de un grid de fila automatica el
   max-height:100% de la imagen no tiene contra que resolverse y se desborda. */
.fb-lightbox-canvas {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  cursor: zoom-in;
}

.fb-lightbox-canvas.is-zoomed {
  cursor: grab;
}

.fb-lightbox-canvas.is-panning {
  cursor: grabbing;
}

.fb-lightbox-canvas img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.fb-lightbox-canvas.is-panning img {
  transition: none;
}

.fb-lightbox-hint {
  margin: 0;
  padding: 0 18px 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  text-align: center;
}


/* ---------- formato de diapositiva ----------
   La presentacion es 16:9 y se ve de una en una. Como nunca entra en modo
   pliego, basta con darle su proporcion al mismo contenedor del libro. */

.gaceta-shell[data-formato="diapositivas"] {
  --fb-max-h: min(56vh, 560px);
}

.gaceta-shell[data-formato="diapositivas"][data-mode="single"] .fb-book {
  --fb-ratio: 1.778;
  aspect-ratio: 16 / 9;
}

.gaceta-shell[data-formato="diapositivas"][data-mode="single"] .fb-slot-right {
  border-radius: 6px;
}

/* Las miniaturas apaisadas necesitan mas ancho para leerse. */
.gaceta-shell[data-formato="diapositivas"] .gaceta-thumbs {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

.gaceta-shell[data-formato="diapositivas"] .fb-thumb img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 720px) {
  .gaceta-shell[data-formato="diapositivas"] {
    --fb-max-h: min(42vh, 360px);
  }

  .gaceta-shell[data-formato="diapositivas"] .gaceta-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }
}

/* ---------- envio de la propuesta ---------- */

.mail-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}


/* ---------- zoom con dos dedos ----------
   Sin zoom, el libro deja pasar el desplazamiento vertical de la pagina
   (touch-action: pan-y) para poder seguir bajando con el dedo. Con zoom, el
   dedo arrastra la pagina y no debe mover nada mas. */

.fb-slot img {
  transform-origin: center center;
  -webkit-touch-callout: none;
}

.fb-book[data-zoom="true"] {
  touch-action: none;
}

.fb-book[data-zoom="true"] .fb-slot img {
  will-change: transform;
}

.fb-zoom-reset {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 22, 20, 0.84);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  font-weight: 500;
}

.fb-zoom-reset[hidden] {
  display: none;
}

.fb-zoom-reset:hover {
  background: rgba(14, 22, 20, 0.96);
}

.fb-zoom-reset:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* La ventana de ampliar es una pantalla completa sin nada que desplazar:
   todos los gestos son del zoom. */
.fb-lightbox-canvas {
  touch-action: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .gaceta-shell {
    --fb-max-h: min(66vh, 620px);
  }

  .gaceta-index-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .gaceta-toc,
  .gaceta-thumbs {
    max-height: 300px;
  }
}

@media (max-width: 720px) {
  .gaceta-bar {
    padding: 12px;
  }

  .fb-tool span {
    display: none;
  }

  .fb-tool {
    padding: 9px 11px;
  }

  .fb-tool-strong span {
    display: inline;
  }

  .gaceta-stage {
    gap: 4px;
    padding: 16px 8px 6px;
  }

  .fb-edge {
    display: none;
  }

  .fb-step {
    display: grid;
  }

  .gaceta-controls {
    padding: 4px 14px 16px;
  }

  .gaceta-index {
    padding: 4px 14px 20px;
  }

  .gaceta-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  }
}

/* ---------- accesibilidad de movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
  .fb-flip {
    display: none !important;
  }

  .fb-slot img,
  .fb-tool,
  .fb-edge,
  .fb-thumb {
    transition: none !important;
  }
}

/* ============================================================
   Convocatorias para entrar al equipo
   ============================================================ */

.postula-section {
  background: var(--soft);
}

.postula-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.postula-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 33, 30, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.postula-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 127, 123, 0.36);
  box-shadow: 0 18px 42px rgba(23, 33, 30, 0.12);
}

.postula-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.postula-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.postula-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.postula-card p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.postula-card .button {
  margin-top: 4px;
}

.postula-nota {
  color: var(--muted);
  font-size: 0.78rem;
}

.postula-section .gaceta-note a {
  color: var(--green);
  font-weight: 500;
}

@media (max-width: 900px) {
  .postula-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .postula-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .postula-card {
    padding: 20px;
  }
}

/* ============================================================
   Hemeroteca: todos los numeros
   ============================================================ */

.section,
.gaceta-section {
  scroll-margin-top: 84px;
}

.numeros-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.numero-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 33, 30, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.numero-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 127, 123, 0.36);
  box-shadow: 0 18px 42px rgba(23, 33, 30, 0.12);
}

.numero-portada {
  position: relative;
  height: 268px;
  overflow: hidden;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.numero-portada img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 420ms ease;
}

.numero-card:hover .numero-portada img {
  transform: scale(1.04);
}

.numero-nuevo {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0e1614;
  background: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.numero-datos {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.numero-datos h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

/* El titulo es el boton y su sombra cubre la tarjeta entera: se puede hacer
   clic en cualquier parte, pero el teclado solo se detiene una vez. */
.numero-abrir {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  font: inherit;
  text-align: left;
}

.numero-abrir::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.numero-abrir:hover {
  color: var(--green);
}

.numero-abrir:focus-visible {
  outline: none;
}

.numero-card:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 127, 123, 0.2);
}

.numero-paginas {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.numero-acciones {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

/* El PDF va por encima de la sombra del titulo para seguir siendo clicable. */
.numero-pdf {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}

.numero-pdf:hover {
  border-color: var(--green);
  background: var(--soft);
}

/* "Leyendo" solo aparece en el numero que esta cargado en el visor. */
.numero-estado {
  display: none;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
}

.numero-card.is-current {
  border-color: var(--teal);
}

.numero-card.is-current .numero-estado {
  display: inline;
}

@media (max-width: 520px) {
  .numeros-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
  }

  .numero-datos {
    padding: 14px;
  }

  .numero-portada {
    height: 210px;
  }
}

/* ---------- envio de propuestas ---------- */

.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-feedback.is-ok {
  color: var(--green);
  font-weight: 500;
}

.form-feedback.is-warn {
  color: var(--coral);
  font-weight: 500;
}

.mail-draft.is-fallback {
  border-color: var(--coral);
  background: rgba(201, 93, 67, 0.08);
}

.mail-draft p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
