:root {
  --bg: #121212;
  --fg: #ffffff;
  --overlay: rgba(255, 255, 255, 0.1);
  --overlay-hover: rgba(255, 255, 255, 0.18);
  --muted: rgba(255, 255, 255, 0.65);
  --accent: #c2a06a;
  --radius: 14px;
  --maxw: 700px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  /* One serif voice site-wide — same family as the hero name and tabs. */
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page { max-width: var(--maxw); margin: 0 auto; padding: 32px 16px 80px; }

/* Hero — portrait with clickable section labels orbiting around it */
.hero { text-align: center; margin: 4px 0 10px; }
.orbit {
  position: relative;
  width: 100vw; max-width: 720px;
  margin-left: 50%; transform: translateX(-50%); /* break out of the page padding */
  aspect-ratio: 1 / 1.25;
  /* The aspect box runs well past the socials row; pull following content
     (the tabs) up over the empty bottom. % of page width ≈ % of orbit width
     at every viewport, so the gap closes proportionally. */
  margin-bottom: -15.5%;
}
.hero-photo {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 76%; aspect-ratio: 4 / 5; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 42%, #000 58%, transparent 84%);
          mask-image: radial-gradient(ellipse 62% 66% at 50% 42%, #000 58%, transparent 84%);
}
/* The neck-lyre necklace is clickable — it plays its song, and while the
   player is open the necklace turns gold via a glow layer blended over the
   photo (.lyre.is-gold). */
.lyre {
  position: absolute; left: 50%; top: 63%; transform: translate(-50%, -50%);
  width: 34%; height: 24%; z-index: 5; cursor: pointer; border-radius: 50%;
}
.lyre::before {
  content: ""; position: absolute; inset: -8%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%,
              rgba(194, 160, 106, 0.55),
              rgba(194, 160, 106, 0.18) 55%,
              transparent 78%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity 0.6s ease;
}
.lyre.is-gold::before { opacity: 1; }
/* Floating hint pill pointing up at the necklace, sitting ~2cm below it.
   Clicking the pill plays the song too (wired in app.js). */
.lyre-hint {
  position: absolute; left: 50%; top: 73.5%; z-index: 6;
  transform: translate(-50%, 0);
  cursor: pointer; white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid rgba(194, 160, 106, 0.55);
  border-radius: 999px; padding: 5px 12px;
  animation: lyre-hint-bob 2.6s ease-in-out infinite,
             lyre-hint-glow 2.6s ease-in-out infinite;
  transition: opacity 0.5s ease;
}
.lyre-hint::before {
  content: ""; position: absolute; left: 50%; top: -9px;
  width: 7px; height: 7px;
  border-left: 1px solid var(--accent); border-top: 1px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}
.lyre-hint.is-dismissed { opacity: 0; }

@keyframes lyre-hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -6px); }
}
@keyframes lyre-hint-glow {
  0%, 100% { box-shadow: 0 0 6px 0 rgba(194, 160, 106, 0.25); border-color: rgba(194, 160, 106, 0.55); }
  50%      { box-shadow: 0 0 16px 2px rgba(194, 160, 106, 0.6); border-color: rgba(194, 160, 106, 0.95); }
}
.hero-name {
  position: absolute; left: 50%; top: 78.5%; transform: translateX(-50%); z-index: 4;
  margin: 0; width: auto; white-space: nowrap; text-align: center;
  font-family: Georgia, "Times New Roman", serif; font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.0rem); line-height: 1.1;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}
.orbit-item {
  position: absolute; transform: translate(-50%, -50%);
  white-space: nowrap; color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.68rem, 2.7vw, 0.98rem);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; transition: color 0.15s;
  /* Clean lettering (no scrim, no underline, per Ana) — the shadow alone
     keeps labels readable where they cross the hair. */
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.85);
}
.orbit-item:hover { color: var(--accent); }
/* Keyword positions are computed in app.js (the "angel-halo orbit" block):
   the words ride a flat golden ring spinning around the forehead, one in
   focus at a time. The inline styles from the generator are the no-JS /
   reduced-motion fallback. */
/* The golden ellipse the words ride — created and sized by app.js only when
   motion is allowed. */
.halo-ring {
  position: absolute; z-index: 6; pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(194, 160, 106, 0.45);
  box-shadow: 0 0 12px rgba(194, 160, 106, 0.35), inset 0 0 10px rgba(194, 160, 106, 0.25);
}


/* Mobile keeps the full-size portrait; the orbit ring (app.js) rides over the
   photo on the label scrims. */
@media (max-width: 560px) {
  .page { padding-top: 0; }
  .hero { margin: 0 0 2px; }
  .orbit {
    width: 100vw; margin-left: 50%; transform: translateX(-50%);
    aspect-ratio: 1 / 1.85;
  }
  .hero-photo {
    left: 0; top: 0; transform: none;
    width: 100%; height: 82%; aspect-ratio: auto; object-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000 95%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 95%, transparent 100%);
  }
  .orbit-item { font-size: 0.72rem; letter-spacing: 0.1em; }
  /* name sits below the Music label, on a single line */
  .hero-name { top: 80.5%; width: auto; white-space: nowrap; font-size: clamp(1.4rem, 5.4vw, 1.8rem); }
  .lyre { left: 50%; top: 60%; width: 44%; height: 32%; } /* neck + necklace tap target */
  .lyre-hint { top: 74.5%; font-size: 0.62rem; padding: 4px 10px; }
}

/* Social links sit inside the orbit, in a tight stack right under the name
   (NeckLyre → tap pill → name → socials, per Ana). z-index above the .lyre
   tap area so the icons stay clickable. */
.socials {
  position: absolute; left: 50%; top: 84%; transform: translateX(-50%);
  z-index: 7; display: flex; justify-content: center; gap: 14px;
}
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--overlay); transition: background 0.15s;
}
.socials a:hover { background: var(--overlay-hover); }
.socials svg { width: 20px; height: 20px; fill: var(--fg); }
/* Must live AFTER the base .socials rule — the main mobile block sits earlier
   in the file, so an override there would lose the cascade. */
@media (max-width: 560px) {
  .socials { top: 86.5%; gap: 10px; }
}

/* Section nav */
.section-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 18, 18, 0.92); backdrop-filter: blur(8px);
  display: flex; gap: 2px; overflow-x: auto;
  justify-content: safe center;
  padding: 12px 4px; margin: 18px -4px 10px;
  scrollbar-width: none;
}
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a {
  white-space: nowrap; padding: 7px 14px; border-radius: 999px;
  /* Same voice as the hero name (.hero-name), just smaller — per Ana. */
  font-family: Georgia, "Times New Roman", serif; font-weight: 500;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.section-nav a:hover { background: var(--overlay); color: var(--fg); }
.section-nav a.active { background: var(--overlay-hover); color: var(--fg); }

/* Section headings (named divider blocks) */
.heading {
  font-size: 1.35rem; font-weight: 500; text-align: center;
  letter-spacing: 0.14em; text-transform: uppercase; text-indent: 0.14em;
  margin: 52px 0 10px; scroll-margin-top: 76px;
}
[data-section] { scroll-margin-top: 76px; }

/* Bio */
/* Text blocks — same lettering voice as the hero name (.hero-name), per Ana:
   tracked uppercase Georgia, centered, no italics and no "Biography" label.
   The gold hairline (.bio-rule) is the only ornament left on the main bio. */
.bio {
  max-width: 640px; margin: 28px auto; padding: 0 12px;
  font-family: Georgia, "Times New Roman", serif;
}
.bio p {
  margin: 0 0 2.1em; white-space: pre-line; text-align: center;
  font-size: 0.8rem; font-weight: 500; line-height: 2.25;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.bio p:last-child { margin-bottom: 0; }
.bio-main { margin: 72px auto 44px; }
.bio-rule {
  display: block; width: 84px; height: 1px; margin: 0 auto 34px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.bio p.bio-lede {
  font-size: 0.94rem; line-height: 2.1; letter-spacing: 0.14em;
  color: var(--fg); margin-bottom: 2.4em;
}
@media (max-width: 560px) {
  .bio-main { margin: 48px auto 32px; }
  .bio p { font-size: 0.72rem; line-height: 2.1; letter-spacing: 0.09em; }
  .bio p.bio-lede { font-size: 0.82rem; letter-spacing: 0.12em; }
}

/* Full-width single link card */
.card-block { margin: 16px 0; }
.card-block .row-head { margin-bottom: 8px; }
.card {
  display: flex; align-items: center; gap: 14px;
  background: var(--overlay); border-radius: var(--radius);
  padding: 10px; margin: 14px 0; transition: background 0.15s;
}
.card-block .card { margin: 0; }
.card:hover { background: var(--overlay-hover); }
.card img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
/* Models.com panel — #model is now the section heading, the card follows it */
#model + .card-block .card { padding: 16px; position: relative; }
#model + .card-block .card img { width: 168px; height: 168px; }
/* Small subtitle above the card, left-aligned with the image inside it
   (outside the photo, per Ana). The 16px indent matches the card padding. */
.card-tag {
  display: block; margin: 0 0 8px 16px;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.card .card-title { font-weight: 600; font-size: 0.95rem; }
.card .cta {
  margin-left: auto; flex-shrink: 0;
  background: var(--fg); color: var(--bg);
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}

/* Carousel rows */
.row-block { margin: 20px 0; }
.row-head {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 30px; margin: 0 0 10px;
}
.row-head h3 {
  margin: 0; font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.arrows { display: flex; gap: 8px; margin-left: auto; }
.arrow {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--overlay); color: var(--fg); font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, opacity 0.15s;
}
.arrow:hover { background: var(--overlay-hover); }
.arrow:disabled { opacity: 0.3; cursor: default; }

.row {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row.centered { justify-content: center; }
.cell { flex-shrink: 0; scroll-snap-align: start; }

/* Carousel cells by content type */
.cell-video { width: 304px; }
.cell-short { width: 158px; }
.cell-photo {
  width: 174px; height: 232px; border-radius: var(--radius);
  overflow: hidden; background: rgba(255, 255, 255, 0.05);
}
.cell-photo img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform 0.25s; }
.cell-photo img:hover { transform: scale(1.04); }

/* Square photo with a caption (e.g. the Science bread/lyre tiles) */
.cell-photo-sq { width: 200px; height: auto; overflow: visible; background: none; }
.cell-photo-sq img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius); }
.photo-caption {
  display: block; font-size: 0.84rem; font-weight: 600; color: var(--fg);
  line-height: 1.25; padding: 9px 2px 0;
}

/* Compact carousel row (e.g. the Model press links) — ~1cm smaller cards */
.row-block--compact .cell-tile,
.row-block--compact .cell-music { width: 132px; }
.row-block--compact .cell-video { width: 236px; }
.row-block--compact .cell-photo { width: 132px; height: 176px; }

.cell-tile, .cell-music {
  width: 170px; background: var(--overlay); border-radius: var(--radius);
  overflow: hidden; transition: background 0.15s;
}
.cell-tile:hover { background: var(--overlay-hover); }
.tile-img { width: 100%; aspect-ratio: 1; background: rgba(255, 255, 255, 0.05); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-title {
  font-size: 0.85rem; font-weight: 600; padding: 8px 10px 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-sub { color: var(--muted); font-size: 0.8rem; padding: 0 10px 10px; }
.tile-sub.cta { color: var(--fg); font-weight: 700; }
.cell-tile .tile-title:last-child, .cell-music .tile-title:last-of-type { padding-bottom: 10px; }
/* Let product tiles after the Harmonic Universe video show their full title */
.row-block.tiles-full .tile-title,
.solo-tile .tile-title {
  display: block; -webkit-line-clamp: unset; overflow: visible;
}
/* ITA presentation tile (Science) matches the video cards — same width,
   same 16:9 image box, photo edge to edge, per Ana. Now sits alone right
   under the Science heading (solo-tile), centered like the solo video. */
a[href*="GGx9B5T6rTQ"] { width: 304px; }
a[href*="GGx9B5T6rTQ"] .tile-img { aspect-ratio: 16 / 9; }
.solo-tile { margin: 20px 0 4px; display: flex; justify-content: center; }
/* Music Sheets tiles carry long dual-language names — show them in full,
   slightly smaller so the compact cards only grow a little. */
#music-sheets .tile-title {
  display: block; -webkit-line-clamp: unset; overflow: visible;
  font-size: 0.76rem;
}

.cell-music { width: 190px; }
/* Compact music tiles need a touch more width than compact press tiles, plus
   smaller platform pills, or the pills stack one-per-line and the cards grow
   taller than the full-size ones. */
.row-block--compact .cell-music { width: 150px; }
.row-block--compact .cell-music .t-links { gap: 4px; padding: 2px 8px 10px; }
.row-block--compact .cell-music .t-links a { font-size: 0.62rem; padding: 3px 8px; }
.cell-music .t-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 12px; }
.cell-music .t-links a {
  font-size: 0.7rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); transition: background 0.15s;
}
.cell-music .t-links a:hover { background: var(--overlay-hover); }

/* Video embeds (lite YouTube) */
.yt {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; cursor: pointer; aspect-ratio: 16 / 9;
  display: block; width: 100%;
}
.cell-short .yt, .solo-short .yt { aspect-ratio: 9 / 16; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.15s; }
.yt:hover img { opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 36px; background: rgba(0, 0, 0, 0.7); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.yt .play::after {
  content: ""; border-style: solid; border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
}
.yt .yt-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-size: 0.78rem; pointer-events: none;
}

/* Hero (single-video) blocks */
.solo-video { margin: 20px auto; max-width: 640px; }
.solo-short { margin: 20px auto; max-width: 300px; }

/* Signup — compact card that expands into the form (matches the Komi layout) */
.signup {
  background: var(--overlay); border-radius: var(--radius);
  overflow: hidden; margin: 16px 0;
}
.signup-head {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px; background: none; border: none; cursor: pointer;
  color: inherit; font: inherit; text-align: left; transition: background 0.15s;
}
.signup-head:hover { background: var(--overlay-hover); }
.signup-thumb {
  width: 128px; height: 128px; object-fit: cover; border-radius: 10px; flex-shrink: 0;
}
.signup-text { display: flex; flex-direction: column; min-width: 0; }
.signup-title { font-weight: 500; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; }
.signup-sub { color: var(--muted); font-size: 0.85rem; }
.signup-head .cta {
  margin-left: auto; flex-shrink: 0;
  background: var(--fg); color: var(--bg);
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.signup-form {
  display: none; flex-direction: column; gap: 10px; padding: 0 14px 16px;
}
.signup.open .signup-form { display: flex; }
.signup-form input {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px; padding: 11px 14px; color: var(--fg); font: inherit;
}
.signup-form input::placeholder { color: var(--muted); }
.signup-form button {
  background: var(--fg); color: var(--bg); border: none; border-radius: 999px;
  padding: 12px; font: inherit; font-weight: 700; cursor: pointer;
}
.signup-form button:disabled { opacity: 0.6; cursor: wait; }
.form-msg { font-size: 0.9rem; min-height: 1.2em; margin: 4px 0 0; }
.form-msg.ok { color: #7ee787; }
.form-msg.err { color: #ff8182; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); z-index: 100;
  display: none; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 94vh; border-radius: 8px; }

.footer { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 48px; }

/* In-page player for the Neck Lyre song (opens when the necklace is clicked) */
.lyre-player { position: fixed; right: 16px; bottom: 16px; z-index: 120; width: min(340px, 92vw); }
.lyre-player[hidden] { display: none; }
.lyre-player-card {
  background: #0d0d0d; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px; overflow: hidden; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.62);
}
.lyre-player-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 13px;
  font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.74rem; color: var(--accent);
}
.lyre-close {
  background: none; border: none; color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.lyre-close:hover { color: var(--fg); }
.lyre-embed { aspect-ratio: 16 / 9; background: #000; }
.lyre-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Neuroscience scroll-depth gauge — fixed at the right edge, descends the
   cortical depth / EEG bands as you scroll. Sits in the page's right margin on
   desktop; subtle on mobile. */
.depth-gauge {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; align-items: center; gap: 11px;
  font-family: Georgia, "Times New Roman", serif; pointer-events: none;
  opacity: 0; transition: opacity 0.5s ease;
}
.depth-gauge.active { opacity: 1; }
/* Once scrolling settles, ease the gauge back down to invisible. */
.depth-gauge.active.settled { opacity: 0; transition: opacity 1.1s ease 0.15s; }
.depth-read { text-align: right; line-height: 1.22; }
.depth-val {
  display: block; font-size: 0.92rem; color: var(--fg);
  letter-spacing: 0.03em; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.depth-band {
  display: block; font-size: 0.72rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.18em;
}
.depth-track {
  position: relative; width: 3px; height: 220px;
  background: linear-gradient(var(--accent), rgba(255, 255, 255, 0.18));
  border-radius: 3px;
}
.depth-marker {
  position: absolute; left: 50%; top: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%);
  box-shadow: 0 0 14px 2px var(--accent);
}
@media (max-width: 560px) {
  .depth-gauge { right: 7px; gap: 7px; }
  .depth-gauge.active { opacity: 0.9; }
  .depth-track { height: 158px; width: 2.5px; }
  .depth-val { font-size: 0.78rem; }
  .depth-band { font-size: 0.62rem; letter-spacing: 0.13em; }
  .depth-marker { width: 9px; height: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .lyre-hint { animation: none; }
}
