/* ==========================================================================
   Indracon Access — shared styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --indracon-navy: #1f4364;
  --indracon-navy-deep: #002d4d;
  --indracon-dusty-blue: #5d92bf;
  --indracon-light-blue: #8fbad8;
  --indracon-cream: #faf9f6;
  --indracon-cream-2: #f4f3f0;
  --indracon-cream-3: #efeeeb;
  --indracon-graphite: #2d3a46;
  --indracon-graphite-soft: #4a5563;
  --indracon-burgundy: #7b2c3b;
  --indracon-gold: #c79a43;
  --indracon-white: #ffffff;

  /* Type scale */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--indracon-graphite);
  background-color: var(--indracon-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  background: var(--indracon-cream);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav__logo {
  height: 64px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .nav__logo { height: 48px; }
}
.nav__links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--indracon-graphite);
  padding: 6px 0;
  position: relative;
  transition: color 200ms ease;
}
.nav__link:hover { color: var(--indracon-navy); }
.nav__link--active {
  color: var(--indracon-navy);
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--indracon-burgundy);
}
.nav__cta {
  background: var(--indracon-navy);
  color: var(--indracon-white);
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 200ms ease;
}
.nav__cta:hover { background: var(--indracon-navy-deep); }

.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--indracon-navy);
  position: relative;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links--open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--indracon-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid var(--indracon-cream-3);
  }
  .nav__cta { padding: 10px 18px; font-size: 11px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 200ms ease;
  cursor: pointer;
}
.btn--primary {
  background: var(--indracon-navy);
  color: var(--indracon-white);
}
.btn--primary:hover { background: var(--indracon-navy-deep); }
.btn--on-dark {
  background: var(--indracon-white);
  color: var(--indracon-navy);
}
.btn--on-dark:hover { background: var(--indracon-cream); }

/* ==========================================================================
   Hero — light variant (home)
   ========================================================================== */
.hero {
  background: var(--indracon-cream-2);
  padding: 120px 0 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--indracon-navy);
  margin: 0 auto 28px;
  max-width: 780px;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
}
.hero__subtitle {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--indracon-graphite-soft);
}

/* Subtle fox watermark — geometric mark, no external image */
.hero__watermark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  opacity: 0.05;
  pointer-events: none;
}

/* ==========================================================================
   Hero — dark variant (capabilities, contact)
   ========================================================================== */
.hero-dark {
  background: radial-gradient(ellipse at center, var(--indracon-navy) 0%, var(--indracon-navy-deep) 100%);
  color: var(--indracon-white);
  padding: 120px 0;
  text-align: center;
}
.hero-dark__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--indracon-white);
}
.hero-dark__divider {
  width: 64px;
  height: 2px;
  background: var(--indracon-burgundy);
  margin: 0 auto 32px;
  border: none;
}
.hero-dark__subtitle {
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--indracon-light-blue);
}
.hero-dark--compact { padding: 80px 0; }
.hero-dark--compact .hero-dark__title { text-align: left; }
.hero-dark--compact .container { max-width: 1120px; }

/* ==========================================================================
   Pillars (3-card section on home)
   ========================================================================== */
.pillars {
  background: var(--indracon-cream-2);
  padding: 80px 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--indracon-white);
  padding: 36px 32px;
  border-radius: 4px;
}
.pillar--feature {
  background: var(--indracon-navy);
  color: var(--indracon-white);
  border-top: 3px solid var(--indracon-burgundy);
}
.pillar__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--indracon-navy);
}
.pillar--feature .pillar__title { color: var(--indracon-white); }
.pillar__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indracon-burgundy);
  margin-bottom: 16px;
}
.pillar--feature .pillar__tag { color: var(--indracon-gold); }
.pillar__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--indracon-graphite-soft);
  margin: 0;
}
.pillar--feature .pillar__body { color: var(--indracon-light-blue); }

@media (max-width: 900px) {
  .pillars__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Leadership
   ========================================================================== */
.leadership {
  background: var(--indracon-cream-2);
  padding: 96px 0 120px;
}
.leadership__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  text-align: center;
  color: var(--indracon-navy);
  margin: 0 0 16px;
}
.leadership__divider {
  width: 56px;
  height: 2px;
  background: var(--indracon-burgundy);
  margin: 0 auto 64px;
  border: none;
}
.leadership__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.leader {
  background: var(--indracon-white);
  padding: 32px;
  text-align: center;
  border-radius: 4px;
  /* Button reset */
  border: none;
  font: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
  display: block;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.leader:hover,
.leader:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 67, 100, 0.10);
}
.leader:focus-visible {
  outline: 2px solid var(--indracon-burgundy);
  outline-offset: 3px;
}
.leader__cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indracon-navy);
  transition: color 200ms ease;
}
.leader:hover .leader__cta,
.leader:focus-visible .leader__cta {
  color: var(--indracon-burgundy);
}
.leader__photo {
  aspect-ratio: 1 / 1;
  background: var(--indracon-cream-3);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.leader__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader__initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  color: var(--indracon-cream-2);
  letter-spacing: 0.04em;
}
.leader__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--indracon-graphite);
  margin: 0 0 8px;
}
.leader__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indracon-burgundy);
  margin: 0;
}

@media (max-width: 700px) {
  .leadership__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Engage with Us (dark CTA strip)
   ========================================================================== */
.engage {
  background: radial-gradient(ellipse at center, var(--indracon-navy) 0%, var(--indracon-navy-deep) 100%);
  color: var(--indracon-white);
  padding: 96px 0;
  text-align: center;
}
.engage__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  margin: 0 0 20px;
  color: var(--indracon-white);
}
.engage__body {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--indracon-light-blue);
}

/* ==========================================================================
   Capabilities page
   ========================================================================== */
.capabilities {
  background: var(--indracon-cream);
  padding: 96px 0;
}

/* ==========================================================================
   Capabilities Lifecycle
   ========================================================================== */

/* Pentagon layout — 1000x900 coordinate space, scaled responsively */
.lifecycle {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1000 / 900;
}

.lifecycle__arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.lifecycle__arrow {
  fill: none;
  stroke: var(--indracon-burgundy);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  opacity: 0.6;
}

/* Central hub - smaller so it doesn't crowd the cards */
.lifecycle__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  transform: translate(-50%, -50%);
  background: var(--indracon-navy);
  color: var(--indracon-white);
  padding: 24px 22px;
  border-radius: 4px;
  text-align: center;
  z-index: 2;
  border-top: 3px solid var(--indracon-gold);
}
.lifecycle__hub-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indracon-gold);
  margin-bottom: 10px;
}
.lifecycle__hub-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--indracon-white);
  margin: 0 0 10px;
}
.lifecycle__hub-divider {
  width: 32px;
  height: 1px;
  background: var(--indracon-gold);
  opacity: 0.55;
  margin: 6px auto 14px;
}
.lifecycle__hub-body {
  font-size: 12px;
  line-height: 1.5;
  color: var(--indracon-light-blue);
  margin: 0;
}

/* Cards - positioned at pentagon vertices */
.lifecycle__node {
  position: absolute;
  width: 26%;           /* ~260px at 1000 wide */
  background: var(--indracon-white);
  padding: 20px 22px 20px 24px;
  border-radius: 4px;
  border-left: 3px solid var(--indracon-navy);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(31, 67, 100, 0.07);
}
.lifecycle__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--indracon-burgundy);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.lifecycle__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--indracon-navy);
  margin: 0 0 10px;
}
.lifecycle__body {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--indracon-graphite-soft);
  margin: 0;
}

/* Pentagon positions as percentages of container (1000x900 base) */
/* Stage 1: top center      — center (500,110) → top:10/900, left:50% - half */
/* Stage 2: top-right       — center (823,345) → top:245/900, left: 823/1000 - half */
/* Stage 3: bottom-right    — center (700,725) → top:625/900, left: 700/1000 - half */
/* Stage 4: bottom-left     — center (300,725) */
/* Stage 5: top-left        — center (177,345) */

.lifecycle__node--1 { top: 1.1%;  left: 50%; transform: translateX(-50%); }
.lifecycle__node--2 { top: 27.2%; left: 69.3%; }
.lifecycle__node--3 { top: 69.4%; left: 57%; }
.lifecycle__node--4 { top: 69.4%; left: 17%; }
.lifecycle__node--5 { top: 27.2%; left: 4.7%; }

.lifecycle__loop-label {
  text-align: center;
  margin-top: 48px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--indracon-graphite-soft);
  font-family: var(--font-display);
}
.lifecycle__loop-arrow {
  display: inline-block;
  color: var(--indracon-burgundy);
  font-size: 1.6rem;
  vertical-align: middle;
  margin-right: 8px;
  font-style: normal;
}

/* Mobile: stack vertically */
@media (max-width: 820px) {
  .lifecycle {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding: 0;
  }
  .lifecycle__arrows { display: none; }
  .lifecycle__node,
  .lifecycle__hub {
    position: static;
    transform: none;
    width: 100%;
    max-width: 480px;
  }
  .lifecycle__hub    { order: 1; }
  .lifecycle__node--1 { order: 2; }
  .lifecycle__node--2 { order: 3; }
  .lifecycle__node--3 { order: 4; }
  .lifecycle__node--4 { order: 5; }
  .lifecycle__node--5 { order: 6; }
  .lifecycle__node:not(.lifecycle__node--5)::after,
  .lifecycle__hub::after {
    content: '↓';
    display: block;
    text-align: center;
    color: var(--indracon-burgundy);
    font-size: 1.2rem;
    margin-top: 16px;
    margin-bottom: -8px;
  }
}

/* ==========================================================================
   Therapeutic experience
   ========================================================================== */
.therapeutic {
  background: var(--indracon-cream-2);
  padding: 96px 0 112px;
}
.therapeutic__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  text-align: center;
  color: var(--indracon-navy);
  margin: 0 0 16px;
}
.therapeutic__divider {
  width: 56px;
  height: 2px;
  background: var(--indracon-gold);
  margin: 0 auto 56px;
  border: none;
}
.therapeutic__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.chip {
  background: var(--indracon-white);
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--indracon-navy);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(31, 67, 100, 0.08);
}

/* ==========================================================================
   Contact / Inquiry form
   ========================================================================== */
.inquiry {
  background: var(--indracon-cream);
  padding: 96px 0 120px;
}
.inquiry__inner {
  max-width: 760px;
  margin: 0 auto;
}
.inquiry__divider {
  width: 56px;
  height: 2px;
  background: var(--indracon-burgundy);
  margin: 0 0 32px;
  border: none;
}
.inquiry__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.875rem;
  color: var(--indracon-navy);
  margin: 0 0 16px;
}
.inquiry__lede {
  font-size: 15px;
  line-height: 1.7;
  color: var(--indracon-graphite-soft);
  margin: 0 0 48px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form__field { display: flex; flex-direction: column; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--indracon-graphite);
  margin-bottom: 8px;
}
.form__input,
.form__textarea {
  background: var(--indracon-cream-2);
  border: none;
  border-bottom: 1px solid rgba(31, 67, 100, 0.2);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--indracon-graphite);
  border-radius: 4px 4px 0 0;
  transition: border-color 200ms ease;
}
.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-bottom-color: var(--indracon-burgundy);
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--indracon-graphite-soft);
  opacity: 0.55;
}
.form__textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-body);
}
.form__submit {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--indracon-navy);
  color: var(--indracon-white);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 200ms ease;
}
.form__submit:hover { background: var(--indracon-navy-deep); }
.form__status {
  margin-top: 24px;
  padding: 16px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}
.form__status--success {
  background: rgba(199, 154, 67, 0.1);
  color: var(--indracon-graphite);
  border-left: 3px solid var(--indracon-gold);
}
.form__status--error {
  background: rgba(123, 44, 59, 0.08);
  color: var(--indracon-burgundy);
  border-left: 3px solid var(--indracon-burgundy);
}

@media (max-width: 700px) {
  .form__row { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: radial-gradient(ellipse at center, var(--indracon-navy) 0%, var(--indracon-navy-deep) 100%);
  color: var(--indracon-light-blue);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  border-top: 2px solid var(--indracon-burgundy);
}
.footer__text { margin: 0; }

/* ==========================================================================
   Subtle entrance animation
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeIn 600ms ease-out forwards;
  }
  .fade-in:nth-child(2) { animation-delay: 80ms; }
  .fade-in:nth-child(3) { animation-delay: 160ms; }
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Bio Modal
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal--open {
  display: flex;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 45, 77, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: modalFade 200ms ease-out;
}
.modal__panel {
  position: relative;
  background: var(--indracon-cream);
  max-width: 760px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 45, 77, 0.25);
  border-top: 3px solid var(--indracon-burgundy);
  animation: modalRise 240ms ease-out;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--indracon-graphite-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background 200ms ease, color 200ms ease;
  z-index: 2;
}
.modal__close:hover,
.modal__close:focus-visible {
  background: var(--indracon-cream-3);
  color: var(--indracon-navy);
  outline: none;
}
.modal__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  padding: 48px 48px 48px 40px;
}
.modal__photo {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--indracon-cream-3);
}
.modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal__content {
  min-width: 0;
}
.modal__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--indracon-navy);
  margin: 0 0 8px;
}
.modal__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indracon-burgundy);
  margin: 0 0 24px;
}
.modal__bio p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--indracon-graphite);
  margin: 0 0 16px;
}
.modal__bio p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .modal { padding: 12px; }
  .modal__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 28px 32px;
  }
  .modal__photo {
    max-width: 180px;
    margin: 0 auto;
  }
  .modal__name { font-size: 1.4rem; text-align: center; }
  .modal__role { text-align: center; }
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .modal__backdrop, .modal__panel { animation: none; }
}

/* ==========================================================================
   Splash screen + morph-to-nav animation
   ========================================================================== */

/* While splash is active, hide nav logo + fade page content under the overlay */
html.splash-active .nav__logo { visibility: hidden; }
html.splash-active body > *:not(.splash) { opacity: 0; }

/* When splash dismisses, fade page content back in */
html.no-splash body > *:not(.splash) {
  opacity: 1;
  transition: opacity 500ms ease-out;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--indracon-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.splash__logo {
  /* Large centered logo — about 35% of viewport, capped */
  width: min(420px, 60vw);
  height: auto;
  transform-origin: center center;
  /* Use a custom easing — feels natural for shrink + translate */
  transition: transform 800ms cubic-bezier(0.65, 0, 0.35, 1),
              opacity 800ms ease;
  will-change: transform, opacity;
}

/* When splash starts morphing: shrink + translate to nav position */
.splash--morphing .splash__logo {
  transform: translate(var(--morph-dx, 0), var(--morph-dy, 0)) scale(var(--morph-scale, 0.2));
}

/* Mobile splash logo a bit smaller */
@media (max-width: 768px) {
  .splash__logo {
    width: min(280px, 70vw);
  }
}

/* Reduced motion: instantly hide instead of animating */
@media (prefers-reduced-motion: reduce) {
  .splash, html.splash-active body > *:not(.splash) { transition: none !important; }
}
