: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%);
}

.social-links .mytide-social-mark {
  position: relative;
  display: block;
  width: 25px;
  height: 22px;
  margin: 0;
  overflow: hidden;
}

.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 {
  position: relative;
  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; }
}

/* Gary / ALI9N skin. The component structure intentionally mirrors Jeb's page. */
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --paper: #0f0f0f;
  --paper-deep: #141414;
  --navy: #efebe6;
  --navy-soft: #aaa5a0;
  --line: rgba(239, 235, 230, .12);
  --text: #efebe6;
  --muted: #8f8b87;
  --orange: #c41230;
  --orange-soft: #f04c5c;
}

html,
body {
  color: var(--text);
  background-color: #0b0b0b;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  font-family: "Work Sans", system-ui, sans-serif;
}

.page-shell {
  background:
    radial-gradient(circle at 84% 14%, rgba(196,18,48,.12), transparent 28%),
    var(--paper);
}

.site-loader {
  color: var(--navy);
  background: var(--paper);
}

.site-loader strong,
.identity h1,
.bio-protocol h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.site-loader span { background: rgba(239,235,230,.12); }
.site-loader span::after { background: var(--orange); }

.hero {
  min-height: 590px;
  border-bottom: 1px solid var(--line);
}

.hero-art::before {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-art::after {
  z-index: 5;
  background: linear-gradient(180deg, rgba(15,15,15,.05) 0%, rgba(15,15,15,.05) 45%, #0f0f0f 80%, #0f0f0f 100%);
}

.flag {
  z-index: 6;
  top: 7px;
  left: 3px;
  width: 82px;
  opacity: .95;
  filter: drop-shadow(0 10px 26px rgba(196,18,48,.35));
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.portrait {
  z-index: 3;
  top: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: 432px;
  object-fit: cover;
  object-position: 50% 21%;
  filter: saturate(.72) contrast(1.08);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,.75) 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,.75) 76%, transparent 100%);
}

.topbar { z-index: 7; }

.share-button {
  border-color: rgba(239,235,230,.22);
  color: var(--navy);
  background: rgba(15,15,15,.6);
  backdrop-filter: blur(10px);
}

.identity {
  z-index: 8;
  bottom: 22px;
}

.partner-mark { color: rgba(239,235,230,.58); }
.partner-mark img { filter: brightness(0) invert(1); opacity: .9; }

.identity h1 {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: clamp(48px, 13vw, 63px);
  line-height: .92;
  letter-spacing: -.025em;
}

.instagram { color: var(--orange-soft); }

.social-links a {
  border-color: rgba(239,235,230,.15);
  color: var(--navy);
  background: #1a1a1a;
}

.social-links svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.social-links .mytide-social-mark {
  position: relative;
  display: block;
  width: 25px;
  height: 22px;
  margin: 0;
  overflow: hidden;
}

.social-links .mytide-social-mark img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 22px;
  max-width: none;
  object-fit: none;
  transform: none;
}

.social-links .tiktok-social-mark {
  width: 21px;
  height: 21px;
  fill: #efebe6;
  stroke: none;
}

.social-links .mytide-social-icon-clean {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transform: none;
}

.affiliate-card {
  min-height: 82px;
  gap: 13px;
  border-color: rgba(240,76,92,.26);
  background: linear-gradient(135deg, rgba(240,76,92,.12), rgba(26,26,26,1) 58%);
}

.affiliate-card:hover {
  border-color: rgba(240,76,92,.5);
  background: linear-gradient(135deg, rgba(240,76,92,.17), rgba(29,29,29,1) 58%);
}

.affiliate-card-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(240,76,92,.3);
  border-radius: 50%;
  color: #f04c5c;
  background: rgba(240,76,92,.08);
}

.affiliate-card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.follower-count strong { color: var(--orange-soft); letter-spacing: .08em; }
.follower-count span { color: #a7a29d; }

.links { padding-top: 18px; }

.link-card,
.code-card,
.contact-card {
  border-color: var(--line);
  color: var(--navy);
  background: #1a1a1a;
}

.link-card:hover,
.code-card:hover { border-color: rgba(240,76,92,.5); background: #1d1d1d; }

.link-card.featured {
  min-height: 192px;
  border-color: #713941;
  background: url("assets/mytide-vial-tray-hq.webp?v=2026080601") center / cover no-repeat;
  background-clip: padding-box;
}

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

.link-card.featured::before {
  background: linear-gradient(180deg, rgba(15,15,15,.05) 22%, rgba(15,15,15,.92) 100%);
}

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

.link-copy strong,
.protocol-shop-card strong,
.contact-copy strong,
.code-card > strong,
.protocol-block b,
.follower-count strong {
  font-family: "Work Sans", system-ui, sans-serif;
}

.code-card { border-color: rgba(240,76,92,.32); }
.code-card > strong { color: var(--navy); }
.copy-action { color: #b6b1ac; }

.bio-protocol {
  min-height: 334px;
  border-top-color: var(--line);
  background: var(--paper);
}

.bio-protocol-copy { width: 57%; }
.bio-protocol h2 { color: var(--navy); font-size: 31px; line-height: .95; }
.bio-protocol p { color: var(--navy-soft); }
.protocol-block b { color: var(--navy); }
.section-eyebrow,
.contact-copy small,
.protocol-shop-card small { color: var(--orange-soft); }

.bio-protocol-scene,
.bio-protocol-image {
  width: 51%;
  height: 306px;
  object-position: 51% 24%;
  filter: saturate(.65) contrast(1.08) brightness(.82);
}

.bio-protocol-scene {
  width: 56%;
  right: -2%;
  opacity: .34;
  -webkit-mask-image: radial-gradient(ellipse 55% 48% at 52% 50%, #000 0%, rgba(0,0,0,.9) 52%, rgba(0,0,0,.5) 70%, rgba(0,0,0,.14) 86%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 48% at 52% 50%, #000 0%, rgba(0,0,0,.9) 52%, rgba(0,0,0,.5) 70%, rgba(0,0,0,.14) 86%, transparent 100%);
}

.bio-protocol-image {
  right: -1%;
  width: 54%;
  -webkit-mask-image: radial-gradient(ellipse 55% 48% at 52% 50%, #000 0%, #000 52%, rgba(0,0,0,.76) 68%, rgba(0,0,0,.28) 85%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 48% at 52% 50%, #000 0%, #000 52%, rgba(0,0,0,.76) 68%, rgba(0,0,0,.28) 85%, transparent 100%);
}

.protocol-shop-card {
  border-color: rgba(240,76,92,.35);
  background: linear-gradient(135deg, #c41230, #780d21);
}

.protocol-shop-card small,
.protocol-popup-icon { color: #fff; }
.protocol-popup-icon { border-color: rgba(255,255,255,.38); }

.protocol-popup-icon::before,
.protocol-popup-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.protocol-popup-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.contact-copy strong { color: var(--navy); }
.contact-email { color: var(--muted); }
.contact-arrow { color: var(--orange-soft); }

footer { color: #77726e; }
footer img { filter: brightness(0) invert(1); opacity: .5; }

/* Refined typography: lighter, quieter, and more editorial. */
.partner-mark,
.section-eyebrow,
.link-copy .eyebrow,
.code-label,
.protocol-shop-card small,
.contact-copy small,
.follower-count strong {
  font-weight: 550;
  letter-spacing: .1em;
}

.link-copy strong,
.protocol-shop-card strong,
.contact-copy strong,
.protocol-block b {
  font-weight: 500;
  letter-spacing: 0;
}

.featured .link-copy strong {
  font-size: 17px;
  font-weight: 500;
}

.code-card > strong {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: .06em;
}

.copy-action,
.link-copy small,
.contact-email,
.protocol-block span,
.follower-count span {
  font-weight: 400;
}

.affiliate-card .link-copy strong,
.contact-copy strong {
  font-size: 14px;
}

.ali9n-trial-card {
  min-height: 92px;
  gap: 13px;
  border-color: #713941;
  background: linear-gradient(112deg, #231317 0%, #1a1a1a 58%, #181818 100%);
}

.ali9n-trial-card:hover {
  border-color: #9d4050;
  background: linear-gradient(112deg, #2b151a 0%, #1d1d1d 58%, #1a1a1a 100%);
}

.ali9n-trial-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(240,76,92,.34);
  border-radius: 50%;
  background: #0f0f0f;
}

.ali9n-trial-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ali9n-trial-card .link-copy {
  min-width: 0;
}

.ali9n-trial-card .link-copy .eyebrow,
.ali9n-trial-card .arrow {
  color: #f04c5c;
}

.ali9n-trial-card .link-copy strong {
  color: #efebe6;
  font-size: 15px;
  font-weight: 500;
}

.ali9n-trial-card .link-copy small {
  color: #aaa49f;
}

.toast {
  border-color: rgba(240,76,92,.34);
  color: var(--navy);
  background: rgba(26,26,26,.96);
}

@media (min-width: 501px) {
  body { background-color: #0b0b0b; }
  .page-shell {
    border-color: rgba(239,235,230,.12);
    box-shadow: 0 28px 80px rgba(0,0,0,.46);
  }
}

@media (max-height: 740px) and (max-width: 500px) {
  .hero { min-height: 570px; }
  .portrait { top: 0; right: 0; width: 100%; height: 410px; }
}
