/* ============================================
               APHELION.CSS
   Shared stylesheet for all APHEL\ON pages.
   Page-specific overrides are scoped with
   body.page-[name] at the bottom of each section.
   ============================================ */


/* ============================================
                FONT IMPORT
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Hammersmith+One&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Ovo&family=Quattrocento+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Just+Me+Again+Down+Here&family=Reenie+Beanie&family=Shadows+Into+Light&display=swap');


/* ============================================
             COLOR + SHADOW TOKENS
   ============================================ */

:root {
  --agnello:        #FFFAF7;
  --tender:         #f1e7e2;
  --whimsy:         #FFE4CC;
  --hope:           #fff4d5;
  --anxiety:        #6E6463;
  --galileo:        #d97454;
  --altitude:       #B05921;
  --stargazer:      #3c4439;
  --telescope:      #bababa;
  --aphelion:       #1F1F1E;
  --void:           #121212;
  --romero:         #3f3f3f;
  --constitution:   #263071;
  --morale:         #4d2d20;
  --release:        #3b3232fc;
  --siblings:       #F9F0E8;
  --safety:         #ffffff40;
  --honest:         #ffeaead9;
  --introspect:     #ffffffd9;
  --responsibility: #0d0d0de0;
  --transparency:   #6b6b6b40;
  --home:           #D5B3A2;
 --neutral-ground: #E3DACB;

  --zenith: 0 1px 3px 0 rgba(135, 125, 118, 0.25);
  --nadir:  0 -3px 3px 0 rgba(135, 125, 118, 0.3);
  --ivy:    0 2px 2px 0 rgba(34, 42, 10, 0.3);

  --aphelion-logo: url('a-light.png');
  --ai-logo:       url('AI-logo.png');
  --paper:         url('paper.png');
}

[data-theme="dark"] {
  --agnello:        #282828;
  --tender:         #3E3330;
  --whimsy:         #524844;
  --hope:           #5B5249;
  --anxiety:        #79716F;
  --galileo:        #D97454;
  --altitude:       #B05921;
  --stargazer:      #ead7d7;
  --telescope:      #C1B8B5;
  --aphelion:       #FFE4CC;
  --void:           #100804de;
  --romero:         #ddc1b8;
  --constitution:   #d1c8ae;
  --morale:         #ffd5bf;
   --release:        #2a1c1c;
  --safety:         #100504de;
  --honest:         #00000040;
  --introspect:     #0d0d0de0;
  --responsibility: #ffffff40;
  --home:           #2d2222;
  --neutral-ground: #6a4d40;, 

  --zenith: 0 1px 3px 0 rgba(0, 0, 0, 0.25);
  --nadir:  0 -3px 3px 0 rgba(0, 0, 0, 0.3);
  --ivy:    0 2px 4px 0 rgba(34, 42, 0, 0.3);

  --aphelion-logo: url('a-dark.png');
  --ai-logo:       url('AI-logo-dark.png');
  --paper:         url('paper-dark.png');
}

/* miracle page has its own background images */
body.page-miracle {
  --paper:  url('marble.png');
  --miracle: url('miracle-bg-light.png');
}

body.page-miracle[data-theme="dark"],
[data-theme="dark"] body.page-miracle {
  --paper:   url('marble-dark.png');
  --miracle: url('miracle-bg-dark.png');
}

/* models page uses a long paper variant */
body.page-models {
  --paper: url('paper-bg-long.png');
}

body.page-models[data-theme="dark"],
[data-theme="dark"] body.page-models {
  --paper: url('paper-bg-dark-long.png');
}

/* letter page uses its own paper + token tweaks */
body.page-letter {
  --paper:   url('paper-long-bg.png');
}

body.page-letter[data-theme="dark"],
[data-theme="dark"] body.page-letter {
  --hope:  #5b5249;
  --paper: url('paper-bg-dark-long.png');
}


/* ============================================
               RESET + BASE
   ============================================ */

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

a {
  text-decoration: none;
}

body {
  background-color: var(--tender);
  color: var(--stargazer);
  line-height: 1.5;
  font-size: 16px;
  text-align: left;
}

button {
  width: 50px;
  height: 50px;
  opacity: 0.5;
  color: var(--altitude);
  border: 1px solid var(--aphelion);
  border-radius: 99px;
  position: absolute;
  bottom: 5%;
  right: 3%;
}

button img {
  height: 100%;
  width: 100%;
  border-radius: 99px;
}

.gateway {
 font-family: 'Cabin', sans-serif;
 font-weight: 700;
 text-transform: uppercase;
 color: var(--agnello);
 letter-spacing: 0.03em;
  width: 80px;
  background-color: var(--aphelion);
  font-family: 'Cabin', sans-serif;
  text-align: center;
  border: 2px solid var(--safety);
  border-radius: 99px;
 padding: 0.5rem;
}


/* ============================================
              PAGE TRANSITIONS
   ============================================ */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 600ms ease fade-out;
}

::view-transition-new(root) {
  animation: 600ms ease fade-in;
}

@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ============================================
             HEADER + FOOTER SHELL
   ============================================ */

header {
  width: 100%;
  height: 60px;
  background-color: var(--safety);
  border-bottom: 1px solid var(--transparency);
  position: sticky;
  top: 0;
  opacity: 1;
  box-shadow: var(--zenith);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
}

header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 3%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-image: var(--ai-logo);
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.65;
  z-index: 0;
}

footer {
  width: 100%;
  background-color: var(--void);
  border-top: 3px solid var(--altitude);
  padding: 0.5rem 1rem 1rem;
  box-shadow: var(--nadir);
}


/* ============================================
               FOOTER TYPEFACE
   ============================================ */

.footer-heading {
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 200;
  line-height: 1.5;
  opacity: 1;
  text-transform: lowercase;
  color: var(--telescope);
  text-decoration: underline 0.03rem solid var(--altitude);
  text-underline-offset: 3px;
}

.footer-heading a {
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
  opacity: 1;
  color: var(--telescope);
  text-decoration: underline 0.03rem solid var(--altitude);
  text-underline-offset: 3.5px;
  padding: 2rem 0;
}

.footer-text {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: lowercase;
  color: var(--anxiety);
  opacity: 1;
}

.footer-text a {
  font-family: 'Cabin', sans-serif;
  font-weight: 200;
  text-transform: lowercase;
  font-size: 0.75rem;
  color: var(--anxiety);
  opacity: 1;
}

.footer-text a:hover {
  color: var(--altitude);
}


/* ============================================
         SHARED TYPEFACE — all pages except letter
   ============================================ */

h1 {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 26px;
  font-style: italic;
  color: var(--aphelion);
  animation: smofffff 4s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

h1.hp {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 26px;
  font-style: italic;
  color: var(--aphelion);
  animation: smofffff 4s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
} 

h1 span {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 26px;
  font-style: normal;
  color: var(--galileo);
  animation: smofffff 1s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

@keyframes smofffff {
  from {
    opacity: 0;
    letter-spacing: 0.0rem;
  }
  to {
    opacity: 0.7;
    letter-spacing: 0.0rem;
  }
}

h2 {
  font-family: 'Ovo', sans-serif;
  font-weight: 200;
  color: var(--aphelion);
  font-size: 12px;
  text-transform: lowercase;
  opacity: 0.35;
  letter-spacing: 0.03em;
  animation: smofffff-slow 4s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

h2 span {
  font-family: 'Ovo', sans-serif;
  font-weight: 200;
  color: var(--galileo);
  font-size: 16px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  animation: smofffff-full-op 6s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

@keyframes smofffff-full-op {
  from {
    opacity: 0;
    letter-spacing: 0;
  }
  to {
    opacity: 1;
    letter-spacing: 0.04em;
  }
}

h2.plant {
  font-family: 'Ovo', sans-serif;
  font-weight: 200;
  color: var(--aphelion);
  font-size: 36px;
  text-transform: lowercase;
  opacity: 0.35;
  letter-spacing: 0.03em;
  animation: smofffff-slow 4s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

@keyframes smofffff-slow {
  from {
    opacity: 0;
    letter-spacing: 0.00rem;
  }
  to {
    opacity: 0.7;
    letter-spacing: 0.0rem;
  }
}

.read-more, .read-more a {
 font-family: 'Cabin', sans-serif;
  font-weight: 400;
  color: var(--home);
  font-size: 16px;
  opacity: 1;
 background-color: var(--aphelion);
 border-radius: 50px;
 height: 40px;
 width: 100px; 
}

h3 {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  color: var(--anxiety);
  font-size: 14px;
  opacity: 0.65;
}

h3 span {
  position: absolute;
  bottom: 10%;
  left: 18%;
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  color: var(--anxiety);
  font-size: 14px;
  opacity: 0.65;
  text-decoration: none;
}

p {
  font-family: 'Ovo', serif;
  font-weight: 400;
  color: var(--aphelion);
  font-size: 16px;
}

p span {
  font-style: normal;
  color: var(--galileo);
}

p span a {
  color: var(--galileo);
}


/* ============================================
     PAGE-SPECIFIC TYPEFACE — letter (thank-you)
   ============================================ */

body.page-letter h1 {
  font-family: 'Just Me Again Down Here', cursive;
  font-weight: 300;
  font-size: 26px;
  letter-spacing: 0.03em;
  font-style: italic;
  color: var(--aphelion);
  animation: none;
}

body.page-letter h1 span {
  animation: none;
}

body.page-letter h2 {
  font-family: 'Ovo', sans-serif;
  font-weight: 700;
  color: var(--aphelion);
  font-size: 42px;
  opacity: 0.35;
  letter-spacing: 0.2em;
  animation: smofffff-slow 4s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

body.page-letter h2 span {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  animation: none;
}

body.page-letter p {
  font-family: 'Just Me Again Down Here', cursive;
  font-weight: 400;
  color: var(--aphelion);
  font-size: 16px;
  text-transform: lowercase;
}

body.page-letter p span {
  font-style: italic;
  color: var(--galileo);
}


/* ============================================
          MIRACLE PAGE — h2 span variant
   ============================================ */

body.page-miracle h2 span {
  font-weight: 700;
  animation: introduction 6s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

@keyframes introduction {
  from {
    opacity: 0;
    letter-spacing: 0;
    font-size: 16px;
    line-height: 0.2;
  }
  to {
    opacity: 1;
    letter-spacing: 0.04em;
    font-size: 22px;
    line-height: 1;
  }
}


/* ============================================
              SHARED UTILITY CLASSES
   ============================================ */

.stack-news {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.03em;
  font-style: italic;
  color: var(--aphelion);
  padding-left: 1rem;
}

.mission-statement {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.03em;
  font-style: italic;
  color: var(--aphelion);
}

.plant-speak {
  font-family: 'Ovo', sans-serif;
  font-weight: 400;
  color: var(--aphelion);
  font-size: 14px;
  opacity: 0.5;
  letter-spacing: 0;
  animation: smofffff-green 4s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

/* miracle uses same class with slight opacity tweak */
body.page-miracle .plant-speak {
  opacity: 0.8;
}

.effect {
  font-family: 'Ovo', serif;
  font-weight: 400;
  letter-spacing: 0.05rem;
  color: var(--aphelion);
  margin-top: 0.3rem;
  font-size: 18px;
  animation: smofffff 1.5s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

.effect:hover {
  letter-spacing: 0.09rem;
  color: var(--galileo);
}

body.page-letter .effect {
  color: var(--anxiety);
}

.releases-heading {
  font-family: 'Cabin', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--aphelion);
}

.releases-body {
  font-family: 'Ovo', serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--aphelion);
  line-height: 2;
}

.releases-body span {
  font-family: 'Cabin', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--agnello);
}

.our-values {
  font-family: 'Cabin', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--aphelion);
  margin: 0 1rem 0;
}

.our-values a {
  font-family: 'Cabin', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--aphelion);
  margin: 0 1rem 0;
}

.our-values-sub {
  font-family: 'Cabin', sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--telescope);
  margin: 0 1rem 0;
}

.our-values-sub a {
  font-family: 'Cabin', sans-serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--telescope);
  margin: 0 1rem 0;
}

.our-values .our-values-sub a:hover {
  letter-spacing: 0.2em;
  color: var(--galileo);
}

.addendum {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 0 3rem 0.5rem;
  opacity: 0.5;
}

/* founders page uses addendum as plain text, different style */
.addendum.text-only {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  color: var(--telescope);
  font-size: 10px;
  font-style: italic;
  line-height: 1;
  margin-top: 7px;
  display: block;
  padding: 0;
  opacity: 1;
}

.divider {
  color: var(--aphelion);
  opacity: 0.25;
  border: 0.01rem solid;
  width: 96%;
}

.divider-releases {
  position: absolute;
  color: var(--aphelion);
  opacity: 0.25;
  border: 0.01rem solid;
  width: 96%;
  top: 58%;
  right: 2%;
}

.gate {
  position: absolute;
  width: 65px;
  background-color: var(--aphelion);
  font-family: 'Cabin', sans-serif;
  text-align: center;
  border: 2px solid var(--aphelion);
  border-radius: 99px;
  top: 69%;
  right: 3%;
}




/* ============================================
              KEYFRAME ANIMATIONS
   ============================================ */



@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.85;
    transform: translateY(0);
  }
}





/* hero cascade lines */
.line-1 { opacity: 0; animation: fadeInUp 0.6s ease-in-out forwards;        line-height: 1rem; }
.line-2 { opacity: 0; animation: fadeInUp 0.6s ease-in-out 0.4s  forwards;  line-height: 1rem; }
.line-3 { opacity: 0; animation: fadeInUp 0.6s ease-in-out 0.6s  forwards;  line-height: 1rem; }
.line-4 { opacity: 0; animation: fadeInUp 0.6s ease-in-out 1.2s  forwards;  line-height: 1rem; }
.line-5 { opacity: 0; animation: fadeInUp 0.6s ease-in-out 1.6s  forwards;  line-height: 1rem; }
.line-6 { opacity: 0; animation: fadeInUp 0.6s ease-in-out 2s    forwards;  line-height: 1rem; }
.line-7 { opacity: 0; animation: fadeInUp 0.6s ease-in-out 2.4s  forwards;  line-height: 1rem; }
.line-8 { opacity: 0; animation: fadeInUp 0.6s ease-in-out 2.8s  forwards;  line-height: 1rem; }


/* ============================================
                LAYOUT BLOCKS
   ============================================ */

.teamwork {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 0 0.5rem 1rem;
  margin: 0;
}

.teamwork-rel {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 0 0 1rem;
  margin: 0;
}

.teamwork-footer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1rem;
  margin: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 4rem;
  padding-top: 2rem;
}

/* letter page hero is centered */
body.page-letter .hero {
  padding: 1rem;
  align-items: center;
  padding-left: 1rem;
}

.ethos {
  display: grid;
  grid-column: 1;
  gap: 1rem;
  align-content: center;
}

.ethos-and-mission {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  gap: 1rem;
  padding: 2rem 3rem;
}

/* letter page ethos padding is smaller */
body.page-letter .ethos-and-mission {
  padding: 1rem 2rem 1rem;
}

.ethos-and-mission-founders {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  gap: 1rem;
  padding: 1rem 2rem 0;
}

.father {
  display: grid;
  grid-column: 1;
  gap: 1rem;
  align-content: center;
}

.and-sons {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  gap: 0.5rem;
  padding: 1rem 3rem 1rem;
}

/* miracle centers its and-sons */
body.page-miracle .and-sons {
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 2rem 1rem;
}

.meeting {
  display: grid;
  grid-column: 1;
  gap: 0;
  align-content: center;
}

.board-meeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  gap: 0;
  padding: 0;
  margin: 0;
}

.rel-stack {
  display: grid;
  grid-column: 1;
  gap: 1rem;
  align-content: center;
}

.rel-stack-glue {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  gap: 1rem;
  padding: 2rem 2rem;
}


/* ============================================
                 BOXES + CARDS
   ============================================ */

.guardrails {
 position: relative;
  width: 82%;
 height: 630px;
  background-color: var(--hope);
  background-image: var(--paper);
  padding: 2rem 2rem;
  text-align: center;
  border-radius: 15px;
  border-bottom: 2px solid var(--transparency);
  box-shadow: var(--zenith);
}

.guardrails-content {
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.releases {
  position: relative;
  width: 100%;
  background-color: var(--neutral-ground);
  padding: 1rem 1rem;
  text-align: left;
  border-radius: 8px;
  border-bottom: 2px solid var(--release);
  box-shadow: var(--zenith);
}

.gate.mom {
  position: absolute;
  width: 110px;
  background-color: var(--stargazer);
  font-family: 'Cabin', sans-serif;
  text-align: center;
  border: 1px solid var(--stargazer);
  border-radius: 99px;
  top: 75%;
  right: 37%;
}

/* models page releases has 15px radius */
body.page-models .releases {
  border-radius: 15px;
}

/* shared roster base — scroll reveal starts it invisible */
.roster {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
  padding: 2rem 2rem;
  text-align: center;
  border-radius: 15px;
  box-shadow: var(--zenith);
  margin-bottom: 2rem;
}

.roster.visible {
  opacity: 1;
  transform: translateY(0);
}

/* models roster */
body.page-models .roster {
  width: 78%;
  height: 500px;
  background-color: var(--home);
  border-top: 2px solid var(--galileo);
  border-bottom: 2px solid var(--galileo);
}

body.page-models .roster::before {
  content: '';
  width: 300px;
  height: 300px;
  padding: 2rem 2rem;
  text-align: center;
  border-radius: 15px;
  background-image: url('galileo-bg.png');
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  padding: 5rem 1rem;
  animation: smofffff 8s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

/* miracle roster */
body.page-miracle .roster {
  width: 80%;
  background-color: var(--whimsy);
  background-image: var(--miracle);
  border-top: 2px solid var(--agnello);
  border-bottom: 2px solid var(--agnello);
}

body.page-miracle .roster::before {
  content: '';
  width: 80%;
  padding: 2rem 2rem;
  text-align: center;
  border-radius: 15px;
  opacity: 0;
  padding: 5rem 1rem;
}

.roster-content {
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.family-tree {
  font-family: 'Ovo', sans-serif;
  font-weight: 700;
  color: var(--galileo);
  font-size: 22px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  animation: smofffff 6s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

.family-dynamics {
  width: 60%;
  text-align: center;
  height: 35px;
  background: var(--galileo);
  border-radius: 15px;
  border: 2px dotted var(--altitude);
  opacity: 0.75;
}

.siblings {
  font-family: 'Ovo', sans-serif;
  font-weight: 700;
  color: var(--home);
  font-size: 18px;
  text-transform: lowercase;
  letter-spacing: 0em;
  animation: smofffff-wide 5s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
  margin-top: 0.2rem;
}

.miracle {
  height: 100%;
  width: 100%;
  border-radius: 5px;
}

.miracle img {
  width: 300px;
  height: 275px;
  object-fit: cover;
}

.plants {
  width: 290px;
  height: 320px;
  opacity: 0.5;
}

.plants img {
  width: 100%;
  height: 100%;
}

.blank-check {
  width: 60px;
  height: 60px;
  background-color: transparent;
  border: 1.5px solid var(--aphelion);
  padding-bottom: 3rem;
}


/* ============================================
            MENU TOGGLE — HAMBURGER
   ============================================ */

.menu-toggle {
  position: absolute;
  top: 15%;
  right: 4%;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
}

.icon-wrap {
  width: 25px;
  height: 25px;
  position: relative;
  display: block;
}

.icon-lines span {
  position: absolute;
  left: 0;
  width: 95%;
  height: 0.05rem;
  background: var(--aphelion);
  border-radius: 0;
  opacity: 0.8;
  transition: transform 0.35s ease, opacity 0.35s ease, top 0.35s ease;
}

.icon-lines span:nth-child(1) { top: 15%; }
.icon-lines span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.icon-lines span:nth-child(3) { top: 85%; transform: translateY(-100%); width: 60%; }

.menu-toggle.open .icon-lines span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.open .icon-lines span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .icon-lines span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 95%;
}


/* ============================================
              SLIDE-OUT SIDE MENU
   ============================================ */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--safety);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 90;
}

.menu-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 350px;
  max-width: 65vw;
  background: var(--safety);
  border-left: 1px solid var(--aphelion);
  border-radius: 0px;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.20, 0.38, 0.42, 1);
  z-index: 100;
  padding: 5.5rem 0 2rem;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
}

/* miracle uses introspect background for menu */
body.page-miracle .side-menu {
  background: var(--introspect);
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu nav {
  display: flex;
  flex-direction: column;
  padding-top: 85px;
}

.side-menu a {
  font-family: 'Cabin', sans-serif;
  color: var(--aphelion);
  text-decoration: none;
  border-bottom: 1px dotted var(--aphelion);
  font-size: 1.05rem;
  padding: 1rem 2rem;
  position: relative;
  transition: padding-left 0.25s ease, color 0.25s ease;
}

.side-menu a span {
  color: var(--galileo);
}

.side-menu nav a:last-child {
  border-bottom: none;
}

.side-menu a:hover {
  padding-left: 2.6rem;
  color: var(--galileo);
}

.side-menu a::before {
  content: '';
  position: absolute;
  left: 1.4rem;
  top: 50%;
  width: 0;
  height: 12px;
  border-radius: 50%;
  border: 1px solid;
  background: var(--galileo);
  transform: translateY(-50%);
  transition: width 0.25s ease;
}

.side-menu a:hover::before {
  width: 0.8rem;
}

.side-menu .menu-label {
  font-family: 'Cabin', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--stargazer);
  padding: 55px 23px 10px;
}

.side-menu .bottom-text {
  font-family: 'Cabin', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--altitude);
  position: absolute;
  bottom: 2%;
  left: 6%;
}

.side-menu .branding {
  font-family: 'Cabin', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-shadow: var(--zenith);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--galileo);
  position: absolute;
  top: 9%;
  left: 25%;
}


/* ============================================
                  LOGO MARKS
   ============================================ */

.ai {
  width: 120px;
  height: 120px;
  opacity: 0.45;
  position: absolute;
  top: 2%;
  left: 6%;
}

.ai img {
  width: 100%;
  height: 100%;
}

.a-logo {
  width: 158px;
  height: 47px;
  opacity: 0.35;
  position: absolute;
  top: 13%;
  left: 5%;
}

.a-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a-logo-loose {
  width: 160px;
  height: 45px;
  opacity: 0.5;
  animation: smofffff 8s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
}

.a-logo-loose img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intelligence {
  display: grid;
  grid-column: 1;
  gap: 0;
  align-content: left;
}

.artificial-intelligence {
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
  gap: 1rem;
}


/* ============================================
              SCROLL REVEAL — SHARED
   ============================================ */

.releases,
.guardrails {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}

.releases.visible,
.guardrails.visible {
  opacity: 0.85;
  transform: translateY(0);
}


/* ============================================
   FOUNDERS PAGE — .our-founders grid + headshots
   ============================================ */

.our-founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  align-content: left;
  align-items: left;
  max-width: 350px;
  margin: 0;
  padding: 2rem 1rem 1rem;
}

.their-faces {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: left;
  text-align: left;
  gap: 1rem;
  padding: 2rem 1.5rem;
}

.our-founders-r {
  display: grid;
  gap: 1rem;
  align-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
}

.their-faces-r {
  display: flex;
  flex-direction: column;
  align-items: right;
  text-align: right;
  gap: 1rem;
  padding: 2rem 1.5rem;
}

.headshots {
  width: 150px;
  height: 200px;
  opacity: 0.9;
  border-radius: 3px;
  box-shadow: var(--zenith);
  border: 1px solid var(--transparency);
}

.headshots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.headshots:hover img {
  transform: scale(1.05);
}

.aligned-values {
  width: 100%;
  height: 200px;
  margin: 0;
  padding: 0;
}

.aligned-values-text {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  color: var(--aphelion);
  font-size: 16px;
  font-style: normal;
  line-height: 1;
  width: 230px;
  height: 100px;
  text-align: left;
  padding-top: 50px;
  margin-right: 15px;
}

.aligned-values-text span {
  font-family: 'Ovo', serif;
  font-weight: 200;
  font-style: italic;
  text-transform: lowercase;
  color: var(--romero);
  font-size: 10px;
  line-height: 1;
}

h1.of {
  font-family: 'Cabin', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-style: italic;
  text-transform: uppercase;
  color: var(--aphelion);
  animation: smofffff 4s cubic-bezier(0.20, 0.38, 0.42, 1) forwards;
  text-align: center;
}

h1.of span {
  color: var(--galileo);
  font-style: normal;
}

h3.of {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  color: var(--anxiety);
  font-size: 12px;
  opacity: 0.65;
 text-align: center;
}

h3.of span {
  position: absolute;
  bottom: 10%;
  left: 18%;
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  color: var(--anxiety);
  font-size: 12px;
  opacity: 0.65;
  text-decoration: none;
}

/* founders scroll reveal */
.aligned-values,
.aligned-values-text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.aligned-values.visible {
  opacity: 1;
  transform: translateY(0);
}

.aligned-values-text.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.18s;
}

.load-2,
.load-3-img,
.load-3-text {
  transition: none !important;
}

.load-2     { animation: fadeInUp 0.6s ease 0.3s  forwards; }
.load-3-img { animation: fadeInUp 0.6s ease 0.6s  forwards; }
.load-3-text{ animation: fadeInUp 0.6s ease 0.75s forwards; }

/* founders lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--safety);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}


/* ============================================
   LETTER PAGE (thank-you) — unique classes
   ============================================ */

.gratitude-txt,
.the-lamb {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 4s ease, transform 3s ease;
}

.gratitude-txt.visible,
.the-lamb.visible {
  opacity: 1;
  transform: translateY(0);
}

.dreamer {
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  border: 2px solid var(--anxiety);
  box-shadow: var(--zenith);
  margin-top: 25px;
  margin-left: 5px;
  opacity: 0.85;
  z-index: 0;
}

.dreamer img {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.dreamer-sub {
  position: absolute;
  height: 17px;
  width: 160px;
  text-align: center;
  line-height: 1.05;
  background-color: var(--hope);
  opacity: 0.45;
  border-radius: 5px;
  bottom: 6%;
  left: 4%;
  font-family: 'Just Me Again Down Here', cursive;
  font-weight: 400;
  font-size: 13px;
  font-style: normal;
  color: var(--stargazer);
  z-index: 0;
  text-shadow: var(--zenith);
}

.dreamer-hq {
  width: 180px;
  aspect-ratio: 4 / 7;
  border-radius: 5px;
  border: 2px solid var(--aphelion);
  box-shadow: var(--zenith);
  opacity: 0.85;
}

.dreamer-hq img {
  width: 100%;
  height: 100%;
}

.dreamer-hq-sub {
  position: absolute;
  height: 17px;
  width: 160px;
  text-align: center;
  line-height: 1.05;
  background-color: var(--safety);
  opacity: 0.65;
  border-radius: 5px;
  bottom: 4%;
  right: 4%;
  font-family: 'Just Me Again Down Here', cursive;
  font-weight: 400;
  font-size: 13px;
  font-style: normal;
  color: var(--anxiety);
  z-index: 0;
  text-shadow: var(--zenith);
}

.dream-team {
  width: 98%;
  aspect-ratio: 7 / 3;
  border-radius: 5px;
  border-left: 1px solid var(--morale);
  border-top: 1px solid var(--morale);
  border-right: 2px solid var(--morale);
  border-bottom: 2px solid var(--morale);
  box-shadow: var(--zenith);
  opacity: 1;
}

.dream-team img {
  width: 100%;
  height: 100%;
}

.dream-team-sub {
  position: absolute;
  height: 17px;
  width: 160px;
  text-align: center;
  line-height: 1.05;
  background-color: var(--whimsy);
  opacity: 0.65;
  border-radius: 5px;
  top: 40%;
  right: 4%;
  font-family: 'Just Me Again Down Here', cursive;
  font-weight: 400;
  font-size: 13px;
  font-style: normal;
  color: var(--morale);
  z-index: 0;
  text-shadow: var(--zenith);
}

.gratitude {
  width: 90%;
  text-align: left;
  margin: 0.2rem 1.5rem 0.5rem;
}

.gratitude-for-altitude {
  width: 90%;
  text-align: center;
  margin: 1.6rem 2rem 1rem;
}

.dreamers {
  width: 98%;
  text-align: center;
  margin: 1rem auto 0;
}

.gratitude-head {
  position: absolute;
  top: 9%;
  left: 17%;
  font-family: 'Just Me Again Down Here', cursive;
  font-weight: 400;
  font-size: 22px;
  font-style: italic;
  color: var(--morale);
  letter-spacing: 0.2em;
  text-decoration: underline 1px var(--galileo);
  text-underline-offset: 5px;
  line-height: 1;
  opacity: 0.65;
}

.signatures {
  font-family: 'Reenie Beanie', cursive;
  font-weight: 400;
  font-size: 18px;
  font-style: normal;
  color: var(--constitution);
  margin-left: 0;
}

.gratitude-txt {
  font-family: 'Just Me Again Down Here', cursive;
  font-style: normal;
  font-weight: 400;
  color: var(--morale);
  font-size: 16px;
  text-transform: lowercase;
  line-height: 1.3;
}

.the-lamb {
  font-family: 'Just Me Again Down Here', cursive;
  font-weight: 400;
  color: var(--galileo);
  font-size: 26px;
  text-transform: lowercase;
  line-height: 1.08;
  font-style: italic;
}

.gratitude-txt span {
  font-style: italic;
  color: var(--galileo);
}

.sig-loose {
  width: 200px;
  height: 80px;
  opacity: 0.85;
}

.sig-loose img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teamwork-main {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  max-width: 100%;
  margin: 1rem 1rem 0rem;
  padding: 5px;
}

.sigs {
  text-align: center;
  max-width: 80%;
  margin: 0 auto 1rem;
}

.mattie-sig {
  text-align: left;
  max-width: 90%;
  margin: 2rem 5rem 1rem;
}

.sincere-thanks {
  position: relative;
  display: flex;
  flex-direction: column;
  columns: 1;
  width: 96%;
  background-color: var(--home);
  background-image: url('dots-sq.png');
  background-repeat: no-repeat;
  background-position: center;
  border-left: 1px solid var(--morale);
  border-top: 1px solid var(--morale);
  border-bottom: 2px solid var(--morale);
  border-right: 2px solid var(--morale);
  border-radius: 5px;
  margin: 4rem auto 1rem;
  box-shadow: var(--zenith);
  opacity: 0.85;
}

.sign-off {
  font-family: 'Cabin', sans-serif;
  font-weight: 400;
  color: var(--aphelion);
  font-size: 13px;
  opacity: 0.65;
}

/* the essay */

.divider-essay {
  color: var(--aphelion);
  opacity: 0.25;
  border: 0.05rem solid;
  width: 96%;
  margin: 0 auto 0;
}

p.essay {
 font-size: 13px;
 text-transform: lowercase;
}

p.essay span {
 color: var(--galileo);
}

h2.essay {
 font-family: 'Ovo', serif;
 font-weight: 700;
 font-size: 16px;
 color: var(--altitude);
}

h2.essay span {
 color: var(--galileo);
}

.essay-container {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: left;
 width: 100vw;
 background-color: (--agnello);
 border: 1px solid var(--);
 padding: 1.5rem;
}

body.essayist {
 position: relative;
 top: 0;
 left: 0;
}

.moth {
 width: 180px;
 aspect-ratio: 1 / 1;
 position: absolute;
 top: 10%;
 right: 5%;
}

.moth img {
 width: 100%;
 height: 100%;
}

 .tadpole {
 width: 360px;
 aspect-ratio: 2 / 1;
 margin: 30px auto 20px;
}

.tadpole img {
 width: 100%;
 height: 100%;
}
