/* Hallmark · shape: Manifesto, one screen · genre: atmospheric · theme: Midnight (deal 1/3, seed waiting-tool-turns-typed-0daf·bc0c2cba·2026-11-28·r0) · redesign: full · copy: verbatim
 * hero: Corridor (/), Corridor (/404), Banner (/imprint), Banner (/privacy) · nav: none · footer: mast · imagery: none · signature: the product's own channel split, run on the headline
 * axes: dark/grotesk-sans/cool · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V3 · weakest: V, the Corridor is a centred column like many launch pages; the one-line 150px channel-split headline and the glitch-only motion are what no other page has */
/* Hallmark · waive 78 · the imprint and privacy pages are long legal documents, so their section heads stay subheads of one text at the title size · the reading pages keep the page's one display head for the hero only */
/* Hallmark · waive 77 · the Imprint and Privacy pages of Glitch Animator are legal documents with one body section of continuous text, and the start page is one screen, all served by this stylesheet · the content is kept as found and nothing is added to reach six sections */

/*
 * Glitch Animator coming-soon page. One stylesheet, no JavaScript, no third-party requests (the CSP allows none).
 * Ground and signal are Hallmark's Midnight, the brand stays: logo, glitch cyan and magenta from app/assets/css/main.css,
 * Chakra Petch Bold self-hosted (OFL, fonts/OFL.txt) as the display face. Body text is the system UI stack: one web font.
 * Everything that moves sits behind prefers-reduced-motion.
 */

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ChakraPetch-Bold.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5625rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem);
  --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem);
  --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem);
  --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --text-headline: clamp(3.25rem, 12.5vw, 11.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --color-error: oklch(72% 0.15 27);
  --color-success: oklch(76% 0.13 150);
  --container: 1440px;
  --gutter: 64px;
  --gap-columns: 32px;
  --section-gap-s: 120px;
  --section-gap: 144px;
  --section-gap-l: 176px;
  --color-paper: oklch(14% 0.048 264);
  --color-paper-2: oklch(18.5% 0.052 264);
  --color-paper-3: oklch(23% 0.055 264);
  --color-ink: oklch(95% 0.016 250);
  --color-ink-2: oklch(88% 0.05 245);
  --color-muted: oklch(73% 0.04 256);
  --color-rule: oklch(29% 0.058 264);
  --color-rule-2: oklch(40% 0.06 262);
  --color-accent: oklch(79.7% 0.134 212);
  --color-accent-2: oklch(58% 0.1 236);
  --color-accent-ink: oklch(16% 0.05 264);
  --color-focus: oklch(74.8% 0.207 322);
  --color-glitch-cyan: oklch(79.7% 0.134 212);
  --color-glitch-magenta: oklch(74.8% 0.207 322);
  --font-display: 'Chakra Petch', ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-card: 0;
  --rule-hair: 1px;
  --shadow-card: 0 24px 48px -24px oklch(6% 0.04 264 / 0.7);
  --tracking-display: -0.01em;
  --display-weight: 700;
}

@media (max-width: 60rem) {
  :root {
    --gutter: 24px;
  }
}

@media (max-width: 40rem) {
  :root {
    --gutter: 16px;
  }
}

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

html,
body {
  overflow-x: clip;
}

html {
  background: var(--color-paper);
  scrollbar-color: var(--color-muted) var(--color-paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  flex-direction: column;
  background: var(--color-paper);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in oklab, var(--color-accent) 22%, transparent);
  color: var(--color-ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-synthesis: none;
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  min-width: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration-color: color-mix(in oklab, var(--color-accent) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-short) var(--ease-out);
}

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

a:active {
  color: var(--color-ink-2);
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── The Corridor: one centred column on the ground, the headline larger than the column ─────────────────────── */

.stage {
  display: flex;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  flex: 1;
  flex-direction: column;
}

.hero {
  display: flex;
  padding: var(--space-xl) var(--gutter) var(--space-3xl);
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: clamp(var(--space-xl), 9vh, var(--space-3xl));
}

.mark {
  width: 3rem;
  height: 3rem;
  flex: none;
}

.wordmark {
  max-width: none;
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1;
}

/* ── Wordmark: three stacked copies, cyan and magenta slip sideways ──────────────────────────────────────────── */

.wm {
  position: relative;
  display: block;
  width: min(100%, 20rem);
  isolation: isolate;
}

.wm-layer {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wm-cyan,
.wm-magenta {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}

.wm-base {
  color: var(--color-ink);
}

.wm-cyan {
  color: var(--color-glitch-cyan);
  transform: translateX(-1.2%);
  animation: wm-cyan 7s steps(1, end) infinite;
}

.wm-magenta {
  color: var(--color-glitch-magenta);
  transform: translateX(1.2%);
  animation: wm-magenta 7s steps(1, end) infinite;
}

/* ── Headline: real text plus two coloured copies (data-text), idle most of the cycle ────────────────────────── */

.soon {
  max-width: none;
  margin: 0 0 var(--space-lg);
  font-size: var(--text-headline);
  line-height: 0.98;
  text-transform: uppercase;
}

.glitch {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--color-ink);
  isolation: isolate;
}

.glitch::before,
.glitch::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  content: attr(data-text) / '';
  mix-blend-mode: screen;
  pointer-events: none;
}

.glitch::before {
  color: var(--color-glitch-cyan);
  transform: translateX(-0.03em);
  animation: slice-cyan 7s steps(1, end) infinite;
}

.glitch::after {
  color: var(--color-glitch-magenta);
  transform: translateX(0.03em);
  animation: slice-magenta 7s steps(1, end) infinite;
}

/* A burst of 3 or 4 frames in a 7 s cycle; the rest of the time the channels sit a hair apart. */
@keyframes slice-cyan {
  0%,
  88%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(-0.03em);
  }
  89% {
    clip-path: inset(12% 0 64% 0);
    transform: translateX(-0.09em);
  }
  91% {
    clip-path: inset(52% 0 18% 0);
    transform: translateX(0.06em);
  }
  93% {
    clip-path: inset(78% 0 2% 0);
    transform: translateX(-0.12em);
  }
  95% {
    clip-path: inset(0 0 0 0);
    transform: translateX(-0.05em);
  }
}

@keyframes slice-magenta {
  0%,
  89%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0.03em);
  }
  90% {
    clip-path: inset(60% 0 14% 0);
    transform: translateX(0.1em);
  }
  92% {
    clip-path: inset(8% 0 70% 0);
    transform: translateX(-0.07em);
  }
  94% {
    clip-path: inset(34% 0 40% 0);
    transform: translateX(0.12em);
  }
  96% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0.04em);
  }
}

@keyframes wm-cyan {
  0%,
  86%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(-1.2%);
  }
  87% {
    clip-path: inset(20% 0 40% 0);
    transform: translateX(-3.5%);
  }
  90% {
    clip-path: inset(60% 0 5% 0);
    transform: translateX(2%);
  }
  93% {
    clip-path: inset(0 0 0 0);
    transform: translateX(-2%);
  }
}

@keyframes wm-magenta {
  0%,
  87%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(1.2%);
  }
  88% {
    clip-path: inset(50% 0 10% 0);
    transform: translateX(3.5%);
  }
  91% {
    clip-path: inset(5% 0 62% 0);
    transform: translateX(-2%);
  }
  94% {
    clip-path: inset(0 0 0 0);
    transform: translateX(2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-cyan,
  .wm-magenta,
  .glitch::before,
  .glitch::after {
    animation: none;
  }

  a {
    transition: none;
  }
}

/* ── Copy ────────────────────────────────────────────────────────────────────────────────────────────────────── */

.lead {
  max-width: 44ch;
  margin: 0 0 var(--space-lg);
  font-size: var(--text-lead);
  line-height: 1.45;
  color: var(--color-ink-2);
  text-wrap: balance;
}

.formats {
  display: flex;
  margin: 0 0 var(--space-xl);
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  border: var(--rule-hair) solid var(--color-rule-2);
}

.formats li {
  padding: var(--space-xs) var(--space-lg);
  color: var(--color-ink);
  font-size: var(--text-md);
  font-weight: 500;
}

.formats li + li {
  border-left: var(--rule-hair) solid var(--color-rule-2);
}

.sister {
  width: 100%;
  max-width: 54ch;
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--color-paper-2);
  box-shadow: var(--shadow-card);
}

.sister p {
  text-wrap: balance;
}

.sister h2 {
  max-width: none;
  margin: 0 0 var(--space-2xs);
  color: var(--color-ink);
  font-size: var(--text-title);
  line-height: 1.2;
}

/* ── Footer: a mast, the links left and the line right, above a hairline ─────────────────────────────────────── */

.foot {
  display: flex;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-lg) var(--gutter);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-lg);
  border-top: var(--rule-hair) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.foot nav {
  display: flex;
  gap: var(--space-lg);
}

/* ── Legal pages (imprint, privacy): the same ground, a reading column ───────────────────────────────────────── */

.page {
  width: 100%;
  max-width: calc(46rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--space-lg) var(--gutter) var(--section-gap-s);
  flex: 1;
}

.doc-head {
  padding-bottom: var(--space-lg);
}

.home {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--display-weight);
  text-decoration: none;
}

.home:hover {
  color: var(--color-accent);
}

.home img {
  width: 2rem;
  height: 2rem;
}

.page h1 {
  max-width: none;
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
  font-size: var(--text-section);
}

.page h2 {
  max-width: none;
  margin: var(--space-xl) 0 var(--space-xs);
  color: var(--color-ink);
  font-size: var(--text-title);
  line-height: 1.2;
}

.page p,
.page ul,
.page address {
  max-width: 65ch;
  margin: 0 0 var(--space-md);
}

.page address {
  font-style: normal;
}

.page ul {
  padding-left: var(--space-lg);
}

.page strong {
  color: var(--color-ink);
}

.page .jump {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.page hr {
  margin: var(--space-2xl) 0;
  border: 0;
  border-top: var(--rule-hair) solid var(--color-rule);
}

/* ── 404: the headline alone, set larger ─────────────────────────────────────────────────────────────────────── */

.lost .soon {
  font-size: clamp(6rem, 30vw, 18rem);
}
