/* Mikson Core theme: shared components (port of prototypes/v8-constellation-light/css/site.css).
   Ice-white grounds, navy ink, electric blue light, frosted white glass, one deep navy band (Start a project).
   Blue only. Display: Instrument Serif. Text: Instrument Sans.

   What changed from v8 (docs/theme-architecture.md, "Markup strategy"):
   - Tokens come from theme.json (presets and settings.custom); the short names below are aliases, so every
     v8 rule reads as before. Fallbacks keep the values if a preset is missing.
   - Header: the core Navigation block replaces v8's menu button and list (section "header").
   - Buttons: core/button links take v8's .btn look; .btn--glass / .btn--small / .btn--large (or the "Glass"
     block style) go on the button block's wrapper.
   - Block wrappers and resets for block markup: section "block markup" at the end.
   Loaded after the global styles (theme.json), so a v8 class rule wins over an element rule of equal weight. */

/* ---------------------------------------------------------------- tokens (aliases of theme.json) */
:root {
  color-scheme: light;
  --ground: var(--wp--preset--color--ground, #F5F9FF);              /* page, ice white */
  --ground-2: var(--wp--custom--color--ground-2, #EEF5FF);          /* top of the hero and page heads, fades into --ground */
  --ice: var(--wp--preset--color--ice, #EAF3FF);
  --ice-2: var(--wp--preset--color--ice-2, #D6E7FF);
  --ice-3: var(--wp--preset--color--ice-3, #BFDBFF);
  --glow: var(--wp--preset--color--glow, #4C9BFF);                  /* light only, never text */
  --electric: var(--wp--preset--color--electric, #2F7BFF);          /* light only, never text */
  --cobalt: var(--wp--preset--color--cobalt, #1858D6);              /* blue as text or as a fill under white text: 5.8:1 on --ground */
  --cobalt-2: var(--wp--custom--color--cobalt-2, #2366E8);          /* top of the primary button gradient: white text 5.1:1 */
  --ink: var(--wp--preset--color--ink, #0B2A45);                    /* logo navy, body text: 13.9:1 on --ground */
  --ink-2: var(--wp--preset--color--ink-2, #3B5675);                /* secondary text: 7.2:1 on --ground, 6.8:1 on --ice */
  --ink-3: var(--wp--preset--color--ink-3, #425C7A);                /* small labels: 6.5:1 on --ground, 6.2:1 on --ice */
  --title-2: var(--wp--custom--color--title-2, #17457E);            /* lower end of the display-title gradient: 9.1:1 on --ground */
  --navy: var(--wp--preset--color--ink, #0B2A45);
  --night: var(--wp--preset--color--night, #050E1F);                /* the deep band (Start a project) */
  --night-2: var(--wp--custom--color--night-2, #071834);
  --on-night: var(--wp--preset--color--on-night, #EAF3FF);          /* 17.2:1 on --night */
  --on-night-2: var(--wp--preset--color--on-night-2, #BFDBFF);      /* 13.6:1 on --night */
  --white: var(--wp--preset--color--white, #FFFFFF);

  --glass: var(--wp--custom--glass--fill, rgba(255, 255, 255, 0.58));
  --glass-solid: var(--wp--custom--color--glass-solid, #FBFDFF);
  --glass-edge: var(--wp--custom--glass--edge, rgba(255, 255, 255, 0.92));
  --hair: var(--wp--custom--hair--default, rgba(24, 88, 214, 0.14));
  --hair-2: var(--wp--custom--hair--soft, rgba(11, 42, 69, 0.10));
  --hair-strong: var(--wp--custom--hair--strong, rgba(24, 88, 214, 0.24));
  --shadow-soft: var(--wp--preset--shadow--soft, 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 6px rgba(11, 42, 69, 0.05), 0 28px 56px -28px rgba(24, 88, 214, 0.32));
  --shadow-lift: var(--wp--preset--shadow--lift, 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 4px 10px rgba(11, 42, 69, 0.06), 0 40px 72px -30px rgba(24, 88, 214, 0.45));

  --f-display: var(--wp--preset--font-family--display, "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif);
  --f-text: var(--wp--preset--font-family--text, "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);

  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1200px;                                                   /* = theme.json layout.contentSize */
  --section: clamp(88px, 11vw, 160px);                              /* = spacing preset "90" */
  --header-h: 68px;
  --ease-out: var(--wp--custom--ease-out, cubic-bezier(0.2, 0.7, 0.2, 1));
}
@media (min-width: 761px) {
  :root { --gut-l: max(32px, env(safe-area-inset-left, 0px)); --gut-r: max(32px, env(safe-area-inset-right, 0px)); --header-h: 76px; }
}
@media (min-width: 1200px) {
  :root { --gut-l: max(48px, env(safe-area-inset-left, 0px)); --gut-r: max(48px, env(safe-area-inset-right, 0px)); }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ice-3); color: var(--ink); }

h1, h2 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
h3 {
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut-l) + var(--gut-r));
  margin-inline: auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--white); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------------------------------------------------------------- buttons */
/* v8's .btn, and the same look on core/button links. On a button block the style and size classes
   (.btn--glass or the "Glass" style, .btn--small, .btn--large) sit on the wrapper and style its link; the
   ".btn.btn--x" form keeps them off the wrapper itself. */
.btn,
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--f-text);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s;
}
/* white on --cobalt-2..--cobalt: 5.1:1 to 6.2:1 */
.btn.btn--primary,
.wp-block-button__link {
  color: var(--white);
  background: linear-gradient(180deg, var(--cobalt-2), var(--cobalt));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(76, 155, 255, 0.35),
    0 0 0 1px rgba(24, 88, 214, 0.25),
    0 10px 26px -10px rgba(24, 88, 214, 0.7);
}
.btn.btn--primary:hover,
.wp-block-button__link:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 1px rgba(76, 155, 255, 0.5),
    0 0 0 1px rgba(24, 88, 214, 0.3),
    0 16px 36px -12px rgba(47, 123, 255, 0.85);
}
.btn.btn--glass,
.btn--glass > .wp-block-button__link,
.is-style-glass > .wp-block-button__link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), inset 0 1px 0 var(--white), 0 0 0 1px var(--hair), 0 8px 22px -12px rgba(24, 88, 214, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn.btn--glass:hover,
.btn--glass > .wp-block-button__link:hover,
.is-style-glass > .wp-block-button__link:hover { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--white), 0 0 0 1px var(--hair-strong), 0 12px 28px -12px rgba(24, 88, 214, 0.55); }
.btn.btn--small,
.btn--small > .wp-block-button__link { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn.btn--large,
.btn--large > .wp-block-button__link { min-height: 56px; padding: 0 34px; font-size: 1.0625rem; }
.btn--glass > .wp-block-button__link:hover,
.is-style-glass > .wp-block-button__link:hover { transform: none; }

/* ---------------------------------------------------------------- glass */
/* Frosted white over the ice ground: a white edge, a soft blue-tinted shadow, a faint blue glow inside the
   lower edge. Without backdrop-filter the panel falls back to a solid near-white. */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: 24px;
  background: var(--glass-solid);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    inset 0 -60px 90px -60px rgba(76, 155, 255, 0.14),
    0 0 0 1px var(--hair),
    var(--shadow-soft);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, var(--glass) 45%, rgba(234, 243, 255, 0.55) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
  }
}
/* pointer highlight: an inner pool of pale blue light and a blue rim where the pointer is (js/site.js sets --mx/--my) */
.glass[data-tilt]::before,
.glass[data-tilt]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.glass[data-tilt]::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(191, 219, 255, 0.55), rgba(191, 219, 255, 0) 45%);
}
.glass[data-tilt]::after {
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 123, 255, 0.85), rgba(76, 155, 255, 0.28) 40%, transparent 70%);
  -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);
}
.glass[data-tilt].is-lit::before,
.glass[data-tilt].is-lit::after,
.glass[data-tilt]:focus-within::after { opacity: 1; }
.glass[data-tilt].is-lit { box-shadow: inset 0 0 0 1px var(--glass-edge), inset 0 -60px 90px -60px rgba(76, 155, 255, 0.18), 0 0 0 1px var(--hair), var(--shadow-lift); }

/* ---------------------------------------------------------------- header */
/* Block markup (parts/header.html → patterns/header.php):
     header.site-header (template part) > .wrap.site-header__bar (group)
       > figure.brand (image block, links home)
       > nav.site-nav (Navigation block: links, then a Buttons block .site-nav__cta)
   The Navigation block brings the menu button ("Menu"), the overlay with its "Close" button, the focus trap,
   Escape and focus return. The rules here give it v8's look: v8's pill button, and v8's glass panel under the
   header. Core's overlay stays full-screen but transparent and lets clicks through, so a click beside the panel
   closes the menu (core closes it when focus leaves). Breakpoint: v8's 760/761 px instead of core's 600 px.
   The selectors start with ".site-header .site-nav" so they outweigh core's navigation styles. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 249, 255, 0.92);
  box-shadow: inset 0 -1px 0 var(--hair-2), 0 10px 30px -24px rgba(24, 88, 214, 0.4);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  transition: opacity 0.35s;
}
.js .site-header.is-top::before { opacity: 0; }
.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: block; flex: none; border-radius: 6px; }
.brand a { display: block; border-radius: 6px; }
.brand img { width: 150px; height: auto; }

.site-header .site-nav { display: flex; align-items: center; gap: 0; }
.site-header .site-nav .wp-block-navigation__responsive-container-content { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 28px; }
.site-header .site-nav .wp-block-navigation__container { display: flex; flex-direction: row; gap: 4px; }
.site-header .site-nav .wp-block-navigation-item__content {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9688rem;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-header .site-nav .wp-block-navigation-item__content:hover { color: var(--ink); background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 1px var(--hair); }
.site-header .site-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--cobalt); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.site-header .site-nav__cta { flex: none; gap: 0; }

@media (max-width: 760px) {
  .brand img { width: 128px; }

  /* v8's menu button: a white pill, three bars and "Menu"; the overlay's close button sits on the same spot
     with an X and "Close" */
  .site-header .site-nav .wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open,
  .site-header .site-nav .wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 0 0 1px var(--hair);
    color: var(--ink);
    font: 600 0.9375rem/1 var(--f-text);
    text-transform: none;
    cursor: pointer;
  }
  .site-header .site-nav .wp-block-navigation__responsive-container-open::before {
    content: "";
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  }
  .site-header .site-nav .wp-block-navigation__responsive-container-close::before,
  .site-header .site-nav .wp-block-navigation__responsive-container-close::after {
    content: "";
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transform: rotate(45deg);
  }
  .site-header .site-nav .wp-block-navigation__responsive-container-close::after {
    position: absolute;
    left: 14px;
    top: calc(50% - 0.75px);
    transform: rotate(-45deg);
  }
  /* closed: only the button (core would show the links inline from 600 px) */
  .site-header .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .site-header .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close.wp-block-navigation__responsive-container-close { display: none; }
  /* open: the close button takes the menu button's place (the menu button would show through its glass;
     opacity, not visibility, so core can hand focus back to it on close) */
  html.has-modal-open .site-header .site-nav .wp-block-navigation__responsive-container-open { opacity: 0; }

  /* open: the overlay is a transparent full-screen layer; the panel and the close button take the clicks */
  .site-header .site-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
    display: block;
    padding: 0;
    overflow: visible;
    background: transparent;
    color: var(--ink);
    pointer-events: none;
    animation: none;
  }
  .site-header .site-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    position: absolute;
    top: calc((var(--header-h) - 44px) / 2);
    right: var(--gut-r);
    pointer-events: auto;
  }
  .site-header .site-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content.wp-block-navigation__responsive-container-content {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: var(--gut-l);
    right: var(--gut-r);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
    background: var(--glass-solid);
    box-shadow: inset 0 0 0 1px var(--white), 0 0 0 1px var(--hair), 0 30px 60px -20px rgba(24, 88, 214, 0.4);
    pointer-events: auto;
  }
  .site-header .site-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container.wp-block-navigation__container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-header .site-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.wp-block-navigation-item { display: block; }
  .site-header .site-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.0625rem;
    color: var(--ink);
  }
  .site-header .site-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] { color: var(--cobalt); }
  .site-header .site-nav__cta,
  .site-header .site-nav__cta .wp-block-button,
  .site-header .site-nav__cta .wp-block-button__link { width: 100%; }

  /* without JavaScript the menu button cannot work: show the links inline instead (as v8) */
  html:not(.js) .site-header { position: absolute; }
  html:not(.js) .site-header__bar { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-header .site-nav { width: 100%; }
  html:not(.js) .site-header .site-nav .wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open { display: none; }
  html:not(.js) .site-header .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: block; position: static; width: 100%; }
  html:not(.js) .site-header .site-nav .wp-block-navigation__responsive-container-content { flex-direction: column; align-items: stretch; gap: 12px; }
  html:not(.js) .site-header .site-nav .wp-block-navigation__container { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- the network canvas */
.net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* still SVG network shown before (or without) the canvas: cobalt points in pale-blue halos, faint cobalt lines */
.net-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.net-still__lines path { fill: none; stroke: rgba(24, 88, 214, 0.22); stroke-width: 1; }
.net-still__far circle { fill: rgba(76, 155, 255, 0.5); }
.net-still__near circle { fill: var(--cobalt); filter: drop-shadow(0 0 3px rgba(76, 155, 255, 0.75)) drop-shadow(0 0 10px rgba(76, 155, 255, 0.45)); }
.net-on .net-still { opacity: 0; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: flex;
  min-height: max(640px, 100vh);
  min-height: max(640px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 72% 34%, rgba(76, 155, 255, 0.20), transparent 70%),
    radial-gradient(50% 50% at 92% 8%, rgba(191, 219, 255, 0.7), transparent 70%),
    linear-gradient(180deg, var(--ground-2) 0%, var(--ground) 100%);
}
/* an ice-white veil behind the copy keeps the network calm under the headline and lead */
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.8), rgba(245, 249, 255, 0) calc(var(--header-h) + 60px)),
    radial-gradient(60% 55% at 18% 70%, rgba(245, 249, 255, 0.86), rgba(245, 249, 255, 0) 70%),
    linear-gradient(180deg, rgba(245, 249, 255, 0) 72%, var(--ground) 100%);
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(40px, 7vh, 88px);
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(32px, 6vh, 64px);
}
.hero__copy { max-width: 46rem; }
.hero__title {
  font-size: clamp(3.25rem, 1.4rem + 6.6vw, 7.75rem);
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: var(--ink);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title, .page-head h1 {
    background: linear-gradient(180deg, var(--ink) 35%, var(--title-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .cta h2 {
    background: linear-gradient(180deg, var(--white) 35%, #CFE3FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero__lead {
  max-width: 34rem;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* one column per fact (Matej can hide, add or remove facts in the editor), two per row below 900 px */
.facts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid var(--hair);
}
.facts:not(:has(> div)) { border-top: 0; }
.facts > div { padding: 18px 20px 0 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--hair); }
.facts dt { color: var(--ink-3); font-size: 0.875rem; }
.facts dd { margin-top: 4px; color: var(--ink); font-size: 1rem; line-height: 1.4; }
@media (max-width: 900px) {
  .facts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .hero__inner { justify-content: flex-end; padding-top: calc(var(--header-h) + 72px); }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(245, 249, 255, 0.8), rgba(245, 249, 255, 0) calc(var(--header-h) + 40px)),
      linear-gradient(180deg, rgba(245, 249, 255, 0) 18%, rgba(245, 249, 255, 0.8) 52%, rgba(245, 249, 255, 0.9) 82%, var(--ground) 100%);
  }
  .hero__actions .btn { flex: 1 1 auto; }
  .facts > div { padding-right: 12px; }
  .facts > div + div { padding-left: 12px; }
  .facts > div:nth-child(2n+1) { padding-left: 0; }
  .facts dd { font-size: 0.9375rem; }
}

/* ---------------------------------------------------------------- section heads */
.head { max-width: 44rem; margin-bottom: clamp(40px, 5vw, 72px); }
.head h2 { font-size: clamp(2.6rem, 1.5rem + 3.8vw, 4.75rem); }
.head p { margin-top: 18px; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); max-width: 36rem; }

/* ---------------------------------------------------------------- services */
.services {
  position: relative;
  padding-block: var(--section);
  overflow-x: clip;
}
/* soft blue light behind the glass, so the frost reads */
.services__light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 220px, #000 calc(100% - 160px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 220px, #000 calc(100% - 160px), transparent);
  background:
    radial-gradient(42% 30% at 50% 6%, rgba(76, 155, 255, 0.22), transparent 70%),
    radial-gradient(36% 34% at 88% 62%, rgba(47, 123, 255, 0.18), transparent 70%),
    radial-gradient(30% 30% at 8% 90%, rgba(76, 155, 255, 0.16), transparent 70%);
}
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1080px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 300px;
  padding: 30px 28px 32px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.svc.is-tilting { transition: transform 0.12s linear, box-shadow 0.45s var(--ease-out); }
.svc .glyph { width: 76px; height: 76px; margin: -4px 0 22px -6px; }
.svc .glyph { border-radius: 50%; background: radial-gradient(closest-side, rgba(191, 219, 255, 0.8), rgba(191, 219, 255, 0) 100%); }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.svc h3 a:focus-visible { outline: none; }
.svc:focus-within, .svc.is-lit:focus-within { box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 1px var(--hair), var(--shadow-lift); }
.svc p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) { .svc { min-height: 0; padding: 24px 22px 26px; } .svc .glyph { margin-bottom: 16px; } }

/* ---------------------------------------------------------------- glyphs (points and lines forming the idea) */
.glyph { width: 64px; height: 64px; overflow: visible; }
.glyph--large { width: 96px; height: 96px; }
.glyph .g-l { fill: none; stroke: rgba(24, 88, 214, 0.55); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.glyph .g-l--soft { stroke: rgba(24, 88, 214, 0.28); }
.glyph .g-ring { stroke-dasharray: 2 4; }
.glyph .g-p { fill: var(--glow); }
.glyph .g-hot { fill: var(--cobalt); filter: drop-shadow(0 0 2px rgba(76, 155, 255, 0.9)) drop-shadow(0 0 6px rgba(47, 123, 255, 0.55)); }
.glyph .g-pulse { fill: var(--electric); opacity: 0; }
.glyph .g-orbit { transform-box: view-box; transform-origin: 32px 32px; }
.glyph .g-flare, .glyph .g-beat { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .glyph.is-live .g-seq { animation: g-blink 2.4s ease-in-out var(--d, 0s) infinite; }
  .glyph--care.is-live .g-seq { animation: g-blink-soft 6s linear var(--d, 0s) infinite; }
  .glyph--ai.is-live .g-seq { animation: g-blink 2s ease-in-out var(--d, 0s) infinite; }
  .glyph.is-live .g-wave { animation: g-wave 2s ease-in-out var(--d, 0s) infinite; }
  .glyph.is-live .g-pulse { animation: g-travel 2.4s ease-in-out var(--d, 0s) infinite; }
  .glyph.is-live .g-beat { animation: g-beat 2.4s ease-in-out infinite; }
  .glyph.is-live .g-draw { stroke-dasharray: 1 1; animation: g-draw 4s var(--ease-out) infinite; }
  .glyph.is-live .g-flare { animation: g-flare 4s ease-out infinite; }
  .glyph.is-live .g-orbit { animation: g-spin 6s linear infinite; }
  .svc:hover .glyph.is-live .g-orbit { animation-duration: 3s; }
}
/* the "orbit" switch (<html data-mc-off="orbit">, "Floating and orbiting motion, animated icons") stills the glyphs
   as reduced motion does; site.js also stops marking them live */
:root[data-mc-off~="orbit"] .glyph.is-live * { animation: none; }
@keyframes g-blink { 0%, 100% { opacity: 0.35; } 40% { opacity: 1; } }
@keyframes g-blink-soft { 0%, 6% { opacity: 1; } 22%, 100% { opacity: 0.4; } }
@keyframes g-wave { 0%, 100% { stroke: rgba(24, 88, 214, 0.14); } 40% { stroke: rgba(47, 123, 255, 0.8); } }
@keyframes g-travel {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}
@keyframes g-beat { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.35); } }
@keyframes g-draw {
  0% { stroke-dashoffset: 1; opacity: 1; }
  55%, 86% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.2; }
}
@keyframes g-flare { 0%, 50% { transform: scale(0.8); opacity: 0.55; } 58% { transform: scale(1.9); opacity: 1; } 80%, 100% { transform: scale(1); opacity: 0.85; } }
@keyframes g-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- devices: the phone */
/* the phone: Lumen's frosted ice-blue body with a white edge, a soft blue glow and a blue-tinted shadow */
.phone {
  --pw: 260px;
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * 0.036);
  border-radius: calc(var(--pw) * 0.17);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.35) 22%, rgba(214, 231, 255, 0.35) 60%, rgba(255, 255, 255, 0.85) 100%),
    linear-gradient(160deg, var(--ice) 0%, var(--ice-3) 50%, #8DB8FF 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 -3px 8px rgba(24, 88, 214, 0.35),
    0 0 0 1px rgba(47, 123, 255, 0.25),
    0 50px 80px -40px rgba(24, 88, 214, 0.6),
    0 0 60px -6px rgba(76, 155, 255, 0.55);
}
/* the screen behind the app pictures: the logo navy, as on a phone whose app has not drawn yet */
.phone__screen {
  position: relative;
  aspect-ratio: 1 / 2.04;
  border-radius: calc(var(--pw) * 0.135);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(11, 42, 69, 0.35);
  isolation: isolate;
  transform: translateZ(0);
}
/* the Dynamic Island is black hardware on every phone */
.phone__island {
  position: absolute; z-index: 3;
  top: 1.6%; left: 0; right: 0; margin-inline: auto;
  width: 30%; height: 4.1%;
  border-radius: 999px;
  background: #000;
}
.phone__layer { position: absolute; inset: 0; overflow: hidden; }
/* a poster that ends above the bottom of the screen: the app's own colour carries on below it */
.phone__layer--fade { background: var(--fill); }
.phone__layer--fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 15%; background: linear-gradient(180deg, transparent, var(--fill) 55%); }
/* Each App Store poster (600 px wide) is cropped to the real app screen drawn inside it.
   --sx / --sy: top-left of the crop in poster pixels, --sw: crop width. */
.shot {
  position: absolute;
  top: calc(var(--sy) / var(--sw) / 2.04 * -100%);
  left: calc(var(--sx) / var(--sw) * -100%);
  width: calc(600 / var(--sw) * 100%);
  max-width: none;
  height: auto;
}
.phone__sheen {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 26%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(118deg, transparent 52%, rgba(255, 255, 255, 0.12) 60%, transparent 68%);
}
/* a pool of soft blue light under the floating device */
.pool {
  position: absolute;
  left: 50%; bottom: -10%;
  width: 120%; height: 18%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 88, 214, 0.36), rgba(76, 155, 255, 0.16) 50%, transparent);
  filter: blur(14px);
  pointer-events: none;
}

/* tile line art */
.t-l { fill: none; stroke: rgba(24, 88, 214, 0.6); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.t-l--w { stroke-width: 2.4; stroke: rgba(47, 123, 255, 0.85); }
.t-p { fill: var(--glow); }
.t-hot { fill: var(--cobalt); filter: drop-shadow(0 0 3px rgba(76, 155, 255, 0.9)) drop-shadow(0 0 7px rgba(47, 123, 255, 0.5)); }

/* ---------------------------------------------------------------- selected work: the stage */
.work { position: relative; overflow-x: clip; }
.work__intro { padding-top: var(--section); }
.stage { position: relative; }
.stage__items {
  display: grid;
  gap: 20px;
  max-width: calc(var(--wrap) + var(--gut-l) + var(--gut-r));
  margin-inline: auto;
  padding-left: var(--gut-l);
  padding-right: var(--gut-r);
}
.stage__visual, .stage__glow, .stage__rail { display: none; }

/* resting layout (phones, reduced motion, no JavaScript): stacked glass cards */
.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 28px 22px;
  overflow: hidden;
}
.work-item__copy { display: grid; justify-items: start; align-content: start; gap: 16px; max-width: 34rem; }
.work-item__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.015em; }
.work-item__what { color: var(--ink-2); font-size: 1.0625rem; }
.work-item__visual { display: grid; justify-items: center; min-width: 0; padding-block: 8px 12px; }
.work-item__visual .phone { --pw: min(62vw, 250px); }
.phone--flat { transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); }
@media (min-width: 761px) {
  .work-item { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; padding: 48px; gap: 48px; }
  .work-item__visual .phone { --pw: 250px; }
}

.specs { display: grid; gap: 10px; }
.specs > div { display: grid; gap: 2px; }
.specs dt { color: var(--ink-3); font-size: 0.875rem; }
.specs dd { margin: 0; color: var(--ink); font-size: 1rem; }

/* status pills: navy text on white glass with a cobalt rim (13.9:1 or better) */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px var(--hair-strong), 0 6px 16px -10px rgba(24, 88, 214, 0.45);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status--live::before { background: var(--electric); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.18), 0 0 10px rgba(47, 123, 255, 0.85); }
.status--beta::before { background: linear-gradient(90deg, var(--cobalt) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.status--dev::before { box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.status--open::before { background: var(--cobalt); }
.note { color: var(--ink-3); font-size: 0.875rem; }
.badge { display: inline-block; border-radius: 9px; }
.badge img { height: 44px; width: auto; }
.textlink { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(24, 88, 214, 0.5); text-decoration-thickness: 2px; text-underline-offset: 0.28em; }
.textlink:hover { color: var(--cobalt); text-decoration-color: var(--cobalt); }
.work__more { padding-block: 40px var(--section); }

/* staged layout (wide screens with motion; js/motion.js adds .is-staged) */
.stage.is-staged {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.is-staged .stage__glow {
  display: block;
  position: absolute;
  right: 4%;
  top: 52%;
  width: min(58vw, 820px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76, 155, 255, 0.34), rgba(191, 219, 255, 0.42) 55%, rgba(191, 219, 255, 0));
  pointer-events: none;
}
.is-staged .stage__visual {
  display: grid;
  place-items: center;
  position: absolute;
  top: var(--header-h);
  bottom: 96px;
  right: max(var(--gut-r), calc((100vw - var(--wrap)) / 2));
  width: 52%;
  max-width: 700px;
  perspective: 1600px;
}
.scene {
  --pw: clamp(210px, min(30vh, 22vw), 285px);
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.scene > div { grid-area: 1 / 1; transform-style: preserve-3d; }
.scene .float { position: relative; display: grid; place-items: center; transform-style: preserve-3d; }
.scene .phone { --pw: inherit; width: var(--pw); }
/* a light reflection on the polished floor */
.stage__phone .phone { -webkit-box-reflect: below 18px linear-gradient(transparent 80%, rgba(255, 255, 255, 0.16)); }
@media (prefers-reduced-motion: no-preference) {
  .is-staged .float { animation: float 7s ease-in-out infinite; }
  .stage.is-paused .float, .stage.is-paused .tile { animation-play-state: paused; }
}
@keyframes float { 0%, 100% { transform: translate3d(0, -8px, 0); } 50% { transform: translate3d(0, 8px, 0); } }

/* light glass tiles float round the device on a tilted ellipse that never crosses its screen:
   x and y follow the angle, depth follows it too, so the lower tiles come forward and the upper ones recede */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.orbit {
  --R: calc(var(--pw) * 1.12);
  --Ry: calc(var(--pw) * 1.16);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateZ(-7deg) rotateY(-10deg);
}
.tile {
  --a: calc(var(--i) * 60deg + 20deg);
  position: absolute;
  left: -26px;
  top: -26px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(234, 243, 255, 0.7) 55%, rgba(191, 219, 255, 0.62));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.95),
    inset 0 1px 0 var(--white),
    inset 0 -2px 6px rgba(47, 123, 255, 0.18),
    0 0 0 1px rgba(47, 123, 255, 0.14),
    0 18px 34px -14px rgba(24, 88, 214, 0.55),
    0 0 26px -6px rgba(76, 155, 255, 0.55);
  transform:
    translate3d(calc(cos(var(--a)) * var(--R)), calc(sin(var(--a)) * var(--Ry)), calc(sin(var(--a)) * 90px))
    rotateZ(7deg) rotateY(12deg);
}
.tile svg { width: 26px; height: 26px; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .is-staged .tile { animation: orbit 48s linear infinite; animation-delay: calc(var(--i) * -8s); }
}
@keyframes orbit { from { --a: 20deg; } to { --a: 380deg; } }
/* the "orbit" switch (<html data-mc-off="orbit">): the tiles stay where they are and the devices stop floating */
:root[data-mc-off~="orbit"] .is-staged .float,
:root[data-mc-off~="orbit"] .is-staged .tile { animation: none; }

.is-staged .stage__items {
  position: absolute;
  inset: 0 0 96px;
  display: block;
  max-width: none;
  padding: 0;
}
.is-staged .work-item {
  position: absolute;
  top: calc(50% + var(--header-h) / 2);
  left: max(var(--gut-l), calc((100vw - var(--wrap)) / 2));
  width: min(40%, 500px);
  transform: translateY(-50%);
  display: block;
  padding: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}
.is-staged .work-item.is-current { pointer-events: auto; }
.is-staged .work-item__visual { display: none; }
.is-staged .stage__rail {
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 96px;
}
.stage__rail ol {
  display: grid;
  grid-template-columns: repeat(var(--n, 6), 1fr);   /* one per card on stage: js/motion.js sets --n */
  gap: 14px;
  height: 100%;
  align-items: center;
}
.stage__rail a {
  display: grid;
  gap: 12px;
  padding: 10px 0;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.stage__rail a:hover { color: var(--ink); }
.stage__rail a[aria-current="step"] { color: var(--cobalt); }
.stage__rail .bar { position: relative; display: block; height: 2px; border-radius: 2px; background: rgba(24, 88, 214, 0.16); overflow: hidden; }
.stage__rail .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cobalt), var(--glow)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 8px var(--glow); }

/* ---------------------------------------------------------------- how we work */
.process { position: relative; padding-block: var(--section); overflow-x: clip; }
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 40% at 50% 55%, rgba(76, 155, 255, 0.10), transparent 70%);
}
.process__body { position: relative; }
.process__rail {
  position: absolute;
  border-radius: 2px;
  background: rgba(24, 88, 214, 0.16);
}
/* the line of light: cobalt where it starts, electric toward its moving head */
.process__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cobalt), var(--electric) 60%, var(--glow));
  box-shadow: 0 0 10px rgba(76, 155, 255, 0.85), 0 0 24px rgba(47, 123, 255, 0.35);
  transform-origin: 0 0;
}
.process__steps { position: relative; display: grid; gap: 40px; }
/* any number of steps (Matej can hide, add or remove them): --steps counts the rendered ones here and
   js/motion.js counts the ones shown at this screen size; the rail runs from the first node to the last */
.process__body:has(.step:nth-child(1):last-child) { --steps: 1; }
.process__body:has(.step:nth-child(2):last-child) { --steps: 2; }
.process__body:has(.step:nth-child(3):last-child) { --steps: 3; }
.process__body:has(.step:nth-child(4):last-child) { --steps: 4; }
.process__body:has(.step:nth-child(6):last-child) { --steps: 6; }
.process__body:has(.step:nth-child(7):last-child) { --steps: 7; }
.process__body:has(.step:nth-child(8):last-child) { --steps: 8; }
.process__body:not(:has(.step)) .process__rail { display: none; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step h3 { font-size: 1.375rem; display: flex; align-items: baseline; gap: 12px; }
.step__num { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--cobalt); }
.step p { color: var(--ink-2); font-size: 1rem; }
.step .step__out { color: var(--cobalt); font-size: 0.9375rem; font-weight: 500; }
/* a lit node: an electric point with a white core ring and a blue glow */
.step__node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px rgba(47, 123, 255, 0.45), 0 0 14px 3px rgba(76, 155, 255, 0.8), 0 0 36px 6px rgba(76, 155, 255, 0.3);
  transition: background-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease-out);
}
/* js/motion.js adds .is-live: steps wait unlit until the line reaches them.
   Unlit copy dims only to 0.92 so its text stays at 4.5:1 or better on the light ground. */
.process.is-live .step__node { background: var(--ice-2); box-shadow: 0 0 0 3px var(--ground), 0 0 0 4px rgba(24, 88, 214, 0.22); transform: scale(0.8); }
.process.is-live .step.is-lit .step__node { background: var(--electric); box-shadow: 0 0 0 3px var(--white), 0 0 0 4px rgba(47, 123, 255, 0.45), 0 0 14px 3px rgba(76, 155, 255, 0.8), 0 0 36px 6px rgba(76, 155, 255, 0.3); transform: scale(1); }
.process.is-live .step > :not(.step__node) { transition: opacity 0.6s; }
.process.is-live .step:not(.is-lit) > :not(.step__node) { opacity: 0.92; }

/* phones: a vertical line on the left */
.process__rail { left: 6px; top: 8px; bottom: 8px; width: 2px; }
.process__fill { background: linear-gradient(180deg, var(--cobalt), var(--electric) 60%, var(--glow)); }
.process__steps { padding-left: 40px; }
.step__node { left: -40px; top: 6px; }
@media (min-width: 1000px) {
  .process__rail { left: 7px; right: calc((100% - (var(--steps, 5) - 1) * 28px) / var(--steps, 5) - 7px); top: 6px; bottom: auto; width: auto; height: 2px; }
  .process__fill { background: linear-gradient(90deg, var(--cobalt), var(--electric) 60%, var(--glow)); }
  .process__steps { grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 28px; padding-left: 0; padding-top: 44px; }
  .step__node { left: 0; top: -44px; }
}

/* ---------------------------------------------------------------- start a project: the deep navy band where the network converges */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(120px, 16vw, 220px);
  text-align: center;
  color: var(--on-night);
  background:
    radial-gradient(60% 50% at 50% 62%, rgba(47, 123, 255, 0.18), transparent 70%),
    radial-gradient(120% 140% at 50% 120%, var(--navy) 0%, var(--night-2) 45%, var(--night) 100%);
}
.cta__core {
  position: absolute;
  left: 50%;
  top: var(--core-y, 66%);
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(234, 243, 255, 0.55), rgba(76, 155, 255, 0.35) 18%, rgba(47, 123, 255, 0.12) 45%, transparent);
  pointer-events: none;
  transition: opacity 0.8s;
}
.net-on .cta__core { opacity: 0; }
.cta__inner { position: relative; display: grid; justify-items: center; }
.cta h2 { font-size: clamp(2.75rem, 1.4rem + 5vw, 6rem); max-width: 14ch; color: var(--white); }
.cta__text { max-width: 32rem; margin-top: 22px; color: var(--on-night-2); font-size: 1.125rem; }
.cta__btn { margin-top: clamp(64px, 9vw, 104px); }
.cta .btn--primary,
.cta .wp-block-button:not(.is-style-glass):not(.btn--glass) > .wp-block-button__link { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(191, 219, 255, 0.3), 0 0 0 1px rgba(5, 14, 31, 0.6), 0 10px 30px -10px rgba(47, 123, 255, 0.85); }
.cta .btn--primary:hover,
.cta .wp-block-button:not(.is-style-glass):not(.btn--glass) > .wp-block-button__link:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(191, 219, 255, 0.4), 0 0 0 1px rgba(5, 14, 31, 0.6), 0 14px 44px -8px rgba(76, 155, 255, 0.95); }
.cta__mail { margin-top: 44px; color: var(--on-night-2); }
.cta__mail a { color: var(--white); font-weight: 600; text-decoration-color: rgba(191, 219, 255, 0.6); }
.cta__mail a:hover { color: var(--on-night-2); }
.cta :focus-visible { outline-color: var(--on-night-2); }
.cta ::selection { background: rgba(76, 155, 255, 0.45); color: var(--white); }

/* ---------------------------------------------------------------- inner pages: head */
.page-head {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(72px, 10vw, 140px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 70% at 80% 20%, rgba(76, 155, 255, 0.2), transparent 70%),
    linear-gradient(180deg, var(--ground-2) 0%, var(--ground) 100%);
}
.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0), var(--ground));
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(3rem, 1.6rem + 5.2vw, 6.5rem); max-width: 14ch; letter-spacing: -0.02em; }
.page-head .lead { max-width: 38rem; margin-top: 24px; color: var(--ink-2); font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); }
.page-head .lead a { color: var(--cobalt); font-weight: 600; }
.page-head .lead a:hover { color: var(--ink); }
.page-head__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.8), rgba(245, 249, 255, 0) calc(var(--header-h) + 60px)),
    radial-gradient(60% 80% at 15% 70%, rgba(245, 249, 255, 0.86), rgba(245, 249, 255, 0) 70%);
}
@media (max-width: 760px) {
  .page-head__veil { background: linear-gradient(180deg, rgba(245, 249, 255, 0.8), rgba(245, 249, 255, 0.25) calc(var(--header-h) + 40px), rgba(245, 249, 255, 0.8) 60%); }
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border-radius: 999px;
  color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95), 0 0 0 1px var(--hair);
}
.jump a:hover { background: var(--white); color: var(--cobalt); }

.section { position: relative; padding-block: clamp(56px, 8vw, 112px); }
.section + .section { padding-top: 0; }

/* ---------------------------------------------------------------- services page */
.services--page { padding-top: clamp(16px, 3vw, 40px); }
.services--page .services__light { inset: 0; background: radial-gradient(36% 30% at 88% 30%, rgba(76, 155, 255, 0.18), transparent 70%), radial-gradient(30% 30% at 8% 70%, rgba(76, 155, 255, 0.14), transparent 70%); }
.svc-detail {
  display: grid;
  gap: 28px;
  padding: 32px 24px;
  margin-bottom: 20px;
}
.svc-detail__head { display: grid; gap: 22px; align-content: start; }
.svc-detail__head h2 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.svc-detail__body { display: grid; gap: 24px; max-width: 44rem; }
.svc-detail__body > p { color: var(--ink-2); font-size: 1.0625rem; }
.svc-detail__body > p:first-child { color: var(--ink); font-size: 1.1875rem; }
.covers h3 { font-size: 1rem; color: var(--ink-3); font-weight: 500; margin-bottom: 10px; }
.covers ul { display: grid; gap: 8px; }
@media (min-width: 640px) { .covers ul { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.covers li { position: relative; padding-left: 22px; }
.covers li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--electric); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.15), 0 0 8px rgba(47, 123, 255, 0.7);
}
.in-our-work { padding-top: 20px; border-top: 1px solid var(--hair); }
.in-our-work strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .svc-detail { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; padding: 48px; margin-bottom: 24px; }
}

/* ---------------------------------------------------------------- work page */
.group { position: relative; padding-block: clamp(56px, 8vw, 112px); }
.group-head { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 56px); }
.group-head h2 { font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); }
.group-head p { margin-top: 14px; color: var(--ink-2); }

.product {
  display: grid;
  gap: 32px;
  padding: 28px 22px;
  margin-bottom: 20px;
  overflow: hidden;
}
.product__head { display: flex; align-items: center; gap: 18px; }
.app-icon { width: 72px; height: 72px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(11, 42, 69, 0.08), 0 12px 28px -10px rgba(24, 88, 214, 0.55); flex: none; }
.product__head h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.25rem, 1.7rem + 2vw, 3.25rem); line-height: 1; letter-spacing: -0.01em; }
.product__kind { margin-top: 6px; color: var(--ink-3); font-size: 0.9375rem; }
.product__info { display: grid; gap: 18px; justify-items: start; align-content: start; }
.product__info > p { color: var(--ink-2); }
.features { display: grid; gap: 8px; }
.features li { position: relative; padding-left: 22px; }
.features li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--electric); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.15), 0 0 8px rgba(47, 123, 255, 0.7);
}
/* three screenshots, fanned in depth */
.shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  margin-inline: -4px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 88, 214, 0.3) transparent;
}
.shots li { flex: 0 0 min(64vw, 240px); scroll-snap-align: center; }
.shots img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(11, 42, 69, 0.08), 0 30px 60px -30px rgba(24, 88, 214, 0.6), 0 0 50px -16px rgba(76, 155, 255, 0.45);
}
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); padding: 48px; gap: 48px; align-items: center; }
  .product__head { grid-column: 1 / -1; }
  .shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding: 24px 16px;
    margin: 0;
    perspective: 1400px;
  }
  .shots li { transition: transform 0.9s var(--ease-out); }
  .shots li:nth-child(1) { transform: translateX(14%) rotateY(18deg) scale(0.9); }
  .shots li:nth-child(2) { position: relative; z-index: 1; transform: translateZ(40px); }
  .shots li:nth-child(3) { transform: translateX(-14%) rotateY(-18deg) scale(0.9); }
  /* js/site.js: fans start closed and open once in view (motion only) */
  .shots.is-folded li:nth-child(1) { transform: translateX(60%) rotateY(10deg) scale(0.86); }
  .shots.is-folded li:nth-child(3) { transform: translateX(-60%) rotateY(-10deg) scale(0.86); }
}


/* ---------------------------------------------------------------- about */
.split { display: grid; gap: 20px; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--hair); }
.split:first-child { border-top: 0; }
.split > h2 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.25rem); }
.prose { display: grid; gap: 18px; max-width: 40rem; }
.prose p { color: var(--ink-2); font-size: 1.125rem; }
.prose p:first-child { color: var(--ink); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; } }
.factlist { display: grid; gap: 0; max-width: 40rem; }
.factlist > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.factlist > div:first-child { padding-top: 0; }
.factlist dt { color: var(--ink-3); }
.factlist dd { color: var(--ink); }
.values { display: grid; gap: 16px; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { display: grid; gap: 10px; align-content: start; padding: 26px 24px; }
.values .glyph { width: 40px; height: 40px; margin-bottom: 6px; }
.values p { color: var(--ink-2); font-size: 1rem; }
.name-note { display: flex; align-items: center; gap: 20px; max-width: 40rem; }
.name-note img { width: 128px; height: 128px; object-fit: cover; border-radius: 28px; flex: none; box-shadow: 0 0 0 1px rgba(11, 42, 69, 0.08), 0 16px 34px -12px rgba(24, 88, 214, 0.55); }
@media (max-width: 480px) { .name-note img { width: 96px; height: 96px; border-radius: 22px; } }
.name-note p { color: var(--ink-2); font-size: 1.125rem; }

/* ---------------------------------------------------------------- contact */
.start { display: grid; gap: 28px; padding: 28px 22px; }
.start h2 { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.25rem); }
.start__copy { display: grid; gap: 18px; justify-items: start; align-content: start; }
.start__copy p { color: var(--ink-2); }
.start__mail { font-family: var(--f-display); font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.1; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(24, 88, 214, 0.4); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.start__mail:hover { color: var(--cobalt); text-decoration-color: var(--cobalt); }
.brief h3 { font-size: 1.125rem; margin-bottom: 14px; }
.brief ul { display: grid; gap: 12px; }
.brief li { position: relative; padding-left: 26px; color: var(--ink-2); }
.brief li strong { color: var(--ink); font-weight: 600; }
.brief li::before {
  content: ""; position: absolute; left: 3px; top: 0.6em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--electric); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.15), 0 0 10px rgba(47, 123, 255, 0.7);
}
@media (min-width: 900px) { .start { grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px; } }
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-grid > div { display: grid; gap: 8px; align-content: start; padding: 24px; }
.contact-grid h3 { font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.contact-grid a.big { color: var(--ink); font-size: 1.1875rem; font-weight: 600; overflow-wrap: anywhere; text-decoration-color: rgba(24, 88, 214, 0.45); }
.contact-grid a.big:hover { color: var(--cobalt); }
.contact-grid p, .contact-grid address { color: var(--ink-2); }
.support { display: grid; gap: 10px; }
.support li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 14px 18px; border-radius: 18px;
}
.support .who { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); }
/* on phones each app's link sits on its own line under the name, however short the name ("Rheya" fitted beside it) */
@media (max-width: 600px) { .support li > p { flex-basis: 100%; } }
.support img { width: 44px; height: 44px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(11, 42, 69, 0.08), 0 8px 18px -10px rgba(24, 88, 214, 0.5); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------------------------------------------------------------- privacy */
.policy { display: grid; gap: 40px; padding-bottom: var(--section); }
.policy__meta { margin-top: 18px; color: var(--ink-3); }
.toc { align-self: start; padding: 22px; border-radius: 20px; }
.toc h2 { font-family: var(--f-text); font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; letter-spacing: 0; }
.toc ol { display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--hair-strong); color: var(--ink-2); font-size: 0.9375rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.is-current { color: var(--ink); font-weight: 600; border-left-color: var(--electric); }
.policy__body { max-width: 44rem; }
.policy__body h2 { font-family: var(--f-text); font-weight: 600; font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; margin: 48px 0 14px; }
.policy__body h2:first-child { margin-top: 0; }
.policy__body p, .policy__body ul { color: var(--ink-2); margin-bottom: 14px; }
.policy__body ul { display: grid; gap: 8px; padding-left: 4px; }
.policy__body li { position: relative; padding-left: 22px; }
.policy__body li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: var(--electric); }
.policy__body a { overflow-wrap: anywhere; }
@media (min-width: 1000px) {
  .policy { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
}

/* ---------------------------------------------------------------- footer (light, as in Lumen: the navy logo on the ice ground) */
.site-footer { position: relative; padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--hair-2); background: var(--ground); }
.site-footer__grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; } }
.site-footer__brand img { width: 150px; }
.site-footer__brand p { margin-top: 16px; max-width: 22rem; color: var(--ink-2); font-size: 0.9375rem; }
.site-footer h2 { font-family: var(--f-text); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a, .site-footer address, .site-footer .site-footer__address { color: var(--ink); font-size: 0.9375rem; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--cobalt); text-decoration: underline; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  position: relative;
  margin-top: 48px; padding-block: 24px max(24px, env(safe-area-inset-bottom, 0px));
  color: var(--ink-3); font-size: 0.875rem;
}
.site-footer__base::before { content: ""; position: absolute; top: 0; left: var(--gut-l); right: var(--gut-r); height: 1px; background: var(--hair-2); }
.site-footer__base a { color: var(--ink-2); font-size: 0.875rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------------------------------------------------------------- block markup */
/* What block markup needs on top of v8's rules. theme.json sets the block gap to 0, so blocks have no
   margins of their own: spacing comes from v8's classes, as in the prototype. */

/* core/image: the block puts its class on <figure> (v8 put it on <img> or <a>) */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; }

/* core/buttons and core/button: a row of buttons, and v8's .btn on the link (see "buttons" above) */
.wp-block-buttons { gap: 12px; }
.wp-block-buttons > .wp-block-button { margin: 0; }
.wp-block-button__link { box-sizing: border-box; word-break: normal; }
@media (max-width: 760px) {
  .hero__actions > .wp-block-button { flex: 1 1 auto; }
  .hero__actions > .wp-block-button > .wp-block-button__link { width: 100%; }
}

/* core/post-content and the page wrapper add no layout of their own */
.wp-site-blocks > main,
.wp-block-post-content { margin: 0; }

/* ---------------------------------------------------------------- generic templates (index, 404) */
.page-head--404 { min-height: min(72vh, 760px); }
.post-list { padding-bottom: var(--section); }
.post-list .wp-block-post-template { display: grid; gap: 16px; }
.post-list .glass { display: grid; gap: 10px; padding: 26px 24px; }
.post-list .wp-block-post-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.05; }
.post-list .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.post-list .wp-block-post-title a:hover { color: var(--cobalt); }
.post-list .wp-block-post-date { color: var(--ink-3); font-size: 0.875rem; }
.post-list .wp-block-post-excerpt__excerpt { color: var(--ink-2); }
.post-list .wp-block-post-excerpt__more-text { margin-top: 8px; }
.post-list .wp-block-query-pagination { display: flex; gap: 16px; margin-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .net, .net-still, .cta__core, .stage__visual, .stage__rail { display: none !important; }
  body { background: #fff; color: #000; }
}
