:root {
  --ink: #090909;
  --ink-soft: #11110f;
  --paper: #f1ece2;
  --paper-deep: #ded4c3;
  --bone: #cfc6b7;
  --muted: #9e9689;
  --gold: #c6a35b;
  --gold-light: #e1c88f;
  --wine: #5b1820;
  --wine-bright: #872634;
  --line: rgba(198, 163, 91, .28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
  --header: 82px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }

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

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

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

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

.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(5, 5, 5, .88), transparent);
  transition: background .35s ease, border-color .35s ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 8, .94);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }

.brand-word {
  display: grid;
  line-height: 1;
  letter-spacing: .08em;
}

.brand-word strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.brand-word small {
  margin-top: 5px;
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }

.desktop-nav a {
  color: rgba(241, 236, 226, .82);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.desktop-nav a:hover { color: var(--gold-light); }

.desktop-nav .nav-authors {
  padding: 10px 16px;
  border: 1px solid var(--line);
  color: var(--gold-light);
}

.menu-toggle {
  width: 45px;
  height: 45px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--paper);
  background: rgba(0, 0, 0, .2);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  width: 20px;
  height: 1px;
  display: block;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}

.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { position: absolute; content: ""; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.menu-active .menu-lines { background: transparent; }
.menu-active .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-active .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  z-index: 45;
  inset: var(--header) 0 0;
  display: none;
  padding: 32px 24px 48px;
  background: rgba(8, 8, 8, .985);
  overflow: auto;
}

.mobile-panel.is-open { display: block; }

.mobile-panel nav { width: min(520px, 100%); margin: 0 auto; }

.mobile-panel a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(198, 163, 91, .16);
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1;
  text-decoration: none;
}

.mobile-panel a span { color: var(--gold); font: 10px var(--sans); letter-spacing: .15em; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #080807;
}

.hero-media,
.hero-media picture,
.hero-media img,
.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-media img { object-fit: cover; object-position: center; animation: hero-in 2s ease-out both; }

.hero-shade {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, .22) 0%, rgba(5, 5, 5, .03) 35%, rgba(5, 5, 5, .88) 100%),
    radial-gradient(circle at center, transparent 25%, rgba(0, 0, 0, .42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(930px, calc(100vw - 42px));
  margin-top: 8vh;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after { width: 36px; height: 1px; content: ""; background: var(--gold); opacity: .65; }

.hero h1 {
  max-width: 850px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(58px, 9vw, 118px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .82;
  text-wrap: balance;
}

.hero h1 em { display: block; color: var(--gold-light); font-weight: 400; }

.hero-lead {
  max-width: 600px;
  margin: 28px auto 0;
  color: rgba(241, 236, 226, .84);
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: .03em;
}

.hero-actions { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.button:hover { transform: translateY(-2px); background: var(--paper); }
.button-dark { color: var(--paper); background: rgba(8, 8, 8, .62); }
.button-dark:hover { color: var(--ink); background: var(--paper); }
.button-light { color: var(--paper); background: transparent; }
.button-light:hover { color: var(--ink); background: var(--paper); }

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  color: rgba(241, 236, 226, .65);
  font-size: 8px;
  letter-spacing: .24em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue::after { width: 1px; height: 25px; display: block; margin: 9px auto 0; content: ""; background: var(--gold); }

.manifesto {
  padding: clamp(90px, 12vw, 170px) 24px;
  text-align: center;
  background: var(--ink);
}

.manifesto blockquote {
  max-width: 970px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.manifesto blockquote span { color: var(--gold-light); font-style: italic; }

.manifesto p {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .05em;
}

.feature {
  min-height: min(820px, 92svh);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.feature-image, .feature-image img, .feature-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-image img { object-fit: cover; }
.feature-0317 .feature-image img { object-position: center 38%; }

.feature-overlay {
  background: linear-gradient(90deg, rgba(5, 5, 5, .94) 0%, rgba(5, 5, 5, .63) 38%, rgba(5, 5, 5, .06) 72%),
              linear-gradient(0deg, rgba(5, 5, 5, .76), transparent 48%);
}

.feature-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.feature-copy { max-width: 560px; }

.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #e9a0a9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.case-tag::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: var(--wine-bright); box-shadow: 0 0 18px #bd4655; }

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(62px, 10vw, 124px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .8;
}

.feature h2 small {
  display: block;
  margin-top: 25px;
  color: var(--paper-deep);
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 34px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.feature-copy > p { max-width: 480px; margin: 25px 0 30px; color: rgba(241, 236, 226, .72); }

.section { padding: clamp(88px, 11vw, 150px) 0; }
.section-shell { width: var(--shell); margin: 0 auto; }
.section-heading { max-width: 760px; margin-bottom: 50px; }

.section-heading h2,
.editorial-copy h2,
.page-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .96;
  text-wrap: balance;
}

.section-heading p,
.editorial-copy > p { max-width: 620px; margin: 22px 0 0; color: var(--muted); }

.archive-preview { background: #0d0d0c; }

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

.editorial-image { position: relative; }
.editorial-image::before { position: absolute; z-index: 2; inset: 14px; border: 1px solid rgba(225, 200, 143, .45); content: ""; pointer-events: none; }
.editorial-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.78) contrast(1.06); }
.editorial-copy .button { margin-top: 30px; }

.worlds { background: var(--paper); color: var(--ink); }
.worlds .eyebrow { color: var(--wine); }
.worlds .section-heading p { color: #655e54; }

.world-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.world-card {
  min-height: 510px;
  position: relative;
  grid-column: span 4;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
}

.world-card:first-child { grid-column: span 7; }
.world-card:nth-child(2) { grid-column: span 5; }

.world-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease; }
.world-card:first-child img { object-position: center 35%; }
.world-card:not(:first-child) img { object-fit: contain; padding: 46px 32px 96px; background: radial-gradient(circle at center, #26231d, #0b0b0a 70%); }
.world-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(0, 0, 0, .93), transparent 65%); }
.world-card:hover img { transform: scale(1.035); filter: brightness(.82); }
.world-info { position: relative; z-index: 2; padding: 28px; }
.world-info span { color: var(--gold-light); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.world-info h3 { margin: 7px 0 5px; font: 400 clamp(31px, 4vw, 48px)/.95 var(--serif); }
.world-info p { margin: 0; color: rgba(241, 236, 226, .64); font-size: 12px; }

.entre-preview { background: var(--ink); }
.entre-preview .editorial-split { grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); }
.entre-preview .editorial-image { order: 2; }

.catalogue { background: #0e0e0d; }
.catalogue-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; }

.books-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 34px 20px;
}

.book { color: inherit; text-decoration: none; }
.book-cover { position: relative; overflow: hidden; background: #24231f; box-shadow: 0 18px 30px rgba(0, 0, 0, .32); }
.book-cover::after { position: absolute; inset: 0; content: ""; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.book img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.book:hover img { transform: scale(1.025); filter: brightness(.78); }
.book h3 { margin: 14px 0 2px; font: 500 21px/1.05 var(--serif); }
.book p { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.authors-preview {
  color: #28231e;
  background: #e9e1d4;
}

.authors-preview .editorial-image img { aspect-ratio: 3 / 2; }
.authors-preview .eyebrow { color: var(--wine); }
.authors-preview .editorial-copy > p { color: #62594f; }
.authors-preview .button { color: var(--paper); border-color: var(--wine); background: var(--wine); }
.authors-preview .button:hover { background: #321014; }

.site-footer {
  padding: 70px 0 25px;
  border-top: 1px solid var(--line);
  background: #070707;
}

.footer-grid { width: var(--shell); margin: 0 auto; display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 50px; }
.footer-brand { max-width: 430px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-family: var(--serif); font-size: 22px; }
.footer-column h2 { margin: 0 0 15px; color: var(--gold-light); font: 600 9px var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.footer-column a { display: table; margin: 9px 0; color: var(--bone); font-size: 13px; text-decoration: none; }
.footer-column a:hover { color: var(--gold-light); }
.footer-bottom { width: var(--shell); margin: 54px auto 0; padding-top: 22px; border-top: 1px solid rgba(198, 163, 91, .14); display: flex; justify-content: space-between; color: #6f6a62; font-size: 10px; }

.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  width: min(450px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid var(--line);
  color: var(--bone);
  background: rgba(12, 12, 11, .98);
  box-shadow: 0 16px 60px rgba(0, 0, 0, .45);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; font-size: 12px; }
.cookie-banner a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.cookie-actions button { padding: 8px 13px; border: 1px solid var(--gold); color: var(--ink); background: var(--gold-light); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.cookie-actions .reject { color: var(--paper); background: transparent; }

/* Internal editorial pages */
.page-hero {
  min-height: 76svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero > img,
.page-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero > img { object-fit: cover; }
.page-hero::after { content: ""; background: linear-gradient(90deg, rgba(6, 6, 6, .93), rgba(6, 6, 6, .18)), linear-gradient(0deg, rgba(6, 6, 6, .92), transparent 65%); }
.page-intro { position: relative; z-index: 2; width: var(--shell); margin: 0 auto; padding: 160px 0 80px; }
.page-intro p { max-width: 570px; margin: 25px 0 0; color: var(--paper-deep); font: 22px/1.4 var(--serif); }
.page-main { background: var(--ink); }
.back-link { display: inline-block; margin-top: 27px; color: var(--gold-light); font-size: 10px; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }

.dossier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dossier {
  min-height: 390px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  color: var(--paper);
  background: #121210;
  text-decoration: none;
}
.dossier img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .5s ease, opacity .4s ease; }
.dossier::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(0,0,0,.96), rgba(0,0,0,.08)); }
.dossier > *:not(img) { position: relative; z-index: 2; }
.dossier:hover img { transform: scale(1.035); opacity: .72; }
.dossier-number { color: var(--gold-light); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.dossier h2 { margin: 8px 0 8px; font: 400 36px/1 var(--serif); }
.dossier p { margin: 0; color: var(--muted); font-size: 13px; }
.dossier.is-locked { cursor: default; }

.tools-page { color: #2b261f; background: #e9e1d4; }
.tools-page .site-header:not(.is-scrolled):not(.menu-active) { background: linear-gradient(180deg, rgba(8,8,8,.75), transparent); }
.tools-page .page-main { color: #2b261f; background: #e9e1d4; }
.tools-page .section-heading p { color: #665e54; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card { min-height: 280px; padding: 32px; border: 1px solid rgba(91, 24, 32, .25); background: rgba(255,255,255,.25); }
.tool-card .tool-number { color: var(--wine); font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.tool-card h2 { margin: 55px 0 10px; font: 500 34px/1 var(--serif); }
.tool-card p { max-width: 520px; margin: 0; color: #665e54; font-size: 14px; }
.tool-status { display: inline-block; margin-top: 18px; padding: 5px 9px; border: 1px solid rgba(91,24,32,.22); color: var(--wine); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.principles { color: var(--paper); background: var(--wine); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles h3 { margin: 0 0 8px; font: 400 30px var(--serif); }
.principles p { margin: 0; color: rgba(241,236,226,.72); font-size: 13px; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes hero-in {
  from { opacity: .45; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1060px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .books-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --shell: min(calc(100% - 34px), 680px); --header: 70px; }
  .brand img { width: 37px; height: 37px; }
  .brand-word strong { font-size: 18px; }
  .hero-content { margin-top: 3vh; }
  .hero h1 { font-size: clamp(54px, 15vw, 82px); line-height: .88; }
  .hero-lead { max-width: 420px; font-size: 19px; }
  .feature { min-height: 780px; }
  .feature-overlay { background: linear-gradient(0deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.62) 48%, rgba(5,5,5,.05) 86%); }
  .feature-content { padding-bottom: 70px; }
  .editorial-split, .entre-preview .editorial-split { grid-template-columns: 1fr; }
  .entre-preview .editorial-image { order: initial; }
  .world-card, .world-card:first-child, .world-card:nth-child(2) { grid-column: span 6; min-height: 430px; }
  .world-card:first-child { grid-column: span 12; min-height: 560px; }
  .books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dossier-grid { grid-template-columns: 1fr; }
  .dossier { min-height: 360px; }
  .principles-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100vw - 30px); }
  .brand-word small { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .eyebrow { letter-spacing: .24em; }
  .eyebrow::before, .eyebrow::after { width: 20px; }
  .hero h1 { font-size: clamp(51px, 16vw, 72px); }
  .hero-lead { margin-top: 22px; }
  .manifesto { padding-inline: 18px; }
  .feature { min-height: 720px; }
  .feature-0317 .feature-image img { object-position: 62% center; }
  .display-title { font-size: 70px; }
  .world-grid { display: block; }
  .world-card, .world-card:first-child { min-height: 480px; margin-bottom: 14px; }
  .world-card:not(:first-child) img { padding: 30px 34px 90px; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 15px; }
  .book h3 { font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin: 5px 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 250px; }
  .page-hero { min-height: 80svh; }
  .page-intro { padding-bottom: 55px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
