/*!
 * Theme Name: PDTI Green Ops
 * Description: Visual identity for Pusat Data & Teknologi Informasi UMI.
 * Version: 1.0.0
 *
 * The concept: PDTI is the control room for UMI's digital infrastructure.
 * A dark, telemetry-flavoured chrome carrying an Islamic girih lattice, over
 * light, generous reading surfaces. Green is the university's colour; mint is
 * the "this is live" signal; gold is reserved for emphasis, never decoration.
 *
 * Contents
 *   1  Tokens
 *   2  Reset & base
 *   3  Typography
 *   4  Layout primitives
 *   5  Components — buttons, cards, badges
 *   6  Header & navigation
 *   7  Hero & telemetry rail
 *   8  Sections
 *   9  Article & prose
 *  10  Forms
 *  11  Footer
 *  12  Floating UI — accessibility, back-to-top, assistant
 *  13  Accessibility modes
 *  14  RTL
 *  15  Print
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2-variations'),
       url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2-variations'),
       url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

/* Loaded only where it is needed — see [dir="rtl"] below. */
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('fonts/noto-naskh-arabic.woff2') format('woff2-variations'),
       url('fonts/noto-naskh-arabic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  /* Palette */
  --void:   #04150F;
  --deep:   #062A1E;
  --forest: #0A3D2B;
  --green:  #0E7A4F;
  --mint:   #24D3A5;
  --mint-dim: #14B389;
  --gold:   #C9A227;
  --paper:  #F6F8F7;
  --white:  #FFFFFF;

  /* Header height as a token, not a number repeated in three places. The
     mobile nav drawer hangs off it — when the header grew for the three-line
     brand lockup, a hard-coded 4.25rem there would have slid the drawer up
     under the header, and nothing in the header's own rules would say so. */
  --header-h: 4.75rem;
  --ink:    #0B1F17;
  --muted:  #5A6B63;
  --line:   #DCE5E0;
  --danger: #B4231F;

  /* Semantic */
  --bg: var(--paper);
  --fg: var(--ink);
  --surface: var(--white);
  --border: var(--line);
  --accent: var(--green);

  /* Text on dark surfaces. Named, because "which green-grey was that again?"
     is how a palette drifts into a dozen near-identical hexes. */
  --on-dark:      #D8E6DF;
  --on-dark-soft: #C6D8CF;
  --on-dark-dim:  #9FB8AD;
  --hairline:     rgba(255, 255, 255, 0.1);
  --hairline-hi:  rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, monospace;

  /* A fluid scale: readable on a phone, composed on a desktop, with no
     breakpoint jumps in between.
     Every size in this stylesheet comes from here. The small end carries most
     of the interface — labels, meta, mono captions — so it gets three real
     steps rather than a dozen hand-picked decimals that never quite agree. */
  --step--3: clamp(0.65rem, 0.63rem + 0.09vw, 0.70rem);
  --step--2: clamp(0.74rem, 0.71rem + 0.11vw, 0.79rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.89rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.42rem);
  --step-2:  clamp(1.44rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3:  clamp(1.73rem, 1.5rem + 1.15vw, 2.5rem);
  --step-4:  clamp(2.07rem, 1.7rem + 1.85vw, 3.3rem);
  --step-5:  clamp(2.49rem, 1.9rem + 2.9vw, 4.4rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape — 12px is the girih star's cut, reused everywhere as the notch. */
  --notch: 12px;
  --radius: 4px;

  --shadow-sm: 0 1px 2px rgba(6, 42, 30, 0.06), 0 2px 8px rgba(6, 42, 30, 0.04);
  --shadow-md: 0 2px 6px rgba(6, 42, 30, 0.08), 0 12px 28px rgba(6, 42, 30, 0.08);

  --wrap: 76rem;
  --measure: 68ch;

  --speed: 200ms;
  --ease: cubic-bezier(0.2, 0, 0.15, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchored headings must clear the sticky header. */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
svg { flex: none; }

a { color: var(--accent-fg); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }

/* One visible focus treatment everywhere. Never removed — only restyled. */
:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--mint); color: var(--void); }

hr { border: 0; height: 1px; background: var(--border); margin: var(--sp-6) 0; }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 200;
  background: var(--void);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-weight: 600;
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: var(--white); }

.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;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.021em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
  /* A single long token — a URL, a system name — must never be able to push
     the page wider than the screen. Headings are where that bites first,
     because they run at four times the body size. */
  overflow-wrap: break-word;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: var(--measure);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* The section eyebrow: a mono index number and a hairline, borrowed from
   technical documentation rather than marketing pages. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-fg);
  margin-bottom: var(--sp-3);
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0.4;
}
.eyebrow--light { color: var(--accent-fg); }
.eyebrow--light::after { background: linear-gradient(90deg, var(--mint), transparent); }

/* ==========================================================================
   4. Layout primitives
   ========================================================================== */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
/* For single-column reading blocks — FAQ, search, forms — where the full
   width would run past a comfortable measure. One value, not three
   hand-picked ones per page. */
.wrap--narrow { width: min(100% - 2.5rem, 54rem); }

/* Standard gap between a block's intro and the content it introduces. */
.block-intro { margin-bottom: var(--sp-7); }

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
/* A white band between two paper-coloured sections, so the news block reads
   as a distinct surface without needing a border of its own. */
.section--paper {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.section--dark {
  background: var(--deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.section--dark h2, .section--dark h3 { color: var(--hi); }

.section__head { margin-bottom: var(--sp-6); max-width: var(--measure); }
.section__head p { color: var(--muted); margin: 0; }
.section--dark .section__head p { color: var(--on-dark-dim); }

.section__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}
.section__bar .section__head { margin-bottom: 0; }

.grid { display: grid; gap: var(--sp-5); }
/* Two, for the same reason grid--3 is three: auto-fit gave a third column on a
   wide screen and left the fourth item alone on its own row. */
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 52rem) { .grid--2 { grid-template-columns: minmax(0, 1fr); } }
/* Three, not "as many as fit". auto-fit gave four columns on a wide screen,
   which left the last row of a three-item set orphaned. */
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

@media (max-width: 64rem) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 44rem) { .grid--3 { grid-template-columns: minmax(0, 1fr); } }

.grid--middle { align-items: center; }
/* The feature card and the cards under it belong to one block, so they sit
   closer together than two separate grids would. */
.grid--after-feature { margin-top: var(--sp-5); }

.stack > * + * { margin-top: var(--sp-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* The signature girih backdrop. Inline SVG, so it costs no request and
   inherits currentColor for the high-contrast mode.
   Oversized by 6% so the slow drift never exposes an edge. */
.girih {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  color: var(--accent-fg);
  pointer-events: none;
  z-index: 0;
  animation: girih-drift 96s ease-in-out infinite alternate;
}
/* Targets the content wrapper by name rather than "whatever follows the
   girih". The earlier `.girih ~ *:not(.motes)` form had to be told about each
   new decorative layer, and it caught the footer's connection ribbon the
   moment that was added: the rule forced `position: relative`, the ribbon
   fell back into flow, and it rendered 177px above the footer it belongs to.
   Every section using this pattern wraps its content in `.wrap`. */
.girih ~ .wrap { position: relative; z-index: 1; }

@keyframes girih-drift {
  from { transform: translate3d(-1.2%, 0.8%, 0); }
  to   { transform: translate3d(1.2%, -0.8%, 0); }
}

/* --------------------------------------------------------------------------
   Data motes
   Ambient traffic for the quiet dark panels. Sparse and slow on purpose: a
   control room reads as calm, and motion that competes with the text would
   make the page feel busy rather than alive.
   -------------------------------------------------------------------------- */
.motes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mote {
  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(36, 211, 165, 0.55);
  opacity: 0;
  animation: mote-rise var(--d) linear infinite;
  animation-delay: var(--dl);
  /* No will-change: it would promote three dozen elements to their own
     compositor layers, which costs more memory than it saves on an animation
     that is already only transform and opacity. */
}
.mote--gold { background: var(--gold); box-shadow: 0 0 9px rgba(201, 162, 39, 0.6); }

@keyframes mote-rise {
  0%       { transform: translate3d(0, 0, 0); opacity: 0; }
  14%      { opacity: 0.85; }
  70%      { opacity: 0.5; }
  100%     { transform: translate3d(18px, -210px, 0); opacity: 0; }
}

/* ==========================================================================
   5. Components
   ========================================================================== */

.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.72rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  /* The notched corner — the girih star's cut, carried across the whole UI. */
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.btn:hover { --btn-bg: var(--forest); color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn--mint { --btn-bg: var(--mint); --btn-fg: var(--void); }
.btn--mint:hover { --btn-bg: var(--mint-dim); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--green); border-color: var(--green); }

.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.14); --btn-fg: var(--white); }

.btn--sm { padding: 0.45rem 0.9rem; font-size: var(--step--1); --notch: 8px; }
.btn--block { width: 100%; justify-content: center; }

/* Every icon() call emits class="ico". Giving it a size here means a context
   that forgets to size its icons gets a small one rather than an SVG stretched
   to the full width of its container — which is exactly what happened the
   first time the services-by-audience block had rows to render.
   Single-class specificity, so any component rule still overrides it. */
.ico { width: 1.15rem; height: 1.15rem; flex: none; }

/* Card — the notch appears on the top-left and bottom-right, so a grid of
   them reads as one cut sheet rather than a row of rounded boxes. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__title { font-size: var(--step-1); margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--accent-fg); }
.card__text { color: var(--muted); margin: 0; font-size: var(--step--1); line-height: 1.6; }
.card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.05em;
  color: var(--muted); text-transform: uppercase;
}
/* picture is inline by default, so an img inside it resolves height:100%
   against an auto-height box and falls back to its intrinsic size. */
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.card__media picture { display: block; width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__foot { margin-top: auto; padding-top: var(--sp-2); }

/* Feature story — the newest article, image left, text right. Gives the news
   block a focal point; a grid of equal cards gives the eye nowhere to land. */
.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.feature:hover { border-color: var(--green); box-shadow: var(--shadow-md); }
.feature__media { position: relative; overflow: hidden; background: var(--deep); min-height: 20rem; }
.feature__media picture { display: block; position: absolute; inset: 0; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--sp-3); padding: var(--sp-6);
  justify-content: center;
}
.feature__title { font-size: var(--step-3); line-height: 1.15; margin: 0; }
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover { color: var(--accent-fg); }
.feature__text { color: var(--muted); margin: 0; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Dark panel + link list
   The services-by-audience block on the homepage: one panel per audience,
   holding a checklist of links.
   -------------------------------------------------------------------------- */
.panel-dark {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}
.panel-dark > .badge { align-self: flex-start; }

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.link-list li + li { border-top: 1px solid var(--hairline); }
.link-list a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  color: var(--on-dark-soft);
  font-size: var(--step--1);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.link-list a:hover { color: var(--hi); }
.link-list .ico { width: 0.95rem; height: 0.95rem; color: var(--accent-fg); }

/* --------------------------------------------------------------------------
   Audience card
   Image-led entry point per audience, the shape bsi.uii.ac.id leads with.
   The art is decorative geometry, so it carries an empty alt and sits behind
   a scrim rather than competing with the label.
   -------------------------------------------------------------------------- */
.acard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 15rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--hairline);
  background: var(--void);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.acard:hover { border-color: var(--mint); transform: translateY(-3px); }

.acard__art { position: absolute; inset: 0; }
.acard__art picture { display: block; height: 100%; }
.acard__art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease), filter var(--speed) var(--ease);
}
.acard:hover .acard__art img { transform: scale(1.06); }

/* Scrim: without it the label sits on whatever the artwork happens to do.
   Weighted to the bottom only — the art is already dark, and an even scrim
   over it left the cards looking like plain black rectangles. */
.acard__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 21, 15, 0.2) 46%, rgba(4, 21, 15, 0.88) 100%);
}
/* Lift the artwork a little, since it was drawn to sit behind body text. */
.acard__art img { filter: saturate(1.15) brightness(1.25); }

/* --------------------------------------------------------------------------
   Role figure
   Sits bottom-right of the card, behind the label. Fills are tokens rather
   than literals so the figures track the palette — including high-contrast
   mode, which repaints the whole theme.
   -------------------------------------------------------------------------- */
.acard__figure {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: var(--sp-4);
  z-index: 1;
  width: 44%;
  max-width: 10.5rem;
  pointer-events: none;
  /* Fades into the card rather than sitting on it like a sticker. Starting the
     fade at 62% swallowed the props the figures are holding, which is most of
     what tells one role from another. */
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}

.fig { width: 100%; height: auto; display: block; }
.fig__body   { fill: var(--green); }
.fig__head,
.fig__skin   { fill: var(--on-dark-soft); }
.fig__accent { fill: var(--mint); color: var(--accent-fg); }
.fig__gold   { fill: var(--gold); color: var(--gold-fg); }
/* Held objects — book pages, clipboard, speech bubble. Light, because a
   dark prop on a dark card is invisible no matter how well it is drawn. */
.fig__paper  { fill: var(--on-dark); }
.fig__panel  { fill: var(--deep); }
/* Ruled lines on those objects, so they need the paper's opposite. */
.fig__rule   { color: var(--accent-fg); }

/* The figure drifts up slightly on hover, with the card. */
.fig { transition: transform 500ms var(--ease); }
.acard:hover .fig { transform: translateY(-6px); }

.acard__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-5);
  /* Keep the label clear of the figure. */
  padding-inline-end: 45%;
}

@media (max-width: 30rem) {
  /* Too narrow for both: the label wins. */
  .acard__figure { display: none; }
  .acard__body { padding-inline-end: var(--sp-5); }
}
.acard__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.2;
}
.acard__count {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.acard__go {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--on-dark-soft);
}
.acard:hover .acard__go { color: var(--white); }
.acard__go .ico { transition: transform var(--speed) var(--ease); }
.acard:hover .acard__go .ico { transform: translateX(3px); }

/* Five cards in a three-column grid: the last two take half the row each,
   which is deliberate rather than an orphan. */
.audience-grid > .acard:nth-child(4),
.audience-grid > .acard:nth-child(5) { grid-column: span 3; }

@media (min-width: 64.0625rem) {
  .audience-grid > .acard:nth-child(4) { grid-column: 1 / span 2; }
  .audience-grid > .acard:nth-child(5) { grid-column: 3 / span 1; }
}
@media (max-width: 64rem) {
  .audience-grid > .acard:nth-child(4),
  .audience-grid > .acard:nth-child(5) { grid-column: auto; }
}

/* The mint hairline marks the lead as the entry point of the section. */
.feature::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block: 0;
  width: 3px; background: linear-gradient(180deg, var(--mint), var(--green));
}

@media (max-width: 56rem) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .feature__body { padding: var(--sp-5); }
}

/* Icon tile used by the service and system grids. */
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  text-decoration: none;
  color: inherit;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.tile:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.tile__icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--deep), var(--forest));
  color: var(--mint);
  border-radius: var(--radius);
}
.tile__icon svg { width: 1.4rem; height: 1.4rem; }
.tile__name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); }
.tile__desc { color: var(--muted); font-size: var(--step--1); margin: 0; line-height: 1.55; }
.tile__go { margin-top: auto; color: var(--accent-fg); font-weight: 600; font-size: var(--step--1); display: inline-flex; align-items: center; gap: var(--sp-2); }
.tile:hover .tile__go svg { transform: translateX(3px); }
.tile__go svg { width: 1em; height: 1em; transition: transform var(--speed) var(--ease); }

.badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(14, 122, 79, 0.1);
  color: var(--accent-fg);
  border-radius: 2px;
  text-decoration: none;
}
.badge--gold { background: rgba(201, 162, 39, 0.14); color: #8A6D12; }
.badge--live { background: rgba(36, 211, 165, 0.14); color: var(--mint-dim); }

/* The live-status dot. Its pulse is the only ambient motion on the page. */
.dot {
  width: 0.5rem; height: 0.5rem;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(36, 211, 165, 0.6);
  animation: pulse 2.6s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(36, 211, 165, 0.55); }
  70%  { box-shadow: 0 0 0 0.55rem rgba(36, 211, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 211, 165, 0); }
}

/* Gradient hairline used to separate sections. */
.rule {
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--mint) 40%, transparent);
  border: 0;
  margin: 0;
}

/* ==========================================================================
   6. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 21, 15, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--hi);
  /* Must be allowed to shrink. With flex:none it kept its full width on a
     320px screen and pushed the header tools clean off the right edge —
     the buttons were squashed to 14px and their icons overflowed to 416px. */
  flex: 0 1 auto;
  min-width: 0;
}
/* The official PDTI mark. Its gear is navy — drawn for a light ground — so on
   the dark header it sits on a light plate rather than being recoloured. A
   university's mark is not ours to restyle. The notch matches the cards. */
.brand__mark {
  /* Scaled with the text block: against three lines the old 2.5rem mark read
     as an afterthought rather than half of a lockup. */
  width: 2.875rem; height: 2.875rem;
  flex: none;
  box-sizing: border-box;
  padding: 3px;
  background: var(--white);
  object-fit: contain;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name,
.brand__long,
.brand__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Colour stated here rather than inherited from the .brand anchor. It was the
   only line of the three without its own colour, so any rule that reached the
   anchor — a generic `a { color }`, a stylesheet loading out of order — took
   the title with it and left the other two lines correct. A lockup's own name
   should not depend on what its link colour happens to be. */
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  color: var(--hi);
}
/* The unit's full name. Held below the title on size and weight because it is
   four times as many characters: at equal treatment the longer line wins on
   sheer mass and the lockup reads upside down. */
.brand__long {
  font-size: var(--step--2);
  line-height: 1.3;
  color: var(--on-dark-soft);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: var(--step--3);
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-fg);
}
/* Gold in the header only, where this line carries the university's name.
   The footer reuses the same slot for the tagline, which is a different kind
   of statement and keeps the mint. */
.site-header .brand__sub { color: var(--gold-fg); }

/* "UNIVERSITAS MUSLIM INDONESIA" is 28 mono characters — about 227px, and it
   only fits when nothing else is competing for the row. Two ranges cannot
   afford it: below 30rem it loses to the three tool buttons, and from 60rem
   (where the full nav replaces the hamburger) to 76rem it loses to the menu.
   Truncating a university's name to "UNIVERSITAS MUSLIM INDONE…" is worse
   than leaving it out.

   The middle line goes with it in both ranges, for the same reason: measured
   across 370–430px, and again from 961px once the nav appears, it truncated
   to "Pusat Data & Teknologi Inform…". One clean line beats two broken ones.

   Both lines are dropped on the same breakpoints rather than each on its own
   measured edge. Those edges are not stable: the nav labels differ per
   language, and the tightest point sat at 961px in Indonesian but 990px in
   English and Arabic. A boundary tuned to one locale silently breaks the
   others, so the wider, shared bound is the honest one. */
@media (max-width: 30rem),
       (min-width: 60.0625rem) and (max-width: 76rem) {
  .brand__sub,
  .brand__long { display: none; }
  /* One line left, so the header does not need the height three asked for.
     Set on the same condition as the hiding above, so the two can never
     disagree about how tall the lockup actually is. */
  :root { --header-h: 4.25rem; }
}

/* At 320px the gaps alone were eating enough width to force "PDTI UMI" into
   an ellipsis. Tightening them buys back ~60px, which is cheaper than
   shrinking the tool buttons below a comfortable touch target. */
@media (max-width: 26rem) {
  .site-header__inner { gap: var(--sp-3); }
  .header-tools { gap: 0.3rem; }
  .brand { gap: var(--sp-2); }
  .brand__mark { width: 2.25rem; height: 2.25rem; }
}

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--on-dark-soft);
  font-weight: 500;
  font-size: var(--step-0);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.nav__link:hover { color: var(--hi); background: rgba(255, 255, 255, 0.07); }
.nav__link[aria-current='page'] { color: var(--accent-fg); }

.nav__item { position: relative; }
.nav__sub {
  position: absolute;
  top: 100%; inset-inline-start: 0;
  min-width: 13rem;
  background: var(--void);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-2);
  list-style: none;
  margin: 0;
  display: none;
  box-shadow: var(--shadow-md);
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub { display: block; }

.header-tools { display: flex; align-items: center; gap: var(--sp-2); flex: none; }

.icon-btn {
  width: 2.25rem; height: 2.25rem;
  flex: none;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--on-dark-soft);
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: var(--hi); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }

/* Language switcher */
.lang { position: relative; }
.lang__menu {
  position: absolute;
  top: calc(100% + 0.4rem); inset-inline-end: 0;
  min-width: 11rem;
  background: var(--void);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--sp-2);
  list-style: none; margin: 0;
  box-shadow: var(--shadow-md);
}
.lang__menu[hidden] { display: none; }
.lang__link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 0.45rem 0.6rem;
  color: var(--on-dark-soft); text-decoration: none; font-size: var(--step-0);
  border-radius: var(--radius);
}
.lang__link:hover { background: rgba(255, 255, 255, 0.08); color: var(--hi); }
.lang__link[aria-current='true'] { color: var(--accent-fg); }
.lang__code { font-family: var(--font-mono); font-size: var(--step--3); letter-spacing: 0.1em; opacity: 0.7; }

/* Mobile navigation */
.nav-toggle { display: none; }

@media (max-width: 60rem) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--void);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--sp-4);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0; }
  .nav__sub { position: static; display: block; border: 0; background: transparent; padding-inline-start: var(--sp-4); }
}

/* ==========================================================================
   7. Hero & telemetry rail
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(168deg, var(--deep) 0%, var(--void) 74%);
  color: var(--hi);
  overflow: hidden;
  isolation: isolate;
}

/* The glow is its own layer so it can drift. As part of the `background`
   shorthand it was locked to the element and could not be animated without
   repainting the whole gradient stack every frame. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(closest-side, rgba(14, 122, 79, 0.5), transparent 70%);
  width: 90%;
  height: 90%;
  inset-inline-start: 42%;
  top: -22%;
  pointer-events: none;
  z-index: 0;
  animation: hero-glow 34s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to   { transform: translate3d(-6%, 5%, 0) scale(1.12); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Hero constellation
   A slow node graph that makes "UMI Connection" something you can see rather
   than only read. SVG + CSS only: no canvas, no JS, nothing blocking paint.
   Every animation here is switched off under reduced-motion — see section 13.
   -------------------------------------------------------------------------- */
.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  /* The graph belongs to the right-hand glow, not the headline. */
  mask-image: linear-gradient(100deg, transparent 30%, #000 68%);
}

.constellation__links line {
  stroke: var(--mint);
  stroke-width: 1;
  opacity: 0.22;
  animation: link-breathe 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.1s);
}

.constellation__nodes circle {
  fill: var(--mint);
  opacity: 0.55;
  animation: node-drift 9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.4s);
}

/* The expanding ring on the larger nodes — a link coming alive. */
.constellation__ping {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 4.5s cubic-bezier(0, 0.5, 0.4, 1) infinite;
  animation-delay: calc(var(--i) * -0.9s);
}

@keyframes link-breathe {
  0%, 100% { opacity: 0.1; }
  50%      { opacity: 0.34; }
}
@keyframes node-drift {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50%      { opacity: 0.85; transform: translateY(-5px); }
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(4.5); opacity: 0; }
  100% { transform: scale(4.5); opacity: 0; }
}

/* Scroll reveal. The .reveal class is added by JS, never by the markup, so a
   failed script cannot leave the page invisible. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 6vw, 5rem);
  display: grid;
  gap: var(--sp-7);
  /* The graph sits beside the headline; the status board spans beneath both,
     which gives the graph room to be the focal point instead of squeezing it
     into a column shared with four numbers. */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "text  hub"
    "stats stats";
  align-items: center;
}
.hero__text { grid-area: text; }
.hub { grid-area: hub; }
.stat-panel { grid-area: stats; }

/* The supporting text rises in sequence. The h1 is deliberately absent from
   this list: it is the LCP candidate, and starting it at opacity 0 would push
   the metric back by the length of the animation. Character is not worth
   paying for with the number the whole build has been tuned around. */
.hero__status  { animation: hero-rise 0.55s ease-out 0.05s backwards; }
.hero__eyebrow { animation: hero-rise 0.55s ease-out 0.12s backwards; }
.hero__lead    { animation: hero-rise 0.6s ease-out 0.3s backwards; }
.hero__actions { animation: hero-rise 0.6s ease-out 0.42s backwards; }
.stat-panel    { animation: hero-rise 0.7s ease-out 0.6s backwards; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 62rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "hub" "stats";
  }
}

.hero__status {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: 0.35rem 0.85rem;
  background: rgba(36, 211, 165, 0.1);
  border: 1px solid rgba(36, 211, 165, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-fg);
  margin-bottom: var(--sp-5);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-fg);
  margin-bottom: var(--sp-3);
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 var(--sp-4);
  color: var(--hi);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--mint), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: var(--step-1);
  color: var(--on-dark-soft);
  max-width: 38rem;
  margin: 0 0 var(--sp-6);
  line-height: 1.55;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   UMI Connection hub
   The mark at the centre, one spoke per pillar of the programme, and a pulse
   travelling out along each. The seven is the programme's seven, not a number
   picked to look balanced.
   -------------------------------------------------------------------------- */
.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  width: min(100%, 31rem);
  margin-inline: auto;
  text-decoration: none;
}
.hub__stage { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.hub__graph { width: 100%; height: 100%; display: block; }

.hub__orbit {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1;
  stroke-dasharray: 3 9;
  opacity: 0.24;
  transform-origin: 240px 240px;
  animation: hub-orbit 78s linear infinite;
}
/* Counter-rotating, so the two rings read as separate tiers rather than one
   thick band. */
.hub__orbit--inner {
  stroke-dasharray: 2 7;
  opacity: 0.18;
  animation-duration: 52s;
  animation-direction: reverse;
}

/* The scanning wedge. */
.hub__sweep {
  transform-origin: 240px 240px;
  animation: hub-orbit 14s linear infinite;
}

.hub__halo {
  fill: rgba(36, 211, 165, 0.06);
  stroke: rgba(36, 211, 165, 0.35);
  stroke-width: 1;
}

.hub__spoke {
  stroke: var(--mint);
  stroke-width: 1;
  opacity: 0.3;
  animation: hub-spoke 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.6s);
}
.hub__spoke--outer { opacity: 0.2; }

/* Distribution relays between the core and the pillars. */
.hub__relay {
  fill: var(--mint);
  opacity: 0.5;
  animation: hub-spoke 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.6s + -0.3s);
}

/* Pillar-to-pillar mesh, curved along the ring. */
.hub__mesh {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  opacity: 0.2;
}

/* The AI layer reaching across every other pillar. Gold, because on this site
   gold marks the university-level thing rather than the routine one. */
.hub__ai-link {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  /* A fine, continuous dotted web. An earlier version used a single 60-long
     dash in a 400 gap, which meant that at any given moment almost every link
     was empty — the one idea the layer exists to show did not read at all. */
  opacity: 0.32;
  stroke-dasharray: 2 7;
  animation: hub-ai 9s linear infinite;
  animation-delay: calc(var(--i) * -0.8s);
}

.hub__ring-bg {
  fill: rgba(4, 21, 15, 0.92);
  stroke: var(--mint);
  stroke-width: 1.2;
  opacity: 0.9;
}
.hub__glyph {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hub__label {
  fill: var(--on-dark-dim);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-anchor: middle;
}

/* The AI node itself: larger presence, gold, with a breathing aura. */
.hub__node--ai .hub__ring-bg {
  stroke: var(--gold);
  stroke-width: 1.6;
  animation: hub-ai-node 3.4s ease-in-out infinite;
}
.hub__node--ai .hub__glyph { stroke: var(--gold); }
.hub__node--ai .hub__label { fill: var(--gold); }

/* One packet per spoke, travelling from the hub rim to its node. Each needs a
   different vector, so the distance arrives as a custom property. */
.hub__pulse {
  fill: var(--gold);
  animation: hub-pulse 3.6s cubic-bezier(0.4, 0, 0.3, 1) infinite;
  animation-delay: calc(var(--i) * -0.5s);
}

/* --------------------------------------------------------------------------
   Hub assembly
   On load the graph builds itself: core, then spokes reaching outward, then
   the pillars, then the mesh, and the AI layer last. It dramatises the one
   thing the programme is about, and it gives the hero a moment instead of
   simply being finished before you look at it.

   Every entrance animates a property its ambient animation does not touch —
   spokes draw with stroke-dashoffset while their opacity keeps oscillating —
   because when two animations share a property the later one silently wins
   and the entrance never appears.
   -------------------------------------------------------------------------- */
.hub__halo {
  animation: hub-in 0.5s ease-out 0.1s backwards;
}
.hub__orbit {
  animation:
    hub-in 0.7s ease-out 0.2s backwards,
    hub-orbit 78s linear 0.9s infinite;
}
.hub__orbit--inner { animation-duration: 0.7s, 52s; }

.hub__mark {
  animation: hub-mark-in 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) 0.25s backwards;
}

/* The reach outward. Core→relay and relay→pillar are both 64 units long, so
   one dash length covers every segment. */
.hub__spoke {
  stroke-dasharray: 64;
  animation:
    hub-draw 0.42s ease-out backwards,
    hub-spoke 5.5s ease-in-out infinite;
  animation-delay: calc(0.45s + var(--i) * 0.075s), 2.4s;
}
.hub__spoke--outer { animation-delay: calc(0.62s + var(--i) * 0.075s), 2.4s; }

.hub__relay { animation: hub-in 0.3s ease-out backwards, hub-spoke 5.5s ease-in-out 2.4s infinite; animation-delay: calc(0.78s + var(--i) * 0.075s), 2.4s; }

.hub__node { animation: hub-node-in 0.5s cubic-bezier(0.2, 1.1, 0.4, 1) backwards; animation-delay: calc(0.95s + var(--i) * 0.08s); }

.hub__mesh    { animation: hub-in 0.8s ease-out 1.65s backwards; }
.hub__ai-link { animation: hub-in 0.9s ease-out 1.9s backwards, hub-ai 9s linear 2.4s infinite; }

/* The continuous parts hold until the structure exists. */
.hub__pulse { animation-delay: calc(2.4s + var(--i) * -0.5s); }
.hub__sweep { animation: hub-in 1s ease-out 2s backwards, hub-orbit 14s linear 2.2s infinite; }

/* Sonar leaving the core, once the mark has landed. */
.hub__sonar {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: hub-sonar 5s cubic-bezier(0, 0.4, 0.4, 1) infinite;
  animation-delay: calc(2.6s + var(--i) * 2.5s);
}

@keyframes hub-in      { from { opacity: 0; } }
@keyframes hub-draw    { from { stroke-dashoffset: 64; } to { stroke-dashoffset: 0; } }
@keyframes hub-mark-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } }
@keyframes hub-node-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes hub-sonar {
  0%   { transform: scale(1); opacity: 0.5; }
  60%  { opacity: 0; }
  100% { transform: scale(3.3); opacity: 0; }
}

/* Lingering is rewarded: a pillar lights up, and its label with it. */
.hub__node { transition: opacity var(--speed) var(--ease); }
.hub__graph:hover .hub__node { opacity: 0.42; }
.hub__graph .hub__node:hover { opacity: 1; }
.hub__node:hover .hub__ring-bg { stroke-width: 2; }
.hub__node:hover .hub__label { fill: var(--white); }

@keyframes hub-orbit { to { transform: rotate(360deg); } }
@keyframes hub-spoke {
  0%, 100% { opacity: 0.16; }
  50%      { opacity: 0.46; }
}
/* Traffic running along the AI links, drawn as a dash crawling the path. */
@keyframes hub-ai {
  from { stroke-dashoffset: 180; }
  to   { stroke-dashoffset: 0; }
}
@keyframes hub-ai-node {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}
@keyframes hub-pulse {
  0%        { transform: translate(0, 0); opacity: 0; }
  12%       { opacity: 1; }
  78%, 100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}

/* The mark, centred over the halo. */
.hub__mark {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 22%;
  height: auto;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  padding: 5%;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(4, 21, 15, 0.55), 0 0 42px rgba(36, 211, 165, 0.3);
}
[dir='rtl'] .hub__mark { transform: translate(50%, -50%); }

.hub__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}
.hub__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-0);
  letter-spacing: -0.02em;
  color: var(--hi);
}
.hub__tagline {
  font-family: var(--font-mono);
  font-size: var(--step--3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-fg);
}
.hub:hover .hub__name { color: var(--accent-fg); }

/* Stat panel — deliberately tabular and monospaced, like a status board.
   Four across beneath the hero now that it spans the full width. */
.stat-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
/* Four across needs the full hero width. Below that a figure like "10.669"
   breaks across two lines, which makes the board unreadable. */
@media (max-width: 48rem) {
  .stat-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stat {
  background: rgba(4, 21, 15, 0.72);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 700;
  color: var(--accent-fg);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat__label {
  font-size: var(--step--1);
  color: var(--on-dark-dim);
  line-height: 1.35;
}

/* The telemetry rail under the header. */
.telemetry {
  background: var(--void);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-dark-dim);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  overflow: hidden;
}
.telemetry__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  padding-block: 0.55rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  /* The rail is meant to scroll, but on a phone it cuts mid-word and simply
     looks broken. Fading the trailing edge says "there is more" instead. */
  mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
}
[dir='rtl'] .telemetry__inner {
  mask-image: linear-gradient(270deg, #000 88%, transparent 100%);
}
.telemetry__inner::-webkit-scrollbar { display: none; }
.telemetry__item { display: inline-flex; align-items: center; gap: var(--sp-2); flex: none; }
.telemetry__item strong { color: var(--accent-fg); font-weight: 600; }
.telemetry__sep { color: rgba(255, 255, 255, 0.2); flex: none; }

/* ==========================================================================
   8. Sections
   ========================================================================== */

.page-head {
  background: linear-gradient(168deg, var(--deep), var(--void));
  color: var(--hi);
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-7);
}
.page-head__inner { position: relative; z-index: 2; }
.page-head h1 { color: var(--hi); margin-bottom: var(--sp-3); }
.page-head p { color: var(--on-dark-soft); max-width: var(--measure); margin: 0; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-4);
  color: var(--on-dark-dim);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.breadcrumb a { color: var(--on-dark-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-fg); }
.breadcrumb li + li::before { content: '/'; margin-inline-end: var(--sp-2); opacity: 0.4; }

/* Accordion (FAQ) */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: '';
  width: 0.7rem; height: 0.7rem; flex: none;
  border-inline-end: 2px solid var(--green);
  border-block-end: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform var(--speed) var(--ease);
}
.accordion__item[open] summary::after { transform: rotate(-135deg); }
.accordion__body { padding-bottom: var(--sp-5); color: var(--muted); max-width: var(--measure); }
.accordion__body > :last-child { margin-bottom: 0; }

/* Download list */
.dl-item {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  text-decoration: none; color: inherit;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.dl-item:hover { border-color: var(--green); transform: translateX(3px); color: inherit; }
.dl-item__ext {
  width: 2.6rem; height: 2.6rem; flex: none;
  display: grid; place-items: center;
  background: var(--deep); color: var(--accent-fg);
  font-family: var(--font-mono); font-size: var(--step--3); font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: var(--radius);
}
.dl-item__body { flex: 1; min-width: 0; }
.dl-item__title { font-weight: 600; margin: 0 0 0.15rem; }
.dl-item__meta { font-family: var(--font-mono); font-size: var(--step--2); color: var(--muted); letter-spacing: 0.04em; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-7); }
.pager a, .pager span {
  min-width: 2.5rem;
  padding: 0.5rem 0.8rem;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  border-radius: var(--radius);
}
.pager a:hover { border-color: var(--green); color: var(--accent-fg); }
.pager [aria-current='page'] { background: var(--green); color: var(--white); border-color: var(--green); }

/* Empty state */
.empty {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  border: 1px dashed var(--border);
  color: var(--muted);
}
.empty h3 { color: var(--ink); }

/* --------------------------------------------------------------------------
   UMI Connection
   The programme PDTI exists to deliver, so it gets the site's one piece of
   signature layout: an asymmetric head, a fact ledger, and a numbered pillar
   list. Gold is used here and only here on the homepage — this is the
   university-level milestone, and an accent that appears everywhere signals
   nothing.
   -------------------------------------------------------------------------- */

.conn { background: var(--void); }

.conn__head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: var(--sp-7);
  align-items: start;
  margin-bottom: var(--sp-7);
}
@media (max-width: 62rem) {
  .conn__head { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
}

.conn__name {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--step-4);
  letter-spacing: -0.035em;
  margin: 0 0 var(--sp-2);
  color: var(--hi);
}
.conn__mark {
  width: 1.15em; height: 1.15em;
  flex: none;
  color: var(--accent-fg);
  stroke-width: 1.4;
}

.conn__tagline {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-fg);
  margin: 0 0 var(--sp-5);
}

.conn__lead {
  color: var(--on-dark-soft);
  max-width: 46ch;
  line-height: 1.7;
  margin: 0 0 var(--sp-6);
}

/* Fact ledger — a definition list, styled like a spec sheet. */
.conn__facts {
  margin: 0;
  border-top: 1px solid var(--hairline);
}
.conn__fact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--hairline);
}
.conn__fact dt {
  font-family: var(--font-mono);
  font-size: var(--step--3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.conn__fact dd {
  margin: 0;
  color: var(--hi);
  font-weight: 600;
  line-height: 1.4;
}

.conn__pillars-label {
  color: var(--accent-fg);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 var(--sp-4);
}

.conn__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
/* Seven items in four columns would leave an eighth cell showing through as an
   empty lit box. The last pillar takes the slack instead. */
.conn__pillar:last-child { grid-column: span 2; }

@media (max-width: 68rem) {
  .conn__pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conn__pillar:last-child { grid-column: span 2; }
}
@media (max-width: 40rem) {
  .conn__pillars { grid-template-columns: minmax(0, 1fr); }
  .conn__pillar:last-child { grid-column: auto; }
}

.conn__pillar {
  position: relative;
  background: var(--void);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background var(--speed) var(--ease);
}
.conn__pillar:hover { background: var(--deep); }

/* A junction dot where the cell hairlines meet, so the grid reads as a board
   the pillars are wired into rather than seven boxes parked side by side. */
.conn__pillar::before {
  content: "";
  position: absolute;
  top: -2.5px; inset-inline-start: -2.5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.45;
}

/* The AI pillar, matching the hero's gold AI node. */
.conn__pillar--ai { background: rgba(201, 162, 39, 0.05); }
.conn__pillar--ai:hover { background: rgba(201, 162, 39, 0.09); }
.conn__pillar--ai .conn__pillar-icon { color: var(--gold-fg); }
.conn__pillar--ai .conn__pillar-name { color: var(--gold-fg); }
.conn__pillar--ai::before { background: var(--gold); opacity: 0.8; }

.conn__pillar-no {
  font-family: var(--font-mono);
  font-size: var(--step--3);
  letter-spacing: 0.1em;
  color: var(--gold-fg);
  opacity: 0.75;
}
.conn__pillar-icon { color: var(--accent-fg); }
.conn__pillar-icon svg { width: 1.5rem; height: 1.5rem; }
.conn__pillar-name {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Architecture section
   The site's most elaborate ornament, and a real diagram at the same time.
   -------------------------------------------------------------------------- */
.arch { background: var(--void); overflow: hidden; }
.arch__inner { position: relative; z-index: 1; }

.arch__ornament {
  position: absolute;
  top: 50%;
  inset-inline-end: -6%;
  width: min(48rem, 82%);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  /* Even fade from the centre out, so the figure ends as a rosette rather
     than as a rectangle of lines with soft corners. */
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
[dir='rtl'] .arch__ornament { transform: translateY(-50%) scaleX(-1); }
.rosette { width: 100%; height: 100%; }

.rosette__guide,
.rosette__star,
.rosette__spoke,
.rosette__petal {
  fill: none;
  stroke: var(--mint);
  stroke-linejoin: round;
}
.rosette__guide  { stroke-width: 0.6; opacity: 0.12; }
.rosette__star   { stroke-width: 1.2; opacity: 0.26; }
.rosette__star--soft { stroke-width: 0.9; opacity: 0.16; }
.rosette__star--core { stroke: var(--gold); stroke-width: 1.4; opacity: 0.34; }
.rosette__spoke  { stroke-width: 0.5; opacity: 0.09; }
.rosette__petal  { stroke-width: 1; opacity: 0.2; }
.rosette__eye    { fill: var(--gold); opacity: 0.22; }

/* The rosette turns once, very slowly — enough to notice on a second visit,
   not enough to distract on the first. */
.rosette {
  transform-origin: 50% 50%;
  animation: rosette-turn 240s linear infinite;
}
@keyframes rosette-turn { to { transform: rotate(360deg); } }

/* The stack ------------------------------------------------------------- */
.arch__stack {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 54rem;
}

/* The service flow: one line down the left of the stack, with a packet
   descending it. This is the vertical counterpart of the hero's spokes. */
/* The spine sits to the left of the tier numbers. It used to run at 1.85rem,
   which is exactly where the centred numbers were — the line passed straight
   through them, and adding nodes made the collision obvious. */
.arch__stack::before {
  content: "";
  position: absolute;
  inset-block: 1.6rem;
  inset-inline-start: 0.52rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--mint) 12%, var(--mint) 88%, transparent);
  opacity: 0.35;
}
.arch__stack::after {
  content: "";
  position: absolute;
  inset-inline-start: 0.28rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  /* `top` is animated rather than transform, because the distance has to be
     the stack's own height and that changes with the locale's text. */
  animation: arch-flow 7s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes arch-flow {
  0%        { top: 1.6rem; opacity: 0; }
  8%, 88%   { opacity: 1; }
  100%      { top: calc(100% - 2rem); opacity: 0; }
}

.arch__layer {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-5) var(--sp-5) 0;
  border-bottom: 1px solid var(--hairline);
  transition: background var(--speed) var(--ease);
}
.arch__layer:last-child { border-bottom: 0; }
.arch__layer:hover { background: rgba(255, 255, 255, 0.03); }

/* Node on the spine, one per layer. The line alone was a line; with a node at
   each tier it reads as a bus the layers are attached to. */
.arch__layer::before {
  content: "";
  position: absolute;
  top: 2.05rem;
  inset-inline-start: 0.25rem;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--void);
  border: 1.5px solid var(--mint);
  opacity: 0.8;
}
.arch__layer:hover::before { background: var(--mint); }

/* Reach: a hairline running from each layer out towards the rosette, ending
   in a node. Without it the ornament simply sat beside the diagram; the two
   now occupy one drawing. */
.arch__layer::after {
  content: "";
  position: absolute;
  top: 2.3rem;
  inset-inline-start: 100%;
  width: 44vw;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), rgba(36, 211, 165, 0));
  opacity: 0.3;
  pointer-events: none;
}
[dir='rtl'] .arch__layer::after {
  background: linear-gradient(270deg, var(--mint), rgba(36, 211, 165, 0));
}
.arch__layer:hover::after { opacity: 0.6; }

@media (max-width: 64rem) {
  /* The rosette is off-screen at this width, so the reach lines point at
     nothing and would read as stray marks. */
  .arch__layer::after { display: none; }
}

.arch__index {
  flex: none;
  width: 3.4rem;
  padding-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-fg);
  /* Right-aligned so the numbers sit clear of the spine on the far left. */
  text-align: end;
}

.arch__body { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.arch__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--hi);
  line-height: 1.2;
}

.arch__items { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.arch__chip {
  padding: 0.3rem 0.7rem;
  font-size: var(--step--1);
  color: var(--on-dark-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.arch__layer:hover .arch__chip { border-color: rgba(36, 211, 165, 0.35); color: var(--hi); }

.arch__flow {
  margin: var(--sp-5) 0 0;
  padding-inline-start: 3.7rem;
  color: var(--on-dark-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--step--3);
}

@media (max-width: 44rem) {
  .arch__layer { gap: var(--sp-4); }
  .arch__index { width: 2.2rem; }
  .arch__flow { padding-inline-start: 0; }
}

/* Contact block on the dark closing section. */
.contact-lead { color: var(--on-dark-dim); max-width: 40ch; }
.contact-actions { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   Icon list
   One pattern for every "icon + line of text" list on the site — contact
   details, download meta, footer. It was previously re-typed as inline styles
   in five views, each with its own gap, which is precisely how a layout stops
   feeling like one design.
   -------------------------------------------------------------------------- */
.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.icon-list li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.icon-list svg {
  width: 1.15rem; height: 1.15rem;
  flex: none;
  margin-top: 0.15rem;
  color: var(--accent-fg);
}
.icon-list--on-dark { color: var(--on-dark-soft); }
.icon-list--on-dark svg { color: var(--accent-fg); }

/* --------------------------------------------------------------------------
   Small shared patterns
   These all existed before as inline styles repeated across views. Naming them
   is what makes the spacing and type scales actually hold.
   -------------------------------------------------------------------------- */

/* A wider gutter for two-column page bodies (form beside a sidebar). */
.grid--wide-gap { gap: var(--sp-7); align-items: start; }
/* Paired form fields: no row gap, because each field carries its own. */
.grid--fields { gap: 0 var(--sp-4); }

.form__submit { margin-top: var(--sp-4); }

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}
.search-bar__input { flex: 1; min-width: 14rem; }

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.card--spaced { margin-top: var(--sp-6); }
.card__body--start { align-items: flex-start; }
.card__title--sm { font-size: var(--step-0); }

.dl-item__icon { color: var(--accent-fg); flex: none; }

.page__stamp { color: var(--muted); margin-top: var(--sp-7); }

.section--ruled { border-top: 1px solid var(--border); }

.site-footer__brand { margin-bottom: var(--sp-4); }
.site-footer__blurb { max-width: 32ch; font-size: var(--step--1); line-height: 1.65; }

/* ==========================================================================
   9. Article & prose
   ========================================================================== */

.article-layout {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: minmax(0, 1fr) 19rem;
  align-items: start;
}
@media (max-width: 64rem) { .article-layout { grid-template-columns: minmax(0, 1fr); } }

.article__hero { margin-bottom: var(--sp-6); }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

.prose { max-width: var(--measure); font-size: var(--step-0); line-height: 1.75; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-6); }
.prose ul, .prose ol { padding-inline-start: 1.35rem; }
.prose li + li { margin-top: var(--sp-2); }
/* Imported post bodies carry fixed width attributes — 800px images are
   common. The reset caps them at 100%, but only once their container is
   allowed to shrink; see the minmax(0, 1fr) note on the grid columns. */
.prose img, .prose picture { margin-block: var(--sp-5); max-width: 100%; height: auto; }
.prose iframe, .prose video { max-width: 100%; }
/* Wide tables scroll inside themselves rather than widening the page. */
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.prose figure { margin: var(--sp-5) 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-2); }
.prose blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-inline-start: 3px solid var(--mint);
  background: rgba(36, 211, 165, 0.06);
  font-size: var(--step-1);
  line-height: 1.55;
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: rgba(6, 42, 30, 0.07);
  padding: 0.12em 0.35em; border-radius: 3px;
}
.prose pre {
  background: var(--void); color: #CFE6DC;
  padding: var(--sp-4); overflow-x: auto;
  border-radius: var(--radius); font-size: var(--step--1);
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.prose th, .prose td { border: 1px solid var(--border); padding: var(--sp-3); text-align: start; }
.prose th { background: rgba(6, 42, 30, 0.05); font-weight: 600; }
/* Wide content must scroll inside itself, never widen the page. */
.prose .table-scroll { overflow-x: auto; }

.sidebar { display: flex; flex-direction: column; gap: var(--sp-5); position: sticky; top: 5.5rem; }
.widget { background: var(--surface); border: 1px solid var(--border); padding: var(--sp-5); }
.widget__title {
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-fg); margin: 0 0 var(--sp-4);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.widget a { color: var(--ink); text-decoration: none; font-weight: 500; }
.widget a:hover { color: var(--accent-fg); }
.widget__count { font-family: var(--font-mono); font-size: var(--step--2); color: var(--muted); }

.notice {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4);
  background: rgba(201, 162, 39, 0.1);
  border-inline-start: 3px solid var(--gold);
  font-size: var(--step--1);
  color: #6B540C;
  margin-bottom: var(--sp-5);
}
.notice svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 0.15rem; }

/* ==========================================================================
   10. Forms
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field__label { font-weight: 600; font-size: var(--step--1); }
.field__label .req { color: var(--danger); }
.field__hint { font-size: var(--step--1); color: var(--muted); }
.field__error { font-size: var(--step--1); color: var(--danger); font-weight: 500; }

.input, .textarea, .select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 122, 79, 0.14);
  outline: none;
}
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--danger); }
.textarea { min-height: 9rem; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-inline-end: 2.2rem; }

.checkbox { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--step--1); }
.checkbox input { width: 1.05rem; height: 1.05rem; accent-color: var(--green); }

.captcha-row { display: flex; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap; }
.captcha-row .field { flex: 1; min-width: 10rem; margin-bottom: 0; }
.captcha-img { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }

.alert {
  padding: var(--sp-4) var(--sp-5);
  border-inline-start: 3px solid var(--green);
  background: rgba(14, 122, 79, 0.08);
  margin-bottom: var(--sp-5);
  font-size: var(--step--1);
}
.alert--error { border-color: var(--danger); background: rgba(180, 35, 31, 0.07); color: #7C1714; }

/* Honeypot: present for bots, invisible and unreachable for people. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
  background: var(--void);
  color: var(--on-dark-dim);
  position: relative;
  overflow: hidden;
  /* Breathing room after a light page. */
  margin-top: var(--sp-8);
}
/* …but not after a dark one: a strip of paper between two dark surfaces reads
   as a rendering fault rather than as spacing. */
main:has(> .section--dark:last-child) + .site-footer { margin-top: 0; }

/* --------------------------------------------------------------------------
   Footer connection ribbon
   The hero's network seen edge-on: a trunk line with nodes tapped off it, and
   packets crossing the full width. This replaced a drifting radial glow that
   was, in honest assessment, invisible — ambient motion nobody notices is
   indistinguishable from none.
   -------------------------------------------------------------------------- */
.site-footer__ribbon {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: min(20rem, 100%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  /* Fades at both ends so the trunk enters and leaves rather than stopping. */
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ribbon { width: 100%; height: 100%; display: block; }

.ribbon__trunk {
  stroke: var(--mint);
  stroke-width: 1;
  opacity: 0.3;
}
.ribbon__branch {
  stroke: var(--mint);
  stroke-width: 1;
  opacity: 0.16;
  animation: ribbon-breathe 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.8s);
}
.ribbon__junction { fill: var(--mint); opacity: 0.4; }
.ribbon__node {
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.4;
  opacity: 0.5;
  animation: ribbon-breathe 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.8s + -0.4s);
}

/* The part that is actually meant to be noticed. */
.ribbon__packet {
  fill: var(--mint);
  filter: drop-shadow(0 0 6px rgba(36, 211, 165, 0.9));
  animation: ribbon-run 9s linear infinite;
  animation-delay: calc(var(--i) * -2.25s);
}
.ribbon__packet--gold {
  fill: var(--gold);
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.9));
}

@keyframes ribbon-breathe {
  0%, 100% { opacity: 0.14; }
  50%      { opacity: 0.5; }
}
@keyframes ribbon-run {
  0%        { transform: translateX(0); opacity: 0; }
  6%, 94%   { opacity: 1; }
  100%      { transform: translateX(1200px); opacity: 0; }
}

.site-footer__inner { position: relative; z-index: 2; padding-block: var(--sp-8) var(--sp-5); }
.site-footer h3 {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-fg);
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-3);
}

/* An accent rule under each column heading. The base line is static so the
   structure holds without motion; the bright segment travelling along it is
   what makes the footer read as live rather than parked. */
.site-footer h3::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 2.6rem;
  height: 2px;
  background: var(--hairline-hi);
  overflow: hidden;
}
.site-footer h3::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0.9rem;
  height: 2px;
  background: var(--gold);
  z-index: 1;
  animation: rule-travel 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.7s);
}

@keyframes rule-travel {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(1.7rem); }
}
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-fg); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--sp-2); }
/* Explicit tracks, not repeat(auto-fit): the grid spec forbids a flexible
   track outside an auto-fit repeat, so `1.4fr repeat(auto-fit, …)` is invalid
   and the browser drops the whole declaration — collapsing the footer into a
   single column. The brand block gets the wider track; the three link columns
   share the rest. */
.footer-grid {
  display: grid;
  gap: var(--sp-6) var(--sp-7);
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  align-items: start;
}
@media (max-width: 64rem) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-contact li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.footer-contact svg { width: 1rem; height: 1rem; color: var(--accent-fg); flex: none; margin-top: 0.28rem; }
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  font-size: var(--step--1);
}
.social { display: flex; gap: var(--sp-2); }
.social a {
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.social a:hover {
  border-color: var(--mint);
  background: rgba(36, 211, 165, 0.1);
  transform: translateY(-2px);
}
.social svg { width: 1rem; height: 1rem; }

/* --------------------------------------------------------------------------
   Footer motion
   The footer is the calmest part of the page, so it gets the quietest of the
   site's existing effects rather than a vocabulary of its own: the same
   scroll reveal, the same drifting motes, and hover states that move a couple
   of pixels. Anything livelier down here competes with the content above it.
   -------------------------------------------------------------------------- */

/* Columns arrive in sequence rather than together. */
.footer-grid > .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* Links grow a mint marker on hover. The marker is scaled from zero rather
   than animating width, so it costs no layout. */
.site-footer nav a {
  position: relative;
  display: inline-block;
  padding-inline-start: 0;
  transition: color var(--speed) var(--ease), padding-inline-start var(--speed) var(--ease);
}
.site-footer nav a::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 0.5rem;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: inline-start center;
  transition: transform var(--speed) var(--ease);
}
.site-footer nav a:hover { padding-inline-start: 0.85rem; }
.site-footer nav a:hover::before { transform: scaleX(1); }

/* The contact icons pick up the accent with their line. */
.footer-contact li a { transition: color var(--speed) var(--ease); }
.footer-contact svg { transition: transform var(--speed) var(--ease); }
.footer-contact li:hover svg { transform: scale(1.15); }

/* A slow highlight travelling along the divider above the copyright — the
   footer's one piece of unprompted movement, and it is a single hairline. */
.footer-bottom { position: relative; }
.footer-bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: 0;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: 0.5;
  animation: footer-sweep 11s ease-in-out infinite;
}

@keyframes footer-sweep {
  0%, 100% { transform: translateX(-40%); opacity: 0; }
  50%      { transform: translateX(230%); opacity: 0.55; }
}

/* ==========================================================================
   12. Floating UI
   ========================================================================== */

/* Bottom-left: accessibility. Bottom-right: back-to-top and the assistant,
   stacked so they never overlap on a small screen. */
/* The floating buttons occupy the bottom 4rem of the viewport on both sides.
   Anything that ends up under them at the very bottom of the page can never
   be scrolled clear, so the footer keeps that band free on narrow screens
   where the two sides nearly meet. */
@media (max-width: 48rem) {
  .site-footer__inner { padding-bottom: 4.5rem; }
}

.a11y-fab { position: fixed; inset-inline-start: var(--sp-4); bottom: var(--sp-4); z-index: 120; }
.corner-stack {
  position: fixed;
  inset-inline-end: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}

.fab {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  background: var(--green);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--speed) var(--ease), transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.fab:hover { background: var(--forest); transform: translateY(-2px); }
.fab svg { width: 1.35rem; height: 1.35rem; }
.fab--mint { background: var(--mint); color: var(--void); }
.fab--mint:hover { background: var(--mint-dim); }

/* Back-to-top only exists once there is somewhere to go back to. */
#backToTop { opacity: 0; visibility: hidden; }
#backToTop.is-visible { opacity: 1; visibility: visible; }

.panel {
  position: absolute;
  bottom: calc(100% + var(--sp-3));
  width: min(20rem, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: var(--sp-5);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}
.panel[hidden] { display: none; }
.a11y-fab .panel { inset-inline-start: 0; }
.panel__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); margin: 0 0 var(--sp-4); }
.panel__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-block: var(--sp-2); }
.panel__row + .panel__row { border-top: 1px solid var(--border); }
.panel__label { font-size: var(--step--1); }

.switch {
  position: relative;
  width: 2.6rem; height: 1.45rem;
  background: var(--line);
  border: 0; border-radius: 999px;
  cursor: pointer; flex: none;
  transition: background var(--speed) var(--ease);
}
.switch::after {
  content: '';
  position: absolute;
  top: 0.17rem; inset-inline-start: 0.17rem;
  width: 1.1rem; height: 1.1rem;
  background: var(--white); border-radius: 50%;
  transition: transform var(--speed) var(--ease);
}
.switch[aria-pressed='true'] { background: var(--green); }
.switch[aria-pressed='true']::after { transform: translateX(1.15rem); }
[dir='rtl'] .switch[aria-pressed='true']::after { transform: translateX(-1.15rem); }

.stepper { display: flex; align-items: center; gap: var(--sp-2); }
.stepper button {
  width: 1.85rem; height: 1.85rem;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--white);
  border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-mono); font-weight: 700; color: var(--ink);
}
.stepper button:hover { border-color: var(--green); color: var(--accent-fg); }
.stepper output { font-family: var(--font-mono); font-size: var(--step--1); min-width: 2.6rem; text-align: center; }

/* Assistant */
.chat {
  position: absolute;
  bottom: calc(100% + var(--sp-3));
  inset-inline-end: 0;
  /* Sized for the answers this actually produces. Claude replies with a short
     paragraph and a numbered list; at the old 23×30rem that arrived four lines
     at a time, which turns reading an answer into scrolling through one. */
  width: min(27rem, calc(100vw - 2rem));
  height: min(38rem, calc(100dvh - 7rem));
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  overflow: hidden;
}
.chat[hidden] { display: none; }
.chat__head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  background: linear-gradient(135deg, var(--deep), var(--forest));
  color: var(--white);
  flex: none;
}
.chat__head .dot { margin-inline-start: auto; }
.chat__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); line-height: 1.2; }
.chat__sub { font-size: var(--step--2); color: var(--on-dark-dim); }
.chat__log {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
  font-size: var(--step-0); line-height: 1.55;
  scroll-behavior: smooth;
}
/* pre-wrap preserved the model's own line breaks when replies were plain text.
   They are now real block elements, and pre-wrap on top of them doubles every
   gap. The visitor's own message is still plain text, so it keeps it. */
.msg { max-width: 88%; padding: 0.6rem 0.85rem; border-radius: 10px; overflow-wrap: anywhere; }
.msg--me { white-space: pre-wrap; }
.msg--bot { background: rgba(6, 42, 30, 0.06); align-self: flex-start; border-start-start-radius: 2px; }
.msg--me { background: var(--green); color: var(--white); align-self: flex-end; border-end-end-radius: 2px; }
.msg--err { background: rgba(180, 35, 31, 0.08); color: #7C1714; align-self: flex-start; }
/* Formatting inside an assistant reply. Tight margins, because a chat bubble
   is not an article. */
.msg--bot p { margin: 0 0 var(--sp-2); }
.msg--bot p:last-child { margin-bottom: 0; }
.msg--bot ol,
.msg--bot ul { margin: 0 0 var(--sp-2); padding-inline-start: 1.15rem; }
.msg--bot li + li { margin-top: 0.3rem; }
.msg--bot strong { font-weight: 700; }
.msg--bot code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.05rem 0.25rem;
  background: rgba(6, 42, 30, 0.07);
  border-radius: 3px;
}

.msg__sources { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid rgba(6, 42, 30, 0.12); font-size: var(--step--2); }
/* Which site a citation came from. With the wider umi.ac.id index in play,
   "Beasiswa" from a faculty page and from PDTI are different claims. */
.msg__host {
  display: inline-block;
  margin-inline-start: 0.4rem;
  padding: 0.05rem 0.35rem;
  font-family: var(--font-mono);
  font-size: var(--step--3);
  color: var(--accent-fg);
  background: rgba(14, 122, 79, 0.1);
  border-radius: 3px;
  vertical-align: 1px;
}

/* Opening questions, shown once while the log is empty. */
.chat__suggest { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.chat__suggest-title {
  width: 100%;
  margin: 0 0 0.15rem;
  font-family: var(--font-mono);
  font-size: var(--step--3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat__chip {
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: var(--step--1);
  text-align: start;
  color: var(--accent-fg);
  background: rgba(14, 122, 79, 0.07);
  border: 1px solid rgba(14, 122, 79, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.chat__chip:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* Feedback row under an assistant reply. */
.msg__feedback {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-2); padding-top: var(--sp-2);
  border-top: 1px solid rgba(6, 42, 30, 0.12);
  font-size: var(--step--2);
}
.msg__feedback--done { color: var(--muted); }
.msg__vote {
  padding: 0.1rem 0.4rem;
  font-size: 0.95rem; line-height: 1.3;
  background: transparent; border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.msg__vote:hover { border-color: var(--green); background: rgba(14, 122, 79, 0.08); }
.msg__escalate {
  margin-inline-start: auto;
  color: var(--accent-fg); font-weight: 600; text-decoration: none;
}
.msg__escalate:hover { text-decoration: underline; }

/* Security code challenge, shown once a conversation gets long. */
.chat__captcha { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.chat__captcha-img { border: 1px solid var(--border); border-radius: var(--radius); flex: none; }
.chat__captcha .chat__input { flex: 1; min-width: 6rem; }
.chat__captcha-reload {
  background: none; border: 0; padding: 0;
  color: var(--accent-fg); font: inherit; font-size: var(--step--2);
  text-decoration: underline; cursor: pointer;
}
.msg__sources a { display: block; color: var(--accent-fg); text-decoration: none; margin-top: 0.15rem; }
.msg__sources a:hover { text-decoration: underline; }
.chat__form { display: flex; gap: var(--sp-2); padding: var(--sp-3); border-top: 1px solid var(--border); flex: none; }
.chat__input { flex: 1; padding: 0.55rem 0.75rem; font: inherit; font-size: var(--step-0); border: 1px solid var(--border); border-radius: var(--radius); }
.chat__input:focus { border-color: var(--green); outline: none; }
.chat__send {
  width: 2.4rem; flex: none;
  display: grid; place-items: center;
  background: var(--green); color: var(--white);
  border: 0; border-radius: var(--radius); cursor: pointer;
}
.chat__send:hover { background: var(--forest); }
.chat__send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat__send svg { width: 1.05rem; height: 1.05rem; }
.chat__note { font-size: var(--step--3); color: var(--muted); padding: 0 var(--sp-3) var(--sp-3); text-align: center; }

.typing { display: inline-flex; gap: 3px; align-items: center; }
.typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted);
  animation: blink 1.3s var(--ease) infinite;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ==========================================================================
   13. Accessibility modes
   ========================================================================== */

/* Driven by data attributes on <html> so the no-flash inline script can apply
   them before first paint. */
html[data-contrast='high'] {
  --bg: #FFFFFF;
  --fg: #000000;
  --muted: #1A1A1A;
  --border: #000000;
  --green: #00552F;
  --surface: #FFFFFF;
}
html[data-contrast='high'] body { background: #FFF; color: #000; }
html[data-contrast='high'] .hero,
html[data-contrast='high'] .page-head,
html[data-contrast='high'] .site-header,
html[data-contrast='high'] .site-footer,
html[data-contrast='high'] .section--dark { background: #000; color: #FFF; }
html[data-contrast='high'] .hero__lead,
html[data-contrast='high'] .page-head p,
html[data-contrast='high'] .site-footer,
html[data-contrast='high'] .stat__label { color: #FFF; }
html[data-contrast='high'] .card,
html[data-contrast='high'] .tile,
html[data-contrast='high'] .widget { border-width: 2px; }
html[data-contrast='high'] .girih { opacity: 0; }

html[data-readable='on'] body {
  font-family: Verdana, Tahoma, 'Trebuchet MS', sans-serif;
  letter-spacing: 0.035em;
  word-spacing: 0.12em;
  line-height: 1.9;
}
html[data-readable='on'] h1,
html[data-readable='on'] h2,
html[data-readable='on'] h3,
html[data-readable='on'] h4 { font-family: Verdana, Tahoma, sans-serif; letter-spacing: 0; }

html[data-underline='on'] .prose a,
html[data-underline='on'] .card__title a,
html[data-underline='on'] .widget a,
html[data-underline='on'] .nav__link {
  text-decoration: underline !important;
  text-underline-offset: 0.2em;
}

/* Text scaling multiplies the root size, so the whole rem-based scale follows. */
html[data-textsize='1'] { font-size: 106%; }
html[data-textsize='2'] { font-size: 112%; }
html[data-textsize='3'] { font-size: 120%; }
html[data-textsize='-1'] { font-size: 94%; }

html[data-motion='off'] *,
html[data-motion='off'] *::before,
html[data-motion='off'] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
}

/* Killing the animation leaves whatever the final keyframe happened to be, so
   the resting appearance is stated rather than inherited by accident: the
   constellation stays a legible static graph, and anything that animates in on
   scroll must be visible — otherwise the page reads as empty. */
html[data-motion='off'] .constellation__links line,
html[data-motion='off'] .constellation__nodes circle,
html[data-motion='off'] .reveal { opacity: 1 !important; transform: none !important; }
html[data-motion='off'] .constellation__links line { opacity: 0.22 !important; }
html[data-motion='off'] .constellation__nodes circle { opacity: 0.6 !important; }
html[data-motion='off'] .constellation__ping { display: none; }
/* The graph must stay readable without motion; only the moving parts go. */
html[data-motion='off'] .hub__spoke,
html[data-motion='off'] .hub__relay { opacity: 0.3 !important; }
/* Keep the dashes — a dashed line is a texture, not motion. Only the crawl
   along it stops. */
html[data-motion='off'] .hub__ai-link { opacity: 0.32 !important; }
html[data-motion='off'] .hub__pulse,
html[data-motion='off'] .hub__sweep { display: none; }
html[data-motion='off'] .hub__orbit { transform: none !important; }
html[data-motion='off'] .rosette { transform: none !important; }
html[data-motion='off'] .arch__stack::after { display: none; }
/* Ambient motion is decoration with no resting state worth keeping: motes
   would freeze mid-flight at whatever opacity the keyframe left them. */
html[data-motion='off'] .motes { display: none; }
html[data-motion='off'] .footer-bottom::before { display: none; }
html[data-motion='off'] .footer-grid > .reveal { transition-delay: 0s !important; }
/* The network stays as a static diagram; only the packets stop. */
html[data-motion='off'] .ribbon__packet { display: none; }
html[data-motion='off'] .ribbon__branch { opacity: 0.16 !important; }
html[data-motion='off'] .ribbon__node { opacity: 0.5 !important; }
/* The heading rule keeps its accent, parked at the start — the structure is
   worth keeping even when the movement is not. */
html[data-motion='off'] .site-footer h3::before { transform: none !important; }
html[data-motion='off'] .girih,
html[data-motion='off'] .hero::before { transform: none !important; }
/* The assembly must not leave anything half-built when motion is off: every
   entrance starts from opacity 0, and `animation: none` restores the
   stylesheet's own values rather than the keyframe's starting ones. */
html[data-motion='off'] .hero__status,
html[data-motion='off'] .hero__eyebrow,
html[data-motion='off'] .hero__lead,
html[data-motion='off'] .hero__actions,
html[data-motion='off'] .stat-panel,
html[data-motion='off'] .hub__halo,
html[data-motion='off'] .hub__mark,
html[data-motion='off'] .hub__node,
html[data-motion='off'] .hub__relay,
html[data-motion='off'] .hub__mesh,
html[data-motion='off'] .hub__ai-link { animation: none !important; opacity: 1; transform: none; }
html[data-motion='off'] .hub__mark { transform: translate(-50%, -50%); }
html[data-motion='off'] .hub__spoke { animation: none !important; stroke-dasharray: none; }
html[data-motion='off'] .hub__sonar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .constellation__links line,
  .constellation__nodes circle,
  .reveal { opacity: 1 !important; transform: none !important; }
  .constellation__links line { opacity: 0.22 !important; }
  .constellation__nodes circle { opacity: 0.6 !important; }
  .constellation__ping { display: none; }
  .hub__spoke, .hub__relay { opacity: 0.3 !important; }
  .hub__ai-link { opacity: 0.32 !important; }
  .hub__pulse, .hub__sweep { display: none; }
  .hub__orbit { transform: none !important; }
  .rosette { transform: none !important; }
  .arch__stack::after { display: none; }
  .motes { display: none; }
  .girih, .hero::before { transform: none !important; }
  .footer-bottom::before { display: none; }
  .footer-grid > .reveal { transition-delay: 0s !important; }
  .ribbon__packet { display: none; }
  .ribbon__branch { opacity: 0.16 !important; }
  .ribbon__node { opacity: 0.5 !important; }
  .site-footer h3::before { transform: none !important; }
  .hero__status, .hero__eyebrow, .hero__lead, .hero__actions, .stat-panel,
  .hub__halo, .hub__mark, .hub__node, .hub__relay,
  .hub__mesh, .hub__ai-link { animation: none !important; opacity: 1; transform: none; }
  .hub__mark { transform: translate(-50%, -50%); }
  .hub__spoke { animation: none !important; stroke-dasharray: none; }
  .hub__sonar { display: none; }
}

/* ==========================================================================
   14. RTL
   ========================================================================== */

[dir='rtl'] body {
  font-family: 'Noto Naskh Arabic', var(--font-body);
  line-height: 1.9;
}
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3, [dir='rtl'] h4 {
  font-family: 'Noto Naskh Arabic', var(--font-display);
  letter-spacing: 0;
}
/* Numerals and codes stay LTR even inside Arabic text. */
[dir='rtl'] .mono, [dir='rtl'] .stat__value, [dir='rtl'] .telemetry { direction: ltr; text-align: end; }
[dir='rtl'] .eyebrow::after { background: linear-gradient(270deg, var(--green), transparent); }
[dir='rtl'] .tile:hover .tile__go svg { transform: translateX(-3px) scaleX(-1); }
[dir='rtl'] .tile__go svg { transform: scaleX(-1); }
[dir='rtl'] .dl-item:hover { transform: translateX(-3px); }
/* The corner notch mirrors so the cut stays on the leading edge. */
[dir='rtl'] .btn, [dir='rtl'] .card, [dir='rtl'] .tile, [dir='rtl'] .panel, [dir='rtl'] .chat {
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}

/* ==========================================================================
   15. Print
   ========================================================================== */

@media print {
  .site-header, .site-footer, .telemetry, .a11y-fab, .corner-stack,
  .sidebar, .pager, .breadcrumb, .hero__actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { width: 100%; }
  .prose { max-width: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
  .card, .tile { break-inside: avoid; border: 1px solid #999; clip-path: none; }
}

/* ==========================================================================
   16. Control room × liquid glass
   --------------------------------------------------------------------------
   PDTI runs UMI's infrastructure, so the home page is its control room: a
   live board of the systems people actually log into, over the UMI
   Connection network drawn as a moving lattice behind the whole page.

   Glass is the material of every surface that floats over that network.
   Where the browser can (Chromium), app.js gives each pane its own
   displacement map, sized to the pane, so the lattice visibly bends at the
   rim as it slides beneath. Elsewhere the same panes are frosted.

   Inner pages keep light reading surfaces; only their banner carries the
   network.
   ========================================================================== */

:root {
  --paper: #F4F6F5;
  --line: #E1E7E4;
  --bg: var(--paper);
  --border: var(--line);

  --header-h: 4.25rem;
  --cap-gap: 0.625rem;

  --radius-card: 18px;
  --radius-glass: 22px;

  --ink-hair: rgba(11, 31, 23, 0.09);
  --field: #03110C;

  /* Liquid glass, dark. The fill is mostly clear: a pane that hides what is
     behind it is a card with a blur filter, not glass. */
  --lg-blur: 3px;
  --lg-sat: 165%;
  --lg-fill:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.03));
  --lg-tint: rgba(4, 22, 16, 0.34);
  --lg-edge: rgba(255, 255, 255, 0.12);
  --lg-rim:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -22px 32px -28px rgba(36, 211, 165, 0.32);
  --lg-drop: 0 28px 56px -32px rgba(0, 0, 0, 0.85);
  --gx: 30%;
  --gy: 0%;

  /* Kept for the components that still read them. */
  --lg-dark: rgba(255, 255, 255, 0.055);
  --lg-dark-edge: var(--lg-edge);
  --lg-dark-rim: var(--lg-rim);

  --ok: #24D3A5;
  --slow: #E2B53E;
  --cert: #F08A3C;
  --down: #F0645A;
}

html { background: var(--bg); }
body { background: transparent; }
.rule { display: none; }

/* --------------------------------------------------------------------------
   Shape — soft corners everywhere; the notched corners are retired
   -------------------------------------------------------------------------- */
[dir] :is(.btn, .card, .tile, .feature, .panel-dark, .acard, .stat-panel,
          .dl-item, .arch__chip, .panel, .chat, .brand__mark) { clip-path: none; }

.card, .tile, .feature, .dl-item, .widget {
  background: var(--surface);
  border: 1px solid var(--ink-hair);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 0 rgba(11, 31, 23, 0.03);
}
.card, .tile, .feature { overflow: hidden; }
.feature::before { display: none; }
.card:hover, .tile:hover, .feature:hover, .dl-item:hover {
  border-color: rgba(14, 122, 79, 0.32);
  box-shadow: 0 1px 0 rgba(11, 31, 23, 0.03), 0 18px 36px -26px rgba(6, 42, 30, 0.45);
}
.card:hover, .tile:hover { transform: translateY(-2px); }
.tile__icon, .dl-item__ext { border-radius: 12px; }
.badge { border-radius: 999px; padding-inline: 0.7rem; }

.section--paper { background: #FFFFFF; border-block-color: var(--ink-hair); }

.accordion {
  background: var(--surface);
  border: 1px solid var(--ink-hair);
  border-radius: var(--radius-card);
  padding-inline: var(--sp-5);
}
.accordion__item:last-child { border-bottom: 0; }

.input, .textarea, .select { border-radius: 12px; border-color: var(--ink-hair); }
.input:focus, .textarea:focus, .select:focus { box-shadow: 0 0 0 4px rgba(14, 122, 79, 0.12); }
.pager a, .pager span { border-radius: 999px; }
.brand__mark { border-radius: 10px; }
.arch__chip { border-radius: 999px; }
.panel-dark { border-radius: 16px; }

/* Section labels: the number as a small chip, the label beside it. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  gap: var(--sp-3);
}
.eyebrow::after { display: none; }
.eyebrow[aria-hidden='true'] { margin-bottom: var(--sp-3); }
.node-no {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 1.45rem;
  padding-inline: 0.45rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-fg);
  background: rgba(14, 122, 79, 0.08);
  box-shadow: inset 0 0 0 1px rgba(14, 122, 79, 0.22);
}
.section--dark .node-no,
.is-field .node-no { color: var(--accent-fg); background: rgba(36, 211, 165, 0.08); box-shadow: inset 0 0 0 1px rgba(36, 211, 165, 0.28); }
.conn .node-no { color: var(--gold-fg); background: rgba(201, 162, 39, 0.08); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35); }

/* --------------------------------------------------------------------------
   Glass — one recipe, tuned per surface through custom properties
   -------------------------------------------------------------------------- */
.console,
.stat,
.conn__pillar,
.conn__facts,
.hub__caption,
.btn--glass,
.is-field .card,
.is-field .feature,
.is-field .dl-item,
.is-field .accordion,
.is-field .btn--ghost,
.acard__body {
  --spec: radial-gradient(120% 90% at var(--gx) var(--gy), rgba(255, 255, 255, 0.09), transparent 52%);
  background: var(--spec), var(--lg-fill), var(--lg-tint);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-rim), var(--lg-drop);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
}

/* Text panes need a little more body than the ornamental ones. */
.is-field .card, .is-field .feature, .is-field .accordion, .is-field .dl-item, .acard__body { --lg-tint: rgba(4, 22, 16, 0.55); --lg-blur: 10px; }
.console { --lg-tint: rgba(4, 22, 16, 0.42); --lg-blur: 4px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  border-radius: 999px;
  padding: 0.74rem 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 55%),
    var(--btn-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}
.btn--sm { padding: 0.45rem 1rem; }
.btn--ghost { --btn-bg: var(--surface); border-color: var(--ink-hair); box-shadow: none; }
.btn--ghost:hover { --btn-bg: var(--surface); border-color: rgba(14, 122, 79, 0.4); }
.btn--ghost-light {
  --btn-bg: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--glass,
.is-field .btn--ghost {
  --btn-fg: var(--white);
  --lg-blur: 2px;
  --lg-tint: rgba(4, 22, 16, 0.25);
  color: var(--hi);
  border-radius: 999px;
}
.btn--glass:hover,
.is-field .btn--ghost:hover {
  --lg-tint: rgba(36, 211, 165, 0.1);
  color: var(--hi);
  border-color: rgba(36, 211, 165, 0.45);
}

/* --------------------------------------------------------------------------
   Rail — scrolls away above the capsule
   -------------------------------------------------------------------------- */
.telemetry { position: relative; z-index: 101; background: var(--void); border-bottom: 0; }
.telemetry__inner { gap: var(--sp-5); -webkit-mask-image: none; mask-image: none; }
[dir='rtl'] .telemetry__inner { -webkit-mask-image: none; mask-image: none; }
.telemetry__conn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  color: var(--gold-fg);
  text-decoration: none;
  font-weight: 600;
}
.telemetry__conn:hover { color: #E7C452; text-decoration: underline; text-underline-offset: 3px; }
.telemetry__conn svg { width: 0.9rem; height: 0.9rem; }
.telemetry__clock { margin-inline-start: auto; color: var(--on-dark-dim); }
.telemetry__clock time { color: var(--hi); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) {
  .telemetry__item:not(.telemetry__clock) { display: none; }
}
.is-field .telemetry { background: var(--field); }

/* --------------------------------------------------------------------------
   Header — a floating glass capsule
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: var(--cap-gap);
  width: min(100% - 2 * var(--cap-gap), var(--wrap) + 2rem);
  margin: var(--cap-gap) auto 0;
  border: 0;
  border-radius: var(--radius-glass);
  --lg-blur: 12px;
  --lg-sat: 170%;
  background: rgba(6, 30, 22, 0.62);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 16px 36px -18px rgba(0, 0, 0, 0.6);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* When it refracts, it needs less frost for the bend to show. */
.site-header.is-refract { --lg-blur: 5px; }
.site-header__inner {
  width: 100%;
  min-height: var(--header-h);
  padding-inline: 0.75rem 0.625rem;
  gap: var(--sp-4);
}

.nav__link { border-radius: 999px; transition: background var(--speed) var(--ease), color var(--speed) var(--ease); }
.nav__link[aria-current='page'] {
  color: var(--hi);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.icon-btn { border-radius: 999px; }

.nav__sub, .lang__menu {
  background: rgba(6, 30, 22, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-color: var(--lg-edge);
  border-radius: 16px;
  box-shadow: var(--lg-rim), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
}
.nav__sub .nav__link, .lang__link { border-radius: 10px; }

/* Over a light page the capsule turns to light glass. */
[data-theme='light'] .site-header {
  background: rgba(250, 251, 250, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(11, 31, 23, 0.07),
    0 16px 36px -20px rgba(6, 42, 30, 0.35);
}
[data-theme='light'] .site-header .brand__name { color: var(--ink); }
[data-theme='light'] .site-header .brand__long { color: var(--muted); }
[data-theme='light'] .site-header .brand__sub { color: #8A6D12; }
[data-theme='light'] .site-header .icon-btn {
  color: var(--ink);
  background: rgba(11, 31, 23, 0.04);
  border-color: rgba(11, 31, 23, 0.1);
}
@media (min-width: 60.0625rem) {
  [data-theme='light'] .site-header .nav__list > .nav__item > .nav__link { color: #2B3D35; }
  [data-theme='light'] .site-header .nav__list > .nav__item > .nav__link:hover { color: var(--ink); background: rgba(11, 31, 23, 0.06); }
  [data-theme='light'] .site-header .nav__list > .nav__item > .nav__link[aria-current='page'] {
    color: var(--accent-fg);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(14, 122, 79, 0.22);
  }
}

@media (max-width: 60rem) {
  .nav {
    position: absolute;
    inset: calc(100% + 0.5rem) 0 auto 0;
    max-height: calc(100dvh - var(--header-h) - 4rem);
    padding: var(--sp-3);
    background: rgba(6, 30, 22, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    backdrop-filter: blur(20px) saturate(170%);
    border-radius: var(--radius-glass);
    box-shadow: var(--lg-rim), 0 24px 48px -20px rgba(0, 0, 0, 0.6);
  }
  .nav__link { border-radius: 12px; border-bottom: 0; }
  .header-tools { margin-inline-start: auto; }
  .nav-toggle { order: 3; }
}

/* The first dark band slides up under the capsule. */
main > .hero:first-child,
main > .page-head:first-child {
  margin-top: calc(-1 * (var(--header-h) + var(--cap-gap)));
}
main > .hero:first-child { padding-top: calc(var(--header-h) + var(--cap-gap)); }
main > .page-head:first-child { padding-top: calc(var(--header-h) + var(--cap-gap) + var(--sp-7)); }

/* --------------------------------------------------------------------------
   The network field
   One canvas, fixed behind the home page; on inner pages, confined to the
   banner. Drawn by app.js; without it the field is simply the gradient.
   -------------------------------------------------------------------------- */
.netfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.netfield--page {
  position: fixed;
  z-index: -1;
  height: 100lvh;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(14, 122, 79, 0.3), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(14, 122, 79, 0.16), transparent 70%),
    var(--field);
}

/* --------------------------------------------------------------------------
   Home — everything sits on the field
   -------------------------------------------------------------------------- */
.is-field { color: var(--on-dark); }
.is-field main > .section,
.is-field main > .hero,
.is-field .section--dark,
.is-field .section--paper,
.is-field .conn,
.is-field .arch { background: transparent; border-block: 0; }
.is-field .hero::before,
.is-field main .girih,
.is-field main .motes,
.is-field .constellation { display: none; }

.is-field .section h2, .is-field .section h3 { color: var(--hi); }
.is-field .section__head p { color: var(--on-dark-dim); }
.is-field .eyebrow { color: var(--accent-fg); }

/* Cards on the field */
.is-field .card__title, .is-field .feature__title, .is-field .dl-item__title { color: var(--hi); }
.is-field .card__title a:hover, .is-field .feature__title a:hover { color: var(--accent-fg); }
.is-field .card__text, .is-field .feature__text { color: var(--on-dark-dim); }
.is-field .card__meta, .is-field .dl-item__meta { color: var(--t-faint); }
.is-field .badge { background: rgba(36, 211, 165, 0.12); color: var(--accent-fg); }
.is-field .card__media, .is-field .feature__media { background: rgba(0, 0, 0, 0.3); }
.is-field .card:hover, .is-field .feature:hover, .is-field .dl-item:hover {
  border-color: rgba(36, 211, 165, 0.38);
  box-shadow: var(--lg-rim), 0 28px 56px -30px rgba(0, 0, 0, 0.9);
}
.is-field .card__foot .btn--ghost { color: var(--hi); }
.is-field .tile__go, .is-field .card .tile__go { color: var(--accent-fg); }

.is-field .dl-item { color: var(--on-dark); }
.is-field .dl-item__ext { background: rgba(36, 211, 165, 0.12); color: var(--accent-fg); }
.is-field .dl-item__icon { color: var(--accent-fg); }

.is-field .accordion__item { border-color: rgba(255, 255, 255, 0.08); }
.is-field .accordion__item summary { color: var(--hi); }
.is-field .accordion__item summary::after { border-color: var(--mint); }
.is-field .accordion__body { color: var(--on-dark-soft); }
.is-field .accordion__body a { color: var(--accent-fg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero--live .hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "text console"
    "stats stats";
  align-items: center;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: var(--sp-6);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero--live .console { grid-area: console; }
@media (max-width: 62rem) {
  .hero--live .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "console" "stats"; }
}

.hero__title em {
  display: inline-block;
  margin-top: 0.12em;
  background: none;
  color: rgba(255, 255, 255, 0.56);
  -webkit-text-fill-color: currentColor;
  font-weight: 500;
  letter-spacing: -0.035em;
}

/* "Live" as the eyebrow's mark: a dot that beats like the board does. */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.85rem 0.3rem 0.6rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--on-dark-soft);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.hero__eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(36, 211, 165, 0.6);
  animation: beat 2.4s ease-out infinite;
}
@keyframes beat {
  0%   { box-shadow: 0 0 0 0 rgba(36, 211, 165, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(36, 211, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(36, 211, 165, 0); }
}

/* Headline figures: four panes in a row under the board. */
.hero--live .stat-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  background: none;
  border: 0;
}
@media (max-width: 48rem) { .hero--live .stat-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { border-radius: 18px; padding: var(--sp-5); }
.stat__value { color: var(--hi); }
.stat:first-child .stat__value { color: var(--accent-fg); }

/* --------------------------------------------------------------------------
   The live board
   -------------------------------------------------------------------------- */
.console {
  position: relative;
  border-radius: 26px;
  padding: var(--sp-2);
  color: var(--on-dark);
  animation: hero-rise 0.7s ease-out 0.2s backwards;
}
.console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}
.console__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark-soft);
}
.console__overall {
  --c: var(--on-dark-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.console__overall[data-state='ok']   { --c: var(--ok); }
.console__overall[data-state='slow'] { --c: var(--slow); }
.console__overall[data-state='cert'] { --c: var(--cert); }
.console__overall[data-state='down'] { --c: var(--down); }
.console__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.console__overall[data-state='wait'] .console__dot { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.console__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.sys { --c: var(--on-dark-dim); }
.sys[data-state='ok']   { --c: var(--ok); }
.sys[data-state='slow'] { --c: var(--slow); }
.sys[data-state='cert'] { --c: var(--cert); }
.sys[data-state='down'] { --c: var(--down); }

.sys__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 7.5rem 4.6rem;
  grid-template-areas: "icon id spark ms";
  align-items: center;
  gap: var(--sp-4);
  padding: 0.85rem var(--sp-4);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.sys__link:hover {
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}
.sys__icon {
  grid-area: icon;
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  color: var(--hi);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.sys__icon svg { width: 1.2rem; height: 1.2rem; }
/* Status lamp on the icon's corner. */
.sys__icon::after {
  content: "";
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px #06231A;
}
.sys[data-state='wait'] .sys__icon::after { animation: blink 1s steps(2) infinite; }
.sys__id { grid-area: id; display: flex; flex-direction: column; min-width: 0; }
.sys__name { font-weight: 700; color: var(--hi); line-height: 1.25; }
.sys__host {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--t-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sys__spark { grid-area: spark; width: 100%; height: 2rem; overflow: visible; }
.sys__line { fill: none; stroke: var(--c); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.sys__area { fill: color-mix(in srgb, var(--c) 14%, transparent); stroke: none; }
.sys__ms {
  grid-area: ms;
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--hi);
}
.sys__ms b { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; }
.sys__ms small { font-size: var(--step--2); color: var(--t-faint); }
.sys__state { display: none; }
.sys[data-state='slow'] .sys__state,
.sys[data-state='cert'] .sys__state,
.sys[data-state='down'] .sys__state {
  display: block;
  grid-column: 2 / -1;
  margin-top: -0.4rem;
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--c);
}

.console__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-4);
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--t-faint);
}

@media (max-width: 30rem) {
  .sys__link {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon id ms" "spark spark spark";
    row-gap: var(--sp-2);
  }
  .sys__spark { height: 1.5rem; }
}

/* --------------------------------------------------------------------------
   UMI Connection
   -------------------------------------------------------------------------- */
.conn__head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
.conn .hub { display: block; max-width: 30rem; width: 100%; justify-self: center; }
.conn__facts {
  margin: var(--sp-5) 0 var(--sp-6);
  padding: var(--sp-1) var(--sp-5);
  border-radius: 18px;
  --lg-tint: rgba(4, 22, 16, 0.4);
}
.conn__fact:last-child { border-bottom: 0; }

.hub__lens {
  position: absolute;
  inset: 26.5%;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  --lg-blur: 1.5px;
  --lg-sat: 150%;
  background:
    radial-gradient(70% 55% at 34% 20%, rgba(255, 255, 255, 0.13), transparent 62%),
    radial-gradient(closest-side, transparent 70%, rgba(36, 211, 165, 0.07));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 50px -24px rgba(0, 0, 0, 0.7);
}
.hub__mark { z-index: 2; }

.conn__pillars { gap: var(--sp-3); background: none; border: 0; }
.conn__pillar { border-radius: 18px; transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease); }
.conn__pillar:hover { transform: translateY(-2px); border-color: rgba(36, 211, 165, 0.38); }
.conn__pillar::before {
  top: 1.1rem;
  inset-inline-start: auto;
  inset-inline-end: 1.1rem;
  width: 5px; height: 5px;
}
.conn__pillar--ai { --lg-tint: rgba(201, 162, 39, 0.08); border-color: rgba(201, 162, 39, 0.32); }

/* Audience cards: the label sits on a glass plate over the artwork, and
   stops short of the figure so the figure stays sharp. */
.acard { border-radius: var(--radius-glass); }
.acard__body {
  margin: var(--sp-3);
  margin-inline-end: 36%;
  padding: var(--sp-4) var(--sp-5);
  border-radius: 16px;
}
.acard__name { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 30rem) { .acard__body { margin-inline-end: var(--sp-3); } }

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.page-head { background: linear-gradient(168deg, #052218, var(--field)); }
.page-head .girih { display: none; }
.breadcrumb {
  display: inline-flex;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-rim);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   Floating controls
   -------------------------------------------------------------------------- */
.fab {
  background:
    radial-gradient(70% 60% at 35% 22%, rgba(255, 255, 255, 0.35), transparent 62%),
    var(--green);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 8px rgba(0, 0, 0, 0.15),
    0 10px 24px -10px rgba(6, 42, 30, 0.7);
}
.fab--mint {
  background:
    radial-gradient(70% 60% at 35% 22%, rgba(255, 255, 255, 0.5), transparent 62%),
    var(--mint);
}
.fab:hover { background-color: var(--forest); }

.panel, .chat {
  background: rgba(250, 252, 251, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(11, 31, 23, 0.05),
    0 30px 60px -24px rgba(6, 42, 30, 0.5);
}
.chat { overflow: hidden; }
.stepper button { border-radius: 999px; }

/* --------------------------------------------------------------------------
   Opt-outs — legibility first
   -------------------------------------------------------------------------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(6, 30, 22, 0.96); }
  [data-theme='light'] .site-header { background: rgba(250, 251, 250, 0.97); }
  .panel, .chat { background: #FBFCFB; }
  .console, .stat, .conn__pillar, .conn__facts, .acard__body,
  .is-field .card, .is-field .feature, .is-field .dl-item, .is-field .accordion { --lg-tint: rgba(4, 22, 16, 0.86); }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--deep); }
  [data-theme='light'] .site-header { background: #FBFCFB; }
  .nav__sub, .lang__menu, .nav { background: var(--void); }
  .panel, .chat { background: #FBFCFB; }
  .console, .stat, .conn__pillar, .conn__facts, .acard__body, .btn--glass, .hub__caption,
  .is-field .card, .is-field .feature, .is-field .dl-item, .is-field .accordion, .is-field .btn--ghost { --lg-tint: #072319; }
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* Motion off: the beat, the blink and the rise stop; the field is drawn
   once and left still (app.js). */
html[data-motion='off'] .hero__eyebrow::before,
html[data-motion='off'] .console__dot,
html[data-motion='off'] .sys__icon::after,
html[data-motion='off'] .console { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow::before, .console__dot, .sys__icon::after, .console { animation: none !important; }
}

html[data-contrast='high'] .site-header,
html[data-contrast='high'] [data-theme='light'] .site-header,
html[data-contrast='high'] .telemetry { background: #000; box-shadow: 0 0 0 2px #fff; }
html[data-contrast='high'] [data-theme='light'] .site-header .brand__name,
html[data-contrast='high'] [data-theme='light'] .site-header .nav__link,
html[data-contrast='high'] [data-theme='light'] .site-header .icon-btn { color: #fff !important; }
html[data-contrast='high'] :is(.console, .sys__link, .stat, .conn__pillar, .conn__facts, .acard__body,
  .hub__caption, .breadcrumb, .btn--glass, .is-field .card, .is-field .feature, .is-field .dl-item,
  .is-field .accordion, .is-field .btn--ghost) { background: #000 !important; border-color: #fff !important; }
html[data-contrast='high'] .netfield,
html[data-contrast='high'] .hub__lens { display: none; }
html[data-contrast='high'] .is-field,
html[data-contrast='high'] .is-field main { background: #000; }
html[data-contrast='high'] .panel,
html[data-contrast='high'] .chat { background: #fff; border: 2px solid #000; }
html[data-contrast='high'] *,
html[data-contrast='high'] *::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

@media print {
  .netfield, .hub__lens, .console { display: none !important; }
  .is-field, .is-field .section h2, .is-field .card__title { color: #000 !important; }
  .site-header { position: static; }
}

/* Late overrides: the base .btn background and the old solid hover fills
   would otherwise paint over the glass. */
.btn--glass,
.is-field .btn--ghost { background: var(--spec), var(--lg-fill), var(--lg-tint); }
.conn__pillar:hover,
.conn__pillar--ai:hover { background: var(--spec), var(--lg-fill), var(--lg-tint); }

/* The headline shares the hero with the board, so it is set a size down
   from the full-width scale. Mirrored in the critical CSS. */
.hero--live .hero__title { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem); }
.hero--live .hero__lead { font-size: var(--step-0); max-width: 34rem; }

/* Rail status: a link to the board, coloured by the live result. */
.telemetry__status { color: inherit; text-decoration: none; }
.telemetry__status:hover { color: var(--hi); }
.telemetry__status .dot { background: #6E8A7E; }
.telemetry__status[data-state='ok'] .dot { background: var(--ok); }
.telemetry__status[data-state='slow'] .dot { background: var(--slow); }
.telemetry__status[data-state='cert'] .dot { background: var(--cert); }
.telemetry__status[data-state='down'] .dot { background: var(--down); }

/* The hub left the hero for this section; its old named grid area does not
   exist here and would push it into an implicit row of its own. */
.conn .hub { grid-area: auto; align-self: center; }

/* Clearer panes: the lattice behind has to stay visible for the glass to
   read as glass, and for the bend at the rim to be seen at all. The rows
   inside the board carry their own faint plate, so text keeps its ground. */
.console { --lg-tint: rgba(4, 22, 16, 0.22); --lg-blur: 1.5px; --lg-sat: 180%; }
.stat, .conn__pillar { --lg-tint: rgba(4, 22, 16, 0.18); --lg-blur: 1.5px; --lg-sat: 180%; }
.sys__link { background: rgba(3, 17, 12, 0.42); }
.sys__link:hover { background: rgba(3, 17, 12, 0.6); }

/* Figures and host names read left to right in every locale. */
.sys__ms, .sys__host { direction: ltr; unicode-bidi: isolate; }
[dir='rtl'] .sys__host { text-align: right; }

/* ==========================================================================
   17. Unit profile (template "about")
   The same field and glass as the home page. The text is the page's own,
   read out of its content, so it reads as a statement, a vision and a
   mission rather than as one long paragraph under two clip-art badges.
   ========================================================================== */
.is-field .page-head { background: transparent; }
.is-field .page-head .netfield { display: none; }

.about-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-bottom: var(--sp-6);
}
@media (max-width: 62rem) { .about-head__inner { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.page-head .about-head__title {
  margin: var(--sp-5) 0 var(--sp-4);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-fg);
}
.about-head__statement {
  margin: 0 0 var(--sp-5);
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-head .about-head__statement { color: var(--hi); }
.page-head .about-head__detail {
  margin: 0;
  max-width: 58ch;
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--on-dark-soft);
}

/* Shared glass for the profile panes. */
.idcard, .vm__card, .scope__item, .explore__card {
  --lg-tint: rgba(4, 22, 16, 0.3);
  --lg-blur: 2px;
  --lg-sat: 180%;
  --spec: radial-gradient(120% 90% at var(--gx) var(--gy), rgba(255, 255, 255, 0.09), transparent 52%);
  background: var(--spec), var(--lg-fill), var(--lg-tint);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-rim), var(--lg-drop);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
}

/* The unit's card */
.idcard { position: relative; padding: var(--sp-5); border-radius: 26px; color: var(--on-dark); }
.idcard__top { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.idcard__logo {
  width: 3.5rem; height: 3.5rem; flex: none;
  padding: 0.35rem;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
.page-head .idcard__name { margin: 0; max-width: none; font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: var(--hi); letter-spacing: -0.02em; line-height: 1.1; }
.page-head .idcard__org { margin: 0.15rem 0 0; font-size: var(--step--1); color: var(--on-dark-dim); }
.idcard__rows { margin: 0; display: grid; }
.idcard__row {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--sp-3);
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: var(--step--1);
  line-height: 1.5;
}
.idcard__row dt { color: var(--accent-fg); padding-top: 0.15rem; }
.idcard__row dt svg { width: 1rem; height: 1rem; }
.idcard__row dd { margin: 0; color: var(--on-dark-soft); }
.idcard__row a { color: var(--hi); text-decoration: none; }
.idcard__row a:hover { color: var(--accent-fg); }
.idcard__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: var(--sp-3);
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--hi);
  text-decoration: none;
  background: rgba(36, 211, 165, 0.08);
  box-shadow: inset 0 0 0 1px rgba(36, 211, 165, 0.25);
  transition: background var(--speed) var(--ease);
}
.idcard__status:hover { color: var(--hi); background: rgba(36, 211, 165, 0.15); }
.idcard__status svg { width: 1rem; height: 1rem; margin-inline-start: auto; }
[dir="rtl"] .idcard__status svg { transform: scaleX(-1); }
.idcard__pulse { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); animation: beat 2.4s ease-out infinite; }

/* Vision & mission: two panes, the words at display size. */
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 52rem) { .vm { grid-template-columns: minmax(0, 1fr); } }
.vm__card {
  --accent: var(--mint);
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 26px;
}
.vm__card--mission { --accent: var(--gold); }
/* One accent stroke along the top edge, the only colour on the pane. */
.vm__card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: clamp(1.5rem, 3vw, 2.5rem);
  width: 3rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}
.vm__label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent);
}
.vm__card--mission .node-no { color: var(--gold-fg); background: rgba(201, 162, 39, 0.08); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.35); }
.vm__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--hi);
  text-wrap: pretty;
}

/* What we do: five numbered panes. */
.scope {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-3);
}
@media (max-width: 72rem) { .scope { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 52rem) { .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .scope { grid-template-columns: minmax(0, 1fr); } }
.scope__item {
  --lg-tint: rgba(4, 22, 16, 0.22);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border-radius: 20px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.scope__item:hover { transform: translateY(-2px); border-color: rgba(36, 211, 165, 0.38); }
.scope__no { font-family: var(--font-mono); font-size: var(--step--2); color: var(--t-faint); }
.scope__icon { color: var(--accent-fg); margin: var(--sp-2) 0 var(--sp-1); }
.scope__icon svg { width: 1.5rem; height: 1.5rem; }
.is-field .section .scope__name { margin: 0; font-size: var(--step-0); line-height: 1.3; color: var(--hi); }
.scope__desc { margin: 0; font-size: var(--step--1); line-height: 1.6; color: var(--on-dark-dim); }

.stat-panel--row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
  background: none;
  border: 0;
}
@media (max-width: 48rem) { .stat-panel--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-panel--row .stat:first-child .stat__value { color: var(--accent-fg); }

/* More about PDTI */
.explore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@media (max-width: 44rem) { .explore { grid-template-columns: minmax(0, 1fr); } }
.explore__card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  min-height: 5.5rem;
  padding: var(--sp-4) var(--sp-5);
  border-radius: 20px;
  overflow: hidden;
  color: var(--hi);
  text-decoration: none;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.explore__card:hover { color: var(--hi); border-color: rgba(36, 211, 165, 0.4); transform: translateY(-2px); }
/* A page with a picture shows it faintly behind the glass, fading out
   before the text. */
.explore__art {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 55%;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
  pointer-events: none;
}
[dir="rtl"] .explore__art {
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 70%);
  mask-image: linear-gradient(270deg, transparent, #000 70%);
}
.explore__art picture, .explore__art img { width: 100%; height: 100%; object-fit: cover; }
.explore__card:hover .explore__art { opacity: 0.45; }
.explore__icon, .explore__name, .explore__go { position: relative; }
.explore__icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 14px;
  color: var(--accent-fg);
  background: rgba(36, 211, 165, 0.08);
  box-shadow: inset 0 0 0 1px rgba(36, 211, 165, 0.22);
}
.explore__icon svg { width: 1.2rem; height: 1.2rem; }
.explore__name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.015em; }
.explore__go { color: var(--accent-fg); transition: transform var(--speed) var(--ease); }
.explore__go svg { width: 1.2rem; height: 1.2rem; }
.explore__card:hover .explore__go { transform: translateX(4px); }
[dir="rtl"] .explore__go svg { transform: scaleX(-1); }
[dir="rtl"] .explore__card:hover .explore__go { transform: translateX(-4px); }

.about-stamp { margin-top: var(--sp-6); color: var(--t-faint); }

html[data-contrast="high"] :is(.idcard, .vm__card, .scope__item, .explore__card) { background: #000 !important; border-color: #fff !important; }
html[data-contrast="high"] .explore__art { display: none; }
@media (prefers-reduced-transparency: reduce) {
  .idcard, .vm__card, .scope__item, .explore__card { --lg-tint: #072319; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .idcard, .vm__card, .scope__item, .explore__card { --lg-tint: rgba(4, 22, 16, 0.86); }
}
html[data-motion="off"] .idcard__pulse { animation: none; }
@media (prefers-reduced-motion: reduce) { .idcard__pulse { animation: none; } }
@media print { .idcard__status { display: none; } }

/* The statement is a full sentence from the content, not a slogan, so it is
   set as a strong lead rather than at headline size. */
.page-head .about-head__statement {
  margin: 0 0 var(--sp-5);
  max-width: 34ch;
  font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   18. Light & dark
   --------------------------------------------------------------------------
   Two complete themes over one set of components. html[data-theme] is set
   before first paint (in the page head): the visitor's stored choice, else
   the system's. Every page sits on the network field; the field, the glass
   and every text colour above them are tokens, redefined here per theme.

   Text that sits on a colour that does not change with the theme — a filled
   button, the chat bubble, the audience artwork — keeps a fixed colour.
   ========================================================================== */

:root:not([data-theme='dark']) {
  color-scheme: light;

  --bg: #EEF3F0;
  --paper: #EEF3F0;
  --fg: #0B1F17;
  --ink: #0B1F17;
  --muted: #4F6259;
  --surface: #FFFFFF;
  --line: #D9E2DD;
  --border: var(--line);

  --hi: #0B1F17;
  --on-dark: #1F3329;
  --on-dark-soft: #33473D;
  --on-dark-dim: #50635A;
  --t-faint: #66796F;
  --accent-fg: #0B6E46;
  --gold-fg: #85690E;
  --hairline: rgba(11, 31, 23, 0.08);
  --hairline-hi: rgba(11, 31, 23, 0.14);
  --ring-bg: #FFFFFF;

  --ok: #0E9A6E;
  --slow: #B07F07;
  --cert: #C2570C;
  --down: #CC3B31;

  --field: #EDF3EF;
  --field-glow: rgba(36, 211, 165, 0.26);
  --field-glow-2: rgba(201, 162, 39, 0.12);
  --field-rgb: 12, 110, 72;
  --field-gold-rgb: 160, 122, 18;
  --field-line: 0.12;
  --field-node: 0.42;

  --lg-blur: 6px;
  --lg-sat: 160%;
  --lg-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.36) 45%, rgba(255, 255, 255, 0.5));
  --lg-tint: rgba(255, 255, 255, 0.2);
  --lg-edge: rgba(11, 31, 23, 0.09);
  --lg-rim:
    inset 0 1px 0 #FFFFFF,
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(11, 31, 23, 0.04),
    inset 0 -26px 36px -32px rgba(14, 122, 79, 0.28);
  --lg-drop: 0 24px 48px -30px rgba(6, 42, 30, 0.38);
  --sheet: rgba(255, 255, 255, 0.66);
  --input-bg: rgba(255, 255, 255, 0.92);
}

html[data-theme='dark'] {
  color-scheme: dark;

  --bg: #03110C;
  --paper: #03110C;
  --fg: #E2ECE7;
  --ink: #E2ECE7;
  --muted: #9DB4AA;
  --surface: #0A2219;
  --line: rgba(255, 255, 255, 0.1);
  --border: var(--line);

  --hi: #FFFFFF;
  --on-dark: #D8E6DF;
  --on-dark-soft: #C6D8CF;
  --on-dark-dim: #9FB8AD;
  --t-faint: #86A194;
  --accent-fg: #24D3A5;
  --gold-fg: #D9B43C;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-hi: rgba(255, 255, 255, 0.16);
  --ring-bg: #06231A;

  --ok: #24D3A5;
  --slow: #E2B53E;
  --cert: #F08A3C;
  --down: #F0645A;

  --field: #03110C;
  --field-glow: rgba(14, 122, 79, 0.3);
  --field-glow-2: rgba(14, 122, 79, 0.16);
  --field-rgb: 36, 211, 165;
  --field-gold-rgb: 201, 162, 39;
  --field-line: 0.11;
  --field-node: 0.7;

  --lg-blur: 3px;
  --lg-sat: 165%;
  --lg-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.03));
  --lg-tint: rgba(4, 22, 16, 0.34);
  --lg-edge: rgba(255, 255, 255, 0.12);
  --lg-rim:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -22px 32px -28px rgba(36, 211, 165, 0.32);
  --lg-drop: 0 28px 56px -32px rgba(0, 0, 0, 0.85);
  --sheet: rgba(5, 24, 17, 0.6);
  --input-bg: rgba(255, 255, 255, 0.045);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
}

html { background: var(--field); }
body { color: var(--fg); }

/* The field */
.netfield--page {
  background:
    radial-gradient(70% 60% at 88% 0%, var(--field-glow), transparent 70%),
    radial-gradient(60% 55% at 0% 100%, var(--field-glow-2), transparent 70%),
    var(--field);
}
/* Over a light field the lattice reads as ink on paper: a single soft
   wash keeps the top of each page from feeling empty. */
:root:not([data-theme='dark']) .netfield--page {
  background:
    radial-gradient(55% 45% at 90% 0%, var(--field-glow), transparent 70%),
    radial-gradient(45% 40% at 5% 30%, rgba(14, 122, 79, 0.08), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, var(--field-glow-2), transparent 70%),
    linear-gradient(180deg, #F4F8F5, var(--field) 40%, #E8F0EB);
}

/* Every page is on the field: its bands are clear, its content is glass. */
.is-field main > .section,
.is-field main > section,
.is-field .page-head,
.is-field .section--dark,
.is-field .section--paper { background: transparent; border-block: 0; }
.is-field .girih, .is-field .motes { display: none; }
.is-field .section h2, .is-field .section h3, .is-field .page-head h1 { color: var(--hi); }
.is-field .page-head p { color: var(--on-dark-soft); }
.is-field .section__head p { color: var(--muted); }

/* Content on inner pages joins the glass. */
.is-field .tile,
.is-field .widget,
.is-field .pager a,
.is-field .pager span,
.is-field .notice,
.is-field main article[id^='post-']:not(.card):not(.feature) {
  --spec: radial-gradient(120% 90% at var(--gx) var(--gy), rgba(255, 255, 255, 0.09), transparent 52%);
  --lg-tint: var(--sheet);
  --lg-blur: 12px;
  background: var(--spec), var(--lg-fill), var(--lg-tint);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-rim), var(--lg-drop);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
}
/* An article or page is a reading sheet: one pane, generous padding. */
.is-field main article[id^='post-']:not(.card):not(.feature) {
  padding: clamp(1.25rem, 3vw, 2.75rem);
  border-radius: var(--radius-glass);
}
.is-field .tile__name, .is-field .widget__title { color: var(--hi); }
.is-field .tile__desc { color: var(--muted); }
.is-field .tile:hover { border-color: color-mix(in srgb, var(--accent-fg) 45%, transparent); }

.is-field .card,
.is-field .feature,
.is-field .accordion,
.is-field .dl-item { --lg-tint: var(--sheet); }
.is-field .card__meta, .is-field .dl-item__meta { color: var(--t-faint); }
.is-field .card__text, .is-field .feature__text { color: var(--muted); }
.is-field .accordion__body { color: var(--on-dark-soft); }
.is-field .accordion__item { border-color: var(--hairline); }
.is-field .badge { background: color-mix(in srgb, var(--accent-fg) 12%, transparent); color: var(--accent-fg); }
.is-field .dl-item { color: var(--fg); }
.is-field .dl-item__ext { background: color-mix(in srgb, var(--accent-fg) 12%, transparent); color: var(--accent-fg); }

.input, .textarea, .select {
  background: var(--input-bg);
  color: var(--fg);
  border-color: var(--hairline-hi);
}
.input::placeholder, .textarea::placeholder { color: var(--t-faint); }

/* --------------------------------------------------------------------------
   Light theme: the components that were drawn for the dark field
   -------------------------------------------------------------------------- */
:root:not([data-theme='dark']) :is(
  .console, .stat, .conn__pillar, .conn__facts, .btn--glass, .is-field .btn--ghost,
  .idcard, .vm__card, .scope__item, .explore__card, .hub__caption, .footer-cta
) { --lg-tint: rgba(255, 255, 255, 0.22); --lg-blur: 5px; }
:root:not([data-theme='dark']) .conn__pillar--ai { --lg-tint: rgba(201, 162, 39, 0.08); }

:root:not([data-theme='dark']) .hero__title em { color: rgba(11, 31, 23, 0.5); }
:root:not([data-theme='dark']) .hero__lead { color: var(--on-dark-soft); }
:root:not([data-theme='dark']) .hero__eyebrow,
:root:not([data-theme='dark']) .breadcrumb {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px var(--hairline-hi);
  color: var(--on-dark-soft);
}
:root:not([data-theme='dark']) .breadcrumb a { color: var(--on-dark-soft); }

:root:not([data-theme='dark']) .sys__link {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
:root:not([data-theme='dark']) .sys__link:hover { background: rgba(255, 255, 255, 0.85); }
:root:not([data-theme='dark']) .sys__icon {
  color: var(--accent-fg);
  background: color-mix(in srgb, var(--accent-fg) 9%, #FFFFFF);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.sys__icon::after { box-shadow: 0 0 0 3px var(--ring-bg); }
.sys__host, .sys__ms small, .console__foot, .scope__no, .about-stamp { color: var(--t-faint); }

:root:not([data-theme='dark']) .arch__chip {
  color: var(--on-dark-soft);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--hairline-hi);
}
:root:not([data-theme='dark']) .arch__layer { border-color: var(--hairline); }
:root:not([data-theme='dark']) .conn__fact { border-color: var(--hairline); }
:root:not([data-theme='dark']) .idcard__row { border-color: var(--hairline); }
:root:not([data-theme='dark']) .idcard__status,
:root:not([data-theme='dark']) .explore__icon,
:root:not([data-theme='dark']) .node-no {
  background: color-mix(in srgb, var(--accent-fg) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-fg) 30%, transparent);
}
:root:not([data-theme='dark']) .conn .node-no,
:root:not([data-theme='dark']) .vm__card--mission .node-no {
  background: color-mix(in srgb, var(--gold-fg) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-fg) 35%, transparent);
}
:root:not([data-theme='dark']) .vm__card--mission { --accent: var(--gold-fg); }
:root:not([data-theme='dark']) .vm__card--vision { --accent: var(--accent-fg); }
:root:not([data-theme='dark']) .hub__lens { box-shadow: inset 0 1.5px 0 #FFFFFF, inset 0 0 0 1px rgba(11, 31, 23, 0.08), 0 24px 50px -28px rgba(6, 42, 30, 0.45); }
:root:not([data-theme='dark']) .hub__mark { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7), 0 10px 30px rgba(14, 122, 79, 0.25); }

/* Header, rail and menus */
:root:not([data-theme='dark']) .telemetry,
:root:not([data-theme='dark']) .is-field .telemetry { background: rgba(255, 255, 255, 0.45); color: var(--t-faint); box-shadow: inset 0 -1px 0 var(--hairline); }
:root:not([data-theme='dark']) .telemetry__conn { color: var(--gold-fg); }
.telemetry__status:hover { color: var(--hi); }

:root:not([data-theme='dark']) .nav__sub,
:root:not([data-theme='dark']) .lang__menu {
  background: rgba(252, 253, 252, 0.94);
  border-color: var(--hairline-hi);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 18px 40px -16px rgba(6, 42, 30, 0.35);
}
:root:not([data-theme='dark']) .nav__sub .nav__link,
:root:not([data-theme='dark']) .lang__link { color: var(--on-dark-soft); }
:root:not([data-theme='dark']) .nav__sub .nav__link:hover,
:root:not([data-theme='dark']) .lang__link:hover { color: var(--hi); background: rgba(11, 31, 23, 0.05); }
@media (max-width: 60rem) {
  :root:not([data-theme='dark']) .nav {
    background: rgba(252, 253, 252, 0.95);
    box-shadow: inset 0 1px 0 #FFFFFF, inset 0 0 0 1px var(--hairline), 0 24px 48px -20px rgba(6, 42, 30, 0.35);
  }
  :root:not([data-theme='dark']) .nav__link { color: var(--on-dark-soft); }
  :root:not([data-theme='dark']) .nav__link[aria-current='page'] { color: var(--accent-fg); background: color-mix(in srgb, var(--accent-fg) 8%, transparent); box-shadow: none; }
}
:root:not([data-theme='dark']) .site-header .brand__name { color: var(--ink); }
:root:not([data-theme='dark']) .site-header .icon-btn:hover { background: rgba(11, 31, 23, 0.08); color: var(--ink); }

/* The theme switch: the moon shows in light mode, the sun in dark. */
.theme-toggle svg { transition: transform 0.4s var(--ease), opacity 0.25s var(--ease); }
.theme-toggle__sun { display: none; }
html[data-theme='dark'] .theme-toggle__sun { display: block; }
html[data-theme='dark'] .theme-toggle__moon { display: none; }

/* Panels that float above everything */
html[data-theme='dark'] .panel,
html[data-theme='dark'] .chat {
  background: rgba(5, 24, 17, 0.9);
  border-color: var(--lg-edge);
  box-shadow: var(--lg-rim), 0 30px 60px -24px rgba(0, 0, 0, 0.8);
  color: var(--fg);
}
html[data-theme='dark'] .msg--bot,
html[data-theme='dark'] .chat__chip,
html[data-theme='dark'] .stepper button,
html[data-theme='dark'] .chat__input { background: rgba(255, 255, 255, 0.05); color: var(--fg); border-color: var(--hairline-hi); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--sp-6);
  overflow: hidden;
  background: transparent;
  color: var(--on-dark-dim);
}
.site-footer__ribbon, .site-footer .girih { display: none; }
.site-footer__inner { padding-block: var(--sp-6) var(--sp-5); }

.footer-cta {
  --lg-tint: rgba(4, 22, 16, 0.3);
  --spec: radial-gradient(120% 90% at var(--gx) var(--gy), rgba(255, 255, 255, 0.09), transparent 52%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5) var(--sp-7);
  margin-bottom: var(--sp-8);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 28px;
  background: var(--spec), var(--lg-fill), var(--lg-tint);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-rim), var(--lg-drop);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
}
.footer-cta__text { max-width: 36rem; }
.site-footer .footer-cta__title {
  margin: 0 0 var(--sp-2);
  padding: 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: none;
  color: var(--hi);
}
.footer-cta__title::before, .footer-cta__title::after { display: none; }
.footer-cta__lead { margin: 0; color: var(--on-dark-soft); }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.site-footer .footer-cta .btn--mint { color: var(--void); }
.site-footer .footer-cta .btn--glass { color: var(--hi); }

.footer-grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-7);
}
@media (max-width: 64rem) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h3 {
  padding-bottom: 0;
  margin-bottom: var(--sp-4);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--t-faint);
}
.site-footer h3::before, .site-footer h3::after { display: none; }
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: var(--accent-fg); }
.site-footer ul a { display: inline-flex; padding-block: 0.15rem; }
.site-footer__brand .brand__name { color: var(--hi); }
.site-footer__brand .brand__sub { color: var(--gold-fg); }
.site-footer__blurb { color: var(--on-dark-dim); }
.footer-contact svg { color: var(--accent-fg); }

.footer-bottom {
  align-items: center;
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
  color: var(--t-faint);
  font-size: var(--step--1);
}
.footer-bottom__time { font-family: var(--font-mono); font-size: var(--step--2); }
.footer-bottom__time time { color: var(--hi); font-weight: 600; }
.social { display: flex; gap: var(--sp-2); }
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: var(--step--1);
  background: color-mix(in srgb, var(--hi) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline-hi);
}
.social a svg { width: 0.9rem; height: 0.9rem; }

/* The name, set large and cut off by the page edge: a signature, not a logo. */
.footer-mark {
  margin: var(--sp-5) 0 0;
  padding: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 19vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-fg) 30%, transparent), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--accent-fg) 30%, transparent);
  margin-bottom: -0.12em;
  user-select: none;
  pointer-events: none;
}
.footer-mark span { margin-inline-start: 0.18em; color: transparent; }
[dir='rtl'] .footer-mark { direction: ltr; }

/* --------------------------------------------------------------------------
   High contrast wins over both themes
   -------------------------------------------------------------------------- */
html[data-contrast='high'] {
  --hi: #FFFFFF; --fg: #FFFFFF; --ink: #FFFFFF; --muted: #FFFFFF;
  --on-dark: #FFFFFF; --on-dark-soft: #FFFFFF; --on-dark-dim: #FFFFFF; --t-faint: #FFFFFF;
  --accent-fg: #5CF2C5; --gold-fg: #FFD54A;
  --surface: #000000; --input-bg: #000000; --border: #FFFFFF; --line: #FFFFFF;
  --hairline: #FFFFFF; --hairline-hi: #FFFFFF; --field: #000000; --sheet: #000000;
  background: #000;
}
html[data-contrast='high'] body,
html[data-contrast='high'] main { background: #000; color: #FFF; }
html[data-contrast='high'] :is(.footer-cta, .tile, .widget, .notice, main article[id^='post-']:not(.card):not(.feature), .pager a, .telemetry, .nav, .nav__sub, .lang__menu, .site-header) {
  background: #000 !important;
  border-color: #FFF !important;
}
html[data-contrast='high'] .footer-mark { display: none; }

@media print {
  .footer-mark, .footer-cta, .theme-toggle { display: none !important; }
  .is-field main article[id^='post-']:not(.card):not(.feature) { background: none; box-shadow: none; border: 0; padding: 0; }
}

/* The audience cards are artwork on a dark ground in both themes, so they
   carry the dark tokens with them wherever they are placed. */
.acard {
  --hi: #FFFFFF;
  --on-dark: #D8E6DF;
  --on-dark-soft: #C6D8CF;
  --on-dark-dim: #9FB8AD;
  --t-faint: #9FB8AD;
  --accent-fg: #24D3A5;
  --gold-fg: #C9A227;
  --lg-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.03));
  --lg-edge: rgba(255, 255, 255, 0.14);
  --lg-rim: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.acard__body { --lg-tint: rgba(4, 22, 16, 0.5); }
.acard__go { color: rgba(255, 255, 255, 0.85); }

/* Forms and the search bar sit on a pane too, so a field is never an
   input box floating on the lattice. */
.is-field .form-sheet,
.is-field .search-bar {
  --spec: radial-gradient(120% 90% at var(--gx) var(--gy), rgba(255, 255, 255, 0.09), transparent 52%);
  --lg-tint: var(--sheet);
  --lg-blur: 12px;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius-glass);
  background: var(--spec), var(--lg-fill), var(--lg-tint);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-rim), var(--lg-drop);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
}
.is-field .search-bar { padding: var(--sp-3); border-radius: 20px; }

/* The profile head keeps its own colours over the generic page-head ones. */
.is-field .page-head .about-head__title { color: var(--accent-fg); }
.is-field .page-head .about-head__statement { color: var(--hi); }
:root:not([data-theme='dark']) .footer-mark {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-fg) 16%, transparent), transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke-color: color-mix(in srgb, var(--accent-fg) 22%, transparent);
}

/* A backdrop filter inside the header's own glass only sees the header,
   not the page, so the menus that hang from it cannot rely on blur: they
   are all but opaque instead, in both themes. */
@media (max-width: 60rem) {
  html[data-theme='dark'] .nav { background: rgba(5, 24, 17, 0.97); }
  :root:not([data-theme='dark']) .nav { background: #FAFCFB; }
}
html[data-theme='dark'] .nav__sub, html[data-theme='dark'] .lang__menu { background: rgba(5, 24, 17, 0.97); }

/* The chat header is a dark band in both themes; its controls stay light. */
.chat__head { --hi: #FFFFFF; --on-dark-soft: #C6D8CF; --on-dark-dim: #9FB8AD; --accent-fg: #24D3A5; }
.chat__head .icon-btn,
.chat__head button { color: #FFFFFF; }

/* High contrast: floating panels are solid, switches are outlined. */
html[data-contrast='high'] .chat,
html[data-contrast='high'] .panel { background: #000 !important; border: 2px solid #FFF !important; }
html[data-contrast='high'] .switch { background: #000; box-shadow: inset 0 0 0 2px #FFF; }
html[data-contrast='high'] .switch::after { background: #FFF; }
html[data-contrast='high'] .switch[aria-pressed='true'] { background: #5CF2C5; }
html[data-contrast='high'] .switch[aria-pressed='true']::after { background: #000; }

/* --------------------------------------------------------------------------
   Status page and cluster summary
   One chip per cluster under the home board; on /status the same chips
   act as a table of contents above one board per cluster.
   -------------------------------------------------------------------------- */
.clusters {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0 var(--sp-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.clusters__item {
  --c: var(--on-dark-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--on-dark-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.clusters__item:hover {
  color: var(--hi);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent);
}
.clusters__item[hidden] { display: none; }
:is(.clusters__item, .legend__item)[data-state='ok']   { --c: var(--ok); }
:is(.clusters__item, .legend__item)[data-state='slow'] { --c: var(--slow); }
:is(.clusters__item, .legend__item)[data-state='cert'] { --c: var(--cert); }
:is(.clusters__item, .legend__item)[data-state='down'] { --c: var(--down); }
.clusters__lamp {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c, var(--on-dark-dim));
}
.clusters__item[data-state='wait'] .clusters__lamp { animation: blink 1s steps(2) infinite; }
.clusters__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--t-faint);
  direction: ltr;
  unicode-bidi: isolate;
}
.console__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
}
.console__more svg { width: 0.9rem; height: 0.9rem; }
[dir='rtl'] .console__more svg { transform: scaleX(-1); }

/* /status */
.statusboard { padding-top: var(--sp-6); }
.statusboard__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: var(--sp-4);
}
.statusboard__checked {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--t-faint);
}
.statusboard .console__overall { font-size: var(--step-0); }
.clusters--page { padding: 0; margin: 0 0 var(--sp-6); }
.clusters--page .clusters__item { font-size: var(--step--1); padding: 0.45rem 0.95rem; }
.statusboard__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: var(--sp-5);
  align-items: start;
}
.console--cluster { animation: none; scroll-margin-top: calc(var(--header-h, 4rem) + var(--sp-5)); }
.console--cluster .console__overall { font-size: var(--step--2); }
.statusboard__legend {
  margin-top: var(--sp-7);
  max-width: 62rem;
}
.statusboard__legend-title {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark-soft);
  margin: 0 0 var(--sp-3);
}
.statusboard__legend dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--sp-3) var(--sp-5);
  margin: 0;
}
.legend__item dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--hi);
}
.legend__item dd {
  margin: 0.25rem 0 0;
  font-size: var(--step--1);
  color: var(--on-dark-soft);
}
.statusboard__report {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: var(--sp-5) 0 0;
  font-size: var(--step--1);
}
.statusboard__report svg { width: 1rem; height: 1rem; color: var(--accent-fg); flex: none; }
.statusboard__report a { color: var(--accent-fg); }

:root:not([data-theme='dark']) .clusters__item {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
:root:not([data-theme='dark']) .clusters__item:hover { background: rgba(255, 255, 255, 0.85); }

@media (max-width: 30rem) {
  .statusboard__grid { gap: var(--sp-4); }
}
/* The cluster boards are long, sit side by side and scroll: refraction and
   backdrop blur over a full page of rows only smear the neighbouring board
   into this one. A plain tinted pane reads better and costs nothing. */
.console.console--cluster {
  grid-area: auto; /* the inlined critical CSS places every .console in the hero grid */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(4, 22, 16, 0.72);
  border: 1px solid var(--hairline-hi);
  box-shadow: none;
}
:root:not([data-theme='dark']) .console.console--cluster { background: rgba(255, 255, 255, 0.78); }

/* Three figures (availability not yet measured): three columns, no hole. */
@media (min-width: 48.01rem) {
  .stat-panel.stat-panel--n3,
  .hero--live .stat-panel.stat-panel--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Organisation chart page: a wide chart is unreadable at reading width, so
   the article holding one uses the full card; its table follows suit. */
.prose:has(> figure.org-chart) { max-width: none; }
.prose figure.org-chart img { width: 100%; margin-block: 0; border-radius: 12px; }
.prose figure.org-chart figcaption { margin-top: var(--sp-2); font-size: var(--step--1); color: var(--t-faint); }
.prose .org-table { display: table; width: 100%; }

/* Footer accounts are labelled pills (icon + name), not icon squares: drop
   the fixed 2.1rem box from the older .social rule so the names fit. */
.social { flex-wrap: wrap; }
.social a { width: auto; height: auto; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Architecture, as stack + detail
   The rosette, motes and reach lines are gone: the right half now carries the
   chosen tier's description and the live state of its systems.
   -------------------------------------------------------------------------- */
.arch__ornament, .arch .motes, .arch__flow { display: none; }
.arch__layer::after { display: none; }
.arch__stack::after { display: none; }

.arch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--sp-6);
  align-items: start;
}
.arch__stack { max-width: none; gap: 0; }
.arch__layer { display: block; padding: 0; border-bottom: 1px solid var(--hairline); }
.arch__layer:hover { background: none; }
.arch__layer::before { top: 1.45rem; }

.arch__tier {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  border-radius: 14px;
  transition: background var(--speed) var(--ease);
}
.arch__tier:hover { background: color-mix(in srgb, var(--hi) 4%, transparent); }
.arch__tier[aria-expanded='true'] { background: color-mix(in srgb, var(--accent-fg) 9%, transparent); }
.arch__tier[aria-expanded='true'] .arch__name { color: var(--accent-fg); }
.arch__layer:has(.arch__tier[aria-expanded='true'])::before { background: var(--mint); }
.arch__tier:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 2px; }

.arch__index { width: 2.6rem; padding-top: 0.25rem; }
.arch__body { gap: 0.35rem; }
.arch__name { font-size: var(--step-1); transition: color var(--speed) var(--ease); }

/* Components read as a line of text, not as buttons. */
.arch__items { display: block; font-size: var(--step--1); color: var(--on-dark-soft); line-height: 1.6; }
.arch__item { display: inline; }
.arch__item + .arch__item::before { content: " · "; color: var(--t-faint); }
.arch__item[data-arch-host]::after {
  content: "";
  display: inline-block;
  width: 0.42rem; height: 0.42rem;
  margin-inline-start: 0.3rem;
  border-radius: 50%;
  vertical-align: 0.12em;
  background: var(--c, var(--on-dark-dim));
}

/* State colours, shared by the inline lamps and the panel rows. */
[data-arch-host][data-state='ok']   { --c: var(--ok); }
[data-arch-host][data-state='slow'] { --c: var(--slow); }
[data-arch-host][data-state='cert'] { --c: var(--cert); }
[data-arch-host][data-state='down'] { --c: var(--down); }

.arch__panels { position: sticky; top: calc(var(--header-h) + 2rem); }
:root[data-js='on'] .arch__panel[data-arch-hidden] { display: none; }
.arch__panel {
  padding: var(--sp-6);
  border-radius: 22px;
  background: color-mix(in srgb, var(--field) 82%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline-hi);
}
.arch__panel + .arch__panel { margin-top: var(--sp-4); }
.arch__panel-index { margin: 0 0 var(--sp-2); font-size: var(--step--2); letter-spacing: 0.12em; color: var(--accent-fg); }
.arch__panel-title { margin: 0 0 var(--sp-3); font-size: var(--step-2); color: var(--hi); }
.arch__panel-desc { margin: 0 0 var(--sp-5); color: var(--on-dark-soft); }
.arch__panel-label { margin: 0 0 var(--sp-2); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-faint); }

.arch__systems, .arch__parts { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: 6px; }
.arch__sys a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "lamp name state" "lamp host state";
  column-gap: var(--sp-3);
  align-items: center;
  padding: 0.7rem var(--sp-4);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--hi) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow var(--speed) var(--ease);
}
.arch__sys a:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--accent-fg)) 55%, transparent); }
.arch__lamp { grid-area: lamp; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c, var(--on-dark-dim)); }
.arch__sys[data-state='wait'] .arch__lamp { animation: blink 1s steps(2) infinite; }
.arch__sys-name { grid-area: name; font-weight: 700; color: var(--hi); }
.arch__sys-host { grid-area: host; font-size: var(--step--2); color: var(--t-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch__sys-state { grid-area: state; font-size: var(--step--2); color: var(--c, var(--t-faint)); white-space: nowrap; text-align: end; }

.arch__parts li {
  padding: 0.6rem var(--sp-4);
  border-radius: 12px;
  color: var(--on-dark-soft);
  background: color-mix(in srgb, var(--hi) 3%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.arch__more { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--accent-fg); text-decoration: none; }
.arch__more svg { width: 1rem; height: 1rem; }
[dir='rtl'] .arch__more svg { transform: scaleX(-1); }

@media (max-width: 64rem) {
  .arch__grid { grid-template-columns: minmax(0, 1fr); }
  .arch__panels { position: static; }
}
@media (max-width: 40rem) {
  .arch__panel { padding: var(--sp-5) var(--sp-4); }
  .arch__sys a { padding: 0.65rem var(--sp-3); column-gap: var(--sp-2); }
}
/* --------------------------------------------------------------------------
   Captcha on the public forms: a field like the others, full width. The
   image and the answer share one row at the same height; the image keeps
   its own light paper in both themes — it is a printed code, not a surface.
   -------------------------------------------------------------------------- */
.capfield__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.capfield__new {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin: -0.3rem -0.5rem -0.3rem 0;
  padding: 0.3rem 0.5rem;
  border: 0; border-radius: 8px;
  background: none;
  font: inherit; font-size: var(--step--1); font-weight: 700;
  color: var(--accent-fg);
  cursor: pointer;
  transition: background var(--speed) var(--ease);
}
.capfield__new:hover { background: color-mix(in srgb, var(--accent-fg) 12%, transparent); }
.capfield__new .ico { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease); }
.capfield__new:active .ico { transform: rotate(-180deg); }

.capfield__row { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: var(--sp-3); align-items: stretch; }
.capfield__img {
  display: block;
  width: 12.5rem;
  height: 3.75rem;
  border-radius: 12px;
  background: #F7FAF8;
  box-shadow: inset 0 0 0 1px rgba(11, 31, 23, 0.12);
}
.capfield__input.input {
  height: 3.75rem;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-align: center;
  text-transform: uppercase;
}
.capfield__input::placeholder { opacity: 0.45; }
@media (max-width: 30rem) {
  .capfield__row { grid-template-columns: minmax(0, 1fr); }
  .capfield__img { width: 100%; height: auto; aspect-ratio: 10 / 3; }
}
@media (prefers-reduced-motion: reduce) { .capfield__new .ico { transition: none; } }
/* Paragraph settings from the content editor (classes, never inline styles). */
.prose .has-text-align-left { text-align: left; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose .has-text-align-justify { text-align: justify; hyphens: auto; }
.prose figure.has-text-align-center img, .prose img.has-text-align-center { margin-inline: auto; }
.prose figure.has-text-align-right img { margin-inline-start: auto; }
.prose table.has-text-align-center { margin-inline: auto; width: auto; }
.prose .indent-1 { margin-inline-start: 2rem; }
.prose .indent-2 { margin-inline-start: 4rem; }
.prose .indent-3 { margin-inline-start: 6rem; }
.prose .lh-tight { line-height: 1.45; }
.prose .lh-loose { line-height: 2.1; }
.prose .is-lead { font-size: 1.18em; line-height: 1.65; font-weight: 500; }
.prose .is-small { font-size: 0.86em; opacity: 0.8; }
.prose .is-note { padding: 0.9em 1.1em; border-inline-start: 3px solid var(--accent-fg, #0E7A4F); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--accent-fg, #0E7A4F) 8%, transparent); }
@media (max-width: 40rem) { .prose .indent-2, .prose .indent-3 { margin-inline-start: 2rem; } }