:root {
  --paper: #f5f3ee;
  --paper-deep: #ece9e1;
  --navy: #10243d;
  --navy-soft: #405064;
  --line: rgba(16, 36, 61, .12);
  --text: #10243d;
  --muted: #6d7785;
  --orange: #ea6d28;
  --orange-soft: #c95619;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html.assets-loading,
html.assets-loading body {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 13px;
  color: var(--navy);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}

.assets-loading .site-loader {
  opacity: 1;
  visibility: visible;
  transition: none;
}

.site-loader strong {
  font: 800 19px/1 "Manrope", sans-serif;
  letter-spacing: .2em;
  transform: translateX(.1em);
}

.site-loader span {
  position: relative;
  width: 52px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(16,36,61,.12);
}

.site-loader span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-100%);
  animation: loader-sweep 1.05s ease-in-out infinite;
}

@keyframes loader-sweep {
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

button, a { -webkit-tap-highlight-color: transparent; }

.edge-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-shell {
  position: relative;
  width: min(100%, 500px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  opacity: 1;
  transition: opacity .2s ease;
}

@media (min-width: 501px) {
  html {
    background-color: #e8e5de;
    background-image: none;
  }

  body { background: #e8e5de; }
}

.assets-loading .page-shell { opacity: 0; }

.ambient {
  display: none;
}

.ambient-one {
  width: 280px;
  height: 250px;
  right: -180px;
  top: 240px;
  background: rgba(255, 126, 45, .13);
}

.ambient-two {
  width: 260px;
  height: 200px;
  left: -180px;
  top: 40px;
  background: rgba(67, 112, 161, .12);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.hero {
  position: relative;
  min-height: 561px;
  overflow: hidden;
}

.hero-art, .hero-art::before, .hero-art::after {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: 0;
  isolation: isolate;
  pointer-events: none;
}

.hero-art::before {
  content: "";
  z-index: 0;
  background: url("assets/yosemite-bg.webp?v=2026080603") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0,
    #000 calc(min(56.4vw, 282px) - 76px),
    transparent min(56.4vw, 282px)
  );
  mask-image: linear-gradient(
    180deg,
    #000 0,
    #000 calc(min(56.4vw, 282px) - 76px),
    transparent min(56.4vw, 282px)
  );
}

.hero-art::after {
  content: "";
  z-index: 2;
  pointer-events: none;
  background: rgba(245,243,238,.12);
}

.flag {
  position: absolute;
  z-index: 1;
  top: 183px;
  left: -9px;
  width: 250px;
  opacity: 1;
  filter: none;
  clip-path: none;
  transform: rotate(-4deg);
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.ghost-logo {
  position: absolute;
  z-index: -2;
  top: 190px;
  left: 71%;
  width: 170px;
  max-width: none;
  opacity: .72;
  filter: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}

.portrait-glow {
  display: none;
}

.portrait,
.portrait-occluder {
  position: absolute;
  top: 76px;
  right: -8px;
  width: 240px;
  max-width: 61vw;
  transform: none;
  filter: none;
}

.portrait-occluder {
  z-index: 3;
  filter: url(#occluder-edge-clean);
}

.portrait {
  z-index: 4;
  filter: url(#portrait-edge-clean);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.72) 49%, rgba(0,0,0,.2) 58%, transparent 66%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.72) 49%, rgba(0,0,0,.2) 58%, transparent 66%);
}

.hero-fade {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: none;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: max(17px, env(safe-area-inset-top)) 19px 0;
}

.domain {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  font: 800 12px/1 "Manrope", sans-serif;
  letter-spacing: .18em;
  text-decoration: none;
}

.domain-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(16,36,61,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.64);
  box-shadow: none;
  color: var(--orange);
  font-size: 15px;
  letter-spacing: 0;
}

.share-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(16,36,61,.14);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255,255,255,.62);
  cursor: pointer;
}

.share-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.identity {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 4px;
  left: 24px;
  text-align: center;
}

.partner-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  color: rgba(16, 36, 61, .66);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.partner-mark img {
  position: relative;
  top: 0;
  display: block;
  width: 50px;
  height: auto;
}

.identity h1 {
  margin: 0 0 12px;
  font: 800 clamp(35px, 10vw, 47px)/.98 "Manrope", sans-serif;
  letter-spacing: -.045em;
  color: var(--navy);
  text-shadow: none;
}

.identity > p {
  margin: 9px 0 11px;
  color: #5c6877;
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.instagram {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.instagram svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.instagram .fill { fill: currentColor; stroke: none; }

.instagram .verified-badge {
  width: 16px;
  height: 16px;
  margin-left: -2px;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 11px;
}

.social-links a {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(16,36,61,.14);
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
}

.social-links img,
.social-links svg {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.social-links .facebook-social-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 63px;
  max-width: none;
  transform: translate(-50%, -50%);
}

.social-links .instagram-social-icon {
  width: 19px;
  height: 19px;
}

.social-links .x-social-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 37.2px;
  height: 37.2px;
  max-width: none;
  transform: translate(-50%, -50%);
}

.social-links .tiktok-social-icon {
  width: 25.2px;
  height: 25.2px;
}

.social-links .mytide-social-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
}

.follower-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.follower-count strong {
  color: var(--navy);
  font: 800 13px/1 "Manrope", sans-serif;
  letter-spacing: -.02em;
}

.follower-count span {
  color: #687587;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.protocol-shop-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  min-height: 72px;
  align-items: center;
  padding: 13px 17px;
  border: 1px solid rgba(16,36,61,.14);
  border-radius: 20px;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
}

.protocol-shop-card > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.protocol-shop-card small {
  color: #ff9a57;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.protocol-shop-card strong {
  font: 700 16px/1.2 "Manrope", sans-serif;
}

.protocol-popup-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #ff9a57;
  font: 500 20px/1 "DM Sans", sans-serif;
}

.protocol-shop-card:active {
  transform: scale(.985);
}

.contact-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  min-height: 86px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid rgba(16,36,61,.14);
  border-radius: 22px;
  color: var(--navy);
  background: #fff;
  text-decoration: none;
  overflow: hidden;
}

.contact-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--orange-soft);
  background: #fff2e8;
}

.contact-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.contact-copy small {
  color: var(--orange-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.contact-copy strong {
  color: var(--navy);
  font: 700 14px/1.2 "Manrope", sans-serif;
}

.contact-email {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font: 500 10px/1.25 "DM Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  margin-left: auto;
  color: var(--orange-soft);
  font-size: 18px;
  line-height: 1;
}

.contact-card:active {
  transform: scale(.985);
}

.social-links .social-fill {
  fill: currentColor;
}

.links {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 11px;
  padding: 16px 16px 28px;
}

.link-card, .code-card {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  width: 100%;
  padding: 12px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--navy);
  background: #fff;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.link-card:active, .code-card:active { transform: scale(.985); }

.link-card:hover, .code-card:hover {
  border-color: rgba(16,36,61,.22);
  background: #fff;
}

.link-card.featured {
  min-height: 182px;
  align-items: flex-end;
  border-color: rgba(16, 36, 61, .14);
  background: url("assets/mytide-vial-tray-hq.webp?v=2026080601") center / cover no-repeat;
  box-shadow: none;
}

.link-card.featured:hover {
  background: url("assets/mytide-vial-tray-hq.webp?v=2026080601") center / cover no-repeat;
}

.link-card.featured::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16, 36, 61, 0) 38%, rgba(16, 36, 61, .78) 100%);
  pointer-events: none;
}

.link-card.featured > * {
  position: relative;
  z-index: 1;
}

.featured .link-copy {
  color: #fff;
  text-shadow: 0 1px 2px rgba(16, 36, 61, .28);
}

.featured .link-copy .eyebrow,
.featured .link-copy small {
  color: #fff;
}

.featured .link-copy small b,
.featured .arrow {
  color: #ff9a57;
}

.link-icon {
  display: grid;
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  margin-right: 13px;
  place-items: center;
  border: 1px solid rgba(16,36,61,.1);
  border-radius: 15px;
  color: #314963;
  background: rgba(16,36,61,.045);
}

.link-icon.icon-orange {
  color: #d85f1e;
  border-color: rgba(216,95,30,.16);
  background: rgba(255,122,33,.09);
}

.link-icon svg, .copy-action svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.link-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.link-copy .eyebrow {
  margin-bottom: 2px;
  color: var(--orange-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.link-copy strong {
  font: 700 16px/1.25 "Manrope", sans-serif;
  letter-spacing: -.015em;
}

.featured .link-copy strong { font-size: 18px; }

.link-copy small {
  color: var(--muted);
  font-size: 12px;
}

.link-copy small b { color: #b74b13; }

.arrow {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 10px;
  color: rgba(16,36,61,.42);
  font-size: 18px;
}

.code-card {
  min-height: 64px;
  padding: 10px 17px;
  border-style: dashed;
  border-color: rgba(16,36,61,.16);
  font-family: inherit;
  cursor: pointer;
}

.code-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}

.code-card > strong {
  margin-left: 12px;
  color: var(--navy);
  font: 800 22px/1 "Manrope", sans-serif;
  letter-spacing: .09em;
}

.copy-action {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #536274;
  font-size: 11px;
  font-weight: 600;
}

.copy-action svg { width: 15px; }

.bio-protocol {
  position: relative;
  min-height: 310px;
  margin-top: 5px;
  overflow: visible;
  border-top: 1px solid rgba(16,36,61,.12);
  background: var(--paper);
}

.bio-protocol-copy {
  position: relative;
  z-index: 2;
  width: 54%;
  padding: 21px 0 22px 4px;
}

.section-eyebrow {
  color: var(--orange-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.bio-protocol h2 {
  max-width: 210px;
  margin: 7px 0 8px;
  color: var(--navy);
  font: 800 20px/1.05 "Manrope", sans-serif;
  letter-spacing: -.035em;
}

.bio-protocol p {
  max-width: 220px;
  margin: 0;
  color: var(--navy-soft);
  font-size: 11px;
  line-height: 1.52;
}

.protocol-block { margin-top: 18px; }

.protocol-block > .section-eyebrow {
  font-size: 14px;
  letter-spacing: .06em;
}

.protocol-block ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.protocol-block li {
  display: grid;
  gap: 1px;
}

.protocol-block b {
  color: var(--navy);
  font: 700 12px/1.2 "Manrope", sans-serif;
}

.protocol-block li span {
  color: var(--muted);
  font-size: 9px;
}

.protocol-block .protocol-peptides {
  position: relative;
  margin-top: 2px;
  padding-bottom: 30px;
}

.protocol-dotted-arrow {
  position: absolute;
  z-index: 4;
  top: -1px;
  left: 58px;
  width: 76px;
  height: 80px;
  overflow: visible;
  pointer-events: none;
}

.protocol-arrowhead {
  fill: none;
  stroke: var(--orange-soft);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 1;
}

.protocol-arrow-track {
  fill: none;
  stroke: var(--orange-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1 5;
}

.protocol-arrowhead {
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-box: fill-box;
  transform-origin: center;
}

.protocol-arrow-dots circle.is-visible {
  opacity: 1;
  transform: scale(1);
}

.protocol-arrowhead.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .14s ease-out, transform .2s cubic-bezier(.2,.8,.2,1.2);
}

.bio-protocol-scene {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 53%;
  height: 286px;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(.94) contrast(.98);
  -webkit-mask-image: radial-gradient(ellipse 47% 44% at 52% 46%, rgba(0,0,0,.78) 0%, rgba(0,0,0,.72) 35%, rgba(0,0,0,.42) 60%, rgba(0,0,0,.12) 80%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: radial-gradient(ellipse 47% 44% at 52% 46%, rgba(0,0,0,.78) 0%, rgba(0,0,0,.72) 35%, rgba(0,0,0,.42) 60%, rgba(0,0,0,.12) 80%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.bio-protocol-image {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 53%;
  height: 286px;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(.94) contrast(.98);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, rgba(0,0,0,.82) 84%, rgba(0,0,0,.35) 93%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(180deg, #000 0%, #000 76%, rgba(0,0,0,.82) 84%, rgba(0,0,0,.35) 93%, transparent 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

footer {
  padding: 6px 24px max(28px, env(safe-area-inset-bottom));
  color: #7a828d;
  text-align: center;
}

footer img {
  width: 105px;
  opacity: .5;
  filter: saturate(.6) brightness(.72);
}

footer p {
  margin: 8px 0 6px;
  font-size: 11px;
}

footer small { font-size: 9px; }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  padding: 10px 15px;
  border: 1px solid rgba(16,36,61,.12);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255,255,255,.94);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 501px) {
  body { padding: 24px 0; }
  .page-shell { min-height: calc(100vh - 48px); border: 1px solid rgba(16,36,61,.08); border-radius: 28px; }
}

@media (max-height: 740px) and (max-width: 500px) {
  .hero { min-height: 528px; }
  .portrait,
  .portrait-occluder { top: 72px; right: -8px; width: 225px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .protocol-arrow-dots circle,
  .protocol-arrowhead { opacity: 1; transform: none; animation: none !important; }
}
