/* genomicsedu.com: Jennifer Reed's course site. Dark galaxy ground, art from her studio (glass cyan/gold).
   Motion: animations are fine for Jenny (only her face is off limits). The galaxy is static for now, hover gets
   subtle movement (drift, twinkle, scroll reveals, slow hero zoom), and the hero carousel it pauses on hover/focus, has a pause button, and never autoplays under reduced motion. */
:root {
  --space: #040a15;
  --navy: #071425;
  --panel: rgba(10, 24, 44, .72);
  --line: rgba(160, 200, 235, .14);
  --ink: #eef2f8;
  --dim: #a9b6c9;
  --faint: #73839a;
  --cyan: #7fd8f2;
  --gold: #f2b65c;
  --gold-ink: #1b1204;
  --violet: #6b4fb8;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0; background: var(--space); color: var(--ink);
  font: 400 18px/1.6 var(--body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- the galaxy: painted once by site.js, fixed behind everything ---------- */
#sky, #twinkle { position: fixed; left: -24px; top: -24px; width: calc(100% + 48px); height: calc(125vh + 48px); z-index: 0; pointer-events: none;
  transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0); will-change: transform; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 82% 18%, rgba(107, 79, 184, .20), transparent 70%),
    radial-gradient(50vw 36vw at 10% 70%, rgba(20, 110, 150, .16), transparent 70%),
    radial-gradient(40vw 30vw at 70% 92%, rgba(242, 182, 92, .06), transparent 70%);
}
.page { position: relative; z-index: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
.eyebrow {
  font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  margin: 0 0 16px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; margin: 0; font-variation-settings: "SOFT" 50, "opsz" 96; }
h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; }
h3 { font-size: 26px; line-height: 1.2; }
h1.sm { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
.lede { color: var(--dim); font-size: clamp(18px, 1.6vw, 21px); max-width: 58ch; margin: 20px 0 0; }

/* ---------- buttons: one filled CTA per view ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #f6c578; }
.btn-ghost { border-color: rgba(238, 242, 248, .34); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.link { color: var(--cyan); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow { font-family: var(--body); }

/* ---------- utility bar + header (aqua: hours / tickets bar above the logo row) ---------- */
.util { background: rgba(3, 8, 17, .85); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.util nav { display: flex; gap: 22px; }
.util a { text-decoration: none; }
.util a:hover { color: var(--ink); }
header.top {
  position: sticky; top: 0; z-index: 20; background: rgba(4, 10, 21, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; min-height: 76px; gap: 24px; }
.brand { margin-right: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font: 600 22px/1 var(--display); letter-spacing: -.01em; display: block; }
.brand small { display: block; font-size: 12.5px; color: var(--dim); margin-top: 4px; letter-spacing: .02em; }
.mainnav { display: flex; align-items: center; gap: 30px; font-size: 16px; }
.mainnav a { text-decoration: none; color: var(--dim); }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--ink); }
.mainnav a.btn-gold, .mainnav a.btn-gold:hover { color: var(--gold-ink); }
.gear { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); color: var(--dim); margin-left: -8px; }
.gear svg { width: 22px; height: 22px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gear:hover { color: var(--ink); border-color: rgba(238, 242, 248, .4); }
.gear:hover svg { transform: rotate(60deg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; width: 48px; height: 48px; font-size: 20px; cursor: pointer; }

/* ---------- hero carousel ---------- */
.hero { position: relative; height: clamp(560px, 82vh, 780px); overflow: hidden; background: var(--navy); }
.slide { position: absolute; inset: 0; z-index: 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* the Milky Way loop behind all three slides (Mixkit free license, clip 46101); the slide art is cut out (*-cut.webp) so the sky shows round it */
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 10, 21, .88) 0%, rgba(4, 10, 21, .68) 34%, rgba(4, 10, 21, .1) 66%, transparent 100%),
              linear-gradient(0deg, rgba(4, 10, 21, .9), transparent 30%);
}
.slide .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-bottom: 72px; }
.slide .copy { max-width: 660px; }
.slide .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; max-width: 640px; }
.stat { background: rgba(8, 20, 38, .7); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat b { display: block; font: 600 34px/1 var(--mono); letter-spacing: -.02em; color: var(--gold); }
.stat span { display: block; font-size: 15px; color: var(--dim); margin-top: 8px; line-height: 1.35; }
.stat.big { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 18px; }
.stat.flip { cursor: pointer; }
.stat.flip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.stat.flip.pop b { animation: statpop .45s ease-out; }
@keyframes statpop { 0% { opacity: 0; transform: translateY(6px) scale(.96); } 100% { opacity: 1; transform: none; } }
.stat.big b { font-size: 56px; }
.stat.big span { font-size: 18px; color: var(--ink); margin: 0; }
.src { font-size: 12.5px; color: var(--faint); margin-top: 14px; max-width: 560px; line-height: 1.5; }
.hero-ctl {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 26px;
}
.hero-ctl .wrap { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; gap: 6px; }
.dots button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center;
}
.dots button::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: rgba(238, 242, 248, .3); }
.dots button[aria-current="true"]::before { background: var(--gold); }
.ctl {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(238, 242, 248, .3); background: rgba(4, 10, 21, .5);
  color: var(--ink); cursor: pointer; font-size: 15px; display: grid; place-items: center;
}
.ctl:hover { border-color: var(--ink); }
.slide-label { font-size: 14px; color: var(--dim); margin-left: 6px; }

/* ---------- info strip (aqua: hours / address / phone) ---------- */
.strip { background: rgba(7, 18, 34, .9); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.strip li { padding: 24px 0; padding-right: 24px; }
.strip li + li { border-left: 1px solid var(--line); padding-left: 28px; }
.strip small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.strip strong { font-weight: 500; font-size: 17px; }

/* ---------- sections ---------- */
section.block { padding: clamp(64px, 9vw, 112px) 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; flex-wrap: wrap; }
.head .lede { margin-top: 14px; }

/* course cards: image first, text below, no box (aqua "what's happening" row) */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course { text-decoration: none; display: flex; flex-direction: column; }
.course figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--navy); }
.course figure img { width: 100%; height: 100%; object-fit: cover; }
.course:hover figure { border-color: rgba(127, 216, 242, .55); }
.course .who { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 22px 0 10px; }
.course h3 { margin-bottom: 10px; }
.course p { margin: 0; color: var(--dim); font-size: 17px; }
.course .meta { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.pill { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.course .go { color: var(--cyan); font-weight: 600; }
.course:hover .go { text-decoration: underline; text-underline-offset: 4px; }

/* explore the science: the gene constellation */
.science { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(4, 10, 21, .2), rgba(9, 14, 36, .55) 50%, rgba(4, 10, 21, .2)); }
.science .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.science .actions { margin-top: 32px; }
.constellation { position: relative; }
.constellation svg { width: 100%; height: auto; display: block; overflow: visible; }
.constellation .edge { stroke: rgba(127, 216, 242, .28); stroke-width: 1; }
.constellation .edge.hot { stroke: rgba(242, 182, 92, .85); stroke-width: 1.6; }
.constellation .gene { cursor: pointer; outline: none; }
.constellation .halo { fill: url(#halo); }
.constellation .core { fill: #fff; }
.constellation .lbl { font: 600 14px var(--mono); fill: var(--dim); letter-spacing: .02em; }
.constellation .gene:hover .lbl, .constellation .gene:focus .lbl, .constellation .gene.on .lbl { fill: var(--gold); }
.constellation .gene.on .core { fill: var(--gold); }
.constellation .grp { font: 600 10.5px var(--body); letter-spacing: .16em; fill: var(--faint); text-transform: uppercase; }
.gene-card { margin-top: 18px; min-height: 92px; border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; }
.gene-card b { font: 600 17px var(--mono); color: var(--gold); }
.gene-card p { margin: 6px 0 0; color: var(--dim); font-size: 17px; }

/* what the courses will be like: editorial two-column */
.expect .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.expect ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.expect li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); }
.expect li:last-child { border-bottom: 1px solid var(--line); }
.expect .n { font: 500 15px var(--mono); color: var(--gold); padding-top: 6px; }
.expect h3 { font-size: 24px; margin-bottom: 6px; }
.expect li p { margin: 0; color: var(--dim); font-size: 17px; }
.note { margin-top: 28px; font-size: 15px; color: var(--faint); }

/* contact */
.contact { border-top: 1px solid var(--line); }
.contact .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact dl { margin: 32px 0 0; display: grid; gap: 18px; }
.contact dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.contact dd { margin: 4px 0 0; font-size: 17px; }
form.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 8px; font-size: 15px; color: var(--dim); }
input, select, textarea {
  font: 400 17px/1.4 var(--body); color: var(--ink); background: rgba(3, 8, 17, .7);
  border: 1px solid rgba(160, 200, 235, .22); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); }
.check { display: flex; gap: 10px; align-items: center; color: var(--dim); font-size: 15px; }
.check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--gold); }
.form-msg { font-size: 15px; color: var(--cyan); min-height: 1.2em; margin: 0; }

footer { border-top: 1px solid var(--line); background: rgba(3, 8, 17, .9); padding: 48px 0 40px; font-size: 15px; color: var(--dim); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer nav { display: grid; gap: 4px; }
footer nav a { text-decoration: none; min-height: 32px; display: flex; align-items: center; }
footer nav a:hover { color: var(--ink); }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* stub pages */
.stub { min-height: 62vh; display: flex; align-items: center; padding: 96px 0; }

/* ---------- phone ---------- */
@media (max-width: 960px) {
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(4, 10, 21, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; }
  .mainnav.open { display: flex; }
  .mainnav a { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 18px; }
  .mainnav .btn { margin-top: 16px; justify-content: center; }
  .menu-btn { display: grid; place-items: center; order: 3; }
  .gear { order: 2; margin-left: auto; margin-right: -12px; }
  .util nav { display: none; }
  .science .grid, .expect .grid, .contact .grid { grid-template-columns: 1fr; gap: 40px; }
  .courses { grid-template-columns: 1fr; gap: 44px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { height: 720px; }
  .slide h1 { text-shadow: 0 2px 20px rgba(4, 10, 21, .95); }
  h1.sm { font-size: 30px; }
  .science .grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .science .grid > div:first-child { display: contents; }
  .science .constellation { order: 2; margin: 32px 0 24px; }
  .science .gene-card { order: 3; margin: 0 0 28px; }
  .science .actions { order: 4; margin-top: 0; }
  .slide > img { height: 46%; object-position: 78% center; }
  .slide::after { background: linear-gradient(180deg, rgba(4, 10, 21, 0) 0%, rgba(4, 10, 21, .35) 26%, rgba(4, 10, 21, .97) 46%, rgba(4, 10, 21, 1) 100%); }
  .slide .wrap { justify-content: flex-end; padding-bottom: 92px; }
  .stats { gap: 8px; margin-top: 20px; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 13.5px; }
  .stat.big b { font-size: 40px; }
  .stat.big span { font-size: 15px; }
  .slide .actions { margin-top: 24px; }
  .slide .actions .btn { flex: 1 1 auto; justify-content: center; }
  .strip ul { grid-template-columns: 1fr; }
  .strip li, .strip li + li { border-left: 0; padding: 16px 0; }
  .strip li + li { border-top: 1px solid var(--line); }
  .row2 { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .expect li { grid-template-columns: 44px 1fr; }
  .slide-label { display: none; }
  .constellation .lbl { font-size: 25px; }
  .constellation .grp { font-size: 17px; }
}

/* ---------- hover motion (Blake 2026-10-22: subtle movement on hover is fine on the public site) ---------- */
.btn { transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.course figure, .course figure img { transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .35s ease; }
.course:hover figure { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(127, 216, 242, .35); }
.course:hover figure img { transform: scale(1.04); }
.link .arrow, .course .go { transition: transform .2s ease; display: inline-block; }
.link:hover .arrow, .course:hover .go { transform: translateX(3px); }
.constellation .core, .constellation .halo { transform-box: fill-box; transform-origin: center; transition: transform .25s ease, fill .2s ease; }
.constellation .gene:hover .core, .constellation .gene.on .core { transform: scale(1.5); }
.constellation .gene:hover .halo, .constellation .gene.on .halo { transform: scale(1.3); }
.constellation .edge { transition: stroke .25s ease; }
.ctl { transition: border-color .2s ease, transform .2s ease; }
.ctl:hover { transform: scale(1.06); }
@media (hover: none) { .btn:hover, .course:hover figure, .course:hover figure img, .ctl:hover { transform: none; } }


/* ---------- ambient motion: slow, noticed on the second look ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 110ms); }
.js .rv.in { opacity: 1; transform: none; }
.slide.on > img { animation: drift 14s ease-out both; }
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.js .constellation .edge { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1), stroke .25s ease; }
.js .constellation.in .edge { stroke-dashoffset: 0; }
.js .constellation .gene { opacity: 0; transition: opacity .6s ease; transition-delay: calc(var(--d, 0) * 70ms); }
.js .constellation.in .gene { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on { transition: none; }
  .stat.flip.pop b { animation: none; }
  .js .rv, .js .constellation .gene { opacity: 1 !important; transform: none !important; }
  .js .constellation .edge { stroke-dashoffset: 0 !important; }
  .slide.on > img { animation: none; }
  #sky, #twinkle { transform: none !important; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .btn:hover, .course:hover figure, .course:hover figure img, .ctl:hover, .link:hover .arrow, .course:hover .go { transform: none !important; }
}
