.site-nav {
  width: min(1480px, calc(100% - 56px));
  min-height: 80px;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
}
.site-nav nav { gap: clamp(18px, 2.5vw, 34px); }
.site-nav > .pill { background: transparent; color: #202124; }
.site-nav > .pill:hover { background: #f0f4fa; }

.hero {
  --scene-height: 740px;
  width: min(1500px, calc(100% - 32px));
  min-height: var(--scene-height);
  margin: 32px auto 0;
  border-radius: 34px;
  background: #f1f5fb;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 17% -5%, #d5e4ff, transparent 52%), radial-gradient(ellipse at 82% -14%, #dcd6ff, transparent 54%);
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}
.hero[data-current="0"]::before { opacity: 1; }
.hero-copy { position: relative; z-index: 3; padding: 25px 16px 0; text-align: center; }
.hero-heading { position: relative; min-height: 132px; margin: 0; color: #202124; }
.hero-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  grid-template-columns: 1fr;
  font: 740 clamp(38px, 4.46vw, 64px)/1.11 var(--sans);
  letter-spacing: -.057em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 380ms ease, transform 470ms cubic-bezier(.2,.75,.27,1);
  pointer-events: none;
}
.hero-title.is-current { opacity: 1; transform: translateY(0); }
.hero-title > span { display: block; }
.hero-title b {
  font-weight: inherit;
  color: #256bd6;
  background: linear-gradient(102deg, #2067d3, #4a85ed 65%, #6954cd);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title small { margin-bottom: 10px; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.hero .actions { margin-top: 15px; }
.hero .hero-cta { min-height: 50px; padding-inline: 23px; color: white; background: #202124; }
.hero .hero-cta:hover { background: #3c4043; }
.hero .hero-brief-cta, .hero[data-current="3"] .hero-cta:not(.hero-brief-cta) { display: none; }
.hero[data-current="3"] .hero-brief-cta { display: inline-flex; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.motion-stage {
  position: absolute;
  inset: 223px 0 0;
  overflow: hidden;
  pointer-events: none;
}
.motion-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 470ms ease;
}
.motion-scene.is-current { opacity: 1; }
.motion-glow {
  position: absolute;
  inset: 6% 0 0;
  background: radial-gradient(ellipse at 49% 69%, #c7d8fbaf, transparent 47%), radial-gradient(ellipse at 72% 95%, #e2dbfc, transparent 42%);
}
.motion-intro .motion-glow { background: radial-gradient(ellipse at 50% 63%, #cddcffba, transparent 45%); }
.motion-emblem {
  display: grid;
  place-items: center;
  gap: 13px;
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translateX(-50%);
  color: #25335a;
  font-size: 21px;
}
.motion-emblem .brand-symbol { width: 92px; height: 92px; border-radius: 25px; box-shadow: 0 14px 49px #6e8ced6c, inset 0 1px 3px #ffffff87; }
.motion-emblem .brand-symbol::after { width: 44px; height: 44px; border-width: 3px; border-radius: 9px; }
.source-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 26%;
  padding: 12px 17px;
  border-radius: 15px;
  border: 1px solid #fff;
  background: linear-gradient(135deg, #f9fbff, #dce7f7);
  color: #455d89;
  font-size: clamp(12px, 1.4vw, 17px);
  font-weight: 700;
  box-shadow: 0 8px 24px #4d70ad21;
  filter: blur(.75px);
  transform: rotate(-11deg);
}
.source-card i { display: grid; place-items: center; width: 28px; height: 28px; flex: none; font-style: normal; border-radius: 8px; background: #dce8fa; color: #3268ba; }
.source-left { --entry-x: -95px; left: 11%; top: 32%; }
.source-left-low { --entry-x: -80px; left: 13%; top: 59%; opacity: .74; }
.source-right { --entry-x: 100px; right: 10%; top: 47%; opacity: .81; }
.motion-window {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 19%;
  width: clamp(375px, 47vw, 650px);
  min-height: 252px;
  border: 1px solid #fff;
  border-radius: 21px;
  background: #fff;
  color: #233259;
  box-shadow: 0 28px 72px #6f90d563, 0 4px 21px #acbfea6b;
  transform-origin: 50% 57%;
  transform: translateX(-50%) perspective(1050px) rotateY(-18deg) rotateZ(-11deg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 15px;
  border-bottom: 1px solid #ebf0f9;
  font-size: 14px;
}
.window-bar .brand-symbol { width: 19px; height: 19px; border-radius: 5px; }
.window-bar .brand-symbol::after { width: 8px; height: 8px; border-width: 1.5px; border-radius: 2px; }
.window-actions { margin-left: auto; color: #52638d; font-size: 19px; letter-spacing: .14em; }
.knowledge-sheet {
  display: grid;
  grid-template-columns: 1.28fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(70px, 1fr));
  gap: 9px;
  padding: 13px;
}
.knowledge-count {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  border-radius: 13px;
  background: linear-gradient(153deg, #d9e8ff, #cbdafe);
  color: #214fae;
}
.knowledge-count b { font-size: clamp(38px, 5vw, 67px); line-height: 1; letter-spacing: -.075em; }
.knowledge-count span { margin-top: 6px; font-size: 13px; font-weight: 650; }
.knowledge-tile { display: grid; align-content: center; gap: 3px; padding: 10px 12px; border-radius: 12px; background: #e7effd; line-height: 1.25; }
.knowledge-tile:nth-child(3) { background: #e8e3ff; }
.knowledge-tile:last-child { grid-column: span 2; background: #eff4fb; }
.knowledge-tile span { color: #50689e; font-size: 10px; font-weight: 750; }
.knowledge-tile strong { font-size: 15px; }

.skill-flow {
  position: absolute;
  z-index: 2;
  top: 28%;
  left: 50%;
  width: min(77%, 940px);
  display: grid;
  grid-template-columns: .95fr .43fr 1fr .42fr 1.15fr;
  align-items: center;
  transform: translateX(-50%) rotate(-10deg);
}
.flow-origin, .flow-items span, .flow-result {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 13px 8px;
  border-radius: 13px;
  background: linear-gradient(150deg, #2f7ee3, #246bd4);
  color: #fff;
  font-size: clamp(12px, 1.8vw, 22px);
  font-weight: 750;
  text-align: center;
  box-shadow: 0 7px 18px #548dd34d;
}
.flow-items { display: grid; gap: 11px; }
.flow-items span { padding-block: 8px; border-radius: 10px; }
.flow-items span:nth-child(2) { background: linear-gradient(150deg, #2878dd, #335ac8); }
.flow-items span:nth-child(3) { background: linear-gradient(150deg, #5378e2, #6354c5); }
.flow-branches, .flow-merge { position: relative; height: 118px; color: #3278d6; }
.flow-merge { transform: scaleX(-1); color: #6d5bd1; }
.flow-branches i, .flow-merge i { position: absolute; left: 0; right: 0; border-top: 2px solid currentColor; top: 50%; }
.flow-branches i:first-child, .flow-merge i:first-child { top: 9%; height: 41%; border: 0; border-left: 2px solid currentColor; border-top: 2px solid currentColor; border-radius: 100% 0 0; }
.flow-branches i:last-child, .flow-merge i:last-child { top: 50%; height: 41%; border: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0 0 0 100%; }
.flow-result { background: linear-gradient(145deg, #fff, #eae5ff); border: 1px solid #fff; color: #4e37a3; gap: 2px; box-shadow: 0 8px 28px #7867c443; }
.flow-result > span { color: #6a54d1; font-size: 20px; }
.flow-result small { font-size: 10px; }

.daily-window { top: 26%; width: clamp(375px, 47vw, 660px); }
.daily-sheet { margin: 11px; padding: 18px 21px; border-radius: 13px; background: linear-gradient(136deg, #edf4ff 22%, #e6e3ff 100%); }
.daily-sheet p { color: #5168a0; font-size: 12px; font-weight: 750; }
.daily-sheet > strong { display: block; margin-top: 5px; color: #263966; font-size: clamp(22px, 3.1vw, 41px); line-height: 1.2; letter-spacing: -.06em; }
.daily-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.daily-topics span { padding: 3px 8px; background: #fff9; border-radius: 20px; color: #5267a1; font-size: 11px; font-weight: 700; }

.motion-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: min(calc(100% - 54px), max(333px, calc(100svh - 165px)));
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}
.motion-choices { display: flex; gap: 2px; padding: 3px; background: #ffffffc9; border-radius: 99px; border: 1px solid #e0e7f3; box-shadow: 0 2px 9px #58729a1c; backdrop-filter: blur(9px); }
.motion-controls button { border: 0; background: transparent; border-radius: 99px; padding: 5px 10px; color: #43547c; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.motion-controls button[aria-pressed="true"] { background: #e3edff; color: #244caa; }
.motion-controls .motion-toggle { min-width: 32px; min-height: 32px; padding: 3px; background: #ffffffe0; border: 1px solid #e0e7f3; }
.motion-controls button:hover { background: #e8efff; }

.hero:not(.is-static) :is(.is-current,.is-exiting) .source-card { animation: card-drift 5.7s cubic-bezier(.19,.68,.26,1) both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .source-left-low { animation-delay: 370ms; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .source-right { animation-delay: 550ms; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .motion-emblem { animation: emblem-enter 2.8s cubic-bezier(.2,.72,.21,1) both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .motion-window { animation: window-fold 6.9s cubic-bezier(.22,.72,.25,1) both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .daily-window { animation: daily-rise 7.3s cubic-bezier(.22,.72,.25,1) both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .knowledge-sheet > * { animation: tile-reveal 1.15s cubic-bezier(.19,.74,.33,1) both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .knowledge-sheet > :nth-child(1) { animation-delay: 1.65s; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .knowledge-sheet > :nth-child(2) { animation-delay: 2.05s; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .knowledge-sheet > :nth-child(3) { animation-delay: 2.31s; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .knowledge-sheet > :nth-child(4) { animation-delay: 2.57s; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .flow-origin { animation: tile-reveal 1s .35s both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .flow-branches { animation: draw-branches 1.1s .9s both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .flow-items span { animation: tile-reveal .9s 1.6s both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .flow-items span:nth-child(2) { animation-delay: 2s; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .flow-items span:nth-child(3) { animation-delay: 2.37s; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .flow-merge { animation: draw-reverse 1.1s 2.6s both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .flow-result { animation: tile-reveal 1.15s 3.35s both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .skill-flow { animation: flow-glide 7.7s ease-out both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .daily-topics span { animation: tile-reveal .95s 2.1s both; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .daily-topics span:nth-child(2) { animation-delay: 2.48s; }
.hero:not(.is-static) :is(.is-current,.is-exiting) .daily-topics span:nth-child(3) { animation-delay: 2.86s; }
.hero.is-paused .motion-scene * { animation-play-state: paused !important; }

@keyframes card-drift {
  0% { opacity: 0; filter: blur(4px); transform: translate(var(--entry-x), 60px) rotate(-7deg) scale(.9); }
  31% { opacity: .82; filter: blur(1px); transform: translate(0, 3px) rotate(-11deg) scale(1); }
  100% { opacity: .82; filter: blur(1.4px); transform: translate(-12px, -16px) rotate(-12deg) scale(1); }
}
@keyframes emblem-enter {
  from { opacity: 0; transform: translate(-50%, 55px) scale(.78); filter: blur(5px); }
  65%, to { opacity: 1; transform: translate(-50%, 0) scale(1); filter: blur(0); }
}
@keyframes window-fold {
  0% { opacity: 0; transform: translate(-56%, 122px) perspective(1050px) rotateY(-82deg) rotateZ(-9deg) scale(.85); filter: blur(6px); }
  13% { opacity: .64; transform: translate(-53%, 74px) perspective(1050px) rotateY(-72deg) rotateZ(-10deg) scale(.9); }
  46% { opacity: 1; filter: blur(0); transform: translate(-50%, 0) perspective(1050px) rotateY(-18deg) rotateZ(-11deg); }
  100% { opacity: 1; transform: translate(-47%, -19px) perspective(1050px) rotateY(-14deg) rotateZ(-10deg) scale(1.04); }
}
@keyframes tile-reveal {
  from { opacity: 0; transform: translate(-10px, 14px) scale(.92); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes draw-branches { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes draw-reverse { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes flow-glide {
  from { transform: translate(-57%, 36px) rotate(-10deg) scale(.94); }
  to { transform: translate(-48%, -9px) rotate(-10deg) scale(1.035); }
}
@keyframes daily-rise {
  0% { opacity: 0; transform: translate(-50%, 140px) perspective(1000px) rotateY(-50deg) rotateZ(-13deg) scale(.79); filter: blur(6px); }
  35% { opacity: 1; transform: translate(-50%, 8px) perspective(1000px) rotateY(-20deg) rotateZ(-12deg) scale(1); filter: blur(0); }
  100% { opacity: 1; transform: translate(-48%, -24px) perspective(1000px) rotateY(-14deg) rotateZ(-10deg) scale(1.04); }
}

@media (max-width: 760px) {
  .site-nav { width: calc(100% - 34px); gap: 12px; }
  .site-nav nav { gap: 13px; }
  .hero { --scene-height: 640px; border-radius: 27px; margin-top: 20px; }
  .hero-heading { min-height: 115px; }
  .motion-stage { inset-block-start: 204px; }
  .motion-window, .daily-window { width: min(66vw, 530px); }
  .source-card { max-width: 32%; padding: 8px 10px; }
  .source-card i { width: 20px; height: 20px; }
}
@media (max-width: 580px) {
  .site-nav { grid-template-columns: 1fr auto; min-height: 0; padding-block: 12px 5px; row-gap: 8px; }
  .site-nav nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .hero { --scene-height: 575px; width: calc(100% - 20px); margin-top: 15px; border-radius: 22px; }
  .hero-copy { padding-top: 24px; }
  .hero-title { font-size: clamp(29px, 8.7vw, 45px); letter-spacing: -.06em; }
  .hero-title small { font-size: 15px; }
  .hero-heading { min-height: 88px; }
  .hero .actions { margin-top: 11px; }
  .hero .hero-cta { min-height: 40px; padding: 9px 16px; font-size: 13px; }
  .motion-stage { inset-block-start: 169px; }
  .motion-window, .daily-window { width: min(76vw, 420px); min-height: 0; border-radius: 15px; top: 28%; }
  .source-card { max-width: 44%; font-size: 11px; white-space: nowrap; padding: 6px 7px; gap: 4px; }
  .source-left { left: 3%; top: 25%; }
  .source-left-low { left: 4%; top: 67%; }
  .source-right { right: 1%; top: 62%; }
  .window-bar { height: 34px; padding-inline: 9px; font-size: 11px; }
  .knowledge-sheet { gap: 5px; padding: 7px; grid-template-rows: repeat(2, minmax(51px, 1fr)); }
  .knowledge-count { padding: 8px; }
  .knowledge-count span { font-size: 10px; }
  .knowledge-tile { padding: 6px; }
  .knowledge-tile strong { font-size: 11px; }
  .knowledge-tile span { font-size: 8px; }
  .skill-flow { width: 91%; grid-template-columns: .9fr .29fr 1fr .24fr 1.03fr; top: 37%; }
  .flow-origin, .flow-result { padding: 8px 4px; border-radius: 8px; }
  .flow-items { gap: 6px; }
  .flow-items span { padding: 6px 3px; border-radius: 6px; }
  .flow-branches, .flow-merge { height: 81px; }
  .daily-sheet { margin: 7px; padding: 11px; }
  .daily-sheet > strong { font-size: clamp(17px, 5.7vw, 25px); }
  .daily-topics { margin-top: 8px; }
}
html.site-motion-off .hero *, html.site-motion-off .hero::before { animation: none !important; transition: none !important; }
