/* ======================================================================
   Wonder (and Wander) in the City — Editorial academic style
   ====================================================================== */

.witc-jena-root{
  /* Default palette: warm paper */
  --bg: #f5f1ea;
  --bg-deep: #ece5d8;
  --ink: #1a1a1a;
  --ink-soft: #4a4540;
  --ink-faint: #7a7268;
  --rule: #c9beac;
  --paper: #fbf8f1;
  --accent: #b54a2c;          /* terracotta */
  --accent-soft: #d97757;
  --highlight: #e8d9b8;

  /* Profile colors (matched to poster) */
  --profile-novel: #f0c75e;
  --profile-transformative: #c97ec5;
  --profile-harmonious: #6a92cc;
  --profile-negative: #e26956;
  --profile-disengaged: #b8b0a4;

  /* Typography */
  --font-serif: "Spectral", "Source Serif Pro", "Charter", Georgia, serif;
  --font-sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --font-display: "Spectral", "Source Serif Pro", Georgia, serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Density */
  --section-pad-y: clamp(80px, 12vh, 160px);
  --col-gap: 48px;
  --baseline: 1.65;

  /* Layout */
  --measure: 64ch;
  --content-max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
}

.witc-jena-root[data-palette="cool"]{
  --bg: #eef1f5;
  --bg-deep: #dde3eb;
  --ink: #14181f;
  --ink-soft: #3b4250;
  --ink-faint: #6a7280;
  --rule: #b9c2cf;
  --paper: #f7f9fc;
  --accent: #2c4f8a;
  --accent-soft: #547bb8;
  --highlight: #d4dff0;
}

.witc-jena-root[data-palette="mono"]{
  --bg: #f3f3f1;
  --bg-deep: #e6e6e3;
  --ink: #0d0d0d;
  --ink-soft: #2e2e2e;
  --ink-faint: #6e6e6e;
  --rule: #bdbdbb;
  --paper: #fafaf8;
  --accent: #1a1a1a;
  --accent-soft: #4a4a4a;
  --highlight: #e0dfdb;
}

.witc-jena-root[data-palette="ink"]{
  --bg: #14171c;
  --bg-deep: #0d0f13;
  --ink: #e9e6df;
  --ink-soft: #b8b3a8;
  --ink-faint: #8a857a;
  --rule: #2e3239;
  --paper: #1a1d23;
  --accent: #e8a25c;
  --accent-soft: #d68a3f;
  --highlight: #2a2e36;
}

.witc-jena-root[data-density="compact"]{
  --section-pad-y: clamp(56px, 8vh, 100px);
  --col-gap: 32px;
  --baseline: 1.55;
}
.witc-jena-root[data-density="airy"]{
  --section-pad-y: clamp(120px, 18vh, 240px);
  --col-gap: 64px;
  --baseline: 1.78;
}

.witc-jena-root[data-font="sans"]{
  --font-display: var(--font-sans);
}
.witc-jena-root[data-font="mixed"]{
  /* default already mixes */
}
.witc-jena-root[data-font="serif"]{
  --font-sans: var(--font-serif);
}

/* ----- Reset ------ */
.witc-jena-root *, .witc-jena-root *::before, .witc-jena-root *::after{ box-sizing: border-box; }
.witc-jena-root, .witc-jena-root{ margin: 0; padding: 0; }
.witc-jena-root{ scroll-behavior: smooth; }
.witc-jena-root{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: var(--baseline);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  transition: background-color 400ms ease, color 400ms ease;
}
.witc-jena-root img{ max-width: 100%; display: block; }
.witc-jena-root a{ color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; transition: opacity 200ms; }
.witc-jena-root a:hover{ opacity: 0.7; }

/* ----- Layout shell ----- */
.witc-jena-root .shell{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.witc-jena-root section{
  padding: var(--section-pad-y) 0;
  position: relative;
}

.witc-jena-root .section-marker{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.witc-jena-root .section-marker::before{
  content: "";
  width: 32px;
  height: 1px;
  background: var(--ink-faint);
}

.witc-jena-root h1, .witc-jena-root h2, .witc-jena-root h3, .witc-jena-root h4{
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.witc-jena-root h2{
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin-bottom: 0.7em;
  font-weight: 400;
}
.witc-jena-root h3{
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 0.5em;
}
.witc-jena-root h4{
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}

.witc-jena-root p{
  max-width: var(--measure);
  margin: 0 0 1em;
  text-wrap: pretty;
  color: var(--ink-soft);
}

.witc-jena-root p strong, .witc-jena-root .body strong{
  color: var(--ink);
  font-weight: 600;
}

/* Pull quote */
.witc-jena-root .pull{
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}
.witc-jena-root .pull em{ font-style: italic; color: var(--accent); }

/* Drop cap option */
.witc-jena-root .dropcap::first-letter{
  font-family: var(--font-display);
  font-size: 5.4em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.08em 0 -0.04em;
  font-weight: 500;
  color: var(--accent);
}

/* Rules */
.witc-jena-root hr.rule{
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* Two-col layout */
.witc-jena-root .two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: start;
}
.witc-jena-root .three-col{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
@media (max-width: 880px){
  .witc-jena-root .two-col, .witc-jena-root .three-col{ grid-template-columns: 1fr; gap: 32px; }
}

.witc-jena-root .aside-grid{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--col-gap);
  align-items: start;
}
@media (max-width: 720px){
  .witc-jena-root .aside-grid{ grid-template-columns: 1fr; gap: 16px; }
}

/* Caption */
.witc-jena-root .caption{
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  margin-top: 10px;
  max-width: 50ch;
}

/* Stat / number callout */
.witc-jena-root .stat{
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.witc-jena-root .stat-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* Tags / chips */
.witc-jena-root .chip{
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* tooltip */
.witc-jena-root .tt{
  border-bottom: 1px dotted var(--ink-faint);
  cursor: help;
  position: relative;
}
.witc-jena-root .tt::after{
  content: attr(data-tt);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  width: max-content;
  max-width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms, transform 180ms;
  z-index: 50;
  text-align: left;
  white-space: normal;
}
.witc-jena-root .tt:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Image with edge */
.witc-jena-root .figure{
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 16px;
}
.witc-jena-root .figure img{ width: 100%; height: auto; }
.witc-jena-root .figure figcaption{
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: 12px;
  letter-spacing: 0.01em;
}

/* progressbar at top */
.witc-jena-root .progress-bar{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 100;
  transition: width 80ms linear;
  width: 0%;
}

/* Top label / running header */
.witc-jena-root .runner{
  position: fixed;
  top: 24px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 90;
  pointer-events: none;
}
.witc-jena-root .runner span{ background: var(--bg); padding: 2px 6px; }

/* nav dots */
.witc-jena-root .nav-dots{
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 80;
}
.witc-jena-root .nav-dots button{
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 200ms;
  position: relative;
}
.witc-jena-root .nav-dots button.active{
  background: var(--ink);
  border-color: var(--ink);
}
.witc-jena-root .nav-dots button:hover::after{
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 2px;
}
@media (max-width: 720px){ .witc-jena-root .nav-dots{ display: none; } }

/* fade-in on scroll */
.witc-jena-root .reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(.2,.6,.2,1), transform 900ms cubic-bezier(.2,.6,.2,1);
}
.witc-jena-root .reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* hero */
.witc-jena-root .hero{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.witc-jena-root .hero-art{
  position: absolute;
  inset: 0;
  background-image: url(/wonderinthecity/jena-content/images/minjung-kim-predestination.webp);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(1.05) contrast(1.02);
  z-index: 0;
  mix-blend-mode: multiply;
}
.witc-jena-root[data-palette="ink"] .hero-art{ opacity: 0.32; mix-blend-mode: screen; }

.witc-jena-root .hero-inner{ position: relative; z-index: 1; }

.witc-jena-root .hero-eyebrow{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.witc-jena-root .hero-eyebrow .dot{
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 10px 1px;
  vertical-align: middle;
}


/* Institutional logo strip — Wonder in the City patch v1.012 */
.witc-jena-root .hero-kicker-lockup{
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
}
.witc-jena-root .hero-eyebrow{
  white-space: nowrap;
}
.witc-jena-root .hero-logo-strip{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: stretch;
  column-gap: clamp(18px, 2.4vw, 34px);
  margin-top: 8px;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.witc-jena-root .hero-logo-strip a{
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  border-bottom: 0 !important;
}
.witc-jena-root .hero-logo-strip a:first-child{ justify-content: flex-start; }
.witc-jena-root .hero-logo-strip a:last-child{ justify-content: flex-end; }
.witc-jena-root .hero-logo-strip img{
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}
.witc-jena-root .hero-logo-strip img.hero-logo-iaea{ max-width: 92px !important; max-height: 30px !important; }
.witc-jena-root .hero-logo-strip img.hero-logo-ens{ max-width: 132px !important; max-height: 34px !important; }
.witc-jena-root .hero-logo-strip img.hero-logo-arts{ max-width: 104px !important; max-height: 36px !important; }
.witc-jena-root .hero-logo-strip img.hero-logo-hu{ max-width: 45px !important; max-height: 45px !important; }

@media (max-width: 720px) and (orientation: portrait){
  .witc-jena-root .hero-kicker-lockup{
    width: 100%;
    max-width: 100%;
  }
  .witc-jena-root .hero-eyebrow{
    white-space: normal;
    font-size: 9px;
    letter-spacing: 0.16em;
    line-height: 1.6;
  }
  .witc-jena-root .hero-eyebrow .dot{
    width: 4px;
    height: 4px;
    margin: 0 6px 1px;
  }
  .witc-jena-root .hero-logo-strip{
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: stretch;
    column-gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 7px;
    margin-bottom: 26px;
  }
  .witc-jena-root .hero-logo-strip a{
    width: 100%;
    min-width: 0;
  }
  .witc-jena-root .hero-logo-strip a:first-child{ justify-content: flex-start; }
  .witc-jena-root .hero-logo-strip a:last-child{ justify-content: flex-end; }
  .witc-jena-root .hero-logo-strip img.hero-logo-iaea{ max-width: 46px !important; max-height: 16px !important; }
  .witc-jena-root .hero-logo-strip img.hero-logo-ens{ max-width: 66px !important; max-height: 18px !important; }
  .witc-jena-root .hero-logo-strip img.hero-logo-arts{ max-width: 54px !important; max-height: 19px !important; }
  .witc-jena-root .hero-logo-strip img.hero-logo-hu{ max-width: 24px !important; max-height: 24px !important; }
}

@media (max-width: 1024px) and (orientation: landscape){
  .witc-jena-root .hero-logo-strip{
    display: none !important;
  }
}

.witc-jena-root .hero-title{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 14vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0.25em 0 0.15em;
  color: var(--ink);
}
.witc-jena-root .hero-title em{
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.witc-jena-root .hero-sub{
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0.8em 0 0;
  text-wrap: balance;
}

.witc-jena-root .hero-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 48px;
}
.witc-jena-root .hero-meta-block{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.witc-jena-root .hero-meta-block strong{
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 2px;
}

/* Wonder letter animation */
@keyframes wonderIn{
  0%{ opacity: 0; transform: translateY(40%) rotate(-4deg); filter: blur(8px); }
  60%{ opacity: 1; filter: blur(0); }
  100%{ opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}
.witc-jena-root .wonder-letter{
  display: inline-block;
  animation: wonderIn 1100ms cubic-bezier(.2,.7,.2,1) both;
}
.witc-jena-root .wonder-letter:nth-child(1){ animation-delay: 100ms; }
.witc-jena-root .wonder-letter:nth-child(2){ animation-delay: 220ms; }
.witc-jena-root .wonder-letter:nth-child(3){ animation-delay: 340ms; }
.witc-jena-root .wonder-letter:nth-child(4){ animation-delay: 460ms; }
.witc-jena-root .wonder-letter:nth-child(5){ animation-delay: 580ms; }
.witc-jena-root .wonder-letter:nth-child(6){ animation-delay: 700ms; }

@keyframes witcFadeUp{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}
.witc-jena-root .fade-up{ animation: witcFadeUp 1200ms cubic-bezier(.2,.6,.2,1) both; }
.witc-jena-root .fade-up.d1{ animation-delay: 900ms; }
.witc-jena-root .fade-up.d2{ animation-delay: 1100ms; }
.witc-jena-root .fade-up.d3{ animation-delay: 1300ms; }
.witc-jena-root .fade-up.d4{ animation-delay: 1500ms; }

/* Site cards */
.witc-jena-root .sites-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 880px){ .witc-jena-root .sites-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .witc-jena-root .sites-grid{ grid-template-columns: 1fr; } }

.witc-jena-root .site-card{
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
  position: relative;
  transition: transform 400ms ease, box-shadow 400ms ease;
  cursor: pointer;
}
.witc-jena-root .site-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -20px rgba(0,0,0,0.18);
}
.witc-jena-root .site-card-img{
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  background-size: cover;
  background-position: center;
  position: relative;
}
.witc-jena-root .site-card-img::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
}
.witc-jena-root .site-card-body{ padding: 18px 20px 22px; }
.witc-jena-root .site-card-name{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 4px;
  color: var(--ink);
}
.witc-jena-root .site-card-meta{
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.witc-jena-root .site-card-type{
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}

/* The 5 profiles bar visualization */
.witc-jena-root .profiles-viz{
  margin-top: 48px;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(24px, 4vw, 56px);
}
.witc-jena-root .profile-row{
  display: grid;
  grid-template-columns: 200px 1fr 80px;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.witc-jena-root .profile-row:last-child{ border-bottom: 0; }
.witc-jena-root .profile-row.active{ background: var(--bg-deep); margin: 0 -24px; padding: 18px 24px; }
@media (max-width: 720px){
  .witc-jena-root .profile-row{ grid-template-columns: 1fr; gap: 6px; }
  .witc-jena-root .profile-row.active{ margin: 0 -16px; padding: 16px; }
}

.witc-jena-root .profile-name{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.witc-jena-root .profile-swatch{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.witc-jena-root .profile-bar{
  height: 36px;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.witc-jena-root .profile-bar-fill{
  height: 100%;
  transition: width 1400ms cubic-bezier(.2,.6,.2,1), opacity 300ms;
  position: relative;
}
.witc-jena-root .profile-bar-scale{
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}
.witc-jena-root .profile-bar-scale span{
  flex: 1;
  border-right: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  padding: 2px 4px;
}
.witc-jena-root .profile-bar-scale span:last-child{ border-right: 0; }
.witc-jena-root .profile-value{
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  text-align: right;
  letter-spacing: -0.01em;
}
.witc-jena-root .profile-detail{
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 8px 0 0 26px;
  max-width: 70ch;
  display: none;
}
.witc-jena-root .profile-row.active .profile-detail{ display: block; animation: witcFadeUp 400ms ease; }

/* Wonder slider — interactive demo */
.witc-jena-root .wonder-demo{
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 56px);
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}
.witc-jena-root .wonder-demo-stage{
  height: 320px;
  position: relative;
  margin-bottom: 32px;
  background: var(--bg-deep);
  overflow: hidden;
}
.witc-jena-root .wonder-demo-art{
  position: absolute;
  inset: 0;
  background: url(/wonderinthecity/jena-content/images/minjung-kim-predestination.webp) center/cover;
  transition: filter 600ms ease, transform 600ms ease, opacity 600ms ease;
}
.witc-jena-root .wonder-demo-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 4vw, 48px);
  color: var(--paper);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  pointer-events: none;
  transition: opacity 400ms;
  text-align: center;
  padding: 0 32px;
}

.witc-jena-root input[type="range"].wonder-slider{
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--rule);
  outline: none;
  margin: 16px 0;
}
.witc-jena-root input[type="range"].wonder-slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  border: 3px solid var(--paper);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.witc-jena-root input[type="range"].wonder-slider::-moz-range-thumb{
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: grab;
  border: 3px solid var(--paper);
}
.witc-jena-root .wonder-slider-row{
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* CE Regression bars */
.witc-jena-root .ce-grid{
  display: grid;
  gap: 14px;
  margin-top: 40px;
}
.witc-jena-root .ce-row{
  display: grid;
  grid-template-columns: 220px 1fr 70px;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.witc-jena-root .ce-row:last-child{ border-bottom: 0; }
@media (max-width: 720px){
  .witc-jena-root .ce-row{ grid-template-columns: 1fr 70px; gap: 6px; }
  .witc-jena-root .ce-row > :first-child{ grid-column: 1 / -1; }
}
.witc-jena-root .ce-name{ font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.witc-jena-root .ce-bar{
  height: 6px;
  background: var(--bg-deep);
  position: relative;
}
.witc-jena-root .ce-bar-fill{
  height: 100%;
  background: var(--accent);
  transition: width 1600ms cubic-bezier(.2,.6,.2,1);
}
.witc-jena-root .ce-beta{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  text-align: right;
  letter-spacing: -0.01em;
}
.witc-jena-root .ce-effect{
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
  text-align: right;
}

/* References */
.witc-jena-root .refs-list{
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  counter-reset: ref;
}
.witc-jena-root .ref-item{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.witc-jena-root .ref-item::before{
  counter-increment: ref;
  content: counter(ref, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.witc-jena-root .ref-item a{ font-size: 12px; word-break: break-all; }

/* Authors / footer */
.witc-jena-root .authors{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 880px){ .witc-jena-root .authors{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .witc-jena-root .authors{ grid-template-columns: 1fr; } }
.witc-jena-root .author-card{
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}
.witc-jena-root .author-name{
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
}
.witc-jena-root .author-meta{
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.5;
}
.witc-jena-root .author-meta a{ font-size: inherit; }

/* Methods stat row */
.witc-jena-root .stat-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px){ .witc-jena-root .stat-row{ grid-template-columns: repeat(2, 1fr); } }

/* Predictive processing diagram */
.witc-jena-root .pp-diagram{
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px){
  .witc-jena-root .pp-diagram{ grid-template-columns: 1fr; }
  .witc-jena-root .pp-diagram .pp-arrow{ transform: rotate(90deg); justify-self: start; }
}
.witc-jena-root .pp-step{ padding: 16px; }
.witc-jena-root .pp-step-num{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}
.witc-jena-root .pp-step-name{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 6px 0 6px;
  line-height: 1.15;
}
.witc-jena-root .pp-step-desc{ font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.witc-jena-root .pp-arrow{
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-faint);
}

/* Key research questions */
.witc-jena-root .q-list{
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.witc-jena-root .q-item{
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.witc-jena-root .q-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  padding-top: 4px;
}
.witc-jena-root .q-text{
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
}

/* Section header (numbered) */
.witc-jena-root .section-num{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0;
}

/* Expandable */
.witc-jena-root details.acc{
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.witc-jena-root details.acc:last-of-type{ border-bottom: 1px solid var(--rule); }
.witc-jena-root details.acc summary{
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.witc-jena-root details.acc summary::-webkit-details-marker{ display: none; }
.witc-jena-root details.acc summary::after{
  content: "+";
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--ink-faint);
  transition: transform 300ms;
}
.witc-jena-root details.acc[open] summary::after{ content: "—"; }
.witc-jena-root details.acc[open] summary{ margin-bottom: 12px; }

/* Footer */
.witc-jena-root footer.colophon{
  background: var(--bg-deep);
  border-top: 1px solid var(--rule);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.witc-jena-root .colophon-inner{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
@media (max-width: 720px){ .witc-jena-root .colophon-inner{ grid-template-columns: 1fr; } }
.witc-jena-root .colophon p{ font-size: 13px; color: var(--ink-faint); }
.witc-jena-root .colophon-mark{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

/* Site detail modal-ish overlay (we'll just expand inline) */
.witc-jena-root .site-card[aria-expanded="true"]{
  grid-column: span 2;
}

/* ======================================================================
   Wonder in the City — patch v1.013
   Mobile portrait refinements + research questions layout
   ====================================================================== */

/* Desktop: keep logo strip locked to the exact visual width of the FIELD STUDY line */
@media (min-width: 721px){
  .witc-jena-root .hero-kicker-lockup{
    display: inline-flex !important;
    width: max-content !important;
    max-width: 100% !important;
    align-items: stretch !important;
  }
  .witc-jena-root .hero-eyebrow{
    white-space: nowrap !important;
  }
  .witc-jena-root .hero-logo-strip{
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 0 !important;
  }
  .witc-jena-root .hero-logo-strip a:nth-child(1){ justify-content: flex-start !important; }
  .witc-jena-root .hero-logo-strip a:nth-child(2){ justify-content: center !important; }
  .witc-jena-root .hero-logo-strip a:nth-child(3){ justify-content: center !important; }
  .witc-jena-root .hero-logo-strip a:nth-child(4){ justify-content: flex-end !important; }
}

/* Mobile = portrait only */
@media (max-width: 720px) and (orientation: portrait){
  /* Keep FIELD STUDY metadata on a single line by reducing tracking/kerning */
  .witc-jena-root .hero-kicker-lockup{
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .witc-jena-root .hero-eyebrow{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    font-size: clamp(6px, 1.75vw, 7.4px) !important;
    letter-spacing: 0.055em !important;
    line-height: 1 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .witc-jena-root .hero-eyebrow span{
    display: inline-block !important;
    white-space: nowrap !important;
  }
  .witc-jena-root .hero-eyebrow .dot{
    width: 3px !important;
    height: 3px !important;
    flex: 0 0 3px !important;
    margin: 0 4px !important;
  }

  /* Logos: one row, controlled size, +25% vs previous mobile patch */
  .witc-jena-root .hero-logo-strip{
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 0 !important;
    align-items: center !important;
    justify-items: stretch !important;
    margin-top: 8px !important;
    margin-bottom: 26px !important;
  }
  .witc-jena-root .hero-logo-strip a{
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
    border-bottom: 0 !important;
  }
  .witc-jena-root .hero-logo-strip a:nth-child(1){ justify-content: flex-start !important; }
  .witc-jena-root .hero-logo-strip a:nth-child(2){ justify-content: center !important; }
  .witc-jena-root .hero-logo-strip a:nth-child(3){ justify-content: center !important; }
  .witc-jena-root .hero-logo-strip a:nth-child(4){ justify-content: flex-end !important; }
  .witc-jena-root .hero-logo-strip img{
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .witc-jena-root .hero-logo-strip img.hero-logo-iaea{ max-width: 58px !important; max-height: 20px !important; }
  .witc-jena-root .hero-logo-strip img.hero-logo-ens{ max-width: 83px !important; max-height: 23px !important; }
  .witc-jena-root .hero-logo-strip img.hero-logo-arts{ max-width: 68px !important; max-height: 24px !important; }
  .witc-jena-root .hero-logo-strip img.hero-logo-hu{ max-width: 30px !important; max-height: 30px !important; }

  /* THREE RESEARCH QUESTIONS: tag/title above text, left-aligned, no overlap */
  .witc-jena-root .q-item{
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 18px 0 !important;
    text-align: left !important;
  }
  .witc-jena-root .q-tag{
    display: block !important;
    padding-top: 0 !important;
    margin: 0 0 8px 0 !important;
    text-align: left !important;
  }
  .witc-jena-root .q-text{
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    clear: both !important;
  }
}

/* Mobile landscape keeps the rotate-device screen clean; no content logos visible */
@media (max-width: 1024px) and (orientation: landscape){
  .witc-jena-root .hero-logo-strip{
    display: none !important;
  }
}


/* ======================================================================
   Wonder in the City — patch v1.014
   Desktop research questions + title + colophon PDF icon
   ====================================================================== */

/* Title: enlarge “in the City” and tighten it toward “(and Wander)” */
.witc-jena-root .hero-title .hero-city-line{
  display: inline-block !important;
  margin-top: -0.12em !important;
  line-height: 0.78 !important;
}

/* THREE RESEARCH QUESTIONS: desktop and mobile, title above text, left aligned */
.witc-jena-root .q-item{
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  text-align: left !important;
}
.witc-jena-root .q-tag{
  display: block !important;
  padding-top: 0 !important;
  margin: 0 0 8px 0 !important;
  text-align: left !important;
}
.witc-jena-root .q-text{
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
  clear: both !important;
}

/* Colophon: PDF outline icon under “Read the original” */
.witc-jena-root .pdf-outline-link{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 18px !important;
  color: var(--ink) !important;
  border-bottom: 0 !important;
  text-decoration: none !important;
}
.witc-jena-root .pdf-outline-icon{
  width: clamp(42px, 4vw, 58px) !important;
  height: auto !important;
  display: block !important;
  background: transparent !important;
}

@media (max-width: 720px) and (orientation: portrait){
  .witc-jena-root .hero-title .hero-city-line{
    margin-top: -0.1em !important;
    line-height: 0.82 !important;
  }
  .witc-jena-root .pdf-outline-icon{
    width: 46px !important;
  }
}


/* ======================================================================
   Wonder in the City — patch v1.020
   Verified fix from v1.014 base: logo strip width = FIELD STUDY line;
   raise “in the City.” without changing previous working rules.
   ====================================================================== */

.witc-jena-root .hero-kicker-lockup{
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: max-content !important;
  max-width: 100% !important;
}

.witc-jena-root .hero-kicker-lockup .hero-eyebrow{
  display: block !important;
  width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  margin-bottom: 0 !important;
}

.witc-jena-root .hero-kicker-lockup .hero-logo-strip{
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  justify-items: stretch !important;
  align-items: center !important;
  column-gap: 0 !important;
  margin-top: 8px !important;
  margin-bottom: clamp(34px, 4vw, 56px) !important;
}

.witc-jena-root .hero-kicker-lockup .hero-logo-strip a:nth-child(1){ justify-content: flex-start !important; }
.witc-jena-root .hero-kicker-lockup .hero-logo-strip a:nth-child(2){ justify-content: center !important; }
.witc-jena-root .hero-kicker-lockup .hero-logo-strip a:nth-child(3){ justify-content: center !important; }
.witc-jena-root .hero-kicker-lockup .hero-logo-strip a:nth-child(4){ justify-content: flex-end !important; }

.witc-jena-root .hero-title .hero-city-line{
  display: inline-block !important;
  transform: translateY(-0.34em) !important;
  margin-top: -0.08em !important;
  line-height: 0.64 !important;
}

@media (max-width: 720px) and (orientation: portrait){
  .witc-jena-root .hero-kicker-lockup{
    width: 100% !important;
    max-width: 100% !important;
  }
  .witc-jena-root .hero-kicker-lockup .hero-eyebrow{
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }
  .witc-jena-root .hero-kicker-lockup .hero-logo-strip{
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
    margin-bottom: 26px !important;
  }
  .witc-jena-root .hero-title .hero-city-line{
    transform: translateY(-0.2em) !important;
    margin-top: -0.04em !important;
    line-height: 0.72 !important;
  }
}

@media (max-width: 1024px) and (orientation: landscape){
  .witc-jena-root .hero-kicker-lockup .hero-logo-strip{
    display: none !important;
  }
}


/* ======================================================================
   Wonder in the City — patch v1.021
   Desktop: raise “in the City.” a little more.
   Mobile portrait: increase FIELD STUDY metadata by 2pt.
   ====================================================================== */

@media (min-width: 721px){
  .witc-jena-root .hero-title .hero-city-line{
    transform: translateY(-0.34em) !important;
    margin-top: -0.08em !important;
    line-height: 0.64 !important;
  }
}

@media (max-width: 720px) and (orientation: portrait){
  .witc-jena-root .hero-kicker-lockup .hero-eyebrow{
    font-size: clamp(8.7px, 2.35vw, 10.1px) !important;
    letter-spacing: 0.025em !important;
  }
}
