.cb-opening, .page-banner, .opening-guide {
  --opening-ink: #080e17;
  --opening-blue: #81e8ff;
  --opening-mint: #b8fbd6;
  background: var(--opening-ink);
  color: #f6fbff;
}
.opening-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #76d9f474;
  background: #080e17;
}
.opening-inner {
  position: relative;
  z-index: 2;
  min-height: clamp(30rem, 38vw, 42rem);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(2.5rem, 5vw, 4.75rem) 3.5rem;
}
.opening-copy { width: min(52rem, 67%); }
.opening-intro {
  color: var(--opening-blue);
  font: 700 .93rem/1.55 ui-monospace, Consolas, monospace;
  margin-bottom: 1.25rem;
}
.opening-intro span { display: block; color: #d3e3eb; font-size: .78rem; font-weight: 500; }
.opening-copy h1 {
  font-size: clamp(3.2rem, 7.2vw, 8.5rem);
  line-height: .91;
  letter-spacing: -.077em;
  text-wrap: initial;
}
.opening-copy em { display: inline-block; color: var(--opening-blue); font-size: .72em; }
.opening-copy .lede { color: #cbdbe4; max-width: 41ch; }
.opening-copy .button {
  background: var(--opening-blue);
  border-color: var(--opening-blue);
  color: #102031;
}
.opening-copy .button.secondary {
  background: transparent;
  border-color: #648199;
  color: #e9f6ff;
}
.opening-copy .button:hover { background: #c1eeff; color: #102031; }
.opening-portrait {
  position: absolute;
  inset: 0 0 0 19%;
}
.opening-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 32%;
}
.opening-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #080e17 0%, #080e17e8 23%, #080e1780 53%, #080e1719 74%), linear-gradient(0deg, #080e17df, transparent 60%);
  pointer-events: none;
}
.hero-sweep {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-sweep::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  transform: translateX(-105%);
  background: linear-gradient(90deg, transparent 2%, #45bbe00a 25%, #4fd7f647 70%, #a3f2ff91 87%, #69d6f33b 91%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 4%, #0008 55%, #000e);
  animation: hero-scan 3.8s cubic-bezier(.22,.49,.36,1) .12s both;
}
@keyframes hero-scan {
  to { transform: translateX(232%); }
}
.motion-replay {
  position: absolute;
  right: 0;
  bottom: 1rem;
  border: 1px solid #9cc7d9;
  border-radius: 0;
  background: #080e17dc;
  color: #e6f6ff;
  padding: .35rem .7rem;
  font: 600 .75rem/1.5 ui-monospace, Consolas, monospace;
}
.motion-replay:hover { border-color: var(--opening-blue); color: var(--opening-blue); }
.page-banner .opening-inner { min-height: clamp(25rem, 34vw, 37rem); }
.page-banner .opening-copy h1 { font-size: clamp(2.9rem, 6vw, 6.75rem); max-width: 12ch; }
.page-banner .opening-copy em { display: inline; font-size: inherit; }
.work-banner .opening-portrait img { object-position: 68% 46%; }
.speaking-banner .opening-portrait img { object-position: 60% 36%; }
.speaking-banner .opening-portrait { left: 25%; }
.resources-banner .opening-portrait img { object-position: 72% 52%; }
.about-banner .opening-portrait img { object-position: 66% 37%; }
.contact-banner .opening-portrait img { object-position: 70% 38%; }
.contact-banner .opening-copy h1 { max-width: 14ch; }
.chat-launch {
  position: fixed;
  z-index: 4;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  border: 1px solid #81e8ff;
  border-radius: .25rem;
  background: #0c1b29;
  color: #ebf9ff;
  box-shadow: 0 .4rem 1.4rem #0007;
  padding: .62rem .82rem;
  font: 700 .86rem/1.5 system-ui, sans-serif;
}
.chat-launch span { color: #81e8ff; margin-right: .25rem; font-family: ui-monospace, monospace; }
.chat-launch:hover { background: #194157; }
.opening-guide[open] {
  position: fixed;
  inset: auto auto max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  margin: 0;
  width: min(29rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  display: grid;
  gap: .9rem;
  padding: clamp(.9rem, 2vw, 1.35rem);
  border: 1px solid #3d6577;
  border-left: .26rem solid var(--opening-blue);
  background: linear-gradient(110deg, #162a3b, #111c29 85%);
}
.opening-guide::backdrop { background: #0209129c; }
.guide-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.guide-main { display: grid; justify-items: start; align-content: start; gap: .65rem; min-width: 0; }
.guide-main > * { width: 100%; }
.chat-close {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #638098;
  border-radius: .25rem;
  background: #0a1928;
  color: #f0faff;
  font: 1.55rem/1 system-ui, sans-serif;
}
.chat-close:hover { border-color: var(--opening-blue); }
.opening-guide h2 { font-size: clamp(1.65rem, 3.1vw, 2.65rem); }
.opening-guide h2 span { color: var(--opening-mint); }
.guide-hint, .guide-note { color: #bdced8; margin-top: .35rem; }
.guide-mode { display: inline-block; margin-top: .55rem; font-size: .8rem; border: 1px solid #638098; border-radius: 2rem; padding: .2rem .55rem; color: #d7e7f1; }
.guide-transcript { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; max-height: min(17rem, 33dvh); overflow: auto; overscroll-behavior: contain; }
.chat-bubble { margin: 0; padding: .65rem .9rem; max-width: min(100%, 54ch); border-radius: .8rem .8rem .8rem .15rem; color: #e8f4fa; background: #223d53; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble.you { align-self: flex-end; background: #b9e8ff; color: #112738; border-radius: .8rem .8rem .15rem .8rem; }
.chat-bubble p { margin: 0; }
.chat-bubble a { display: inline-block; margin-top: .45rem; font-weight: 700; color: var(--opening-mint); }
.guide-controls { display: grid; gap: .65rem; }
.guide-note { margin: 0; font-size: .81rem; }
.guide-form {
  display: flex;
  gap: .5rem;
  align-items: center;
  border: 1px solid #6b8a9f;
  border-radius: .65rem;
  padding: .3rem;
  background: #0a1928;
}
.guide-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: .3rem;
  padding: .55rem .5rem;
  color: #fff;
  background: transparent;
}
.guide-form input::placeholder { color: #b8ccd7; }
.guide-form button {
  flex: none;
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  border-radius: .4rem;
  background: var(--opening-mint);
  color: #0a2430;
  font-size: 1.3rem;
  font-weight: 700;
}
.guide-form button:hover { background: #d9ffe8; }
.guide-form button:disabled { opacity: .65; cursor: wait; }
.guide-topics {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.guide-topics a {
  display: block;
  border: 1px solid #638098;
  padding: .32rem .65rem;
  border-radius: 1rem;
  font-size: .86rem;
  text-decoration: none;
}
.guide-topics a:hover { background: #25465f; border-color: var(--opening-blue); }
@media (prefers-reduced-motion: reduce) {
  .hero-sweep::before { animation: none; }
  .motion-replay { display: none; }
}
@media (max-width: 755px) {
  .opening-inner { min-height: 0; padding-top: clamp(13rem, 49vw, 20rem); padding-bottom: 4.6rem; }
  .opening-copy { width: 100%; }
  .opening-portrait { inset: 0 0 auto; height: clamp(19rem, 72vw, 27rem); }
  .opening-portrait img { object-position: 67% 30%; }
  .opening-portrait::after { background: linear-gradient(0deg, #080e17 0%, #080e1780 36%, transparent 77%); }
  .page-banner .opening-inner { min-height: 0; padding-bottom: 2.2rem; }
  .page-banner .opening-portrait { left: 0; }
  .page-banner .opening-copy h1 { max-width: 15ch; }
}

/* Shared visual treatment for the rest of the site. */
:root {
  --ink: #edf6fb;
  --light: #0c1420;
  --muted: #bdcdd8;
  --blue: #81e8ff;
  --lime: #a7f1cc;
  --line: #40596b;
  --dark: #0a101a;
}
.site-head, .site-foot { background: #080e17; }
.site-foot { padding-bottom: 4.6rem; }
.site-head { border-bottom-color: #4a778f80; }
.site-head nav a:last-child { border-color: #659eb6; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--blue); }
.skip:focus, .button, .ink .button, .callout .button { color: #0b1822; }
.button:hover, .ink .button:hover, .callout .button:hover { background: #baf2ff; border-color: #baf2ff; color: #0b1822; }
.button.secondary, .tile a:not(.button) { color: #a7eaff; }
.button.secondary:hover { background: #183247; color: white; }
.button, .tile, .hero-photo, .editorial-photo { border-radius: .25rem; }
.split-hero { background: radial-gradient(ellipse at 76% 50%, #14364b, transparent 68%), #080e17; border-bottom: 1px solid #3d6577; }
.hero-photo, .editorial-photo { border: 1px solid #4c819b; }
.kicker, .ink .kicker { color: #81e8ff; font-family: ui-monospace, Consolas, monospace; }
.ink { background: radial-gradient(ellipse at 88% 10%, #17344c, transparent 67%), #090f19; }
.tint { background: #101e2c; }
.tile, .goal { background: #111f2e; border-top: 2px solid #527c94; }
.switcher button, .quiz-choices button, .check-footer button { color: #e9f5fc; background: #142536; }
.switcher button[aria-pressed="true"], .quiz-choices button[aria-pressed="true"] { color: #081724; }
.quiz .feedback { background: #1c3347; }
.callout { background: linear-gradient(110deg, #102b3c, #173a4c); border-top: 1px solid #4a778f; }
.home-practice { margin-top: 1.2rem; border-left: 2px solid var(--blue); padding-left: .85rem; }
.home-practice p { margin-top: .6rem; }
.resource-download { display: grid; grid-template-columns: minmax(5rem, 29%) minmax(0, 1fr); align-items: center; gap: clamp(.8rem, 2vw, 1.35rem); }
.resource-download img { width: 100%; height: auto; border: 1px solid #6799b7; box-shadow: 0 .35rem 1.2rem #02070d99; }
.resource-download .kicker { margin: 0 0 .4rem; color: #8cdef5; }
.resource-download p { margin-top: .55rem; }
.partner-guides { margin-top: 1rem; }
@media (max-width: 370px) {
  .resource-download { grid-template-columns: 1fr; }
  .resource-download img { max-width: 7rem; }
}
