/* Gravit Open Network — site styles. Original design from gravit.space (2026),
   extended with image cards, hover glow and inner pages. */

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

:root {
  --bg:        #020b1a;
  --bg2:       #040f22;
  --blue-glow: #0af;
  --text:      #e8f4ff;
  --muted:     rgba(200, 225, 255, 0.55);
  --card-bg:   rgba(4, 16, 38, 0.72);
  --card-border: rgba(100, 180, 255, 0.18);
  --font: 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

/* ─── BACKGROUND ─────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(0, 80, 180, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 52%, rgba(0, 130, 255, 0.18) 0%, transparent 60%),
    var(--bg);
}

/* ─── ORBITAL SVG BACKGROUND ─────────────────────── */
.orbital-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.orbital-bg svg {
  width: min(900px, 100vw);
  height: min(900px, 100vh);
  opacity: 0.38;
}

/* ─── LAYOUT WRAPPER ─────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER ─────────────────────────────────────── */
/* ─── PROPORTION SYSTEM ──────────────────────────────
   One grid: header and card row share max-width 1200 px + 32 px gutters,
   so the logo sits on the left edge of the first card and the menu ends on
   the right edge of the last card.
   One ratio: φ = 1.618.
     menu text      12 px
     wordmark       12 × φ  ≈ 19.4 px
     mark width     card width ÷ 3.6 (388 ÷ 3.6 ≈ 108 px; height 108 × 1.5 = 162 px)
     mark radius    card radius × 108/388 ≈ 6 px (the mark is the card, scaled)
   One line: wordmark and menu share a baseline slightly below the mark's centre. */
:root {
  --phi: 1.618;
  --menu-size: 12px;
  --word-size: calc(var(--menu-size) * var(--phi));
  --mark-w: 108px;
  --mark-h: 162px;
  --mark-radius: 6px;
  --line-offset: 16px;   /* wordmark + menu sit this much below the mark centre */
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: calc(1200px + 64px);
  margin: 0 auto;
  padding: 20px 32px 0;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--mark-w) / var(--phi) / var(--phi));   /* ≈ 41 px */
  margin-right: clamp(28px, 4.5vw, 72px);  /* clear space between logo and menu */
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* the mark: the original Gravit Open Network artwork, scaled down, without a frame */
.astra {
  width: var(--mark-w); height: var(--mark-h); flex: none; display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo-word {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--word-size);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateY(var(--line-offset));
  text-shadow: 0 0 16px rgba(60, 170, 255, 0.5);
  transition: text-shadow 0.3s ease;
}
.logo:hover .astra, .logo:focus-visible .astra {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 14px rgba(0, 150, 255, 0.35)); }
.logo:hover .logo-word, .logo:focus-visible .logo-word { text-shadow: 0 0 20px rgba(90, 190, 255, 0.9); }
@media (max-width: 900px) {
  :root { --mark-w: 72px; --mark-h: 108px; --menu-size: 11px; --line-offset: 8px; }
  header { padding: 16px 24px 0; }
}
@media (max-width: 640px) {
  :root { --mark-w: 58px; --mark-h: 87px; --line-offset: 0px; }
}
@media (prefers-reduced-motion: reduce) { .astra { transition: none; } .logo:hover .astra { transform: none; } }

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(14px, 1.6vw, 30px);
}

nav { transform: translateY(var(--line-offset)); }
nav a {
  font-size: var(--menu-size);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 225, 255, 0.70);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: #fff; }

/* ─── MAIN ───────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 32px 0;
}

/* ─── THREE CARDS ROW ────────────────────────────── */
.portal-row {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  align-items: start;
}

.card {
  position: relative;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, filter 0.26s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.card-inner {
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* side cards */
.card-side {
  padding-top: 48px;
}

/* center card — taller, slightly brighter */
.card-center {
  background: rgba(4, 18, 46, 0.80);
  border-color: rgba(130, 200, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(110, 190, 255, 0.18), 0 24px 70px rgba(0, 0, 0, 0.55);
  transform: scale(1.032) translateY(-6px);
  z-index: 3;
}

/* pill label */
.card-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(180, 220, 255, 0.70);
  border: 1px solid rgba(130, 190, 255, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.card-title {
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 16px;
}

.card-center .card-title {
  font-size: clamp(26px, 4vw, 52px);
}

.card-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(180, 215, 255, 0.55);
}

.card-center .card-sub {
  color: rgba(200, 230, 255, 0.65);
}

/* hover effects */
.portal-row:hover .card-side {
  filter: brightness(0.82) saturate(0.90);
  opacity: 0.88;
}

.card-center:hover {
  transform: scale(1.040) translateY(-8px);
  box-shadow: 0 0 0 1px rgba(140, 210, 255, 0.40), 0 36px 100px rgba(0, 0, 0, 0.65);
  filter: brightness(1.06);
}

/* override: when hovering center, keep sides dimmed but not too much */
.portal-row:hover .card-center {
  filter: none;
  opacity: 1;
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 32px 36px;
  margin-top: auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-socials a {
  color: rgba(180, 215, 255, 0.55);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-socials a:hover { color: #fff; }

.footer-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-origin {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Swiss flag inline */
.flag-ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #d52b1e;
  border-radius: 2px;
  position: relative;
}

.flag-ch::before, .flag-ch::after {
  content: "";
  position: absolute;
  background: #fff;
}

.flag-ch::before {
  width: 10px; height: 2px;
}

.flag-ch::after {
  width: 2px; height: 10px;
}

/* ─── HAMBURGER (mobile) ─────────────────────────── */
.menu-toggle { display: none; }
.hamburger { display: none; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {

  nav ul { gap: 20px; }
  nav a { font-size: 10px; letter-spacing: 0.12em; }

  .portal-row {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 480px;
    margin: 0 auto;
  }

  .card-center {
    transform: none;
    order: -1;
  }

  .portal-row:hover .card-side { filter: none; opacity: 1; }

  .card-side { padding-top: 0; }
}

@media (max-width: 640px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
  }

  nav ul { gap: 14px; flex-wrap: wrap; }
}



/* ─── IMAGE CARDS (artwork carries the title) ─────── */
.card-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.card.has-art .card-inner { padding: 0; }
.card.has-art { padding-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* soft light that sits behind the title area of the artwork */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 30% at 50% 45%, rgba(90, 190, 255, 0.55), transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

/* ─── HOVER: every card lifts and its title glows ──── */
.card:hover,
.card:focus-visible {
  transform: translateY(-10px);
  border-color: rgba(140, 210, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(140, 210, 255, 0.35),
    0 0 42px rgba(0, 150, 255, 0.35),
    0 30px 80px rgba(0, 0, 0, 0.6);
  outline: none;
}
.card-center:hover,
.card-center:focus-visible { transform: scale(1.040) translateY(-12px); }
.card:hover::after,
.card:focus-visible::after { opacity: 0.6; }
.card:hover .card-art,
.card:focus-visible .card-art {
  filter: brightness(1.14) saturate(1.12) drop-shadow(0 0 18px rgba(80, 180, 255, 0.55));
}
.card:hover .card-title,
.card:focus-visible .card-title {
  text-shadow: 0 0 18px rgba(90, 190, 255, 0.85), 0 0 42px rgba(0, 140, 255, 0.55);
}
/* the others step back a little (replaces the old side-only dimming) */
.portal-row:hover .card-side { filter: none; opacity: 1; }
.portal-row:hover .card:not(:hover) { filter: brightness(0.82) saturate(0.9); }

nav a[aria-current="page"] { color: #fff; }

/* ─── EQUAL CARDS (Open Network · Continuum · Quantum) ─ */
.portal-row.equal { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.portal-row.equal .card { padding-top: 0; }

/* tagline drawn as text where the artwork has none, matching the artwork lettering */
.card-overlay-sub {
  position: absolute;
  left: 0; right: 0;
  bottom: 16.5%;
  text-align: center;
  font-size: clamp(11px, 1.35vw, 17px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 12px rgba(40, 140, 255, 0.45);
  pointer-events: none;
  transition: text-shadow 0.3s ease;
}
.card:hover .card-overlay-sub,
.card:focus-visible .card-overlay-sub {
  text-shadow: 0 0 16px rgba(90, 190, 255, 0.9), 0 0 36px rgba(0, 140, 255, 0.6);
}

/* ─── INNER PAGES ──────────────────────────────────── */
.page-main { flex: 1; padding: 24px 32px 0; display: flex; justify-content: center; }
.content {
  width: 100%;
  max-width: 920px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 44px 48px 48px;
  line-height: 1.65;
}
.content .eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #4fc3f7; margin-bottom: 10px; }
.content h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin-bottom: 8px; }
.content .tagline { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.content h2 { font-size: 18px; margin: 32px 0 10px; color: #cfe8ff; }
.content p { color: rgba(225, 240, 255, 0.86); margin-bottom: 14px; }
.content a { color: #6fd0ff; }
.content ul { margin: 0 0 14px 20px; color: rgba(225, 240, 255, 0.86); }
.repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.repo {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--card-border); border-radius: 14px; padding: 16px 18px;
  background: rgba(2, 12, 30, 0.6);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.repo:hover, .repo:focus-visible {
  transform: translateY(-4px); border-color: rgba(140, 210, 255, 0.5);
  box-shadow: 0 0 28px rgba(0, 150, 255, 0.25); outline: none;
}
.repo-name { font-weight: 700; color: #fff; margin-bottom: 6px; word-break: break-word; }
.repo-desc { font-size: 13px; color: var(--muted); }
.repo-meta { font-size: 11px; color: rgba(160, 200, 240, 0.5); margin-top: 10px; letter-spacing: 0.04em; }
.note { font-size: 12px; color: var(--muted); border-left: 2px solid rgba(100, 180, 255, 0.35); padding-left: 12px; }

@media (max-width: 900px) {
  .portal-row.equal { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .card-overlay-sub { font-size: clamp(12px, 3.6vw, 17px); }
  .content { padding: 28px 22px 32px; }
  .card:hover, .card:focus-visible, .card-center:hover { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-art, .repo, .card::after { transition: none; }
  .card:hover, .card:focus-visible, .card-center:hover, .repo:hover { transform: none; }
}

/* ─── TYPE & GLOW SYSTEM (overrides everything above) ──────────────────────
   One scale, one tracking, one accent, two glows — on every page.
   Sizes:  label 12 · small 14 · body 17 · h3 / wordmark 19.4 (12×φ) · h2 24 · h1 ≤ 40
   Usability (WCAG 2.2): body ≥ 16 px, line length ≤ ~68 characters, visible
   keyboard focus, touch targets ≥ 44 px on phones, colour contrast ≥ 4.5 : 1. */
:root {
  --fs-label: 12px;
  --fs-small: 14px;
  --fs-body: 17px;
  --fs-h3: calc(12px * 1.618);
  --fs-h2: 24px;
  --fs-h1: clamp(30px, 3.4vw, 40px);
  --track-caps: 0.16em;
  --accent: #6fd0ff;
  --text: #e8f4ff;
  --text-body: rgba(225, 240, 255, 0.88);
  --glow: 0 0 16px rgba(60, 170, 255, 0.45);
  --glow-strong: 0 0 20px rgba(90, 190, 255, 0.85), 0 0 2px rgba(255, 255, 255, 0.6);
}

/* uppercase labels everywhere: menu, wordmark, eyebrow, taglines, card labels */
nav a, .content .eyebrow, .content .tagline, .card-label, .card-sub, .footer-links a {
  font-size: var(--fs-label);
  letter-spacing: var(--track-caps);
}
.logo-word { font-size: var(--fs-h3); letter-spacing: var(--track-caps); text-shadow: var(--glow); }
.logo:hover .logo-word, .logo:focus-visible .logo-word { text-shadow: var(--glow-strong); }

/* page text */
.content { font-size: var(--fs-body); line-height: 1.7; }
.content h1 { font-size: var(--fs-h1); letter-spacing: 0.01em; line-height: 1.12; text-shadow: var(--glow); }
.content h2 { font-size: var(--fs-h2); line-height: 1.25; letter-spacing: 0.01em; color: var(--text); margin: 36px 0 12px; }
.content p, .content ul, .content dl { max-width: 68ch; color: var(--text-body); }
.content .eyebrow { color: var(--accent); }
.content a { color: var(--accent); text-underline-offset: 3px; }
.repo-name { font-size: var(--fs-body); }
.repo-desc, .note, .footer-copy, .footer-origin { font-size: var(--fs-small); }
.repo-meta { font-size: var(--fs-label); letter-spacing: 0.04em; }

/* one glow language for interactive elements */
.card:hover .card-overlay-sub, .card:focus-visible .card-overlay-sub,
.card:hover .card-title, .card:focus-visible .card-title { text-shadow: var(--glow-strong); }
.card-overlay-sub { text-shadow: var(--glow); }

/* visible keyboard focus (WCAG 2.4.7) */
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.card:focus-visible, .repo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* touch targets on phones (WCAG 2.5.8) */
@media (max-width: 640px) {
  nav a { display: inline-block; padding: 12px 6px; }
  :root { --fs-body: 16px; }
}

/* inner pages sit on the same grid as the header and the card row */
.page-main { width: 100%; max-width: calc(1200px + 64px); margin: 0 auto; padding: 32px 32px 0; box-sizing: border-box; }
.content { max-width: none; }
@media (max-width: 900px) { .page-main { padding: 24px 24px 0; } }

/* ─── gravit.world additions ──────────────────────── */
header nav ul { flex-wrap: wrap; justify-content: flex-end; row-gap: 10px; }
.lang-switch { display: flex; gap: 10px; margin-left: 28px; font-size: 11px; letter-spacing: 0.14em; }
.lang-switch a { color: rgba(200, 225, 255, 0.55); text-decoration: none; text-transform: uppercase; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { color: #fff; }
.header-right { display: flex; align-items: center; }

.hero { text-align: center; max-width: 860px; margin: 40px auto 28px; padding: 0 16px; }
.hero h1 { font-size: clamp(30px, 5vw, 58px); letter-spacing: 0.04em; line-height: 1.08; margin-bottom: 14px;
  text-shadow: 0 0 28px rgba(60, 160, 255, 0.35); }
.hero .tagline { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.hero p { color: rgba(225, 240, 255, 0.86); line-height: 1.7; font-size: 16px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.tile { display: block; text-decoration: none; color: inherit; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 26px 24px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-8px); border-color: rgba(140, 210, 255, 0.55);
  box-shadow: 0 0 36px rgba(0, 150, 255, 0.3), 0 24px 60px rgba(0, 0, 0, 0.55); outline: none; }
.tile h2 { font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; transition: text-shadow 0.25s ease; }
.tile:hover h2, .tile:focus-visible h2 { text-shadow: 0 0 16px rgba(90, 190, 255, 0.85); }
.tile p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 16px; }
.person { text-align: center; border: 1px solid var(--card-border); border-radius: 16px; padding: 22px 16px; background: rgba(2, 12, 30, 0.6); }
.person img, .person .initials { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block;
  border: 1px solid rgba(140, 210, 255, 0.35); box-shadow: 0 0 24px rgba(0, 140, 255, 0.25); }
.person .initials { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: #bfe4ff;
  background: radial-gradient(circle at 50% 40%, rgba(40, 120, 220, 0.6), rgba(4, 16, 38, 0.9)); }
.person .name { font-weight: 700; color: #fff; }
.person .role { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

.entries { list-style: none; margin: 10px 0 0 !important; }
.entries li { border-left: 2px solid rgba(100, 180, 255, 0.35); padding: 4px 0 4px 14px; margin-bottom: 16px; }
.entries .date { font-size: 12px; letter-spacing: 0.08em; color: #4fc3f7; }
.entries .title { font-weight: 700; color: #fff; }
.statute h3 { font-size: 15px; margin: 22px 0 6px; color: #cfe8ff; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 8px 0 16px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { color: rgba(225, 240, 255, 0.9); }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 16px; }
.footer-links a { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(180, 215, 255, 0.55); text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 900px) {
  header { flex-wrap: wrap; gap: 12px; }
  .header-right { flex-wrap: wrap; gap: 10px; }
  .lang-switch { margin-left: 0; }
  .facts { grid-template-columns: 1fr; }
}

/* gravit.world header: menu + language switch share the wordmark's line */
.header-right { transform: translateY(var(--line-offset)); }
.header-right nav { transform: none; }
.lang-switch { margin-left: clamp(14px, 1.6vw, 30px); font-size: var(--fs-label); letter-spacing: var(--track-caps); }

/* gravit.world: language switch as a utility row above the menu (right-aligned),
   so the long German/French menu keeps one line next to the mark */
.header-right { flex-direction: column; align-items: flex-end; gap: 12px; transform: translateY(var(--line-offset)); }
.header-right .lang-switch { order: -1; margin-left: 0; }
header nav ul { flex-wrap: nowrap; gap: clamp(12px, 1.3vw, 24px); }
.logo { margin-right: clamp(20px, 3vw, 48px); }

/* home tiles: four in one row, exactly on the page grid */
.tiles { grid-template-columns: repeat(4, 1fr); max-width: none; padding: 0; }
@media (max-width: 1180px) {
  header nav ul { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-right { align-items: flex-start; transform: none; }
  .tiles { grid-template-columns: 1fr; }
}
footer .footer-links { transform: none; }
@media (max-width: 640px) {
  header nav ul { justify-content: flex-start; gap: 4px 14px; }
}

/* home: principle block (Verification), between intro and tiles */
.principle { margin: 0 0 28px; }
.principle h2 { margin-top: 0; }
.principle p, .principle blockquote { max-width: 640px; }
.principle-lead { font-size: var(--fs-h3); color: #fff; line-height: 1.5; }
.principle-truth { font-size: var(--fs-h3); font-weight: 700; color: #fff; text-shadow: 0 0 14px rgba(111, 208, 255, 0.35); }
.principle blockquote { margin: 20px 0; padding-left: 18px; border-left: 2px solid var(--accent, #6fd0ff);
  font-style: italic; color: rgba(225, 240, 255, 0.92); max-width: 68ch; }

/* ─── GRAVIT FAMILY (same strip on every Gravit site) ─── */
.family { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; margin: 0 0 18px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.family a { color: var(--muted); text-decoration: none; }
.family a:hover, .family a[aria-current] { color: #fff; }
.family-label { color: #4fc3f7; }
