/* El Sol shared visual system. */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/CinzelDecorative-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0b1220;
  --ink-2: #141c2c;
  --navy: #1a2740;
  --gold: #d4a017;
  --gold-2: #e8c15a;
  --gold-soft: #f3d98a;
  --cream: #f3ead6;
  --paper: #ebe2cc;
  --paper-2: #e0d4b8;
  --text: #1c1a16;
  --text-light: #f6f0e2;
  --muted: #6f6858;
  --muted-light: #c9c0a8;
  --violet: #6b4c7a;
  --teal: #1e5a64;
  --line: rgba(212, 160, 23, 0.45);
  --shadow: 0 18px 40px rgba(11, 18, 32, 0.18);
  --max: 1120px;
  --narrow: 720px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --display: "Cinzel", "Palatino Linotype", serif;
  --ornament: "Cinzel Decorative", "Cinzel", serif;
}

.site-sp {
  --accent: #1f3a68;
  --gold: #1f3a68;
  --gold-2: #8eb0e0;
  --gold-soft: #d0dced;
  --btn-text: #f6f0e2;
  --line: rgba(142, 176, 224, 0.45);
}
.site-pseudo {
  --accent: #a3122a;
  --gold: #a3122a;
  --gold-2: #e07a86;
  --gold-soft: #f0c4c8;
  --btn-text: #f6f0e2;
  --line: rgba(224, 122, 134, 0.45);
}
.site-para {
  --accent: #2f6b3a;
  --gold: #2f6b3a;
  --gold-2: #7cbc84;
  --gold-soft: #c5e0c8;
  --btn-text: #f6f0e2;
  --line: rgba(124, 188, 132, 0.45);
}
.site-storm {
  --accent: #d9a400;
  --gold: #d9a400;
  --gold-2: #e8c15a;
  --gold-soft: #f3d98a;
  --btn-text: #0b1220;
  --line: rgba(217, 164, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:link, a:visited { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.day119 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.65rem 1.4rem;
  background:
    linear-gradient(180deg, rgba(11,18,32,0.55), rgba(11,18,32,0.72)),
    var(--day119-image, #141c2c) center/cover no-repeat;
  color: var(--cream);
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.day119-date {
  font-family: var(--ornament);
  font-size: 1.35rem;
  color: var(--gold-2);
  letter-spacing: 0.08em;
}
.day119-mid {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.day119-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.brand a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}
.sun-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-soft) 0 28%, var(--gold) 29% 46%, transparent 47%),
    conic-gradient(from 0deg, var(--gold-2), transparent 8%, var(--gold-2) 12.5%, transparent 20%, var(--gold-2) 25%, transparent 33%, var(--gold-2) 37.5%, transparent 45%, var(--gold-2) 50%, transparent 58%, var(--gold-2) 62.5%, transparent 70%, var(--gold-2) 75%, transparent 83%, var(--gold-2) 87.5%, transparent 95%, var(--gold-2));
  box-shadow: 0 0 0 2px rgba(232, 193, 90, 0.25), 0 0 16px rgba(212, 160, 23, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-elsol {
  font-family: var(--ornament);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.brand-name {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted-light);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--text-light);
  background-color: var(--ink);
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.18) 0%, rgba(11,18,32,0.28) 42%, rgba(11,18,32,0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 4.5rem 0 3.4rem;
}
.hero .kicker {
  font-family: var(--display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-2);
  margin-bottom: 0.7rem;
}
.hero h1 { color: var(--cream); max-width: 18ch; }
.hero .lede { color: var(--paper); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--accent, var(--gold));
  background: var(--accent, var(--gold));
  color: var(--btn-text, var(--ink));
}
.btn:link, .btn:visited { color: var(--btn-text, var(--ink)); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold);
}
.btn-ghost:link, .btn-ghost:visited { color: var(--cream); }
.btn:hover { filter: brightness(1.08); }

.section { padding: 4rem 1.2rem; }
.section-inner { width: min(var(--max), 100%); margin: 0 auto; }
.section-narrow { width: min(var(--narrow), 100%); margin: 0 auto; }
.section-ink { background: var(--ink); color: var(--text-light); }
.section-ink h2, .section-ink h3 { color: var(--gold-2); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--text-light); }
.section-navy h2, .section-navy h3 { color: var(--gold-2); }
.kicker {
  font-family: var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.4rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: center;
}
.split.rev { grid-template-columns: 0.9fr 1.1fr; }
.split figure, .frame { margin: 0; }
.frame img, .split img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.caption, figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.section-ink .caption, .section-ink figcaption,
.section-navy .caption, .section-navy figcaption { color: var(--muted-light); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.card {
  background: #fffdf6;
  border: 1px solid var(--paper-2);
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 8px 20px rgba(11,18,32,0.06);
}
.section-ink .card, .section-navy .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(232,193,90,0.22);
  color: var(--text-light);
}
.card h3 { margin-bottom: 0.5rem; }

.book-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
}
.book-block img {
  width: 100%;
  background: #0b1220;
  box-shadow: var(--shadow);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery.tall img { height: 320px; }

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.heritage-grid img { width: 100%; box-shadow: var(--shadow); }

.hub-links { display: grid; gap: 0.55rem; margin: 1rem 0 0; }
.hub-links a {
  display: block;
  text-decoration: none;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,193,90,0.25);
  color: var(--gold-soft);
}
.hub-links a:hover { border-color: var(--gold-2); color: var(--cream); }
.hub-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}
.qr { width: 220px; background: #fff; padding: 10px; }

.contact-panel {
  background: #fffdf6;
  border: 1px solid var(--paper-2);
  padding: 1.6rem 1.5rem;
}
.contact-panel a { color: #6a4a10; text-decoration: underline; }
.mailto {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 1.2rem;
  font-family: var(--serif);
}

.companies {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.2rem;
  align-items: start;
  text-align: center;
}
.companies h3 {
  font-family: var(--ornament);
  font-size: 1.35rem;
  color: var(--gold-2);
}
.companies .axis {
  width: 1px;
  min-height: 6rem;
  background: var(--gold);
  align-self: stretch;
  margin: 0 auto;
}
.companies p { font-size: 0.98rem; color: var(--muted-light); }

.sister {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.sister a, .sister span {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.sister span { border-bottom-color: transparent; color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

.site-footer {
  background: #070b14;
  color: var(--muted-light);
  padding: 3rem 1.2rem 2rem;
  font-size: 0.98rem;
}
.site-footer a { color: var(--gold-soft); }
.footer-inner { width: min(var(--max), 100%); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.legal {
  border-top: 1px solid rgba(232,193,90,0.18);
  padding-top: 1.1rem;
  font-size: 0.82rem;
  color: #9a927c;
}
.page-head {
  background: var(--ink) center/cover no-repeat;
  color: var(--cream);
  padding: 5.5rem 1.2rem 3rem;
  position: relative;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0.35), rgba(11,18,32,0.82));
}
.page-head .section-inner { position: relative; z-index: 1; }

.note {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}
.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .split, .split.rev, .book-block, .hub-card, .footer-grid, .heritage-grid, .columns-2 {
    grid-template-columns: 1fr;
  }
  .cards { grid-template-columns: 1fr 1fr; }
  .companies { grid-template-columns: 1fr; }
  .companies .axis { width: 3rem; min-height: 1px; height: 1px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11,18,32,0.98);
    padding: 0.75rem 1.2rem 1.2rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.4rem; }
}
@media (max-width: 620px) {
  .cards, .gallery, .gallery.tall { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .brand-name { font-size: 0.82rem; }
}

.sun-mark-img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: block;
  border-radius: 9px;
}

/* WANTED poster background noise. Decorative only. */
.wanted-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.wanted-noise::before {
  content: "";
  position: absolute;
  inset: -12%;
  opacity: 0.10;
  background-image: url("../img/wanted-pattern.svg");
  background-repeat: repeat;
  background-size: 900px auto;
  background-position: center top;
  transform: rotate(-3deg);
}
html, body { overflow-x: hidden; }
body { position: relative; }
.day119,
.site-header,
main,
.site-footer,
.companies,
#companies {
  position: relative;
  z-index: 1;
}
.wanted-quote {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted-light);
  max-width: 38rem;
}

/* ===== Dress-up pass, 13 November 2026 (Grok Bot, from the Mozart, Elon, Metatron, Les Gold, and Aliens proposals) ===== */
/* Captions sit ABOVE every image, figure, and player. */
.caption, figcaption {
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
}
figure { display: flex; flex-direction: column; }
figure > img { order: 2; }
figure > figcaption { order: 1; }
img { max-width: 100%; height: auto; }

/* Dark-room gallery cards that honor mixed aspect ratios. */
.gallery figure {
  margin: 0;
  background: var(--ink);
  border: 1px solid rgba(232,193,90,0.22);
  padding: 0.7rem 0.7rem 0.8rem;
  box-shadow: 0 10px 24px rgba(11,18,32,0.16);
}
.gallery figcaption,
.section-ink .gallery figcaption {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.35;
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 40%;
}
.gallery.tall img { height: auto; aspect-ratio: 3 / 4; }
.gallery.sky img { aspect-ratio: 4 / 3; object-position: center 35%; }
.gallery img.portrait { aspect-ratio: 3 / 4; object-position: center 45%; }
.split img.portrait { width: auto; max-width: 100%; max-height: 620px; object-fit: contain; align-self: center; }

/* Seals, marks, and the IOI axis. */
.companies { align-items: center; }
.companies .co img {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: auto;
  margin: 0.6rem auto 0;
  box-shadow: 0 16px 34px rgba(0,0,0,0.35);
  border: 1px solid rgba(232,193,90,0.3);
}
.companies .co h3 { margin: 0; }
.ioi-axis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  align-self: stretch;
  justify-content: center;
}
.ioi-axis::before, .ioi-axis::after {
  content: "";
  width: 1px;
  flex: 1 1 3rem;
  min-height: 3rem;
  background: var(--gold-2);
}
.ioi {
  font-family: var(--ornament);
  font-size: 2.1rem;
  letter-spacing: 0.18em;
  color: var(--gold-soft);
  line-height: 1;
}
.marks {
  margin-top: 1.6rem;
  font-family: var(--display);
  letter-spacing: 0.08em;
  color: var(--gold-soft);
  text-align: center;
  font-size: 1rem;
}
.marks-foot {
  font-family: var(--display);
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  font-size: 0.9rem;
  margin: 0.9rem 0 0;
}
.seal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.seal-row figure { margin: 0; text-align: center; }
.seal-row img { width: 100%; height: auto; box-shadow: var(--shadow); }

/* In-page lane navigation (Field and Skies). */
.lane-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin: 1.2rem 0 0;
  padding: 0.8rem 0 0;
  border-top: 1px solid var(--line);
}
.lane-nav a {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent, var(--gold));
}
.lane-nav a:hover { text-decoration: underline; }
.card h3 a { color: inherit; text-decoration: none; }
.card .more { margin-top: 0.6rem; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.card .more a { text-decoration: none; color: var(--accent, var(--gold)); }

/* Merch and artifacts floor (inquiry only). */
.price { font-family: var(--display); letter-spacing: 0.04em; color: var(--gold-soft); }
.section .price { color: var(--accent, var(--gold)); }
.closer { font-family: var(--serif); font-style: italic; font-size: 1.35rem; margin-top: 1.2rem; }

/* Heritage portraits: modest size, never stretched. */
.heritage-grid figure { margin: 0; }
.heritage-grid img { max-width: 432px; width: 100%; margin: 0 auto; }

.public-doors a { margin-right: 0.9rem; }

@media (max-width: 900px) {
  .ioi-axis { flex-direction: row; }
  .ioi-axis::before, .ioi-axis::after { width: auto; height: 1px; min-height: 1px; flex: 1 1 2rem; }
  .seal-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .seal-row { grid-template-columns: 1fr; }
}

/* Exact brand casing: Cinzel is a capitals face, so the marks use the serif face. */
.brand-mark, .marks, .marks-foot, .companies h3.brand-mark, .ioi {
  font-family: var(--serif);
  text-transform: none;
  font-variant: normal;
}
h2.brand-mark { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: 0.01em; }
.companies h3.brand-mark { font-size: 1.9rem; font-weight: 600; letter-spacing: 0.02em; }
.ioi { font-weight: 700; font-size: 2.4rem; letter-spacing: 0.12em; }
.marks { font-size: 1.15rem; letter-spacing: 0.04em; }
