/* V50 FINAL PASS: one optical language for navigation, controls and the footer. */

/* ---------- removed: cursor ring, orb, beams, portal wipe, footer nova and shooting star ---------- */
.cur, .cur__ring, .menu__orb, .foot__star, .foot__shoot { display: none !important; }
html, body, a, button { cursor: auto; } a, button, [role="tab"] { cursor: pointer; }
.px-h2::before, .pf__vis::after, .xa__m::after { content: none !important; }

/* ---------- THE SIGNAL CAPSULE ----------
   Dark optical glass with real thickness; a light perimeter that turns toward the visitor; liquid light that pools
   inside the material where the pointer is; on hover a pulse of energy travels through the glass toward the arrow. */
.btn--go, .sx__btn--go, .pbtn {
  --mx: 50%; --my: 50%; --ang: 200deg; --p: 0;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .85rem;
  min-height: 50px; padding: 0 1.25rem 0 1.4rem; border-radius: 999px; border: 0 !important;
  font: 500 .72rem/1 var(--mono, 'IBM Plex Mono', monospace); letter-spacing: .17em; text-transform: uppercase; text-decoration: none;
  color: #F6F8FF !important; text-shadow: none; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60px 34px at var(--mx) var(--my), rgba(150,235,255,calc(.10 + var(--p) * .34)), rgba(140,110,255,calc(var(--p) * .16)) 55%, transparent 80%),
    linear-gradient(180deg, rgba(255,255,255,.10) 0, rgba(255,255,255,.02) 42%, rgba(0,0,0,0) 50%, rgba(80,120,255,.08) 100%),
    linear-gradient(160deg, #101a3c 0%, #070b1c 55%, #0b0a26 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(220,235,255,.22), inset 0 -1px 0 rgba(0,0,0,.6), inset 0 0 18px rgba(57,123,255,.18),
    0 0 0 1px rgba(4,6,13,.9), 0 10px 26px -14px rgba(57,123,255,.55), 0 2px 0 rgba(10,16,44,.9) !important;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; filter: none !important;
}
/* the illuminated perimeter: a thin interference band whose brightest point faces the visitor */
.btn--go::before, .sx__btn--go::before, .pbtn::before {
  content: "" !important; display: block !important; position: absolute; inset: 0; z-index: 0; border-radius: inherit; padding: 1px; pointer-events: none; transform: none !important;
  background: conic-gradient(from var(--ang), #ffffff 0deg, #77D8FF 22deg, #8B6BFF 70deg, rgba(57,123,255,.35) 140deg, rgba(120,110,200,.25) 220deg, #AA72FF 300deg, #ffffff 360deg) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: calc(.62 + var(--p) * .38);
}
/* the energy pulse, travelling through the glass toward the arrow */
.btn--go::after, .sx__btn--go::after, .pbtn::after {
  content: "" !important; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(119,216,255,.0) 10%, rgba(160,230,255,.32) 60%, rgba(220,245,255,.55) 78%, transparent);
  filter: blur(6px); transform: skewX(-18deg);
}
.btn--go:hover::after, .sx__btn--go:hover::after, .pbtn:hover::after, .btn--go:focus-visible::after, .sx__btn--go:focus-visible::after, .pbtn:focus-visible::after { animation: capFlow 1.15s cubic-bezier(.4,0,.2,1) .05s; }
@keyframes capFlow { 0% { left: -40%; opacity: 0; } 20% { opacity: 1; } 100% { left: 110%; opacity: 0; } }
.btn--go > *, .sx__btn--go > *, .pbtn > * { position: relative; z-index: 1; }
.btn--go .btn__a, .pbtn i { width: 18px !important; height: 1px; background: currentColor; transition: transform .45s cubic-bezier(.2,.7,.2,1), width .45s; }
.btn--go:hover .btn__a, .pbtn:hover i { transform: translateX(3px); }
.btn--go:hover, .sx__btn--go:hover, .pbtn:hover { transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(220,235,255,.3), inset 0 -1px 0 rgba(0,0,0,.6), inset 0 0 24px rgba(119,216,255,.22), 0 0 0 1px rgba(4,6,13,.9), 0 14px 32px -14px rgba(119,216,255,.6), 0 2px 0 rgba(10,16,44,.9) !important; }
/* activation: the light contracts to the centre of the glass, then navigation proceeds at once */
.btn--go:active, .sx__btn--go:active, .pbtn:active, .cap-press { transform: translateY(1px) scale(.985) !important; transition-duration: .08s;
  background: radial-gradient(40px 22px at 50% 50%, rgba(190,240,255,.55), rgba(140,110,255,.2) 60%, transparent 85%), linear-gradient(160deg, #101a3c, #070b1c) !important; }
.btn--go:focus-visible, .sx__btn--go:focus-visible, .pbtn:focus-visible { outline: 2px solid #CFF3FF; outline-offset: 3px; }
.mast__cta { min-height: 44px !important; padding: 0 1rem 0 1.15rem !important; }
/* the orbital mark: a miniature of the identity, set before the label */
.pbtn > span::before, .mast__cta .btn__l::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .7rem; vertical-align: 1px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 1.2px, transparent 1.8px); box-shadow: 0 0 0 1px rgba(119,216,255,.75); }
@media (prefers-reduced-motion: reduce) { .btn--go::after, .sx__btn--go::after, .pbtn::after { animation: none !important; } }

/* ---------- SECONDARY: quiet glass, same geometry ---------- */
.sx__btn:not(.sx__btn--go), .btn--line, .xa__btn {
  border-radius: 12px; border: 1px solid rgba(229,231,242,.26); color: #E9ECF7;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .3s, background .3s, color .3s;
}
.sx__btn:not(.sx__btn--go):hover, .btn--line:hover, .xa__btn:hover { border-color: rgba(185,234,255,.6); color: #fff; background: linear-gradient(180deg, rgba(185,234,255,.1), rgba(255,255,255,.02)); }
.btn--line::before { display: none !important; } .btn--line:hover { color: #fff !important; }

/* ---------- THE NAVIGATION FIELD ---------- */
.menu { clip-path: none !important; background: #04060d; opacity: 0; visibility: hidden; transform: none;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), visibility 0s linear .55s; justify-content: center; padding: calc(var(--mast-h, 80px) + 3vh) 7vw max(5vh, env(safe-area-inset-bottom)); }
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .55s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.menu__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.menu__nav { z-index: 1; gap: .15rem; }
.menu__a { align-items: baseline; gap: 1.4rem; font-weight: 500; font-size: clamp(2.6rem, 7.4vw, 6.2rem); line-height: 1.04; letter-spacing: -.045em;
  opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); width: fit-content; outline: none; }
.menu-open .menu__a:nth-child(1) { transition-delay: .12s } .menu-open .menu__a:nth-child(2) { transition-delay: .18s } .menu-open .menu__a:nth-child(3) { transition-delay: .24s } .menu-open .menu__a:nth-child(4) { transition-delay: .3s }
.menu__a i { font: 500 .74rem 'IBM Plex Mono', monospace; letter-spacing: .16em; color: #8fa0c8; transition: color .4s; }
/* silver-white at rest; where the light passes, the letters catch a thin-film reflection */
.menu__a span {
  --mx: -400px; --my: -400px;
  background-image:
    radial-gradient(150px 120px at var(--mx) var(--my), #ffffff 0%, #c9f1ff 14%, #77d8ff 26%, #8b7bff 40%, #4b6fff 52%, rgba(75,111,255,0) 66%),
    linear-gradient(180deg, #f7f8ff 0%, #dfe3f0 48%, #b9c0d6 100%);
  background-size: 100% 100%; background-position: 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  transition: none; }
.menu__a:hover i, .menu__a:focus-visible i { color: #77D8FF; }
.menu__a:focus-visible span { text-decoration: underline; text-decoration-color: #77D8FF; text-decoration-thickness: 2px; text-underline-offset: .14em; -webkit-text-fill-color: #fff; }
.menu-open .menu__a { opacity: 1; transform: none; }
.menu__act { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; margin-top: 4.5vh; opacity: 0; transform: translateY(14px); transition: opacity .6s .36s, transform .8s .36s cubic-bezier(.2,.7,.2,1); }
.menu-open .menu__act { opacity: 1; transform: none; }
.menu__sub { font: 500 .74rem 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; color: #C9D0E4; text-decoration: none; border-bottom: 1px solid rgba(201,208,228,.35); padding-bottom: 4px; }
.menu__sub:hover, .menu__sub:focus-visible { color: #fff; border-color: #77D8FF; }
.menu__foot { display: none; }
@media (max-width: 760px) {
  .menu { justify-content: flex-end; padding: calc(var(--mast-h, 72px) + 2vh) 22px max(28px, env(safe-area-inset-bottom)); }
  .menu__a { font-size: clamp(2.3rem, 11.5vw, 3.4rem); gap: .9rem; padding: .15rem 0; }
  .menu__act { flex-direction: column; align-items: stretch; } .menu__act .pbtn { width: 100%; min-height: 54px; } .menu__sub { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .menu, .menu__a, .menu__act { transition: none !important; } }

/* ---------- PORTFOLIO: Atlas resolves into its project entry directly after the reveal ---------- */
.pf__item--lead { grid-template-columns: 1fr !important; padding: 1.6rem 0 2.2rem; border-bottom: 1px solid rgba(229,231,242,.1); }
.pf__item--lead .pf__txt { max-width: 62ch; }

/* ---------- FOOTER: the wordmark lit through its own letters ---------- */
.foot__warp { opacity: .4 !important; }
.foot__big__t {
  --mx: -600px; --my: -600px;
  filter: none !important; -webkit-text-stroke: 0 !important;
  background-image:
    radial-gradient(70px 56px at var(--mx) var(--my), #ffffff 0%, rgba(255,255,255,.85) 30%, rgba(255,255,255,0) 72%),
    radial-gradient(220px 170px at var(--mx) var(--my), rgba(201,241,255,.55) 0%, rgba(170,114,255,.28) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 38%, rgba(8,6,40,0) 60%, rgba(8,6,40,.42) 100%),
    linear-gradient(100deg, #7a5cff 0%, #77D8FF 12%, #E9ECFF 21%, #4f6bff 33%, #b45cff 45%, #e07bd8 52%, #77D8FF 63%, #F4F2FF 72%, #6a58ff 84%, #3fc4ff 93%, #9b6bff 100%) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 220% 100% !important;
  background-position: 0 0, 0 0, 0 0, 0% 0 !important; background-repeat: no-repeat !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; -webkit-text-fill-color: transparent !important;
  animation: footFilm 18s ease-in-out infinite alternate !important;
}
@keyframes footFilm { to { background-position: 0 0, 0 0, 0 0, 100% 0; } }
@media (prefers-reduced-motion: reduce) { .foot__big__t { animation: none !important; } }

.menu-open .mast__cta { opacity: 0; pointer-events: none; transition: opacity .3s; }
.mast__cta { transition: opacity .3s; }
.btn--go.sf-on::after, .sx__btn--go.sf-on::after, .pbtn.sf-on::after { opacity: 0; }
/* Atlas handoff: the finished page settles into its portfolio slot */
.pf { overflow-x: clip; }
.pf__vis--hand { transition: none !important; position: relative; z-index: 2; will-change: transform; }
.pf__item--atlas { position: relative; z-index: 2; }
.pf__list--lead { margin-bottom: clamp(4rem, 10vh, 7rem); }
.pf__item--atlas .pf__txt { position: relative; z-index: 1; }
.pf { padding-top: 2vh !important; }

/* ---------- HEADER: four distinct components ---------- */
.mast__in { gap: clamp(1rem, 2.4vw, 2.2rem); }
.brand { gap: .9rem; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-size: .98rem; letter-spacing: .2em; font-weight: 600;
  background: linear-gradient(100deg, #F4F5FF 0 40%, #c9f1ff 46%, #b9a2ff 50%, #F4F5FF 56% 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1.2s cubic-bezier(.2,.7,.2,1); }
.brand:hover .brand__name, .brand:focus-visible .brand__name { background-position: 0 0; }
.brand:hover .bm__o1, .brand:focus-visible .bm__o1 { stroke-opacity: 1; stroke: #c9f1ff; animation-duration: 3s; }
.brand:hover .bm__o2, .brand:focus-visible .bm__o2 { stroke-opacity: .7; stroke: #b9a2ff; animation-duration: 5s; }
.bm__o1, .bm__o2 { transition: stroke .6s, stroke-opacity .6s; }
.mast__tag--ed { display: flex; flex-direction: column; gap: .32rem; margin: 0 auto 0 0; padding-left: clamp(1rem, 2vw, 1.6rem); position: relative; letter-spacing: 0; text-transform: none; font: inherit; }
.mast__tag--ed::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: linear-gradient(180deg, transparent, rgba(119,216,255,.7), rgba(170,114,255,.6), transparent); }
.mt__k { font: 500 .62rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: #E5E7F2; }
.mt__s { font: 400 .78rem/1 var(--sans, 'Space Grotesk', sans-serif); letter-spacing: .02em; color: rgba(201,208,228,.78); white-space: nowrap; }
@media (max-width: 1100px) { .mt__s { display: none; } }
@media (max-width: 980px) { .mast__tag--ed { display: none !important; } :root { --mast-h: 76px; } .mast__in { flex-wrap: nowrap !important; padding-block: .7rem !important; } }

/* ---------- PORTFOLIO: one editorial system ---------- */
.pf__item { align-items: center; }
.pf__item--flip .pf__vis { order: 2; } .pf__item--std .pf__vis { order: 0 !important; }
.pf__item--flip .pf__ph { right: auto; left: -6%; } .pf__item--std .pf__ph { left: auto !important; right: -6% !important; }
.pf__txt h3.pf__h--one em { display: inline; font-size: 1.04em; }
.pf__txt h3.pf__h--one { white-space: nowrap; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); }
.pf__txt { align-self: center; }
.pf__list:not(.pf__list--lead) { display: grid; gap: clamp(5rem, 12vh, 9rem); }
@media (max-width: 900px) { .pf__item--flip .pf__vis, .pf__item--std .pf__vis { order: 0 !important; } .pf__txt h3.pf__h--one { white-space: normal; } }

/* ---------- INVITATION: a small optical card that emerges from the interface ---------- */
.inv { position: fixed; z-index: 70; right: clamp(14px, 2vw, 28px); bottom: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 28px));
  padding: 1.4rem 1.4rem 1.3rem; border-radius: 18px; color: #E9ECF7;
  background: linear-gradient(160deg, rgba(20,28,64,.94), rgba(6,9,22,.96)); box-shadow: inset 0 1px 0 rgba(220,235,255,.14), 0 0 0 1px rgba(119,216,255,.22), 0 30px 70px -30px rgba(0,0,0,.9), 0 0 50px -20px rgba(121,85,255,.45);
  opacity: 0; transform: translate3d(0, 18px, 0) scale(.98); transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.inv.on { opacity: 1; transform: none; }
.inv::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, rgba(255,255,255,.5), rgba(119,216,255,.5) 30%, rgba(170,114,255,.4) 60%, transparent 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.inv__x { position: absolute; top: .6rem; right: .6rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #C9D0E4; font-size: 1.4rem; line-height: 1; }
.inv__x:hover, .inv__x:focus-visible { color: #fff; background: rgba(255,255,255,.06); }
.inv__k { margin: 0; font: 500 .66rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #77D8FF; }
.inv__h { margin: .7rem 2rem 0 0; font: 600 1.32rem/1.2 var(--sans, 'Space Grotesk', sans-serif); letter-spacing: -.02em; color: #fff; }
.inv__p { margin: .7rem 0 1.1rem; font-size: .95rem; line-height: 1.5; color: rgba(229,231,242,.85); }
.inv__go { width: 100%; }
@media (max-width: 600px) { .inv { left: 12px; right: 12px; width: auto; padding: 1.05rem 1.05rem 1rem; } .inv__h { font-size: 1.1rem; } .inv__p { font-size: .88rem; margin-bottom: .85rem; } }
@media (prefers-reduced-motion: reduce) { .inv { transition: none; } }
/* systems: less scroll before and during the unfold */
.xa { height: 300vh !important; }
@media (max-width: 760px) { .xa { height: 320vh !important; } }
.brand__name { white-space: nowrap; }
@media (max-width: 620px) { .brand__name { font-size: .8rem; letter-spacing: .14em; } .brand { gap: .55rem; } .brand__mark { width: 26px; height: 26px; } }
@media (max-width: 600px) { .inv__p { display: none; } .inv__h { margin-bottom: .8rem; } .inv__go { letter-spacing: .1em; font-size: .66rem; white-space: nowrap; padding: 0 .9rem; } }
.pbtn i { display: inline-block; position: relative; flex: 0 0 auto; }
.pbtn i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
/* systems heading: one line per phrase on phones */
@media (max-width: 760px) { #xa-h { font-size: clamp(1.15rem, 6.4vw, 1.7rem); line-height: 1.12; } #xa-h em { display: block; white-space: nowrap; } }
