@font-face { font-family: "Archivo"; src: url("fonts/Archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/Fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ============================================================
   HOUSE.CSS — shared layer for all registers (Laws III–VII)
   Load order: fonts.css → tokens/house.css → tokens/<register>.css
   A surface gets exactly ONE register class (Law: no mixing):
   .reg-colophon | .reg-wire | .reg-meridian | .reg-almanac
   .reg-maison   | .reg-foundry | .reg-dossier
   ============================================================ */

:root {
  /* spacing — 8px rhythm, vary section gaps on purpose */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 96px;

  /* breakpoints (reference: phone ≤640 · tablet 641–1024 · desktop >1024)
     every surface must work at 390px — test, don't assume */

  /* motion — 150–200ms ease-out, opacity/transform only, no bounce */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur: 180ms;

  /* page shell */
  --shell-max: 1200px;
  --measure-max: 66ch;
}

/* Law IV — the group's data voice, identical in every register.
   Each register maps --font-label / --font-data in its own file. */
.u-label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: var(--label-weight, 500);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.u-tnum { font-variant-numeric: tabular-nums; }

/* Law III — structure is rules and hairlines, never blurred shadows */
.u-rule-hard { border-top: 2px solid var(--ink); }
.u-rule-soft { border-top: 1px solid var(--line); }

/* Law VII — attribution, required on every deliverable.
   Marker square takes the register's group accent; text sits muted,
   the name in full ink, whole line accent on hover. */
.attribution {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label);
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.attribution::before { content: ""; width: 7px; height: 7px; background: var(--group-accent); }
.attribution b, .attribution strong { color: var(--ink); font-weight: 600; }
.attribution:hover, .attribution:hover b { color: var(--group-accent); }

/* registry chips — rendered from registry.json, never hand-drawn */
.reg-no { font-family: var(--font-data); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.reg-accent-chip { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--child-accent, var(--group-accent)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ============================================================
   HORIZON — external websites and every UI agents build (owner decision 2026-09-26)
   Voice: Archivo 700 speaks · Instrument Sans explains · Fraunces names things · IBM Plex Mono counts (UIs only)
   Bright sky, navy type, a cobalt→turquoise gradient, white cards with soft blue shadows.
   Light-first; UIs add the dark variant via prefers-color-scheme (see DESIGN.md, Register 8).
   Reference implementation: tidvane.com + Tidvane /ui (~/Dev/tidvane). Templates: templates/web/horizon-*.
   ============================================================ */
.reg-horizon {
  --navy:  #0F2552;        /* headlines, wordmarks, strong text */
  --ink:   #33466B;        /* body text */
  --muted: #66779A;
  --agate: #8A98B5;
  --line:  #DCE7F4;        /* hairline */
  --line-mid: #D2DEEE;     /* input and table borders */
  --paper: #FFFFFF;        /* cards */
  --sky:   #F5F9FE;        /* page */
  --tint:  #EAF3FC;        /* page top wash, hover */
  --panel: #F3F8FE;        /* table heads, insets */

  /* the accent pair — a property may swap BOTH for its registered accent + a lighter partner (AA-checked) */
  --accent: #1F6FEB;       /* cobalt: links, focus, active */
  --accent-deep: #1E4FC4;
  --accent-2: #2EE6D0;     /* turquoise: the far end of the gradient */
  --accent-mid: #22C3E8;
  --grad: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-mid) 45%, var(--accent) 100%);
  --grad-button: linear-gradient(90deg, #1FB5E3, var(--accent));

  /* status — the only status vocabulary: ok (teal), hold (amber, a person must act), urgent (red, never decorative) */
  --ok: #059E86;     --ok-bg: #E3F8F3;
  --hold: #B26A00;   --hold-bg: #FFF4DF;
  --urgent: #D9304F; --urgent-bg: #FDE8EC;

  /* signal colours for channels/categories (one per item, like the network cards on tidvane.com) */
  --sig-rose: #E25C71; --sig-violet: #8156FA; --sig-blue: #2F6FED; --sig-sky: #1EA7F2;
  --sig-teal: #05B397; --sig-amber: #F59E0B; --sig-orange: #F97316; --sig-green: #2AC466; --sig-slate: #33466B;

  --shadow: 0 1px 2px rgba(15, 37, 82, .06), 0 10px 30px rgba(31, 79, 196, .10);
  --shadow-lift: 0 2px 4px rgba(15, 37, 82, .06), 0 18px 40px rgba(31, 79, 196, .16);
  --radius-lg: 24px; --radius: 16px; --radius-sm: 10px; --radius-pill: 999px;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;        /* 700 only: headlines, wordmarks */
  --font-ui:      'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;  /* 400/500/700: everything else */
  --font-name:    'Fraunces', Georgia, serif;                             /* 600: names of publications/products in cards */
  --font-data:    'IBM Plex Mono', ui-monospace, Menlo, monospace;        /* UIs: timestamps, ids, codes */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --measure-max: 66ch;

  background: var(--sky);
  background-image: linear-gradient(180deg, #F3F8FE 0%, #FFFFFF 38%, #F4F9FE 100%);
  color: var(--ink);
  font-family: var(--font-ui);
}
@media (prefers-color-scheme: dark) {
  /* UIs only (external websites stay light): add class reg-horizon-dark-ok on the root to opt in */
  .reg-horizon.reg-horizon-dark-ok {
    --navy: #EAF2FF; --ink: #C9D6EE; --muted: #93A3C4; --agate: #7384A6; --line: #1F3158; --line-mid: #2A3E69;
    --paper: #12213F; --sky: #0B1630; --panel: #152748; --tint: #172C52;
    --accent: #5B9BFF; --accent-deep: #8AB6FF; --accent-mid: #4FD6F2;
    --ok: #3FD9BE; --ok-bg: #0F3A3A; --hold: #FFC266; --hold-bg: #3A2C12; --urgent: #FF6B86; --urgent-bg: #45172A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    background-image: linear-gradient(180deg, #172C52 0, #0B1630 320px);
  }
}
/* base rules use :where() so component classes (wordmark, pills, nav) always win */
.reg-horizon :where(h1, h2, h3) { font-family: var(--font-display); font-weight: 700; color: var(--navy); letter-spacing: -.015em; line-height: 1.08; }
.reg-horizon :where(a) { color: var(--accent); text-underline-offset: 3px; }
.reg-horizon .kicker { font: 500 .78rem/1.5 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.reg-horizon .wordmark { font: 700 1.3rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.reg-horizon .attribution { color: var(--navy); text-decoration-color: var(--accent-mid); }
.reg-horizon .attribution b { font-weight: 700; }


/* HORIZON · website components — the tidvane.com look as a reusable kit (DESIGN.md, Register 8).
   Load order: /fonts.css (or your bundled @font-face) → /tokens/house.css → /tokens/horizon.css → this file.
   Put class "reg-horizon" on <body>. Font files: copy Archivo-700, InstrumentSans-400/500/700, Fraunces-600 from
   brand/fonts into your site and point @font-face there — never a CDN. Reference: ~/Dev/tidvane/site-src/site.css. */
.reg-horizon { --gutter: clamp(16px, 4.5vw, 64px); --edge: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter))); --measure: 64ch; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.reg-horizon { margin: 0; font: 400 17px/1.6 var(--font-ui); }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
p { max-width: var(--measure); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); letter-spacing: -.015em; line-height: 1.08; }
:focus-visible { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--paper); padding: 10px 14px; z-index: 10; border-radius: 10px; box-shadow: var(--shadow); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 120px) 0; }
.kicker { font: 500 .78rem/1.5 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink); }

/* ---------- header ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand svg { width: 38px; height: 38px; }
.brand b { font: 700 1.3rem/1 var(--font-display); letter-spacing: .08em; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  font: 500 .95rem/1 var(--font-ui); color: var(--navy); background: var(--paper); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.pill:hover { color: var(--navy); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.pill.solid { color: var(--paper); background: linear-gradient(90deg, #1FB5E3, #1F6FEB); }
.pill.solid:hover { color: var(--paper); }

/* ---------- hero: the gateway diagram ---------- */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.hero-head { text-align: center; max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; }
.hero h1 span { display: block; background: linear-gradient(90deg, #1E4FC4, #1F6FEB 55%, #22A9E8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .kicker { margin: 22px auto 0; }
.hero-head p.lead { margin: 18px auto 0; max-width: 46em; }

.diagram { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 380px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 110px); align-items: center; max-width: 1360px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter); }
.diagram .wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* only the wires themselves: `.wires path` would also blank out the arrowheads inside the markers */
.wires > path { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.wires > path.flow { stroke-dasharray: .1 26; stroke-width: 3; stroke: rgba(255, 255, 255, .9); animation: flow 1.8s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -52.2; } }
.col { display: grid; gap: 14px; position: relative; z-index: 1; }
.col-label { font: 500 .74rem/1.3 var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }

.pub { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 16px 12px 12px;
  background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pub::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--accent)); }
.pub img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; margin-left: 4px; }
.pub h3 { margin: 0; font: 600 clamp(1.08rem, 1.5vw, 1.3rem)/1.15 var(--font-name); letter-spacing: -.01em; color: var(--navy); }
.pub .sub { margin: 4px 0 0; font: 500 .68rem/1.3 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.pub .tags { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }

.net { display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 14px; align-items: center; padding: 12px 16px 12px 12px;
  border-radius: 16px; box-shadow: var(--shadow); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, #fff), #fff 70%); }
.net .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.net .ico svg { width: 22px; height: 22px; }
.net h3 { margin: 0; font: 700 1rem/1.2 var(--font-display); letter-spacing: 0; }
.net p { margin: 2px 0 0; font-size: .85rem; line-height: 1.35; color: var(--muted); }
.net .chev { color: var(--c); width: 16px; height: 16px; }

.hub { position: relative; z-index: 1; aspect-ratio: 1; border-radius: 50%; }
.hub::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 2px dotted rgba(31, 111, 235, .35); }
.hub::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 8px rgba(91, 212, 253, .16), 0 0 70px 10px rgba(34, 195, 232, .45), inset 0 0 40px rgba(34, 195, 232, .35); }
.hub .disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 45%, #fff 0%, #F2FAFE 55%, #DDF2FC 100%); }
.hub .disc video, .hub .disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hub .disc::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .45) 58%, rgba(255, 255, 255, 0) 80%); }
.hub .core { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; text-align: center; padding: 12%; }
.hub .core svg { width: clamp(56px, 7vw, 92px); height: auto; }
.hub .core b { margin-top: 8px; font: 700 clamp(1.8rem, 3.2vw, 2.7rem)/1 var(--font-display); letter-spacing: .06em; color: var(--navy); }
.hub .core span { margin-top: 10px; font: 500 clamp(.85rem, 1.2vw, 1rem)/1.3 var(--font-ui); color: var(--navy); }
.hub .core i { display: block; width: 42%; height: 2px; margin: 14px auto; background: var(--grad); border-radius: 2px; }
.hub .core em { font: 700 clamp(1rem, 1.5vw, 1.25rem)/1 var(--font-display); font-style: normal; color: var(--accent); letter-spacing: .01em; }
.inputs { position: absolute; z-index: 1; left: 50%; top: calc(100% + 34px); transform: translateX(-50%); width: max-content; max-width: 90vw;
  text-align: center; font-size: .88rem; color: var(--muted); }

/* ---------- three steps ---------- */
.steps { padding: 0 0 clamp(8px, 2vw, 24px); }
.steps ol { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { text-align: center; padding: 8px clamp(12px, 2.5vw, 32px); }
.steps li + li { border-left: 1px solid var(--line); }
.steps svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--accent); }
.steps h3 { margin: 0; font-size: 1.12rem; }
.steps p { margin: 8px auto 0; font-size: .95rem; color: var(--muted); max-width: 26em; }

/* ---------- values ---------- */
.values h2, .day h2, .private h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0; }
.values .intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.values .intro p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.card { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(22px, 2.4vw, 32px); }
.card .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 18px; }
.card .dot svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.card p { margin: 0; font-size: .97rem; color: var(--ink); }

/* ---------- world band ---------- */
.world { position: relative; min-height: clamp(460px, 64vh, 720px); padding: 0; display: grid; place-items: end center; overflow: hidden; background: #EAF4FD; }
.world video, .world .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 249, 254, 0) 45%, rgba(245, 249, 254, .92) 88%, #F5F9FE 100%); }
.world .say { position: relative; z-index: 1; text-align: center; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); }
.world h2 { margin: 0; font-size: clamp(2.1rem, 5vw, 4rem); }
.world .kicker { margin: 16px auto 0; }

/* ---------- a day at the desk ---------- */
.day .lead { margin: 16px 0 0; }
.chart { margin-top: clamp(28px, 4vw, 48px); background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 36px); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .wave { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart .fill { fill: url(#tidefill); }
.chart .hour { font: 400 13px var(--font-ui); fill: var(--muted); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .story { fill: var(--accent-2); }
.chart .slot line { stroke: var(--accent-mid); stroke-width: 1.4; stroke-dasharray: 3 4; }
.chart .slot circle { fill: var(--paper); stroke: var(--accent); stroke-width: 2.4; }
.chart .slot text { font: 700 15px var(--font-display); fill: var(--navy); }
.chart-note { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.chart-note span { display: inline-flex; align-items: center; gap: 8px; }
.key-wave { width: 18px; height: 0; border-top: 2px solid var(--accent); }
.key-story { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
.key-slot { width: 12px; height: 12px; border-radius: 50%; border: 2.4px solid var(--accent); }
.js .chart .wave { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); }
.js .chart .fill, .js .chart .slot, .js .chart .story { opacity: 0; }
.js .chart.on .wave { transition: stroke-dashoffset 2.4s var(--ease); stroke-dashoffset: 0; }
.js .chart.on .fill { transition: opacity 1.2s ease 1.4s; opacity: 1; }
.js .chart.on .story { transition: opacity .6s ease; opacity: 1; transition-delay: calc(.3s + var(--i) * 60ms); }
.js .chart.on .slot { transition: opacity .7s ease; opacity: 1; transition-delay: calc(1.6s + var(--i) * 220ms); }

/* ---------- private gateway ---------- */
.private .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.private .frame { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lift); background: #DDEFFC; }
.private .frame video, .private .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.private .lead { margin: 18px 0 0; }
.private p + p { margin-top: 12px; }
.private .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- plain pages (legal) ---------- */
.page { padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 9vw, 120px); }
.page .sheet { max-width: 920px; margin: 0 auto; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 64px); }
.page h1 { margin: 0 0 .5em; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 1.8em 0 .5em; }
.page ul { padding-left: 1.2em; max-width: var(--measure); }
.page address { font-style: normal; }
.page .updated { color: var(--muted); font-size: .9rem; margin-top: 2.6em; }
.page .alt-title { color: var(--muted); margin-top: -.6em; }
.page p a { display: inline-block; padding: 8px 0; margin: -8px 0; }

/* ---------- footer ---------- */
footer { padding: clamp(48px, 6vw, 72px) 0 32px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px var(--gutter); align-items: start; }
footer .about p { margin: 14px 0 0; max-width: 32em; font-size: .95rem; color: var(--muted); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; max-width: 540px; }
footer ul a { display: inline-block; padding: 10px 0; font-size: .95rem; color: var(--ink); text-decoration: none; }
footer ul a:hover { color: var(--accent); }
.closing { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.closing .motto { font: 500 .74rem/1.3 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; }
.closing .motto::before { content: ""; display: inline-block; width: 48px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 14px; }
.powered { display: inline-block; padding: 10px 0; margin: -10px 0; color: var(--navy); text-decoration-color: var(--accent-mid); }
.powered b { font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .diagram { gap: 44px; grid-template-columns: minmax(0, 1fr) 270px minmax(0, 1fr); }
  .pub .sub { display: none; }
  .net p { display: none; }
}
@media (max-width: 900px) {
  .diagram { grid-template-columns: minmax(0, 1fr); gap: 64px; max-width: 640px; }
  .diagram .wires { display: none; }
  .hub { width: min(320px, 78vw); justify-self: center; }
  .col.nets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col.nets .col-label { grid-column: 1 / -1; }
  .pub .sub, .net p { display: block; }
  .hub { margin-bottom: 30px; }
  .values .intro { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .private .wrap { grid-template-columns: minmax(0, 1fr); }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
  footer ul { justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .col.nets { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .steps ol { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .chart .hour { font-size: 22px; }
  .chart .slot text { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* Altersteilzeit landing: additions on top of the Horizon website kit (tokens/house.css, tokens/horizon.css,
   templates/web/horizon-site.css — concatenated before this file by site/build.py). */

.bar nav { display: flex; gap: 10px; }
@media (max-width: 480px) {
  .bar .brand { gap: 10px; }
  .bar .brand svg { width: 32px; height: 32px; }
  .bar .brand b { font-size: 1.02rem; letter-spacing: .05em; }
  .bar .pill { padding: 0 16px; }
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- hero signature: the road from the active to the passive phase ---------- */
.road { max-width: 1040px; margin: clamp(40px, 6vw, 72px) auto 0; padding: 0 var(--gutter); }
.road-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: clamp(18px, 3vw, 32px); }
.road-labels { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.road-labels .col-label { margin: 0 0 4px; }
.road-labels b { font: 700 clamp(1.02rem, 2vw, 1.35rem)/1.15 var(--font-display); color: var(--navy); }
.road-labels .r { text-align: right; }
.road-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(8px, 1.4vw, 16px); }
.road-bar .ph { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.road-bar i { font-style: normal; display: grid; place-items: center; height: clamp(42px, 5vw, 56px); border-radius: 12px;
  font: 700 clamp(.8rem, 1.3vw, .95rem)/1 var(--font-ui); white-space: nowrap; }
.road-bar i small { font: inherit; font-weight: 500; opacity: .82; margin-right: .3em; }
.road-bar .act i { color: #fff; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); box-shadow: 0 6px 14px rgba(31, 111, 235, .22); }
.road-bar .act i:nth-child(2) { background: linear-gradient(135deg, #1F5FD6, #1F82EE); }
.road-bar .act i:nth-child(3) { background: linear-gradient(135deg, #1F6FEB, #1F9BEA); }
.road-bar .act i:nth-child(4) { background: linear-gradient(135deg, #1F82EE, #22B4E8); }
.road-bar .pas i { color: var(--navy); background: linear-gradient(135deg, #E6FBF8, #DDF3FC); border: 1px solid #C4ECEE; }
.road-bar .sun { width: clamp(52px, 6.4vw, 76px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--paper);
  box-shadow: 0 0 0 6px rgba(91, 212, 253, .18), 0 0 44px rgba(34, 195, 232, .5); }
.road-bar .sun svg { width: 62%; height: auto; }
.road-note { margin: 18px auto 0; text-align: center; font-size: .9rem; color: var(--muted); max-width: none; }
@media (max-width: 720px) { .road-bar i small { display: none; } }
@media (max-width: 420px) { .road-bar { gap: 6px; } .road-bar .ph { gap: 4px; } .road-bar i { border-radius: 9px; } }

/* ---------- the two apps ---------- */
.apps h2, .shots h2, .faq h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0; }
.apps .intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.apps .intro p { margin: 0; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.app { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.app .shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0B1630; }
.app .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.app:hover .shot img { transform: scale(1.03); }
.app .body { padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; flex: 1; }
.app .kicker { margin: 0; font-size: .72rem; }
.app h3 { margin: 12px 0 10px; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.12 var(--font-name); letter-spacing: -.01em; }
.app p { margin: 0; }
.app .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.app .meta { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- screenshots ---------- */
.shots .intro { margin-bottom: clamp(24px, 3vw, 40px); }
.shots .intro p { margin: 14px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure { margin: 0; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery figure.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.gallery figure.big img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
@media (max-width: 1100px) { .gallery figure.big { grid-row: auto; display: block; } .gallery figure.big img { aspect-ratio: 16 / 10; } }   /* two columns: no neighbour sizes two rows, so the lead shot is one full-width row */
.gallery figcaption { padding: 14px 18px 18px; font-size: .92rem; color: var(--ink); }
.gallery figcaption b { display: block; margin-bottom: 2px; font: 700 1rem/1.25 var(--font-display); color: var(--navy); }

/* ---------- questions ---------- */
.faq .wrap { max-width: 920px; }
.faq h2 { margin-bottom: clamp(22px, 3vw, 34px); }
.faq details { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 0 22px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 60px; padding: 14px 0; font: 700 1.05rem/1.3 var(--font-display); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 500 1.5rem/1 var(--font-ui); color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

@media (max-width: 900px) {
  .apps .intro { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery figure.big { grid-column: auto; grid-row: auto; display: block; }
  .gallery figure.big img { aspect-ratio: 16 / 10; }
  .faq details { padding: 0 18px; }
}

/* horizon.css scopes `a` under .reg-horizon (0,1,0), which outranks the kit's `footer ul a` (0,0,3): restore the kit's intent */
.reg-horizon footer ul a { color: var(--ink); }
.reg-horizon footer ul a:hover { color: var(--accent); }

/* ---------- language menu (plain links to the seven home pages, no script) ---------- */
.bar nav { align-items: center; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow); color: var(--navy); font: 500 .95rem/1 var(--font-ui); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 18px; height: 18px; }
.langs summary b { font-weight: 700; letter-spacing: .08em; font-size: .85rem; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 196px; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); }
.langs li a { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--navy); text-decoration: none; font-size: .98rem; }
.langs li a:hover { background: var(--tint); color: var(--navy); }
.langs li a small { font-size: .72rem; letter-spacing: .12em; color: var(--muted); }
.langs li a[aria-current] { font-weight: 700; }
.langs li.dial { position: relative; margin-top: 9px; }
.langs li.dial::before { content: ''; position: absolute; left: 10px; right: 10px; top: -5px; border-top: 1px solid var(--line); }
.langs ul { max-height: min(72vh, 600px); overflow-y: auto; }   /* twelve entries: scroll on small screens */
.langs li a[aria-current] small { color: var(--accent); }
@media (max-width: 520px) { .bar .navcta { display: none; } }
html[lang="hi"] body.reg-horizon { line-height: 1.75; }
html[lang="hi"] * { letter-spacing: 0 !important; }
