:root {
  --green: #00a068;
  --deep: #006b7a;
  --sky: #79d0f2;
  --sprout: #bce34a;
  --light: #fff4bf;
  --paper: #faf8f1;
  --ink: #263238;
  --muted: #5f6f73;
  --line: #dce9e6;
  --white: #ffffff;
  --gold: #d8a93b;
  --earth: #b98a5a;
  --shadow: 0 18px 55px rgba(0, 82, 70, 0.16);
  --display: Georgia, "Times New Roman", serif;
  --body: Aptos, Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--deep) 12%, var(--paper));
  color: var(--ink);
  font-family: var(--body);
}

button {
  font: inherit;
}

.presentation-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100svh;
  padding: clamp(10px, 2vw, 24px);
}

.back-link {
  position: fixed;
  top: clamp(14px, 1.6vw, 22px);
  left: clamp(14px, 1.6vw, 22px);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 251, 0.85);
  color: var(--deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 70, 76, 0.14);
  backdrop-filter: blur(8px);
  transition: background 180ms ease, transform 180ms ease;
}

.back-link:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.back-link:focus-visible {
  outline: 3px solid var(--sprout);
  outline-offset: 2px;
}

.deck {
  position: relative;
  width: min(100vw - 24px, calc((100svh - 92px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: clamp(0px, 0.7vw, 10px);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 28px 100px rgba(0, 65, 72, 0.28);
}

.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  padding: clamp(38px, 5.2vw, 78px);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 244, 191, 0.55), transparent 32%),
    linear-gradient(125deg, var(--white), var(--paper) 58%, #f3f6ea);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.slide.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: slideIn 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand-mark {
  position: absolute;
  top: clamp(22px, 3vw, 40px);
  left: clamp(28px, 4vw, 60px);
  z-index: 5;
  width: clamp(48px, 4.8vw, 72px);
  height: auto;
}

.brand-mark--hero {
  left: auto;
  right: clamp(34px, 4.8vw, 76px);
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.layout-fullArt .brand-mark {
  top: clamp(24px, 3vw, 40px);
  left: clamp(30px, 4vw, 62px);
  right: auto;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: clamp(11px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2 {
  margin: 0;
  color: var(--deep);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(45px, 6.8vw, 88px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

p {
  margin: 0;
  line-height: 1.45;
}

.lead {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.22;
  text-wrap: balance;
}

.body-copy {
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 26px);
  line-height: 1.45;
}

.fine {
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 16px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* HERO */
.hero-slide {
  padding: 0;
  background: var(--deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) brightness(1.04);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 82, 89, 0.6), rgba(0, 107, 122, 0.22) 48%, rgba(255, 255, 251, 0.1)),
    linear-gradient(0deg, rgba(0, 65, 72, 0.4), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  width: 56%;
  height: 100%;
  padding: clamp(56px, 6.4vw, 100px);
  color: var(--white);
}

.hero-content h1,
.hero-content .kicker,
.hero-content .lead,
.hero-content .fine {
  color: var(--white);
}

.hero-content .kicker {
  color: var(--sprout);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(11px, 1.05vw, 14px);
}

.hero-content .lead {
  margin-top: 20px;
  font-size: clamp(22px, 2.2vw, 32px);
}

.hero-content .fine {
  margin-top: 32px;
  font-weight: 700;
}

/* SPLIT */
.section-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4.4vw, 70px);
  align-items: center;
  height: 100%;
}

.section-copy {
  position: relative;
  z-index: 4;
  max-width: 640px;
  padding-left: clamp(58px, 5vw, 84px);
}

.section-copy .body-copy,
.section-copy .lead {
  margin-top: 22px;
}

.image-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.image-stage img,
.gallery img,
.paired-image img,
.soft-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-stage .framed {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(82, 70, 34, 0.18));
}

.vertical-media {
  width: min(60%, 380px);
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
}

.vertical-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 42px rgba(82, 70, 34, 0.18));
}

.vertical-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: #000;
}

/* FULL ART (slides whose content is the artwork itself) */
.layout-fullArt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: clamp(48px, 5vw, 78px);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 244, 191, 0.5), transparent 32%),
    linear-gradient(125deg, var(--white), var(--paper) 58%, #f4f7ed);
}

.art-full {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.art-full img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.life-line-note {
  flex: 0 0 auto;
  margin-top: clamp(8px, 1vw, 14px);
  color: var(--muted);
  font-size: clamp(12px, 1.1vw, 15px);
  text-align: center;
}

/* TWO COLUMN (metamorphosis & humanCycle) */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
  height: 100%;
  padding-left: clamp(58px, 5vw, 84px);
}

.paired-image {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.paired-image.contain {
  background: transparent;
  box-shadow: none;
}

.paired-image.contain img {
  object-fit: contain;
}

.paired-text {
  display: grid;
  gap: 22px;
}

/* ELEMENTS */
.element-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
}

.element-orbit img {
  width: min(58%, 420px);
  height: auto;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.element-label {
  position: absolute;
  color: var(--deep);
  font-family: var(--display);
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 700;
}

.element-label:nth-child(2) { left: 5%; top: 25%; }
.element-label:nth-child(3) { right: 8%; top: 22%; }
.element-label:nth-child(4) { left: 11%; bottom: 15%; }
.element-label:nth-child(5) { right: 9%; bottom: 18%; }

/* GALLERY */
.gallery-title {
  max-width: 880px;
  margin-top: clamp(14px, 2vw, 28px);
  padding-left: clamp(58px, 5vw, 84px);
}

.layout-gallerySix .gallery-title h2 {
  max-width: 760px;
  font-size: clamp(28px, 3.4vw, 46px);
}

.gallery {
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
  padding: 0 clamp(38px, 4.4vw, 64px);
  height: calc(100% - clamp(108px, 13vw, 162px));
}

.layout-gallerySix .gallery-title {
  margin-bottom: clamp(22px, 3vw, 44px);
}

.layout-gallerySix .gallery {
  height: calc(100% - clamp(160px, 19vw, 230px));
}

.gallery.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layout-galleryFour .gallery-title {
  margin-bottom: clamp(22px, 3vw, 44px);
}

.layout-galleryFour .gallery {
  height: calc(100% - clamp(150px, 18vw, 220px));
}

.gallery.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
  margin: 0;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 60, 66, 0.62), transparent 48%);
}

.gallery-item span {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 18px);
  letter-spacing: 0.01em;
}

.text-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(16px, 1.6vw, 23px);
}

.text-list strong {
  color: var(--deep);
}

/* FINAL */
.final-slide {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
  height: 100%;
  padding-left: clamp(58px, 5vw, 84px);
}

.final-slide .soft-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: 100%;
  max-height: min(78vh, 620px);
}

.final-slide .soft-image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.quote-block {
  display: grid;
  gap: 24px;
  align-content: center;
}

/* CONTROLS */
.controls {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(250, 248, 241, 0.4);
  border-radius: 999px;
  background: rgba(0, 76, 82, 0.78);
  color: var(--white);
  box-shadow: 0 16px 50px rgba(0, 45, 50, 0.25);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.control-button,
.fullscreen-button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.control-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.control-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fullscreen-button {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 251, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.control-button:hover:not(:disabled),
.fullscreen-button:hover {
  background: rgba(255, 255, 251, 0.24);
}

.control-button:focus-visible,
.fullscreen-button:focus-visible {
  outline: 3px solid var(--sprout);
  outline-offset: 2px;
}

.slide-status {
  min-width: 60px;
  color: rgba(255, 255, 251, 0.92);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 760px) {
  .presentation-shell {
    padding: 0;
  }

  .deck {
    width: 100vw;
    height: calc(100svh - 72px);
    aspect-ratio: auto;
    border-radius: 0;
  }

  .slide {
    padding: 34px 24px 86px;
  }

  .hero-content,
  .section-slide,
  .two-column,
  .final-slide {
    width: 100%;
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .section-copy,
  .gallery-title {
    padding-left: 0;
  }

  .hero-content {
    padding: 52px 26px 110px;
  }

  .gallery {
    padding: 0;
  }

  .gallery.four,
  .gallery.six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-mark {
    width: 50px;
    top: 18px;
    left: 20px;
  }

  .back-link {
    top: 12px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide.active {
    animation: none;
  }
}
