/* Procella IMMERSIO Academy
   Colours from procella_tokens_v001.002.000.css (Brand Kit v001.002.000).
   Immersio page style: blue-black grounds with Procella-blue glow. */

:root {
  --procella-blue: #1A9AE9;
  --procella-navy: #17188A;
  --procella-near-black: #161718;
  --procella-white: #FFFFFF;
  --procella-sky-60: #74C3F2;
  --procella-sky-40: #9ED7F6;
  --ui-base: #0A0A0A;
  --ui-surface: #161718;
  --ui-raised: #202123;
  --ui-line: #343739;
  --ui-stroke: #61656A;
  --success: #20693D;

  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --glow: 0 0 0 1px rgba(26,154,233,.55), 0 0 40px rgba(26,154,233,.45), 0 0 120px rgba(26,154,233,.25);
  --glow-strong: 0 0 0 2px #74C3F2, 0 0 30px rgba(116,195,242,.8), 0 0 90px rgba(26,154,233,.6);
  --radius-l: 22px;
  --radius-m: 14px;
  --radius-s: 10px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--ui-base);
  color: var(--procella-white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--procella-sky-60); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .005em;
  margin: 0;
}
.display .lit { color: var(--procella-blue); } /* logo blue, same as procella.audio/immersio */
.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 999px;
  padding: 15px 28px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--procella-blue); color: var(--procella-white); box-shadow: 0 0 0 0 rgba(26,154,233,0); }
.btn-primary:hover { background: #3AB0FF; box-shadow: var(--glow-strong); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--procella-white); box-shadow: inset 0 0 0 2px var(--ui-stroke); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--procella-sky-60), 0 0 28px rgba(116,195,242,.45); color: var(--procella-white); background: rgba(26,154,233,.18); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 18px 0 auto 0; z-index: 50;
  pointer-events: none;
}
.topbar-inner {
  pointer-events: auto;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 22px;
  padding: 12px 14px 12px 22px;
  border-radius: 20px;
  background: rgba(32,33,35,.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
@media (max-width: 1160px) { .topbar-inner { margin: 0 16px; } }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--font-display); font-size: 24px; letter-spacing: .04em; line-height: 1; padding-top: 3px; }
.topbar nav { display: flex; gap: 6px; margin-left: auto; }
.topbar nav a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 14px; border-radius: 999px;
  transition: background .15s, box-shadow .15s;
}
.topbar nav a:hover { background: var(--procella-blue); box-shadow: 0 0 22px rgba(26,154,233,.7); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 6px 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: 13px;
}
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--procella-navy); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 17px; overflow: hidden;
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip button { background: none; border: 0; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.user-chip button:hover { background: var(--procella-blue); }
.preview-flag { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--procella-sky-60); }
@media (max-width: 760px) {
  .topbar nav { display: none; }
  .user-chip .name { display: none; }
  .brand span { font-size: 20px; }
  .user-chip { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 140px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.1) 35%, rgba(10,10,10,.85) 72%, var(--ui-base) 100%);
}
.hero-mark { width: min(420px, 62vw); margin: 0 auto 40px; }
.hero { align-items: stretch; }
.hero .wrap { text-align: center; display: flex; flex-direction: column; min-height: calc(100svh - 204px); }
.hero .glow-title { margin: auto; padding-bottom: 6vh; }
.hero .hero-row { margin-top: 0; }
/* Hero title, built on the proportions of IMMERSIO.svg, upside down:
   - main line plays the role of IMMERSIO, sub line the role of PROCELLA
   - sub line cap height = 0.376 x main (26.7 / 71.1 in the wordmark)
   - gap from main baseline to sub cap top = 0.28 x main cap height
   - fill #F0FCFF, one white outer glow at 75%, Gaussian sigma = 0.07 x main cap height
   Ethnocentric cap height = 0.669 em. Licence: commercial, confirm before go-live. */
@font-face {
  font-family: "Ethnocentric";
  src: url("../fonts/ethnocentric-rg.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
.glow-title {
  --s: clamp(26px, 8vw, 92px);
  margin: 0 auto;
  font-family: "Ethnocentric", var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  color: #F0FCFF;
  line-height: 1;
  text-shadow: 0 0 calc(var(--s) * .094) rgba(255,255,255,.75);
}
.glow-title span { display: block; white-space: nowrap; }
.glow-title .gt-main { font-size: var(--s); letter-spacing: -0.02em; }
.glow-title .gt-sub { font-size: calc(var(--s) * .385); margin-top: calc(var(--s) * -0.017); letter-spacing: .02em; }
.hero-row { display: grid; justify-items: center; gap: 26px; margin-top: 44px; }
.hero-copy { max-width: 56ch; font-size: 17px; margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.progress-pill { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.progress-pill .bar { width: 120px; height: 6px; border-radius: 6px; background: var(--ui-line); overflow: hidden; }
.progress-pill .bar i { display: block; height: 100%; width: 0; background: var(--procella-sky-60); box-shadow: 0 0 12px var(--procella-sky-60); transition: width .5s ease; }
@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: center; }
}

/* ---------- Theatre (player) ---------- */
.theatre {
  position: relative;
  overflow-x: clip;
  padding: 120px 0 120px;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(26,154,233,.22), transparent 70%),
    radial-gradient(40% 40% at 85% 90%, rgba(23,24,138,.45), transparent 70%),
    var(--ui-base);
}
.theatre-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.theatre-head h2 { font-size: clamp(48px, 6.5vw, 96px); }
.theatre-head p { max-width: 46ch; margin: 0; }

.stage {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(300px, 420px) minmax(280px, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.stage > * { min-width: 0; }

/* chapter rail */
.rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: ch; }
.rail button {
  position: relative;
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px;
  background: var(--ui-surface);
  border: 0; border-radius: var(--radius-m);
  padding: 12px 14px 12px 12px;
  box-shadow: inset 0 0 0 1px var(--ui-line);
  transition: background .15s, box-shadow .15s, transform .15s;
}
.rail .num { font-family: var(--font-display); font-size: 30px; line-height: 1; text-align: center; padding-top: 3px; }
.rail .t { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.rail .tick {
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--ui-stroke);
  display: grid; place-items: center;
}
.rail .tick svg { width: 12px; height: 12px; opacity: 0; }
.rail .done .tick { background: var(--procella-sky-60); box-shadow: none; }
.rail .done .tick svg { opacity: 1; }
.rail button:hover {
  background: var(--procella-blue);
  box-shadow: 0 0 0 2px var(--procella-sky-60), 0 0 34px rgba(26,154,233,.75);
  transform: translateX(4px);
}
.rail button[aria-current="step"] {
  background: linear-gradient(120deg, var(--procella-blue), var(--procella-navy));
  box-shadow: 0 0 0 2px var(--procella-white), 0 0 40px rgba(26,154,233,.85);
}
.rail button[aria-current="step"] .tick,
.rail button:hover .tick { box-shadow: inset 0 0 0 2px var(--procella-white); }
.rail .done button[aria-current="step"] .tick, .rail .done button:hover .tick { background: var(--procella-white); }
.rail .done button[aria-current="step"] .tick svg path, .rail .done button:hover .tick svg path { stroke: var(--procella-blue); }

/* vertical screen */
.screen-wrap { position: relative; }
.screen {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #000;
  box-shadow: var(--glow);
}
.screen::before {
  /* the glow spill behind the screen, like the hero's lit screen */
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(closest-side, rgba(26,154,233,.55), transparent);
  filter: blur(30px);
}
.screen-wrap::before {
  content: ""; position: absolute; inset: -12% -22%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(26,154,233,.35), transparent 75%);
  filter: blur(20px);
}
.screen { z-index: 1; }
.screen video, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.screen.swap { animation: swap .45s ease; }
@keyframes swap { from { opacity: .2; transform: scale(.985); } to { opacity: 1; transform: none; } }

.placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; text-align: center; gap: 10px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(10,10,10,.2), rgba(10,10,10,.9)),
    repeating-linear-gradient(90deg, rgba(116,195,242,.06) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(116,195,242,.06) 0 1px, transparent 1px 34px),
    radial-gradient(80% 60% at 50% 30%, rgba(26,154,233,.55), rgba(23,24,138,.35) 60%, #000 100%);
}
.placeholder .big { font-family: var(--font-display); font-size: clamp(110px, 16vw, 190px); line-height: .8; color: var(--procella-white); text-shadow: 0 0 40px rgba(26,154,233,.9); }
.placeholder .ttl { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.placeholder .note { font-size: 13px; max-width: 26ch; margin: 6px auto 0; }

.screen-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; }
.step-nav { display: flex; gap: 8px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--ui-raised); display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px var(--ui-stroke);
  transition: background .15s, box-shadow .15s;
}
.icon-btn:hover:not([disabled]) { background: var(--procella-blue); box-shadow: 0 0 0 2px var(--procella-sky-60), 0 0 26px rgba(26,154,233,.8); }
.icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.icon-btn svg { width: 18px; height: 18px; }
.counter { font-family: var(--font-display); font-size: 26px; letter-spacing: .03em; padding-top: 3px; }

/* chapter info + wall schematic */
.info h3 { font-size: clamp(44px, 4.6vw, 72px); margin-bottom: 18px; }
.info .summary { font-size: 17px; max-width: 44ch; margin: 0 0 26px; }
.info .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.btn-watched[aria-pressed="true"] { background: var(--procella-white); color: var(--procella-near-black); }
.btn-watched[aria-pressed="true"]:hover { background: var(--procella-sky-40); box-shadow: 0 0 30px rgba(158,215,246,.8); }

.wall-card {
  margin: 0;
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, rgba(26,154,233,.16), rgba(22,23,24,.9) 55%), var(--ui-surface);
  box-shadow: inset 0 0 0 1px var(--ui-line);
  padding: 22px 22px 18px;
}
.wall-card .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; margin-bottom: 10px; }
.wall-card .cap b { font-weight: 600; }
#wall { width: 100%; height: auto; overflow: visible; margin-top: 30px; }
#wall .layer { opacity: 0; transition: opacity .5s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
#wall .layer.built { opacity: .55; }
#wall .layer.current { opacity: 1; filter: drop-shadow(0 0 6px rgba(116,195,242,.9)); }
#wall .layer.up { transform: translateY(-26px); }
.legend { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.legend i { height: 5px; border-radius: 4px; background: var(--ui-line); transition: background .3s, box-shadow .3s; }
.legend i.built { background: var(--procella-blue); }
.legend i.current { background: var(--procella-sky-60); box-shadow: 0 0 10px var(--procella-sky-60); }

@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(280px, 380px) 1fr; }
  .rail { grid-column: 1 / -1; grid-template-columns: repeat(7, minmax(180px, 1fr)); overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; }
  .rail li { scroll-snap-align: start; }
  .rail button:hover { transform: translateY(-3px); }
}
@media (max-width: 720px) {
  .theatre { padding: 96px 0 80px; }
  .stage { grid-template-columns: 1fr; }
  .screen-wrap { max-width: 400px; width: 100%; margin: 0 auto; }
  .rail { grid-template-columns: repeat(7, 72%); }
}


/* ---------- Resources ---------- */
.resources { padding: 120px 0 110px; background: radial-gradient(55% 50% at 80% 10%, rgba(26,154,233,.18), transparent 70%), var(--ui-base); overflow-x: clip; }
.res-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.res-head h2 { font-size: clamp(48px, 6.5vw, 96px); }
.res-head p { max-width: 46ch; margin: 0; }

.flyer-block { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 48px; align-items: center; margin-bottom: 80px; }
.flyer-stage {
  --pw: clamp(104px, calc((100vw - 2 * var(--gutter)) / 3.05), 280px);
  width: calc(var(--pw) * 3); max-width: 100%;
  margin: 0 auto;
  perspective: 2200px;
}
.flyer {
  position: relative; display: block; border: 0; padding: 0; background: none; cursor: pointer;
  width: calc(var(--pw) * 3); height: calc(var(--pw) * 1.4467);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.6));
}
.flyer > span { position: absolute; top: 0; width: var(--pw); height: 100%; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.65,.05,.25,1); }
.flyer .fl-mid { left: var(--pw); }
.flyer .fl-left { left: 0; transform-origin: right center; }
.flyer .fl-right { left: calc(var(--pw) * 2); transform-origin: left center; }
.flyer .face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 2px; }
.flyer .face.back { transform: rotateY(180deg); }
.flyer-stage[data-state="closed"] .fl-left { transform: rotateY(180deg) translateZ(-3px); }
.flyer-stage[data-state="closed"] .fl-right,
.flyer-stage[data-state="half"] .fl-right { transform: rotateY(-180deg) translateZ(-1.5px); }
.flyer-stage[data-state="half"] .fl-left,
.flyer-stage[data-state="open"] .fl-left,
.flyer-stage[data-state="open"] .fl-right { transform: rotateY(0deg); }
.flyer-stage[data-state="closed"] .flyer { transform: rotateX(6deg) rotateY(-10deg); }
.flyer:hover { filter: drop-shadow(0 0 2px #74C3F2) drop-shadow(0 0 30px rgba(26,154,233,.85)) drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.flyer-stage[data-state="closed"] .flyer:hover { transform: rotateX(3deg) rotateY(-4deg) scale(1.03); }
.flyer-info h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 3.6vw, 52px); line-height: .95; margin: 0 0 14px; text-transform: uppercase; }
.flyer-info p { margin: 0 0 24px; max-width: 40ch; }
.flyer-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.catalogs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.catalog { border-radius: var(--radius-l); background: var(--ui-surface); box-shadow: inset 0 0 0 1px var(--ui-line); padding: 18px; transition: box-shadow .2s; }
.catalog:hover { box-shadow: 0 0 0 2px var(--procella-sky-60), 0 0 44px rgba(26,154,233,.55); }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1; margin: 0; text-transform: uppercase; padding-top: 4px; }
.cat-full { border: 0; border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600; background: var(--ui-raised); box-shadow: inset 0 0 0 2px var(--ui-stroke); transition: background .15s, box-shadow .15s; }
.cat-full:hover { background: var(--procella-blue); box-shadow: 0 0 0 2px var(--procella-sky-60), 0 0 24px rgba(26,154,233,.8); }
.cat-frame { border-radius: var(--radius-m); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.cat-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cat-dialog { width: min(1400px, 96vw); height: min(900px, 92vh); padding: 0; border: 0; border-radius: var(--radius-l); background: var(--ui-surface); color: var(--procella-white); box-shadow: 0 0 0 1px var(--ui-line), 0 0 80px rgba(26,154,233,.35); overflow: hidden; }
.cat-dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.cat-dialog[open] { display: flex; flex-direction: column; }
.cat-dialog-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 12px 22px; }
.cat-dialog iframe { flex: 1; width: 100%; border: 0; background: #000; }
@media (max-width: 960px) {
  .flyer-block { grid-template-columns: 1fr; gap: 32px; }
  .flyer-info { text-align: center; } .flyer-info p { margin-left: auto; margin-right: auto; } .flyer-actions { justify-content: center; }
  .catalogs { grid-template-columns: 1fr; }
}

/* ---------- Finished room ---------- */
.result {
  position: relative; min-height: 78vh; display: grid; align-items: center;
  overflow: hidden; isolation: isolate; padding: 120px 0;
}
.result img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.result::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,10,.95) 0%, rgba(10,10,10,.75) 45%, rgba(10,10,10,.1) 100%), linear-gradient(0deg, var(--ui-base), transparent 30%), linear-gradient(180deg, var(--ui-base), transparent 25%); }
.result h2 { font-size: clamp(52px, 7vw, 110px); max-width: 11ch; margin-bottom: 26px; }
.result p { max-width: 46ch; margin: 0 0 30px; font-size: 17px; }

/* ---------- Support ---------- */
.support { padding: 110px 0 120px; background: radial-gradient(50% 60% at 15% 0%, rgba(23,24,138,.5), transparent 70%), var(--ui-base); }
.support-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.support h2 { font-size: clamp(48px, 5.6vw, 84px); margin-bottom: 18px; }
.support p { max-width: 40ch; margin: 0; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.person {
  border-radius: var(--radius-l); padding: 22px;
  background: var(--ui-surface); box-shadow: inset 0 0 0 1px var(--ui-line);
  display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center;
  transition: box-shadow .18s, background .18s;
}
.person:hover { background: linear-gradient(140deg, var(--procella-blue), var(--procella-navy)); box-shadow: 0 0 0 2px var(--procella-sky-60), 0 0 44px rgba(26,154,233,.6); }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.person h4 { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.25; }
.person .role { font-size: 13px; margin: 0 0 8px; }
.person .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.person .links a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background .15s, color .15s; }
.person .links a:hover { background: var(--procella-white); color: var(--procella-near-black); }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .people { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ui-line); padding: 36px 0 44px; font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 54px; width: auto; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--procella-sky-60); }

/* ---------- Sign-in ---------- */
.signin {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(320px, 520px) 1fr;
  isolation: isolate; overflow: hidden;
}
.signin-bg { position: absolute; inset: 0; z-index: -2; }
.signin-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.signin::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ui-base) 0%, rgba(10,10,10,.92) 30%, rgba(10,10,10,.25) 70%, rgba(10,10,10,.5) 100%); }
.signin-panel { padding: 48px clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.signin-panel .brand img { height: 46px; }
.signin-panel > h1 { font-size: clamp(56px, 7vw, 96px); }
.signin-panel .lede { margin: 0; max-width: 40ch; }
.signin-art { display: grid; place-items: center; padding: 40px; }
.signin-art img { width: min(620px, 90%); filter: drop-shadow(0 0 30px rgba(26,154,233,.7)); }
.auth-box { width: 100%; max-width: 420px; }
.mock-auth { display: grid; gap: 10px; }
.mock-auth .provider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: var(--radius-s); padding: 14px 18px;
  background: var(--ui-raised); box-shadow: inset 0 0 0 2px var(--ui-stroke);
  font-weight: 600; font-size: 15px;
  transition: background .15s, box-shadow .15s;
}
.mock-auth .provider:hover { background: var(--procella-blue); box-shadow: 0 0 0 2px var(--procella-sky-60), 0 0 30px rgba(26,154,233,.75); }
.mock-auth .provider svg { width: 20px; height: 20px; }
.mock-auth .or { display: flex; align-items: center; gap: 12px; font-size: 12px; margin: 6px 0; }
.mock-auth .or::before, .mock-auth .or::after { content: ""; flex: 1; height: 1px; background: var(--ui-line); }
.mock-auth label { font-size: 13px; font-weight: 600; }
.mock-auth input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-s); border: 0;
  background: var(--ui-surface); color: var(--procella-white); font: inherit;
  box-shadow: inset 0 0 0 2px var(--ui-stroke);
}
.mock-auth input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--procella-sky-60), 0 0 22px rgba(26,154,233,.5); }
.mock-auth .btn { justify-content: center; border-radius: var(--radius-s); }
.auth-note { font-size: 13px; margin: 0; max-width: 42ch; }
.auth-note a { font-weight: 600; }
@media (max-width: 900px) {
  .signin { grid-template-columns: 1fr; }
  .signin-art { display: none; }
  .signin::after { background: linear-gradient(180deg, rgba(10,10,10,.6), var(--ui-base) 55%); }
}

/* multi-clip chapters: small part indicator over the video */
.clip-part {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(10,10,10,.7); box-shadow: inset 0 0 0 1px rgba(116,195,242,.6);
  pointer-events: none;
}

/* ---------- Academy hub ---------- */
.hub-hero .glow-title { --s: clamp(20px, 6vw, 74px); }
.tracks { padding: 110px 0 120px; background: radial-gradient(55% 45% at 50% 0%, rgba(26,154,233,.2), transparent 70%), var(--ui-base); }
.tracks-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.tracks-head h2 { font-size: clamp(48px, 6.5vw, 96px); }
.tracks-head p { max-width: 46ch; margin: 0; }
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.track {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-radius: var(--radius-l); overflow: hidden;
  background: var(--ui-surface); box-shadow: inset 0 0 0 1px var(--ui-line);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.track-media { position: relative; display: block; aspect-ratio: 4 / 3.3; overflow: hidden; background: #000; }
.track-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .5s ease; }
.track-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--ui-surface) 100%); transition: background .22s; }
.rd-art { background: radial-gradient(70% 60% at 50% 40%, rgba(26,154,233,.35), #000 80%); }
.rd-art svg { width: 100%; height: 100%; }
.track-body { display: flex; flex-direction: column; gap: 8px; padding: 6px 24px 26px; flex: 1; }
.track-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.track-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--ui-stroke); }
.track.live .track-status i { background: var(--procella-sky-60); box-shadow: 0 0 10px var(--procella-sky-60); }
.track-title { font-family: var(--font-display); font-size: clamp(40px, 3.8vw, 58px); line-height: .9; text-transform: uppercase; margin-top: 4px; }
.track-sub { font-weight: 600; font-size: 16px; }
.track-desc { font-size: 15px; line-height: 1.6; max-width: 40ch; }
.track-meta { font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 10px; }
.track-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.track-progress .bar { flex: 0 0 110px; height: 6px; border-radius: 6px; background: var(--ui-line); overflow: hidden; }
.track-progress .bar i { display: block; height: 100%; background: var(--procella-sky-60); box-shadow: 0 0 10px var(--procella-sky-60); }
.track-cta { align-self: flex-start; margin-top: 12px; padding: 13px 24px; border-radius: 999px; background: var(--procella-blue); font-weight: 600; font-size: 15px; transition: background .2s, box-shadow .2s; }
.track.live:hover, .track.live:focus-visible {
  transform: translateY(-6px);
  background: linear-gradient(170deg, rgba(26,154,233,.35), var(--ui-surface) 60%);
  box-shadow: 0 0 0 2px var(--procella-sky-60), 0 0 60px rgba(26,154,233,.6);
}
.track.live:hover .track-media img { transform: scale(1.05); }
.track.live:hover .track-cta { background: #3AB0FF; box-shadow: var(--glow-strong); }
.track.soon .track-media img, .track.soon .rd-art svg { filter: grayscale(.6) brightness(.65); }
.track.soon:hover { box-shadow: inset 0 0 0 1px var(--ui-stroke); }
@media (max-width: 980px) { .track-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* personal watermark over course videos */
.screen .wm {
  position: absolute; z-index: 2; max-width: 80%;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.38); text-shadow: 0 1px 2px rgba(0,0,0,.5);
  pointer-events: none; user-select: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: left 1.2s ease, top 1.2s ease;
}

/* Sign-in: full-bleed photo, soft dark fade behind the text */
.signin--team .signin-bg { position: fixed; inset: 0; }
.signin--team .signin-bg { overflow: hidden; }
.signin--team .signin-bg .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  opacity: 0; transform: scale(1.06); transition: opacity 1.8s ease, transform 9s linear; }
.signin--team .signin-bg .slide.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .signin--team .signin-bg .slide { transition: none; transform: none; } }
.signin--team::after { position: fixed; background:
  radial-gradient(120% 90% at 0% 50%, rgba(10,10,10,.92) 0%, rgba(10,10,10,.78) 28%, rgba(10,10,10,.45) 48%, rgba(10,10,10,.12) 68%, rgba(10,10,10,0) 82%),
  linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 70%, rgba(10,10,10,.35) 100%); }
@media (max-width: 900px) {
  .signin--team::after { background: linear-gradient(180deg, rgba(10,10,10,.45), var(--ui-base) 62%); }
}

.secured-by { margin: -12px 0 0; max-width: 420px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.6); }
.secured-by svg { width: 14px; height: 14px; color: var(--procella-blue); }
.secured-by strong { color: #fff; font-weight: 600; }


/* Copyright */
.footer-end { display: inline-flex; align-items: center; gap: 22px; }
.copyright { font-size: 13px; letter-spacing: .03em; color: rgba(255,255,255,.62); white-space: nowrap; }
.copyright--corner { position: fixed; right: 28px; bottom: 22px; margin: 0; z-index: 5; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
@media (max-width: 900px) { .copyright--corner { position: static; text-align: center; padding: 0 0 22px; } }

/* Nav bar: larger type */
.topbar-inner { max-width: 1280px; padding: 14px 18px 14px 26px; gap: 30px; }
.brand { gap: 16px; }
.brand img { height: 52px; }
.brand span { font-size: 36px; padding-top: 4px; }
.topbar nav { gap: 10px; }
.topbar nav a { font-size: 19px; font-weight: 600; padding: 11px 20px; }
.user-chip { font-size: 16px; gap: 12px; padding: 6px 7px 6px 20px; }
.user-chip .avatar { width: 40px; height: 40px; font-size: 20px; }
.user-chip button { font-size: 16px; padding: 9px 16px; }
@media (max-width: 1320px) { .topbar-inner { margin: 0 16px; } }
@media (max-width: 1100px) { .topbar nav a { font-size: 17px; padding: 10px 14px; } .user-chip .name { display: none; } }
@media (max-width: 760px) { .brand span { font-size: 24px; } .brand img { height: 40px; } }

/* Nav bar: one pill style for every item, equal spacing */
.topbar-inner { gap: 10px; }
.brand { margin-right: auto; }
.topbar nav { margin-left: 0; gap: 10px; }
.user-chip { background: none; padding: 0; gap: 10px; font-size: 19px; }
.topbar nav a, .user-chip .me, .user-chip button {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 600; line-height: 1; color: #fff;
  padding: 11px 20px; border-radius: 999px; background: transparent; border: 0; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.user-chip .me { padding: 5px 20px 5px 5px; }
.user-chip .me .name { font-size: inherit; }
.user-chip .avatar { width: 38px; height: 38px; font-size: 19px; background: rgba(26,154,233,.25); color: #fff; }
.topbar nav a:hover, .user-chip .me:hover, .user-chip button:hover,
.topbar nav a:focus-visible, .user-chip .me:focus-visible, .user-chip button:focus-visible {
  background: var(--procella-blue); box-shadow: 0 0 22px rgba(26,154,233,.7); outline: none;
}
.user-chip .me:hover .avatar { background: rgba(255,255,255,.22); }
@media (max-width: 1100px) { .topbar nav a, .user-chip button { font-size: 17px; padding: 10px 14px; } .user-chip .me .name { display: inline; } }
@media (max-width: 760px) { .user-chip .me .name { display: none; } .user-chip .me { padding: 4px; } }

/* IMMERSIO-style intro animation (same timing as procella.audio/immersio) */
@keyframes acTitleReveal { 0% { opacity: 0; transform: scale(1.12); filter: blur(16px); } 60% { opacity: 1; filter: blur(3px); } 100% { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes acBgZoom { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
@keyframes acNavReveal { 0% { opacity: 0; transform: translateY(-14px) scale(.985); } 70% { opacity: 1; transform: translateY(0) scale(1.015); } 100% { opacity: 1; transform: none; } }
@keyframes acFadeUp { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
.hero .glow-title { opacity: 0; animation: acTitleReveal 2s cubic-bezier(.2,.8,.2,1) .15s forwards; will-change: transform, filter, opacity; }
.hero .hero-bg img { transform-origin: center; animation: acBgZoom 3.5s cubic-bezier(.22,.61,.36,1) forwards; will-change: transform; }
.topbar-inner { opacity: 0; animation: acNavReveal 1.05s cubic-bezier(.16,1,.3,1) 1.4s forwards; }
.hero .hero-row { opacity: 0; animation: acFadeUp .9s cubic-bezier(.16,1,.3,1) 1.2s forwards; }
@media (prefers-reduced-motion: reduce) {
  .hero .glow-title, .hero .hero-bg img, .topbar-inner, .hero .hero-row { animation: none; opacity: 1; transform: none; filter: none; }
}

/* Bigger hero titles */
.glow-title { --s: clamp(26px, 7vw, 104px); }
.hub-hero .glow-title { --s: clamp(20px, 6.2vw, 88px); }
.hero .glow-title { align-self: center; max-width: none; }

/* Hub backdrop: Bentley home cinema, darkened, with a soft blue projector glow */
.hub-hero .hero-bg img { object-position: 60% 45%; filter: saturate(.85) brightness(.5) blur(1.5px); }
.hub-hero::after {
  background:
    radial-gradient(60% 45% at 50% 38%, rgba(26,154,233,.30) 0%, rgba(26,154,233,.10) 45%, rgba(10,10,10,0) 70%),
    radial-gradient(120% 90% at 50% 40%, rgba(10,10,10,0) 30%, rgba(10,10,10,.65) 85%),
    linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,.05) 30%, rgba(10,10,10,.75) 75%, var(--ui-base) 100%);
}

.topbar nav a, .user-chip .me, .user-chip button { white-space: nowrap; }
@media (max-width: 1280px) { .topbar nav a, .user-chip button { font-size: 17px; padding: 10px 14px; } .user-chip .me { font-size: 17px; } }

/* Procella Academy logo (v20261014c) */
.brand .brand-logo{height:70px;width:auto;display:block}
.topbar-inner{padding-top:8px;padding-bottom:8px}
.signin-panel .brand .brand-logo{height:118px}
@media (max-width:760px){.brand .brand-logo{height:50px}.signin-panel .brand .brand-logo{height:88px}}

/* Live track first on mobile (IMMERSIO sits in the middle on desktop) */
@media (max-width: 980px) { .track.live { order: -1; } }
