/* ESAF coming-soon page. One Ink screen in the brand system of the main site (docs/BRIEF.md
   section 6). No JavaScript; the strict Content-Security-Policy in .htaccess allows only this file,
   the fonts and the images, all from this site. */

/* ESAF brand tokens: exact block from docs/BRIEF.md section 6. Do not edit values. */
:root {
  --esaf-ink: #0B1F3A;        /* primary: logo, headings, hero and CTA bands */
  --esaf-core: #12B5A6;       /* accent: core node, buttons; one or two moments per view */
  --esaf-mist: #E9EDF2;       /* light panels */
  --esaf-slate: #3D4B5C;      /* secondary text */
  --esaf-core-deep: #0B7A70;  /* teal text and links on white */
  --esaf-line: #C9D1DB;       /* hairlines and dividers only */
  --esaf-white: #FFFFFF;

  --surface: var(--esaf-white);      --surface-muted: var(--esaf-mist);
  --block-primary: var(--esaf-ink);  --border: var(--esaf-line);
  --text: var(--esaf-ink);           --text-muted: var(--esaf-slate);
  --accent: var(--esaf-core);        --accent-text: var(--esaf-core-deep);
  --on-accent: var(--esaf-ink);

  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", Arial, sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;  --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --radius-module: 10px; /* for a 48px tile: always 5/24 of the tile's side */
}

/* Self-hosted latin subsets (OFL), the same files as the main site. Only Sora 600 is preloaded. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root { --gutter: var(--space-4); }
@media (min-width: 600px) { :root { --gutter: var(--space-8); } }

/* All text on Ink is white; there is no muted text colour on Ink. */
body {
  background: var(--block-primary); color: var(--esaf-white);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.625;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
/* The page clips the core graphic where it's cropped off the right edge, so nothing scrolls sideways. */
.page { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
img, svg { display: block; max-width: 100%; }
.container { position: relative; z-index: 1; width: 100%; max-width: calc(1216px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Logo: reversed on Ink. Compact (128px) on phones, horizontal (360px) from 600px. The padding and
   the gutter give it at least one module (24/88 of its height) of clear space on every side. */
.top { padding-block: var(--space-4); }
.top img { width: 128px; height: auto; }

/* Phones: the text starts below the core graphic, never behind it. */
main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding-block: 176px var(--space-12); }
.text { max-width: 40rem; }
.label { font: 500 0.6875rem/1rem var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; }
h1 {
  margin-top: var(--space-4);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 1.5rem + 3.2vw, 3.5rem);
  line-height: calc(1em + 4px); letter-spacing: -0.015em; text-wrap: balance;
}
.lead { margin-top: var(--space-6); max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; text-wrap: pretty; }

/* The five services, each with a small module marker (white on Ink, the reverse of the Ink markers on light grounds). */
.services {
  list-style: none; padding: 0; margin-top: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6);
  font: 500 0.875rem/1.25rem var(--font-display);
}
.services li { display: flex; align-items: center; gap: var(--space-2); }
.services li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 20.8333%; background: var(--esaf-white); }

.note { margin-top: var(--space-8); max-width: 36rem; text-wrap: pretty; }
.actions { margin-top: var(--space-6); }

/* White button with Ink text, as in the main site's hero: the core node stays the one teal moment. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--space-3) var(--space-6);
  font: 600 1rem/1.5rem var(--font-display);
  border-radius: var(--radius-md); background: var(--esaf-white); color: var(--esaf-ink); text-decoration: none;
  touch-action: manipulation;
}
.btn:hover { background: var(--surface-muted); }
/* Focus on Ink: 2px Core with an offset, so the ring shows around the white button. */
:focus-visible { outline: 2px solid var(--esaf-core); outline-offset: 3px; }

footer { padding-block: var(--space-6); font-size: 0.8125rem; line-height: 1.25rem; }

/* The core graphic: modules at 6% white, the core solid Core, its third column cropped off the
   right edge (offset = half a module = 12/88 of the width). Phones: below the logo, above the text. */
.core-graphic { --w: 144px; position: absolute; z-index: 0; width: var(--w); top: 88px; right: calc(var(--w) * -12 / 88); overflow: visible; }
.core-graphic .m { fill: var(--esaf-white); fill-opacity: 0.06; }
.core-graphic circle { fill: var(--esaf-core); }

@media (min-width: 600px) {
  .top { padding-block: var(--space-8); }
  .top img { width: 360px; }
  .core-graphic { top: 140px; }
}

/* Desktop: the text takes the left two-thirds; the graphic sits in the right third, vertically centred. */
@media (min-width: 900px) {
  main { padding-block: var(--space-16); }
  .text { max-width: none; width: 62%; }
  .core-graphic { --w: clamp(320px, 30vw, 440px); top: 50%; transform: translateY(-50%); }
}

/* The modules settle into place once on load (under 600ms). Off with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .core-graphic .m { transform-box: fill-box; animation: settle 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .core-graphic .m1 { animation-delay: 30ms; } .core-graphic .m2 { animation-delay: 60ms; } .core-graphic .m3 { animation-delay: 90ms; }
  .core-graphic .m4 { animation-delay: 120ms; } .core-graphic .m5 { animation-delay: 150ms; } .core-graphic .m6 { animation-delay: 180ms; }
}
@keyframes settle { from { opacity: 0; transform: translateY(6px); } }
