/* QUBESHIFT landing page. All styles are isolated to this document. */
:root {
  color-scheme: dark;
  --background: #0a0b0d;
  --surface: #191c21;
  --text: #eef0f3;
  --muted: #a2a6af;
  --border: #272a30;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: #c5cfdf; color: #0a0b0d; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #e6ecf6; outline-offset: 6px; border-radius: 3px; }
svg { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 16px; padding: 10px 18px; background: var(--text); color: var(--background); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid #ffffff0d; }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 1.12rem; font-weight: 650; letter-spacing: .14em; }
.brand-mark { display: block; width: 44px; height: 44px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 34px; }
nav a { font-size: .8125rem; letter-spacing: .04em; color: var(--muted); padding-block: 10px; transition: color .2s; }
nav a:hover, nav a[aria-current] { color: #fff; }
nav a[aria-current] { position: relative; }
nav a[aria-current]::after { content: ""; width: 14px; height: 1px; background: #e1e4eb; position: absolute; bottom: 3px; left: calc(50% - 7px); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 660px; padding-top: 42px; padding-bottom: 105px; }
.hero-copy { position: relative; z-index: 1; animation: entrance .9s ease-out both; }
.eyebrow { color: #a8adb7; font-size: .75rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 500; }
.hero h1 { font-size: 1rem; letter-spacing: .3em; font-weight: 550; margin-top: 35px; margin-bottom: 12px; }
.hero-tagline { font-size: clamp(3rem, 5.2vw, 4.75rem); font-weight: 550; letter-spacing: -.055em; line-height: 1.09; }
.hero-tagline span { color: #acb1ba; background: linear-gradient(110deg, #ecedf1 10%, #9da4b1 35%, #fff 50%, #9da4b1 65%, #ecedf1 90%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: silver-sweep 12s ease-in-out infinite; }
.hero-description { max-width: 470px; color: var(--muted); font-size: 1.0625rem; line-height: 1.85; margin-top: 27px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; padding: 10px 19px; border: 1px solid #3b3e45; border-radius: 5px; font-size: .875rem; font-weight: 500; color: #e1e3e8; background: #ffffff03; transition: border-color .2s, background .2s, transform .2s; }
.button:hover { border-color: #9298a4; background: #ffffff09; transform: translateY(-2px); }
.button-primary { margin-top: 33px; background: #e8ebf0; color: #17191d; border-color: #e8ebf0; box-shadow: 0 3px 22px #ffffff05; }
.button-primary:hover { background: #fff; border-color: #fff; }
.hero-art { position: relative; min-width: 0; aspect-ratio: 1; overflow: hidden; overflow: clip; isolation: isolate; animation: entrance 1.2s .1s ease-out both; }
.hero-grid { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #0009, transparent 68%); mask-image: radial-gradient(ellipse at 70% 45%, #0009, transparent 68%); }
.hero-grid::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#bac9e00d 1px, transparent 1px), linear-gradient(90deg, #bac9e00d 1px, transparent 1px); background-size: 64px 64px; }
.logo-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero-logo {
  display: block;
  width: 59%;
  height: auto;
  filter: drop-shadow(0 16px 24px #0008);
}
.logo-cage, .logo-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.logo-cage { color: #d7d7d7; filter: drop-shadow(0 0 5px #fff6); }
.logo-stage[data-rendered] :is(.hero-logo, .logo-cage) { visibility: hidden; }
.motion-toggle { font: inherit; color: #b9c1cd; cursor: pointer; background: transparent; border: 1px solid #383e49; border-radius: 20px; padding: 4px 13px; letter-spacing: .02em; }
.motion-toggle:hover { color: #fff; border-color: #808b9d; }
.motion-toggle[hidden] { display: none; }
.art-caption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .75rem; color: #8f96a3; letter-spacing: .16em; text-transform: uppercase; }
.hero-bottom { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: space-between; gap: 20px; color: #9298a3; font-size: .75rem; letter-spacing: .08em; }
.scroll-label { display: flex; align-items: center; gap: 15px; }
.scroll-label span { font-size: 1.2rem; color: #bec4ce; }
.projects { border-top: 1px solid var(--border); padding-top: 75px; padding-bottom: 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 39px; }
h2 { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
.section-heading h2 { margin-top: 17px; }
.section-heading > p { color: var(--muted); font-size: 1rem; line-height: 1.8; padding-bottom: 3px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid #343942; background: #343942; }
.project-card { position: relative; isolation: isolate; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 30px; transition: background .3s, box-shadow .3s; }
.project-card:hover, .project-card:focus-within { background: #20252c; box-shadow: inset 0 2px #aebbd1; }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(350px circle at var(--light-x, 50%) var(--light-y, 25%), #c3d3ed16, transparent 75%); transition: opacity .4s; }
.project-card:hover::before, .project-card:focus-within::before { opacity: 1; }
.project-card .button:focus-visible { outline-offset: -3px; }
.project-art svg circle { transform-box: fill-box; transform-origin: center; }
.typhon:is(:hover, :focus-within) .project-art circle { animation: node-pulse 2s ease-in-out 2; }
.talq:is(:hover, :focus-within) .project-art circle { animation: message-bounce 1.2s ease-in-out 2; }
.talq .project-art circle:nth-child(2) { animation-delay: .15s; }
.talq .project-art circle:nth-child(3) { animation-delay: .3s; }
.cronim:is(:hover, :focus-within) .project-art circle:first-child { animation: ring-sweep 4s ease-in-out 1; }
.project-art { padding: 16px 15px 0; }
.project-art svg { height: 220px; transition: transform .5s; }
.project-card:hover .project-art svg { transform: scale(1.035); }
.project-content { padding: 29px 28px 30px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.project-category { font-size: .875rem; color: #b9c3d3; line-height: 1.6; margin-top: 12px; min-height: 45px; }
h3 { font-size: 1.35rem; line-height: 1.3; font-weight: 600; letter-spacing: .035em; }
.project-description { color: var(--muted); font-size: 1rem; line-height: 1.85; margin-top: 17px; margin-bottom: 29px; }
.project-content .button { margin-top: auto; width: 100%; justify-content: flex-start; min-height: 49px; padding: 20px 0 0; border: 0; border-top: 1px solid #383d47; border-radius: 0; background: transparent; }
.project-content .button:hover { color: #fff; background: transparent; transform: none; border-color: #8a94a5; }
.statement { display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: 65px; border-top: 1px solid var(--border); padding-block: 75px 85px; }
.statement-symbol { display: flex; justify-content: center; }
.statement-symbol img { width: 160px; height: 160px; object-fit: contain; }
.statement h2 { font-size: clamp(1.8rem, 2.7vw, 2.4rem); margin-top: 18px; }
.statement p:last-child { color: var(--muted); max-width: 590px; font-size: 1rem; margin-top: 19px; line-height: 1.85; }
.site-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding-block: 34px 40px; border-top: 1px solid var(--border); }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-size: .875rem; letter-spacing: .16em; font-weight: 600; }
.footer-brand img { object-fit: contain; }
.site-footer p { font-size: .75rem; color: #969ca7; margin-top: 8px; }
.site-footer .copyright { white-space: nowrap; }

/* Editorial navigation and section introductions. */
.project-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--border); }
.project-directory a { display: flex; align-items: center; gap: 18px; min-height: 112px; padding: 22px 25px; color: var(--text); transition: background .25s; }
.project-directory a + a { border-left: 1px solid var(--border); }
.project-directory a:hover { background: #ffffff04; }
.project-directory strong { display: block; font-size: 1.25rem; font-weight: 500; letter-spacing: .04em; }
.project-directory small { display: block; margin-top: 4px; font-size: .8125rem; color: var(--muted); line-height: 1.5; letter-spacing: 0; }
.directory-symbol { font-size: 2rem; font-weight: 300; color: #aebbd1; }
.editorial-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 65px; align-items: start; margin-bottom: 46px; }
.editorial-heading .section-label { padding-top: 19px; border-top: 1px solid #6e7888; max-width: 220px; line-height: 1.9; color: #b3bdcd; }
.editorial-heading h2 { margin: 0; font-size: clamp(2rem, 3.65vw, 3.25rem); }
.editorial-heading h2 span, .approach-heading h2 span { color: #a9b3c3; }
.section-introduction { margin-top: 27px; color: #c0c5cf; font-size: 1.0625rem; line-height: 1.85; max-width: 690px; }
.section-note { margin-top: 15px; color: var(--muted); font-size: 1rem; }
.grid-caption { margin-bottom: 20px; }
.project-status { font-size: .75rem; color: #aeb8c9; padding-bottom: 15px; line-height: 1.6; }
.technology-tags { display: flex; flex-wrap: wrap; align-content: start; gap: 8px; margin: 0 0 32px; }
.technology-tags span { padding: 5px 9px; font-size: .75rem; border: 1px solid #48505e; color: #c7d0df; border-radius: 3px; background: #ffffff03; }
.typhon { --identity: #b6cbe8; }
.talq { --identity: #c2d4d8; }
.cronim { --identity: #cbc4dc; }
.project-card .project-status { color: var(--identity); }
.project-card h3 { font-size: 1.7rem; }
.project-card .project-description { flex: 1; }
.project-content .button { position: relative; padding-bottom: 4px; }
.project-content .button::after { content: "+"; font-size: 1.25rem; margin-left: auto; color: var(--identity); transition: transform .3s; }
.project-content .button:hover::after { transform: rotate(90deg); }

/* Architecture overview and native, keyboard-accessible detail panels. */
.perspective { padding-block: 75px 85px; border-top: 1px solid var(--border); }
.perspective-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 54px; align-items: start; }
.ecosystem-map { position: sticky; top: 32px; padding: 35px 25px; border: 1px solid #343942; background: radial-gradient(ellipse at 50% 35%, #8c9bb21c, transparent 65%), #12151a; }
.ecosystem-map > .eyebrow { text-align: center; font-size: .6875rem; }
.map-core { display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.map-core img { object-fit: contain; }
.map-core > span { font-size: .875rem; letter-spacing: .2em; margin-top: 6px; }
.map-branches { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto; width: 70%; height: 70px; padding-top: 35px; position: relative; }
.map-branches::before { content: ""; position: absolute; left: 50%; top: 0; height: 35px; border-left: 1px solid #657287; }
.map-branches span { border-top: 1px solid #657287; position: relative; }
.map-branches span::after { content: ""; height: 35px; position: absolute; top: 0; left: 50%; border-left: 1px solid #657287; }
.map-branches span:first-child { margin-left: 50%; }
.map-branches span:first-child::after { left: 0; }
.map-branches span:last-child { margin-right: 50%; }
.map-branches span:last-child::after { left: auto; right: 0; }
.map-projects { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 10px; text-align: center; }
.map-projects > div { border: 1px solid #394353; padding: 13px 6px; background: #171c24; }
.map-projects strong { font-size: .8125rem; font-weight: 550; letter-spacing: .05em; display: block; }
.map-projects span { font-size: .75rem; color: var(--muted); display: block; margin-top: 3px; }
.map-caption { color: var(--muted); font-size: .75rem; margin-top: 35px; text-align: center; }
.project-notes { min-width: 0; }
.project-notes details { border-top: 1px solid #434c5a; }
.project-notes details:last-of-type { border-bottom: 1px solid #434c5a; }
.project-notes summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; list-style: none; cursor: pointer; font-size: 1.35rem; line-height: 1.45; letter-spacing: -.025em; }
.project-notes summary::-webkit-details-marker { display: none; }
.project-notes summary small { display: block; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: #aebbd1; margin-bottom: 10px; }
.project-notes summary:focus-visible { outline: 2px solid #d4dfef; outline-offset: 6px; }
.project-notes summary:hover { color: #c6d3e8; }
.detail-plus { flex: 0 0 22px; width: 22px; height: 22px; position: relative; }
.detail-plus::before, .detail-plus::after { content: ""; width: 16px; height: 1px; background: #c1ccdf; position: absolute; left: 3px; top: 10px; transition: transform .25s; }
.detail-plus::after { transform: rotate(90deg); }
details[open] .detail-plus::after { transform: rotate(0); }
.detail-body { padding: 0 3px 30px 0; color: #b3bbc8; font-size: 1rem; line-height: 1.85; }
.detail-body > p + p { margin-top: 17px; }
.detail-body h3 { font-size: .875rem; letter-spacing: .025em; font-weight: 550; color: #e0e6ef; margin: 27px 0 14px; }
.technical-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.technical-list li { font-size: .875rem; padding: 10px 0 10px 14px; border-bottom: 1px solid #2e3540; position: relative; }
.technical-list li::before { content: "·"; position: absolute; left: 0; color: #c3d1e8; }
.detail-body .detail-footnote { font-size: .875rem; border-left: 1px solid #5f6e83; padding-left: 16px; margin-top: 25px; }
.future-note { font-size: .875rem; margin-top: 23px; }
.future-note span { display: inline-block; color: #d6dfed; border: 1px dashed #6b7b94; padding: 2px 8px; margin-right: 6px; font-size: .75rem; }
.scope-note { font-size: .75rem; color: #a8b0bf; margin-top: 24px; line-height: 1.8; }

/* Company philosophy and closing editorial band. */
.approach { padding-block: 70px 90px; border-top: 1px solid var(--border); }
.approach-heading { max-width: 760px; margin-bottom: 36px; }
.approach-heading h2 { margin-top: 20px; }
.approach-heading > p:last-child { margin-top: 24px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #343942; background: #343942; gap: 1px; }
.principle-grid article { position: relative; padding: 38px 30px 45px; background: #101318; overflow: hidden; }
.principle-grid article:nth-child(2) { background: #171c23; }
.principle-grid .eyebrow { padding-top: 10px; color: #b6c3d8; }
.principle-grid h3 { font-size: 1.4rem; line-height: 1.45; letter-spacing: -.035em; margin-top: 42px; }
.principle-grid article > p:last-child { color: #aeb7c5; font-size: 1rem; line-height: 1.85; margin-top: 20px; }
.principle-icon { position: absolute; right: 25px; top: 30px; font-size: 2rem; line-height: 1; color: #9caecb; }
.vision-band { border-block: 1px solid #343942; padding-block: 26px; background: #171c22; }
.vision-band > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 25px; }
.vision-band span { font-size: clamp(1.7rem, 3.8vw, 3.3rem); font-weight: 400; letter-spacing: -.055em; color: #d5dce6; }
.vision-band span:nth-child(2) { color: #a9b9d1; }
.statement { border-top: 0; }
.text-link { display: inline-block; padding-block: 8px; margin-top: 20px; border-bottom: 1px solid #69768b; font-size: .875rem; }
.text-link:hover { color: #b6c9e7; border-color: #b6c9e7; }
@keyframes entrance { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes silver-sweep { 0%, 20%, 100% { background-position: 0% 50%; } 60% { background-position: 100% 50%; } }
@keyframes node-pulse { 50% { opacity: .5; transform: scale(.7); } }
@keyframes message-bounce { 0%, 70%, 100% { transform: translateY(0); } 35% { transform: translateY(-7px); } }
@keyframes ring-sweep { to { stroke-dashoffset: -280; } }
/* Continuous effects start only after the optional motion control is available. */
.hero-tagline span { animation-play-state: paused; }
html[data-motion="playing"] .hero-tagline span { animation-play-state: running; }
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after,
html[data-idle="true"] *, html[data-idle="true"] *::before, html[data-idle="true"] *::after { animation-play-state: paused !important; }
html[data-motion="paused"] .hero-copy, html[data-motion="paused"] .hero-art { animation: none; }
@media (min-width: 1500px) { .hero { min-height: 800px; } }
@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .hero { min-height: 670px; grid-template-columns: 1.15fr 1fr; }
  .hero-tagline { font-size: clamp(2.8rem, 5.8vw, 4rem); }
  .hero-art { margin-left: -25px; margin-right: -20px; }
  .project-grid { gap: 1px; }
  .project-content { padding: 24px 20px; }
  .project-art svg { height: 185px; }
  .project-category { min-height: 39px; }
  .statement { gap: 40px; }
  .project-directory a { padding: 18px 15px; gap: 12px; }
  .project-directory small { font-size: .75rem; }
  .editorial-heading { gap: 40px; }
  .perspective-layout { gap: 28px; grid-template-columns: 1fr 1.15fr; }
  .ecosystem-map { padding-inline: 15px; }
  .technical-list { grid-template-columns: 1fr; }
  .principle-grid article { padding: 30px 22px; }
}
@media (max-width: 740px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 112px; padding-block: 20px 12px; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .brand { font-size: 1rem; }
  .brand-mark { height: 38px; width: 38px; }
  nav { width: 100%; justify-content: center; gap: clamp(18px, 6vw, 35px); }
  nav a { font-size: .75rem; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 65px; min-height: auto; }
  .hero-copy { display: contents; }
  .hero { text-align: center; }
  .eyebrow { font-size: .6875rem; letter-spacing: .13em; }
  .hero h1 { margin-top: 20px; font-size: .875rem; }
  .hero-tagline { font-size: clamp(2.9rem, 10vw, 4.2rem); }
  .hero-art { grid-row: 4; width: min(350px, 100%); margin: 0 auto; }
  .hero-description { margin: 17px auto 0; font-size: 1rem; max-width: 440px; }
  .button-primary { margin-top: 24px; justify-self: center; }
  .art-caption { bottom: 0; font-size: .6875rem; }
  .hero-bottom { bottom: 16px; justify-content: center; }
  .hero-bottom > span:first-child { display: none; }
  .hero-bottom { align-items: center; flex-wrap: wrap; gap: 8px 24px; }
  .projects { padding-block: 48px 55px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 20px; }
  .project-grid { grid-template-columns: 1fr; gap: 1px; }
  .project-art svg { height: 220px; }
  .project-content { padding: 27px; }
  .project-category { min-height: auto; font-size: .8125rem; }
  .project-description { font-size: 1rem; }
  .project-content .button { width: 100%; }
  .statement { grid-template-columns: 1fr; gap: 25px; padding-block: 42px 50px; }
  .statement-symbol { justify-content: flex-start; }
  .statement-symbol img { width: 90px; height: 90px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 28px; }
  .site-footer p { line-height: 1.8; }
  .project-directory { width: 100%; }
  .project-directory a { min-height: 88px; padding: 15px 8px; justify-content: center; }
  .project-directory strong { font-size: .8125rem; }
  .project-directory small { display: none; }
  .directory-symbol { font-size: 1.25rem; }
  .editorial-heading .section-label { font-size: .6875rem; margin: 0 0 30px; max-width: 250px; }
  .editorial-heading h2 { font-size: clamp(2rem, 7.3vw, 3rem); }
  .editorial-heading .section-introduction { font-size: 1rem; }
  .project-category { min-height: auto; }
  .perspective { padding-block: 48px 55px; }
  .perspective-layout { grid-template-columns: 1fr; gap: 35px; }
  .ecosystem-map { position: static; padding: 28px 16px; }
  .technical-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
  .project-notes summary { font-size: 1.2rem; }
  .approach { padding-block: 48px 55px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { padding: 30px 26px; }
  .principle-grid h3 { margin-top: 32px; }
  .vision-band { padding-block: 21px; }
  .vision-band > div { gap: 6px 18px; }
  .vision-band span { font-size: clamp(1.3rem, 4.5vw, 2rem); }
}
@media (max-width: 380px) { .technical-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .project-card:hover, .button:hover, .project-card:hover .project-art svg { transform: none; }
}
