
:root {
  --navy:     #0A0D1A;
  --deep:     #1A1A2E;
  --blue:     #4A6FA5;
  --blue-lt:  #6A8FC5;
  --red:      #C0392B;
  --red-lt:   #E74C3C;
  --cream:    #F0F4F8;
  --muted:    #8A9AB8;
  --border:   rgba(74,111,165,0.25);
  --gold:     #C9A84C;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────── */
nav { position:fixed; top:0; left:0; width:100%; z-index:1000; display:flex; align-items:center; justify-content:space-between; gap:0.75rem; padding:0.8rem 1rem; background:rgba(6,12,28,0.82); backdrop-filter:blur(10px); border-bottom:1px solid rgba(255,255,255,0.08); }
.nav-logo {
  display: flex; align-items: center; gap: 0.85rem; text-decoration: none;
}
.nav-logo img {
  height: 44px; width: 44px; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(74,111,165,0.4);
  filter: brightness(1.1);
}
.nav-wordmark {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 1.05rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cream);
}
.nav-wordmark span { color: var(--blue-lt); }
nav ul { display:flex; align-items:center; flex:1 1 auto; min-width:0; justify-content:center; flex-wrap:wrap; gap:0.55rem; list-style:none; margin:0 0 0 1rem; padding:0; }
nav ul a { display:inline-flex; align-items:center; justify-content:center; padding:0.5rem 0.78rem; color: var(--cream); text-decoration:none; font-family:'Josefin Sans', sans-serif; font-size:0.74rem; letter-spacing:0.12em; text-transform:uppercase; white-space:nowrap; opacity:0.96; border:1px solid rgba(255,255,255,0.12); border-radius:999px; background:rgba(255,255,255,0.04); transition:background .2s ease, border-color .2s ease, transform .2s ease; }
nav ul a:hover { color: var(--cream); background:rgba(255,255,255,0.09); border-color:rgba(255,255,255,0.24); transform:translateY(-1px); }

/* ── HERO ────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('hero-bg.png') center/cover no-repeat;
  filter: brightness(0.55) saturate(0.8);
  transform: scale(1.04);
  animation: heroZoom 28s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,13,26,0.1) 0%, rgba(10,13,26,0.75) 75%);
}
.hero-content {
  position: relative; z-index: 2;
  width: min(100%, 980px);
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeUp 1.4s cubic-bezier(.22,1,.36,1) both;
}
.hero-content > * { margin-left:auto; margin-right:auto; }
@keyframes fadeUp {
  from { opacity:0; transform: translateY(32px); }
  to   { opacity:1; transform: translateY(0); }
}
.hero-logo {
  width: 160px; height: 160px; object-fit: cover; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 60px rgba(74,111,165,0.35), 0 0 120px rgba(74,111,165,0.15);
  margin-bottom: 2.2rem;
  animation: glowPulse 5s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { box-shadow: 0 0 60px rgba(74,111,165,0.35), 0 0 120px rgba(74,111,165,0.15); }
  to   { box-shadow: 0 0 80px rgba(74,111,165,0.55), 0 0 160px rgba(74,111,165,0.25); }
}
.hero-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300; line-height: 1.1;
  color: #fff; margin-bottom: 0.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero-title em { font-style: italic; color: var(--blue-lt); }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300; font-style: italic;
  color: rgba(240,244,248,0.72); margin-bottom: 2.8rem; max-width: 620px;
}
.hero-ctas {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
}
.btn {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; padding: 0.85rem 2rem;
  border-radius: 2px; transition: all 0.25s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 24px rgba(74,111,165,0.4);
}
.btn-primary:hover {
  background: var(--blue-lt);
  box-shadow: 0 0 36px rgba(74,111,165,0.6);
}
.btn-outline {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(240,244,248,0.35);
}
.btn-outline:hover {
  background: rgba(240,244,248,0.06);
  border-color: var(--cream);
}
.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 0 24px rgba(192,57,43,0.35);
}
.btn-red:hover {
  background: var(--red-lt);
  box-shadow: 0 0 36px rgba(192,57,43,0.5);
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
.hero-scroll svg { width:20px; height:20px; opacity:0.5; }

/* ── SECTIONS ────────────────────────────────────── */
section { padding: 6rem 0; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 2.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 2.5rem; }

.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300;
  color: var(--cream); margin-bottom: 1.5rem; line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--blue-lt); }
.rule {
  width: 48px; height: 1px; background: var(--red);
  margin-bottom: 2.5rem;
}

/* ── WHY PREPHYSICS ──────────────────────────────── */
#why { background: var(--deep); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; margin-top: 3.5rem;
}
.why-card {
  border-left: 2px solid var(--blue);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: rgba(74,111,165,0.06);
  transition: background 0.3s;
}
.why-card:hover { background: rgba(74,111,165,0.1); }
.why-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 600;
  color: var(--cream); margin-bottom: 0.6rem;
}
.why-card p {
  color: var(--muted); font-size: 0.95rem; line-height: 1.7;
}
.why-verdict {
  margin-top: 3rem; padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  background: rgba(192,57,43,0.07);
  border-left: 3px solid var(--red);
}
.why-verdict p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-style: italic; font-weight: 300;
  color: var(--cream); line-height: 1.6;
}
.why-verdict strong { color: var(--blue-lt); font-style: normal; font-weight: 600; }

/* ── THE BOOKS ───────────────────────────────────── */
#book { background: var(--navy); }
.book-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.book-cover {
  position: relative;
}
.book-cover-inner {
  background: linear-gradient(135deg, var(--deep) 0%, #1a2540 100%);
  border: 1px solid var(--border);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: -12px 12px 40px rgba(0,0,0,0.5), 12px -4px 0 rgba(74,111,165,0.15);
  position: relative;
  overflow: hidden;
}
.book-cover-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: url('prephysics-logo.jpg') center/cover no-repeat;
  opacity: 0.04;
}
.book-cover-inner img {
  position: relative; z-index: 1;
  width: 90px; height: 90px; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(74,111,165,0.4);
  margin-bottom: 1.5rem;
}
.book-cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600; line-height: 1.25;
  color: var(--cream); margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}
.book-cover-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-style: italic; font-weight: 300;
  color: var(--muted); margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.book-cover-authors {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-lt); position: relative; z-index: 1;
}
.book-cover-badge {
  display: inline-block; margin-top: 1.5rem;
  background: var(--red); color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 1px;
  position: relative; z-index: 1;
}
.book-meta { display: flex; flex-direction: column; gap: 1.2rem; }
.book-meta p {
  color: rgba(240,244,248,0.8); font-size: 1rem; line-height: 1.8;
}
.book-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.stat {
  padding: 1.2rem 1.5rem; border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat:nth-child(2n) { border-right: none; }
.stat:nth-last-child(-n+2) { border-bottom: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300; color: var(--blue-lt);
  display: block;
}
.stat-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.book-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-two-line {
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  justify-content: center;
  align-items: center;
  min-width: 320px;
}
.btn-two-line span { display: block; }


/* books refresh */
.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}
.book-panel {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  padding: 1.4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.book-cover-real {
  padding: 0.9rem;
}
.book-cover-real img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 22px 44px rgba(0,0,0,0.30);
}
.book-kicker {
  font-family:'Josefin Sans',sans-serif;
  font-size:0.72rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:0.7rem;
}
.book-heading {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  margin: 0 0 0.8rem;
}
.book-badges {
  display:flex;
  flex-wrap:wrap;
  gap:0.65rem;
  margin-bottom:1rem;
}
.book-chip {
  display:inline-flex;
  align-items:center;
  padding:0.45rem 0.8rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.05);
  color:var(--text);
  font-family:'Josefin Sans',sans-serif;
  font-size:0.78rem;
  letter-spacing:0.03em;
}
.book-chip-live {
  background: rgba(154, 34, 38, 0.18);
  border-color: rgba(154, 34, 38, 0.42);
}
.book-chip-soon {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.42);
}


/* ── PUBLICATIONS ────────────────────────────────── */
#publications { background: var(--deep); }
.pub-intro {
  font-size: 1rem; color: var(--muted); max-width: 620px;
  margin-bottom: 3rem;
}
.pub-grid {
  display: grid; gap: 1rem;
}
.pub-item {
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: 1.25rem; align-items: start;
  padding: 1.4rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: all 0.25s;
  cursor: default;
}
.pub-item[href] {
  cursor: pointer;
}
.pub-item[href]:hover {
  background: rgba(74,111,165,0.09);
  border-left-color: var(--blue);
  transform: translateX(3px);
}
.pub-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 300;
  color: var(--blue); line-height: 1; padding-top: 0.1rem;
  text-align: right;
}
.pub-body { min-width: 0; }
.pub-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--cream); margin-bottom: 0.25rem; line-height: 1.35;
}
.pub-authors {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
}
.pub-layer {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-lt);
  white-space: nowrap; padding-top: 0.15rem;
  text-align: right;
}
.pub-doi {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.08em;
  color: var(--red); margin-top: 0.3rem;
}
.pub-forthcoming {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-style: normal;
}
.zenodo-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 2.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-lt); text-decoration: none;
  border-bottom: 1px solid rgba(106,143,197,0.3);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}
.zenodo-link:hover { color: var(--cream); border-color: var(--cream); }

/* ── AUTHORS ─────────────────────────────────────── */
#authors { background: var(--navy); }
.authors-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; margin-top: 3rem;
}
.author-card {
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: rgba(74,111,165,0.04);
  position: relative;
}
.author-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--blue);
}
.author-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; color: var(--cream);
  margin-bottom: 0.15rem;
}
.author-role {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 1.5rem;
}
.author-bio {
  font-size: 0.95rem; color: rgba(240,244,248,0.75);
  line-height: 1.8; margin-bottom: 1.5rem;
}
.author-meta {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.author-meta span {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.author-meta a {
  color: var(--blue-lt); text-decoration: none;
}
.author-meta a:hover { color: var(--cream); }

/* ── ABOUT FIELD ─────────────────────────────────── */
#field { background: var(--deep); }
.field-body {
  font-size: 1.05rem; line-height: 1.9;
  color: rgba(240,244,248,0.82);
  max-width: 720px;
}
.field-body p { margin-bottom: 1.2rem; }
.highlight-box {
  margin: 2.5rem 0; padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  background: rgba(74,111,165,0.07);
}
.highlight-box p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-style: italic; font-weight: 300;
  color: var(--cream); line-height: 1.6; margin: 0;
}

/* ── CONTACT & COPYRIGHT ─────────────────────────── */
#contact { background: var(--navy); }
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}
.contact-block h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 1.2rem;
}
.contact-block p, .contact-block a {
  font-size: 0.95rem; color: rgba(240,244,248,0.75);
  line-height: 1.8; display: block; text-decoration: none;
}
.contact-block a:hover { color: var(--blue-lt); }
.copyright-block {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.cc-badge {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem; letter-spacing: 0.05em;
  color: var(--blue-lt); font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: #070912;
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(74,111,165,0.15);
}
.footer-logo {
  display: flex; align-items: center; gap: 0.75rem;
}
.footer-logo img {
  height: 32px; width: 32px; object-fit: cover; border-radius: 50%;
  opacity: 0.7;
}
.footer-wordmark {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.footer-copy {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(138,154,184,0.5);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 820px) {
  nav { padding: 0.75rem 1.5rem; }
  nav ul { display: none; }
  .why-grid, .book-layout, .authors-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .book-layout { gap: 3rem; }

  .book-panel {
    grid-template-columns: 1fr;
  }
  .books-grid {
    gap: 1.6rem;
  }

  .container { padding: 0 1.5rem; }
  section { padding: 4rem 0; }
}

/* ── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: none;
}

.lang-switch { display:flex; align-items:center; gap:0.35rem; margin-left:0.5rem; flex:0 0 auto; background:rgba(6,12,28,.6); border:1px solid rgba(255,255,255,.14); border-radius:999px; padding:0.28rem 0.36rem; }
.lang-switch a { font-family:'Josefin Sans', sans-serif; font-size:0.75rem; letter-spacing:0.12em; text-transform:uppercase; color: var(--cream); text-decoration:none; opacity:0.82; padding:0.18rem 0.38rem; border:1px solid rgba(74,111,165,0.30); border-radius:999px; }
.lang-switch a.active { opacity:1; background:rgba(74,111,165,0.18); }

.impressum-box {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.4rem 1.4rem 0;
  color: rgba(240,244,248,0.92);
}
.impressum-box p { margin-bottom: 1rem; }
.impressum-box a { color: var(--blue-lt); }
section[id] { scroll-margin-top: 90px; }
@media (max-width: 1350px) {
  nav { padding: 0.72rem 0.72rem; }
  nav ul { gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
  nav ul a { font-size: 0.69rem; letter-spacing: 0.09em; }
  .lang-switch { margin-left: 0.35rem; }
  .lang-switch a { font-size: 0.68rem; letter-spacing: 0.08em; padding: 0.16rem 0.34rem; }
}

@media (max-width: 1000px) {
  nav { flex-wrap: wrap; justify-content: center; }
  nav ul { justify-content:center; }
  .lang-switch { margin-left:0; }
  .hero-content { padding-top: 6rem; }
}



/* ── V4 PREMIUM VISIBLE REFINEMENT ───────────────── */
html { text-rendering: optimizeLegibility; }
body {
  background:
    radial-gradient(circle at top, rgba(74,111,165,0.14), transparent 30%),
    linear-gradient(180deg, #07101b 0%, #0a0d1a 32%, #0b1020 100%);
}
nav {
  padding: 0.9rem 1.2rem;
  background: rgba(5,10,24,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 44px rgba(0,0,0,0.22);
}
.nav-logo img {
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
nav ul a {
  padding: 0.62rem 0.96rem;
  border-color: rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
nav ul a:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
#hero {
  padding: 5rem 1rem 2.5rem;
}
.hero-overlay {
  background:
    radial-gradient(circle at center, rgba(67,105,170,0.10), transparent 32%),
    linear-gradient(180deg, rgba(8,13,29,0.18) 0%, rgba(8,13,29,0.68) 58%, rgba(8,13,29,0.88) 100%);
}
.hero-content {
  width: min(100%, 1040px);
  max-width: 1040px;
  padding: 2.8rem 2.4rem 3rem;
  background: linear-gradient(180deg, rgba(8,17,34,0.52), rgba(8,17,34,0.30));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 32px;
  backdrop-filter: blur(12px);
  box-shadow: 0 34px 100px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02) 40%, rgba(74,111,165,0.18) 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;
}
.hero-logo {
  width: 142px; height: 142px;
  margin-bottom: 1.7rem;
}
.hero-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  color: #d7e6ff;
}
.hero-title {
  font-size: clamp(3.2rem, 6.8vw, 5.9rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.65rem;
  text-shadow: 0 4px 42px rgba(0,0,0,0.46);
}
.hero-subtitle {
  max-width: 820px;
  font-size: clamp(1.07rem, 2.1vw, 1.42rem);
  color: rgba(240,244,248,0.88);
  margin-bottom: 1.75rem;
}
.hero-trust {
  gap: 0.9rem;
  margin-bottom: 2.15rem;
}
.hero-trust .trust-chip {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}
.hero-ctas, .hero-actions { gap: 1rem; }
.btn {
  min-height: 50px;
  padding: 0.98rem 1.5rem;
  border-radius: 14px;
  letter-spacing: 0.17em;
}
.btn-primary {
  background: linear-gradient(180deg, #6697e2 0%, #4a6fa5 100%);
  box-shadow: 0 18px 34px rgba(74,111,165,0.34);
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
}
.section-title {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  margin-bottom: 1rem;
}
.section-intro, .pub-intro {
  color: rgba(240,244,248,0.80);
}
.book-panel {
  padding: 1.75rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 70px rgba(0,0,0,0.22);
}
.book-cover-real img {
  border: 1px solid rgba(255,255,255,0.08);
}
.book-chip {
  color: var(--cream);
  background: rgba(255,255,255,0.06);
}
.pub-item {
  border-radius: 22px;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 18px 42px rgba(0,0,0,0.10);
}
.pub-item[href]:hover {
  transform: translateY(-2px);
  border-left-color: rgba(201,168,76,0.75);
  box-shadow: 0 28px 60px rgba(0,0,0,0.16);
}
.author-card, .contact-card {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.10);
}
.author-card::before {
  height: 1px;
  background: linear-gradient(90deg, var(--blue-lt), transparent);
}
@media (max-width: 900px) {
  nav { padding: 0.75rem 0.75rem; }
  nav ul { gap: 0.4rem; }
  nav ul a { font-size: 0.66rem; padding: 0.52rem 0.72rem; }
  #hero { padding-top: 5.5rem; }
  .hero-content { padding: 2rem 1.15rem 2.2rem; border-radius: 24px; }
  .hero-content::before { border-radius: 24px; }
  .hero-logo { width: 112px; height: 112px; }
  .hero-trust { gap: 0.6rem; }
  .hero-trust .trust-chip { width: 100%; justify-content: center; }
  .book-panel { grid-template-columns: 1fr; gap: 1.35rem; }
  .authors-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .pub-item { grid-template-columns: 36px 1fr; }
  .pub-meta { grid-column: 2; }
}


/* Research profile signature buttons */
.profile-signature-row {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:0.85rem; margin-top:1.15rem;
}
.profile-signature {
  display:inline-flex; align-items:center; gap:0.72rem;
  min-height:48px; padding:0.62rem 1.05rem 0.62rem 0.7rem;
  border-radius:999px; text-decoration:none;
  font-family:'Josefin Sans', sans-serif; font-size:0.7rem;
  letter-spacing:0.16em; text-transform:uppercase;
  color:var(--cream); background:rgba(255,255,255,0.055);
  border:1px solid rgba(255,255,255,0.16);
  box-shadow:0 16px 36px rgba(0,0,0,0.18);
  transition:transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.profile-signature:hover {
  transform:translateY(-2px); background:rgba(255,255,255,0.09);
  border-color:rgba(255,255,255,0.32); box-shadow:0 22px 48px rgba(0,0,0,0.24);
}
.profile-signature .signature-mark {
  width:34px; height:34px; border-radius:50%; display:inline-flex;
  align-items:center; justify-content:center; flex:0 0 auto;
  font-family:'Josefin Sans', sans-serif; font-weight:600;
  letter-spacing:0; font-size:1.05rem; color:#fff;
  border:1px solid rgba(255,255,255,0.22);
}
.profile-signature.philpeople .signature-mark {
  background:linear-gradient(180deg,#9a2f2f,#5f1717);
}
.profile-signature.zenodo .signature-mark {
  background:linear-gradient(180deg,#4f86c6,#1f4f82);
}
.profile-signature .signature-text { line-height:1; }

@media (max-width: 700px) {
  .profile-signature { width:100%; justify-content:flex-start; }
}



.lang-switch{position:static;top:auto;right:auto;z-index:auto;box-shadow:none;} .lang-switch a{backdrop-filter:none;}


.lang-switch { display:inline-flex; gap:10px; align-items:center; margin-left:18px; }
.lang-switch a { font-size:12px; letter-spacing:.18em; text-transform:uppercase; opacity:1 !important; padding:0.48rem 0.72rem; border-radius:999px; border:1px solid rgba(255,255,255,.24); background:rgba(255,255,255,.06); }
.hero-ctas .btn-lang { background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.35); }
@media (max-width: 1180px) { nav { align-items:flex-start; } nav ul { justify-content:flex-start; } }
@media (max-width: 980px) { .lang-switch { display:none; } nav ul { margin-left:0; } }



nav { gap: 1rem; }
nav ul { gap: 0.8rem !important; margin-left: 1.25rem !important; }
nav ul a {
  padding: 0.62rem 0.98rem !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.07) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  font-size: 0.76rem !important;
  letter-spacing: 0.11em !important;
}
nav ul a:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.30) !important;
}
.lang-switch {
  margin-left: 0.85rem !important;
  padding: 0.32rem 0.38rem !important;
  background: rgba(8,14,30,0.72) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
}
.lang-switch a {
  padding: 0.34rem 0.54rem !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}
.lang-switch a.active {
  background: rgba(74,111,165,0.28) !important;
  border-color: rgba(120,170,255,0.42) !important;
}
@media (max-width: 1180px) {
  nav { gap: 0.7rem; }
  nav ul { gap: 0.55rem !important; margin-left: 0.6rem !important; }
  nav ul a { padding: 0.52rem 0.78rem !important; font-size: 0.71rem !important; letter-spacing: 0.09em !important; }
}
@media (max-width: 980px) {
  nav ul { margin-left: 0 !important; }
}



:root { --text: var(--cream); }
.hero-kicker {
  display:inline-flex; align-items:center; gap:0.55rem; flex-wrap:wrap;
  padding:0.55rem 1rem; border-radius:999px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 10px 30px rgba(0,0,0,0.16); margin-bottom:1.15rem;
  font-family:'Josefin Sans',sans-serif; font-size:0.75rem; letter-spacing:0.16em; text-transform:uppercase; color:#d7dfef;
}
.hero-kicker .dot{width:0.38rem;height:0.38rem;border-radius:50%;background:var(--gold);display:inline-block;box-shadow:0 0 12px rgba(201,168,76,.45);}
.hero-subtitle {max-width:760px; font-size:clamp(1.02rem,2.2vw,1.45rem); color:rgba(240,244,248,0.82); margin-bottom:1.5rem;}
.hero-trust {display:flex; flex-wrap:wrap; gap:0.75rem; justify-content:center; margin:0 auto 2rem; max-width:920px;}
.hero-trust .trust-chip {display:inline-flex; align-items:center; gap:0.55rem; padding:0.7rem 1rem; border-radius:999px; background:rgba(10,17,29,0.5); border:1px solid rgba(255,255,255,0.12); font-family:'Josefin Sans',sans-serif; font-size:0.78rem; letter-spacing:0.03em; color:#e8edf8; box-shadow:0 16px 40px rgba(0,0,0,0.16);}
.hero-trust .trust-chip strong{font-weight:600;color:#fff;}
.hero-actions {display:flex; flex-wrap:wrap; justify-content:center; gap:0.9rem;}
.btn {box-shadow:0 14px 34px rgba(0,0,0,0.18);}
.section-intro {max-width:820px; color:rgba(240,244,248,0.82);}
.book-panel {padding:1.6rem; border:1px solid rgba(255,255,255,0.1); box-shadow:0 28px 70px rgba(0,0,0,0.22);}
.book-panel:hover, .pub-item:hover {transform:translateY(-2px);}
.book-kicker {letter-spacing:0.14em;}
.book-heading {line-height:1.18;}
.book-chip {color:var(--cream);}
.pub-list {display:grid; gap:1rem;}
.pub-item {border-radius:20px; box-shadow:0 18px 48px rgba(0,0,0,0.12);}
.pub-item:hover {border-left-color:var(--gold); background:rgba(255,255,255,0.045); box-shadow:0 24px 60px rgba(0,0,0,0.18);}
.author-card, .contact-card {box-shadow:0 20px 56px rgba(0,0,0,0.16);}
.footer-logo img, .hero-logo, .nav-logo img {filter:drop-shadow(0 14px 32px rgba(0,0,0,.22));}
@media (max-width: 900px) {
  .hero-trust {gap:0.6rem;}
  .hero-trust .trust-chip {font-size:0.72rem; padding:0.62rem 0.9rem;}
}
@media (max-width: 700px) {
  .hero-kicker {font-size:0.68rem; letter-spacing:0.13em;}
  .hero-content {padding:1.3rem 1.15rem 3rem;}
  .book-panel {padding:1.15rem;}
}



.hero-book-spotlight {
  width: min(210px, 46vw);
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 28px 72px rgba(0,0,0,0.42), 0 0 72px rgba(201,168,76,0.16);
  margin: 0 auto 1.8rem;
}
.hero-title em { color: #d8e6ff; }
.profile-signature {
  min-height: 58px;
  padding: 0.56rem 1.18rem 0.56rem 0.56rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.20);
}
.profile-signature .signature-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.profile-signature .signature-logo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.profile-signature.zenodo .signature-logo-wrap {
  width: 112px;
  border-radius: 12px;
  background: #0b65c2;
}
.profile-signature.zenodo .signature-logo-wrap img { object-fit: cover; }
.profile-signature .signature-text { font-weight: 600; letter-spacing: 0.16em; }
@media (max-width: 700px) {
  .hero-book-spotlight { width: min(180px, 54vw); border-radius: 18px; }
  .profile-signature.zenodo .signature-logo-wrap { width: 96px; }
}


/* v10 SEO subpage additions */
body.subpage { background: var(--navy); }
.sub-hero { min-height: 54vh; padding-top: 8rem; padding-bottom: 4rem; position: relative; display:flex; align-items:center; overflow:hidden; }
.sub-hero::before { content:""; position:absolute; inset:0; background: url('hero-bg.png') center/cover no-repeat; filter: brightness(.45) saturate(.85); transform:scale(1.05); }
.sub-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,13,26,.55), rgba(10,13,26,.95)); }
.sub-hero .container { position:relative; z-index:2; }
.breadcrumb { font-family:'Josefin Sans',sans-serif; font-size:.68rem; letter-spacing:.18em; text-transform:uppercase; color:var(--blue-lt); margin-bottom:1rem; }
.breadcrumb a { color:var(--blue-lt); text-decoration:none; }
.sub-title { font-family:'Cormorant Garamond',serif; font-weight:300; font-size:clamp(2.4rem,5vw,4.2rem); line-height:1.1; max-width:850px; }
.sub-lead { max-width:760px; margin-top:1.2rem; color:rgba(240,244,248,.78); font-size:1.08rem; }
.seo-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:1.4rem; margin-top:2.4rem; }
.seo-card { background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.12); padding:1.4rem; border-radius:8px; }
.seo-card h3 { font-family:'Josefin Sans',sans-serif; font-size:.8rem; letter-spacing:.16em; text-transform:uppercase; color:var(--cream); margin-bottom:.7rem; }
.seo-card p { color:rgba(240,244,248,.72); font-size:.95rem; line-height:1.65; }
.page-panel { background:rgba(74,111,165,.06); border-left:2px solid var(--blue); padding:1.8rem 2rem; margin:2rem 0; }
.page-panel strong { color:var(--cream); }
.sub-nav-links { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:2rem; }
.book-page-list { display:grid; grid-template-columns:1fr; gap:2rem; }
.book-full { display:grid; grid-template-columns:minmax(160px,240px) 1fr; gap:2rem; padding:2rem; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.035); border-radius:10px; }
.book-full img { width:100%; border-radius:5px; box-shadow:0 16px 50px rgba(0,0,0,.35); }
.book-full h2 { font-family:'Cormorant Garamond',serif; font-size:2rem; font-weight:300; line-height:1.15; margin-bottom:.5rem; }
.book-meta-line { font-family:'Josefin Sans',sans-serif; font-size:.72rem; letter-spacing:.13em; text-transform:uppercase; color:var(--blue-lt); margin-bottom:.9rem; }
.clean-list { margin:1rem 0 0 1.2rem; color:rgba(240,244,248,.76); }
.clean-list li { margin:.45rem 0; }
.small-note { color:var(--muted); font-size:.92rem; }
@media (max-width:820px) { .seo-grid{grid-template-columns:1fr;} .book-full{grid-template-columns:1fr;} .sub-hero{padding-top:7rem;} }


/* v13: unified books presentation on homepage and books pages */
.subpage #current-books{padding-top:4rem;}
.subpage #current-books .container{max-width:1180px;}
.subpage .books-grid{display:grid;gap:1.35rem;}
.subpage .book-panel{background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.12);border-radius:28px;box-shadow:0 28px 70px rgba(0,0,0,.22);}
.subpage .book-cover-real{background:linear-gradient(135deg,rgba(74,144,226,.24),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.13);}


/* v15: identical research-profile button appearance everywhere */
footer .profile-signature-row, #contact .profile-signature-row { justify-content:center !important; align-items:center !important; gap:0.85rem !important; margin-top:1.15rem !important; }

/* v18: hero Book 3 cover frame exactly matched to the book-section card */
.hero-book-frame {
  display: inline-block;
  width: min(225px,58vw);
  padding: 0.9rem;
  border-radius: 0;
  background: linear-gradient(135deg, var(--deep) 0%, #1a2540 100%);
  border: 1px solid var(--border);
  box-shadow: -12px 12px 40px rgba(0,0,0,0.5), 12px -4px 0 rgba(74,111,165,0.15), inset 0 0 0 1px rgba(255,255,255,.04);
  margin: 0 auto 1.8rem;
  position: relative;
  overflow: hidden;
}
.hero-book-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(74,111,165,0.10);
  pointer-events: none;
}
.hero-book-frame .hero-book-spotlight {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 18px;
  border: none;
  box-shadow: 0 22px 44px rgba(0,0,0,0.30);
}
@media (max-width: 700px){.hero-book-frame{width:min(185px,56vw); padding:0.65rem; border-radius:0}.hero-book-frame .hero-book-spotlight{border-radius:16px}}

