/* Orchestrify holding page (orchestrify-site-tasks.md, WEB-01).
   Art direction "Night shift, morning report": the night floor is where the work happens, the paper
   band is what you read in the morning. Tokens are the ones in §4.1; contrast is checked there. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk-latin-wght.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Arabic faces carry only the Arabic range, so the English page never downloads them. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/ibm-plex-sans-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/fonts/ibm-plex-sans-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria-arabic-wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --night-0: #070b14;
  --night-1: #0d1424;
  --night-2: #111a2e;
  --rule-night: #1c2740;
  --edge-night: #5e6f92;
  --text-night: #ece6d8;
  --text-night-2: #a7b3c9;
  --label-night: #8c97ae;
  --brain: #2fd4e8;
  --you: #f0b429;

  --paper-0: #f2eee5;
  --paper-hi: #fbf9f4;
  --ink: #0b1220;
  --ink-2: #3d4658;
  --ink-muted: #5b6476;
  --rule-paper: #c9c1b0;

  --d-research: #7fd8c0;
  --d-build: #5adeb7;
  --d-quality: #eadc8f;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 16px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  color-scheme: dark;
}
:lang(ar) {
  --sans: "IBM Plex Sans Arabic", "Schibsted Grotesk", system-ui, sans-serif;
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--night-0);
  color: var(--text-night);
  font: 400 1.125rem/1.5 var(--sans);
  font-feature-settings: "ss01" 0;
}
:lang(ar) body, body:lang(ar) { line-height: 1.75; letter-spacing: 0; font-synthesis: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--brain); outline-offset: 3px; border-radius: 2px; }
bdi, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- the night floor ---------- */
.night {
  position: relative;
  background-color: var(--night-0);
  /* the same 2:1 grid the office stands on, barely there */
  background-image:
    repeating-linear-gradient(26.565deg, transparent 0 39px, rgba(140, 151, 174, .045) 39px 40px),
    repeating-linear-gradient(-26.565deg, transparent 0 39px, rgba(140, 151, 174, .045) 39px 40px);
}
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { font: 750 1.25rem/1 "Schibsted Grotesk", var(--sans); letter-spacing: -.01em; }
.lang {
  font: 500 .875rem/1 var(--mono);
  padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center;
  border: 1px solid var(--edge-night); border-radius: 2px; text-decoration: none; color: var(--text-night);
}
.lang:hover { border-color: var(--text-night-2); }
:lang(ar) .lang, .lang:lang(ar) { font: 600 1rem/1 "IBM Plex Sans Arabic", var(--sans); }

.hero {
  display: grid; gap: 40px;
  padding-block: 40px 64px;
}
.hud {
  margin: 0 0 20px;
  font: 500 .75rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--label-night);
}
.hud::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; border-radius: 50%; background: var(--you); vertical-align: 1px; }
:lang(ar) .hud { font: 600 .875rem/1.6 "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; text-transform: none; }

h1 {
  margin: 0 0 24px;
  font: 800 clamp(2.5rem, 6.2vw, 5.25rem)/1.03 var(--sans);
  letter-spacing: -.025em;
  max-width: 13ch;
  text-wrap: balance;
}
:lang(ar) h1 { font-family: var(--display); font-weight: 700; line-height: 1.3; letter-spacing: 0; max-width: 16ch; }
.lede { margin: 0 0 16px; max-width: 36em; color: var(--text-night-2); font-size: clamp(1.125rem, 1.6vw, 1.3rem); }
.you { color: var(--you); font-style: normal; font-weight: 600; }
.soon { margin: 28px 0 0; font: 500 .875rem/1.5 var(--mono); color: var(--label-night); }
:lang(ar) .soon { font: 400 1rem/1.7 var(--sans); }

/* ---------- the floor drawing ---------- */
.art { position: relative; margin: 0; align-self: center; }
.art svg { display: block; width: 100%; height: auto; }
.reg { position: absolute; width: 14px; height: 14px; border-color: var(--edge-night); border-style: solid; border-width: 0; }
.reg.a { inset-block-start: 0; inset-inline-start: 0; border-block-start-width: 1px; border-inline-start-width: 1px; }
.reg.b { inset-block-end: 28px; inset-inline-end: 0; border-block-end-width: 1px; border-inline-end-width: 1px; }
.fl-plate { fill: var(--night-1); stroke: var(--rule-night); stroke-width: 1; }
.fl-edge-r { fill: #0a1020; }
.fl-edge-l { fill: #080d19; }
.fl-grid { fill: none; stroke: #1a2540; stroke-width: .75; }
.bx-t { fill: #2a3754; }
.bx-l { fill: #1a2438; }
.bx-r { fill: #212d46; }
.mn .bx-t { fill: #3a4866; } .mn .bx-l, .mn .bx-r { fill: #161f33; }
.scr { fill: var(--d-build); opacity: .85; }
.desk-quality .scr { fill: var(--d-quality); }
.desk-research .scr { fill: var(--d-research); }
.route { fill: none; stroke: var(--brain); stroke-width: 1.25; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .7; }
.core-plinth { fill: var(--night-2); stroke: #24314d; stroke-width: 1; }
.core-ring { fill: none; stroke: var(--brain); stroke-width: 1; opacity: .45; }
.core-orb { fill: var(--brain); }
.core-hi { fill: #e8fbfe; opacity: .85; }
.chair .bx-t { fill: var(--you); } .chair .bx-l { fill: #b5841b; } .chair .bx-r { fill: #d29d22; }
.chair-tag line { stroke: var(--you); stroke-width: 1; }
.chair-tag text { fill: var(--you); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chair-tag text:lang(ar), :lang(ar) .chair-tag text { font: 600 13px "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; }

.core { transform-box: fill-box; transform-origin: 50% 60%; animation: breathe 4.8s var(--ease-out) infinite alternate; }
.route { animation: flow 2.4s linear infinite; }
.desk .scr { animation: type 3.2s steps(4) infinite; }
.desk-quality .scr { animation-delay: -1.1s; }
.desk-research .scr { animation-delay: -2.3s; }
.chair-tag { animation: wait 2.4s ease-in-out infinite; }
@keyframes breathe { from { transform: scale(1); opacity: .92; } to { transform: scale(1.07); opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes type { 0% { opacity: .85; } 50% { opacity: .55; } 100% { opacity: .85; } }
@keyframes wait { 50% { opacity: .55; } }

/* A pause that needs no script (WCAG 2.2.2): the checkbox is a sibling just before the drawing. */
.pause-in { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pause {
  position: absolute; inset-block-end: 0; inset-inline-end: 0; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding-inline: 4px; cursor: pointer;
  font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--label-night);
}
:lang(ar) .pause { font: 600 .875rem/1 "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; text-transform: none; }
.pause::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--edge-night); border-radius: 1px; }
.pause-in:checked + .pause::before { background: var(--label-night); }
.pause-in:focus-visible + .pause { outline: 2px solid var(--brain); outline-offset: 3px; border-radius: 2px; }
.pause-in:checked ~ svg * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .art svg * { animation: none !important; }
  .pause-in, .pause { display: none; }
}

/* ---------- the morning report ---------- */
.paper { flex: 1 0 auto; background: var(--paper-0); color: var(--ink); color-scheme: light; }
.paper a:focus-visible { outline-color: #0b6f7d; }
.report { display: grid; gap: 32px; padding-block: 56px; }
.report h2 {
  margin: 0 0 12px;
  font: 750 clamp(1.75rem, 3vw, 2.25rem)/1.15 var(--sans); letter-spacing: -.015em;
}
:lang(ar) .report h2 { font-family: var(--display); font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.report p { margin: 0; color: var(--ink-2); max-width: 34em; }

.receipt {
  position: relative; margin: 0;
  background: var(--paper-hi);
  padding: 28px 22px 24px;
  border-inline: 1px solid var(--rule-paper);
  max-width: 560px;
  font: 400 .9375rem/1.5 var(--mono);
}
/* perforated edges */
.receipt::before, .receipt::after {
  content: ""; position: absolute; inset-inline: -1px; height: 10px;
  background: radial-gradient(circle at 6px 50%, var(--paper-0) 4px, transparent 4.5px) 0 0 / 12px 10px repeat-x;
}
.receipt::before { top: -5px; }
.receipt::after { bottom: -5px; }
.receipt h3 { margin: 0 0 16px; font: 500 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
:lang(ar) .receipt h3 { font: 600 .875rem/1.6 "IBM Plex Sans Arabic", var(--sans); letter-spacing: 0; text-transform: none; }
.receipt dl { margin: 0; }
.receipt .row { display: flex; align-items: baseline; gap: 10px; padding-block: 8px; }
.receipt dt { flex: 0 1 auto; color: var(--ink-2); }
:lang(ar) .receipt dt { font: 400 1rem/1.7 var(--sans); }
.receipt .row::after { content: ""; flex: 1 1 24px; order: 1; border-block-end: 1px dotted var(--rule-paper); transform: translateY(-4px); }
.receipt dd { order: 2; margin: 0; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Arabic words in the receipt stay in the Arabic face; only the figures (in <bdi>) are mono. */
:lang(ar) .receipt dd { font: 600 1rem/1.7 var(--sans); }
:lang(ar) .receipt dd bdi { font-family: var(--mono); font-weight: 500; }
.receipt .total { border-block-start: 1px dashed var(--rule-paper); margin-block-start: 6px; padding-block-start: 14px; }
.receipt small { display: block; margin-block-start: 16px; color: var(--ink-muted); font-size: .8125rem; line-height: 1.5; }
:lang(ar) .receipt small { font: 400 .875rem/1.7 var(--sans); }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 20px 28px; border-block-start: 1px solid var(--rule-paper);
  font: 400 .8125rem/1.5 var(--mono); color: var(--ink-muted);
}
:lang(ar) .foot { font: 400 .875rem/1.7 var(--sans); }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; padding-block: 64px; }
.lost h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.lost p { color: var(--text-night-2); margin: 0 0 8px; }

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) {
  .hero { grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: 72px 96px; }
  .hero > .copy { grid-column: 1 / span 7; }
  .hero > .art { grid-column: 8 / span 5; }
  .report { grid-template-columns: repeat(12, 1fr); gap: 24px; padding-block: 80px; }
  .report > .say { grid-column: 1 / span 5; }
  .report > .receipt { grid-column: 7 / span 6; }
}
@media (prefers-contrast: more) {
  :root { --label-night: #b9c2d4; --text-night-2: #c9d1e0; --ink-muted: #3d4658; }
}
