/* Shared look for the landing page and the call page: daylight sky, glass, sunset device. */
:root {
  --ink: #0d1424;
  --ink-2: #2a3350;
  /* Both pass WCAG AA (4.5:1) on every light background the site uses, down to the footer's #dfe6f8. */
  --muted: #545e77;
  --faint: #5c6680;
  --line: rgba(13, 20, 36, .08);
  --line-2: rgba(13, 20, 36, .14);
  --paper: #ffffff;
  --soft: #f5f7fc;
  --soft-2: #edf1fa;
  --blue: #3a6cf6;
  --blue-2: #6e96ff;
  --blue-deep: #2350d8;   /* small blue text uses this one: --blue is only 4.5:1 on pure white */
  --green: #17b07b;
  --red: #ef4b57;
  --amber: #e2961c;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-xl: 0 60px 120px -40px rgba(28, 52, 120, .45), 0 24px 48px -24px rgba(28, 52, 120, .3);
  --shadow-md: 0 20px 44px -22px rgba(28, 52, 120, .35);
  --shadow-sm: 0 6px 18px -8px rgba(28, 52, 120, .25);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* keyboard users can jump past the navigation: the link appears when it gets focus */
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--ink);
  font-weight: 600; box-shadow: var(--shadow-md); transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
[tabindex="-1"]:focus { outline: none; }  /* a section a link jumped to: no ring around the whole thing */

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.nav.away { transform: translateY(-100%); }
.nav:focus-within { transform: none; }   /* keyboard users never lose the bar */
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav.solid { background: rgba(255, 255, 255, .78); backdrop-filter: blur(18px) saturate(1.4); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 1.6em; font-weight: 600; letter-spacing: -.4px; font-size: 19px; }  /* min-height: the line the text logo took */
/* the wordmark (assets/brand/brimeo-wordmark.svg) is sized like the 19px text it replaced and takes the link's colour */
.wordmark {
  display: block; height: 1.21em; width: 3.319em; fill: currentColor;
  /* the nudge puts the outlines where the old text logo sat */
  stroke: currentColor; stroke-width: 0; transform: translate(.15px, -1.5px);
}
/* light-on-dark text renders heavier than a plain vector fill, so the white wordmark gets a hairline
   in its own colour to keep the weight the text logo had (dark-on-light already matches) */
.nav:not(.solid):not(.on-light) .wordmark, .on-dark .wordmark { stroke-width: 46; transform: translate(.5px, -1.5px); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, #ffffff, #dfe8ff); color: var(--blue-deep);
  font-family: var(--serif); font-size: 19px; box-shadow: 0 4px 14px -4px rgba(20, 40, 120, .45);
}
.nav-links { display: flex; gap: 30px; font-size: 14px; opacity: .92; }
.nav-links a:hover { opacity: .7; }
.nav-end { display: flex; align-items: center; gap: 6px; }

/* Menu button for narrow screens: three lines that fold into an X (adapted from Uiverse.io by Cevorob) */
.burger { display: none; width: 44px; height: 44px; margin-right: -8px; place-items: center; color: inherit; }
.burger-lines { position: relative; width: 26px; height: 18px; }
.burger-lines i { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 9px; background: currentColor; transform-origin: left center; transition: .25s ease-in-out; }
.burger-lines i:nth-child(1) { top: 0; }
.burger-lines i:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-lines i:nth-child(3) { top: 100%; transform: translateY(-100%); }
.burger[aria-expanded=true] .burger-lines i:nth-child(1) { transform: rotate(45deg); left: 4px; }
.burger[aria-expanded=true] .burger-lines i:nth-child(2) { width: 0; opacity: 0; }
.burger[aria-expanded=true] .burger-lines i:nth-child(3) { transform: rotate(-45deg); top: 18.4px; left: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 0; font-weight: 600; font-size: 14.5px;
  transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn-primary {
  color: #fff; background: linear-gradient(180deg, #4a78f8, #3463ee 55%, var(--blue-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -10px rgba(40, 90, 240, .8);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 32px -12px rgba(40, 90, 240, .9); }
.btn-dark { color: #fff; background: var(--ink); box-shadow: 0 10px 24px -12px rgba(13, 20, 36, .7); }
.btn-light { color: var(--ink); background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 14px 40px -10px rgba(160,180,255,.55); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 18px 50px -10px rgba(160,180,255,.75); }
.btn-dark:hover { transform: translateY(-1px); }
.btn-glass { color: inherit; background: rgba(18, 42, 140, .2); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(10px); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn .live { width: 8px; height: 8px; border-radius: 50%; background: #9dffd6; box-shadow: 0 0 0 3px rgba(157, 255, 214, .3); }

/* ---------- daylight sky ---------- */
.sky {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #2a5be0 0%, #3f74ee 16%, #77a2f5 36%, #b8cef7 54%, #e9e3f0 68%, #f8e6d8 78%, #ffffff 96%);
}
.cloud {
  position: absolute; border-radius: 50%; filter: blur(14px); opacity: .9;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, 0));
  animation: drift 60s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateX(40px); } }
.mountains { position: absolute; bottom: 0; width: 46%; max-width: 700px; height: auto; }
.mountains.left { left: -2%; }
.mountains.right { right: -2%; transform: scaleX(-1); }

/* ---------- glass ---------- */
.glass-light {
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--shadow-xl);
}
.glass-dark {
  background: rgba(22, 24, 34, .62); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px) saturate(1.4); color: #f2f4fa;
}

/* ---------- sunset "desktop" that frames a call window ---------- */
.device {
  position: relative; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 105%, #ffd59a 0%, rgba(255, 170, 110, .9) 25%, rgba(255, 120, 110, 0) 60%),
    radial-gradient(90% 70% at 15% 100%, rgba(255, 110, 140, .85), rgba(255, 110, 140, 0) 60%),
    linear-gradient(180deg, #3557e6 0%, #6a63e3 30%, #c46fc7 55%, #ff8c6e 78%, #ffb779 100%);
  box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.window {
  position: relative; border-radius: 14px; overflow: hidden; background: #0c0f17;
  box-shadow: 0 30px 70px -20px rgba(20, 10, 60, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.titlebar {
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: #171a24; color: #a3a9bd; font-size: 12px; position: relative;
}
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }

.hud-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.rec { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; box-shadow: 0 0 0 3px rgba(255, 77, 94, .25); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.eq { display: inline-flex; gap: 2.5px; align-items: center; height: 12px; }
.eq i { width: 2.5px; height: 4px; border-radius: 2px; background: currentColor; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.45s; }
@keyframes eq { 50% { height: 12px; } }

.dock {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 22px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(16px);
}

/* ---------- shared page sections (landing page and universities page) ---------- */
section.block { padding: 120px 0 0; }
.sub { color: var(--muted); font-size: 16.5px; max-width: 560px; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }
.eyebrow-s { font-size: 11.5px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; color: var(--blue-deep); margin-bottom: 14px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

footer { background: #dfe6f8; padding: 0 0 40px; font-size: 13.5px; color: var(--muted); }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--line-2); padding-top: 30px; }
footer .logo { color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer nav a:hover { color: var(--ink); }

/* ---------- book a call: Calendly embedded in a window frame (site.js loads it) ---------- */
.book {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; align-items: center;
  max-width: 980px; margin: 0 auto; padding: 32px 36px; border-radius: 26px;
  background: linear-gradient(160deg, #e6ecfb, #f3f5fb 60%, #fbefe6); border: 1px solid var(--line);
}
.book h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 10px; }
.book .sub { font-size: 15px; }
.book-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.book-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.book-list .ic { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.book-list svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.book-list b { display: block; font-weight: 600; color: var(--ink); }
.book-more { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--blue-deep); }
.book-more:hover { text-decoration: underline; }
.scheduler { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.scheduler .titlebar { background: #f4f6fa; color: var(--muted); }
.cal-embed { height: 520px; }
.cal-embed iframe { display: block; }
/* Calendly sets cookies, so it only loads once the visitor asks for it. */
.cal-gate {
  position: absolute; inset: 34px 0 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 24px; text-align: center; color: var(--muted); font-size: 14px; transition: opacity .3s;
  background: linear-gradient(180deg, #fff, #f6f8fe);
}
.cal-gate b { color: var(--ink); font-size: 16px; font-weight: 600; }
.cal-gate small { max-width: 300px; font-size: 12px; line-height: 1.5; color: var(--faint); }
.cal-gate small a { color: var(--muted); text-decoration: underline; }
.cal-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--soft-2); color: var(--blue); }
.cal-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scheduler.ready .cal-gate { opacity: 0; pointer-events: none; }
.cal-spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--soft-2); border-top-color: var(--blue); animation: cal-spin .9s linear infinite; }
@keyframes cal-spin { to { transform: rotate(360deg); } }
.cal-fallback { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.cal-fallback a { color: var(--blue-deep); font-weight: 500; }
.cal-fallback a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .book { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  section.block { padding-top: 90px; }
  .book { padding: 24px 12px 16px; border-radius: 20px; }
  .book > div:first-child { padding: 0 8px; }
  .cal-embed { height: 640px; }  /* Calendly stacks its calendar and times on phones */
}

/* ---------- legal pages (privacy, terms, accessibility) ---------- */
.doc-hero { position: relative; padding: 130px 0 56px; color: #fff; text-align: center; overflow: hidden; }
.doc-hero .sky { background: linear-gradient(180deg, #2a5be0 0%, #3463ea 55%, #3768ee 100%); }
.doc-hero .container { position: relative; z-index: 2; }
.doc-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 10px; }
.doc-hero p { margin: 0; font-size: 14.5px; color: #fff; }
.prose { max-width: 740px; margin: 0 auto; padding: 48px 24px 90px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.prose .intro { font-size: 17.5px; color: var(--ink); }
.prose h2 { font-size: 22px; font-weight: 600; letter-spacing: -.4px; line-height: 1.3; color: var(--ink); margin: 44px 0 10px; }
.prose h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 26px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose .toc { margin: 28px 0 8px; padding: 18px 22px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); font-size: 15px; }
.prose .toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.prose .toc li { margin: 4px 0; break-inside: avoid; }
.prose .toc a { text-decoration: none; }
.prose .toc a:hover { text-decoration: underline; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line-2); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--soft); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .prose table { min-width: 520px; } }
.prose .contact { margin-top: 40px; padding: 20px 22px; border-radius: 16px; background: var(--soft-2); }
@media (max-width: 600px) { .prose .toc ol { columns: 1; } }

/* Footer row with the legal links, contact and copyright */
.foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; }
.foot-legal a:hover { color: var(--ink); }
.foot-legal span { margin-left: auto; }
@media (max-width: 600px) { .foot-legal span { margin-left: 0; flex-basis: 100%; } }

/* AI disclosure line under demo footage and sample professors */
.ai-note { margin: 14px auto 0; text-align: center; font-size: 12.5px; color: var(--ink-2); }  /* it can sit in a card's shadow */
.ai-note::before { content: "AI"; display: inline-block; margin-right: 7px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; color: var(--blue-deep); background: var(--soft-2); }

/* ---------- pause motion (button added by site.js) ---------- */
.motion-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px 8px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px);
}
.motion-toggle:hover { color: var(--ink); }
.motion-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle[aria-pressed=true] svg { fill: currentColor; }
/* in the footer it reads as one more footer link */
.motion-toggle.in-footer { position: static; padding: 0; font-size: inherit; font-weight: inherit; color: inherit; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.motion-toggle.in-footer svg { width: 11px; height: 11px; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Below 900px the links would wrap into the logo and button, so they move into a menu under the bar. */
@media (max-width: 900px) {
  .burger { display: grid; }
  .nav.open { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 24px 18px;
    background: #fff; color: var(--ink);
    box-shadow: 0 18px 30px -18px rgba(28, 52, 120, .35); font-size: 16px; font-weight: 500; opacity: 1;
    visibility: hidden; transform: translateY(-8px); clip-path: inset(0 0 100% 0);
    transition: transform .25s ease, clip-path .25s ease, visibility 0s .25s;
  }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links { visibility: visible; transform: none; clip-path: inset(0 0 -40px 0); transition: transform .25s ease, clip-path .25s ease; }
}
@media (max-width: 420px) {
  .nav-end .btn { height: 40px; padding: 0 14px; font-size: 13.5px; }
}

/* ---------- sky engine layers (assets/sky.js) ---------- */
.sky-clouds { position: absolute; inset: 0; pointer-events: none; }
.sky-cloud { position: absolute; left: 0; top: 0; height: auto; transition: opacity 2.4s ease; will-change: transform; }
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky-glow { position: absolute; pointer-events: none; will-change: transform; }
.sky-glow--sun {
  width: 64vmax; height: 64vmax; right: -24vmax; top: -40vmax; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 42%, transparent), color-mix(in srgb, var(--glow) 12%, transparent) 40%, transparent 70%);
}
.sky--dawn .sky-glow--sun { top: auto; bottom: -46vmax; right: auto; left: -10vmax; }
.sky--dusk .sky-glow--sun { top: auto; bottom: -42vmax; right: auto; left: 8vmax; }
.sky-glow--moon {
  width: 84px; height: 84px; right: 13%; top: 11%; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffef6, #e7ecff 55%, #b9c5ef);
  box-shadow: 0 0 50px 14px rgba(207, 216, 255, .28), 0 0 180px 70px rgba(150, 170, 255, .12);
}
.sky--dusk .mountains { filter: brightness(.78) saturate(.9) sepia(.18); }
.sky--night .mountains { filter: brightness(.34) sepia(.7) hue-rotate(182deg) saturate(2.2); }
.sky--dawn .mountains { filter: brightness(.92) sepia(.1); }
