:root {
  --bg: #07080a;
  --fg: #e9edf2;
  --muted: rgba(233, 237, 242, 0.68);

  --cyan: #49d7ff;
  --amber: #ffb84a;
  --green: #84ff63;

  --accent: var(--cyan);
  --line: rgba(233, 237, 242, 0.14);
  --line2: rgba(233, 237, 242, 0.08);

  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.55);

  --font-main: "Geist", "Inter", "Helvetica Neue", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Space Mono", ui-monospace, monospace;
  --font-accent: "Space Grotesk", "Geist", "Inter", sans-serif;
  --mono: var(--font-mono);
  --type-h1: clamp(46px, 7vw, 86px);
  --type-h2: clamp(34px, 4vw, 52px);
  --type-h3: clamp(24px, 2.3vw, 32px);
  --type-body: clamp(15px, 1.3vw, 18px);
  --script: "Snell Roundhand", "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body.preboot {
  overflow: hidden;
}

body.preboot #app {
  display: none !important;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 800px at 16% 12%, rgba(73, 215, 255, 0.10), transparent 55%),
    radial-gradient(900px 640px at 84% 18%, rgba(255, 184, 74, 0.09), transparent 60%),
    radial-gradient(1200px 900px at 60% 92%, rgba(132, 255, 99, 0.06), transparent 55%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  font-weight: 400;
  letter-spacing: 0.2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 400;
  letter-spacing: -0.02em;
}

p,
li,
button,
input,
textarea,
select {
  font-family: var(--font-main);
  font-weight: 400;
}

.tab,
.panel__meta,
.home-portal__sub,
.home-quote__author,
.med-eyebrow,
.med-features strong,
.med-badges span {
  font-family: var(--font-mono);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 999;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 10, 0.94);
  color: var(--fg);
  text-decoration: none;
}

.skip:focus { left: 10px; }

/* VHS overlay (subtle, not loud) */
.vhs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
    );
}

@media (prefers-reduced-motion: reduce) {
  .vhs { display: none; }
}

/* Boot gate */
.boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(700px 420px at 50% 35%, rgba(255, 255, 0, 0.06), transparent 62%),
    linear-gradient(180deg, #000c2a, #000515 70%, #000208);
}

.boot__frame {
  width: min(880px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(102, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.boot__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 255, 255, 0.06) 0px, rgba(0, 255, 255, 0.06) 1px, transparent 2px, transparent 6px),
    repeating-linear-gradient(0deg, rgba(255, 255, 0, 0.045) 0px, rgba(255, 255, 0, 0.045) 1px, transparent 2px, transparent 7px),
    radial-gradient(600px 420px at 18% 18%, rgba(255, 0, 255, 0.10), transparent 55%),
    radial-gradient(520px 380px at 72% 44%, rgba(0, 255, 255, 0.08), transparent 58%);
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: gifDrift 4.8s linear infinite;
}

.boot__frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 0, 0.10),
    0 0 0 6px rgba(0, 255, 255, 0.06),
    0 0 0 10px rgba(255, 0, 255, 0.04);
}

@keyframes gifDrift {
  0% { transform: translate3d(0, 0, 0); filter: hue-rotate(0deg); }
  50% { transform: translate3d(10px, -6px, 0); filter: hue-rotate(8deg); }
  100% { transform: translate3d(0, 0, 0); filter: hue-rotate(0deg); }
}

@keyframes staticDrift {
  0% { transform: translate3d(0, 0, 0); filter: hue-rotate(0deg); }
  50% { transform: translate3d(-6px, 4px, 0); filter: hue-rotate(10deg); }
  100% { transform: translate3d(0, 0, 0); filter: hue-rotate(0deg); }
}

.boot__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line2);
  background: rgba(233, 237, 242, 0.03);
  position: relative;
  z-index: 1;
}

.boot__title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.9;
}

.dot--cyan { background: var(--cyan); }
.dot--amber { background: var(--amber); }
.dot--green { background: var(--green); }

.term {
  margin: 0;
  padding: 18px 16px 8px;
  min-height: 128px;
  line-height: 1.35;
  font-size: 14px;
  color: rgba(233, 237, 242, 0.92);
  text-shadow:
    0 0 22px rgba(73, 215, 255, 0.10),
    -0.6px 0 rgba(255, 0, 255, 0.22),
    0.6px 0 rgba(0, 255, 255, 0.18);
  white-space: pre-wrap;
  position: relative;
  z-index: 1;
}

.gate-question {
  padding: 0 16px 10px;
  min-height: 42px;
  font-size: clamp(14px, 2.2vw, 22px);
  color: rgba(132, 255, 99, 0.95);
  text-shadow:
    0 0 18px rgba(132, 255, 99, 0.25),
    -0.6px 0 rgba(255, 0, 255, 0.25),
    0.6px 0 rgba(0, 255, 255, 0.22);
  line-height: 1.25;
  white-space: nowrap;
}

.cursor {
  color: var(--accent);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.gate {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line2);
  background: rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
}

.gate__label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.gate__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt {
  color: var(--accent);
}

.gate__input {
  flex: 1;
  background: rgba(233, 237, 242, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--fg);
  font-family: var(--mono);
  outline: none;
}

.gate__input:focus {
  border-color: rgba(233, 237, 242, 0.28);
  box-shadow: 0 0 0 4px rgba(73, 215, 255, 0.12);
}

.gate__hint {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(233, 237, 242, 0.55);
}

.gate__error {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 54, 54, 0.95);
  min-height: 16px;
}


.kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-color: rgba(233, 237, 242, 0.22);
  border-radius: 8px;
  background: rgba(233, 237, 242, 0.03);
  color: var(--fg);
}

/* App */
.app {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(180deg, #000c2a, #000515 70%, #000208);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.app::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 2px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(0,255,255,0.06) 0px, rgba(0,255,255,0.06) 1px, transparent 2px, transparent 10px),
    radial-gradient(800px 520px at 18% 12%, rgba(255, 0, 255, 0.12), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(0, 255, 255, 0.10), transparent 60%);
  mix-blend-mode: screen;
  animation: staticDrift 6.2s linear infinite;
}

.hud {
  position: static;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(102, 255, 255, 0.12);
  background: rgba(0, 10, 26, 0.45);
  backdrop-filter: blur(10px);
}

.hud__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(233, 237, 242, 0.22);
  box-shadow: 0 0 0 3px rgba(73, 215, 255, 0.10);
}

.id { min-width: 0; }
.id__name { font-size: 12px; }
.id__meta { display: none; }

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 3px 2px;
}

.tab {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  background: rgba(0, 255, 255, 0.04);
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.tab:hover {
  color: var(--fg);
  border-color: rgba(255, 255, 0, 0.45);
  transform: translateY(-1px);
}

.tab[aria-current="page"] {
  color: var(--fg);
  border-color: rgba(255, 255, 0, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.22);
}

.main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px 16px 40px;
  overflow-x: clip;
}

.panel {
  max-width: 100%;
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 10, 26, 0.68);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(102, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 255, 255, 0.14), transparent 52%);
}

.panel__title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 0, 0.95);
  text-shadow: 0 0 12px rgba(255, 255, 0, 0.28);
}

.panel__meta {
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel a {
  color: rgba(0, 255, 255, 0.95);
}

.panel a:hover {
  color: rgba(255, 255, 0, 0.95);
  background: rgba(255, 0, 255, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  padding: 16px;
}

.card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.16);
  background: rgba(0, 255, 255, 0.04);
  color: var(--fg);
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 0, 0.6);
  background: rgba(255, 0, 255, 0.12);
}

.thumb {
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  min-height: 64px;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60px 80px at 20% 20%, color-mix(in oklab, var(--accent), transparent 68%), transparent 55%),
    radial-gradient(70px 90px at 80% 70%, rgba(255,255,255,0.06), transparent 60%);
}

.thumb--noise::after {
  content: "";
  position: absolute;
  inset: -40px;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 2px, transparent 4px),
    linear-gradient(120deg, rgba(0, 255, 255, 0.18), rgba(255, 0, 255, 0.16), rgba(255, 255, 0, 0.12));
  opacity: 0.55;
  transform: rotate(8deg);
}

.thumb--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(233,237,242,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(233,237,242,0.07) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.28;
}

.card__title { font-size: 13px; }
.card__sub { font-size: 12px; color: var(--muted); }

.stack { padding: 16px; display: grid; gap: 14px; }

.embed {
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.03);
  overflow: hidden;
}

.embed__head {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.embed__title { font-size: 12px; }
.embed__hint { font-size: 11px; color: var(--muted); }

.embed__frame {
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.22);
  min-height: 180px;
}

.embed__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  padding: 14px;
}

.bc-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--fg);
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.16);
}

.bc-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
}

.bc-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px 2px;
  text-align: center;
}

.bc-card:hover img {
  border-color: rgba(255, 255, 0, 0.62);
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.15);
}

.bc-card:hover span {
  color: var(--fg);
}

.bc-card:hover {
  background: rgba(0, 255, 255, 0.06);
  border-color: rgba(255, 255, 0, 0.34);
}

.copy { padding: 16px; max-width: 72ch; }
.copy p { margin: 0 0 10px; line-height: 1.6; }
.copy__heading {
  margin: 14px 0 8px;
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: rgba(132, 255, 99, 0.9);
}

.copy__list {
  margin: 0 0 12px 18px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.copy__list li {
  line-height: 1.5;
}

.copy__list a {
  color: rgba(73, 215, 255, 0.98);
  text-decoration-thickness: 1px;
}

.copy__list a:hover {
  color: rgba(159, 233, 255, 1);
}

.about-intro {
  display: grid;
  gap: 12px;
  align-items: start;
}

.about-profile {
  margin: 0;
  justify-self: center;
  width: min(250px, 100%);
  border: 1px solid rgba(73, 215, 255, 0.35);
  border-radius: 12px;
  padding: 6px;
  background: rgba(0, 18, 32, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.about-profile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-social-links {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(173, 223, 236, 0.9);
}

.about-social-links a {
  color: rgba(73, 215, 255, 0.98);
  text-decoration-thickness: 1px;
}

.about-social-links span {
  display: inline-block;
  margin: 0 7px;
  color: rgba(173, 223, 236, 0.64);
}

@media (min-width: 860px) {
  .about-intro {
    grid-template-columns: 1fr minmax(180px, 250px);
    gap: 16px;
  }

  .about-profile {
    justify-self: end;
  }
}

.about-ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ig-embed {
  border: 1px solid rgba(255, 98, 155, 0.5);
  border-radius: 12px;
  background: rgba(12, 16, 24, 0.9);
  overflow: hidden;
  min-height: 420px;
}

.ig-embed iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: rgba(12, 16, 24, 0.9);
}

.ig-card {
  text-decoration: none;
  color: var(--fg);
  border: 1px solid rgba(255, 98, 155, 0.5);
  border-radius: 12px;
  padding: 10px;
  background:
    linear-gradient(160deg, rgba(64, 22, 56, 0.85), rgba(17, 17, 38, 0.9)),
    radial-gradient(circle at 18% 10%, rgba(255, 164, 52, 0.26), transparent 52%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 120ms ease, border-color 120ms ease;
}

.ig-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(255, 156, 186, 0.46);
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.ig-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 169, 194, 0.82);
}

.ig-card__chip {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--mono);
  background: rgba(255, 98, 155, 0.22);
  color: rgba(255, 210, 227, 0.96);
}

.ig-card__title {
  font-size: 13px;
  font-weight: 700;
}

.ig-card__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.about-stat {
  border: 1px solid rgba(73, 215, 255, 0.24);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(0, 24, 34, 0.5);
}

.about-stat__k {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(173, 223, 236, 0.85);
  margin-bottom: 4px;
}

.about-stat__v {
  font-size: 14px;
  color: rgba(227, 245, 250, 0.98);
}

.about-stat__v a {
  color: rgba(73, 215, 255, 0.98);
}

.muted { color: var(--muted); }

.home-hero {
  padding: 18px 16px 8px;
}

.home-hero__kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(132, 255, 99, 0.92);
}

.home-hero__title {
  margin: 8px 0 0;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: 1.6px;
  color: rgba(233, 237, 242, 0.98);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-hero__title-row {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-hero__title-row .home-hero__title {
  margin: 0;
  flex: 1 1 min(420px, 100%);
}

.home-hero__sigil {
  width: clamp(72px, 12vw, 126px);
  height: auto;
  transform: scaleX(-1);
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 225, 96, 0.4);
  margin-top: 0;
}

.home-hero__text {
  margin: 10px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 13px;
}

.home-status {
  margin-top: 12px;
  border: 1px dashed rgba(0, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  width: fit-content;
  max-width: 100%;
  font-size: 12px;
  color: rgba(132, 255, 99, 0.95);
  background: rgba(132, 255, 99, 0.07);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-portals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 16px 18px;
  min-width: 0;
  max-width: 100%;
}

.home-portal {
  min-width: 0;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.03);
  overflow: hidden;
  color: var(--fg);
}

.home-portal:hover {
  border-color: rgba(255, 255, 0, 0.55);
  background: rgba(255, 0, 255, 0.09);
}

.home-portal__visual {
  height: 110px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 255, 255, 0.16);
  background:
    radial-gradient(120px 70px at 20% 30%, rgba(0, 255, 255, 0.25), transparent 70%),
    radial-gradient(120px 70px at 80% 70%, rgba(255, 255, 0, 0.2), transparent 75%),
    linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(255, 0, 255, 0.08));
}

.home-portal__gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(1.12) brightness(1.08);
  pointer-events: none;
}

.home-portal--art .home-portal__visual.has-art-preview {
  background-image:
    linear-gradient(180deg, rgba(0, 6, 24, 0.08), rgba(0, 6, 24, 0.4)),
    var(--art-preview-image);
  background-size: cover;
  background-position: center;
}

.home-portal--ambient .home-portal__visual {
  background:
    linear-gradient(180deg, rgba(0, 6, 24, 0.1), rgba(0, 6, 24, 0.45)),
    url("./assets/gifs/motifs/ambient%20gif.gif");
  background-size: cover;
  background-position: center;
}

.home-portal--ambient .home-portal__visual::before {
  content: none;
}

.home-portal--ambient .home-portal__visual::after {
  content: none;
}

.home-portal--beats .home-portal__visual {
  background:
    linear-gradient(180deg, rgba(0, 6, 24, 0.08), rgba(0, 6, 24, 0.42)),
    url("./assets/gifs/motifs/beats%20gif.gif");
  background-size: cover;
  background-position: center;
}

.home-portal--beats .home-portal__visual::before {
  content: none;
}

.home-portal--beats .home-portal__visual::after {
  content: none;
}

@keyframes breathPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50% { transform: scale(1); opacity: 0.95; }
}

@keyframes breathPulseInner {
  0%, 100% { transform: scale(0.95); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

@keyframes drumScan {
  0% { background-position: -40px 0; }
  100% { background-position: 40px 0; }
}

.home-portal__meta {
  padding: 10px;
}

.home-portal__title {
  font-size: 13px;
}

.home-portal__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.home-quote {
  margin: 4px 16px 18px;
  padding: 12px 14px;
  border-left: 2px solid rgba(255, 225, 96, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 225, 96, 0.07), rgba(255, 225, 96, 0.03));
  color: rgba(255, 236, 176, 0.97);
  font-family: var(--script);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.45;
  letter-spacing: 0.1px;
  text-shadow: 0 0 10px rgba(255, 220, 120, 0.2);
}

.home-quote__author {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  color: rgba(233, 237, 242, 0.9);
}

.home-symbol-links {
  margin: 0 16px 24px;
  max-width: calc(100% - 32px);
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 4px;
  padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-symbol-links::-webkit-scrollbar {
  display: none;
}

.home-symbol-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(95, 165, 255, 0.6);
  background: linear-gradient(180deg, rgba(24, 44, 82, 0.42), rgba(10, 20, 39, 0.54));
  color: rgba(248, 251, 255, 0.98);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  animation: symbolOrangeGlow 3.2s ease-in-out infinite;
}

.panel .home-symbol-link,
.panel .home-symbol-link:visited {
  color: rgba(248, 251, 255, 0.98);
}

.home-symbol-link svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.panel .home-symbol-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 140, 28, 0.98);
  color: rgba(255, 255, 255, 1);
  background: linear-gradient(180deg, rgba(66, 38, 12, 0.72), rgba(24, 14, 6, 0.82));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 140, 28, 0.62), 0 0 18px rgba(255, 140, 28, 0.38);
}

.panel .home-symbol-link,
.panel .home-symbol-link:hover,
.panel .home-symbol-link:focus-visible,
.panel .home-symbol-link:active {
  text-decoration: none;
}

.home-symbol-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 0 0 6px rgba(115, 164, 255, 0.26);
}

@keyframes symbolOrangeGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 156, 78, 0), 0 0 0 1px rgba(100, 170, 255, 0.24);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 156, 78, 0.22), 0 0 0 1px rgba(100, 170, 255, 0.36);
  }
}

@media (max-width: 640px) {
  .home-symbol-links {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 2px;
    padding-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-symbol-link {
    animation: none;
  }
}

.home-app-cta {
  margin: 0 16px 18px;
  padding: 12px;
  border: 1px solid rgba(73, 215, 255, 0.22);
  border-radius: 10px;
  background: rgba(0, 16, 28, 0.56);
}

.home-app-cta__banner {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(73, 215, 255, 0.32);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.home-app-cta__banner img {
  width: 100%;
  display: block;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.home-app-cta__button {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(233, 247, 255, 0.99);
  border: 1px solid rgba(88, 220, 255, 0.64);
  border-radius: 6px;
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(6, 46, 68, 0.95), rgba(2, 24, 40, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(164, 239, 255, 0.32),
    0 10px 20px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(10, 90, 130, 0.34);
}

.home-app-cta__button:hover {
  background: linear-gradient(180deg, rgba(9, 62, 90, 0.96), rgba(3, 31, 52, 0.98));
  border-color: rgba(145, 232, 255, 0.92);
  color: rgba(246, 252, 255, 1);
}


/* PREMIUM CTA BUTTONS */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.cta-button.primary {
  color: #05070c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(221, 226, 238, 0.92)),
    linear-gradient(135deg, #ffffff, #bfc8dc);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 18px 45px rgba(170, 190, 255, 0.18),
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.cta-button.primary::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0)
  );
  z-index: -1;
}

.cta-button.primary::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -30%;
  width: 45%;
  height: 250%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transform: rotate(25deg);
  opacity: 0;
  transition: left 600ms ease, opacity 300ms ease;
}

.cta-button.secondary {
  color: rgba(245, 248, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(190, 205, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cta-button.secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(150, 170, 255, 0.18),
    transparent 55%
  );
  opacity: 0.8;
  z-index: -1;
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button.primary:hover {
  box-shadow:
    0 24px 60px rgba(190, 205, 255, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cta-button.primary:hover::after {
  left: 110%;
  opacity: 1;
}

.cta-button.secondary:hover {
  border-color: rgba(220, 228, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(115, 135, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 0 0 6px rgba(120, 145, 255, 0.22);
}

@media (max-width: 640px) {
  .cta-group {
    width: 100%;
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    min-height: 56px;
    font-size: 15px;
  }
}

.home-app-cta__android {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(219, 225, 236, 0.86);
  letter-spacing: 0.5px;
}

.home-app-cta__android span {
  display: inline-block;
  text-transform: lowercase;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: rgba(255, 210, 110, 0.98);
  text-shadow: 0 0 10px rgba(255, 196, 90, 0.18);
  animation: androidWave 1.4s steps(2, end) infinite;
}

.home-app-cta__android a {
  display: block;
  margin-top: 10px;
  color: rgba(233, 237, 242, 0.9);
  text-decoration-thickness: 1px;
}

.home-app-cta__divider {
  margin-top: 14px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(73, 215, 255, 0.32), rgba(73, 215, 255, 0.04));
}

.home-youtube-card {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(73, 215, 255, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 20, 30, 0.9), rgba(6, 24, 34, 0.78));
  color: var(--fg);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.home-youtube-card:hover {
  border-color: rgba(132, 230, 255, 0.72);
  background: linear-gradient(135deg, rgba(0, 24, 36, 0.95), rgba(8, 30, 43, 0.86));
}

.home-youtube-card img {
  display: block;
  width: 76px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(73, 215, 255, 0.35);
}

.home-youtube-card__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-youtube-card__eyebrow {
  width: max-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(73, 215, 255, 0.2);
  color: rgba(214, 245, 255, 0.95);
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.home-youtube-card__title {
  color: rgba(248, 220, 166, 0.98);
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 700;
}

.home-youtube-card__sub {
  color: rgba(233, 237, 242, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.med-landing {
  margin: 36px 0 18px;
  display: grid;
  gap: 0;
  font-family: var(--font-main);
  color: rgba(243, 246, 252, 0.97);
  letter-spacing: 0.01em;
}

.med-block {
  border: 1px solid rgba(150, 158, 174, 0.26);
  border-radius: 2px;
  padding: clamp(38px, 6.2vw, 82px) clamp(22px, 4.5vw, 64px);
  background:
    linear-gradient(180deg, rgba(2, 5, 12, 0.74), rgba(2, 5, 12, 0.74)),
    url("./assets/Promo%20images/background-web.jpg") center / cover no-repeat,
    radial-gradient(1200px 600px at 50% -30%, rgba(66, 91, 162, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.92), rgba(2, 5, 12, 0.84));
  position: relative;
}

.med-block p {
  margin: 0 0 14px;
  max-width: 68ch;
  line-height: 1.72;
  font-size: var(--type-body);
  color: rgba(198, 208, 228, 0.78);
  font-weight: 400;
}

.med-problem-intro {
  color: rgba(218, 227, 244, 0.9) !important;
  font-size: clamp(19px, 1.9vw, 26px) !important;
  line-height: 1.5 !important;
  font-weight: 400;
}

.med-problem-list {
  margin-top: 10px !important;
  margin-bottom: 22px !important;
  padding-left: 18px;
  border-left: 1px solid rgba(109, 144, 233, 0.42);
  color: rgba(210, 220, 239, 0.86) !important;
  line-height: 1.78 !important;
}

.med-problem-list--short {
  margin-top: 6px !important;
  margin-bottom: 24px !important;
  color: rgba(224, 234, 252, 0.9) !important;
}

.med-problem-key {
  margin-top: 8px !important;
  margin-bottom: 18px !important;
  color: rgba(232, 240, 255, 0.97) !important;
  font-size: clamp(22px, 2.05vw, 30px) !important;
  line-height: 1.44 !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.med-block p:last-child {
  margin-bottom: 0;
}

.med-hero {
  display: grid;
  gap: 26px;
  min-height: min(94vh, 940px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(2, 5, 12, 0.74), rgba(2, 5, 12, 0.74)),
    url("./assets/Promo%20images/background-web.jpg") center / cover no-repeat,
    radial-gradient(900px 540px at 78% 34%, rgba(54, 90, 220, 0.24), transparent 64%);
  padding-top: clamp(48px, 9vh, 120px);
  padding-bottom: clamp(52px, 10vh, 140px);
}

.med-hero__visual {
  display: block;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  justify-self: center;
  width: min(430px, 92%);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(123, 148, 220, 0.18);
}

.med-hero__visual img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.med-eyebrow {
  margin: 0 0 14px;
  color: rgba(157, 167, 188, 0.9);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
}

.med-title {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: var(--type-h1);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.032em;
  color: rgba(241, 247, 255, 0.99);
  text-wrap: balance;
}

.med-title__accent {
  color: rgba(236, 72, 72, 0.98);
}

.med-lead {
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.56;
  color: rgba(233, 238, 248, 0.96);
  max-width: 58ch;
}

.med-sub {
  font-size: clamp(16px, 1.35vw, 19px);
  color: rgba(202, 214, 236, 0.9);
  font-style: italic;
}

.med-h3 {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--font-main);
  font-size: var(--type-h2);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: rgba(235, 243, 255, 0.99);
  text-wrap: balance;
}

.med-h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: min(120px, 55%);
  height: 1px;
  background: linear-gradient(90deg, var(--med-title-line, rgba(162, 189, 255, 0.72)), rgba(162, 189, 255, 0));
  transform-origin: left;
  animation: medTitleLineIn 580ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.med-h3--created {
  font-size: clamp(24px, 2.7vw, 34px);
  letter-spacing: 0.01em;
}

.med-block--final .med-h3 {
  color: rgba(146, 233, 164, 0.98);
  --med-title-line: rgba(146, 233, 164, 0.72);
}

.med-landing .med-block:nth-of-type(2) .med-h3 {
  font-family: var(--font-accent);
  color: rgba(255, 182, 92, 1);
  --med-title-line: rgba(255, 174, 92, 0.94);
  letter-spacing: -0.015em;
  text-shadow: 0 0 12px rgba(255, 141, 46, 0.28);
  animation: medProblemTitleGlow 1.9s ease-in-out infinite;
}

.med-landing .med-block:nth-of-type(3) .med-h3 {
  color: rgba(255, 224, 168, 0.99);
  --med-title-line: rgba(255, 214, 144, 0.74);
}

.med-landing .med-block:nth-of-type(4) .med-h3 {
  color: rgba(183, 226, 255, 0.99);
  --med-title-line: rgba(140, 205, 255, 0.74);
}

.med-landing .med-block:nth-of-type(5) .med-h3 {
  color: rgba(186, 238, 200, 0.99);
  --med-title-line: rgba(144, 221, 165, 0.74);
}

.med-landing .med-block:nth-of-type(6) .med-h3 {
  color: rgba(218, 220, 255, 0.99);
  --med-title-line: rgba(182, 176, 255, 0.74);
}

.med-landing .med-block:nth-of-type(7) .med-h3 {
  color: rgba(255, 213, 138, 0.99);
  --med-title-line: rgba(255, 199, 112, 0.74);
}

.med-landing .med-block:nth-of-type(8) .med-h3 {
  color: rgba(206, 230, 255, 0.99);
  --med-title-line: rgba(165, 206, 255, 0.74);
}

.med-created-caps {
  font-family: var(--font-accent);
  letter-spacing: 0.06em;
}

.med-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  min-height: 58px;
  padding: 0 34px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  overflow: hidden;
  isolation: isolate;
}

.med-cta::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  margin-left: 8px;
  transform: translateY(-1px);
  opacity: 0.88;
}

.med-landing .med-cta--store {
  color: rgba(245, 248, 255, 0.96);
  border: 1px solid rgba(163, 173, 196, 0.46);
  background:
    linear-gradient(180deg, rgba(38, 43, 58, 0.92), rgba(16, 20, 30, 0.94));
  background-size: 100% 100%, 140% 140%;
  background-position: 0 0, 0% 50%;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-position 380ms ease,
    filter 260ms ease;
}

.med-landing .med-cta--store::before {
  content: none;
}

.med-cta__apple {
  display: inline-flex;
  width: 46px;
  height: 46px;
  margin-right: 12px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transform: translateY(-2px);
}

.med-cta__apple svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 720px) {
  .med-cta__apple {
    width: 34px;
    height: 34px;
    margin-right: 10px;
  }
}

.med-landing .med-cta--green {
  color: rgba(245, 248, 255, 0.96);
  border: 1px solid rgba(108, 126, 171, 0.52);
  background:
    linear-gradient(180deg, rgba(24, 34, 58, 0.9), rgba(9, 14, 27, 0.95));
  background-size: 100% 100%, 140% 140%;
  background-position: 0 0, 0% 50%;
  backdrop-filter: blur(6px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-position 380ms ease,
    filter 260ms ease;
}

.med-landing .med-cta--ghost {
  color: rgba(244, 248, 255, 0.94);
  border: 1px solid rgba(113, 132, 177, 0.58);
  background:
    linear-gradient(180deg, rgba(18, 28, 74, 0.82), rgba(7, 12, 38, 0.88)),
    rgba(7, 12, 38, 0.82);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(190, 201, 255, 0.14);
}

.med-landing .med-cta--spark::before {
  content: "+";
  font-size: 18px;
  line-height: 1;
  margin-right: 8px;
  color: rgba(188, 199, 255, 0.95);
}

.med-landing .med-cta--store,
.med-landing .med-cta--store::after,
.med-landing .med-cta--store:visited,
.med-landing .med-cta--store:hover {
  color: rgba(245, 248, 255, 0.96);
}

.med-landing .med-cta--green,
.med-landing .med-cta--green::after,
.med-landing .med-cta--green:visited,
.med-landing .med-cta--green:hover {
  color: rgba(245, 248, 255, 0.96);
}

.med-landing .med-cta--ghost,
.med-landing .med-cta--ghost::after,
.med-landing .med-cta--ghost:visited,
.med-landing .med-cta--ghost:hover {
  color: rgba(244, 248, 255, 0.98);
}

.med-cta:hover {
  transform: translateY(-2px);
}

.med-landing .med-cta--store:hover {
  background:
    linear-gradient(180deg, rgba(44, 50, 66, 0.96), rgba(20, 25, 37, 0.98));
  background-position: 0 0, 100% 50%;
  filter: saturate(1.01) brightness(1.03);
  border-color: rgba(183, 193, 214, 0.66);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.med-landing .med-cta--green:hover {
  background:
    linear-gradient(180deg, rgba(33, 45, 72, 0.96), rgba(14, 20, 35, 0.98));
  background-position: 0 0, 100% 50%;
  filter: saturate(1.02) brightness(1.03);
  border-color: rgba(142, 160, 204, 0.7);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(167, 246, 188, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.med-landing .med-cta--ghost:hover {
  border-color: rgba(151, 173, 226, 0.8);
  background:
    linear-gradient(180deg, rgba(33, 48, 124, 0.8), rgba(11, 18, 63, 0.84)),
    rgba(10, 14, 45, 0.82);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(205, 214, 255, 0.2);
}

.med-landing .med-cta--lightblue {
  border-color: rgba(142, 160, 204, 0.74);
  background:
    linear-gradient(180deg, rgba(28, 40, 67, 0.9), rgba(10, 16, 29, 0.95));
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.48),
    0 0 30px rgba(142, 159, 255, 0.24),
    inset 0 1px 0 rgba(216, 225, 255, 0.34);
}

.med-landing .med-cta--lightblue:hover {
  border-color: rgba(197, 214, 255, 0.96);
  background:
    linear-gradient(180deg, rgba(92, 124, 212, 0.82), rgba(30, 44, 108, 0.9)),
    linear-gradient(135deg, rgba(120, 154, 246, 0.56), rgba(79, 112, 216, 0.32));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(227, 235, 255, 0.16);
}

.med-cta:active {
  transform: translateY(0);
}

.med-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 0 0 6px rgba(120, 145, 255, 0.22);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.med-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.med-block--states {
  background:
    radial-gradient(760px 340px at 18% 16%, rgba(86, 122, 236, 0.1), transparent 70%),
    radial-gradient(700px 320px at 82% 38%, rgba(110, 132, 205, 0.08), transparent 72%),
    radial-gradient(680px 300px at 56% 92%, rgba(122, 112, 255, 0.07), transparent 74%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.74), rgba(2, 5, 12, 0.74)),
    url("./assets/Promo%20images/background-web.jpg") center / cover no-repeat,
    radial-gradient(1200px 600px at 50% -30%, rgba(85, 102, 255, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.92), rgba(2, 5, 12, 0.84));
}

.med-card {
  grid-column: span 6;
  border: 1px solid rgba(146, 156, 178, 0.3);
  border-radius: 8px;
  padding: 22px 20px 20px;
  background:
    linear-gradient(180deg, rgba(11, 18, 44, 0.64), rgba(5, 9, 25, 0.86)),
    rgba(5, 9, 25, 0.82);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(244, 248, 255, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 260ms ease, border-color 220ms ease;
}

.med-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%);
  pointer-events: none;
}

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

.med-card h4::before {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, rgba(226, 235, 255, 0.84), rgba(226, 235, 255, 0));
}

.med-card::after {
  content: none;
}

.med-card__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  opacity: 0.8;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(178, 197, 255, 0.2));
}

.med-card__icon::before,
.med-card__icon::after {
  content: "";
  position: absolute;
}

.med-card--sleep::after {
  border-radius: 999px;
  border-color: rgba(202, 214, 255, 0.5);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 24% 100%, 56% 50%);
}

.med-card--sleep .med-card__icon::before {
  content: none;
}

.med-card--sleep .med-card__icon::after {
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M24.5 7.5a10.5 10.5 0 1 0 0 19a8.6 8.6 0 1 1 0-19z' fill='none' stroke='rgba(214,228,255,0.96)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px 34px no-repeat;
  filter: drop-shadow(0 0 6px rgba(185, 204, 255, 0.2));
}

.med-card--focus::after {
  border: 1px solid rgba(255, 222, 167, 0.62);
  box-shadow: 0 0 28px rgba(255, 196, 108, 0.24);
}

.med-card--focus .med-card__icon::before {
  inset: 1px;
  border: 1px solid rgba(255, 218, 154, 0.9);
  border-radius: 50%;
}

.med-card--focus .med-card__icon::after {
  inset: 9px;
  border: 1px solid rgba(255, 228, 181, 0.88);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255, 201, 119, 0.24);
}

.med-card--reset::after {
  border-style: dashed;
}

.med-card--reset .med-card__icon::before {
  inset: 3px;
  border: 1px solid rgba(196, 189, 255, 0.82);
  border-radius: 50%;
  border-style: dashed;
}

.med-card--reset .med-card__icon::after {
  inset: 12px;
  border-radius: 50%;
  background: rgba(199, 191, 255, 0.9);
  box-shadow: 0 0 14px rgba(177, 170, 255, 0.3);
}

.med-card--affirm::after {
  width: 34px;
  height: 22px;
  border-radius: 12px;
}

.med-card--affirm .med-card__icon::before {
  content: none;
}

.med-card--affirm .med-card__icon::after {
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M2 18h4l3-6l4 12l4-9l3 5l3-8l4 10h3' fill='none' stroke='rgba(214,228,255,0.98)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px 34px no-repeat;
  filter: drop-shadow(0 0 6px rgba(184, 206, 255, 0.2));
}

.med-card--intend::after {
  transform: rotate(45deg);
}

.med-card--intend .med-card__icon::before {
  inset: 6px;
  border: 1px solid rgba(216, 228, 255, 0.8);
  transform: rotate(45deg);
}

.med-card--intend .med-card__icon::after {
  inset: 12px;
  border: 1px solid rgba(216, 228, 255, 0.9);
  transform: rotate(45deg);
}

.med-card h4 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: rgba(230, 236, 247, 0.96);
  font-family: var(--font-main);
  font-weight: 400;
}

@keyframes medTitleLineIn {
  from {
    opacity: 0;
    transform: scaleX(0.35);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes medProblemTitleGlow {
  0%,
  100% {
    color: rgba(255, 182, 92, 1);
    text-shadow: 0 0 12px rgba(255, 141, 46, 0.26);
  }
  50% {
    color: rgba(255, 226, 174, 1);
    text-shadow: 0 0 30px rgba(255, 149, 54, 0.52);
  }
}

@media (prefers-reduced-motion: reduce) {
  .med-h3::after {
    animation: none;
  }

  .med-landing .med-block:nth-of-type(2) .med-h3 {
    animation: none;
  }
}

.med-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(187, 196, 214, 0.82);
}

.med-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 235, 255, 0.78);
  box-shadow:
    0 28px 62px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(228, 236, 255, 0.22),
    inset 0 1px 0 rgba(244, 248, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42);
}

.med-card--featured {
  grid-column: span 8;
  transform: translateY(-12px);
  min-height: 0;
  border-color: rgba(204, 218, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(38, 44, 86, 0.58), rgba(10, 13, 30, 0.75)),
    radial-gradient(260px 140px at 14% 0%, rgba(255, 212, 130, 0.18), transparent 74%),
    rgba(11, 15, 35, 0.72);
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(188, 205, 255, 0.2),
    0 0 36px rgba(132, 154, 255, 0.14),
    inset 0 1px 0 rgba(255, 242, 217, 0.24);
}

.med-card--featured h4 {
  color: rgba(255, 236, 198, 0.99);
}

.med-card--sleep { transform: translateY(6px); }
.med-card--reset { transform: translateY(12px); }
.med-card--affirm { transform: translateY(-4px); }
.med-card--intend { transform: translateY(8px); }

.med-card--sleep h4::before {
  background: linear-gradient(90deg, rgba(193, 216, 255, 0.9), rgba(193, 216, 255, 0));
}

.med-card--sleep {
  border-color: rgba(108, 171, 255, 0.82);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 171, 255, 0.24), inset 0 1px 0 rgba(244, 248, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.med-card--focus h4::before {
  background: linear-gradient(90deg, rgba(255, 218, 154, 0.95), rgba(255, 218, 154, 0));
}

.med-card--focus {
  border-color: rgba(244, 206, 108, 0.82);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(244, 206, 108, 0.26), inset 0 1px 0 rgba(244, 248, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.36);
}

.med-card--reset h4::before {
  background: linear-gradient(90deg, rgba(181, 173, 255, 0.88), rgba(181, 173, 255, 0));
}

.med-card--reset {
  border-color: rgba(246, 121, 121, 0.8);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(246, 121, 121, 0.24), inset 0 1px 0 rgba(244, 248, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.med-card--affirm h4::before,
.med-card--intend h4::before {
  background: linear-gradient(90deg, rgba(210, 221, 255, 0.82), rgba(210, 221, 255, 0));
}

.med-card--affirm {
  border-color: rgba(111, 220, 158, 0.82);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(111, 220, 158, 0.24), inset 0 1px 0 rgba(244, 248, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.med-card--intend {
  border-color: rgba(161, 139, 255, 0.82);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(161, 139, 255, 0.24), inset 0 1px 0 rgba(244, 248, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.med-card--focus {
  animation: focusPulse 6.6s ease-in-out infinite;
}

.med-card--states .med-card:hover::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.15), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%);
}

@keyframes focusPulse {
  0%, 100% {
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.46),
      0 0 0 rgba(132, 154, 255, 0),
      inset 0 1px 0 rgba(244, 248, 255, 0.16),
      inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow:
      0 24px 62px rgba(0, 0, 0, 0.54),
      0 0 28px rgba(132, 154, 255, 0.18),
      inset 0 1px 0 rgba(244, 248, 255, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  }
}

.med-steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 14px;
  line-height: 1.62;
}

.med-features {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 18px;
  line-height: 1.62;
}

.med-features li {
  font-weight: 400;
}

.med-features strong {
  font-family: var(--font-mono);
  font-size: 0.86em;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(201, 210, 229, 0.86);
}

.med-features li:nth-child(1) strong { color: rgba(142, 210, 255, 0.98); }
.med-features li:nth-child(2) strong { color: rgba(255, 216, 146, 0.98); }
.med-features li:nth-child(3) strong { color: rgba(196, 182, 255, 0.98); }
.med-features li:nth-child(4) strong { color: rgba(156, 234, 188, 0.98); }
.med-features li:nth-child(5) strong { color: rgba(255, 198, 142, 0.98); }
.med-features li:nth-child(6) strong { color: rgba(255, 168, 188, 0.98); }
.med-features li:nth-child(7) strong { color: rgba(183, 224, 255, 0.98); }

.med-control-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.med-control-copy .med-h3 {
  margin-bottom: 16px;
}

.med-section-image {
  display: block;
  width: min(460px, 100%);
  border-radius: 8px;
  border: 1px solid rgba(181, 197, 255, 0.36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.med-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.med-badges span {
  border: 1px solid rgba(182, 197, 255, 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: rgba(225, 233, 253, 0.95);
  background: rgba(74, 90, 149, 0.2);
}

.med-badges span:nth-child(1) {
  border-color: rgba(128, 214, 255, 0.42);
  color: rgba(209, 241, 255, 0.98);
  background: rgba(66, 143, 188, 0.2);
}

.med-badges span:nth-child(2) {
  border-color: rgba(255, 214, 146, 0.42);
  color: rgba(255, 235, 196, 0.98);
  background: rgba(168, 122, 64, 0.2);
}

.med-badges span:nth-child(3) {
  border-color: rgba(255, 171, 188, 0.42);
  color: rgba(255, 220, 230, 0.98);
  background: rgba(150, 72, 95, 0.2);
}

.med-badges span:nth-child(4) {
  border-color: rgba(166, 234, 174, 0.42);
  color: rgba(220, 248, 224, 0.98);
  background: rgba(70, 136, 88, 0.2);
}

.med-badges span:nth-child(5) {
  border-color: rgba(185, 172, 255, 0.42);
  color: rgba(228, 221, 255, 0.98);
  background: rgba(95, 82, 152, 0.2);
}

.med-pricing {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.med-pricing > div {
  border: 1px solid rgba(173, 188, 255, 0.23);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(18, 23, 41, 0.8), rgba(10, 14, 28, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.med-pricing > div:nth-child(3) {
  border-color: rgba(250, 214, 144, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(250, 214, 144, 0.25),
    0 14px 28px rgba(0, 0, 0, 0.35);
}

.med-pricing h4 {
  margin: 0 0 8px;
  color: rgba(249, 213, 140, 0.96);
  font-size: 24px;
  font-family: var(--font-main);
  font-weight: 400;
}

.med-pricing p {
  margin: 0;
}

.med-pricing-note {
  font-size: 14px;
  font-style: italic;
}

.med-block--start-free {
  background:
    radial-gradient(620px 300px at 82% 82%, rgba(104, 131, 215, 0.12), transparent 74%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.74), rgba(2, 5, 12, 0.74)),
    url("./assets/Promo%20images/background-web.jpg") center / cover no-repeat,
    radial-gradient(1200px 600px at 50% -30%, rgba(85, 102, 255, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(2, 5, 12, 0.92), rgba(2, 5, 12, 0.84));
}

.med-block--start-free .med-h3 {
  color: rgba(255, 226, 172, 0.98);
}

.med-block--start-free .med-pricing > div {
  border-color: rgba(205, 171, 112, 0.34);
}

.med-block--start-free .med-pricing > div:nth-child(1) {
  border-color: rgba(122, 214, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(28, 45, 74, 0.78), rgba(11, 19, 36, 0.84)),
    rgba(16, 30, 52, 0.66);
}

.med-block--start-free .med-pricing > div:nth-child(2) {
  border-color: rgba(125, 224, 154, 0.44);
  background:
    linear-gradient(180deg, rgba(25, 56, 45, 0.76), rgba(10, 25, 20, 0.84)),
    rgba(14, 34, 27, 0.66);
}

.med-block--start-free .med-pricing > div:nth-child(3) {
  border-color: rgba(255, 214, 144, 0.56);
  background:
    linear-gradient(180deg, rgba(62, 48, 26, 0.76), rgba(28, 20, 10, 0.84)),
    rgba(39, 29, 14, 0.66);
}

.med-block--start-free .med-pricing > div:nth-child(4) {
  border-color: rgba(191, 169, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(44, 33, 69, 0.76), rgba(20, 14, 33, 0.84)),
    rgba(27, 20, 46, 0.66);
}

.med-faq {
  display: grid;
  gap: 14px;
}

.med-faq p {
  margin: 0;
  border-top: 1px solid rgba(176, 194, 255, 0.2);
  padding-top: 12px;
  line-height: 1.62;
}

.med-faq strong {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  color: rgba(255, 228, 182, 0.98);
}

.med-close {
  margin-top: 44px;
  color: rgba(251, 223, 164, 0.96);
  font-size: 15px;
}

.med-subscription-note {
  font-size: 12px;
  line-height: 1.5;
}

.med-final-mantra {
  font-style: italic;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.52;
}

.med-sticky-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  z-index: 80;
  border: 1px solid rgba(250, 214, 144, 0.5);
  border-radius: 999px;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(255, 209, 120, 0.28), rgba(145, 107, 40, 0.38));
  color: rgba(255, 248, 235, 0.99);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.46), 0 0 22px rgba(255, 203, 114, 0.18);
}

@media (min-width: 920px) {
  .med-landing {
    margin-top: 40px;
  }

  .med-hero {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 34px;
  }

  .med-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }

  .med-block--states .med-card,
  .med-block--states .med-card--featured,
  .med-block--states .med-card--sleep,
  .med-block--states .med-card--reset,
  .med-block--states .med-card--affirm,
  .med-block--states .med-card--intend {
    transform: none;
  }

  .med-block--states .med-card--focus {
    grid-column: 1 / span 7;
    grid-row: 1;
  }

  .med-block--states .med-card--sleep {
    grid-column: 8 / span 5;
    grid-row: 1;
  }

  .med-block--states .med-card--reset {
    grid-column: 1 / span 4;
    grid-row: 2;
  }

  .med-block--states .med-card--affirm {
    grid-column: 5 / span 4;
    grid-row: 2;
  }

  .med-block--states .med-card--intend {
    grid-column: 9 / span 4;
    grid-row: 2;
  }

  .med-block--states .med-card--featured {
    min-height: 0;
  }

  .med-pricing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .med-control-layout {
    grid-template-columns: minmax(280px, 0.46fr) minmax(0, 0.54fr);
    gap: 30px;
  }
}

@media (min-width: 721px) and (max-width: 919px) {
  .med-hero__copy {
    text-align: center;
    margin: 0 auto;
    max-width: 760px;
  }

  .med-hero__copy .cta-group {
    justify-content: center;
  }

  .med-hero__visual {
    justify-self: center;
    width: min(520px, 88%);
  }
}

@media (max-width: 720px) {
  .med-block {
    padding: 34px 18px;
  }

  .med-title {
    font-size: clamp(40px, 14vw, 56px);
  }

  .med-h3 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .med-grid,
  .med-pricing {
    grid-template-columns: 1fr;
  }

  .med-card,
  .med-card--featured {
    grid-column: span 12;
    transform: none;
  }

  .med-control-layout {
    grid-template-columns: 1fr;
  }

  .med-section-image {
    width: 100%;
  }

  .cta-group {
    width: 100%;
    flex-direction: column;
  }

  .med-cta {
    width: 100%;
    min-height: 56px;
    font-size: 15px;
  }

  .med-sticky-cta {
    width: min(92vw, 420px);
    text-align: center;
  }

  .med-lock {
    font-size: 0.68em;
    vertical-align: 0.08em;
  }
}

@keyframes androidWave {
  0% { opacity: 0.72; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
  100% { opacity: 0.72; transform: translateY(0); }
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 14px;
}

.art-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 0;
}

.art-tools__label {
  font-size: 12px;
  color: var(--muted);
}

.art-tools__select {
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.22);
  color: var(--fg);
  font-family: var(--mono);
  border-radius: 8px;
  padding: 6px 8px;
}

.art-tile {
  appearance: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid rgba(0, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.04);
  padding: 8px;
}

.art-tile:hover {
  border-color: rgba(255, 255, 0, 0.6);
  background: rgba(255, 0, 255, 0.08);
}

.art-tile__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: 9px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.art-tile__meta {
  padding: 0 2px 2px;
}

.art-tile__title { font-size: 13px; }
.art-tile__sub { font-size: 12px; color: var(--muted); }

.art-empty {
  padding: 16px;
  color: rgba(233, 237, 242, 0.88);
  font-size: 13px;
}

.art-terms {
  margin: 0 14px 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 225, 96, 0.34);
  border-radius: 10px;
  color: rgba(233, 237, 242, 0.74);
  font-size: 11px;
  line-height: 1.45;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.84);
  display: grid;
  place-items: center;
  padding: 18px;
}

.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 1200px);
  max-height: calc(100dvh - 90px);
  position: relative;
}

.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.26);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: clamp(20px, 6vw, 54px);
  letter-spacing: 3px;
  color: rgba(255, 225, 96, 0.24);
  text-shadow: 0 0 18px rgba(255, 225, 96, 0.2);
  pointer-events: none;
  white-space: nowrap;
}

.lightbox__caption {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.lightbox__rights {
  margin: 6px auto 0;
  max-width: min(92vw, 820px);
  text-align: center;
  color: rgba(233, 237, 242, 0.78);
  font-size: 11px;
  line-height: 1.4;
}

.lightbox__purchase {
  position: fixed;
  right: 18px;
  bottom: 28px;
  z-index: 33;
  width: min(320px, 34vw);
  padding: 14px;
  border: 1px solid rgba(132, 255, 99, 0.56);
  border-radius: 14px;
  background: rgba(5, 20, 24, 0.96);
  backdrop-filter: blur(4px);
  display: grid;
  justify-items: center;
  gap: 8px;
  box-shadow:
    0 0 0 1px rgba(132, 255, 99, 0.2) inset,
    0 0 24px rgba(132, 255, 99, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.44);
}

.lightbox__purchase-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: rgba(210, 255, 176, 0.96);
  text-shadow: 0 0 10px rgba(132, 255, 99, 0.35);
}

.lightbox__design-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.lightbox__design-label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(188, 214, 191, 0.92);
}

.lightbox__design-id {
  display: block;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(132, 255, 99, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(231, 252, 222, 0.95);
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
}

.lightbox__copy {
  width: 100%;
  border: 1px solid rgba(255, 120, 120, 0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(164, 40, 40, 0.55), rgba(124, 26, 26, 0.58));
  color: rgba(255, 236, 236, 0.98);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 90, 90, 0.24);
}

.lightbox__copy:hover {
  border-color: rgba(255, 170, 170, 0.95);
  background: linear-gradient(180deg, rgba(184, 48, 48, 0.64), rgba(144, 32, 32, 0.68));
}

.lightbox__buy {
  border: 1px solid rgba(175, 255, 132, 0.95);
  border-radius: 999px;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(132, 255, 99, 0.28), rgba(132, 255, 99, 0.14));
  color: rgba(236, 255, 226, 0.99);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(132, 255, 99, 0.24) inset,
    0 0 18px rgba(132, 255, 99, 0.24);
  transition: transform 140ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lightbox__buy:hover {
  border-color: rgba(196, 255, 160, 1);
  background: linear-gradient(180deg, rgba(132, 255, 99, 0.36), rgba(132, 255, 99, 0.2));
  box-shadow:
    0 0 0 1px rgba(132, 255, 99, 0.3) inset,
    0 0 24px rgba(132, 255, 99, 0.32);
  transform: translateY(-1px);
}

.lightbox__purchase-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(226, 234, 240, 0.92);
}

@media (max-width: 900px) {
  .lightbox__purchase {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(92vw, 560px);
    padding: 10px;
  }
}

.lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(0, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(0, 10, 26, 0.86);
  color: var(--fg);
  padding: 8px 10px;
  cursor: pointer;
  font-family: var(--mono);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 225, 96, 0.9);
  border-radius: 999px;
  background: rgba(92, 35, 140, 0.72);
  color: rgba(245, 232, 255, 0.98);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--mono);
  box-shadow:
    0 0 0 2px rgba(207, 122, 255, 0.18),
    0 0 14px rgba(255, 225, 96, 0.12);
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

.lightbox__nav:hover {
  background: rgba(124, 45, 196, 0.82);
  border-color: rgba(255, 233, 128, 0.98);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.96);
  box-shadow:
    0 0 0 2px rgba(207, 122, 255, 0.24),
    0 0 18px rgba(255, 225, 96, 0.24);
}

.coaching {
  padding: clamp(14px, 2.4vw, 24px);
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, #f3f7f6 0%, #e7eef0 100%);
  color: #111827;
}

.coaching-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 243, 245, 0.92)),
    #f8fbfb;
  box-shadow: 0 22px 46px rgba(4, 14, 24, 0.14);
}

.coaching-hero__eyebrow {
  margin: 0 0 10px;
  color: #5f6b76;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.coaching-hero__title {
  margin: 0;
  max-width: 12ch;
  color: #111827;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.coaching-hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  align-self: start;
}

.coaching-hero__logo {
  display: block;
  width: clamp(84px, 11vw, 128px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(4, 14, 24, 0.10);
  margin-bottom: 8px;
}

.coaching-hero__text {
  margin: 0;
  max-width: 62ch;
  color: #36424f;
  font-size: 17px;
  line-height: 1.65;
}

.coaching-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.coaching-offer {
  --offer-accent: #2e6f84;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.13);
  border-top: 5px solid var(--offer-accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 24px 52px rgba(8, 20, 32, 0.18),
    0 8px 18px rgba(8, 20, 32, 0.10);
}

.coaching-offer--email { --offer-accent: #2d7f96; }
.coaching-offer--voice { --offer-accent: #547c48; }
.coaching-offer--week { --offer-accent: #946338; }

.coaching-offer__head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.10);
}

.coaching-offer__head h3 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.coaching-offer__head p {
  grid-column: 1 / -1;
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
}

.coaching-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in oklab, var(--offer-accent), white 32%);
  border-radius: 10px;
  background: color-mix(in oklab, var(--offer-accent), white 86%);
  color: var(--offer-accent);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
}

.coaching-icon--email::before {
  content: "";
  width: 21px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.coaching-icon--email::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  opacity: 0.72;
}

.coaching-icon--voice {
  gap: 4px;
}

.coaching-icon--voice i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: currentColor;
}

.coaching-icon--voice i:nth-child(1) { height: 14px; }
.coaching-icon--voice i:nth-child(2) { height: 25px; }
.coaching-icon--voice i:nth-child(3) { height: 18px; }

.coaching-icon--week {
  font-size: 14px;
  font-weight: 600;
}

.coaching-options {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.coaching-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 13px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #f8faf9;
  color: #111827;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.panel .coaching-option,
.panel .coaching-option:visited {
  color: #111827;
}

.coaching-option:hover {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--offer-accent), black 5%);
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.10);
}

.coaching-option__name {
  min-width: 0;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
}

.coaching-option__price {
  color: #6f3f73;
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 600;
}

.coaching-option__price,
.coaching-package__price {
  position: relative;
  overflow: hidden;
}

.coaching-option__price::after,
.coaching-package__price::after {
  content: "";
  position: absolute;
  inset: -20% -70%;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.7) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: coachingPriceShine 5.8s ease-in-out infinite;
  pointer-events: none;
}

.coaching-option__cta {
  grid-column: 1 / -1;
  color: var(--offer-accent);
  font-family: var(--mono);
  font-size: 11px;
}

.coaching-package {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #f8faf9;
}

.coaching-package__label {
  display: block;
  color: #5f6b76;
  font-family: var(--mono);
  font-size: 12px;
}

.coaching-package__price {
  display: block;
  margin-top: 4px;
  color: #6f3f73;
  font-family: var(--font-accent);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
}

.coaching-package__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #111827;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}

.panel .coaching-package__button,
.panel .coaching-package__button:visited {
  color: #ffffff;
}

.panel .coaching-package__button:hover {
  transform: translateY(-1px);
  border-color: #2d7f96;
  background: #2d7f96;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(45, 127, 150, 0.22);
}

.coaching-note {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
}

.coaching-availability {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in oklab, var(--offer-accent), white 36%);
  border-radius: 8px;
  background: color-mix(in oklab, var(--offer-accent), white 88%);
  color: #111827;
  font-family: var(--mono);
  line-height: 1.25;
  animation: coachingAvailabilityGlow 3.8s ease-in-out infinite;
}

.coaching-availability span {
  color: color-mix(in oklab, var(--offer-accent), black 12%);
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.coaching-availability strong {
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

@keyframes coachingPriceShine {
  0%, 62% { transform: translateX(-70%); }
  78%, 100% { transform: translateX(70%); }
}

@keyframes coachingAvailabilityGlow {
  0%, 100% {
    border-color: color-mix(in oklab, var(--offer-accent), white 36%);
    box-shadow:
      0 0 0 rgba(17, 24, 39, 0),
      0 0 0 color-mix(in oklab, var(--offer-accent), transparent 100%);
  }
  50% {
    border-color: color-mix(in oklab, var(--offer-accent), white 18%);
    box-shadow:
      0 8px 18px rgba(17, 24, 39, 0.08),
      0 0 18px color-mix(in oklab, var(--offer-accent), transparent 54%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .coaching-option__price::after,
  .coaching-package__price::after,
  .coaching-availability {
    animation: none;
  }
}

.coaching-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: #1f2937;
}

.coaching-footer p {
  margin: 0;
  color: #4b5563;
  line-height: 1.45;
}

.coaching-footer p span {
  display: block;
}

.coaching-footer .btn {
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #ffffff;
  color: #111827;
  white-space: nowrap;
}

.panel .coaching-footer .btn:hover {
  border-color: rgba(45, 127, 150, 0.34);
  background: rgba(45, 127, 150, 0.10);
  color: #174b5b;
  box-shadow: 0 8px 18px rgba(45, 127, 150, 0.12);
}

.contact { padding: 16px; display: grid; gap: 12px; max-width: 720px; }

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 12px;
  color: var(--muted);
}

.field__input {
  background: rgba(0, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--fg);
  font-family: var(--mono);
  outline: none;
}

.field__input:focus {
  border-color: rgba(233, 237, 242, 0.28);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 86%);
}

.field__input--area { resize: vertical; min-height: 140px; }

.hp { position: absolute; left: -9999px; }

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(0, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(0, 255, 255, 0.14);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { border-color: rgba(233, 237, 242, 0.22); }

.btn--ghost {
  background: rgba(255, 0, 255, 0.10);
  color: var(--muted);
}

.btn--ghost:hover { color: var(--fg); }

.status { font-size: 12px; color: var(--muted); }

.foot {
  padding: 14px 16px;
  border-top: 1px solid rgba(0, 255, 255, 0.22);
  background: rgba(0, 10, 26, 0.88);
}

.foot__line { font-size: 12px; }

@media (min-width: 760px) {
  .card { grid-column: span 6; }
  .thumb { min-height: 0; }
}

@media (min-width: 1020px) {
  .card { grid-column: span 4; }
}

@media (max-width: 920px) {
  .main {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding-inline: 0;
  }

  .hud {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
  }

  .tab {
    flex: 0 1 auto;
  }

  .home-hero__title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .home-hero__title-row .home-hero__title {
    flex-basis: auto;
    font-size: clamp(30px, 7vw, 46px);
  }

  .home-hero__sigil {
    width: min(92px, 20vw);
    max-width: 100%;
  }

  .home-portals {
    grid-template-columns: 1fr;
  }

  .coaching-grid {
    grid-template-columns: 1fr;
  }

  .coaching-hero {
    grid-template-columns: 1fr;
  }

  .coaching-hero__title {
    max-width: 18ch;
  }
}

@media (max-width: 680px) {
  .main {
    width: min(100% - 16px, 1120px);
  }

  .panel__head {
    display: grid;
    gap: 8px;
  }

  .panel__meta {
    white-space: normal;
  }

  .hud {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 4px;
  }

  .tab { flex: 0 0 auto; }

  .coaching {
    padding: 12px;
  }

  .coaching-hero {
    padding: 18px;
  }

  .coaching-hero__title {
    font-size: 32px;
  }

  .coaching-hero__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .coaching-hero__logo {
    margin: 0 0 12px;
  }

  .coaching-option {
    min-height: 70px;
  }

  .coaching-availability {
    align-items: flex-start;
    flex-direction: column;
  }

  .coaching-availability strong {
    text-align: left;
  }

  .coaching-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .card {
    grid-template-columns: 1fr;
  }

  .thumb { min-height: 140px; }

  .embed__frame {
    aspect-ratio: auto;
    min-height: 240px;
  }

  .art-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-portals {
    grid-template-columns: 1fr;
  }

  .home-hero__title-row .home-hero__title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .home-hero__sigil {
    width: min(84px, 22vw);
  }

  .home-portal,
  .home-portal__visual,
  .home-portal__gif {
    max-width: 100%;
  }

  .bc-grid { grid-template-columns: 1fr; gap: 14px; }

}

@media (prefers-reduced-motion: reduce) {
  .tab, .card { transition: none; }
  .cursor { animation: none; }
  .boot__frame::before { animation: none; }
  .app::before { animation: none; }
  .home-quote { animation: none; }
  .home-portal--ambient .home-portal__visual::before { animation: none; }
  .home-portal--ambient .home-portal__visual::after { animation: none; }
  .home-portal--beats .home-portal__visual::before { animation: none; }
  .home-portal--beats .home-portal__visual::after { animation: none; }
}
