/* MCRO inner-page scenes (2026-10-04: the same philosophy and design approach on the rest of the internal
   pages, except the library page). Builds on gi.css: these pages carry page-gi too, so every Get involved rule
   applies. This file adds what the other pages need: scenes outside the rail, smaller hero titles for longer names,
   the per-page hero drawings, and small moves inside the new icons. Loaded before site.css, so every rule is prefixed. */

/* ---------- hero ---------- */
.page-scn .gi-hero .phero__title { font-size: clamp(3rem, 6.4vw, 6.6rem); }
.page-scn .gi-hero .phero__intro { position: relative; z-index: 2; max-width: 40rem; color: #c7d6e4; }
.page-scn .gi-hero .phero__intro a { color: var(--light); }
.page-scn .gi-hero .phero__btns { position: relative; z-index: 2; margin-top: 2.2rem; }
.page-scn .gi-hero .phero__btns .btn--primary { background: var(--light); color: var(--ink); } .page-scn .gi-hero .phero__btns .btn--primary:hover { background: var(--paper); }   /* gold on the night sky, as on every dark section (motion.css .sec--sea) */   /* 2026-10-04: Events, the button sits in the hero */
@media (min-width: 1101px) { .page-legal .gi-hero { min-height: 70vh; } }

/* ---------- scenes outside the "On this page" rail ---------- */
.page-scn main > .gi-scene { position: relative; isolation: isolate; overflow: clip; }
@media (min-width: 1101px) { .page-scn main > .gi-scene { min-height: calc(100vh - var(--header-h)); display: grid; align-content: center; }
  .page-legal main > .gi-scene { min-height: 0; } }
.page-scn main > .gi-scene--dark { background: radial-gradient(110% 90% at 75% 50%, #0c2c66 0%, var(--night) 55%, var(--abyss) 100%); color: var(--paper); }
.page-scn main > .gi-scene--s-members { background: linear-gradient(180deg, var(--abyss) 0%, var(--night) 50%, var(--abyss) 100%); }
.page-scn .gi-scene .sec__head { padding-top: 0; }
.page-scn .gi-scene--plain .sec__title { font-size: clamp(2.4rem, 4.2vw, 4rem); }
.page-about .gi-scene--s-problem .sec__title { font-size: clamp(2.6rem, 4.6vw, 4.4rem); }   /* three paragraphs here: a smaller title keeps the screen to one flip */
.page-scn .gi-scene--wide .sec__title { max-width: 20ch; }
.page-scn main > .gi-scene .gi-marquees { margin-left: calc(-1 * var(--innx, 0px)); }
.page-scn .gi-scene--s-members .gi-current--dark { opacity: .14; }

/* About: vision, then mission, one large statement per screen (2026-10-04: large text, so it is easy to see and read) */
.page-scn .gi-scene--s-vision, .page-scn .gi-scene--s-mission { min-height: 100svh; display: grid; align-content: center; }   /* one screen each */
.page-scn .vmx { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.page-scn .vmx .eyebrow { margin: 0; }
.page-scn .vmx__big { margin: 1.2rem 0 0; max-width: 18ch; font-size: clamp(2.8rem, 5.4vw, 5.6rem); line-height: 1; color: var(--paper); text-shadow: 0 0 40px rgba(251, 181, 42, .16); }
.page-scn .vmx__text { margin: 1.4rem 0 0; max-width: 30ch; font-size: clamp(1.55rem, 2.9vw, 2.8rem); line-height: 1.34; font-weight: 500; color: var(--paper); }
/* About, vision + mission: glass cards on the night, a light running round the vision card's edge */
.page-scn .gi-scene--dark .vm__card { position: relative; isolation: isolate; border: 1px solid rgba(219, 232, 242, .16); border-radius: 18px;
  background: rgba(5, 16, 45, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8); }
.page-scn .gi-scene--dark .vm__card--sea { background: linear-gradient(160deg, rgba(14, 52, 120, .8), rgba(5, 16, 45, .8)); }
.page-scn .gi-scene--dark .vm__card:first-child::before { content: ""; position: absolute; inset: -1px; z-index: -1; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--gi-ang, 0deg), transparent 0 68%, rgba(251, 181, 42, .95) 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: gi-ang 7s linear infinite; }
.page-scn .gi-scene--dark .vm__big { text-shadow: 0 0 40px rgba(251, 181, 42, .16); }
.page-scn .gi-scene--dark .eyebrow--blue { color: var(--light); }

/* About, what is on this site: the link-underline rule in motion.css (.sec__body a) was wiping the tiles' paper, so they showed as one grey-blue block */
.page-scn .sec__body .onsite a { background: var(--paper); } .page-scn .sec__body .onsite a:hover { background: #edf4f9; }

/* Case study: the timeline glows on the night */
.page-scn .gi-scene--dark .tl__step.is-lit .tl__dot { box-shadow: 0 0 0 5px rgba(251, 181, 42, .16), 0 0 22px rgba(251, 181, 42, .8); }
.page-scn .gi-scene--dark .tl__step h3 { color: var(--paper); }
.page-scn .gi-scene--dark .tl__beam::after { box-shadow: 0 0 12px rgba(251, 181, 42, .8); }

/* ---------- hero drawings ---------- */
.page-scn .sc-hart { --o: min(34rem, 38vw); position: relative; z-index: 1; display: grid; place-items: center; width: var(--o); aspect-ratio: 1;
  translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -16px); transition: translate .8s var(--ease); }
.page-legal .sc-hart { --o: min(24rem, 30vw); }
.page-scn .sc-hart .gi-ico--big { width: 42%; height: 42%; }
.page-scn .sc-hart--timeline .gi-ico--big, .page-scn .sc-hart--constellation .gi-ico--big { width: 30%; height: 30%; }
.page-scn .sc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.page-scn .sc-disc { position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; z-index: 2;
  background: radial-gradient(closest-side, rgba(14, 52, 120, .95), rgba(5, 16, 45, .92) 80%, transparent); box-shadow: 0 0 0 1px rgba(251, 181, 42, .28), 0 0 60px rgba(251, 181, 42, .18); }

/* constellation (Team) + network (Networks): lines draw in one at a time, the stars twinkle */
.page-scn .sc-line { fill: none; stroke: rgba(251, 181, 42, .7); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgba(251, 181, 42, .8)); animation: sc-draw 8s var(--ease) calc(var(--k) * .45s) infinite; }
@keyframes sc-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 35%, 82% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.page-scn .sc-star { fill: #fff6dc; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 6px rgba(251, 181, 42, .95));
  animation: sc-tw 3.2s ease-in-out calc(var(--k) * -.55s) infinite; }
@keyframes sc-tw { 0%, 100% { opacity: .5; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.2); } }
.page-scn .sc-hubico { position: absolute; z-index: 2; width: 24%; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(14, 52, 120, .96), rgba(5, 16, 45, .94)); box-shadow: 0 0 0 1px rgba(251, 181, 42, .4), 0 0 40px rgba(251, 181, 42, .22); }
.page-scn .sc-hubico .gi-ico { width: 56%; height: 56%; }

/* timeline (Case studies): a light runs the path, each point lights as it passes */
.page-scn .sc-trail { fill: none; stroke: rgba(219, 232, 242, .2); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.page-scn .sc-run { fill: none; stroke: var(--light); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: .14 .86; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 7px rgba(251, 181, 42, .95)); animation: sc-run 4.8s linear infinite; }
@keyframes sc-run { to { stroke-dashoffset: 0; } }
.page-scn .sc-node { fill: var(--night); stroke: rgba(251, 181, 42, .75); stroke-width: 2; animation: sc-lit 4.8s linear calc(var(--k) * 1.2s - .3s) infinite; }
@keyframes sc-lit { 0%, 30%, 100% { fill: var(--night); filter: none; } 4%, 16% { fill: var(--light); filter: drop-shadow(0 0 12px rgba(251, 181, 42, 1)); } }

/* broadcast (News): rings of light leave the megaphone */
.page-scn .sc-hart--broadcast .gi-ico--big { translate: -16% 0; }
.page-scn .sc-arc { position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1; border-radius: 50%; border: 2px solid transparent; border-right-color: rgba(251, 181, 42, .85);
  translate: -50% -50%; opacity: 0; filter: drop-shadow(0 0 6px rgba(251, 181, 42, .85)); animation: sc-arc 3.6s cubic-bezier(.2, .6, .3, 1) calc(var(--k) * .9s) infinite; }
@keyframes sc-arc { 0% { scale: .35; opacity: 0; } 15% { opacity: 1; } 100% { scale: 1.45; opacity: 0; } }

/* spotlight (Events): a stage light swings over the microphone */
.page-scn .sc-cone { position: absolute; left: 50%; top: -10%; width: 92%; height: 100%; translate: -50% 0; transform-origin: 50% 0; mix-blend-mode: screen;
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(251, 181, 42, .55), rgba(251, 181, 42, .1) 68%, transparent);
  filter: blur(3px); animation: sc-sway 7s ease-in-out infinite alternate; }
@keyframes sc-sway { from { rotate: -10deg; } to { rotate: 10deg; } }
.page-scn .sc-stage { position: absolute; left: 8%; right: 8%; bottom: 4%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(251, 181, 42, .4), transparent);
  animation: gi-breathe 5s ease-in-out infinite; }
.page-scn .sc-hart--spotlight .gi-ico--big { translate: 0 10%; }

/* ---------- small moves inside the new icons (only while their screen is in view: gi.css pauses the rest) ---------- */
.page-scn .sc-needle { transform-origin: 24px 24px; animation: sc-needle 5s ease-in-out infinite; }
@keyframes sc-needle { 0%, 100% { rotate: -28deg; } 30% { rotate: 20deg; } 55% { rotate: -9deg; } 75% { rotate: 4deg; } }
.page-scn .sc-flame { transform-origin: 24px 29px; animation: sc-flame 1.4s ease-in-out infinite alternate; }
@keyframes sc-flame { from { scale: .82 .9; opacity: .75; } to { scale: 1.06 1.1; opacity: 1; } }
.page-scn .sc-waves path { animation: sc-wave 2s ease-out infinite; } .page-scn .sc-waves path + path { animation-delay: .35s; }
@keyframes sc-wave { 0% { opacity: .15; } 30% { opacity: 1; } 100% { opacity: .15; } }
.page-scn .sc-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sc-check 4.5s var(--ease) infinite; }
@keyframes sc-check { 0%, 12% { stroke-dashoffset: 1; } 40%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.page-scn .sc-scan { animation: sc-scan 6s ease-in-out infinite; }
@keyframes sc-scan { 0%, 100% { translate: 0 0; } 30% { translate: 4px -3px; } 65% { translate: -3px 3px; } }
.page-scn .sc-page { transform-origin: 24px 13px; animation: sc-page 5s ease-in-out infinite; }
@keyframes sc-page { 0%, 35% { scale: 1 1; } 55%, 100% { scale: -1 1; } }
.page-scn .sc-side { animation: sc-side 3s ease-in-out infinite alternate; }
@keyframes sc-side { from { opacity: .45; } to { opacity: 1; } }
.page-scn .sc-hub { transform-box: fill-box; transform-origin: center; animation: sc-hub 2.4s ease-in-out infinite; }
@keyframes sc-hub { 0%, 100% { scale: 1; } 50% { scale: 1.45; } }
.page-scn .sc-fly { animation: sc-fly 3s ease-in-out infinite; }
@keyframes sc-fly { 0%, 100% { translate: 0 0; } 50% { translate: 2.5px -2.5px; } }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .page-scn .sc-hart { --o: min(22rem, 84vw); margin: 1rem auto 0; }
  .page-legal .sc-hart { --o: min(15rem, 60vw); }
}
@media (max-width: 700px) { .page-scn .gi-scene--plain .sec__inner { grid-template-columns: minmax(0, 1fr); } }   /* the title sits above the words on a phone */

/* ---------- reduced motion: everything here stands still ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-scn .sc-hart *, .page-scn .gi-ico *, .page-scn .vm__card::before { animation: none !important; }
  .page-scn .sc-line, .page-scn .sc-check { stroke-dashoffset: 0; }
  .page-scn .sc-arc { opacity: .5; scale: 1; } .page-scn .sc-arc + .sc-arc { display: none; }
  .page-scn .sc-run { stroke-dasharray: none; opacity: .5; }
}
