:root { --page-pad: clamp(24px, 7.5vw, 128px); }

body { overflow-x: clip; }
main { overflow: clip; }
section { padding: clamp(88px, 9vw, 138px) var(--page-pad); }
section[id] { scroll-margin-top: 96px; }
.title { text-wrap: balance; }
.copy { text-wrap: pretty; }

/* A single, genuinely white navigation island. */
.nav {
  display: grid;
  grid-template-columns: minmax(52px, 1fr) auto minmax(165px, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 13px 36px rgba(4, 20, 48, .15), 0 1px 3px rgba(4, 20, 48, .05);
  backdrop-filter: none;
}
.brand { justify-self: start; border-radius: 11px; }
.brand .mark { width: 38px; height: 38px; }
.navlinks {
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  background: #f2f6ff;
  border: 1px solid #e9effb;
  border-radius: 13px;
}
.navlinks a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  color: #435a7b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .24s ease, background .24s ease, transform .24s ease, box-shadow .24s ease;
}
.navlinks a:hover, .navlinks a:focus-visible {
  color: #1457da;
  background: #fff;
  box-shadow: 0 3px 10px rgba(21, 63, 133, .09);
  transform: translateY(-1px);
}
.navlinks a:focus-visible, .brand:focus-visible, .menu-toggle:focus-visible,
.button:focus-visible, .dash-tabs button:focus-visible, .service:focus-visible {
  outline: 3px solid #77a8ff;
  outline-offset: 3px;
}
.nav-end { display: flex; align-items: center; justify-self: end; gap: 9px; }
.menu-toggle { display: none; }
.mode .nav-call { min-height: 39px; white-space: nowrap; }

/* Composed hero: the copy leads, the video remains present, the actions stay beside it. */
.hero { min-height: max(760px, 100svh); padding: clamp(160px, 15vh, 215px) var(--page-pad) 100px; }
.hero h1 { max-width: min(790px, 61vw); margin: 0 0 25px; font-size: clamp(56px, 7vw, 102px); text-wrap: balance; }
.hero .lead { max-width: min(525px, 46vw); margin: 0; }
.guide-visual { right: 0; bottom: -1vw; width: min(52vw, 800px); }
.call-dock { right: clamp(32px, 35.8vw, 580px); top: 69%; }
.hero:before {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  left: -25vw;
  bottom: -37vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 120, 233, .12), transparent 70%);
  pointer-events: none;
}

.intro { background: linear-gradient(180deg, #fff, #fbfcff); }
.intro .stats { margin-top: 54px; border-radius: 24px; }
.stat { padding: clamp(22px, 3vw, 36px); }
.stat b { font-size: clamp(22px, 2.3vw, 30px); }
.stat span { display: block; margin-top: 6px; line-height: 1.5; }
.services { background: linear-gradient(160deg, #edf4ff, #f6f9ff 68%, #edf4ff); }
.service-grid { gap: 17px; }
.service {
  min-height: 215px;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(28, 60, 111, .04);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.service:hover { transform: translateY(-7px); border-color: #b7ccf8; box-shadow: 0 20px 45px rgba(28, 60, 111, .12); }
.service h3 { margin-top: 34px; }
.process { background: radial-gradient(circle at 84% 11%, #19376c, transparent 36%), #071426; }
.step { padding-right: clamp(13px, 2vw, 28px); }
.step .number { margin-bottom: 26px; }
.step strong { display: block; max-width: 210px; line-height: 1.25; }
.workspace { background: linear-gradient(160deg, #f9fbff, #edf4ff); }
.dashboard { box-shadow: 0 33px 70px rgba(16, 47, 101, .2); }
.dash-tabs { flex-wrap: wrap; }
.dash-tabs button { transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.dash-tabs button:hover { transform: translateY(-2px); box-shadow: 0 7px 14px rgba(19, 51, 104, .1); }
.audience { background: #fff; }
.path { border-radius: 24px; transition: transform .35s ease, box-shadow .35s ease; }
.path:hover { transform: translateY(-5px); box-shadow: 0 19px 42px rgba(14, 41, 85, .11); }
.path .button { border-radius: 12px; }

/* Closing invitation deliberately has no character image. */
.cta { min-height: 530px; display: grid; place-items: center; padding: 106px var(--page-pad); isolation: isolate; }
.cta:before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(850px, 95vw);
  height: min(850px, 95vw);
  left: 50%;
  top: -380px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 130, 255, .33), transparent 68%);
  pointer-events: none;
}
.cta:after { content: ''; position: absolute; inset: 16px; z-index: -1; border: 1px solid rgba(190, 213, 255, .11); border-radius: 22px; pointer-events: none; }
.cta-inner { max-width: 850px; margin: auto; }
.cta .section-label { color: #a5bfff; }
.cta .title { max-width: none; margin: 17px auto 18px; }
.cta .copy { max-width: 540px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.cta-actions .button { min-height: 46px; margin: 0; padding: 12px 18px; border-radius: 12px; transition: transform .26s ease, box-shadow .26s ease, background .26s ease; }
.cta-actions .button:hover { transform: translateY(-3px); box-shadow: 0 13px 25px rgba(0, 9, 35, .2); }
.cta-actions .button.ghost { border-color: rgba(196, 216, 255, .38); background: rgba(255,255,255,.06); }
.cta-actions .button span { margin-left: 8px; }

/* One restrained entrance per element; never conceal content without JS. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.stat:nth-child(2), .service:nth-child(2), .step:nth-child(2), .path:nth-child(2) { transition-delay: .08s; }
.stat:nth-child(3), .service:nth-child(3), .step:nth-child(3) { transition-delay: .16s; }
.service:nth-child(4), .step:nth-child(4) { transition-delay: .24s; }

@media (min-width: 761px) and (max-width: 1150px) {
  .nav { grid-template-columns: minmax(43px, 1fr) auto minmax(120px, 1fr); }
  .navlinks a { padding-inline: 11px; }
  .hero { min-height: max(740px, 100svh); }
  .hero h1 { max-width: 67vw; font-size: clamp(56px, 7.6vw, 82px); }
  .hero .lead { max-width: 49vw; }
  .guide-visual { right: -7vw; bottom: 4px; width: 70vw; }
  .call-dock { right: 47vw; top: 69%; width: 190px; }
}

@media (max-width: 760px) {
  section { padding: 86px 24px; }
  section[id] { scroll-margin-top: 78px; }
  .nav { grid-template-columns: 1fr auto; gap: 7px; padding: 0 11px; }
  .nav-end { gap: 8px; }
  .brand .mark { width: 37px; height: 37px; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid #e3ebf9;
    border-radius: 11px;
    background: #f6f9ff;
    cursor: pointer;
    order: 1;
  }
  .menu-toggle span { width: 16px; height: 2px; border-radius: 2px; background: #244777; transition: transform .25s ease; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mode { order: 2; }
  .mode .nav-call { min-height: 39px; padding: 9px 12px; font-size: 11px; }
  .navlinks {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 7px;
    background: #fff;
    border: 1px solid #e6edfa;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(6, 24, 58, .18);
  }
  .nav.menu-open .navlinks { display: flex; }
  .navlinks a { justify-content: flex-start; min-height: 42px; padding-inline: 13px; font-size: 13px; }
  .hero { min-height: max(760px, 100svh); padding: 150px 24px 140px; }
  .hero h1 { max-width: 100%; font-size: clamp(48px, 8.7vw, 72px); }
  .hero .lead { max-width: 510px; font-size: clamp(15px, 2.7vw, 17px); line-height: 1.6; }
  .guide-visual { right: -23vw; bottom: 0; width: 106vw; }
  .call-dock { right: 51vw; top: auto; bottom: 47px; transform: none; width: min(190px, 42vw); }
  .steps { gap: 22px; }
  .step { min-height: 155px; }
  .path { min-height: 315px; }
  .cta { min-height: 470px; padding: 100px 24px; }
  .cta:after { inset: 12px; }
}

@media (max-width: 520px) {
  .hero { min-height: max(730px, 100svh); padding-top: 148px; }
  .hero h1 { font-size: clamp(43px, 9.1vw, 55px); letter-spacing: -.07em; }
  .guide-visual { right: -31vw; bottom: 1px; width: 114vw; }
  .call-dock { bottom: 58px; right: 52vw; width: min(184px, 43vw); }
  .call-dock a { min-height: 45px; }
  .stats { grid-template-columns: 1fr; }
  .service-grid, .paths { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 3px; }
  .step { min-height: auto; padding: 21px 0 25px; }
  .step .number { margin-bottom: 15px; }
  .dash-view { aspect-ratio: 1.1; }
  .dash-caption { left: 11px; right: 11px; bottom: 11px; padding: 13px; }
  .dash-caption b { font-size: 14px; }
  .dash-caption p { font-size: 11px; }
  .path { padding: 30px; }
  .path h3 { font-size: 27px; }
  .cta .title { font-size: clamp(37px, 9vw, 54px); }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .button { justify-content: space-between; width: 100%; }
}

@media (max-width: 380px) {
  .hero { padding-inline: 20px; }
  .hero h1 { font-size: 42px; }
  .mode .nav-call { padding-inline: 10px; }
  .call-dock { left: 20px; right: auto; width: 44vw; }
  .call-dock a { padding-left: 10px; font-size: 9px; }
  .guide-visual { right: -34vw; width: 121vw; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .navlinks a, .service, .path, .dash-tabs button, .cta-actions .button, .menu-toggle span { transition: none; }
}

/* Refined editorial layout. */
.nav {
  left: 50%;
  right: auto;
  width: min(calc(100% - 44px), 1080px);
  transform: translateX(-50%);
  border-radius: 999px;
  padding-inline: 21px;
}
.navlinks { background: transparent; border: 0; }
.navlinks a { border-radius: 999px; }
.mode .nav-call { border-radius: 999px; }

.hero { min-height: max(790px, 100svh); padding-top: clamp(160px, 17.5vh, 210px); }
.hero-copy { position: relative; z-index: 3; max-width: 790px; }
.hero h1 { max-width: 790px; font-size: clamp(54px, 6.3vw, 90px); line-height: 1.015; margin-bottom: 28px; }
.hero .lead { max-width: 540px; font-size: clamp(16px, 1.45vw, 19px); }
.guide-visual { top: clamp(155px, 18vh, 220px); right: -1vw; bottom: auto; width: min(57vw, 860px); }
.call-dock { top: 66%; right: clamp(38px, 35.8vw, 580px); }

.intro-layout, .workspace-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(35px, 6vw, 96px);
  margin-top: 18px;
}
.intro-layout .title, .workspace-intro .title { margin-top: 0; }
.prose { max-width: 680px; color: #506482; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.76; }
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose .statement {
  margin-top: 26px;
  padding: 17px 0 17px 20px;
  border-left: 3px solid #5383f2;
  color: #14325f;
  font-weight: 800;
  line-height: 1.55;
}
.workspace .prose .statement { color: #234b88; }
.services .copy, .process .copy, .audience .copy { max-width: 790px; }
.service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.service { grid-column: span 2; min-height: 246px; }
.service:nth-child(n+4) { grid-column: span 3; }
.service h3 { font-size: clamp(21px, 2vw, 25px); }
.service p { font-size: 14px; }
.steps { gap: 0; }
.step { min-height: 270px; }
.step p { font-size: 13px; }
.workspace .dashboard { margin-top: 65px; }
.audience .paths { margin-top: 44px; }

@media (min-width: 761px) and (max-width: 1150px) {
  .nav { width: min(calc(100% - 32px), 970px); padding-inline: 16px; }
  .hero { min-height: max(820px, 100svh); }
  .hero-copy { max-width: 69vw; }
  .hero h1 { max-width: 69vw; font-size: clamp(55px, 7.1vw, 82px); }
  .hero .lead { max-width: 50vw; }
  .guide-visual { top: 350px; right: -11vw; bottom: auto; width: 74vw; }
  .call-dock { top: auto; right: 43vw; bottom: 150px; transform: none; }
  .intro-layout, .workspace-intro { grid-template-columns: .88fr 1.12fr; gap: 35px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service:nth-child(n+4) { grid-column: auto; }
  .service:last-child { grid-column: 1 / -1; min-height: 200px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .step { min-height: 210px; }
  .step:after { display: none; }
}

@media (max-width: 760px) {
  .nav { left: 50%; right: auto; width: calc(100% - 24px); padding-inline: 11px; border-radius: 999px; }
  .navlinks { border-radius: 17px; }
  .hero { min-height: max(800px, 100svh); padding-top: 145px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { max-width: 100%; font-size: clamp(45px, 8.6vw, 65px); line-height: 1.04; }
  .hero .lead { max-width: 540px; font-size: 16px; }
  .guide-visual { top: auto; right: -23vw; bottom: 0; width: 106vw; }
  .call-dock { top: auto; right: 51vw; bottom: 46px; transform: none; }
  .intro-layout, .workspace-intro { grid-template-columns: 1fr; gap: 15px; }
  .intro-layout .title, .workspace-intro .title { max-width: 700px; }
  .prose { max-width: 680px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service:nth-child(n+4) { grid-column: auto; }
  .service:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { min-height: auto; padding: 23px 0 30px; }
  .step:after { display: none; }
  .step strong { max-width: none; }
  .step p { max-width: 580px; font-size: 14px; }
  .workspace .dashboard { margin-top: 44px; }
}

@media (max-width: 520px) {
  .hero { min-height: max(720px, 100svh); }
  .hero h1 { font-size: clamp(43px, 9vw, 54px); }
  .hero .lead { font-size: 15px; }
  .guide-visual { right: -31vw; width: 114vw; }
  .call-dock { bottom: 45px; }
  .service-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(n+4), .service:last-child { grid-column: auto; min-height: 210px; }
  .prose { font-size: 15px; }
}

@media (max-width: 380px) {
  .hero { min-height: max(720px, 100svh); padding-inline: 20px; }
  .hero h1 { font-size: 42px; }
  .guide-visual { right: -34vw; width: 121vw; }
  .call-dock { left: 20px; right: auto; bottom: 45px; }
}

/* Conversion close and detailed, scroll-safe service information. */
.guide-visual { right: -1.5vw; }
.call-dock { right: clamp(38px, 36vw, 585px); }
.cta-inner { max-width: 920px; }
.cta .title { max-width: 860px; font-size: clamp(42px, 5.3vw, 74px); }
.cta .copy { max-width: 700px; }
.cta-actions .button.primary { min-width: 225px; justify-content: center; }
.modal-card {
  position: relative;
  width: min(92vw, 780px);
  max-width: none;
  max-height: min(86svh, 830px);
  overflow-y: auto;
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid #e7edfa;
  border-radius: 24px;
  box-shadow: 0 32px 90px rgba(0, 9, 32, .32);
}
body.modal-open { overflow: hidden; }
.modal-card:has(#modal-image:not([hidden])) { width: min(94vw, 1500px); max-height: 94svh; padding: 18px; }
.modal-card .close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  width: 38px;
  height: 38px;
  background: #f0f5ff;
  color: #244977;
  transition: background .2s ease, transform .2s ease;
}
.modal-card .close:hover { background: #e3ecff; transform: rotate(90deg); }
.modal-card h3 { margin: 16px 0 12px; font-size: clamp(30px, 4vw, 43px); }
.modal-card #modal-text { max-width: 650px; margin: 0 0 28px; font-size: 15px; }
.service-detail[hidden] { display: none; }
.service-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding-top: 25px; border-top: 1px solid #dfe8f8; }
.service-detail h4 { margin: 0 0 13px; color: #153564; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.service-detail p { margin: 0; color: #4a617f; font-size: 14px; line-height: 1.75; }
.service-detail ul { margin: 0; padding: 0; list-style: none; }
.service-detail li { position: relative; padding: 0 0 12px 21px; color: #4a617f; font-size: 14px; line-height: 1.55; }
.service-detail li:before { content: ''; position: absolute; left: 0; top: .56em; width: 7px; height: 7px; border-radius: 50%; background: #4f82f5; box-shadow: 0 0 0 4px #eaf1ff; }
.detail-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 26px; padding: 18px; border-radius: 14px; background: #f0f5ff; }
.detail-footer>span { color: #3b5578; font-size: 13px; font-weight: 700; }
.detail-footer a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 10px; background: #3974ff; color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease; }
.detail-footer a:hover { transform: translateY(-2px); box-shadow: 0 9px 18px rgba(40, 89, 200, .22); }
.detail-footer a:focus-visible,.modal-card .close:focus-visible { outline: 3px solid #74a4ff; outline-offset: 3px; }

@media (min-width: 1700px) {
  .guide-visual { right: 1.5vw; }
}

@media (min-width: 761px) and (max-width: 1150px) {
  .guide-visual { right: -11vw; }
  .call-dock { right: 43vw; }
}
@media (max-width: 760px) {
  .guide-visual { right: -23vw; }
  .call-dock { right: 51vw; }
  .cta .title { font-size: clamp(39px, 7vw, 56px); }
}
@media (max-width: 520px) {
  .guide-visual { right: -31vw; }
  .modal { padding: 12px; }
  .modal-card { width: 100%; max-height: 90svh; padding: 24px 21px; border-radius: 19px; }
  .modal-card #modal-text { margin-bottom: 22px; font-size: 14px; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 23px; padding-top: 21px; }
  .detail-footer { align-items: stretch; flex-direction: column; }
  .detail-footer a { justify-content: space-between; }
}
@media (max-width: 380px) {
  .guide-visual { right: -34vw; }
  .call-dock { left: 20px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-card .close,.detail-footer a { transition: none; }
}

/* Headline contrast, clean icons and section-aware navigation. */
.hero-accent {
  color: #86d3ff;
  background: linear-gradient(105deg, #75d9ff 5%, #8caeff 62%, #b5a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-main { color: #fff; }
.call-dock .dock-icon { color: #fff; box-shadow: none; }
.call-dock .dock-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slides { right: 17px; gap: 4px; }
.slides button,
.slides button.active {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 19px;
  padding: 0;
  background: transparent;
  opacity: 1;
}
.slides button.active { height: 31px; }
.slides button::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #97a9c9;
  opacity: .78;
  transition: height .24s ease, background .24s ease, opacity .24s ease, box-shadow .24s ease;
}
.slides button.active::before { height: 26px; background: #3974ff; opacity: 1; box-shadow: 0 0 15px rgba(57,116,255,.4); }
.slides button:hover::before { background: #6b95fa; opacity: 1; }
.slides button:focus-visible { outline: 2px solid #90b8ff; outline-offset: 2px; }

@media (min-width: 1151px) {
  .call-dock { top: 61%; }
  .guide-visual { right: -2vw; }
}
@media (min-width: 1700px) {
  .call-dock { top: 56%; }
  .guide-visual { right: -2.5vw; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .call-dock { bottom: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .slides button::before { transition: none; }
}

/* Keep the mascot and its action cluster level with the headline on wide screens. */
@media (min-width: 1400px) and (max-width: 1699px) {
  .hero-copy, .hero h1 { max-width: 700px; }
  .hero h1 { font-size: 82px; }
  .guide-visual { right: -11vw; }
  .call-dock { top: 53%; right: auto; left: calc(50% + 80px); }
}
@media (min-width: 1700px) {
  .guide-visual { right: -4vw; }
  .call-dock { top: 47%; }
}

.workspace-access-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; margin-top: 35px; }
.workspace-access.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(45, 95, 215, .2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.workspace-access.button span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: rgba(255,255,255,.12); font-size: 16px; }
.workspace-access.button:hover { transform: translateY(-3px); box-shadow: 0 18px 31px rgba(45, 95, 215, .27); }
.workspace-access.button:focus-visible { outline: 3px solid #77a8ff; outline-offset: 3px; }
.access-note { max-width: 330px; margin: 0; color: #647a9a; font-size: 12px; line-height: 1.55; }
@media (max-width: 520px) {
  .workspace-access-wrap { margin-top: 22px; }
  .workspace-access.button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-access.button { transition: none; }
}

/* Keep the compact navigation legible above every section, not transparent over the hero. */
@keyframes mobile-menu-enter {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
  .nav { isolation: isolate; }
  .navlinks {
    z-index: 5;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    max-height: calc(100svh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 5px;
    padding: 10px;
    border: 1px solid #dce7fa;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 48px rgba(4, 20, 48, .23), 0 3px 9px rgba(4, 20, 48, .06);
  }
  .nav.menu-open .navlinks { animation: mobile-menu-enter .22s cubic-bezier(.2,.8,.2,1) both; }
  .navlinks a {
    min-height: 55px;
    justify-content: flex-start;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: #f5f8ff;
    color: #1b355d;
    font-size: 15px;
    font-weight: 800;
  }
  .navlinks a::after {
    content: '↗';
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    border: 1px solid #dce7fb;
    border-radius: 9px;
    background: #fff;
    color: #4074e6;
    font-size: 15px;
    font-weight: 600;
  }
  .navlinks a:hover, .navlinks a:focus-visible {
    transform: translateX(2px);
    border-color: #c9dbff;
    background: #eaf2ff;
    color: #1457da;
    box-shadow: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav.menu-open .navlinks { animation: none; }
}
