/* ============================================================
   GIBLEX — parent company site
   Charcoal and steel. The products carry the colour: each one is
   shown as a real piece of itself (FyneX's own window, a Memory MCP
   record, Phantom's emblems); everything around them stays quiet.
   ============================================================ */

:root {
  --char:   #16181B;
  --line:   #3A3E44;
  --text:   #ECEEF0;
  --dim:    #A3AAB2;
  --steel:  #A9BCCD;
  --steel-2:#C3D1DD;
  --sans:   'Instrument Sans', system-ui, sans-serif;
  --word:   'Jost', system-ui, sans-serif;
  --mono:   'IBM Plex Mono', ui-monospace, monospace;
  --max:    1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--text); background: var(--char); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(78vw, var(--max)); max-width: none; margin: 0 auto; padding: 0; }
@media (max-width: 900px) { .wrap { width: calc(100% - 48px); } }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* type scale: 17 / 21 / 28 / 36 / 56 */
h1, h2, h3 { font-weight: 600; margin: 0; }
.t-display { font-size: clamp(2.3rem, 5.4vw, 3.5rem); line-height: 1.06; letter-spacing: -.028em; max-width: 18ch; }
.t-title   { font-size: clamp(1.75rem, 3.4vw, 2.25rem); line-height: 1.12; letter-spacing: -.02em; }
.t-sub     { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; }
.t-lead    { font-size: 1.24rem; line-height: 1.55; color: var(--dim); max-width: 34em; }
.dim { color: var(--dim); }
.measure { max-width: 36em; }

/* — links and buttons — */
.link { color: var(--steel); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.link:hover { color: var(--steel-2); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.25rem; border-radius: 999px; line-height: 1.3;
  border: 1px solid var(--line); color: var(--text); text-decoration: none;
  font-weight: 500; font-size: .95rem; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--steel); }
.btn--primary { background: var(--steel); border-color: var(--steel); color: #17191C; }
.btn--primary:hover { background: var(--steel-2); border-color: var(--steel-2); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* — header — */
/* The header is the same on every page of the site, whatever the page's own background.
   Colours are fixed here on purpose so page palettes (light Memory MCP, darker FyneX) can't change it. */
.site-head { border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(19,21,24,.55); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); position: sticky; top: 0; z-index: 50; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.site-head.is-scrolled { background: rgba(14,16,18,.78); border-bottom-color: rgba(255,255,255,.09); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
body:has(.intro-cover) .site-head { position: absolute; top: 0; left: 0; right: 0; width: 100%; border-bottom-color: rgba(62, 101, 116, .24); background: linear-gradient(180deg, rgba(4, 10, 16, .38) 0%, rgba(4, 10, 16, .22) 70%, rgba(4, 10, 16, .04) 100%); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
body:has(.intro-cover) .site-head.is-scrolled { position: fixed; background: linear-gradient(180deg, rgba(3, 7, 11, .88) 0%, rgba(4, 8, 12, .76) 100%); border-bottom-color: rgba(93, 112, 121, .18); box-shadow: 0 8px 28px rgba(0, 0, 0, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-head .brand { color: #ECEEF0; }
.site-head .tab { color: #A3AAB2; }
.site-head .tab:hover, .site-head .tab[aria-current="page"] { color: #ECEEF0; }
.site-head .tab[aria-current="page"]::after { background: #A9BCCD; }
.site-head .menu-toggle { color: #ECEEF0; border-color: #2A2D31; }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--word); font-weight: 500; font-size: 1.05rem; letter-spacing: .26em; }
.brand-logo { display: block; flex: none; }
.brand-wrap { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.brand-suite { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-left: .9rem; border-left: 1px solid #3A3E44; white-space: nowrap; text-decoration: none; }
.praxis-head .brand-suite { padding-left: 0; border-left: 0; }
.praxis-head .brand-suite-separator { color: var(--steel); font-size: 1rem; letter-spacing: 0; }
.brand-suite-logo { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.brand-suite:hover { color: var(--text); }
@media (max-width: 420px) { .brand-suite { display: none; } }
.tabs { display: flex; align-items: center; gap: 1.6rem; }
.tab { position: relative; font-size: .95rem; color: var(--dim); text-decoration: none; padding: .4rem 0; }
.tabs .tab-dd__btn { font-size: .95rem; }
.tab:hover { color: var(--text); }
.tab.praxis-tab { display: inline-flex; align-items: center; gap: .38rem; }
.tab.praxis-tab img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -13px; height: 2px; background: var(--steel); }
.menu-toggle { display: none; font: 500 .85rem var(--sans); color: var(--text); background: none; border: 1px solid var(--line); padding: .35rem .95rem; border-radius: 999px; cursor: pointer; }

/* — Praxis consolidated suite dropdown — */
.praxis-nav { display: flex; align-items: center; gap: 1.6rem; }
.praxis-nav .has-menu { position: relative; }
.praxis-nav .menu-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 0; background: none; padding: .4rem 0;
  color: #A3AAB2; font: 400 .95rem var(--sans); cursor: pointer;
}
.praxis-nav .menu-btn:hover,
.praxis-nav .has-menu.open .menu-btn { color: #ECEEF0; }
.praxis-nav .tab-dd__caret { font-size: .7em; opacity: .72; transition: transform .2s ease; }
.praxis-nav .has-menu.open .tab-dd__caret { transform: rotate(180deg); }
.praxis-nav .dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  display: flex; flex-direction: column; min-width: 240px;
  margin: 0; padding: .4rem;
  list-style: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  background: rgba(20,24,29,.94);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.praxis-nav .has-menu.open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.praxis-nav .dropdown a {
  display: block; padding: .58rem .7rem; border-radius: 9px;
  color: #DCE2E6; text-decoration: none; font-size: .94rem;
}
.praxis-nav .dropdown a:hover,
.praxis-nav .dropdown a:focus-visible { color: #FFF; background: rgba(255,255,255,.10); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .tabs { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #151719; border-bottom: 1px solid #2A2D31; padding: .25rem 16px 1rem; }
  .tabs.open { display: flex; }
  .tab { padding: .85rem 0; border-bottom: 1px solid #34373C; }
  .tab[aria-current="page"]::after { display: none; }
  .praxis-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 16px 1rem; background: rgba(21,23,25,.98); border-bottom: 1px solid #2A2D31; }
  .praxis-nav.open { display: flex; }
  .praxis-nav .has-menu { width: 100%; }
  .praxis-nav .menu-btn { width: 100%; justify-content: space-between; padding: .85rem 0; color: #ECEEF0; }
  .praxis-nav .dropdown { position: static; min-width: 0; width: 100%; margin: 0; padding: 0 0 .4rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .praxis-nav .has-menu:not(.open) .dropdown { display: none; }
  .praxis-nav .dropdown a { padding: .72rem .7rem; border-bottom: 1px solid #34373C; border-radius: 0; }
}

/* — page rhythm — */
main > section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
main > section + section { border-top: 1px solid var(--line); }
main > section.opening { padding-top: clamp(4rem, 10vw, 7.5rem); }
.opening .praxis-logo { width: 180px; height: 180px; object-fit: contain; margin: 0 0 1.5rem; }
.opening .praxis-hero-brand { display: flex; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.opening .praxis-hero-brand img { width: 128px; height: 128px; object-fit: contain; flex: none; }
.opening .praxis-hero-brand .t-display { margin: 0; }
@media (max-width: 640px) { .opening .praxis-hero-brand { gap: 1.25rem; } .opening .praxis-hero-brand img { width: 96px; height: 96px; } }
.opening .t-lead { margin-top: 1.5rem; }
.section-intro .t-lead, .section-intro > p { margin-top: 1rem; }

/* — home: the brand banner — */
.ecosystem > section.banner { padding: 0; overflow: hidden; position: relative; }
body:has(.intro-cover) main > .ecosystem > section.banner { border-bottom: 1px solid rgba(40,55,62,.28); }
.banner img {
  display: block; width: 100%; max-width: 1140px; height: auto; margin: 0 auto;
}
.ecosystem > section.banner + section.opening { padding-top: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 640px) { .banner img { width: 130%; max-width: none; margin-left: -15%; } }
.ecosystem > section.banner img {
  -webkit-mask-image: linear-gradient(180deg, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 92%, transparent 100%);
}

/* — home: the product index — */
.product { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.product:first-child { grid-template-columns: 1fr; }
.product__name img.praxis-home-logo { width: 96px; height: 96px; border-radius: 0; background: transparent; padding: 0; object-fit: contain; filter: none; }
.product + .product { margin-top: clamp(4.5rem, 10vw, 7.5rem); }
.product__name { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.product__name img { width: 64px; height: 64px; border-radius: 0; background: transparent; padding: 0; object-fit: contain; flex: none; }
.product__name img.praxis-product-logo { width: 64px; height: 64px; border-radius: 0; background: transparent; padding: 0; object-fit: contain; }
.product__name img.praxis-product-logo--round { border-radius: 14px; }
.product__name img.phantom-icon { width: 164px; height: 164px; padding: 0; border-radius: 0; background: transparent; object-fit: contain; }
.product__name a { text-decoration: none; }
.product__name a:hover { color: var(--steel-2); }
.product p { color: var(--dim); max-width: 30em; }
.product .state { font-size: .95rem; color: var(--steel); margin: 1.25rem 0 0; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }

/* — FyneX artefact: a slice of FyneX's own Activity view, in its own light UI — */
.fx {
  --fx-bg: #e9ecf2; --fx-surface: #fff; --fx-line: #d8dde7; --fx-ink: #1c2130; --fx-ink-2: #5b6470; --fx-ink-3: #878f9c;
  --fx-ok: #1a7f37; --fx-warn: #9a6700; --fx-warn-soft: #fdf5e3;
  background: var(--fx-bg); color: var(--fx-ink); border-radius: 12px; overflow: hidden;
  font: 13px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.fx__bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--fx-surface); border-bottom: 1px solid var(--fx-line); }
.fx__bar img { width: 22px; height: 22px; }
.fx__bar b { font-weight: 650; }
.fx__mode { margin-left: auto; font-size: 12px; color: var(--fx-ink-2); background: #f4f6fa; border: 1px solid var(--fx-line); border-radius: 999px; padding: 2px 10px; }
.fx__list { margin: 12px; background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: 11px; }
.fx__row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 10px 12px; align-items: baseline; }
.fx__row + .fx__row { border-top: 1px solid #eef1f5; }
.fx__time { color: var(--fx-ink-3); font-variant-numeric: tabular-nums; }
.fx__file { font-weight: 600; overflow-wrap: anywhere; }
.fx__to { display: block; color: var(--fx-ink-2); overflow-wrap: anywhere; }
.fx__why { display: block; color: var(--fx-ink-3); font-size: 12px; }
.fx__tag { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--fx-ok); }
.fx__row--ask { background: var(--fx-warn-soft); }
.fx__row--ask .fx__tag { color: var(--fx-warn); }
@media (max-width: 480px) { .fx__row { grid-template-columns: 1fr auto; } .fx__time { display: none; } }

/* — Memory MCP artefact: a stored memory, as the worker returns it — */
.mem { background: #17191C; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font: 13.5px/1.6 var(--mono); color: #C9D1D9; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.mem__head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font: 500 .9rem var(--sans); color: var(--dim); }
.mem__head img { width: 24px; height: 24px; border-radius: 6px; background: #fff; padding: 2px; }
.mem pre { margin: 0; padding: 1rem 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.mem .k { color: #8FA6BA; }
.mem .s { color: #D6E2EC; }
.mem .n { color: #9CCFD8; }
.mem .c { color: #6F7780; }

/* — Conflux artefact: a slice of the task + calendar view — */
.conflux {
  --cf-bg: #eef1f5; --cf-surface: #fff; --cf-line: #d9dee7; --cf-ink: #202633; --cf-ink-2: #667080; --cf-ink-3: #929aa7; --cf-accent: #5f7890;
  background: var(--cf-bg); color: var(--cf-ink); border: 1px solid var(--cf-line); border-radius: 12px; overflow: hidden;
  font: 13px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.conflux__bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--cf-surface); border-bottom: 1px solid var(--cf-line); }
.conflux__bar img { width: 22px; height: 22px; border-radius: 6px; }
.conflux__bar b { font-weight: 650; }
.conflux__bar > span:not(.conflux__date) { color: var(--cf-ink-2); }
.conflux__date { margin-left: auto; color: var(--cf-ink-3); font-size: 12px; }
.conflux__body { display: grid; grid-template-columns: 1.25fr .9fr; gap: 12px; padding: 12px; }
.conflux__tasks, .conflux__calendar { background: var(--cf-surface); border: 1px solid var(--cf-line); border-radius: 10px; overflow: hidden; }
.conflux__label { padding: 8px 11px 6px; color: var(--cf-ink-3); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.conflux__task { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; padding: 9px 11px; border-top: 1px solid #edf0f4; }
.conflux__task time { color: var(--cf-ink-3); font-size: 11px; white-space: nowrap; }
.conflux__check { width: 15px; height: 15px; border: 1px solid #aab2bf; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: #fff; }
.conflux__task--done .conflux__check { background: var(--cf-accent); border-color: var(--cf-accent); }
.conflux__task--done > span:nth-child(2) { color: var(--cf-ink-3); text-decoration: line-through; }
.conflux__week, .conflux__days { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; }
.conflux__week { padding: 9px 6px 5px; color: var(--cf-ink-3); font-size: 9px; font-weight: 650; }
.conflux__days { padding: 0 6px 9px; }
.conflux__days b { padding: 5px 0; font-weight: 600; }
.conflux__today { color: #fff; background: var(--cf-accent); border-radius: 6px; }
.conflux__event { display: flex; gap: 8px; margin: 0 9px 8px; padding: 8px; background: #edf2f6; border-left: 2px solid var(--cf-accent); border-radius: 6px; }
.conflux__event strong { font-size: 10px; white-space: nowrap; }
.conflux__event span { color: var(--cf-ink-2); font-size: 11px; }
.conflux__event--soft { border-left-color: #aab7c4; background: #f4f6f8; }
@media (max-width: 480px) { .conflux__body { grid-template-columns: 1fr; } }

/* — Phantom artefact — */
.plate { display: flex; align-items: center; justify-content: center; background: transparent; }
.plate img { width: 100%; height: auto; }
.plate--compact { width: min(70%, 420px); margin: 0 auto; }
/* phantom banner shown a little smaller than the praxis one */
.plate--sm img { max-width: 80%; }

/* Phantom Suite nav dropdown */
.tab-dd { position: relative; display: inline-flex; }
.tab-dd__btn { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; padding: 0; }
.tab-dd__caret { font-size: .7em; opacity: .75; transition: transform .2s ease; }
.tab-dd.open .tab-dd__caret { transform: rotate(180deg); }
.tab-dd__menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 230px;
  /* translucent acrylic: the page underneath supplies the colour */
  background: rgba(24,29,34,.48); backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: .4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.tab-dd.open .tab-dd__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.tab-dd__menu a { display: block; padding: .55rem .8rem; border-radius: 9px; color: #E4E8EB !important; text-decoration: none; font-size: .95rem; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.tab-dd__menu a:hover, .tab-dd__menu a:focus-visible { background: rgba(255,255,255,.12); color: #FFFFFF !important; }

/* Match the dropdown to the page underneath it. */
body.praxis-page .tab-dd__menu {
  background: rgba(30,34,39,.46);
  border-color: rgba(190,205,215,.18);
}
body.page-phantom .tab-dd__menu {
  background: rgba(10,17,27,.44);
  border-color: rgba(120,170,190,.20);
}
body.page-phantom .tab-dd__menu a { color: #D4E2E8 !important; }
body.page-phantom .tab-dd__menu a:hover,
body.page-phantom .tab-dd__menu a:focus-visible { background: rgba(80,130,150,.18); color: #F1F8FA !important; }
body:has(.intro-cover) .tab-dd__menu {
  background: rgba(235,242,243,.48);
  border-color: rgba(25,55,64,.16);
  box-shadow: 0 24px 60px rgba(20,35,40,.18);
}
body:has(.intro-cover) .tab-dd__menu a { color: #17323A !important; }
body:has(.intro-cover) .tab-dd__menu a:hover,
body:has(.intro-cover) .tab-dd__menu a:focus-visible { background: rgba(35,110,120,.12); color: #102A31 !important; }
@media (max-width: 760px) {
  .tab-dd { display: block; }
  .tab-dd__menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; box-shadow: none; margin: .4rem 0 .2rem; display: none; }
  .tab-dd.open .tab-dd__menu { display: block; }
}

/* — about and contact — */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); }
.split p { color: var(--dim); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: .25rem 1rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list span { color: var(--dim); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* — product pages — */
.page-hero { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-hero .t-lead { margin-top: 1.4rem; }
.app-mark { width: 76px; height: 76px; border-radius: 0; background: transparent; padding: 0; object-fit: contain; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .page-hero { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; counter-reset: step; max-width: 44em; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); color: var(--steel); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps b { font-weight: 600; }
.steps p { color: var(--dim); margin: .25rem 0 0; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin: 2.5rem 0 0; }
.facts div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: .3rem 0 0; color: var(--dim); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

.layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid var(--steel); }
.layers code { font-family: var(--mono); font-size: .9rem; color: var(--steel); }
.layers p { color: var(--dim); font-size: .95rem; margin: .4rem 0 0; }
@media (max-width: 760px) { .layers { grid-template-columns: 1fr 1fr; } }

code.inline { font-family: var(--mono); font-size: .88em; color: var(--steel-2); }

/* — Praxis / cinematic hero overrides — */
body.praxis-page { background: #111316; }
body.praxis-page main {
  position: relative;
  isolation: isolate;
  background: linear-gradient(in oklab 180deg,
    #13181C 0%, #151A1E 16%, #16191C 28%,
    #1B2025 40%, #1F252B 52%, #22262A 64%,
    #26261F 74%, #24231F 82%, #21232A 90%, #111316 100%);
}
body.praxis-page main > section.opening,
body.praxis-page main > section#apps { background: transparent; }
body.praxis-page .site-head { position: absolute; top: 0; left: 0; right: 0; width: 100%; z-index: 50; background: linear-gradient(180deg, rgba(5,10,15,.52) 0%, rgba(5,10,15,.24) 72%, rgba(5,10,15,0) 100%); border-bottom-color: rgba(92,119,132,.22); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
body.praxis-page .site-head.is-scrolled { position: fixed; background: linear-gradient(180deg, rgba(5,8,12,.9) 0%, rgba(5,8,12,.72) 100%); border-bottom-color: rgba(93,112,121,.18); box-shadow: 0 10px 30px rgba(0,0,0,.24); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
body.praxis-page main > section.opening { min-height: min(620px, 72vh); display: flex; align-items: flex-start; justify-content: center; text-align: center; padding-top: clamp(5.5rem, 10vw, 8rem); padding-bottom: clamp(7rem, 13vw, 11rem); position: relative; overflow: hidden; border-top: 0; background: transparent; }
body.praxis-page main > section.opening::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(180deg, rgba(31,33,36,0) 0%, rgba(17,19,22,.12) 72%, rgba(17,19,22,0) 100%); pointer-events: none; }
body.praxis-page main > section.opening > .wrap { position: relative; z-index: 2; width: 100%; }
body.praxis-page .praxis-hero-brand { display: flex; flex-direction: column; align-items: center; gap: 1.35rem; margin: 0 auto; }
body.praxis-page .praxis-hero-brand img { width: clamp(220px, 30vw, 360px); height: clamp(220px, 30vw, 360px); object-fit: contain; }
body.praxis-page .praxis-hero-brand .t-display { max-width: none; margin: 0; font-size: clamp(2.7rem, 6vw, 4.8rem); }
body.praxis-page .praxis-hero-brand .t-lead { margin: .1rem auto 0; max-width: 38em; }

/* Praxis logo intro: two halves rotate in from opposite directions and lock into the static mark. */
.praxis-logo-spin { position: relative; width: clamp(220px, 30vw, 360px); height: clamp(220px, 30vw, 360px); }
.praxis-logo-spin__part { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.praxis-logo-spin__part--1 { animation: praxisSpinIn1 1200ms cubic-bezier(.22,1,.36,1) both; }
.praxis-logo-spin__part--2 { animation: praxisSpinIn2 1200ms cubic-bezier(.22,1,.36,1) both; }
@keyframes praxisSpinIn1 { 0% { transform: rotate(-150deg) scale(.82); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(0deg) scale(1); opacity: 1; } }
@keyframes praxisSpinIn2 { 0% { transform: rotate(150deg) scale(.82); opacity: 0; } 55% { opacity: 1; } 100% { transform: rotate(0deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .praxis-logo-spin__part { animation: none; } }

/* Praxis products: one soft, low-chroma wash carries a hint of each product's theme colour
   (FyneX sky, Memory MCP cream, Conflux slate, ThermPress mauve). Tints sit only a few steps
   above char and each blends over a long span, interpolated in oklab so there's no banding. */
body.praxis-page main > section#apps {
  padding-top: clamp(2.5rem, 5vw, 4.5rem); border-top: 0;
  background: linear-gradient(180deg,
    var(--char) 0%, #1B2025 14%, #1F252B 26%, #22262A 38%,
    #26261F 50%, #24231F 60%, #21232A 72%, #24212A 84%, #1A1A1E 92%, #111316 100%);
  background: linear-gradient(in oklab 180deg,
    var(--char) 0%, #1B2025 14%, #1F252B 26%, #22262A 38%,
    #26261F 50%, #24231F 60%, #21232A 72%, #24212A 84%, #1A1A1E 92%, #111316 100%);
}

/* — homepage: one continuous ecosystem canvas (banner → opening → Praxis → Phantom → back to char) —
   A single gradient lives on the .ecosystem wrapper; the sections inside it stay transparent so
   there is no seam at any section boundary. The dot texture is one masked layer above it. */
body:has(.intro-cover) main > .ecosystem {
  position: relative; isolation: isolate; overflow: hidden; z-index: 1;
  background: linear-gradient(in oklab 180deg,
    #F6F7F8 0%,
    #ECEDEF 17%,
    #DEE0E2 30%,
    #CFD2D5 39%,
    #AEB2B6 45%,
    #888D91 50%,
    #63686D 54%,
    #45484D 58%,
    #303338 62%,
    #2C2F33 67%,
    #2A2D31 71%,
    #272A2E 75%,
    #242629 80%,
    #202225 88%,
    #1C1D20 94%,
    #161719 100%);
}
/* page-atmosphere.css gives main's first child a blurred 210px ::after glow; the dot layer
   is that ::after here, so reset the size and blur it applies. */
body:has(.intro-cover) main > .ecosystem::after {
  content: ''; position: absolute; inset: 0; height: auto; filter: none; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 8px 8px; opacity: .52;
  -webkit-mask-image: linear-gradient(180deg, transparent 72%, rgba(0,0,0,.15) 76%, rgba(0,0,0,.5) 80%, rgba(0,0,0,.85) 84%, #000 88%, rgba(0,0,0,.6) 95%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 72%, rgba(0,0,0,.15) 76%, rgba(0,0,0,.5) 80%, rgba(0,0,0,.85) 84%, #000 88%, rgba(0,0,0,.6) 95%, transparent 100%);
}
/* Below the ecosystem the homepage settles on a darker grey than char. */
body:has(.intro-cover) { background: #111316; }
body:has(.intro-cover) main > .ecosystem > section { position: relative; z-index: 2; background: transparent; border: 0; box-shadow: none; }
body:has(.intro-cover) main > .ecosystem > section.banner + section.opening { padding-top: clamp(7rem, 13vw, 11rem); }
body:has(.intro-cover) main > .ecosystem > section#apps { padding-top: clamp(5rem, 9vw, 8rem); }
@media (max-width: 760px) {
  body:has(.intro-cover) main > .ecosystem {
    background: linear-gradient(in oklab 180deg,
      #F6F7F8 0, #ECEDEF 260px, #DEE0E2 520px, #CFD2D5 760px, #AEB2B6 860px, #888D91 940px,
      #63686D 1010px, #45484D 1070px, #303338 1120px, #2C2F33 70%, #2A2D31 74%, #272A2E 78%,
      #242629 83%, #202225 88%, #1C1D20 94%, #161719 100%);
  }
  body:has(.intro-cover) main > .ecosystem > section#apps { padding-top: 7rem; }
}
body:has(.intro-cover) main > .ecosystem > section#apps > .wrap > .product { position: relative; isolation: isolate; padding-top: clamp(4rem, 7vw, 6.5rem); padding-bottom: clamp(4rem, 7vw, 6.5rem); }
/* Homepage: only the Giblex Praxis product section gets the charcoal/grey treatment. */
body:has(.intro-cover) main > .ecosystem > section#apps > .wrap > .product:first-child::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(in oklab 180deg,
    #555A60 0%, #474C52 24%, #3A3F45 48%, #30353A 68%, #262A2F 84%, #1D2126 100%);
}
/* Homepage: the Phantom Suite section carries its own navy identity (phantom/styles.css
   --bg #1A2338 … --panel #232D48), not the grey ecosystem gradient. */
body:has(.intro-cover) main > .ecosystem > section#apps > .wrap > .product + .product::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(in oklab 180deg,
    #2A3658 0%, #232D48 22%, #1E2740 46%, #1A2338 66%, #161E30 84%, #12182A 100%);
}

body:has(.intro-cover) main > .ecosystem > section#apps > .wrap > .product + .product { margin-top: 0; padding-top: clamp(5rem, 9vw, 8rem); }
/* home: the Praxis card (first) now carries a banner, so give it the same two-column layout as Phantom */
body:has(.intro-cover) main > .ecosystem > section#apps > .wrap > .product { grid-template-columns: 4fr 8fr; }
/* let the text column honour the fr split instead of being widened by the big logo, so both banners match */
body:has(.intro-cover) main > .ecosystem > section#apps > .wrap > .product > div { min-width: 0; }
@media (max-width: 900px) { body:has(.intro-cover) main > .ecosystem > section#apps > .wrap > .product { grid-template-columns: 1fr; } }

/* — continuous header scroll interpolation — */
body:has(.intro-cover) .site-head,
body.praxis-page .site-head { --header-progress: 0; transition: border-color .12s linear, box-shadow .12s linear, backdrop-filter .12s linear; }
body:has(.intro-cover) .site-head { background: linear-gradient(180deg, rgba(4,10,16,calc(.16 + var(--header-progress) * .72)) 0%, rgba(4,10,16,calc(.10 + var(--header-progress) * .66)) 72%, rgba(4,10,16,calc(.02 + var(--header-progress) * .52)) 100%); border-bottom-color: rgba(62,101,116,calc(.16 + var(--header-progress) * .16)); backdrop-filter: blur(calc(3px + var(--header-progress) * 20px)); -webkit-backdrop-filter: blur(calc(3px + var(--header-progress) * 20px)); }
body.praxis-page .site-head { background: linear-gradient(180deg, rgba(5,10,15,calc(.22 + var(--header-progress) * .68)) 0%, rgba(5,10,15,calc(.12 + var(--header-progress) * .62)) 72%, rgba(5,10,15,calc(.02 + var(--header-progress) * .5)) 100%); border-bottom-color: rgba(92,119,132,calc(.16 + var(--header-progress) * .14)); backdrop-filter: blur(calc(2px + var(--header-progress) * 14px)); -webkit-backdrop-filter: blur(calc(2px + var(--header-progress) * 14px)); }
/* — homepage light top: pale translucent teal/white header + banner, fading down into the dark product zone — */
body:has(.intro-cover) .site-head { --hd-ink: #12313A; --hd-ink-2: #3F6670; --hd-accent: #2B8A96;
  background: linear-gradient(180deg, rgba(244,250,250,calc(.28 + var(--header-progress) * .42)) 0%, rgba(236,246,246,calc(.15 + var(--header-progress) * .5)) 70%, rgba(236,246,246,calc(.03 + var(--header-progress) * .56)) 100%);
  border-bottom: 1px solid rgba(43,138,150,calc(.10 + var(--header-progress) * .12)) !important; }
body:has(.intro-cover) .site-head.is-scrolled { background: linear-gradient(180deg, rgba(240,248,248,.58) 0%, rgba(232,244,245,.5) 100%); border-bottom-color: rgba(43,138,150,.16); box-shadow: 0 8px 28px rgba(18,49,58,.11) !important; }
body:has(.intro-cover) .site-head::after { background: none; filter: none; }
body:has(.intro-cover) .site-head .brand { color: var(--hd-ink); }
body:has(.intro-cover) .site-head .tab { color: var(--hd-ink-2); }
body:has(.intro-cover) .site-head .tab:hover, body:has(.intro-cover) .site-head .tab[aria-current="page"] { color: var(--hd-ink); }
body:has(.intro-cover) .site-head .tab[aria-current="page"]::after { background: var(--hd-accent); }
body:has(.intro-cover) .site-head .menu-toggle { color: var(--hd-ink); border-color: rgba(43,138,150,.35); }
body:has(.intro-cover) main > .ecosystem > section.banner { mix-blend-mode: multiply; }
body:has(.intro-cover) main > .ecosystem > section.banner img { filter: invert(1) hue-rotate(180deg) saturate(.9) brightness(1.04); }
body:has(.intro-cover) main > .ecosystem > section.opening .t-display { color: #12313A; }
body:has(.intro-cover) main > .ecosystem > section.opening .t-lead { color: #3F6670; }
/* — footer — */
.site-foot { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: .92rem; color: var(--dim); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* — intro cover (logo assemble → scramble → swing → exit), home page only — */
.intro-cover {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: var(--char); pointer-events: none; will-change: transform, opacity;
  transform: translateY(calc(-100% * var(--intro-exit, 0))) scale(calc(1 - .06 * var(--intro-exit, 0)));
  opacity: calc(1 - var(--intro-exit, 0) * var(--intro-exit, 0));
}
.intro-cover__content { display: flex; flex-direction: column; align-items: center; position: relative; }
.intro-cover__logo-frame { position: relative; width: clamp(160px, 28vw, 300px); height: clamp(160px, 28vw, 300px); }
.intro-cover__part { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; will-change: transform, opacity; }
.intro-cover__part--1 { transform: translate(calc(-140px * (1 - var(--intro-assemble, 0))), calc(-120px * (1 - var(--intro-assemble, 0)))); opacity: calc(.15 + .85 * var(--intro-assemble, 0)); }
.intro-cover__part--2 { transform-origin: 52% 52%; transform: translate(calc(140px * (1 - var(--intro-assemble, 0))), calc(120px * (1 - var(--intro-assemble, 0)))) rotate(calc(var(--intro-swing-deg, 0) * 1deg)); opacity: calc(.15 + .85 * var(--intro-assemble, 0)); }
.intro-cover__title { margin-top: 14px; font-family: var(--mono); font-size: clamp(1.6rem, 5vw, 3.2rem); font-weight: 500; letter-spacing: .22em; opacity: var(--intro-text, 0); transform: translateY(calc(14px * (1 - var(--intro-text, 0)))); min-width: 8ch; text-align: center; }
.intro-cover--ready .intro-cover__title { font-family: var(--word); }
.intro-cover__tagline { margin-top: 10px; font-size: clamp(.9rem, 2vw, 1.1rem); color: var(--steel); opacity: var(--intro-text, 0); transform: translateY(calc(10px * (1 - var(--intro-text, 0)))); }
.intro-cover[data-done] { display: none; }
@media (max-width: 760px) {
  .intro-cover__part--1 { transform: translate(calc(-80px * (1 - var(--intro-assemble, 0))), calc(-70px * (1 - var(--intro-assemble, 0)))); }
  .intro-cover__part--2 { transform: translate(calc(80px * (1 - var(--intro-assemble, 0))), calc(70px * (1 - var(--intro-assemble, 0)))) rotate(calc(var(--intro-swing-deg, 0) * 1deg)); }
}
@media (prefers-reduced-motion: reduce) { .intro-cover { display: none; } }

/* Suite menus open on hover; the suite label itself remains a normal page link. */
.site-head .has-menu:hover > .dropdown,
.site-head .has-menu:focus-within > .dropdown,
.site-head .tab-dd:hover > .tab-dd__menu,
.site-head .tab-dd:focus-within > .tab-dd__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.site-head .has-menu > .menu-btn,
.site-head .tab-dd > .tab-dd__btn { cursor: pointer; }

/* scroll reveal — content rises and fades in as it rolls up over the colour background */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.visible { opacity: 1 !important; transform: none !important; transition: none !important; } }
/* let section colours flow into each other instead of a hard divider line */
main > section + section { border-top: 0; }
