:root {
  --portal-bg: #070707;
  --portal-panel: #111112;
  --portal-panel-2: #171719;
  --portal-ink: #f6f3ed;
  --portal-body: #c4c1ba;
  --portal-dim: #81817d;
  --portal-line: rgba(255,255,255,.11);
  --portal-blue: #002FA7;
  --portal-blue-soft: #101d48;
  --portal-green: #56d89a;
  --portal-warm: #e9c77e;
  --portal-red: #f18484;
  --portal-max: 1180px;
  --portal-radius: 26px;
  --portal-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; scroll-behavior: smooth; }
body.portal-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 82% -12%, rgba(0,47,167,.24), transparent 67%),
    radial-gradient(700px 420px at -10% 36%, rgba(113,72,40,.12), transparent 70%),
    var(--portal-bg);
  color: var(--portal-ink);
  font-family: var(--portal-sans);
}

button, input, select, textarea { font: inherit; }
a { color: inherit; }
.portal-copy,
.portal-card p,
.portal-list li,
.portal-notice,
.portal-data-row small {
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}
.portal-heading,
.portal-hero h1,
.portal-section h2,
.portal-card h2,
.portal-card h3 { text-wrap: balance; }
.keep-tail { white-space: nowrap; }

.portal-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 11px max(22px, 4vw);
  border-bottom: 1px solid var(--portal-line);
  background: rgba(7,7,7,.82);
  backdrop-filter: blur(20px);
}
.portal-brand {
  flex: none;
  color: var(--portal-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
}
.portal-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.5vw, 30px);
}
.portal-links a {
  color: #aaa9a5;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.portal-links a:hover,
.portal-links a[aria-current="page"] { color: #fff; }
.portal-links .portal-login {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.06);
}
.portal-menu-button {
  display: none !important;
  width: 42px;
  min-width: 42px;
  height: 38px;
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: #131314;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.portal-shell {
  width: min(var(--portal-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 90px;
}
.portal-shell.narrow { width: min(780px, calc(100% - 40px)); }
.portal-hero {
  min-height: 420px;
  display: grid;
  align-content: center;
  max-width: 920px;
  padding: 56px 0 82px;
}
.portal-eyebrow {
  margin: 0 0 15px;
  color: #7997e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.portal-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: .98;
  letter-spacing: -.065em;
}
.portal-hero .portal-lead {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--portal-body);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}
.portal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #f5f1e9;
  color: #0b0b0b;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.portal-button:hover { transform: translateY(-1px); }
.portal-button.secondary {
  border: 1px solid var(--portal-line);
  background: #151516;
  color: #fff;
}
.portal-button.blue { background: var(--portal-blue); color: #fff; }
.portal-button.small { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 12px; }
.portal-button:disabled { opacity: .42; cursor: not-allowed; transform: none; }

.portal-section {
  padding: 76px 0;
  border-top: 1px solid var(--portal-line);
}
.portal-section-head {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}
.portal-section h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.portal-section-head p {
  margin: 0;
  color: var(--portal-body);
  line-height: 1.8;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.portal-card {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
  background: linear-gradient(145deg, #151516, #0d0d0e);
}
.portal-card.featured {
  border-color: rgba(0,47,167,.68);
  background: linear-gradient(145deg, #18213b, #0d1017 70%);
}
.portal-card.full { grid-column: 1 / -1; }
.portal-card.third { grid-column: span 4; }
.portal-card .portal-number {
  display: block;
  margin-bottom: 38px;
  color: #66686d;
  font-size: 11px;
  letter-spacing: .18em;
}
.portal-card h2,
.portal-card h3 {
  margin: 0;
  letter-spacing: -.035em;
}
.portal-card h2 { font-size: clamp(28px, 3vw, 42px); }
.portal-card h3 { font-size: 24px; }
.portal-card > p {
  margin: 14px 0 0;
  color: var(--portal-body);
  line-height: 1.75;
}
.portal-price {
  display: block;
  margin: 26px 0 4px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 850;
  letter-spacing: -.04em;
}
.portal-price small { color: var(--portal-dim); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.portal-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--portal-blue-soft);
  color: #a9beff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.portal-list {
  display: grid;
  gap: 12px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}
.portal-list li {
  position: relative;
  padding-left: 19px;
  color: #d2cfc8;
  font-size: 14px;
  line-height: 1.65;
}
.portal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portal-blue);
}
.portal-card .portal-actions { margin-top: 28px; }
.portal-note {
  margin-top: 18px;
  color: var(--portal-dim);
  font-size: 12px;
  line-height: 1.7;
}

.portal-steps { counter-reset: portal-step; }
.portal-step {
  grid-column: span 3;
  padding: 26px;
  border-top: 1px solid var(--portal-line);
}
.portal-step::before {
  counter-increment: portal-step;
  content: "0" counter(portal-step);
  display: block;
  margin-bottom: 34px;
  color: #6d7fae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.portal-step h3 { margin: 0; font-size: 18px; }
.portal-step p { margin: 10px 0 0; color: var(--portal-dim); font-size: 13px; line-height: 1.7; }

/* About: mixed-format selected work */
.portal-work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.portal-work-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.026), transparent 42%),
    var(--portal-panel-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.portal-work-feature {
  grid-column: span 8;
  grid-row: span 2;
}
.portal-work-side { grid-column: span 4; }
.portal-work-small { grid-column: span 4; }
.portal-work-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #0b0d12;
}
.portal-work-media::before,
.portal-work-media::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.portal-work-media::before {
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom right, #000, transparent 78%);
}
.portal-work-media::after {
  z-index: -1;
  width: 58%;
  aspect-ratio: 1;
  right: -8%;
  bottom: -55%;
  border: 1px solid rgba(125,157,236,.5);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(0,47,167,.08),
    0 0 0 70px rgba(0,47,167,.04);
}
.portal-work-media-video {
  min-height: clamp(310px, 35vw, 500px);
  background:
    radial-gradient(circle at 70% 35%, rgba(72,108,210,.28), transparent 24%),
    linear-gradient(140deg, #111b38, #08090d 64%);
}
.portal-work-media-square,
.portal-work-media-social { min-height: clamp(160px, 15vw, 214px); }
.portal-work-media-square {
  background:
    radial-gradient(circle at 30% 30%, rgba(233,199,126,.2), transparent 28%),
    linear-gradient(140deg, #2b2119, #0b0a0a 72%);
}
.portal-work-media-social {
  background:
    radial-gradient(circle at 72% 32%, rgba(241,132,132,.18), transparent 26%),
    linear-gradient(140deg, #291719, #0b090a 72%);
}
.portal-work-media-tile {
  min-height: clamp(190px, 18vw, 250px);
  background: linear-gradient(140deg, #141a28, #090a0d 72%);
}
.portal-work-drama .portal-work-media {
  background:
    radial-gradient(circle at 28% 28%, rgba(137,87,182,.2), transparent 28%),
    linear-gradient(140deg, #21172b, #0a090d 72%);
}
.portal-work-youtube .portal-work-media {
  background:
    radial-gradient(circle at 72% 28%, rgba(241,132,132,.16), transparent 28%),
    linear-gradient(140deg, #281619, #0a090a 72%);
}
.portal-work-placeholder {
  position: absolute;
  top: 20px;
  left: 22px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.portal-work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.34);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
}
.portal-work-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
  transform: translate(-50%, -50%);
}
.portal-work-duration {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(0,0,0,.42);
  color: rgba(255,255,255,.68);
  font-size: 10px;
  backdrop-filter: blur(8px);
}
.portal-work-wave {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-work-wave i {
  flex: 1;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9c77e, #766035);
}
.portal-work-wave i:nth-child(2) { height: 68%; }
.portal-work-wave i:nth-child(3) { height: 100%; }
.portal-work-wave i:nth-child(4) { height: 54%; }
.portal-work-wave i:nth-child(5) { height: 82%; }
.portal-work-pages {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 116px;
  height: 112px;
}
.portal-work-pages i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(241,132,132,.18), rgba(255,255,255,.025));
  transform: rotate(-8deg) translate(-20px, 7px);
}
.portal-work-pages i:nth-child(2) { transform: rotate(4deg) translate(-7px, 0); }
.portal-work-pages i:nth-child(3) { transform: rotate(11deg) translate(8px, -2px); }
.portal-work-index {
  position: absolute;
  right: 18px;
  bottom: 4px;
  color: rgba(255,255,255,.07);
  font-size: clamp(82px, 10vw, 142px);
  font-weight: 850;
  line-height: .82;
  letter-spacing: -.08em;
}
.portal-work-copy { padding: 24px 24px 27px; }
.portal-work-feature .portal-work-copy { padding: clamp(28px, 3vw, 40px); }
.portal-work-side .portal-work-copy { padding: 21px 22px 23px; }
.portal-work-small .portal-work-copy { padding: 19px 21px 22px; }
.portal-work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 15px;
  color: #7f93c9;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
}
.portal-work-meta span:last-child { color: #6f7074; }
.portal-work-card h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.portal-work-feature h3 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 680;
  line-height: 1.32;
}
.portal-work-side h3 {
  color: #e8e5de;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 650;
  line-height: 1.32;
}
.portal-work-small h3 {
  color: #cfcdc7;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 620;
  line-height: 1.38;
  letter-spacing: -.012em;
}
.portal-work-side .portal-work-meta,
.portal-work-small .portal-work-meta {
  margin-bottom: 11px;
  font-size: 9px;
  opacity: .86;
}
.portal-work-card .portal-work-copy > p:last-child {
  margin: 14px 0 0;
  color: var(--portal-body);
  font-size: 14px;
  line-height: 1.7;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}
.portal-work-note {
  margin: 18px 2px 0;
  color: #606166;
  font-size: 11px;
  line-height: 1.7;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

@media (hover: hover) {
  .portal-work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(128,163,235,.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.28);
  }
}

@media (max-width: 980px) {
  .portal-work-feature { grid-column: 1 / -1; grid-row: auto; }
  .portal-work-side { grid-column: span 6; }
  .portal-work-small { grid-column: span 6; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .portal-work-small:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .portal-work-grid {
    grid-template-columns: none;
    grid-template-rows: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76vw, 320px);
    gap: 12px;
    margin-inline: -22px;
    padding-inline: 22px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .portal-work-grid::-webkit-scrollbar { display: none; }
  .portal-work-feature,
  .portal-work-side,
  .portal-work-small {
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
  }
  .portal-work-feature { grid-auto-rows: auto; }
  .portal-work-media-video { min-height: 290px; }
  .portal-work-media-square,
  .portal-work-media-social,
  .portal-work-media-tile { min-height: 240px; }
  .portal-work-feature .portal-work-copy { padding: 23px 21px 25px; }
  .portal-work-side .portal-work-copy { padding: 20px 20px 22px; }
  .portal-work-small .portal-work-copy { padding: 18px 20px 20px; }
  .portal-work-feature h3 { font-size: clamp(21px, 5.8vw, 23px); }
  .portal-work-side h3 { font-size: 19px; }
  .portal-work-small h3 { font-size: 17px; }
  .portal-work-note { margin-top: 14px; }
}

@media (max-width: 420px) {
  .portal-work-grid {
    grid-auto-columns: minmax(82vw, 290px);
    margin-inline: -17px;
    padding-inline: 17px;
  }
  .portal-work-play { width: 64px; height: 64px; }
  .portal-work-media-video { min-height: 260px; }
  .portal-work-media-square,
  .portal-work-media-social,
  .portal-work-media-tile { min-height: 220px; }
}

/* About: real video library and one-card image carousel */
.portal-work-lead-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.portal-work-lead-grid .portal-work-feature {
  grid-column: span 8;
  grid-row: auto;
}
.portal-work-lead-grid .portal-work-podcast {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}
.portal-work-podcast .portal-work-copy { flex: 1; }
.portal-work-media-button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.portal-work-media::before,
.portal-work-media::after { content: none; }
.portal-work-media-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 34% 68%, rgba(0,0,0,.48));
}
.portal-work-media-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease, filter .35s ease;
}
.portal-work-media-video {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #090b10;
}
.portal-work-media-square {
  min-height: 0;
  flex: none;
  aspect-ratio: 1;
  background: #15120d;
}
.portal-work-media-tile {
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: #0b0d12;
}
.portal-work-media-tile img { object-position: center 28%; }
.portal-work-placeholder,
.portal-work-duration,
.portal-work-play { z-index: 2; }
.portal-work-play.small {
  width: 52px;
  height: 52px;
}
.portal-work-play.small::after {
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 10px;
}
.portal-work-media-button:focus-visible {
  outline: 2px solid #91aeff;
  outline-offset: -3px;
}
.portal-work-row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(46px, 6vw, 76px) 2px 22px;
}
.portal-work-row-head .portal-eyebrow { margin-bottom: 10px; }
.portal-work-row-head h3 {
  margin: 0;
  color: #e8e6e0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 680;
  letter-spacing: -.025em;
}
.portal-work-row-head > span {
  color: #67686d;
  font-size: 11px;
}
.portal-short-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.portal-short-grid .portal-work-small { grid-column: auto; }
.portal-short-grid .portal-work-small h3 {
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 620;
}
.portal-work-gallery {
  display: grid;
  grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr);
  margin-top: 16px;
  padding: 0;
}
.portal-work-gallery-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 52px);
}
.portal-work-gallery-copy h3 {
  margin: 0;
  max-width: 360px;
  color: #ece9e2;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 680;
  line-height: 1.28;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.portal-work-gallery-copy > p:last-of-type {
  max-width: 390px;
  margin: 16px 0 0;
  color: #9e9d98;
  font-size: 13px;
  line-height: 1.75;
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}
.portal-work-carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.portal-work-carousel-controls button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  background: #171719;
  color: #d8d6d0;
  cursor: pointer;
}
.portal-work-carousel-controls button:hover { border-color: rgba(121,151,232,.7); color: #fff; }
.portal-work-carousel-controls button:disabled { opacity: .28; cursor: default; }
.portal-work-carousel-controls span {
  min-width: 42px;
  color: #77787d;
  font-size: 11px;
  text-align: center;
}
.portal-work-carousel-panel {
  min-width: 0;
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  border-left: 1px solid rgba(255,255,255,.08);
  background: #09090a;
}
.portal-work-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  outline: none;
}
.portal-work-carousel-track::-webkit-scrollbar { display: none; }
.portal-work-carousel-track:focus-visible { box-shadow: 0 0 0 2px #7997e8; }
.portal-work-slide {
  flex: 0 0 min(72%, 430px);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: #151516;
  scroll-snap-align: start;
}
.portal-work-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.portal-work-dialog {
  width: min(860px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 20px;
  background: #09090a;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,.7);
}
.portal-work-dialog::backdrop {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(8px);
}
.portal-work-dialog-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.portal-work-dialog-head h2 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-work-dialog-head button {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: #171719;
  color: #ddd;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.portal-work-dialog video {
  width: 100%;
  max-height: calc(100svh - 92px);
  display: block;
  background: #000;
  object-fit: contain;
}

@media (hover: hover) {
  .portal-work-media-button:hover img { transform: scale(1.025); filter: brightness(.9); }
}

@media (max-width: 980px) {
  .portal-work-lead-grid { grid-template-columns: 1fr; }
  .portal-work-lead-grid .portal-work-feature,
  .portal-work-lead-grid .portal-work-podcast { grid-column: auto; }
  .portal-work-podcast { display: grid !important; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); }
  .portal-work-podcast .portal-work-copy { align-self: center; }
  .portal-short-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-work-gallery { grid-template-columns: 1fr; }
  .portal-work-carousel-panel { border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
}

@media (max-width: 760px) {
  .portal-work-lead-grid { gap: 12px; }
  .portal-work-podcast { display: block !important; }
  .portal-work-media-video,
  .portal-work-media-square,
  .portal-work-media-tile { min-height: 0; }
  .portal-work-media-video { aspect-ratio: 16 / 9; }
  .portal-work-media-square { aspect-ratio: 4 / 3; }
  .portal-work-media-square img { object-position: center 34%; }
  .portal-short-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76vw, 300px);
    gap: 12px;
    margin-inline: -22px;
    padding-inline: 22px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .portal-short-grid::-webkit-scrollbar { display: none; }
  .portal-short-grid .portal-work-small { scroll-snap-align: start; }
  .portal-work-gallery-copy { padding: 26px 22px 28px; }
  .portal-work-gallery-copy h3 { font-size: 21px; }
  .portal-work-carousel-panel { padding: 16px; }
  .portal-work-slide { flex-basis: 86%; border-radius: 11px; }
  .portal-work-dialog { width: calc(100% - 18px); border-radius: 14px; }
  .portal-work-dialog-head { min-height: 52px; padding-left: 15px; }
}

@media (max-width: 420px) {
  .portal-short-grid {
    grid-auto-columns: minmax(82vw, 286px);
    margin-inline: -17px;
    padding-inline: 17px;
  }
  .portal-work-row-head { margin-top: 42px; }
  .portal-work-play.small { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-work-media-button img { transition: none; }
  .portal-work-carousel-track { scroll-behavior: auto; }
}

/* About work: compact inline media wall */
.portal-work-stage {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 16px;
  align-items: stretch;
}
.portal-work-stage .portal-work-feature {
  grid-column: auto;
  grid-row: auto;
}
.portal-work-stage .portal-work-card,
.portal-short-grid .portal-work-card {
  padding: 0;
  border-radius: 16px;
}
.portal-work-side-stack {
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.portal-work-side-stack > .portal-work-card { min-height: 0; }
.portal-work-stage .portal-work-podcast {
  display: block;
}
.portal-work-stage .portal-work-media,
.portal-work-side-stack .portal-work-media {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.portal-work-stage .portal-work-media-video { aspect-ratio: 16 / 9; }
.portal-work-stage .portal-work-media-square {
  aspect-ratio: auto;
  background: #090909;
}
.portal-work-media-button::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  right: 0;
  bottom: 0;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 42%, rgba(0,0,0,.78));
  box-shadow: none;
  pointer-events: none;
}
.portal-work-play,
.portal-work-play.small {
  top: 50%;
  left: 50%;
  width: 42px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 10px;
  background: rgba(8,8,9,.62);
  box-shadow: 0 8px 26px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}
.portal-work-play::after,
.portal-work-play.small::after {
  left: 53%;
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 8px;
}
.portal-work-duration {
  top: 12px;
  right: 12px;
  bottom: auto;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: rgba(0,0,0,.58);
  color: rgba(255,255,255,.76);
  font-size: 9px;
}
.portal-work-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  padding: 20px;
  color: #fff;
  pointer-events: none;
}
.portal-work-overlay > span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,.64);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portal-work-overlay strong {
  display: block;
  max-width: 92%;
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
}
.portal-work-podcast .portal-work-overlay { padding: 15px 16px; }
.portal-work-podcast .portal-work-overlay > span { margin-bottom: 4px; font-size: 8px; }
.portal-work-podcast .portal-work-overlay strong {
  max-width: 88%;
  font-size: clamp(14px, 1.18vw, 17px);
  line-height: 1.3;
}
.portal-work-inline-player {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: #000;
  object-fit: contain;
  cursor: default;
}
.portal-work-podcast .portal-work-inline-player {
  position: absolute;
  inset: 0;
}

.portal-work-gallery.portal-work-gallery-stack {
  position: relative;
  display: block;
  margin: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(79,96,77,.15), transparent 48%),
    #101112;
}
.portal-work-gallery-stack .portal-work-gallery-copy {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 6;
  width: 57%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 15px 10px 14px 16px;
  pointer-events: none;
}
.portal-work-gallery-stack .portal-work-meta {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 5px;
  font-size: 8px;
}
.portal-work-gallery-stack .portal-work-meta span:last-child::before {
  content: "·";
  margin-right: 8px;
}
.portal-work-gallery-stack .portal-work-gallery-copy h3 {
  max-width: 180px;
  color: #eeece7;
  font-size: clamp(13px, 1.08vw, 16px);
  line-height: 1.32;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
}
.portal-work-gallery-stack .portal-work-carousel-controls {
  gap: 7px;
  margin-top: 12px;
  pointer-events: auto;
}
.portal-work-gallery-stack .portal-work-carousel-controls button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
}
.portal-work-gallery-stack .portal-work-carousel-controls span {
  min-width: 34px;
  font-size: 9px;
}
.portal-work-image-stack {
  position: absolute;
  top: 11px;
  right: 10px;
  bottom: 11px;
  width: 39%;
  outline: none;
}
.portal-work-image-stack:focus-visible { box-shadow: 0 0 0 2px #7997e8; }
.portal-work-image-stack .portal-work-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  background: #191919;
  opacity: 0;
  transform-origin: center bottom;
  transition: transform .34s ease, opacity .34s ease;
}
.portal-work-image-stack .portal-work-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.portal-work-image-stack .portal-work-slide[data-stack-position="active"] {
  z-index: 4;
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
}
.portal-work-image-stack .portal-work-slide[data-stack-position="next"] {
  z-index: 3;
  opacity: .7;
  transform: translate(-11px, 3px) rotate(-4deg) scale(.98);
}
.portal-work-image-stack .portal-work-slide[data-stack-position="next-2"] {
  z-index: 2;
  opacity: .32;
  transform: translate(-20px, 6px) rotate(-7deg) scale(.96);
}
.portal-work-image-stack .portal-work-slide[data-stack-position="hidden"] {
  z-index: 1;
  opacity: 0;
  transform: translate(-24px, 8px) rotate(-8deg) scale(.94);
}

.portal-work-row-head {
  margin: clamp(34px, 4vw, 50px) 2px 16px;
}
.portal-work-row-head .portal-eyebrow { margin-bottom: 7px; }
.portal-work-row-head h3 { font-size: clamp(17px, 1.6vw, 21px); }
.portal-short-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.portal-short-grid .portal-work-small {
  grid-column: auto;
  scroll-snap-align: start;
}
.portal-short-grid .portal-work-media-tile {
  width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 16;
}
.portal-short-grid .portal-work-media-tile img { object-position: center; }
.portal-short-grid .portal-work-overlay { padding: 13px 11px; }
.portal-short-grid .portal-work-overlay > span {
  margin-bottom: 4px;
  font-size: 7px;
  letter-spacing: .055em;
}
.portal-short-grid .portal-work-overlay strong {
  max-width: 100%;
  font-size: clamp(12px, .98vw, 14px);
  line-height: 1.32;
  text-wrap: pretty;
}
.portal-short-grid .portal-work-play.small {
  width: 34px;
  height: 29px;
  border-radius: 8px;
}
.portal-short-grid .portal-work-duration {
  top: 8px;
  right: 8px;
  font-size: 8px;
}

@media (hover: hover) {
  .portal-work-stage .portal-work-card:hover,
  .portal-short-grid .portal-work-card:hover {
    transform: none;
    border-color: rgba(128,163,235,.3);
  }
}

@media (max-width: 1100px) {
  .portal-work-stage { grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr); }
  .portal-short-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(150px, 20vw, 188px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }
  .portal-short-grid::-webkit-scrollbar { display: none; }
}

@media (max-width: 760px) {
  .portal-work-stage { grid-template-columns: 1fr; gap: 12px; }
  .portal-work-stage .portal-work-feature { grid-column: auto; }
  .portal-work-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(190px, 30vw);
    gap: 12px;
  }
  .portal-work-stage .portal-work-podcast { display: block !important; }
  .portal-work-stage .portal-work-media-square { aspect-ratio: auto; }
  .portal-work-gallery-stack .portal-work-gallery-copy { padding: 12px 8px 11px 12px; }
  .portal-work-gallery-stack .portal-work-gallery-copy h3 { font-size: 12px; }
  .portal-work-gallery-stack .portal-work-carousel-controls { margin-top: 8px; }
  .portal-work-image-stack { top: 9px; right: 8px; bottom: 9px; }
  .portal-short-grid {
    grid-auto-columns: minmax(145px, 42vw);
    margin-inline: -22px;
    padding-inline: 22px;
  }
}

@media (max-width: 420px) {
  .portal-work-overlay { padding: 14px; }
  .portal-work-overlay strong { font-size: 17px; }
  .portal-work-side-stack { grid-template-rows: 176px; }
  .portal-work-podcast .portal-work-overlay { padding: 10px; }
  .portal-work-podcast .portal-work-overlay strong { font-size: 11px; }
  .portal-work-podcast .portal-work-duration { top: 7px; right: 7px; }
  .portal-work-gallery-stack .portal-work-gallery-copy { width: 59%; }
  .portal-work-gallery-stack .portal-work-gallery-copy h3 { max-width: 110px; font-size: 10px; }
  .portal-work-gallery-stack .portal-work-meta { display: none; }
  .portal-work-gallery-stack .portal-work-carousel-controls button { width: 25px; height: 25px; }
  .portal-work-image-stack { width: 38%; }
  .portal-short-grid {
    grid-auto-columns: minmax(140px, 42vw);
    margin-inline: -17px;
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-work-image-stack .portal-work-slide { transition: none; }
}

.portal-auth-wrap {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}
.portal-auth-copy,
.portal-auth-card {
  min-height: 600px;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--portal-line);
  border-radius: var(--portal-radius);
}
.portal-auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(155deg, #1c294a, #0f1118 70%);
}
.portal-auth-copy h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.055em; }
.portal-auth-copy p { color: #b9c3df; line-height: 1.8; }
.portal-auth-card { background: #101011; }
.portal-tabs { display: flex; gap: 6px; margin-bottom: 30px; }
.portal-tab {
  flex: 1;
  height: 42px;
  border: 1px solid var(--portal-line);
  border-radius: 999px;
  background: #0b0b0c;
  color: var(--portal-dim);
  cursor: pointer;
}
.portal-tab.active { background: #202126; color: #fff; }
.portal-form { display: grid; gap: 16px; }
.portal-form label { display: grid; gap: 8px; color: #aaa9a4; font-size: 12px; }
.portal-form input,
.portal-form select,
.portal-form textarea {
  width: 100%;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  background: #09090a;
  color: #fff;
  outline: none;
}
.portal-form input,
.portal-form select { height: 48px; padding: 0 14px; }
.portal-form textarea { min-height: 120px; padding: 13px 14px; resize: vertical; font-size: 15px; line-height: 1.65; }
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus { border-color: var(--portal-blue); box-shadow: 0 0 0 3px rgba(0,47,167,.2); }
.portal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #696a6f;
  font-size: 11px;
}
.portal-divider::before,
.portal-divider::after { content: ""; height: 1px; flex: 1; background: var(--portal-line); }
.portal-google { min-height: 44px; display: flex; justify-content: center; }
.portal-message { min-height: 22px; margin: 12px 0 0; color: var(--portal-dim); font-size: 12px; line-height: 1.6; }
.portal-message.error { color: var(--portal-red); }
.portal-message.success { color: var(--portal-green); }

.portal-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}
.portal-dashboard-head h1 { margin: 0; font-size: clamp(36px, 6vw, 68px); letter-spacing: -.055em; }
.portal-dashboard-head p { margin: 10px 0 0; color: var(--portal-dim); }
.portal-tier {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #3955a0;
  border-radius: 999px;
  background: #16203b;
  color: #aec1ff;
  font-size: 11px;
  font-weight: 800;
}
.portal-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.portal-dashboard-card {
  grid-column: span 6;
  padding: 27px;
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  background: #101011;
}
.portal-dashboard-card.wide { grid-column: 1 / -1; }
.portal-dashboard-card h2 { margin: 0 0 18px; font-size: 20px; }
.portal-dashboard-card .portal-card { padding: 22px; border-radius: 15px; }
.portal-data-list { display: grid; }
.portal-data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--portal-line);
}
.portal-data-row:first-child { border-top: 0; }
.portal-data-row strong,
.portal-data-row span,
.portal-data-row small { display: block; }
.portal-data-row span,
.portal-data-row small { margin-top: 4px; color: var(--portal-dim); font-size: 11px; }
.portal-status { color: var(--portal-green); font-size: 11px; font-weight: 800; }
.portal-status.pending { color: var(--portal-warm); }
.portal-empty { margin: 0; color: var(--portal-dim); font-size: 13px; line-height: 1.7; }

.booking-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}
.booking-panel {
  padding: 26px;
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  background: #101011;
}
.booking-panel h2 { margin: 0; font-size: 22px; }
.booking-panel > p { color: var(--portal-dim); font-size: 13px; line-height: 1.7; }
.booking-options { display: grid; gap: 9px; margin-top: 20px; }
.booking-option {
  position: relative;
  display: block;
  padding: 16px;
  border: 1px solid var(--portal-line);
  border-radius: 12px;
  background: #0b0b0c;
  cursor: pointer;
}
.booking-option input { position: absolute; opacity: 0; }
.booking-option:has(input:checked) { border-color: var(--portal-blue); background: #111a38; }
.booking-option b,
.booking-option span { display: block; }
.booking-option span { margin-top: 5px; color: var(--portal-dim); font-size: 11px; line-height: 1.5; }
.booking-dates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.booking-date,
.booking-time {
  border: 1px solid var(--portal-line);
  border-radius: 10px;
  background: #0b0b0c;
  color: #bbb;
  cursor: pointer;
}
.booking-date { min-height: 66px; padding: 9px; }
.booking-date b,
.booking-date span { display: block; }
.booking-date b { color: #fff; font-size: 13px; }
.booking-date span { margin-top: 4px; color: var(--portal-dim); font-size: 10px; }
.booking-date.active,
.booking-time.active { border-color: var(--portal-blue); background: #111d49; color: #fff; }
.booking-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.booking-time { min-width: 92px; height: 42px; padding: 0 13px; }
.booking-summary {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #171719;
  color: #b8b8b4;
  font-size: 12px;
  line-height: 1.7;
}
.booking-summary strong { color: #fff; }
.booking-loading { min-height: 220px; display: grid; place-items: center; color: var(--portal-dim); }

.portal-footer {
  padding: 34px max(22px, 4vw);
  border-top: 1px solid var(--portal-line);
  color: #6f706f;
  font-size: 11px;
}
.portal-footer-inner {
  width: min(var(--portal-max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.portal-footer a { text-decoration: none; margin-left: 14px; }
.portal-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(380px, calc(100% - 40px));
  padding: 13px 16px;
  border: 1px solid var(--portal-line);
  border-radius: 11px;
  background: #171719;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s;
}
.portal-toast.show { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .portal-section-head { grid-template-columns: 1fr; }
  .portal-card.third { grid-column: span 6; }
  .portal-step { grid-column: span 6; }
  .portal-auth-wrap { grid-template-columns: 1fr; }
  .portal-auth-copy { min-height: 360px; }
  .portal-auth-card { min-height: auto; }
  .booking-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .portal-menu-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .portal-menu-button span {
    display: block;
    transform: translateY(-1px) scaleX(1.08);
  }
  .portal-links {
    display: none !important;
    position: absolute;
    top: 61px;
    left: 12px;
    right: 12px;
    padding: 14px;
    border: 1px solid var(--portal-line);
    border-radius: 14px;
    background: #111113;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    align-items: stretch;
    flex-direction: column;
  }
  .portal-nav.open .portal-links { display: flex !important; }
  .portal-links a { padding: 10px 8px; }
  .portal-links .portal-login { text-align: center; }
  .portal-shell { width: min(100% - 24px, var(--portal-max)); padding-top: 44px; }
  .portal-hero { min-height: 360px; padding: 38px 0 62px; }
  .portal-card,
  .portal-card.third,
  .portal-dashboard-card { grid-column: 1 / -1; }
  .portal-step { grid-column: 1 / -1; }
  .portal-dashboard-head { align-items: flex-start; flex-direction: column; }
  .booking-dates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .portal-nav { padding-inline: 14px; }
  .portal-brand { font-size: 11px; }
  .portal-card,
  .portal-auth-card,
  .portal-auth-copy,
  .booking-panel { padding: 21px; border-radius: 17px; }
  .booking-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-footer-inner { display: block; }
  .portal-footer a { margin: 10px 12px 0 0; display: inline-block; }
}

/* ============================================================
   HOME CARD SYSTEM
   Public pages use the same large-card rhythm as the homepage:
   one rounded stage card per chapter, with smaller cards inside.
   ============================================================ */
:root {
  --portal-bg: #000;
  --portal-panel: #09090a;
  --portal-panel-2: #111113;
  --portal-max: 1440px;
  --portal-radius: clamp(18px, 2vw, 26px);
  --portal-stage-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 28px 80px rgba(0,0,0,.48);
}

body.portal-page {
  background:
    radial-gradient(900px 520px at 78% -12%, rgba(0,47,167,.22), transparent 66%),
    #000;
}

.portal-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--portal-max), 100%);
  min-height: 64px;
  padding: 0 clamp(20px, 6vw, 78px);
  border-bottom-color: rgba(255,255,255,.075);
  background: rgba(0,0,0,.78);
}

.portal-shell,
.portal-shell.narrow {
  width: min(var(--portal-max), 100%);
  padding:
    clamp(76px, 8svh, 92px)
    clamp(16px, 3vw, 40px)
    clamp(24px, 4vw, 48px);
}

.portal-shell > .portal-hero,
.portal-shell > .portal-section,
.portal-shell > .portal-auth-wrap {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--portal-radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 30%),
    var(--portal-panel);
  box-shadow: var(--portal-stage-shadow);
}

.portal-shell > .portal-hero::before,
.portal-shell > .portal-section::before,
.portal-shell > .portal-auth-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(700px 360px at 84% 0%, rgba(0,47,167,.15), transparent 68%),
    linear-gradient(115deg, rgba(255,255,255,.025), transparent 28% 72%, rgba(255,255,255,.012));
}

.portal-shell > .portal-hero > *,
.portal-shell > .portal-section > *,
.portal-shell > .portal-auth-wrap > * {
  position: relative;
  z-index: 1;
}

.portal-shell > .portal-hero {
  min-height: calc(100svh - clamp(100px, 13svh, 132px));
  align-content: center;
  justify-items: center;
  padding: clamp(44px, 7vw, 92px);
  text-align: center;
}

.portal-hero h1,
.portal-hero .portal-lead {
  margin-inline: auto;
}

.portal-hero .portal-actions {
  justify-content: center;
}

.portal-shell > .portal-section {
  min-height: min(680px, calc(100svh - 104px));
  margin-top: clamp(14px, 2vw, 24px);
  padding: clamp(38px, 5vw, 72px);
  border-top: 1px solid rgba(255,255,255,.1);
}

.portal-shell > .portal-auth-wrap {
  min-height: calc(100svh - clamp(100px, 13svh, 132px));
  padding: clamp(12px, 1.5vw, 20px);
  gap: clamp(10px, 1.2vw, 16px);
}

.portal-card,
.portal-step,
.portal-dashboard-card:not(:has(.portal-card)),
.portal-auth-copy,
.portal-google-block,
.booking-option,
.booking-date,
.booking-summary {
  border: 1px solid rgba(255,255,255,.095);
  background:
    linear-gradient(155deg, rgba(255,255,255,.025), transparent 42%),
    var(--portal-panel-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.portal-card {
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.portal-card.featured {
  border-color: rgba(0,47,167,.7);
  background:
    radial-gradient(540px 280px at 78% 0%, rgba(0,47,167,.22), transparent 70%),
    linear-gradient(145deg, #141b30, #0d0f16 72%);
}

.portal-step {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 16px;
}

.portal-button,
.portal-links .portal-login {
  border-radius: 999px;
}

.portal-section-head > p,
.portal-card > p,
.portal-step p,
.booking-panel > p,
.portal-auth-copy p {
  text-wrap: pretty;
  word-break: auto-phrase;
  line-break: strict;
}

@media (hover: hover) {
  .portal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(128,163,235,.25);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      0 18px 42px rgba(0,0,0,.28);
  }
}

@media (max-width: 900px) {
  .portal-shell > .portal-hero {
    min-height: 620px;
  }

  .portal-shell > .portal-auth-wrap {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .portal-nav {
    padding-inline: 20px;
  }

  .portal-shell,
  .portal-shell.narrow {
    width: 100%;
    padding:
      76px
      12px
      28px;
  }

  .portal-shell > .portal-hero {
    min-height: calc(100svh - 96px);
    padding: 38px 22px;
  }

  .portal-shell > .portal-section {
    min-height: 0;
    margin-top: 12px;
    padding: 34px 20px;
  }

  .portal-shell > .portal-auth-wrap {
    padding: 8px;
  }

  .portal-section-head {
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .portal-shell > .portal-hero {
    min-height: 580px;
    padding-inline: 20px;
  }

  .portal-shell > .portal-section {
    padding: 30px 17px;
  }

  .portal-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }
}

/* ============================================================
   AIRY TYPE & SHARED BRAND
   The public pages follow the homepage's restrained card logic.
   ============================================================ */
.portal-brand-lockup {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.portal-brand-x {
  flex: none;
  color: #66666d;
  font-size: 14px;
}

.portal-partner {
  flex: none;
  display: flex;
  align-items: center;
  height: 24px;
}

.portal-partner img {
  display: block;
  width: auto;
  height: 24px;
}

.portal-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 4.8vw, 64px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.portal-hero .portal-lead {
  max-width: 640px;
  margin-top: clamp(24px, 3vw, 34px);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.72;
}

.portal-eyebrow {
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.portal-section h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.portal-card h2 {
  font-size: clamp(25px, 2.6vw, 34px);
}

.portal-card h3 {
  font-size: clamp(20px, 2vw, 24px);
}

.portal-section-head {
  align-items: start;
  gap: clamp(34px, 5vw, 72px);
  margin-bottom: clamp(36px, 4vw, 54px);
}

.portal-section-head > p {
  max-width: 610px;
  justify-self: end;
  font-size: 15px;
  line-height: 1.75;
}

.portal-card {
  padding: clamp(28px, 4vw, 48px);
}

.portal-card .portal-number {
  margin-bottom: 26px;
}

.portal-card > p {
  max-width: 560px;
}

.portal-list {
  gap: 10px;
  margin-top: 22px;
}

.portal-list li {
  font-size: 14px;
  line-height: 1.7;
}

.portal-shell > .portal-hero {
  padding:
    clamp(60px, 9vw, 120px)
    clamp(30px, 8vw, 110px);
}

.portal-shell > .portal-section {
  padding:
    clamp(48px, 6vw, 86px)
    clamp(28px, 6vw, 86px);
}

.portal-auth-copy,
.portal-auth-card {
  padding: clamp(32px, 4vw, 56px);
}

.portal-auth-copy h1 {
  max-width: 520px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
}

.portal-google-block {
  position: relative;
  isolation: isolate;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.portal-google-block > p {
  margin: 0 0 13px;
  color: #b7b7bc;
  font-size: 13px;
  font-weight: 650;
}

.portal-google {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  color-scheme: light;
  touch-action: manipulation;
}

.portal-google > div,
.portal-google iframe {
  width: 100% !important;
  max-width: 100% !important;
  pointer-events: auto !important;
}

.booking-panel {
  padding: clamp(26px, 3vw, 38px);
}

.booking-panel h2 {
  font-size: 24px;
}

.booking-option {
  padding: 18px;
}

@media (max-width: 760px) {
  .portal-brand-lockup {
    gap: 5px;
  }

  .portal-brand {
    font-size: 10.5px;
    letter-spacing: -.02em;
  }

  .portal-brand-x {
    font-size: 11px;
  }

  .portal-partner,
  .portal-partner img {
    height: 20px;
  }

  .portal-hero h1 {
    max-width: 560px;
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.12;
  }

  .portal-shell > .portal-hero {
    padding: 48px 24px;
  }

  .portal-shell > .portal-section {
    padding: 38px 22px;
  }

  .portal-section-head {
    gap: 18px;
    margin-bottom: 30px;
  }

  .portal-section-head > p {
    justify-self: start;
  }

  .portal-card {
    padding: 26px 22px;
  }

  .portal-google-block {
    padding: 14px;
  }
}

@media (hover: none), (pointer: coarse) {
  .portal-google-block::after {
    content: none !important;
    display: none !important;
  }
}

/* ============================================================
   BRAND MOTION SYSTEM
   Reuses the homepage blue-white edge orbit and pill feedback.
   ============================================================ */
@property --portal-edge-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes portal-edge-orbit {
  to { --portal-edge-angle: 360deg; }
}

.portal-card,
.portal-step,
.booking-panel,
.portal-dashboard-card,
.portal-auth-copy,
.portal-auth-card {
  position: relative;
  overflow: hidden;
}

.portal-card::after,
.portal-step::after,
.portal-dashboard-card:not(:has(.portal-card))::after,
.portal-auth-copy::after,
.portal-google-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(
    from var(--portal-edge-angle),
    transparent 0deg 236deg,
    rgba(0, 47, 167, .04) 250deg,
    rgba(0, 47, 167, .9) 282deg,
    rgba(176, 197, 255, .98) 306deg,
    rgba(42, 82, 190, .58) 326deg,
    transparent 344deg 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: portal-edge-orbit 6.5s linear infinite;
  animation-play-state: paused;
  transition: opacity .35s ease;
}

.portal-button,
.portal-button.small,
.portal-tab,
.portal-menu-button,
.booking-time,
.portal-links .portal-login {
  border-radius: 999px;
  transition:
    transform .22s ease,
    border-color .25s ease,
    background-color .25s ease,
    box-shadow .25s ease;
}

.portal-button,
.portal-tab,
.portal-menu-button,
.booking-time {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.portal-button::before,
.portal-tab::before,
.portal-menu-button::before,
.booking-time::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .36;
  background: linear-gradient(
    105deg,
    transparent 24%,
    rgba(255,255,255,.32) 48%,
    transparent 72%
  );
  transform: translateX(-135%);
  transition: transform .7s ease;
}

.booking-panel h2 {
  font-size: clamp(25px, 2.2vw, 30px);
  line-height: 1.2;
}

.booking-panel > p {
  font-size: 15px;
  line-height: 1.75;
}

.booking-option b {
  font-size: 16px;
  line-height: 1.35;
}

.booking-option span {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
}

.booking-date {
  min-height: 76px;
  padding: 12px 10px;
}

.booking-date b { font-size: 15px; }
.booking-date span { font-size: 12px; }

.booking-time {
  min-width: 96px;
  height: 48px;
  padding: 0 17px;
  font-size: 15px;
  font-weight: 700;
}

.booking-summary {
  padding: 18px;
  font-size: 14px;
}

.booking-loading { font-size: 15px; }

.booking-panel .portal-form label {
  gap: 10px;
  font-size: 14px;
}

/* Booking uses static cards throughout; no orbit on panels or nested cards. */
.booking-panel::after,
.booking-option::after,
.booking-date::after,
.booking-summary::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

@media (hover: hover) {
  .portal-card:hover::after,
  .portal-step:hover::after,
  .portal-dashboard-card:not(:has(.portal-card)):hover::after,
  .portal-auth-copy:hover::after,
  .portal-google-block:hover::after {
    opacity: 1;
    animation-duration: 2.8s;
    animation-play-state: running;
  }

  .portal-button:hover,
  .portal-tab:hover,
  .portal-menu-button:hover,
  .booking-time:hover,
  .portal-links .portal-login:hover {
    transform: translateY(-2px);
    border-color: rgba(90,124,214,.58);
    box-shadow: 0 12px 28px rgba(0,0,0,.3);
  }

  .portal-button:hover::before,
  .portal-tab:hover::before,
  .portal-menu-button:hover::before,
  .booking-time:hover::before {
    transform: translateX(135%);
  }
}

@media (max-width: 760px) {
  .booking-panel h2 { font-size: 24px; }
  .booking-panel > p { font-size: 14px; }
  .booking-option b { font-size: 15px; }
  .booking-option span { font-size: 12.5px; }
  .booking-date b { font-size: 14px; }
  .booking-date span { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-card::after,
  .portal-step::after,
  .portal-dashboard-card:not(:has(.portal-card))::after,
  .portal-auth-copy::after,
  .portal-google-block::after {
    display: none;
  }

  .portal-button,
  .portal-tab,
  .portal-menu-button,
  .booking-time {
    transition: none;
  }
}
