/* ═══════════════════════════════════════════════════════════
   SIGIL — the company layer over the v4 system: the seal hero,
   the etymology after it, the mark in the header, the record on
   each service, the founder, the four ways to engage, and the
   legal line.
   ═══════════════════════════════════════════════════════════ */

/* Room to scroll the page off the footer, which waits under it. v4 gave it as
   a margin on .scroll; that margin collapses into the body and is lost when
   the page is shorter than the window (the body's min-height wins), so on a
   large display the footer could not be reached. Padding on the body stays. */
@media (min-width: 768px) {
  .scroll {
    margin-bottom: 0;
  }
  body:has(> .foot) {
    padding-bottom: 100dvh;
  }
}

/* ── Header: the mark and the name, where v4 kept its badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.badge .badge-mark {
  width: 22px;
  height: 36px;
}
.badge-word {
  font: 400 26px/1 var(--f-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ═══════════════════════════════════════════════════════════
   THE HERO — a dictionary page with the company seal pressed into
   it. The seal is printed by emboss.js in the plates' four inks;
   the first sense types itself in and turns over (site.js).
   ═══════════════════════════════════════════════════════════ */
.seal {
  position: relative;
  margin-top: var(--head-h);
  min-height: calc(100svh - var(--head-h));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 72px);
  padding: clamp(24px, 4vh, 56px) var(--gutter) 0;
  background: var(--bg);
  color: var(--text);
}

/* ── The words ── */
.seal-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  max-width: 660px;
  container-type: inline-size; /* the title is sized against it (cqi) */
}
.seal-title {
  --title: clamp(56px, 7.2vw, 124px);
  margin-top: 16px;
  font: 300 var(--title) / 0.86 var(--f-display);
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
}
/* The Greek runs wider: «Έμπειροι μηχανικοί» is about 5.9 times its size
   across, more than the column holds at the largest size, and it broke in
   two. Here the title stops growing where that line still fits whole. */
:root[data-lang="el"] .seal-title {
  font-size: min(var(--title), 16.5cqi);
}
.seal-entry {
  margin-top: clamp(22px, 3.4vh, 34px);
  padding-top: 16px;
  max-width: 56ch;
  border-top: 1px solid var(--hair);
}
.seal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: 15px;
  color: var(--fg);
}
.seal-head b {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.seal-head .ipa {
  font: 400 12px/1 var(--f-mono);
  color: var(--text-2);
}
.seal-head i {
  font: italic 400 17px/1 "EB Garamond", Georgia, serif;
  color: var(--text-2);
}
.seal-sense {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  gap: 6px;
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--text);
  text-wrap: pretty;
}
.seal-n {
  font-weight: 600;
  color: var(--fg);
}
/* The sense reserves its own height so the page does not jump as it types. */
.seal-entry.lo .seal-sense p {
  min-height: calc(3 * 1.45em);
}
.seal-cur {
  display: inline-block;
  width: 0.5ch;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.14em;
  background: var(--fg);
  opacity: 0;
}
.seal-sense.typing .seal-cur {
  opacity: 1;
  animation: blink 1.1s step-end infinite;
}
.seal-usage {
  margin: 8px 0 0 calc(2ch + 6px);
  font: italic 400 17px/1.4 "EB Garamond", Georgia, serif;
  color: var(--text-2);
  text-wrap: pretty;
  transition: opacity 0.5s ease;
}
.seal-usage.out {
  opacity: 0;
  transition-duration: 0.18s;
}
.seal-cta {
  margin-top: clamp(22px, 3.4vh, 34px);
  justify-content: flex-start;
}
.seal-next {
  margin-left: 10px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hair);
}

/* ── The seal ── */
.seal-plate {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 66vh, 620px);
}
.seal-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  image-rendering: pixelated;
}
.js .seal-canvas {
  animation: seal-press 0.9s var(--ease) both;
}
@keyframes seal-press {
  from {
    transform: scale(1.045) translateY(-1.5%);
  }
}
.seal-cap {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 700 8.5px/1 var(--f-ui);
  font-stretch: 125%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ── The schools, set like a dictionary's guide words ── */
.seal-index {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: clamp(18px, 3vh, 32px) 0 clamp(18px, 3.4vh, 34px);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--hair);
}
.seal-index li + li {
  border-left: 1px solid var(--hair);
}
.seal-index a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px 4px;
  font: 500 12.5px/1.1 var(--f-ui);
  font-stretch: 84%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg);
  transition: background-color 0.15s;
}
.seal-index li:first-child a {
  padding-left: 0;
}
.seal-index a:hover {
  background: var(--row-hover);
}
.seal-index-n {
  font: 400 10px/1 var(--f-mono);
  letter-spacing: 0;
  color: var(--text-2);
}

@media (min-width: 768px) {
  .seal {
    height: calc(100svh - var(--head-h));
    min-height: 640px;
    max-height: 1040px;
  }
}

/* ── Smaller screens: the seal above the words ── */
@media (max-width: 1100px) {
  .seal-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .seal-index li:nth-child(5) {
    border-left: 0;
  }
  .seal-index li:nth-child(5) a {
    padding-left: 0;
  }
  .seal-index li:nth-child(n + 5) {
    border-top: 1px solid var(--hair);
  }
}
@media (max-width: 767px) {
  .seal {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    padding-top: 20px;
  }
  .seal-plate {
    grid-row: 1;
    grid-column: 1;
    width: min(76vw, 42svh, 360px);
  }
  .seal-copy {
    grid-row: 2;
    margin-top: 18px;
  }
  .seal-title {
    --title: clamp(46px, 13vw, 76px);
  }
  .seal-sense {
    font-size: 15.5px;
  }
  .seal-next {
    margin: 10px 0 0;
  }
  .seal-index {
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seal-index li:nth-child(odd) {
    border-left: 0;
  }
  .seal-index li:nth-child(odd) a {
    padding-left: 0;
  }
  .seal-index li:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
  .seal-index a {
    padding-bottom: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
   THE ETYMOLOGY — the rest of the entry, after the hero: the
   command bar, the two Greek halves, the link and the lens.
   ═══════════════════════════════════════════════════════════ */
.hero.define {
  padding-top: var(--sec-v);
}
/* The two halves stay on one line at any width: they are sized from the
   box's own width (cqi), with room to spare, and stop growing at 128px. */
.etym {
  width: min(100%, 900px);
  margin-top: clamp(40px, 5.4vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  container-type: inline-size;
}
.etym-words {
  margin-top: clamp(14px, 2vw, 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: clamp(14px, 3vw, 40px);
  column-gap: clamp(14px, 4.4cqi, 40px);
  color: var(--fg);
}
.etym-w {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.etym-w i {
  font: italic 400 clamp(40px, 7.4vw, 128px) / 1.18 "EB Garamond", Georgia, serif;
  font-size: clamp(40px, 15cqi, 128px);
}
/* The gloss is as wide as its word and no wider: on a narrow screen it
   wraps under the word rather than pushing the row apart. */
.etym-w small {
  width: 0;
  min-width: 100%;
  margin-top: 4px;
  font: 400 12px/1.35 var(--f-mono);
  color: var(--text-2);
  text-align: center;
}
.etym-w small span + span::before {
  content: "· ";
}
/* Narrow, each gloss takes two lines: the source, then the sense. */
@container (max-width: 560px) {
  .etym-w small span {
    display: block;
  }
  .etym-w small span + span::before {
    content: none;
  }
}
.etym-plus {
  font: 300 clamp(28px, 3.8vw, 64px) / 1 var(--f-display);
  font-size: clamp(28px, 7.4cqi, 64px);
  opacity: 0.45;
}

/* The goo: techno and mancer condense into being, a letter at a time, the
   first time they are seen. Each letter starts as a blur; the #goo filter
   cuts the blur at a hard edge, so the letters come up as drops that run
   together and set into type. Once they have, the filter comes off. */
.goo-wait .goo-l {
  opacity: 0;
}
.goo-run [data-goo] {
  filter: url(#goo);
}
.goo-run .goo-l {
  animation: goo-in 1.25s cubic-bezier(0.25, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--k) * 55ms);
}
@keyframes goo-in {
  0% {
    opacity: 0;
    filter: blur(22px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}
.etym-text {
  margin-top: clamp(22px, 3vw, 32px);
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}
.etym-text i {
  font: italic 400 17px/1 "EB Garamond", Georgia, serif;
}
.etym-text .nw {
  white-space: nowrap;
}

/* ── The band: on a large display the plate keeps the band's full width. v4
   sized it by aspect ratio under a max-height, which narrowed it and left the
   dial hanging to the left. ── */
@media (min-width: 768px) {
  .hero-band .plate {
    aspect-ratio: auto;
    height: min(calc((100vw - 2 * var(--inset) - 2 * var(--fw)) / 1.95), 80vh, 820px);
  }
}
/* The name and its line stand over the plate, the numbers under it. The plate
   sits inside the band now, so its corners are square, and the plate's edge
   does the work of the rule the numbers had over them. */
.hero-band .plate {
  border-radius: 0;
}
.band-head .band-fit {
  padding-bottom: clamp(26px, 3.6vw, 44px);
}
.band-foot .stats {
  border-top: 0;
}

/* ── Services: what we do, and the record behind it ── */
.school-proof {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.school-proof .label {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
}
/* Where the record names Frontis, the name links to its page (/frontis/). */
.school-proof a,
a.cred-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hair);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.band a.cred-name {
  text-decoration-color: var(--band-hair);
}
.school-proof a:hover,
a.cred-name:hover {
  text-decoration-color: currentColor;
  transition-duration: 0s;
}
.school-proof strong {
  color: var(--text);
}

/* ── The schools: eight seals in two rows, each over its school's entry,
   built by eight familiars (site.js). Each familiar is an arrow with its name
   on a tag, in an ink of its own; it drags a box with corner handles and a
   size tag over each piece it builds. A seal stands as its outline until its
   familiar strikes it. ── */
:root {
  --fam-1: #0000f2;
  --fam-2: #d400c4;
  --fam-3: #008a9c;
  --fam-4: #6a52ff;
  --fam-5: #a86f00;
  --fam-6: #0b8a57;
  --fam-7: #d63f72;
  --fam-8: #2f62ff;
}
:root[data-theme="dark"] {
  --fam-1: #8c8cff;
  --fam-2: #ff52ef;
  --fam-3: #19dcea;
  --fam-4: #b6a6ff;
  --fam-5: #ffc247;
  --fam-6: #3ddc97;
  --fam-7: #ff7aa8;
  --fam-8: #7aa2ff;
}
/* A familiar may circle out past the edge of a narrow screen: cut off there,
   never widening the page. */
.sec-schools {
  overflow-x: clip;
}
.sec-schools .wrap {
  position: relative;
}
.schools-grid {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--hair);
}
.school-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border-top: 1px solid var(--hair);
}
.school-card + .school-card {
  border-left: 1px solid var(--hair);
}
.school-card:nth-child(4n + 1) {
  border-left: 0;
}
.school-num {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-2);
}
.school-num > span:first-child {
  font: italic 400 22px/1 "EB Garamond", Georgia, serif;
  color: var(--fg);
}
.school-card .school-name {
  margin-top: 14px;
}
.school-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* The seal: its outline, and the struck seal over it. */
.school-seal {
  position: relative;
  width: min(100%, 210px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
}
.school-plate {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity 0.35s;
}
.school-card.active .school-plate {
  opacity: 1;
}
.school-prim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--fg);
  transition: opacity 0.45s;
}
.school-card.active .school-prim {
  opacity: 0;
}
.prim-line,
.prim-track {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.prim-line {
  opacity: 0.5;
  transition: opacity 0.3s;
}
.prim-track {
  stroke-dasharray: 1 5;
  opacity: 0.32;
}
.prim-glyph {
  opacity: 0.7;
}
.prim-glyph * {
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.school-card:hover .prim-line {
  opacity: 0.75;
}

/* Waiting to be built: gone at once, never faded out, and waiting in its own
   place, so the box a familiar drags over it is where the piece will be; it
   rises into that place only as it is built. Without the script, nothing waits. */
.is-summoning .ly {
  opacity: 0;
}
.is-summoning .ly.on {
  opacity: 1;
  animation: ly-in 0.65s var(--ease) both;
}
.is-summoning .ly-type.on {
  animation:
    ly-type 0.85s steps(22, end) both,
    ly-in 0.65s var(--ease) both;
}
@keyframes ly-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}
@keyframes ly-type {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 -2% 0 0);
  }
}
/* Built, the outline draws itself in, the glyph and the legend's track after it. */
.is-summoning .ly-draw .prim-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.is-summoning .ly-draw.on .prim-line {
  stroke-dashoffset: 0;
  transition:
    stroke-dashoffset 1.3s var(--ease),
    opacity 0.3s;
}
.is-summoning .ly-draw .prim-glyph,
.is-summoning .ly-draw .prim-track {
  opacity: 0;
}
.is-summoning .ly-draw.on .prim-glyph {
  opacity: 0.7;
  transition: opacity 0.6s 0.5s;
}
.is-summoning .ly-draw.on .prim-track {
  opacity: 0.32;
  transition: opacity 0.6s 0.7s;
}

/* The stage over the section: the portal, the familiars, their boxes. */
.fam-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.fam-portal {
  position: absolute;
  left: 0;
  top: 0;
  width: 190px;
  height: 190px;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity 0.4s;
}
.fam {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  scale: 0.2;
  transform-origin: 0 0;
  transition:
    opacity 0.3s,
    scale 0.45s var(--ease);
  will-change: transform;
}
.fam.out {
  opacity: 1;
  scale: 1;
}
.fam svg {
  display: block;
  width: 18px;
  height: 22px;
  margin: -1px 0 0 -1px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 40, 0.25));
}
.fam path {
  fill: var(--c);
  stroke: var(--bg);
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.fam-tag {
  position: absolute;
  left: 15px;
  top: 19px;
  padding: 3px 7px 3px 6px;
  border-radius: 3px 9px 9px 9px;
  background: var(--c);
  color: #fff;
  font: 500 10px/1 var(--f-mono);
  white-space: nowrap;
}
.fam-sel {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  border: 1px solid var(--c);
  background: color-mix(in srgb, var(--c) 5%, transparent);
  transition: opacity 0.26s;
}
.fam-sel.off {
  opacity: 0;
}
.fam-sel .h {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--c);
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.2s;
}
.fam-sel.set .h {
  opacity: 1;
}
.fam-sel .h:nth-child(1) {
  left: -4px;
  top: -4px;
}
.fam-sel .h:nth-child(2) {
  right: -4px;
  top: -4px;
}
.fam-sel .h:nth-child(3) {
  left: -4px;
  bottom: -4px;
}
.fam-sel .h:nth-child(4) {
  right: -4px;
  bottom: -4px;
}
.fam-dim {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  translate: -50% 0;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--c);
  color: #fff;
  font: 500 9.5px/1 var(--f-mono);
  white-space: nowrap;
  transition: opacity 0.2s;
}
/* Channelling: the box over the seal's outline, its edge pulsing softly as it
   charges; struck, it keeps only its outline and handles. */
.fam-sel.struck {
  background: transparent;
}
.fam-sel.struck .fam-dim {
  opacity: 0;
}
.fam-sel.ch-pulse.charging {
  animation: ch-pulse 0.6s ease-in-out infinite;
}
.fam-sel.ch-pulse.charging .h {
  animation: ch-handle 0.6s ease-in-out infinite;
}
@keyframes ch-pulse {
  50% {
    border-color: color-mix(in srgb, var(--c) 25%, transparent);
    box-shadow:
      0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent),
      inset 0 0 22px color-mix(in srgb, var(--c) 10%, transparent);
  }
}
@keyframes ch-handle {
  50% {
    background: var(--c);
  }
}
@media (max-width: 1000px) {
  .schools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .school-card:nth-child(odd) {
    border-left: 0;
  }
  .school-card:nth-child(even) {
    border-left: 1px solid var(--hair);
  }
}
@media (max-width: 767px) {
  .fam-portal {
    width: 130px;
    height: 130px;
  }
}
@media (max-width: 560px) {
  .schools-grid {
    grid-template-columns: 1fr;
  }
  .school-card,
  .school-card:nth-child(even) {
    border-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .school-plate,
  .school-prim {
    transition: none;
  }
}

/* ── Guild: the founder, then the record ── */
/* "Now" sits level with its dot: the label's box is trimmed to its capitals,
   so centring the two lines up the dot with the letters, not the line box. */
.now {
  padding: 7px 9px;
}
.now > span {
  line-height: 1;
}
@supports (text-box: trim-both cap alphabetic) {
  .now > span {
    text-box: trim-both cap alphabetic;
  }
}
@supports not (text-box: trim-both cap alphabetic) {
  .now .dot {
    top: -1px;
  }
}
.founder {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 16px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--hair);
}
.founder-name {
  margin-top: 10px;
  font: 400 clamp(32px, 3.4vw, 46px) / 0.95 var(--f-display);
  text-transform: uppercase;
  color: var(--fg);
}
.founder-copy p {
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}
.founder-links {
  margin-top: 18px;
  justify-content: flex-start;
}
#sec-guild .ledger {
  margin-top: clamp(32px, 4vw, 48px);
}

/* ── Summon: four ways to engage ── */
.pacts {
  max-width: var(--col);
  margin: clamp(36px, 5vw, 56px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  text-align: left;
}
.pact {
  padding: 22px 24px 26px 0;
}
.pact + .pact {
  padding-left: 24px;
  border-left: 1px solid var(--hair);
}
.pact-n {
  font: 300 clamp(40px, 4.4vw, 58px) / 0.9 var(--f-display);
  color: var(--fg);
  opacity: 0.5;
}
.pact-h {
  margin-top: clamp(18px, 2.4vw, 30px);
  font: 400 clamp(24px, 2.2vw, 30px) / 1 var(--f-display);
  text-transform: uppercase;
  color: var(--fg);
}
.pact p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.52;
  color: var(--text);
  text-wrap: pretty;
}
.contact-links {
  margin-top: clamp(28px, 4vw, 40px);
}

/* ═══════════════════════════════════════════════════════════
   THE FOOTER MAP — the hills of Athens out of the plain, drawn by
   footmap.js on the footer's plate (footer study B4). The names are
   set in the HUD's type, each summit marked by a small lozenge, the
   mark's own shape, and come in once the plain is down; the readout
   follows the sight with its latitude and longitude.
   ═══════════════════════════════════════════════════════════ */
.contour-art canvas {
  image-rendering: auto;
}
/* The plate's HUD keeps all four corners, the scale bar and the north
   point at its foot, on a phone too (where the other HUDs drop one). */
.foot-art .hud .bl,
.foot-art .hud .br {
  display: block;
}
.contour-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.7s;
}
.contour-art:not(.is-drawn) .contour-labels {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .contour-labels {
    transition: none;
  }
}
.contour-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  /* The lozenge (6px wide) centred on the summit. */
  transform: translate(-3px, -50%);
  font: 700 8.5px/1 var(--f-ui);
  font-stretch: 125%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--band-fg);
}
.contour-label.flip {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 3px), -50%);
}
/* The summit: a small lozenge, the mark's own shape. */
.contour-label i {
  width: 6px;
  height: 9px;
  background: var(--band-fg);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.contour-label b {
  padding: 3px 5px;
  font-weight: 700;
  background: var(--band);
}
.contour-city {
  position: absolute;
  transform: translate(-50%, -50%);
  font: 300 clamp(28px, 3.4vw, 52px) / 1 var(--f-display);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--band-fg);
  opacity: 0.4;
}
.contour-read {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  padding: 5px 7px;
  pointer-events: none;
  font: 400 11px/1 var(--f-mono);
  color: var(--band-fg);
  background: var(--band);
  box-shadow: inset 0 0 0 1px var(--band-hair);
  opacity: 0;
  transition: opacity 0.2s;
}
.contour-read.on {
  opacity: 1;
}
.scalebar {
  display: inline-block;
  width: var(--bar, 60px);
  height: 5px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 1px solid currentColor;
  border-top: 0;
}

/* ═══════════════════════════════════════════════════════════
   SMALL SCREENS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .pacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pact:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .pact:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
}
@media (max-width: 820px) {
  .badge .badge-mark {
    width: 18px;
    height: 30px;
  }
  .badge-word {
    font-size: 22px;
  }
}
@media (max-width: 767px) {
  .founder {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .pacts {
    grid-template-columns: minmax(0, 1fr);
  }
  .pact,
  .pact + .pact {
    padding: 20px 0 22px;
    border-left: 0;
  }
  .pact + .pact {
    border-top: 1px solid var(--hair);
  }
}

/* ═══════════════════════════════════════════════════════════
   THE CURSOR — with a mouse, the pointer is the mark's lozenge, a
   small solid point with a rim, drawn by the browser so it never
   lags. A ring of the same shape follows a beat behind (cursor.js);
   over anything that acts the lozenge rounds into a circle. Over a
   map (data-cursor="scope") the point steps aside and the lozenge
   draws in to a dot on the pointer, where the map's grid lines
   meet. The ring takes its ink from the ground it is over: blue on
   paper, paper on the blue and on the plates. Text fields keep the
   text cursor; touch keeps the system's.
   ═══════════════════════════════════════════════════════════ */
:root {
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='18'%3E%3Cpath d='M7 3L10.6 9L7 15L3.4 9Z' fill='%230000f2' stroke='%23f2f2f2' stroke-width='1.5'/%3E%3C/svg%3E")
      7 9,
    auto;
}
:root[data-theme="dark"] {
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='18'%3E%3Cpath d='M7 3L10.6 9L7 15L3.4 9Z' fill='%23f2f2f2' stroke='%230d0d24' stroke-width='1.5'/%3E%3C/svg%3E")
      7 9,
    auto;
}
@media (hover: hover) and (pointer: fine) {
  .has-cur,
  .has-cur * {
    cursor: var(--cur);
  }
  .has-cur :is(input, textarea, [contenteditable]) {
    cursor: text;
  }
  .has-cur [data-cursor="scope"],
  .has-cur [data-cursor="scope"] * {
    cursor: none;
  }
}
.cursor-ring {
  --ci: var(--blue);
  --ch: rgba(242, 242, 242, 0.85);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  will-change: transform;
}
.cursor-ring.on {
  opacity: 1;
}
.cursor-ring.txt {
  opacity: 0;
}
.cursor-ring[data-ground="dark"] {
  --ci: #f2f2f2;
  --ch: rgba(0, 0, 48, 0.5);
}
.cursor-ring svg {
  display: block;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  overflow: visible;
  transition: transform 0.32s var(--ease);
}
.cursor-ring path {
  fill: none;
  stroke-miterlimit: 8;
}
.cursor-ring .halo {
  stroke: var(--ch);
  stroke-width: 14;
}
.cursor-ring .ink {
  stroke: var(--ci);
  stroke-width: 6;
}
/* Over a map the shape closes to a dot, its ink a little heavier. */
.cursor-ring.scope .ink {
  stroke-width: 9;
}
.cursor-ring.scope .halo {
  stroke-width: 17;
}
.cursor-ring.down svg {
  transform: scale(0.84);
}
@media (prefers-reduced-motion: reduce) {
  .cursor-ring svg {
    transition: none;
  }
}

/* ── Hovers: the mark in the header holds still ── */
.badge:hover {
  transform: none;
}

/* ── The shell's status: the dot sits on the middle of the capitals ── */
@supports (text-box: trim-both cap alphabetic) {
  .win-status span > span {
    text-box: trim-both cap alphabetic;
  }
}
@supports not (text-box: trim-both cap alphabetic) {
  .win-status .dot {
    top: -1px;
  }
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE — Greek and English. Big Shoulders and Archivo have no
   Greek, so a stack that starts with them sets a Greek word in Sofia
   Sans and the Latin letters and figures beside it in their own
   face, and a line that mixes the two (AI, IoT, 2026, EIP-7512)
   reads uneven. So a Greek page sets everything in the Sofia Sans
   faces, Latin and Greek alike: Extra Condensed for the display, the
   regular for the interface. The name, a mark, keeps its own face in
   either language. A Greek page waits (.i18n-wait, set by
   theme-init.js) until i18n.js has set it.
   ═══════════════════════════════════════════════════════════ */
:root {
  --f-display: "Big Shoulders Display", "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-ui: "Archivo", "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
}
:root[data-lang="el"] {
  --f-display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-ui: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
}
:root[data-lang="el"] .badge-word,
:root[data-lang="el"] .band-fit {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
}
/* Sofia Sans sets its capitals about 0.08em higher in a line than Archivo
   does, which shows in a small tag as words sitting high. On a Greek page the
   tags and chips move that much padding from under the words to over them,
   and the switches, drawn without a box of their own, come down by as much. */
:root[data-lang="el"] .rtag {
  padding-block: calc(5px + 0.08em) calc(5px - 0.08em);
}
:root[data-lang="el"] .chip {
  padding-block: calc(9px + 0.08em) calc(9px - 0.08em);
}
:root[data-lang="el"] :is(.lens-btn, .lang-btn) {
  top: 0.08em;
}
.i18n-wait body {
  visibility: hidden;
}
/* The header's right side: the other sections, then the language switch,
   so the switch is in reach wherever the page is. Narrow, the sections go
   into the menu and the switch stands by the menu button. */
.head-r {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 32px);
  min-width: 0;
}
.head-r .nav-r {
  flex: 1;
}
/* EN | ΕΛ, as the Read as lens is drawn: the ink slides to the page's language. */
.head-lang {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: none;
  padding: 2px;
  border: 1px solid var(--hair);
  border-radius: 3px;
}
.head-lang::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  border-radius: 2px;
  background: var(--primary);
  transition: transform 0.45s var(--ease);
}
:root[data-lang="el"] .head-lang::before {
  transform: translateX(100%);
}
.lang-btn {
  position: relative;
  z-index: 1;
  min-width: 34px;
  padding: 8px 9px;
  font: 700 9.5px/1 var(--f-ui);
  font-stretch: 125%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.3s;
}
.lang-btn[aria-pressed="true"] {
  color: var(--on-primary);
}
@media (max-width: 820px) {
  .head-r {
    grid-column: 2;
    margin-right: 10px;
  }
}
/* A notice that carries an address to copy by hand (site.js toast(…, true)). */
.toast.raw {
  max-width: calc(100vw - 32px);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.lang-link {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.lang-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:root[data-lang="el"] .lang-link[data-set-lang="el"],
:root:not([data-lang="el"]) .lang-link[data-set-lang="en"] {
  display: none;
}
