/* ─────────────────────────────────────────────────────────────
   Sachpazis v. T.E.E. — institutional dossier styles
   Shared across all pages
   ───────────────────────────────────────────────────────────── */

:root {
  --navy:        #0b1a30;
  --navy-2:      #142a47;
  --navy-3:      #1d3a5f;
  --gold:        #c2a25a;
  --gold-dim:    #8e7333;
  --gold-soft:   #d9c187;
  --cream:       #f4ecd8;
  --cream-2:     #ebe1c6;
  --paper:       #fbf6e9;
  --paper-2:     #f6efd9;
  --ink:         #14171c;
  --ink-2:       #2a2f38;
  --muted:       #5a5346;
  --rule:        #b9a877;
  --rule-soft:   #d8c98e;
  --oxblood:     #6e1f24;

  --serif:       "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --body:        "Spectral", "Cormorant Garamond", Georgia, serif;
  --mono:        "IBM Plex Mono", ui-monospace, monospace;

  --max:         1240px;
  --pad-x:       clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(120,90,30,0.05) 1px, transparent 1px),
    radial-gradient(rgba(120,90,30,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

a { color: inherit; }
a.link {
  color: var(--navy);
  text-decoration: none;
  background-image: linear-gradient(var(--gold-dim), var(--gold-dim));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: background-size 200ms ease;
}
a.link:hover { background-size: 100% 2px; }

[data-lang="el"] .en { display: none; }
[data-lang="en"] .el { display: none; }

/* ───────── Top bar ───────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--cream);
  border-bottom: 1px solid rgba(194,162,90,0.35);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.crest {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: inherit;
}
.crest-mark {
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.crest-name { font-size: 15px; color: var(--cream); }
.crest-name strong { font-weight: 600; color: var(--gold-soft); }
.nav {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244,236,216,0.75);
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--gold-soft); border-bottom-color: var(--gold);
}
.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(194,162,90,0.5);
  border-radius: 2px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.lang-toggle button {
  background: transparent;
  color: rgba(244,236,216,0.7);
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
}
.lang-toggle button.on { background: var(--gold); color: var(--navy); font-weight: 500; }

/* Hamburger toggle — injected by site.js, hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 36px;
  background: transparent;
  border: 1px solid rgba(194,162,90,0.5);
  border-radius: 2px;
  cursor: pointer;
  color: var(--gold-soft);
  padding: 0;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform 220ms ease, opacity 160ms ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute; left: 0;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }
.nav-toggle.is-open .bars { background: transparent; }
.nav-toggle.is-open .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open .bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .topbar-inner { grid-template-columns: 1fr auto auto; gap: 12px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: flex-start;
    background: var(--navy-2);
    border-top: 1px solid rgba(194,162,90,0.25);
    border-bottom: 1px solid rgba(194,162,90,0.4);
    padding: 6px var(--pad-x) 14px;
    box-shadow: 0 18px 30px -16px rgba(0,0,0,0.5);
    z-index: 60;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 13px 2px;
    border-bottom: 1px solid rgba(194,162,90,0.12);
    font-size: 14px;
    letter-spacing: 0.12em;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(194,162,90,0.12); }
}

/* ───────── Section common ───────── */
section.band {
  position: relative;
  padding: 96px var(--pad-x);
  border-bottom: 1px solid var(--rule-soft);
}
section.band > .inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }

.band-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.band-eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--gold-dim);
}
.band-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0 0 14px;
  max-width: 22ch;
}
.band-title em { font-style: italic; color: var(--oxblood); font-weight: 400; }
.band-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.5vw, 22px);
  color: var(--ink-2);
  max-width: 70ch;
  margin: 0 0 56px;
  line-height: 1.5;
}
.band-lede.no-margin { margin-bottom: 0; }

section.band.navy {
  background: var(--navy);
  color: var(--cream);
  border-bottom-color: var(--navy);
}
section.band.navy .band-eyebrow { color: var(--gold); }
section.band.navy .band-eyebrow::before { background: var(--gold); }
section.band.navy .band-title { color: #fff; }
section.band.navy .band-title em { color: var(--gold-soft); }
section.band.navy .band-lede { color: rgba(244,236,216,0.82); }

section.band.cream { background: var(--cream); }

/* ───────── Body prose ───────── */
.prose {
  max-width: 72ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.prose p { margin: 0 0 20px; }
.prose p:first-of-type { font-size: 19px; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 36px 0 12px;
  color: var(--navy);
}
.prose h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 28px 0 10px;
}
.prose blockquote {
  margin: 28px 0;
  padding: 16px 0 16px 24px;
  border-left: 2px solid var(--gold);
  font-style: italic;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
}
.prose blockquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose code, .prose .cite-inline {
  font-family: var(--mono);
  font-size: 13.5px;
  background: rgba(194,162,90,0.12);
  color: var(--oxblood);
  padding: 1px 6px;
  border-radius: 2px;
}
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose hr {
  border: 0;
  height: 1px;
  background: var(--rule-soft);
  margin: 40px 0;
}

.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.6em;
  float: left;
  line-height: 0.86;
  margin: 6px 10px 0 0;
  color: var(--oxblood);
}

.ornament {
  text-align: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 1em;
  margin: 32px 0;
  user-select: none;
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--gold-dim);
}

/* ───────── Reveal anim ───────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.on { opacity: 1; transform: none; }

/* ───────── Card / panel ───────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
.card {
  background: var(--paper);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}
.card .yr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-dim);
}
.card .title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
}
.card .title em { font-style: italic; color: var(--oxblood); font-weight: 400; }
.card .inst {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
}
.card .body {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.card .body strong { color: var(--oxblood); font-weight: 500; }

/* ───────── Page nav cards ───────── */
.pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.page-card {
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--rule-soft);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 200ms ease;
}
.page-card:last-child { border-right: 0; }
.page-card:hover { background: rgba(194,162,90,0.06); }
.page-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-dim);
}
.page-card .ttl {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}
.page-card .desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
}
.page-card .more {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oxblood);
}
@media (max-width: 900px) {
  .pages { grid-template-columns: 1fr; }
  .page-card { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding-right: 0; }
  .page-card:last-child { border-bottom: 0; }
}

/* ───────── Footer ───────── */
footer.foot {
  background: #07101e;
  color: rgba(244,236,216,0.6);
  padding: 56px var(--pad-x) 36px;
  border-top: 2px solid var(--gold-dim);
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
}
@media (max-width: 800px) { .foot-inner { grid-template-columns: 1fr; gap: 28px; } }
.foot h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.foot p, .foot a { font-size: 14px; line-height: 1.65; }
.foot a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(194,162,90,0.35); }
.foot a:hover { color: var(--gold-soft); }
.foot-bottom {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(194,162,90,0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244,236,216,0.4);
  text-transform: uppercase;
}

/* ───────── Hero (index) ───────── */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(194,162,90,0.10), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  padding: 80px var(--pad-x) 96px;
  overflow: hidden;
  border-bottom: 2px solid var(--gold-dim);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 0, transparent 95%, rgba(194,162,90,0.10) 100%),
    repeating-linear-gradient(180deg, transparent 0, transparent 38px, rgba(194,162,90,0.04) 38px, rgba(194,162,90,0.04) 39px);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.hero-eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2vw, 24px);
  color: rgba(244,236,216,0.78);
  max-width: 60ch;
  line-height: 1.4;
  margin: 0 0 40px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(194,162,90,0.35);
  border-bottom: 1px solid rgba(194,162,90,0.35);
}
.hero-meta dl {
  margin: 0;
  padding: 22px 24px 22px 0;
  border-right: 1px solid rgba(194,162,90,0.18);
}
.hero-meta dl:nth-child(2n) { border-right: 0; padding-right: 0; }
.hero-meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(194,162,90,0.85);
  margin-bottom: 6px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.hero-img-wrap {
  position: relative;
  border: 1px solid rgba(194,162,90,0.4);
  background: rgba(0,0,0,0.3);
  padding: 14px;
}
.hero-img-wrap::before, .hero-img-wrap::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
}
.hero-img-wrap::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-img-wrap::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.05) saturate(0.95);
}
.hero-img-caption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: right;
}

/* ───────── Compact dossier page header (sub-pages) ───────── */
.page-header {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(194,162,90,0.08), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--cream);
  padding: 56px var(--pad-x) 64px;
  border-bottom: 2px solid var(--gold-dim);
}
.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-header .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(194,162,90,0.75);
  margin-bottom: 18px;
}
.page-header .breadcrumb a { color: inherit; text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--gold-soft); }
.page-header .breadcrumb .sep { margin: 0 10px; opacity: 0.5; }
.page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.005em;
}
.page-header h1 em { font-style: italic; color: var(--gold-soft); font-weight: 400; }
.page-header .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 70ch;
  margin: 0;
  color: rgba(244,236,216,0.78);
  line-height: 1.5;
}

/* ───────── Official portrait ───────── */
.portrait-photo {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--gold-dim);
  padding: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(194,162,90,0.10) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  position: relative;
  box-shadow: 0 18px 40px -28px rgba(11,26,48,0.45);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}
.portrait-photo .corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
  z-index: 2;
}
.portrait-photo .corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.portrait-photo .corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.portrait-photo .corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.portrait-photo .corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.portrait-photo .frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(194,162,90,0.5);
  background: #0a1626;
}
.portrait-photo .frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) saturate(0.95);
}
.portrait-photo .cap {
  text-align: center;
  border-top: 1px solid rgba(194,162,90,0.4);
  padding-top: 12px;
  font-family: var(--serif);
  color: var(--cream);
}
.portrait-photo .cap .nm { font-size: 18px; color: var(--gold-soft); letter-spacing: 0.02em; }
.portrait-photo .cap .rl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,236,216,0.6);
  margin-top: 4px;
}

/* ───────── Tweaks root ───────── */
#tweaks-root { position: fixed; bottom: 16px; right: 16px; z-index: 100; }
