/* BlueOcean website — ocean design language shared with planning.blueoceanplanning.com.
   Tokens use the company-wide --bo- prefix. Three wave tiers: ripple (14px), swell (360px), sea (720–1440px).
   Movement uses transform, opacity and background-position only. A state change may also fade colour, border colour and
   shadow; no layout property is ever transitioned. Everything stops under prefers-reduced-motion and the footer's pause switch. */

:root {
  /* colour */
  --bo-abyss: #071929;
  --bo-deep: #091a2a;
  --bo-navy: #0e2c45;
  --bo-ink: #122c40;
  --bo-cobalt: #0b5da8;
  --bo-wave: #2b86d6;
  --bo-cyan: #86d2ee;
  --bo-mist: #b8dce9;
  --bo-foam: #cde0ee;
  --bo-paper: #f5f8fb;
  --bo-white: #ffffff;
  --bo-teal: #13a09e;
  --bo-muted: #526b7c;
  --bo-line: #d9e5ed;
  --bo-cobalt-deep: #073f73;
  --bo-wash: #e8f2f8;
  --bo-line-strong: #b9cdd9;
  --bo-teal-deep: #087b81;
  /* Use: wave, teal and cyan never carry text on white and never sit under white text. Cobalt is not used on dark panels.
     --bo-line draws dividers; controls take --bo-line-strong. The emblem's own colours are not tokens. */
  /* shape */
  --bo-r-xs: 8px;
  --bo-r-sm: 10px;
  --bo-r-md: 16px;
  --bo-r-lg: 24px;
  --bo-r-pill: 999px;
  /* motion */
  --bo-t-fast: 160ms;
  --bo-t-mid: 240ms;
  --bo-t-slow: 480ms;
  --bo-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  /* the glass header: one row, fixed over the page */
  --bo-header-h: 52px;
  /* ripple tier: 14px wavelength, 6px tall, 1.5px stroke */
  --bo-ripple-cobalt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3Q3.5 0.4 7 3T14 3' fill='none' stroke='%230b5da8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --bo-ripple-cyan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3Q3.5 0.4 7 3T14 3' fill='none' stroke='%2386d2ee' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --bo-ripple-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3Q3.5 0.4 7 3T14 3' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  /* the wordmark's underline, in the colour the planning system draws it */
  --bo-ripple-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3Q3.5 0.4 7 3T14 3' fill='none' stroke='%231690d8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  /* tide: a block of water with a wavy top, used to fill buttons from below */
  --bo-tide-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='40' viewBox='0 0 56 40' preserveAspectRatio='none'%3E%3Cpath d='M0 6q14-8 28 0t28 0V40H0Z' fill='%23ffffff'/%3E%3C/svg%3E");
  --bo-tide-deep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='40' viewBox='0 0 56 40' preserveAspectRatio='none'%3E%3Cpath d='M0 6q14-8 28 0t28 0V40H0Z' fill='%23073f73'/%3E%3C/svg%3E");
  --bo-tide-foam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='40' viewBox='0 0 56 40' preserveAspectRatio='none'%3E%3Cpath d='M0 6q14-8 28 0t28 0V40H0Z' fill='%23cde0ee'/%3E%3C/svg%3E");
  --bo-tide-glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='40' viewBox='0 0 56 40' preserveAspectRatio='none'%3E%3Cpath d='M0 6q14-8 28 0t28 0V40H0Z' fill='%23b8dce9' fill-opacity='0.24'/%3E%3C/svg%3E");
  /* arrow for links that open a new window */
  --bo-arrow-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 9.5 9.5 2.5M4 2.5h5.5V8' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* swell tier inside cards: two layers, 360px wavelength */
  --bo-swell-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='72' viewBox='0 0 360 72' preserveAspectRatio='none'%3E%3Cpath d='M0 26q45-22 90 0t90 0t90 0t90 0V72H0Z' fill='%23b8dce9' fill-opacity='0.45'/%3E%3Cpath d='M0 44q90-26 180 0t180 0V72H0Z' fill='%23cde0ee' fill-opacity='0.8'/%3E%3C/svg%3E");
  --bo-swell-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='48' viewBox='0 0 360 48' preserveAspectRatio='none'%3E%3Cpath d='M0 20q45-20 90 0t90 0t90 0t90 0V48H0Z' fill='%23ffffff' fill-opacity='0.5'/%3E%3Cpath d='M0 32q90-22 180 0t180 0V48H0Z' fill='%23ffffff'/%3E%3C/svg%3E");
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

/* the fixed header never covers an anchor target or a focused element */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bo-white);
  color: var(--bo-ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p { margin: 0; }

a { color: var(--bo-cobalt); }

::selection { background: var(--bo-mist); color: var(--bo-ink); }

:focus-visible {
  outline: 2px solid var(--bo-cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.bo-panel :focus-visible,
.site-footer :focus-visible { outline-color: var(--bo-white); }

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 40;
  background: var(--bo-mist);
  color: var(--bo-ink);
  padding: 10px 14px;
  border-radius: var(--bo-r-xs);
  transform: translateY(-80px);
  transition: transform var(--bo-t-fast) var(--bo-ease);
}

.skip:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* arrow on links that open a new window */
.ext-mark {
  flex: none;
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 7px;
  background: currentColor;
  -webkit-mask: var(--bo-arrow-out) center / contain no-repeat;
  mask: var(--bo-arrow-out) center / contain no-repeat;
  transition: transform var(--bo-t-fast) var(--bo-ease);
}

a:hover > .ext-mark,
a:focus-visible > .ext-mark { transform: translate(2px, -2px); }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.wrap.narrow { width: min(760px, calc(100% - 48px)); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--bo-cobalt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bo-ripple-glyph { flex: none; }

.lede { margin-top: 14px; max-width: 42rem; }

.fine {
  margin-top: 16px;
  color: var(--bo-muted);
  font-size: 0.95rem;
}

.section { position: relative; padding: 72px 0 80px; }

.section-soft { background: var(--bo-paper); }

.section-head { max-width: 44rem; margin-bottom: 32px; }

.section-note { margin-top: 22px; }

/* the first content band of a page that opens with a page intro */
.section.is-lead { padding-top: 24px; }

/* a heading that titles one card or one step: the level follows the page, the size stays that of a card title */
.card-title { font-size: 1.12rem; line-height: 1.65; letter-spacing: -0.02em; }

/* ---------- Ripple tier: flowing 14px wave line ---------- */

@keyframes bo-ripple { to { background-position: 14px 0; } }

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bo-cobalt);
  font-weight: 600;
  text-decoration: none;
}

.section-note .text-link { display: inline-block; min-height: 0; padding: 10px 0; }

.section-note .text-link::after { bottom: 4px; }

.text-link::after,
.site-nav a:not(.btn)::after,
.footer-nav a::after,
.card-go > span:first-child::after,
details summary > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 6px;
  background: var(--bo-ripple-cobalt) 0 0 / 14px 6px repeat-x;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: opacity var(--bo-t-fast) var(--bo-ease), transform var(--bo-t-mid) var(--bo-ease);
  pointer-events: none;
}

.text-link:hover::after,
.text-link:focus-visible::after,
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn):focus-visible::after,
.site-nav a:not(.btn)[aria-current="page"]::after,
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after,
.matrix-card:hover .card-go > span:first-child::after,
.matrix-card:focus-visible .card-go > span:first-child::after,
details summary:hover > span::after,
details[open] > summary > span::after {
  opacity: 1;
  transform: scaleX(1);
  animation: bo-ripple 1.8s linear infinite;
}

/* ---------- Buttons: the tide rises from below ---------- */

@keyframes bo-tide { to { background-position: 56px 0; } }

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--bo-r-pill);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--bo-t-fast) var(--bo-ease), background-color var(--bo-t-fast) var(--bo-ease), color var(--bo-t-fast) var(--bo-ease), box-shadow var(--bo-t-fast) var(--bo-ease);
}

.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 140%;
  background: var(--bo-tide-white) 0 0 / 56px 100% repeat-x;
  transform: translateY(74%);
  transition: transform var(--bo-t-slow) var(--bo-ease);
  pointer-events: none;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(-30%);
  animation: bo-tide 1.2s linear infinite;
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[aria-busy="true"] { cursor: wait; transform: none; }

/* loading: the water sits half way up and keeps moving */
.btn[aria-busy="true"]::before {
  transform: translateY(22%);
  animation: bo-tide 0.9s linear infinite;
}

.btn-main { background: var(--bo-mist); color: var(--bo-abyss); box-shadow: 0 8px 22px rgba(7, 25, 41, 0.28); }

.btn-primary { background: var(--bo-cobalt); color: var(--bo-white); box-shadow: 0 8px 20px rgba(11, 93, 168, 0.22); }

.btn-primary::before { background-image: var(--bo-tide-deep); }

.btn-ghost {
  background: transparent;
  color: var(--bo-white);
  box-shadow: inset 0 0 0 1px var(--bo-cyan);
}

.btn-ghost::before { background-image: var(--bo-tide-glass); }

.btn-line {
  background: var(--bo-wash);
  color: var(--bo-cobalt);
  box-shadow: inset 0 0 0 1px var(--bo-line-strong);
}

.btn-line::before { background-image: var(--bo-tide-foam); }

.btn-line:hover,
.btn-line:focus-visible { box-shadow: inset 0 0 0 1px var(--bo-cobalt); }

.btn-line[aria-current="page"] { color: var(--bo-cobalt); box-shadow: inset 0 0 0 1px var(--bo-cobalt); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* press ripple, added by js/site.js at the pointer position */

.bo-press {
  position: absolute;
  z-index: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.5;
  pointer-events: none;
  animation: bo-press var(--bo-t-slow) var(--bo-ease) forwards;
}

@keyframes bo-press {
  to { transform: scale(14); opacity: 0; }
}

/* ---------- Emblem (same mark as the student application centre) ---------- */

.bo-wave-logo { flex: none; overflow: visible; filter: drop-shadow(0 2px 6px rgba(11, 103, 194, 0.28)); }

.bo-wave-logo-back { fill: #3bbcd2; fill-opacity: 0.62; animation: bo-swell-right 4.6s linear infinite; }

.bo-wave-logo-front { animation: bo-swell-left 3.2s linear infinite; }

.bo-wave-logo-foam { fill: none; stroke: #ffffff; stroke-opacity: 0.85; stroke-width: 1.3; stroke-linecap: round; animation: bo-swell-left 5.4s linear infinite; }

.bo-wave-logo-ring { fill: none; stroke: rgba(11, 103, 194, 0.32); stroke-width: 1.2; }

.bo-wave-logo-letters { font: 700 12.4px Georgia, "Times New Roman", "Songti SC", serif; letter-spacing: 0.6px; fill: #0b5fb5; }

.bo-wave-logo-pulse { fill: none; stroke: #8fd2ff; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: bo-pulse 3.6s ease-out infinite; }

.bo-wave-logo-pulse.is-late { animation-delay: -1.8s; }

.bo-wave-logo.has-pulse { filter: drop-shadow(0 8px 22px rgba(4, 30, 64, 0.35)); }

a:hover > .bo-wave-logo path,
a:focus-visible > .bo-wave-logo path { animation-duration: 1.6s; }

@keyframes bo-swell-left { from { transform: translateX(0); } to { transform: translateX(-20px); } }

@keyframes bo-swell-right { from { transform: translateX(-20px); } to { transform: translateX(0); } }

@keyframes bo-pulse { from { transform: scale(0.96); opacity: 0.85; } to { transform: scale(1.3); opacity: 0; } }

.bo-wordmark {
  position: relative;
  padding-bottom: 6px;
  font-weight: 750;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #0b67c2;
  background: linear-gradient(100deg, #0a5db3 0%, #1690d8 55%, #13a09e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bo-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--bo-ripple-mark) 0 0 / 14px 6px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 16%, black 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 16%, black 84%, transparent);
  animation: bo-ripple 1.8s linear infinite;
}

/* ---------- Header: a slim pane of glass, fixed over the page ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(18, 44, 64, 0.1);
  transition: background-color var(--bo-t-mid) var(--bo-ease), box-shadow var(--bo-t-mid) var(--bo-ease);
}

.site-header.is-scrolled { background: rgba(255, 255, 255, 0.8); box-shadow: 0 8px 24px rgba(9, 26, 42, 0.06); }

/* without backdrop blur the bar is nearly opaque in every state, so its text never sits on moving content */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(255, 255, 255, 0.96); }

  .site-header.is-scrolled { background: rgba(255, 255, 255, 0.96); }
}

/* the first band of every page runs up behind the glass; this spacer keeps its content clear of the bar */
main > :first-child::before { content: ""; display: block; height: var(--bo-header-h); }

.header-tide {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 6px;
  background: var(--bo-ripple-cobalt) 0 0 / 14px 6px repeat-x;
  opacity: 0;
  transition: opacity var(--bo-t-mid) var(--bo-ease);
  pointer-events: none;
}

.site-header.is-scrolled .header-tide { opacity: 0.38; animation: bo-ripple 1.8s linear infinite; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--bo-header-h);
  padding: 4px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--bo-ink);
  text-decoration: none;
}

.brand .bo-wave-logo { width: 32px; height: 32px; }

.brand .bo-wordmark { font-size: 17px; }

.header-tools { display: flex; align-items: center; gap: 6px; }

/* language switch: a 34px track, with 44px targets */
.lang { position: relative; display: inline-flex; }

.lang::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  border-radius: var(--bo-r-pill);
  background: rgba(18, 44, 64, 0.07);
}

.lang-thumb {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: var(--bo-r-pill);
  background: linear-gradient(180deg, var(--bo-cobalt) 0%, var(--bo-cobalt-deep) 100%);
  box-shadow: 0 3px 10px rgba(11, 93, 168, 0.3);
  transition: transform var(--bo-t-mid) var(--bo-ease);
}

.lang-thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 6px;
  background: var(--bo-ripple-white) 0 0 / 14px 6px repeat-x;
  opacity: 0.7;
  animation: bo-ripple 1.8s linear infinite;
}

html[data-lang="zh-TW"] .lang-thumb { transform: translateX(44px); }

html[data-lang="en"] .lang-thumb { transform: translateX(88px); }

/* each entry is a link to the same page in that language */
.lang a {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0 0 4px;
  border-radius: var(--bo-r-pill);
  color: var(--bo-ink);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  transition: color var(--bo-t-fast) var(--bo-ease);
}

.lang a:hover { color: var(--bo-cobalt-deep); }

.lang a[aria-current="true"] { color: var(--bo-white); font-weight: 600; }

.nav-toggle { display: none; }

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle-input:focus-visible + .nav-toggle { outline: 2px solid var(--bo-cobalt); outline-offset: 3px; }

.nav-toggle-icon { display: grid; gap: 1px; width: 21px; }

.nav-toggle-icon i {
  display: block;
  height: 6px;
  background: var(--bo-ripple-cobalt) 0 0 / 14px 6px repeat-x;
}

.nav-toggle-input:checked + .nav-toggle { background: var(--bo-wash); border-color: var(--bo-cobalt); }

.nav-toggle-input:checked + .nav-toggle .nav-toggle-icon i { animation: bo-ripple 0.9s linear infinite; }

.nav-toggle-input:checked + .nav-toggle .nav-toggle-icon i:nth-child(2) { animation-direction: reverse; }

.site-nav { display: flex; align-items: center; }

/* On glass the page shows through, so menu text is ink and the current page is marked by weight and a ripple, never by a pale colour. */
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  color: var(--bo-ink);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--bo-t-fast) var(--bo-ease);
}

/* the bar shows the short label; the opened menu on a narrow screen shows the full name */
.nav-long { display: none; }

.site-nav a:not(.btn)::after { left: 11px; right: 11px; bottom: 5px; }

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] { color: var(--bo-cobalt-deep); }

.site-nav a:not(.btn)[aria-current="page"] { font-weight: 600; }

.site-nav .btn { min-height: 36px; margin-left: 8px; padding: 0 16px; font-size: 14px; }

.site-nav .btn-line { color: var(--bo-cobalt); }

/* on a touch screen the contact button takes the full 44px target */
@media (pointer: coarse) {
  .site-nav .btn { min-height: 44px; }
}

/* ---------- Dark ocean panels: hero, closing, training card, 404 ---------- */

.bo-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--bo-white);
  background-color: var(--bo-navy);
  background-image:
    radial-gradient(85% 90% at 100% 0%, rgba(43, 134, 214, 0.5), transparent 62%),
    radial-gradient(70% 80% at 0% 100%, rgba(11, 93, 168, 0.55), transparent 66%),
    linear-gradient(180deg, var(--bo-abyss) 0%, var(--bo-navy) 52%, var(--bo-cobalt) 135%);
}

.bo-panel h1,
.bo-panel h2 { color: var(--bo-white); }

.bo-panel .kicker { color: var(--bo-cyan); }

.bo-panel .lede,
.bo-panel .fine { color: var(--bo-foam); }

/* current lines: thin strokes that drift, with two highlights that surface and fade */
.bo-currents {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bo-currents svg {
  position: absolute;
  top: 0;
  left: -40px;
  width: calc(100% + 80px);
  height: 100%;
  animation: bo-drift 18s ease-in-out infinite alternate;
}

.bo-currents-lines path { fill: none; stroke: var(--bo-cyan); stroke-width: 1.2; stroke-opacity: 0.22; }

.bo-currents-lines path:nth-child(odd) { stroke: var(--bo-wave); stroke-opacity: 0.34; }

.bo-currents-flow path {
  fill: none;
  stroke: var(--bo-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-opacity: 0.6;
  stroke-width: 1.6;
  stroke-dasharray: 230 1700;
  stroke-dashoffset: -640;
  opacity: 0;
  animation: bo-glint 9s ease-in-out infinite;
}

.bo-currents-flow path:nth-child(2) { stroke-dasharray: 180 1750; stroke-dashoffset: -980; animation-duration: 12s; animation-delay: -5s; }

/* the footer keeps the quiet lines only */
.bo-currents.is-deep .bo-currents-flow { display: none; }

/* the lines stay clear of the copy column: text never sits on a moving stroke */
.bo-currents.is-hero,
.bo-currents.is-edge { -webkit-mask-image: linear-gradient(90deg, transparent 56%, black 78%); mask-image: linear-gradient(90deg, transparent 56%, black 78%); }

.bo-currents.is-closing { -webkit-mask-image: linear-gradient(90deg, transparent 74%, black 92%); mask-image: linear-gradient(90deg, transparent 74%, black 92%); }

.bo-currents.is-light { bottom: auto; height: 300px; -webkit-mask-image: linear-gradient(90deg, transparent 60%, black 86%); mask-image: linear-gradient(90deg, transparent 60%, black 86%); }

.bo-currents.is-light .bo-currents-lines path { stroke: var(--bo-cobalt); stroke-opacity: 0.14; }

.bo-currents.is-light .bo-currents-lines path:nth-child(odd) { stroke: var(--bo-teal); stroke-opacity: 0.16; }

.bo-currents.is-light .bo-currents-flow path { stroke: var(--bo-wave); stroke-opacity: 0.45; }

.bo-currents.is-deep .bo-currents-lines path { stroke-opacity: 0.12; }

@keyframes bo-drift { from { transform: translate3d(-24px, -6px, 0); } to { transform: translate3d(24px, 6px, 0); } }

/* a highlight surfaces, slides a little way along its line, and fades */
@keyframes bo-glint {
  0% { opacity: 0; transform: translate3d(-70px, 17px, 0); }
  35%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(70px, -17px, 0); }
}

/* sea tier: three silhouettes along the bottom edge; the last one is the colour of the next band */
.bo-sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: -1;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
}

.bo-sea-layer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: max(200%, 2880px);
  height: 100%;
  animation: bo-sea 36s linear infinite;
}

.bo-sea-layer.is-far { fill: rgba(134, 210, 238, 0.16); }

.bo-sea-layer.is-near { fill: rgba(43, 134, 214, 0.34); animation-duration: 24s; animation-direction: reverse; }

.bo-sea-layer.is-shore { fill: var(--bo-white); animation-duration: 48s; }


.bo-sea.shore-deep .is-shore { fill: var(--bo-deep); }

.bo-sea.shore-none .is-shore { display: none; }

@keyframes bo-sea { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* crest: the band above dips into the top of a dark panel */
.bo-crest {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  z-index: -1;
  height: 56px;
  overflow: hidden;
  pointer-events: none;
}

.bo-crest svg {
  position: absolute;
  left: 0;
  top: 0;
  width: max(200%, 2880px);
  height: 100%;
  animation: bo-sea 60s linear infinite reverse;
}

.bo-crest.from-paper path { fill: var(--bo-paper); }

.bo-crest.from-white path { fill: var(--bo-white); }

/* swell tier: the divider between two light bands */
.bo-swell { position: relative; height: 56px; overflow: hidden; line-height: 0; background: var(--bo-white); }

.bo-swell svg {
  position: absolute;
  left: 0;
  top: 0;
  width: max(200%, 2880px);
  height: 100%;
  animation: bo-sea 72s linear infinite;
}

.bo-swell.from-paper { background: var(--bo-paper); }

.bo-swell.to-paper .bo-swell-front { fill: var(--bo-paper); }

.bo-swell.to-paper .bo-swell-back { fill: var(--bo-foam); fill-opacity: 0.55; }

.bo-swell.to-white .bo-swell-front { fill: var(--bo-white); }

.bo-swell.to-white .bo-swell-back { fill: var(--bo-foam); fill-opacity: 0.7; }

.bo-swell.to-deep .bo-swell-front { fill: var(--bo-deep); }

.bo-swell.to-deep .bo-swell-back { fill: var(--bo-cobalt); fill-opacity: 0.55; }

.bo-swell.to-deep { height: 72px; }

/* light surface used behind page intros */
.bo-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bo-wash) 0%, var(--bo-paper) 100%);
}

/* ---------- Hero ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 40px 0 168px;
}

.hero-accent {
  margin: 12px 0 0;
  color: var(--bo-foam);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.35;
}

.hero-aside {
  padding: 24px;
  border: 1px solid rgba(134, 210, 238, 0.45);
  border-radius: var(--bo-r-lg);
  background: rgba(7, 25, 41, 0.62);
  box-shadow: 0 24px 60px rgba(7, 25, 41, 0.35);
}

.aside-kicker {
  margin: 0 0 6px;
  color: var(--bo-foam);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.hero-aside h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

/* the three stages read as waypoints on one route */
.routes { position: relative; list-style: none; margin: 22px 0 0; padding: 0; }

.routes::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, var(--bo-cyan), rgba(134, 210, 238, 0.2));
}

.routes li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 44px;
  justify-content: center;
  padding: 10px 0 10px 30px;
}

.routes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--bo-navy);
  box-shadow: inset 0 0 0 2px var(--bo-cyan), 0 0 0 4px rgba(134, 210, 238, 0.16);
}

.routes span { color: var(--bo-foam); font-size: 0.95rem; }

/* ---------- Cards ---------- */

.matrix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.matrix-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 24px;
  color: var(--bo-ink);
  text-decoration: none;
  background: var(--bo-white);
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-r-md);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--bo-t-mid) var(--bo-ease), border-color var(--bo-t-mid) var(--bo-ease), box-shadow var(--bo-t-mid) var(--bo-ease);
}

/* a swell rises along the bottom edge of the card */
.matrix-card::after,
.menu-tile::after,
.entry::after,
.case-card::after,
.knowledge-list article::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: var(--bo-swell-card) 0 100% / 360px 72px repeat-x;
  transform: translateY(100%);
  transition: transform var(--bo-t-slow) var(--bo-ease);
  pointer-events: none;
}

@keyframes bo-swell-x { to { background-position: 360px 100%; } }

.matrix-card:hover,
.matrix-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(11, 93, 168, 0.55);
  box-shadow: 0 18px 40px rgba(9, 26, 42, 0.1);
}

.matrix-card:hover::after,
.matrix-card:focus-visible::after,
.menu-tile:hover::after,
.menu-tile:focus-visible::after,
.entry:hover::after,
.entry:focus-visible::after,
.case-card:hover::after,
.case-card:focus-within::after,
.knowledge-list article:hover::after,
.knowledge-list article:focus-within::after {
  transform: translateY(0);
  animation: bo-swell-x 9s linear infinite;
}

.matrix-card:active { transform: translateY(1px); }

.matrix-card ul,
.offer ul {
  margin: 0;
  padding-left: 1.15em;
  color: rgba(18, 44, 64, 0.82);
}

.matrix-card li,
.offer li { margin: 4px 0; }

.matrix-card li::marker,
.offer li::marker { color: var(--bo-wave); }

/* numbered bubble */
.bo-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, var(--bo-white) 0 18%, transparent 19%), linear-gradient(180deg, var(--bo-white), var(--bo-wash) 55%, var(--bo-foam));
  box-shadow: inset 0 0 0 1px rgba(11, 103, 194, 0.32), 0 4px 12px rgba(11, 93, 168, 0.16);
  color: var(--bo-cobalt);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--bo-t-mid) var(--bo-ease);
}

.matrix-card:hover .bo-bubble,
.matrix-card:focus-visible .bo-bubble { transform: translateY(-3px); }

.card-kicker { margin: 0; font-size: 12px; letter-spacing: 0.14em; color: var(--bo-cobalt); }

.card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--bo-cobalt);
  font-weight: 600;
}

.card-go > span:first-child { position: relative; padding-bottom: 8px; }

.card-go > span:first-child::after { bottom: 0; }

.card-arrow {
  width: 8px;
  height: 8px;
  margin-bottom: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--bo-t-mid) var(--bo-ease);
}

.matrix-card:hover .card-arrow,
.matrix-card:focus-visible .card-arrow { transform: translateX(5px) rotate(45deg); }

.offer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-r-md);
  background: linear-gradient(180deg, var(--bo-wash), var(--bo-white));
}

.offer h2 { margin-bottom: 8px; }

.offer .btn { flex: 0 0 auto; }

/* ---------- Platform preview and tabs ---------- */

.app-frame {
  background: var(--bo-white);
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-r-md);
  box-shadow: 0 18px 40px rgba(9, 26, 42, 0.06);
  overflow: hidden;
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--bo-paper);
  border-bottom: 1px solid var(--bo-line);
}

.app-dots { display: flex; gap: 6px; }

.app-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--bo-mist);
}

.app-dots i:nth-child(2) { background: var(--bo-cobalt); }

.app-dots i:nth-child(3) { background: var(--bo-ink); }

.app-url { color: var(--bo-muted); font-size: 13px; }

.app-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--bo-line);
}

.app-tabs button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 44px;
  padding: 0 18px 6px;
  border: 0;
  border-radius: var(--bo-r-pill);
  background: transparent;
  color: var(--bo-ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--bo-t-fast) var(--bo-ease), color var(--bo-t-fast) var(--bo-ease);
}

.app-tabs button:hover { background: var(--bo-wash); }

.app-tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, var(--bo-cobalt) 0%, var(--bo-cobalt-deep) 100%);
  color: var(--bo-white);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(11, 93, 168, 0.26);
}

/* the selected tab carries a flowing ripple */
.app-tabs button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 6px;
  background: var(--bo-ripple-white) 0 0 / 14px 6px repeat-x;
  opacity: 0;
  transition: opacity var(--bo-t-mid) var(--bo-ease);
}

.app-tabs button[aria-selected="true"]::after { opacity: 0.75; animation: bo-ripple 1.8s linear infinite; }

html.js .app-tabs { display: flex; }

.app-panels { padding: 8px 20px 20px; }

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.app-grid h3 { margin-top: 12px; }

.school-list,
.miles { list-style: none; margin: 12px 0 0; padding: 0; }

.school-list li,
.miles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bo-line);
}

.miles li { align-items: flex-start; flex-direction: column; gap: 2px; }

.miles span { color: var(--bo-muted); }

.school-list em {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: var(--bo-r-pill);
  background: var(--bo-wash);
  color: var(--bo-cobalt);
  font-style: normal;
  font-size: 13px;
}

.advisor {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--bo-wash), var(--bo-paper));
  border: 1px solid var(--bo-line);
}

.advisor p { margin-top: 6px; }

/* sonar dot: a live update */
.bo-sonar {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--bo-wave);
}

.bo-sonar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--bo-wave);
  animation: bo-sonar 2.4s ease-out infinite;
}

@keyframes bo-sonar { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3.2); opacity: 0; } }

.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

html.js .app-frame.is-ready .tab-panel { display: none; }

html.js .app-frame.is-ready .tab-panel.is-active {
  display: block;
  animation: panel-in var(--bo-t-mid) var(--bo-ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Process: five waypoints on one voyage ---------- */

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 6px;
  background: var(--bo-ripple-cobalt) 0 0 / 14px 6px repeat-x;
  opacity: 0.45;
  animation: bo-ripple 1.8s linear infinite;
}

.process-list li { position: relative; }

.process-list .bo-bubble { position: relative; margin-bottom: 14px; box-shadow: inset 0 0 0 1px rgba(11, 103, 194, 0.32), 0 0 0 6px var(--bo-white); }

.process-list p { margin-top: 8px; color: rgba(18, 44, 64, 0.82); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--bo-line);
}

.principles p { margin-top: 8px; color: rgba(18, 44, 64, 0.82); }

/* ---------- Cases, knowledge, FAQ ---------- */

.case-grid,
.knowledge-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.case-grid { align-items: start; }

.case-card,
.knowledge-list article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px;
  background: var(--bo-white);
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-r-md);
  transition: border-color var(--bo-t-mid) var(--bo-ease), box-shadow var(--bo-t-mid) var(--bo-ease);
}

.case-card:hover,
.case-card:focus-within,
.knowledge-list article:hover,
.knowledge-list article:focus-within { border-color: rgba(11, 93, 168, 0.4); box-shadow: 0 14px 32px rgba(9, 26, 42, 0.07); }

.case-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--bo-r-pill);
  background: var(--bo-wash);
  color: var(--bo-cobalt);
  font-size: 13px;
}

.case-card .card-title,
.knowledge-list .card-title { margin-bottom: 8px; }

.case-card p + p { margin-top: 8px; }

details summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

details summary::-webkit-details-marker { display: none; }

details summary > span { position: relative; padding: 10px 0; }

details summary > span::after { bottom: 2px; }

/* chevron that turns over like a small wave */
details summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--bo-cobalt);
  border-bottom: 2px solid var(--bo-cobalt);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--bo-t-mid) var(--bo-ease);
}

details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }

details:not([open]) > summary > .when-open,
details[open] > summary > .when-closed { display: none; }

details[open] > .details-body { animation: bo-rise var(--bo-t-mid) var(--bo-ease); }

@keyframes bo-rise {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.case-card summary { color: var(--bo-cobalt); }

.faq-list details {
  padding: 0 16px;
  border-bottom: 1px solid var(--bo-line);
  border-radius: var(--bo-r-sm);
  transition: background-color var(--bo-t-mid) var(--bo-ease);
}

.faq-list details[open] { background: var(--bo-white); }

.faq-list details p { margin: 0 0 16px; }

.knowledge-list p { margin-top: 8px; }

/* ---------- Closing ---------- */

.closing-inner { padding: 124px 0 176px; }

.closing-inner > * { max-width: 40rem; }

/* ---------- Page intros ---------- */

.page-intro { padding: 40px 0 24px; }

/* under a page's name, the headline its block carried on the long home page */
.intro-slogan {
  margin: 14px 0 0;
  max-width: 42rem;
  color: var(--bo-cobalt-deep);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

.page-intro.has-actions { padding-bottom: 40px; }

/* ---------- Home: partner institutions ---------- */

.school-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the mark has a row of its own, so the notes line up across the wall whatever shape each mark is.
   The row grows when a name set as text needs more, and the column stays as wide as the plate whatever is in it.
   The gap under the row, with the room the row leaves, is the clear space the marks ask for above the note */
.school-mark {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(52px, auto) auto;
  align-content: start;
  justify-items: center;
  align-items: center;
  row-gap: 14px;
  padding: 18px 16px 16px;
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-r-md);
  background: var(--bo-white);
  text-align: center;
  break-inside: avoid;
}

/* a logo file keeps its own colours and proportions: the page states its size, and here it can only get smaller.
   The type is for the name a browser writes in the mark's place when the file does not arrive */
.school-mark img { display: block; max-width: 100%; max-height: 52px; height: auto; object-fit: contain; color: var(--bo-navy); font-size: 12px; line-height: 1.2; }

/* an institution without a logo file is set as a name, not drawn as a mark */
.school-name {
  color: var(--bo-navy);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.school-note { color: var(--bo-muted); font-size: 13px; line-height: 1.4; text-wrap: balance; overflow-wrap: anywhere; }

/* ---------- Home: one tile per menu page; application page: one row per form ---------- */

.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-tile,
.entry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px 20px;
  color: var(--bo-ink);
  text-decoration: none;
  background: var(--bo-white);
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-r-md);
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--bo-t-mid) var(--bo-ease), border-color var(--bo-t-mid) var(--bo-ease), box-shadow var(--bo-t-mid) var(--bo-ease);
}

.menu-tile:hover,
.menu-tile:focus-visible,
.entry:hover,
.entry:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(11, 93, 168, 0.55);
  box-shadow: 0 18px 40px rgba(9, 26, 42, 0.1);
}

.menu-tile:active,
.entry:active { transform: translateY(1px); }

.tile-copy,
.entry-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }

.tile-copy strong,
.entry-copy strong { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }

.tile-copy span { color: var(--bo-muted); font-size: 0.95rem; line-height: 1.5; text-wrap: balance; }

.entry-copy span { color: var(--bo-cobalt); font-size: 0.95rem; line-height: 1.5; }

.menu-tile .card-arrow { flex: none; margin: 0 4px 0 0; color: var(--bo-cobalt); }

.menu-tile:hover .card-arrow,
.menu-tile:focus-visible .card-arrow { transform: translateX(5px) rotate(45deg); }

.menu-tile:hover .bo-bubble,
.menu-tile:focus-visible .bo-bubble { transform: translateY(-3px); }

.entry .ext-mark { width: 13px; height: 13px; margin: 0 4px 0 0; color: var(--bo-cobalt); }

/* ---------- Home: campus photographs ---------- */

.campus-lead {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--bo-r-lg);
  background: var(--bo-wash);
  box-shadow: 0 24px 60px rgba(9, 26, 42, 0.14);
}

.campus-lead img { display: block; width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; }

/* says what a picture is when it does not show a named school */
.photo-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: var(--bo-r-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--bo-ink);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.photo-credit { margin-top: 12px; font-size: 0.86rem; }

.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.campus-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--bo-r-md);
  background: var(--bo-navy);
}

.campus-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--bo-t-slow) var(--bo-ease);
}

.campus-tile:hover img { transform: scale(1.03); }

/* the school's name sits on a deep-water fade, dark enough for white text over any photograph */
.campus-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 28px 14px 10px;
  color: var(--bo-white);
  background: linear-gradient(180deg, rgba(7, 25, 41, 0) 0%, rgba(7, 25, 41, 0.74) 26%, rgba(7, 25, 41, 0.9) 100%);
}

.campus-caption strong { font-size: 1rem; font-weight: 600; line-height: 1.35; }

.campus-caption span { color: var(--bo-foam); font-size: 13px; }

/* ---------- Training ---------- */

.training-wrap { padding: 32px 0 64px; }

.training-card {
  min-height: 460px;
  border-radius: var(--bo-r-lg);
  border: 1px solid rgba(134, 210, 238, 0.28);
  box-shadow: 0 30px 70px rgba(9, 26, 42, 0.18);
}

.training-copy { position: relative; max-width: 40rem; padding: 56px 48px 150px; }

.training-mark { position: absolute; right: 7%; top: 50%; margin-top: -130px; }

.training-mark .bo-wave-logo { width: 190px; height: 190px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }

/* labels, not buttons: no outline and no button height */
.tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--bo-r-xs);
  background: rgba(134, 210, 238, 0.14);
  color: var(--bo-foam);
  font-size: 14px;
}

.tags li::before {
  content: "";
  width: 14px;
  height: 6px;
  background: var(--bo-ripple-cyan) 0 0 / 14px 6px no-repeat;
}

/* ---------- Contact ---------- */

.contact-page { padding: 40px 0 64px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: start;
}

.facts { margin: 8px 0 0; }

.facts div {
  display: grid;
  grid-template-columns: minmax(8.5em, 12em) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bo-line);
}

.facts dt { color: var(--bo-muted); }

.facts dd { margin: 0; }

.facts a { color: var(--bo-ink); }

.facts a,
.direct a,
.site-footer p > a { display: inline-flex; align-items: center; min-height: 44px; }

.facts div { align-items: center; }

.wechat {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-r-md);
  background: var(--bo-white);
}

.wechat img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  background: var(--bo-deep);
}

.contact-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--bo-r-lg);
  box-shadow: 0 24px 60px rgba(9, 26, 42, 0.14);
}

.contact-photo { display: block; width: 100%; object-fit: cover; }

/* water along the bottom edge of a photo */
.contact-figure-sea,
.photo-sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background: var(--bo-swell-white) 0 100% / 360px 48px repeat-x;
  animation: bo-swell-x 12s linear infinite;
}

/* ---------- Forms ---------- */

.field { position: relative; }

form label { display: block; margin: 16px 0 6px; font-size: 14px; }

.field:has(:required) > label::after { content: " *"; color: var(--bo-cobalt); }

form input,
form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bo-line-strong);
  border-bottom: 2px solid var(--bo-muted);
  border-radius: var(--bo-r-sm);
  background: var(--bo-white);
  color: var(--bo-ink);
  font: inherit;
  font-size: 16px;
  transition: border-color var(--bo-t-fast) var(--bo-ease), box-shadow var(--bo-t-fast) var(--bo-ease);
}

form input { min-height: 46px; }

form textarea { display: block; min-height: 140px; resize: vertical; }

form input:hover,
form textarea:hover { border-color: var(--bo-wave); }

form input:focus,
form textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--bo-cobalt);
  box-shadow: 0 0 0 4px rgba(134, 210, 238, 0.4);
}

/* waterline: a ripple runs along the bottom of the focused field */
.field::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 6px;
  background: var(--bo-ripple-cobalt) 0 0 / 14px 6px repeat-x;
  opacity: 0;
  transition: opacity var(--bo-t-mid) var(--bo-ease);
  pointer-events: none;
}

.field:focus-within::after { opacity: 0.8; animation: bo-ripple 1.8s linear infinite; }

form [aria-invalid="true"] { border-color: var(--bo-ink); box-shadow: inset 0 0 0 1px var(--bo-ink); }

form [aria-invalid="true"]:focus { border-color: var(--bo-ink); box-shadow: inset 0 0 0 1px var(--bo-ink), 0 0 0 4px rgba(134, 210, 238, 0.4); }

form .btn { margin-top: 18px; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-status:empty { display: none; }

.form-status {
  position: relative;
  margin-top: 12px;
  padding: 12px 14px 12px 34px;
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-r-sm);
  background: var(--bo-paper);
  color: var(--bo-ink);
}

/* status marker: sonar while sending, still dot afterwards */
.form-status::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bo-cobalt);
}

.form-status[data-state="pending"]::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--bo-cobalt);
  animation: bo-sonar 1.6s ease-out infinite;
}

.form-status[data-state="ok"] { background: var(--bo-mist); border-color: var(--bo-cyan); }

.form-status[data-state="err"] { background: var(--bo-white); border-color: var(--bo-ink); }

.form-status[data-state="err"]::before { background: var(--bo-ink); }

.direct { margin-top: 12px; }

/* ---------- Footer: the deep ---------- */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 0 72px;
  color: var(--bo-foam);
  background: linear-gradient(180deg, var(--bo-deep) 0%, var(--bo-abyss) 100%);
}

/* the link column takes the width of its labels, so a long label never wraps beside the other two columns */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) auto minmax(0, 1fr); gap: 32px; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
}

.site-footer .bo-wordmark {
  color: var(--bo-white);
  background: linear-gradient(100deg, var(--bo-white) 0%, var(--bo-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-footer .bo-wordmark::after { background-image: var(--bo-ripple-cyan); }

.site-footer a { color: var(--bo-white); }

.footer-companies { margin-top: 12px; }

.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 28px; align-content: start; justify-items: start; }

.footer-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}

.footer-nav a::after { background-image: var(--bo-ripple-cyan); bottom: 4px; }

@media (min-width: 981px) {
  .footer-nav a { white-space: nowrap; }
}

.newsletter h2 { font-size: 1.25rem; margin-bottom: 8px; color: var(--bo-white); }

.newsletter label { color: var(--bo-foam); }

.newsletter .field:has(:required) > label::after { color: var(--bo-cyan); }

.newsletter input {
  border-color: rgba(184, 220, 233, 0.55);
  border-bottom-color: var(--bo-mist);
  background: rgba(255, 255, 255, 0.06);
  color: var(--bo-white);
}

.newsletter input:hover { border-color: var(--bo-cyan); }

.newsletter input:focus { border-color: var(--bo-cyan); box-shadow: 0 0 0 4px rgba(134, 210, 238, 0.28); }

.newsletter .field::after { background-image: var(--bo-ripple-cyan); }

.newsletter [aria-invalid="true"] { border-color: var(--bo-white); box-shadow: inset 0 0 0 1px var(--bo-white); }

.newsletter [aria-invalid="true"]:focus { border-color: var(--bo-white); box-shadow: inset 0 0 0 1px var(--bo-white), 0 0 0 4px rgba(134, 210, 238, 0.28); }

.newsletter .form-status { background: rgba(255, 255, 255, 0.08); border-color: rgba(184, 220, 233, 0.35); color: var(--bo-white); }

.newsletter .form-status::before { background: var(--bo-cyan); }

.newsletter .form-status[data-state="pending"]::after { border-color: var(--bo-cyan); }

.newsletter .form-status[data-state="ok"] { background: rgba(134, 210, 238, 0.2); border-color: var(--bo-cyan); }

.newsletter .form-status[data-state="err"] { background: rgba(255, 255, 255, 0.08); border-color: var(--bo-white); }

.newsletter .form-status[data-state="err"]::before { background: var(--bo-white); }

.footer-base {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 220, 233, 0.18);
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(184, 220, 233, 0.55);
  border-radius: var(--bo-r-pill);
  background: transparent;
  color: var(--bo-foam);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--bo-t-fast) var(--bo-ease), color var(--bo-t-fast) var(--bo-ease);
}

.motion-toggle[hidden] { display: none; }

.motion-toggle:hover { border-color: var(--bo-cyan); color: var(--bo-white); }

.motion-toggle-icon {
  width: 28px;
  height: 6px;
  background: var(--bo-ripple-cyan) 0 0 / 14px 6px repeat-x;
  animation: bo-ripple 1.8s linear infinite;
}

html:not(.bo-still) .motion-toggle .when-still,
html.bo-still .motion-toggle .when-moving { display: none; }

/* the visitor stopped the water: every wave holds its frame, hover feedback still works */
html.bo-still *,
html.bo-still *::before,
html.bo-still *::after { animation-play-state: paused !important; }

/* entrances are not waves: with the water stopped they finish at once, so nothing waits half-drawn */
html.bo-still .tab-panel,
html.bo-still .details-body,
html.bo-still .site-nav { animation: none !important; }

html.bo-still { scroll-behavior: auto; }

html.bo-still.bo-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }

/* the boot gate's way out is a timer, not motion: it keeps running */
html.bo-still[data-boot="pending"] body { animation-play-state: running !important; }

/* ---------- 404 ---------- */

.lost-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 72px 0 190px;
  text-align: center;
}

.lost-inner .bo-wave-logo { width: 128px; height: 128px; margin-bottom: 10px; }

.lost-inner .btn { margin-top: 22px; }

/* ---------- Reveal on scroll (only when js/site.js is running) ---------- */

html.bo-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--bo-t-slow) var(--bo-ease), transform var(--bo-t-slow) var(--bo-ease);
}

html.bo-reveal [data-reveal].is-in { opacity: 1; transform: none; }

html.bo-reveal .matrix-card[data-reveal].is-in:hover,
html.bo-reveal .menu-tile[data-reveal].is-in:hover { transform: translateY(-2px); }

/* bands that are off screen stop animating */
.bo-paused,
.bo-paused *,
.bo-paused *::before,
.bo-paused *::after { animation-play-state: paused !important; }

/* zh-TW and English wait for js/site.js so the page never flashes the wrong language.
   If that script never arrives, the page shows itself after 2.5s instead of staying blank. */
html[data-boot="pending"] body { visibility: hidden; animation: bo-boot 0s linear 2.5s forwards; }

@keyframes bo-boot { to { visibility: visible; } }

/* ---------- Narrow screens ---------- */

@media (max-width: 980px) {
  .header-tools { display: contents; }

  .nav-toggle {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--bo-line-strong);
    border-radius: var(--bo-r-sm);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--bo-t-fast) var(--bo-ease), border-color var(--bo-t-fast) var(--bo-ease);
  }

  .header-bar { flex-wrap: wrap; }

  .brand { margin-right: auto; }

  /* the open menu is part of the same pane of glass; it scrolls by itself on a short screen */
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 4;
    max-height: calc(100vh - var(--bo-header-h) - 24px);
    max-height: calc(100dvh - var(--bo-header-h) - 24px);
    overflow-y: auto;
    padding: 4px 0 12px;
    border-top: 1px solid rgba(18, 44, 64, 0.1);
  }

  .nav-toggle-input:checked ~ .site-nav {
    display: flex;
    animation: bo-rise var(--bo-t-mid) var(--bo-ease);
  }

  /* with the menu open the glass thickens, so the entries read over any band */
  .site-header:has(.nav-toggle-input:checked) { background: rgba(255, 255, 255, 0.9); }

  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header:has(.nav-toggle-input:checked) { background: rgba(255, 255, 255, 0.96); }
  }

  /* the menu is a scroll box, so the focus ring is drawn inside each entry instead of being cut at its edge */
  .site-nav a:focus-visible { outline-offset: -2px; }

  .site-nav a,
  .site-nav .btn { width: 100%; font-size: 16px; }

  .site-nav a:not(.btn) { min-height: 46px; padding: 0 4px; }

  .nav-short { display: none; }

  .nav-long { display: inline; }

  .site-nav a:not(.btn)::after { left: 4px; right: auto; width: 56px; bottom: 6px; }

  .site-nav .btn { min-height: 44px; margin: 8px 0 0; }

  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .school-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* three small tiles in a row: a taller picture, so the name band leaves the building in view */
  .campus-tile img { aspect-ratio: 4 / 3; }

  .hero-grid,
  .matrix-grid,
  .app-grid,
  .principles,
  .case-grid,
  .knowledge-list,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .hero-grid { padding-bottom: 150px; }

  /* the voyage line turns vertical */
  .process-list { grid-template-columns: 1fr; gap: 0; }

  .process-list::before { display: none; }

  .process-list li { padding: 0 0 24px 64px; }

  .process-list li::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 46px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--bo-wave), var(--bo-line));
  }

  .process-list li:last-child::before { display: none; }

  .process-list .bo-bubble { position: absolute; left: 0; top: 0; margin: 0; }

  .process-list .card-title { padding-top: 10px; }

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

  .training-mark { display: none; }

  /* copy runs the full width here, so the current lines step aside */
  .bo-panel > .bo-currents,
  .bo-surface > .bo-currents { display: none; }
}

@media (max-width: 760px) {
  .wrap,
  .wrap.narrow { width: min(1120px, calc(100% - 32px)); }

  .section { padding: 52px 0 60px; }

  .hero-grid { padding: 32px 0 118px; }

  .closing-inner { padding: 84px 0 132px; }

  .bo-crest { height: 40px; }

  .bo-sea { height: 84px; }

  .bo-swell { height: 40px; }

  .bo-swell.to-deep { height: 52px; }

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

  .actions .btn,
  .app-actions .btn,
  .training-card .btn,
  .contact-form .btn,
  .offer .btn { width: 100%; }

  .offer { padding: 20px; }

  .menu-grid,
  .entry-list,
  .campus-grid { grid-template-columns: 1fr; }

  .campus-tile img { aspect-ratio: 3 / 2; }

  .school-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .school-name { font-size: 1rem; }

  .menu-tile,
  .entry { min-height: 84px; padding: 14px 16px; }

  .training-copy { padding: 36px 22px 120px; }

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

  .facts div { grid-template-columns: 1fr; gap: 2px; }

  .lost-inner { padding: 56px 0 140px; }

  .footer-base { justify-content: flex-start; }
}

/* phones: the menu button keeps its three waves and drops the word, so the wordmark fits beside the emblem */
@media (max-width: 480px) {
  .header-bar { gap: 8px; }

  .nav-toggle { width: 44px; padding: 0; }

  .nav-toggle-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

  .brand { gap: 7px; }

  .brand .bo-wordmark { font-size: 16px; }

  /* two marks side by side: a lower row, and a wide mark stops short of the plate's edge by a ninth of its own width
     on each side (the plate's 9px of padding is part of that room), the widest clear space these institutions ask for */
  .school-wall { gap: 6px; }

  .school-mark { grid-template-rows: minmax(40px, auto) auto; padding: 14px 9px 12px; }

  .school-mark img { max-width: min(144px, calc((100% + 18px) / 1.222)); max-height: 40px; }
}

@media (max-width: 374px) {
  .brand { gap: 6px; }

  .brand .bo-wordmark { font-size: 15px; }
}

/* narrower than this, a mark in a two-column wall would be smaller than its institution allows:
   one column, and each mark has the room for the size the page states */
@media (max-width: 359px) {
  .school-wall { grid-template-columns: 1fr; }

  .school-mark { grid-template-rows: minmax(52px, auto) auto; }

  .school-mark img { max-width: 100%; max-height: 52px; }
}

@media (max-width: 345px) {
  .brand .bo-wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* above the menu breakpoint the checkbox has no job: it leaves the tab order */
@media (min-width: 981px) {
  .nav-toggle-input { display: none; }
}

/* Windows high contrast: selection and button edges no longer depend on fills or shadows */
@media (forced-colors: active) {
  .btn,
  .app-tabs button,
  .nav-toggle,
  .matrix-card,
  .motion-toggle { border: 1px solid ButtonText; }

  /* the bar is solid: system colours do not blend with what scrolls under glass */
  .site-header,
  .site-header.is-scrolled { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .site-header:has(.nav-toggle-input:checked) { background: Canvas; }

  .lang::before { display: none; }

  .lang-thumb,
  .btn::before { display: none; }

  .lang a[aria-current="true"],
  .app-tabs button[aria-selected="true"] {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  /* an institution's mark is drawn for a white field: it keeps one when the system repaints the page */
  .school-mark img { forced-color-adjust: none; background: var(--bo-white); outline: 6px solid var(--bo-white); }
}

@media print {
  .bo-currents,
  .bo-sea,
  .bo-crest,
  .bo-swell,
  .header-tide,
  .bo-wave-logo-pulse,
  .photo-sea,
  main > :first-child::before { display: none !important; }

  /* a fixed bar would print on every sheet */
  .site-header,
  .site-header.is-scrolled { position: static; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .site-header:has(.nav-toggle-input:checked) { background: none; }

  html.bo-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .btn:hover,
  .btn:active,
  .matrix-card:hover,
  .matrix-card:active,
  .menu-tile:hover,
  .menu-tile:active,
  .entry:hover,
  .entry:active,
  .campus-tile:hover img { transform: none; }

  html.bo-reveal [data-reveal] { opacity: 1; transform: none; }

  /* the boot gate's way out is a timer, not motion: it stays */
  html[data-boot="pending"] body { animation: bo-boot 0s linear 2.5s forwards !important; }
}
