:root {
  --ink: #081d1d;
  --deep: #092d2b;
  --mint: #b9f1b1;
  --lime: #d8ff75;
  --cream: #f4f0df;
  --gold: #f7ce68;
  --cyan: #66e6ef;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: #123d42;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 24, 24, .76) 0%, rgba(2, 24, 24, .42) 38%, rgba(2, 24, 24, .06) 65%),
    linear-gradient(180deg, rgba(2, 17, 20, .48), transparent 28%, transparent 72%, rgba(2, 17, 20, .74));
}

.hero-scene {
  position: absolute;
  inset: -2%;
  z-index: -2;
  background: url("/waterfall-scene.png") 50% 50% / cover no-repeat;
  animation: scene-breathe 16s ease-in-out infinite alternate;
}

@keyframes scene-breathe {
  from { transform: scale(1.025); }
  to { transform: scale(1.07); }
}

.site-header {
  width: min(1380px, calc(100% - 80px));
  height: 96px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.25);
  position: relative;
  z-index: 3;
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-size: .9rem; font-weight: 900; letter-spacing: .2em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: var(--lime); font-family: Georgia, serif; font-size: 1.2rem; letter-spacing: 0; }
.site-header nav { display: flex; gap: 38px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.site-header nav a { position: relative; padding: 12px 0; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--lime); transition: right .25s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.header-cta span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; transition: background .2s, color .2s; }
.header-cta:hover span { background: var(--lime); color: var(--ink); }

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 80px));
  margin: 0 auto;
  padding-top: clamp(9vh, 14vh, 160px);
}

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .2em; }
.eyebrow > span { width: 28px; height: 2px; background: var(--lime); }
.hero h1 { margin: 0; max-width: 700px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 7.2vw, 7.4rem); font-weight: 400; line-height: .83; letter-spacing: -.065em; text-shadow: 0 3px 26px rgba(0,0,0,.28); }
.hero h1 span { display: block; padding-left: .45em; color: var(--lime); font-style: italic; }
.hero-copy { max-width: 520px; margin: 34px 0 0; color: rgba(255,255,255,.86); font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.primary-button { display: inline-flex; align-items: center; gap: 44px; padding: 18px 22px 18px 24px; border-radius: 3px; color: var(--ink); background: var(--lime); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; box-shadow: 0 8px 28px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
.primary-button span { font-size: 1.2rem; }
.hero-actions p { margin: 0; color: rgba(255,255,255,.7); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-actions b { color: var(--lime); font-size: 1.35rem; margin-right: 8px; }

.formula {
  position: absolute;
  right: 5.5vw;
  bottom: 9vh;
  z-index: 2;
  min-width: 440px;
  padding: 22px 24px 20px;
  background: rgba(4, 33, 33, .7);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 6px;
  box-shadow: 0 16px 60px rgba(0,0,0,.3);
  backdrop-filter: blur(14px);
}
.formula-names, .formula-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.formula-names { color: white; font-size: 1rem; font-weight: 900; letter-spacing: .08em; }
.formula-names b { color: var(--lime); font-weight: 400; }
.formula-result { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.25); }
.formula-result span { color: rgba(255,255,255,.55); font-size: 1.7rem; }
.formula-result strong { color: var(--lime); font-family: Georgia, serif; font-size: 1.5rem; font-style: italic; letter-spacing: .04em; }

.scroll-cue { position: absolute; z-index: 2; left: 40px; bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: rgba(255,255,255,.7); font-size: .62rem; text-transform: uppercase; letter-spacing: .18em; writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(white, transparent); animation: scroll-pulse 2s ease-in-out infinite; }
@keyframes scroll-pulse { 50% { transform: scaleY(.55); opacity: .5; } }

.mist { position: absolute; z-index: 0; width: 40vw; height: 12vh; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(34px); animation: drift 12s ease-in-out infinite alternate; }
.mist-one { top: 26%; right: -8%; }
.mist-two { bottom: 10%; left: 22%; animation-delay: -5s; }
@keyframes drift { to { transform: translateX(-8vw) scale(1.15); opacity: .45; } }

.fireflies i { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: #efff8d; box-shadow: 0 0 14px 3px rgba(224,255,93,.7); animation: flicker 3s ease-in-out infinite; }
.fireflies i:nth-child(1) { left: 7%; top: 34%; }
.fireflies i:nth-child(2) { left: 22%; top: 69%; animation-delay: -.9s; }
.fireflies i:nth-child(3) { left: 32%; top: 20%; animation-delay: -1.4s; }
.fireflies i:nth-child(4) { right: 12%; top: 31%; animation-delay: -2s; }
.fireflies i:nth-child(5) { right: 28%; top: 66%; animation-delay: -.4s; }
.fireflies i:nth-child(6) { right: 5%; bottom: 12%; animation-delay: -1.8s; }
.fireflies i:nth-child(7) { left: 55%; top: 15%; animation-delay: -.7s; }
.fireflies i:nth-child(8) { left: 47%; bottom: 20%; animation-delay: -2.3s; }
.fireflies i:nth-child(9) { right: 40%; top: 38%; animation-delay: -1.1s; }
@keyframes flicker { 0%, 100% { opacity: .15; transform: translateY(0) scale(.7); } 50% { opacity: 1; transform: translateY(-16px) scale(1); } }

.trio-section { padding: 120px 6vw 130px; background: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px 8vw; align-items: end; max-width: 1320px; margin: 0 auto 66px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }
.eyebrow.dark { color: #536463; }
.eyebrow.dark > span { background: #4e8177; }
.section-heading h2, .bond-copy h2 { margin: 0; font-family: Georgia, serif; font-weight: 400; font-size: clamp(3rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.05em; }
.section-heading > p:last-child { max-width: 460px; margin: 0; color: #596866; line-height: 1.8; }
.friend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1320px; margin: 0 auto; }
.friend-card { min-height: 480px; padding: 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; color: white; background: var(--deep); border-radius: 5px; box-shadow: 0 15px 45px rgba(8,29,29,.11); transition: transform .3s ease, box-shadow .3s ease; }
.friend-card::before { content: ""; position: absolute; width: 280px; height: 280px; top: 60px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, var(--card-accent) 0%, transparent 66%); opacity: .28; }
.friend-card:hover { transform: translateY(-10px); box-shadow: 0 26px 60px rgba(8,29,29,.2); }
.friend-card.mint { --card-accent: var(--mint); }
.friend-card.gold { --card-accent: var(--gold); }
.friend-card.cyan { --card-accent: var(--cyan); }
.card-topline { display: flex; justify-content: space-between; color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .14em; }
.orbit { color: var(--card-accent); font-size: 1rem; }
.avatar { position: relative; width: 150px; height: 150px; margin: 34px auto 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.avatar::before, .avatar::after { content: ""; position: absolute; border: 1px solid var(--card-accent); border-radius: 50%; opacity: .55; }
.avatar::before { inset: 10px; }
.avatar::after { inset: -8px 28px; transform: rotate(38deg); }
.avatar span { font-family: Georgia, serif; font-size: 4.6rem; color: var(--card-accent); }
.role { margin: 0; color: var(--card-accent); font-size: .64rem; font-weight: 900; letter-spacing: .2em; }
.friend-card h3 { margin: 8px 0 10px; font-family: Georgia, serif; font-size: 2.5rem; font-weight: 400; }
.friend-note { margin: 0; color: rgba(255,255,255,.62); line-height: 1.65; }
.card-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; }
.card-footer span { color: rgba(255,255,255,.4); }
.card-footer b { color: var(--card-accent); }

.bond-section { min-height: 730px; padding: 110px 8vw; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9vw; position: relative; overflow: hidden; color: white; background: #082925; }
.bond-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 22% 50%, rgba(87,178,149,.25), transparent 38%), repeating-linear-gradient(115deg, transparent 0 90px, rgba(255,255,255,.018) 91px 92px); }
.bond-copy, .promise-card { position: relative; z-index: 1; }
.eyebrow.light { color: rgba(255,255,255,.55); }
.bond-copy h2 { color: var(--lime); }
.bond-copy > p:last-child { max-width: 560px; margin: 30px 0 0; color: rgba(255,255,255,.62); line-height: 1.8; }
.promise-card { min-height: 420px; padding: 54px; display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.quote-mark { position: absolute; top: 18px; right: 34px; color: rgba(216,255,117,.26); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
.promise-card blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.2; font-style: italic; }
.promise-card > p { color: rgba(255,255,255,.5); letter-spacing: .09em; text-transform: uppercase; font-size: .72rem; }
.promise-seal { width: max-content; margin-top: 36px; display: flex; align-items: center; gap: 15px; }
.promise-seal span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--ink); font-family: Georgia, serif; font-size: 2rem; }
.promise-seal small { color: rgba(255,255,255,.72); font-size: .58rem; line-height: 1.5; letter-spacing: .16em; }

footer { min-height: 150px; padding: 38px 6vw; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #061c1a; color: rgba(255,255,255,.5); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-brand { color: white; }
footer p:nth-child(2) { text-transform: none; letter-spacing: .04em; }
footer p span { color: var(--lime); }

@media (max-width: 900px) {
  .site-header { width: calc(100% - 36px); grid-template-columns: 1fr auto; height: 78px; }
  .site-header nav { display: none; }
  .header-cta { font-size: 0; gap: 0; }
  .hero-content { width: calc(100% - 48px); padding-top: 12vh; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 6.5rem); }
  .hero-copy { max-width: 480px; }
  .formula { right: 24px; bottom: 54px; min-width: 390px; }
  .scroll-cue { display: none; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .eyebrow { grid-column: auto; }
  .friend-grid { grid-template-columns: 1fr; }
  .friend-card { min-height: 430px; }
  .bond-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { min-height: 920px; }
  .hero::after { background: linear-gradient(180deg, rgba(2,24,24,.72), rgba(2,24,24,.24) 45%, rgba(2,17,20,.9)); }
  .hero-scene { background-position: 55% center; }
  .brand { font-size: .76rem; }
  .hero-content { padding-top: 10vh; }
  .hero h1 { font-size: 3.9rem; line-height: .88; }
  .hero h1 span { padding-left: .16em; }
  .hero-copy { font-size: .94rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .primary-button { width: 100%; justify-content: space-between; }
  .formula { left: 24px; right: 24px; bottom: 34px; min-width: 0; }
  .formula-names { font-size: .78rem; }
  .formula-result strong { font-size: 1.18rem; }
  .trio-section { padding: 85px 24px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .bond-copy h2 { font-size: 3.1rem; }
  .friend-card { padding: 24px; }
  .bond-section { padding: 85px 24px; }
  .promise-card { min-height: 360px; padding: 34px 28px; }
  footer { padding: 44px 24px; flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
