/*
 * tomasvkapse.cz/whoweare — who we are; for now also the bare domain.
 *
 * Set in app-cermat's design: its tokens (app-cermat/styles/tokens.css, the
 * learner skin), its type and its watermark, the compass-and-protractor
 * rosette (app-cermat/components/Shell.js). Brass is not used here: on
 * cermat it means "costs money", and nothing is sold on this page.
 *
 * The page carries English and Czech side by side ([lang] on every text);
 * <html data-lang> says which one shows. Without JavaScript it is English.
 */

:root {
  /* ---- app-cermat tokens ---- */
  --ink: #1e2b38;
  --ink-soft: #45566a;
  --ink-faint: #7b8a99;
  --paper: #ffffff;
  --ground: #f5f7fa;
  --line: #d8dfe6;
  --line-soft: #e8edf2;
  --accent: #1273b8;
  --accent-ink: #0d5a91;
  --accent-bg: #eaf3fa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(30, 43, 56, 0.06), 0 4px 12px rgba(30, 43, 56, 0.05);
  --font: "Avenir Next", Seravek, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --watermark-opacity: 0.04;
  --tier-full: 1120px;

  /* ---- the landing page's own: the night the hero, mission and footer sit in ---- */
  --night: #0b1520;
  --night-2: #122336;
  --night-line: rgba(255, 255, 255, 0.09);
  --on-night: #edf3f9;
  --on-night-soft: #a8bccf;
  --glow: #4ea8ea;
  --glow-2: #8fcdf7;
  --shadow-lg: 0 2px 4px rgba(16, 30, 46, 0.05), 0 22px 48px -18px rgba(16, 30, 46, 0.22);
  --gutter: 20px;
  --bar: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf4;
    --ink-soft: #b3c2d0;
    --ink-faint: #8394a6;
    --paper: #121e2b;
    --ground: #0d1722;
    --line: #26374a;
    --line-soft: #1c2b3b;
    --accent: #4ea8ea;
    --accent-ink: #8fcdf7;
    --accent-bg: #14304a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 48px -18px rgba(0, 0, 0, 0.7);
    --watermark-opacity: 0.07;
  }
}

/* ------------------------------------------------------------------ base -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[data-lang="en"] [lang="cs"],
html[data-lang="cs"] [lang="en"] { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.ic {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}
.skip:focus { left: 8px; top: 8px; }

/* The learning watermark, as on cermat: pure chrome, quiet enough to be
   furniture. Behind everything, so cards and the dark bands cover it and it
   only shows on the open ground between them. */
.watermark {
  position: fixed;
  right: 2vw;
  bottom: 8vh;
  width: min(340px, 38vw);
  height: min(340px, 38vw);
  color: var(--ink);
  opacity: var(--watermark-opacity);
  pointer-events: none;
  z-index: -1;
}

/* ------------------------------------------------------------- the bar --- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--on-night);
  background: rgba(11, 21, 32, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--night-line);
}

.top__in {
  max-width: var(--tier-full);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--glow); }

.nav { display: none; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--on-night-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); text-decoration: none; }

.langs {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.langs__opt {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--on-night-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.langs__opt:hover { color: #fff; text-decoration: none; }
.langs__opt[aria-current="true"] { background: #fff; color: var(--night); }

@media (min-width: 900px) {
  .nav { display: flex; }
  .langs { margin-left: 10px; }
}

/* -------------------------------------------------------------- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: calc(-1 * var(--bar));
  padding-top: var(--bar);
  color: var(--on-night);
  background:
    radial-gradient(900px 560px at 80% 20%, rgba(18, 115, 184, 0.5), transparent 62%),
    radial-gradient(720px 480px at 4% 104%, rgba(78, 168, 234, 0.18), transparent 60%),
    linear-gradient(162deg, var(--night) 0%, var(--night-2) 58%, #0f2d49 100%);
}

/* the exam's squared paper, fading out towards the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 62% 38%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 62% 38%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero__in {
  position: relative;
  max-width: var(--tier-full);
  margin: 0 auto;
  padding: 64px var(--gutter) 156px;
  display: grid;
  align-items: center;
}

.hero__copy { position: relative; z-index: 1; }

@media (min-width: 980px) {
  .hero__in {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 32px;
    min-height: min(90vh, 860px);
    padding-top: 96px;
    padding-bottom: 196px;
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(143, 205, 247, 0.28);
  border-radius: 999px;
  background: rgba(78, 168, 234, 0.09);
  color: var(--glow-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.kicker i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--glow);
  animation: pulse 2.4s ease-out infinite;
}

.h1 {
  margin: 26px 0 0;
  font-weight: 700;
  font-size: clamp(2.3rem, 1.15rem + 4.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h1__brand {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(1.05rem, 0.92rem + 0.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--on-night-soft);
}
.h1__claim { display: block; }

.grad {
  background: linear-gradient(100deg, #ffffff 0%, var(--glow-2) 48%, var(--glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
  line-height: 1.65;
  color: var(--on-night-soft);
}

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #1d8ad6 0%, #1273b8 55%, #0d5a91 100%);
  box-shadow: 0 10px 26px -10px rgba(18, 115, 184, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 32px -10px rgba(29, 138, 214, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.btn--glass {
  color: var(--on-night);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.btn--glass:hover { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }

/* the rosette, drawn as the page opens */
.hero__art {
  position: absolute;
  top: 24px;
  right: -34vw;
  width: min(620px, 112vw);
  aspect-ratio: 1;
  color: var(--glow);
  opacity: 0.2;
  pointer-events: none;
}
@media (min-width: 640px) { .hero__art { right: -14vw; opacity: 0.28; } }
@media (min-width: 980px) {
  .hero__art {
    position: relative;
    top: auto; right: auto;
    width: 100%;
    max-width: 500px;
    justify-self: center;
    opacity: 1;
  }
}

.halo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 168, 234, 0.28) 0%, rgba(78, 168, 234, 0.08) 45%, transparent 70%);
  filter: blur(8px);
}

.rosette {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(78, 168, 234, 0.45));
}
.rosette .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(0.65, 0.05, 0.25, 1) forwards;
}
.rosette .d2 { animation-delay: 0.25s; }
.rosette .d3 { animation-delay: 0.55s; }
.rosette .d4 { animation-delay: 0.95s; animation-duration: 2.8s; }
.rosette .ticks {
  opacity: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 240s linear infinite reverse;
}
.rosette .spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 90s linear infinite;
}
.rosette .fade { opacity: 0; animation: appear 1.6s ease 1.4s forwards; }
.rosette .pins { opacity: 0; animation: appear 0.8s ease 2.6s forwards; }

/* three of the agents, floating around the drawing */
.chip {
  position: absolute;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--on-night);
  background: rgba(18, 35, 54, 0.62);
  border: 1px solid rgba(143, 205, 247, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: appear 0.9s ease forwards, float 7s ease-in-out infinite;
}
.chip .ic { width: 17px; height: 17px; color: var(--glow-2); }
.chip--a { top: 13%; left: -6%; animation-delay: 1.9s, 1.9s; }
.chip--b { top: 47%; right: -8%; animation-delay: 2.2s, 3.1s; }
.chip--c { bottom: 9%; left: 4%; animation-delay: 2.5s, 4.4s; }
@media (min-width: 980px) { .chip { display: inline-flex; } }

/* ------------------------------------------------------------- pillars -- */

.pillars {
  position: relative;
  z-index: 2;
  max-width: var(--tier-full);
  margin: -112px auto 0;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.pillar {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 24px 24px 26px;
  box-shadow: var(--shadow-lg);
}
.pillar__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-bg);
  margin-bottom: 16px;
}
.pillar__icon .ic { width: 22px; height: 22px; }
.pillar__title { margin: 0 0 6px; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.pillar p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }

/* ------------------------------------------------------------ sections -- */

.section {
  max-width: var(--tier-full);
  margin: 0 auto;
  padding: 88px var(--gutter);
}
@media (min-width: 980px) { .section { padding: 120px var(--gutter); } }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--night { color: var(--glow-2); }

.h2 {
  margin: 14px 0 0;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

.prose {
  margin-top: 22px;
  max-width: 38em;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1rem + 0.22vw, 1.15rem);
  line-height: 1.75;
}

.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: var(--accent-bg);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  position: relative;
  top: -0.12em;
}

/* who we are */
.who { display: grid; gap: 44px; }
@media (min-width: 980px) {
  .who { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 72px; }
}

.facts {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 24px;
}
.fact { border-top: 2px solid var(--line); padding-top: 12px; }
.fact dt {
  color: var(--ink-faint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fact dd { margin: 5px 0 0; font-weight: 600; color: var(--ink); line-height: 1.4; }

.quote {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  padding: 40px 36px 34px;
  border-radius: 22px;
  color: var(--on-night);
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(78, 168, 234, 0.32), transparent 62%),
    linear-gradient(160deg, var(--night-2) 0%, var(--night) 100%);
  box-shadow: var(--shadow-lg);
}
.quote__mark { width: 46px; height: 46px; color: var(--glow); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.quote blockquote { margin: 18px 0 0; }
.quote blockquote p {
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.7rem);
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.quote figcaption {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-night-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.quote figcaption::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--glow); }
.quote__wm {
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 280px; height: 280px;
  color: var(--glow);
  opacity: 0.16;
  z-index: -1;
}

/* the project: one orchestration over three kinds of agents */
.section--project { padding-top: 24px; }
@media (min-width: 980px) { .section--project { padding-top: 40px; } }

.orbit { margin: 64px 0 0; }

.hub { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hub__core {
  width: 104px; height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 32% 26%, #2b97e0 0%, #1273b8 52%, #0d5a91 100%);
  box-shadow:
    0 0 0 9px color-mix(in srgb, var(--accent) 13%, transparent),
    0 0 0 20px color-mix(in srgb, var(--accent) 6%, transparent),
    0 20px 44px -12px rgba(18, 115, 184, 0.6);
}
.hub__core svg { width: 66px; height: 66px; animation: spin 50s linear infinite; }
.hub__label { margin-top: 26px; font-weight: 700; font-size: 18.5px; letter-spacing: -0.01em; }
.hub__sub { margin-top: 2px; color: var(--ink-faint); font-size: 14.5px; }

.wires { display: none; width: 100%; height: 84px; color: var(--accent); }
.wires path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 7;
  opacity: 0.75;
  animation: flow 1.1s linear infinite;
}

.agents {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .wires { display: block; margin-top: 18px; }
  .agents { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

.agent {
  position: relative;
  padding: 26px 24px 26px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.agent::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: -1px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  opacity: 0.85;
}
.agent:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line-soft));
}
.agent__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-bg);
}
.agent__verb {
  position: absolute;
  top: 26px; right: 24px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.agent h3 { margin: 18px 0 6px; font-size: 18.5px; line-height: 1.3; letter-spacing: -0.01em; }
.agent p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }

/* ------------------------------------------------------------- mission -- */

.mission {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-night);
  background:
    radial-gradient(820px 460px at 88% 0%, rgba(18, 115, 184, 0.5), transparent 62%),
    radial-gradient(600px 400px at 0% 100%, rgba(78, 168, 234, 0.12), transparent 60%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
}
.mission__in {
  max-width: var(--tier-full);
  margin: 0 auto;
  padding: 104px var(--gutter);
}
@media (min-width: 980px) { .mission__in { padding: 136px var(--gutter); } }
.mission__text {
  margin-top: 22px;
  max-width: 28em;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.45rem);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.mission__text mark {
  color: #fff;
  background: linear-gradient(transparent 64%, rgba(78, 168, 234, 0.42) 64%);
  padding: 0 0.04em;
}
.mission__wm {
  position: absolute;
  z-index: -1;
  right: -140px;
  top: 50%;
  width: 600px; height: 600px;
  transform: translateY(-50%);
  color: var(--glow);
  opacity: 0.11;
  animation: spin 160s linear infinite;
}

/* ------------------------------------------------------------- contact -- */

.contact {
  display: grid;
  gap: 26px;
  align-items: center;
  padding: 32px 20px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr) auto; padding: 48px 56px; }
  .contact__mail { padding: 16px 24px; gap: 14px; }
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--accent-ink);
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: clamp(1.05rem, 0.9rem + 1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact__mail:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.contact__mail .ic { width: 26px; height: 26px; color: var(--accent); }

/* -------------------------------------------------------------- footer -- */

.foot { color: var(--on-night-soft); background: var(--night); }
.foot__in {
  max-width: var(--tier-full);
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) { .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; } }
.foot .brand { color: var(--on-night); }
.foot__brand p { margin-top: 14px; max-width: 22em; font-size: 15px; }
.foot__title {
  margin: 0 0 16px;
  color: var(--on-night);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.details {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 22px;
  font-size: 14.5px;
}
.details dt { color: var(--on-night-soft); }
.details dd { margin: 0; color: var(--on-night); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.foot a { color: var(--on-night); }
.foot a:hover { color: #fff; }
.foot__bottom {
  max-width: var(--tier-full);
  margin: 0 auto;
  padding: 20px var(--gutter) 32px;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
}

/* ------------------------------------------------------------- motion --- */

/* Below-the-fold blocks rise in as they are reached. site.js hides only what
   is not yet on screen, so without it (or before it runs) nothing is hidden. */
.reveal { transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-hidden { opacity: 0; transform: translateY(22px); }
.reveal.is-hidden.is-in { opacity: 1; transform: none; }
.agents .reveal:nth-child(2), .pillars .reveal:nth-child(2) { transition-delay: 0.08s; }
.agents .reveal:nth-child(3), .pillars .reveal:nth-child(3) { transition-delay: 0.16s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes appear { to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -10; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(78, 168, 234, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(78, 168, 234, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 168, 234, 0); }
}
.mission__wm { animation-name: spin-centered; }
@keyframes spin-centered { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .rosette .draw { stroke-dashoffset: 0; }
  .reveal.is-hidden { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- print ---- */

@media print {
  .top, .watermark, .hero__art, .ctas, .wires, .mission__wm, .quote__wm { display: none !important; }
  body, .hero, .mission, .quote, .foot, .pillar, .agent, .contact { background: none !important; color: #000 !important; box-shadow: none !important; }
  .hero { margin: 0; padding: 0; }
  .hero__in, .mission__in { padding: 24px 0; min-height: 0; }
  .lead, .details dt, .details dd, .foot a { color: #222 !important; }
  .grad { color: #000; background: none; }
  .pillars { margin: 0 auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
