/* =========================================================
   AITHYRA — Lange Nacht der Forschung
   Kiosk Presentation Stylesheet
   Corporate Design per AITHYRA Styleguide
   ========================================================= */

/* ---- Fonts (licensed Denim INK by Displaay + MD Thermochrome 0.3 by Mass-Driver) ---- */
/* Font files live in /assets/Denim INK Fonts/ and /assets/MD Thermochrome Regular Fonts/ */

@font-face {
  font-family: 'Denim INK';
  src: url('../assets/Denim%20INK%20Fonts/DenimINK-Regular.woff2') format('woff2'),
       url('../assets/Denim%20INK%20Fonts/DenimINK-Regular.woff')  format('woff'),
       url('../assets/Denim%20INK%20Fonts/DenimINK-Regular.otf')   format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Denim INK';
  src: url('../assets/Denim%20INK%20Fonts/DenimINK-Medium.woff2') format('woff2'),
       url('../assets/Denim%20INK%20Fonts/DenimINK-Medium.woff')  format('woff'),
       url('../assets/Denim%20INK%20Fonts/DenimINK-Medium.otf')   format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* MD Thermochrome 0.3 — only .otf files shipped, which modern Chromium/Firefox handle fine. */
@font-face {
  font-family: 'MD Thermochrome';
  src: url('../assets/MD%20Thermochrome%20Regular%20Fonts/MDThermochrome0.3-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MD Thermochrome';
  src: url('../assets/MD%20Thermochrome%20Regular%20Fonts/MDThermochrome0.3-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MD Thermochrome';
  src: url('../assets/MD%20Thermochrome%20Regular%20Fonts/MDThermochrome0.3-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MD Thermochrome';
  src: url('../assets/MD%20Thermochrome%20Regular%20Fonts/MDThermochrome0.3-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MD Thermochrome';
  src: url('../assets/MD%20Thermochrome%20Regular%20Fonts/MDThermochrome0.3-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens (AITHYRA palette) ---- */
:root {
  --aithyra-teal:       #0a6478;
  --aithyra-orange:     #ff9114;
  --kiosk-yellow:       #ffff00;
  --aithyra-dark-green: #052323;
  --aithyra-grey:       #c8c8c8;
  --aithyra-white:      #ffffff;
  --aithyra-light-grey: #f6f6f6;
  --aithyra-dark-grey:  #505050;
  --aithyra-black:      #1e1e1e;

  --aithyra-yellow:      #ffff00;
  --aithyra-green:       #05780f;
  --aithyra-pink:        #ff416e;
  --aithyra-red:         #ff2300;
  --aithyra-light-yellow:#ffff64;
  --aithyra-light-green: #37be55;
  --aithyra-light-pink:  #ff91aa;

  --font-primary: 'Denim INK', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'MD Thermochrome', 'IBM Plex Mono', 'Courier New', monospace;

  /* 1920×1080 — 5% of short side = 54px margin per styleguide [1] */
  --page-margin: 54px;
  --grid-col: calc((1920px - 2 * 54px) / 6);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--aithyra-dark-green);
  color: var(--aithyra-white);
  font-family: var(--font-primary);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

/* Scale to viewport while locking to 1920×1080 */
#stage {
  position: fixed;
  top: 50%; left: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

/* ---- Slide base ---- */
.slide {
  position: absolute; inset: 0;
  width: 1920px; height: 1080px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out;
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

/* ---- Persistent chrome (logo + progress + LNF badge) ---- */
.chrome-logo {
  position: absolute;
  left: var(--page-margin);
  bottom: var(--page-margin);
  height: 48px;
  z-index: 100;
  pointer-events: none;
}
.chrome-logo img { height: 100%; width: auto; display: block; }

.chrome-lnf {
  position: absolute;
  right: var(--page-margin);
  bottom: var(--page-margin);
  height: 60px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.chrome-lnf img { height: 100%; width: auto; display: block; }

.progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  background: var(--aithyra-teal);
  width: 0%;
  z-index: 200;
  transition: width 0.1s linear;
}

.slide-counter {
  /* Slide counter is hidden on the kiosk; kept in DOM for debug/keyboard use. */
  display: none;
}

/* ---- Gradients & backgrounds ---- */
.bg-teal-radial {
  background:
    radial-gradient(ellipse at 50% 45%, #0f8ca8 0%, var(--aithyra-teal) 35%, var(--aithyra-dark-green) 85%);
}
.bg-teal-linear {
  background: linear-gradient(180deg, var(--aithyra-dark-green) 0%, var(--aithyra-teal) 100%);
}
.bg-dark { background: var(--aithyra-dark-green); }
.bg-white { background: var(--aithyra-white); color: var(--aithyra-dark-green); }
.bg-teal { background: var(--aithyra-teal); }

/* ---- Typography hierarchy per styleguide [1] ---- */
.type-visual { /* MD Thermochrome 107pt — bumped for kiosk legibility */
  font-family: var(--font-mono);
  font-size: 128px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.type-headline { /* Denim INK Medium 65pt */
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 92px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.type-subheadline { /* Denim INK Regular 40pt */
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
}
.type-info { /* Denim INK Regular 25pt */
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.3;
}
.type-intro { /* Denim INK Medium 20pt */
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
}
.type-body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.35;
}
.type-extra { /* MD Thermochrome — bumped for kiosk legibility */
  font-family: var(--font-mono);
  font-size: 32px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aithyra-grey);
  font-weight: 500;
}

.accent-teal { color: var(--aithyra-teal); }
.accent-pink { color: var(--aithyra-pink); }
.accent-yellow { color: var(--aithyra-yellow); }
.accent-lightgreen { color: var(--aithyra-light-green); }

/* ---- Layout helpers ---- */
.pad {
  position: absolute;
  inset: var(--page-margin);
}
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-24 { gap: 24px; }
.gap-48 { gap: 48px; }

/* ---- Image / Video placeholders ---- */
.placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(10,100,120,0.18) 0px,
      rgba(10,100,120,0.18) 20px,
      rgba(10,100,120,0.32) 20px,
      rgba(10,100,120,0.32) 40px
    ),
    var(--aithyra-dark-green);
  border: 2px dashed var(--aithyra-teal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--aithyra-grey);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
  gap: 12px;
}
.placeholder::before {
  content: '⧉';
  font-size: 48px;
  color: var(--aithyra-teal);
  line-height: 1;
}
.placeholder .ph-label { font-size: 18px; color: var(--aithyra-white); letter-spacing: 0.15em; }
.placeholder .ph-desc  { font-size: 14px; color: var(--aithyra-grey); max-width: 80%; line-height: 1.5; text-transform: none; letter-spacing: 0.05em; }
.placeholder .ph-tag   { font-size: 12px; color: var(--aithyra-teal); border: 1px solid var(--aithyra-teal); padding: 4px 10px; border-radius: 2px; }

/* ---- Elementaries (procedural replica of styleguide dots) ---- */
/* Used as background decoration & key visuals until official assets are dropped in. */
.elementaries-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at center, var(--aithyra-teal) 3px, transparent 3.5px);
  background-size: 36px 36px;
  opacity: 0.25;
  mix-blend-mode: screen;
}
.elementaries-grid.sparse { background-size: 80px 80px; opacity: 0.18; }
.elementaries-grid.dense  { background-size: 22px 22px; opacity: 0.35; }

/* Animated "A" elementary mark */
.ele-mark {
  width: 360px; height: 360px;
  position: relative;
}
.ele-mark .dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--aithyra-teal);
}

/* ---- Slide-specific transitions / reveal ---- */
.slide.active .reveal-up {
  animation: revealUp 1.4s 0.3s cubic-bezier(.2,.8,.2,1) both;
}
.slide.active .reveal-up-delay {
  animation: revealUp 1.4s 0.8s cubic-bezier(.2,.8,.2,1) both;
}
.slide.active .reveal-up-late {
  animation: revealUp 1.4s 1.4s cubic-bezier(.2,.8,.2,1) both;
}
.slide.active .reveal-fade {
  animation: revealFade 1.6s 0.5s ease-out both;
}
.slide.active .reveal-scale {
  animation: revealScale 2s 0.2s cubic-bezier(.2,.8,.2,1) both;
}
.slide.active .reveal-wipe {
  animation: revealWipe 1.8s 0.4s cubic-bezier(.7,0,.3,1) both;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes revealScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes revealWipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* Subtle ambient pan for hero slides (Ken Burns) */
.kenburns {
  animation: kenburns 12s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.0) translate(0,0); }
  to   { transform: scale(1.08) translate(-30px, -20px); }
}

/* Drifting dots */
.drift {
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0,0); }
  to   { transform: translate(40px, -30px); }
}

/* =========================================================
   SLIDE-SPECIFIC LAYOUTS
   ========================================================= */

/* --- Slide 1: HOOK / TITLE --- */
.s-title {
  background: radial-gradient(ellipse at 50% 50%, #0f8ca8 0%, var(--aithyra-teal) 30%, var(--aithyra-dark-green) 85%);
}
.s-title .title-wrap {
  position: absolute;
  top: calc(var(--page-margin) + 40px);
  left: var(--page-margin);
  right: var(--page-margin);
  /* Reserve enough room for both bottom logos (Wordmark left + LNF circle right)
     plus comfortable breathing space. */
  bottom: calc(var(--page-margin) + 200px);
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: flex-start;
  gap: 36px;
}
.s-title .overline {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aithyra-light-green);
}
.s-title h1 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 156px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 1600px;
}
.s-title h1 em {
  font-style: normal;
  color: var(--aithyra-teal);
  background: linear-gradient(120deg, #0f8ca8, var(--aithyra-light-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s-title .sub {
  font-family: var(--font-primary);
  font-size: 34px;
  color: var(--aithyra-grey);
  max-width: 1400px;
  line-height: 1.3;
}

/* --- Slide 2: WHAT IS AITHYRA --- */
.s-what { background: var(--aithyra-dark-green); }
.s-what .split {
  position: absolute; inset: var(--page-margin);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  align-items: center;
}
.s-what .left h2 {
  font-size: 140px; font-weight: 500; line-height: 0.95; letter-spacing: -0.02em;
}
.s-what .left h2 span { color: var(--aithyra-orange); }
.s-what .left p {
  margin-top: 32px; font-size: 34px; line-height: 1.3; color: var(--aithyra-grey); max-width: 820px;
}
.s-what .right { height: 860px; }
.s-what .stats {
  position: absolute; left: var(--page-margin);
  /* Lift stats clear of bottom chrome (logo row ~60px + 54 margin). */
  bottom: calc(var(--page-margin) + 140px);
  display: flex; gap: 80px;
}
.s-what .stat .num {
  font-family: var(--font-mono);
  font-size: 88px; color: var(--aithyra-orange); line-height: 1;
}
.s-what .stat .lbl {
  font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--aithyra-grey); margin-top: 12px;
  font-weight: 500;
}

/* --- Slide 3: MISSION --- */
.s-mission { background: linear-gradient(180deg, var(--aithyra-dark-green), var(--aithyra-teal)); }
.s-mission .quote-wrap {
  position: absolute; inset: var(--page-margin);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
}
.s-mission .quote-mark {
  font-family: var(--font-primary); font-size: 220px; line-height: 0.5;
  color: var(--aithyra-teal); opacity: 0.55;
}
.s-mission blockquote {
  font-family: var(--font-primary); font-weight: 500;
  font-size: 88px; line-height: 1.1; letter-spacing: -0.01em;
  max-width: 1500px; margin-top: 24px;
}
.s-mission blockquote em { font-style: normal; color: var(--aithyra-light-green); }
/* Override .type-extra (26px) so the mission attribution sits stronger under the quote. */
.s-mission .attribution { margin-top: 48px; font-size: 36px; letter-spacing: 0.2em; }

/* --- Slide 4: DISEASE AREAS --- */
.s-diseases { background: var(--aithyra-dark-green); }
.s-diseases .head { position: absolute; left: var(--page-margin); top: var(--page-margin); }
.s-diseases .head h2 { font-size: 92px; font-weight: 500; line-height: 1; }
.s-diseases .head .over { margin-bottom: 20px; }
.s-diseases .grid {
  position: absolute; left: var(--page-margin); right: var(--page-margin);
  top: 340px; bottom: 200px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.s-diseases .card {
  background: rgba(10,100,120,0.18);
  border: 1px solid rgba(10,100,120,0.55);
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.s-diseases .card .icon { font-size: 80px; line-height: 1; margin-bottom: 12px; }
.s-diseases .card h3 { font-size: 42px; font-weight: 500; line-height: 1.05; }
.s-diseases .card .de { font-size: 26px; color: var(--aithyra-grey); margin-top: 8px; }
.s-diseases .card .num {
  position: absolute; right: 24px; top: 20px;
  font-family: var(--font-mono); font-size: 26px; color: var(--kiosk-yellow);
  letter-spacing: 0.2em; font-weight: 500;
}

/* --- Slide 5: AI + LIFE SCIENCE --- */
.s-aiLS { background: var(--aithyra-dark-green); }
.s-aiLS .center-wrap {
  position: absolute;
  top: var(--page-margin);
  left: var(--page-margin);
  right: var(--page-margin);
  bottom: calc(var(--page-margin) + 260px);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.s-aiLS .equation { display: flex; align-items: center; gap: 120px; }
.s-aiLS .term {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.s-aiLS .term .tile {
  width: 420px; height: 420px;
  position: relative;
  overflow: hidden;
}
.s-aiLS .term .tile img {
  width: 100%; height: 100%; object-fit: cover;
}
.s-aiLS .term .lbl {
  font-family: var(--font-primary); font-weight: 500;
  font-size: 72px; line-height: 1;
}
.s-aiLS .term .sub {
  font-size: 30px; color: var(--kiosk-yellow);
  font-family: var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500;
}
.s-aiLS .op {
  font-size: 180px; color: var(--aithyra-light-green);
  font-family: var(--font-mono); font-weight: 300; line-height: 1;
  align-self: flex-start; margin-top: 160px;
}
.s-aiLS .result {
  position: absolute; left: var(--page-margin); right: var(--page-margin);
  bottom: calc(var(--page-margin) + 140px);
  text-align: center;
  font-size: 44px; font-weight: 500;
}
.s-aiLS .result span { color: var(--aithyra-light-green); }

/* --- Slide 6: GROWING TEAM HERO --- */
.s-grow { background: linear-gradient(180deg, var(--aithyra-dark-green) 0%, #0a4656 100%); }
.s-grow .wrap {
  position: absolute; inset: var(--page-margin);
  display: flex; flex-direction: column; justify-content: center; gap: 48px;
}
.s-grow h2 { font-size: 140px; font-weight: 500; line-height: 0.95; letter-spacing: -0.02em; }
.s-grow h2 span { color: var(--aithyra-teal); }
.s-grow .timeline {
  display: flex; align-items: center; gap: 0; margin-top: 32px; position: relative;
}
.s-grow .tl-node {
  flex: 1; text-align: center; position: relative; padding: 0 16px;
}
.s-grow .tl-node .year {
  font-family: var(--font-mono);
  font-size: 40px;
  color: var(--aithyra-white);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.s-grow .tl-node.future .year {
  color: var(--aithyra-light-green);
}
.s-grow .tl-node .cnt {
  font-family: var(--font-primary); font-weight: 500; font-size: 96px; line-height: 1; margin: 12px 0;
}
.s-grow .tl-node .lbl { font-size: 22px; color: var(--aithyra-grey); }
/* Timeline connector line + dots are hidden: the 4 nodes (incl. "Ziel") read
   as equal pillars; we don't want to imply a linear progression that ends. */
.s-grow .tl-line { display: none; }
.s-grow .tl-node .dot { display: none; }
.s-grow .tl-node.future .cnt { color: var(--aithyra-light-green); }

/* --- Slide: LEADERSHIP --- */
.s-lead { background: var(--aithyra-dark-green); }
.s-lead .head { position: absolute; top: var(--page-margin); left: var(--page-margin); }
.s-lead .head h2 { font-size: 88px; font-weight: 500; }
.s-lead .grid {
  position: absolute; left: var(--page-margin); right: var(--page-margin);
  /* Pulled up + smaller bottom pad to host full-frame director portraits. */
  top: 300px; bottom: 160px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.s-lead .card {
  display: flex; flex-direction: column; gap: 20px;
}
/* Directors are meant to be seen, not cropped. Give the card a tall frame
   and show the full portrait with object-fit:contain on a subtle panel. */
.s-lead .card .photo {
  height: 480px;
  background: rgba(10,100,120,0.12);
  border: 1px solid rgba(10,100,120,0.35);
}
.s-lead .card .photo.real img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter: none;
}
.s-lead .card .name { font-size: 40px; font-weight: 500; }
.s-lead .card .role {
  font-size: 28px;
  color: var(--kiosk-yellow);
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Slide: GROUP (generic) --- */
.s-group { background: var(--aithyra-dark-green); }
.s-group .split {
  position: absolute;
  top: var(--page-margin);
  left: var(--page-margin);
  right: var(--page-margin);
  /* Leave 140px breathing room above the bottom chrome (wordmark + LNF logo). */
  bottom: calc(var(--page-margin) + 140px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.s-group .photo { height: 100%; }
/* Group portrait: favour the face over the shirt; prevents chin clipping
   when the .split box is shorter than the portrait's native aspect. */
.s-group .photo.real img { object-position: center 18%; }
.s-group .info { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.s-group .info .tag {
  font-family: var(--font-mono); font-size: 30px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--kiosk-yellow); font-weight: 500;
}
.s-group .info h2 { font-size: 88px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.s-group .info .role { font-size: 32px; color: var(--aithyra-grey); }
.s-group .info .topic {
  margin-top: 24px; padding: 24px 28px;
  border-left: 4px solid var(--aithyra-teal);
  background: rgba(10,100,120,0.12);
  font-size: 28px; line-height: 1.35;
}
.s-group .info .topic-de {
  font-size: 22px; color: var(--aithyra-grey); margin-top: 12px;
}

/* --- Slide: ROBOTICS LAB --- */
.s-robot { background: var(--aithyra-dark-green); }
.s-robot .split {
  position: absolute; inset: var(--page-margin);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
}
.s-robot .left { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.s-robot .left .over { font-family: var(--font-mono); font-size: 32px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--kiosk-yellow); }
.s-robot .left h2 { font-size: 108px; font-weight: 500; line-height: 0.95; letter-spacing: -0.02em; }
.s-robot .left h2 span { color: var(--aithyra-teal); }
.s-robot .left p { font-size: 30px; color: var(--aithyra-grey); line-height: 1.35; }
.s-robot .right { height: 100%; }

/* --- Slide: LSC BUILDING HEROES --- */
.s-lsc-hero { background: var(--aithyra-black); }
.s-lsc-hero .bg {
  position: absolute; inset: 0;
}
/* Dark gradient dropped; we sit the copy on a bright panel so black reads
   cleanly against the architectural renders. */
.s-lsc-hero .overlay { display: none; }
.s-lsc-hero .txt {
  position: absolute;
  left: var(--page-margin);
  /* Lift above the bottom chrome (logo ~60px + 54px margin + breathing). */
  bottom: calc(var(--page-margin) + 140px);
  /* Leave room on the right for the LNF logo (~190px wide + margin). */
  right: calc(var(--page-margin) + 260px);
  display: flex; flex-direction: column; gap: 18px;
  background: rgba(255,255,255,0.90);
  padding: 36px 44px;
  border-left: 6px solid var(--aithyra-orange);
  color: var(--aithyra-dark-green);
}
.s-lsc-hero .over {
  font-family: var(--font-mono);
  font-size: 40px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--aithyra-black);
  font-weight: 500;
}
.s-lsc-hero h2 {
  font-size: 128px; font-weight: 500; line-height: 0.95;
  max-width: 1500px; letter-spacing: -0.02em;
  color: var(--aithyra-dark-green);
}
.s-lsc-hero .sub {
  font-size: 34px;
  color: var(--aithyra-dark-grey);
  max-width: 1400px;
}

/* --- Slide: LSC FACTS --- */
.s-lsc-facts { background: var(--aithyra-dark-green); }
.s-lsc-facts .head { position: absolute; top: var(--page-margin); left: var(--page-margin); }
.s-lsc-facts .head h2 { font-size: 108px; font-weight: 500; line-height: 0.95; letter-spacing: -0.02em; max-width: 1200px; }
.s-lsc-facts .head h2 span { color: var(--aithyra-teal); }
.s-lsc-facts .grid {
  position: absolute; left: var(--page-margin); right: var(--page-margin);
  top: 480px; bottom: 200px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.s-lsc-facts .fact {
  border: 1px solid rgba(10,100,120,0.55);
  padding: 36px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 280px;
  background: rgba(10,100,120,0.1);
}
.s-lsc-facts .fact .num { font-family: var(--font-mono); font-size: 72px; color: var(--aithyra-teal); line-height: 1; }
.s-lsc-facts .fact .lbl { font-size: 24px; font-weight: 500; margin-top: 12px; }
.s-lsc-facts .fact .de { font-size: 18px; color: var(--aithyra-grey); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* --- Slide: LSC PHASES --- */
.s-phases { background: var(--aithyra-dark-green); }
.s-phases .head { position: absolute; top: var(--page-margin); left: var(--page-margin); z-index: 2; }
.s-phases .head h2 { font-size: 92px; font-weight: 500; }
.s-phases .head h2 span { color: var(--aithyra-teal); }
.s-phases .split {
  position: absolute; top: 280px; left: var(--page-margin); right: var(--page-margin);
  /* 220px clears bottom chrome (wordmark + LNF logo) comfortably. */
  bottom: 220px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.s-phases .phase { position: relative; display: flex; flex-direction: column; gap: 20px; }
.s-phases .phase .img { height: 420px; }
/* Phases photos: pin the lower portion of the source so the street / building
   base are visible rather than just the upper facade. */
.s-phases .phase .img.photo.real img { object-position: center 78%; }
.s-phases .phase .ph-num { font-family: var(--font-mono); font-size: 32px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--kiosk-yellow); font-weight: 500; }
.s-phases .phase .ph-title { font-size: 44px; font-weight: 500; }
.s-phases .phase .ph-desc { font-size: 22px; color: var(--aithyra-grey); line-height: 1.35; }
.s-phases .arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 72px; color: var(--aithyra-light-green);
  background: var(--aithyra-dark-green); padding: 20px;
  border: 2px solid var(--aithyra-light-green); border-radius: 50%;
  width: 120px; height: 120px; display: flex; align-items: center; justify-content: center;
  z-index: 5;
}

/* --- Slide: LOCATION --- */
.s-loc { background: var(--aithyra-dark-green); }
.s-loc .split {
  position: absolute; inset: var(--page-margin);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
}
.s-loc .left { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.s-loc .left .over { font-family: var(--font-mono); font-size: 32px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--kiosk-yellow); font-weight: 500; }
.s-loc .left h2 { font-size: 108px; font-weight: 500; line-height: 0.95; letter-spacing: -0.02em; }
.s-loc .left .addr { font-size: 28px; color: var(--aithyra-grey); line-height: 1.5; margin-top: 16px; }
.s-loc .left .addr strong { color: var(--aithyra-white); font-weight: 500; }
.s-loc .right { height: 100%; }

/* --- Slide: PARTNERS --- */
.s-partners { background: var(--aithyra-white); color: var(--aithyra-dark-green); }
.s-partners .head { position: absolute; top: var(--page-margin); left: var(--page-margin); }
.s-partners .head h2 { font-size: 88px; font-weight: 500; color: var(--aithyra-dark-green); }
.s-partners .head .de { font-size: 28px; color: var(--aithyra-dark-grey); margin-top: 12px; }
.s-partners .logos {
  position: absolute; left: var(--page-margin); right: var(--page-margin);
  top: 340px; bottom: 200px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.s-partners .logo-box {
  border: 1px solid #e0e0e0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.s-partners .logo-box.placeholder {
  background: var(--aithyra-light-grey);
  border: 2px dashed var(--aithyra-grey);
  color: var(--aithyra-dark-grey);
}
.s-partners .logo-box.placeholder::before { color: var(--aithyra-teal); }
.s-partners .logo-box .ph-label { color: var(--aithyra-dark-green); }
.s-partners .logo-box .ph-desc  { color: var(--aithyra-dark-grey); }

/* --- Slide: FUNDING --- */
.s-funding { background: linear-gradient(180deg, var(--aithyra-dark-green), var(--aithyra-teal)); }
.s-funding .wrap {
  position: absolute; inset: var(--page-margin);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 32px;
}
.s-funding .big {
  font-family: var(--font-mono);
  font-size: 360px; line-height: 0.9;
  color: var(--aithyra-white);
  letter-spacing: -0.02em;
}
.s-funding .big span { color: var(--aithyra-light-green); }
.s-funding .lbl { font-size: 48px; font-weight: 500; }
.s-funding .sub { font-size: 28px; color: var(--aithyra-grey); max-width: 1200px; }

/* --- Slide: VISIT / QR --- */
.s-visit { background: radial-gradient(ellipse at 30% 40%, #0f8ca8 0%, var(--aithyra-teal) 40%, var(--aithyra-dark-green) 90%); }
.s-visit .wrap {
  position: absolute; inset: var(--page-margin);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center;
}
.s-visit .left h2 { font-size: 140px; font-weight: 500; line-height: 0.95; letter-spacing: -0.02em; }
.s-visit .left h2 span { color: var(--aithyra-light-green); }
.s-visit .left .sub { font-size: 38px; color: var(--aithyra-grey); margin-top: 24px; max-width: 900px; line-height: 1.25; }
.s-visit .qr-stack { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.s-visit .qr-item { display: flex; gap: 28px; align-items: center; }
.s-visit .qr-item .qr { width: 220px; height: 220px; background: var(--aithyra-white); padding: 14px; }
.s-visit .qr-item .qr img { width: 100%; height: 100%; display: block; }

.s-visit .qr-item .meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
/* Official platform logos (AITHYRA "A" / LinkedIn in-bug / Bluesky butterfly).
   Visually balanced by height: square bugs ~80px; tall AITHYRA symbol keeps
   roughly the same optical weight at 90px. */
.s-visit .qr-item .platform-logo {
  display: block;
  width: auto;
  height: 80px;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.25));
}
.s-visit .qr-item .platform-logo.aithyra { height: 90px; }

.s-visit .qr-item .meta .url {
  font-family: var(--font-mono);
  font-size: 26px;
  letter-spacing: 0.1em;
  color: var(--aithyra-grey);
  font-weight: 400;
}

/* --- Slide: CLOSING --- */
.s-close { background: var(--aithyra-dark-green); }
.s-close .wrap {
  position: absolute; inset: var(--page-margin);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 48px;
}
.s-close .logo-big {
  font-family: var(--font-primary); font-weight: 500;
  font-size: 280px; line-height: 1; letter-spacing: -0.02em;
  color: var(--aithyra-white);
}
.s-close .tagline { font-size: 48px; color: var(--aithyra-teal); max-width: 1400px; line-height: 1.2; }
.s-close .dept { font-size: 24px; color: var(--aithyra-grey); font-family: var(--font-mono); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 16px; }

/* --- Slide: LOGO ANIMATION (video) --- */
.s-logo-anim { background: var(--aithyra-dark-green); }
.s-logo-anim .videowrap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.s-logo-anim video { width: 100%; height: 100%; object-fit: contain; }

/* ---- Placeholder variations for backgrounds (hero images) ---- */
.placeholder-hero {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(10,100,120,0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(55,190,85,0.35) 0%, transparent 55%),
    linear-gradient(135deg, #0a4656, #052323);
  display: flex; align-items: center; justify-content: center;
  color: var(--aithyra-grey);
}
.placeholder-hero .ph-inner {
  border: 2px dashed var(--aithyra-teal);
  padding: 40px 60px;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(5,35,35,0.5);
  max-width: 900px;
}
.placeholder-hero .ph-inner .big { color: var(--aithyra-white); font-size: 32px; margin-bottom: 12px; }
.placeholder-hero .ph-inner .small { font-size: 16px; color: var(--aithyra-grey); letter-spacing: 0.1em; line-height: 1.6; text-transform: none; }
.placeholder-hero .ph-inner .tag {
  display: inline-block;
  margin-top: 20px; padding: 6px 14px;
  border: 1px solid var(--aithyra-teal);
  color: var(--aithyra-teal);
  font-size: 13px;
}

/* ---- Real photo treatments (portraits, group cards, hero backdrops) ---- */
.photo.real {
  position: relative;
  overflow: hidden;
  background: var(--aithyra-dark-green);
  border: none;
  padding: 0;
}
.photo.real::before { content: none; }
.photo.real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 15% from the top keeps the whole head (incl. chin) in frame for standard
     corporate portraits where the face sits roughly one third from the top. */
  object-position: center 15%;
  display: block;
  filter: saturate(0.95) contrast(1.02);
}

/* Full-bleed background image for hero slides (LSC, Marxbox) */
.bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Override chrome-logo wordmark sizing when a real SVG is used */
.chrome-logo img { filter: drop-shadow(0 0 1px rgba(0,0,0,0.2)); }
.chrome-lnf img  { filter: drop-shadow(0 0 1px rgba(0,0,0,0.2)); }

/* Closing-slide logo (replaces text-based .logo-big) */
.s-close .logo-big-img {
  width: 1100px; max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Title-slide wordmark mark (optional decorative A-symbol) */
.brand-mark {
  position: absolute;
  top: var(--page-margin);
  left: var(--page-margin);
  height: 56px;
  width: auto;
  z-index: 90;
  opacity: 0.9;
}
