:root {
  --emerald: #0d4c3c;
  --deep: #052823;
  --deeper: #021815;
  --ivory: #f8f7f2;
  --cream: #eee6d5;
  --mist: #d7e3d9;
  --gold: #b99d74;
  --bright-gold: #d8be7a;
  --ink: #252725;
  --muted: #6e6b62;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --shadow: 0 30px 90px rgba(2, 24, 21, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(216, 190, 122, 0.22), transparent 28rem),
    linear-gradient(180deg, #fffdf6 0%, var(--cream) 42%, #f8f7f2 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid rgba(216, 190, 122, 0.24);
  border-radius: 999px;
  background: rgba(4, 34, 29, 0.62);
  backdrop-filter: blur(18px);
  color: var(--ivory);
  transform: translateX(-50%);
  transition: background 220ms ease, box-shadow 220ms ease, top 220ms ease;
}

.site-header.is-scrolled {
  top: 10px;
  background: rgba(4, 34, 29, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(216, 190, 122, 0.7);
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.brand small {
  color: var(--bright-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 7px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 15px;
  color: rgba(248, 247, 242, 0.84);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(216, 190, 122, 0.16);
  color: var(--bright-gold);
  transform: translateY(-1px);
}

.flow-section,
section,
footer {
  position: relative;
}

.hero {
  min-height: 100svh;
  padding: 150px max(22px, calc((100vw - 1180px) / 2)) 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -3;
  height: 88%;
  border-bottom-left-radius: 50% 12%;
  border-bottom-right-radius: 50% 12%;
  background:
    radial-gradient(circle at 65% 28%, rgba(216, 190, 122, 0.25), transparent 20rem),
    radial-gradient(circle at 14% 52%, rgba(13, 76, 60, 0.34), transparent 24rem),
    linear-gradient(135deg, var(--deeper), var(--emerald) 54%, #b4c4aa);
  content: "";
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 24, 21, 0.92), rgba(2, 24, 21, 0.22) 62%, rgba(248, 247, 242, 0.18)),
    radial-gradient(ellipse at 50% 105%, rgba(248, 247, 242, 0.95), transparent 42%);
}

.hero__content {
  width: min(760px, 100%);
  color: var(--ivory);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--bright-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 780px;
  font-size: clamp(4rem, 8vw, 8rem);
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(3rem, 6vw, 6.6rem);
}

h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.hero__intro {
  width: min(650px, 100%);
  margin: 28px 0 0;
  color: rgba(248, 247, 242, 0.82);
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 157, 116, 0.58);
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 800;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--bright-gold);
  background: var(--bright-gold);
  color: var(--deep);
  box-shadow: 0 14px 34px rgba(185, 157, 116, 0.26);
  transform: translateY(-2px);
}

.hero__image {
  position: absolute;
  z-index: -1;
  overflow: hidden;
  border: 1px solid rgba(248, 247, 242, 0.18);
  border-radius: 42% 58% 50% 50% / 44% 38% 62% 56%;
  box-shadow: var(--shadow);
}

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

.hero__image--left {
  right: min(50vw, 640px);
  bottom: 46px;
  width: clamp(190px, 24vw, 360px);
  aspect-ratio: 0.68;
  opacity: 0.72;
  transform: rotate(-5deg);
}

.hero__image--right {
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 132px;
  width: clamp(260px, 34vw, 520px);
  aspect-ratio: 0.72;
  transform: rotate(4deg);
}

.hero__trail {
  position: absolute;
  right: 8vw;
  bottom: 74px;
  display: grid;
  gap: 18px;
}

.hero__trail span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bright-gold);
  box-shadow: 0 0 28px rgba(216, 190, 122, 0.9);
}

.ear-transition {
  height: 170vh;
  margin-top: -48px;
  background:
    radial-gradient(circle at 50% 40%, rgba(216, 190, 122, 0.26), transparent 26rem),
    linear-gradient(180deg, rgba(248, 247, 242, 0), var(--ivory) 16%, var(--cream));
}

.ear-transition__sticky {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 120px 22px 70px;
  text-align: center;
}

.ear-shell {
  position: relative;
  width: min(64vw, 520px);
  aspect-ratio: 0.78;
  border: 1px solid rgba(185, 157, 116, 0.46);
  border-radius: 54% 46% 58% 42% / 36% 58% 42% 64%;
  background:
    radial-gradient(circle at 48% 46%, rgba(248, 247, 242, 0.86), rgba(216, 190, 122, 0.2) 34%, rgba(13, 76, 60, 0.16) 55%, rgba(5, 40, 35, 0.06) 72%),
    rgba(248, 247, 242, 0.4);
  box-shadow: inset 0 0 80px rgba(185, 157, 116, 0.22), 0 32px 90px rgba(2, 24, 21, 0.16);
  transform: rotate(var(--ear-rotate, -8deg)) scale(var(--ear-scale, 1));
  transition: transform 140ms linear;
}

.ear-shell img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 34%;
  border-radius: 50%;
  opacity: 0.95;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.ear-shell__ring,
.ear-shell__line {
  position: absolute;
  border: 1px solid rgba(185, 157, 116, 0.55);
  border-radius: 50%;
  content: "";
}

.ear-shell__ring {
  inset: 17% 18% 20% 22%;
  border-left-color: transparent;
  transform: rotate(-18deg);
}

.ear-shell__line--one {
  inset: 30% 38% 34% 33%;
  border-right-color: transparent;
  transform: rotate(22deg);
}

.ear-shell__line--two {
  inset: 40% 46% 28% 30%;
  border-top-color: transparent;
  transform: rotate(-12deg);
}

.ear-shell__line--three {
  inset: 58% 36% 22% 42%;
  border-left-color: transparent;
}

.ear-transition__copy {
  width: min(720px, 100%);
  margin-top: 32px;
}

.ear-transition__copy h2 {
  font-size: clamp(2.3rem, 4vw, 4.6rem);
}

.promise-river,
.formula-lagoon,
.soft-gallery,
.care-packs,
.audiology-flow,
.order-flow,
.site-footer {
  padding-right: max(22px, calc((100vw - 1180px) / 2));
  padding-left: max(22px, calc((100vw - 1180px) / 2));
}

.promise-river {
  min-height: 980px;
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: hidden;
}

.promise-river__intro {
  width: min(720px, 100%);
}

.river-path {
  position: absolute;
  top: 260px;
  left: 50%;
  width: min(92vw, 1040px);
  height: 560px;
  border: 1px solid rgba(185, 157, 116, 0.28);
  border-color: rgba(185, 157, 116, 0.28) transparent transparent rgba(185, 157, 116, 0.28);
  border-radius: 50%;
  transform: translateX(-45%) rotate(-8deg);
}

.floating-note {
  position: absolute;
  width: min(330px, calc(100% - 44px));
  padding: 28px;
  border: 1px solid rgba(185, 157, 116, 0.24);
  border-radius: 38px;
  background: rgba(248, 247, 242, 0.62);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 70px rgba(2, 24, 21, 0.12);
}

.floating-note span {
  color: var(--gold);
  font-weight: 900;
}

.floating-note h3 {
  margin: 18px 0 12px;
  font-size: 2.15rem;
}

.floating-note p,
.lagoon-copy p,
.gallery-copy p,
.care-packs__copy p,
.audiology-flow__copy p,
.order-flow__copy p {
  color: var(--muted);
}

.note-one {
  top: 380px;
  right: max(22px, calc((100vw - 1180px) / 2 + 90px));
}

.note-two {
  top: 610px;
  left: max(22px, calc((100vw - 1180px) / 2 + 120px));
}

.note-three {
  right: max(22px, calc((100vw - 1180px) / 2 + 10px));
  bottom: 120px;
}

.formula-lagoon {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(420px, 1.2fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: center;
  padding-top: 130px;
  padding-bottom: 130px;
  border-top-left-radius: 50% 9%;
  border-top-right-radius: 50% 9%;
  background:
    radial-gradient(circle at 75% 30%, rgba(216, 190, 122, 0.22), transparent 24rem),
    linear-gradient(135deg, var(--deep), var(--emerald));
  color: var(--ivory);
}

.lagoon-copy p {
  color: rgba(248, 247, 242, 0.74);
}

.formula-orbit {
  position: relative;
  min-height: 680px;
}

.formula-bubble {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(216, 190, 122, 0.34);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.24);
  transition: transform 260ms ease, border-color 260ms ease;
}

.formula-bubble:hover,
.formula-bubble.is-active {
  border-color: var(--bright-gold);
  transform: translateY(-8px) scale(1.02);
}

.formula-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.formula-bubble span {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  border-radius: 999px;
  background: rgba(2, 24, 21, 0.62);
  padding: 10px 14px;
  color: var(--bright-gold);
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(12px);
}

.formula-bubble:first-child {
  top: 0;
  left: 0;
  width: min(46vw, 360px);
  height: min(46vw, 360px);
}

.formula-bubble:nth-child(2) {
  right: 0;
  bottom: 0;
  width: min(42vw, 330px);
  height: min(42vw, 330px);
}

.formula-detail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 80%);
  min-height: 390px;
  border: 1px solid rgba(216, 190, 122, 0.28);
  border-radius: 46px;
  background: rgba(248, 247, 242, 0.1);
  padding: 34px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.formula-panel {
  display: none;
}

.formula-panel.is-active {
  display: block;
}

.formula-panel h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.formula-panel ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.formula-panel li {
  border-top: 1px solid rgba(216, 190, 122, 0.22);
  padding: 13px 0;
}

.soft-gallery {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(220px, 0.95fr) minmax(280px, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  padding-top: 140px;
  padding-bottom: 140px;
  background: var(--cream);
}

.gallery-piece {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-piece--wide {
  aspect-ratio: 0.74;
  border-radius: 50% 50% 44% 56% / 38% 48% 52% 62%;
}

.gallery-piece--tall {
  aspect-ratio: 0.7;
  border-radius: 42% 58% 56% 44% / 54% 36% 64% 46%;
}

.care-packs {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
  background:
    radial-gradient(circle at 18% 40%, rgba(216, 190, 122, 0.22), transparent 18rem),
    var(--ivory);
}

.care-packs__image {
  overflow: hidden;
  border-radius: 48% 52% 42% 58% / 48% 42% 58% 52%;
  box-shadow: var(--shadow);
}

.care-packs__image img {
  width: 100%;
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.pill-cloud span,
.service-orbits span {
  border: 1px solid rgba(185, 157, 116, 0.32);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--emerald);
  font-weight: 800;
}

.audiology-flow {
  min-height: 820px;
  padding: 130px max(22px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  color: var(--ivory);
  isolation: isolate;
}

.audiology-flow__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.audiology-flow__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audiology-flow::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 24, 21, 0.86), rgba(2, 24, 21, 0.28)),
    radial-gradient(circle at 70% 30%, rgba(216, 190, 122, 0.28), transparent 20rem);
  content: "";
}

.audiology-flow__copy {
  width: min(660px, 100%);
}

.audiology-flow__copy p {
  color: rgba(248, 247, 242, 0.76);
}

.service-orbits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: min(620px, 100%);
  margin-top: 38px;
}

.service-orbits span {
  color: var(--ivory);
  background: rgba(248, 247, 242, 0.08);
  backdrop-filter: blur(12px);
}

.order-flow {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(34px, 8vw, 100px);
  padding-top: 130px;
  padding-bottom: 130px;
  background:
    radial-gradient(circle at 85% 20%, rgba(13, 76, 60, 0.12), transparent 18rem),
    var(--ivory);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid rgba(185, 157, 116, 0.26);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.54);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.order-form label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-form .full {
  grid-column: 1 / -1;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(37, 39, 37, 0.14);
  border-radius: 22px;
  background: rgba(248, 247, 242, 0.78);
  color: var(--ink);
  outline: none;
  padding: 14px 16px;
  text-transform: none;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 157, 116, 0.16);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 34px;
  align-items: end;
  padding-top: 80px;
  padding-bottom: 80px;
  border-top-left-radius: 50% 12%;
  border-top-right-radius: 50% 12%;
  background: var(--deeper);
  color: var(--ivory);
}

.site-footer h2 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
}

address {
  display: grid;
  gap: 10px;
  font-style: normal;
}

address a,
address span {
  color: var(--bright-gold);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 34px;
  }

  .site-nav {
    display: none;
  }

  .hero__image--left {
    display: none;
  }

  .hero__image--right {
    right: -90px;
    width: min(520px, 72vw);
    opacity: 0.64;
  }

  .formula-lagoon,
  .soft-gallery,
  .care-packs,
  .order-flow,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .formula-orbit {
    min-height: 820px;
  }

  .soft-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 68px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.62rem;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: 900px;
    padding: 130px 20px 90px;
  }

  .hero__content {
    position: relative;
    z-index: 2;
    width: min(305px, 100%);
  }

  h1 {
    max-width: 8.4ch;
    font-size: clamp(2.8rem, 12.8vw, 3.65rem);
  }

  .hero__intro {
    width: min(300px, 100%);
    font-size: 1rem;
  }

  h2 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .hero__image--right {
    right: -176px;
    top: 230px;
    width: 404px;
    opacity: 0.52;
  }

  .hero__actions,
  .order-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    max-width: 300px;
  }

  .ear-transition {
    height: 135vh;
  }

  .ear-shell {
    width: min(88vw, 390px);
  }

  .promise-river {
    min-height: auto;
    padding: 90px 20px;
  }

  .river-path {
    display: none;
  }

  .floating-note {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: 18px;
  }

  .formula-lagoon,
  .soft-gallery,
  .care-packs,
  .audiology-flow,
  .order-flow,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .formula-lagoon {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .formula-orbit {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .formula-bubble,
  .formula-detail {
    position: relative;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    transform: none !important;
  }

  .formula-bubble {
    aspect-ratio: 1;
  }

  .formula-detail {
    width: 100% !important;
    border-radius: 34px;
  }

  .soft-gallery {
    grid-template-columns: 1fr;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .care-packs,
  .order-flow {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .audiology-flow {
    min-height: 720px;
  }
}
