/* BlokFactory landing. Black bookends, Ivory sheets between them. Anton for the
   hero, the wordmark and the closing line; Inter for everything else; DM Mono only
   for data labels. One flat gold for the primary action and the critical path. */
:root {
  --bg: #000; --paper: #0D0D0D; --ink: #fff; --ink-2: #C2C2C2; --ink-3: #949494;
  --gold: #B85430; --gold-ink: #E0855E; --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.3);
  --bad: #FF7D8C; --ok: #63D6A8; --bar: #6F6F6F; --bar-done: #3A3A3A; --solid: #fff; --on-solid: #000;
  --display: "Anton", Impact, "Arial Narrow", sans-serif; --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif; --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --pad: clamp(20px, 4vw, 56px);
  color-scheme: dark;
}
.ivory {
  --bg: #F4F1EA; --paper: #FFFFFF; --ink: #111; --ink-2: #3D3D3D; --ink-3: #5E5E5E;
  --gold-ink: #8C3A1E; --line: rgba(0,0,0,.13); --line-2: rgba(0,0,0,.3);
  --bad: #A51D3A; --ok: #0E6B55; --bar: #9A9488; --bar-done: #CFC9BD; --solid: #111; --on-solid: #fff;
  background: var(--bg); color: var(--ink); color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: #000; color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ivory :focus-visible { outline-color: #111; }
/* One sheet inside the ivory run goes back to black, so the page alternates. */
.ivory .on-dark {
  --bg: #000; --paper: #0D0D0D; --ink: #fff; --ink-2: #C2C2C2; --ink-3: #949494;
  --gold-ink: #E0855E; --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.3);
  --bad: #FF7D8C; --ok: #63D6A8; --solid: #fff; --on-solid: #000;
  background: var(--bg); color: var(--ink); color-scheme: dark; border-top-color: transparent;
}
.ivory .on-dark :focus-visible { outline-color: var(--gold); }
.ivory .on-dark + .sec { border-top-color: transparent; }
.on-dark .chatcard .u { background: #1E1E1E; }
[hidden] { display: none !important; }
::selection { background: rgba(184,84,48,.24); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.small { font-size: 12px; } .muted { color: var(--ink-3); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 30; background: #fff; color: #0B0B0B; padding: 10px 14px; font-size: 14px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line-2); font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ink); background: rgba(255,255,255,.07); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #FFFFFF; }
.btn.primary:hover { background: #C9623C; border-color: #C9623C; }
.btn.primary:active { background: #9E4526; border-color: #9E4526; }
.btn.big { min-height: 46px; padding: 0 22px; font-size: 15px; }
.hero .btn:not(.primary) { border-color: rgba(255,255,255,.45); background: rgba(0,0,0,.35); }
.hero .btn:not(.primary):hover { border-color: #fff; background: rgba(0,0,0,.6); }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 var(--pad); border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.top.solid { background: #000; border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b, .foot__brand b { font: 400 19px/1 var(--display); letter-spacing: .06em; }
.top nav { display: flex; gap: 28px; margin-left: auto; font: 400 14px var(--sans); }
.top nav a { text-decoration: none; color: #D6D6D6; padding: 6px 0; transition: color .15s; }
.top nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 860px) { .top nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 360px) { .top { gap: 12px; } .top .btn { padding: 0 10px; } .brand b { font-size: 17px; } }

/* hero: one photo, a plain promise, the name set full width along the foot */
.hero { position: relative; min-height: max(100svh, 620px); display: flex; overflow: hidden; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.5) 62%, rgba(0,0,0,.62) 100%), linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 28%, rgba(0,0,0,.72) 62%, #000 100%); }
.hero__in { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 96px var(--pad) clamp(14px, 2vw, 28px); }
.hero__tag { font-size: 15px; font-weight: 500; color: #E6E6E6; margin-bottom: 16px; max-width: 46ch; line-height: 1.5; }
.hero__head { font: 400 clamp(38px, 5.4vw, 88px)/.98 var(--display); text-transform: uppercase; max-width: 15ch; text-wrap: balance; }
.hero__row { display: grid; gap: 20px clamp(24px, 5vw, 80px); }
@media (min-width: 1000px) { .hero__row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }
.hero__sub { max-width: 52ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: #F4F4F4; text-shadow: 0 1px 1px rgba(0,0,0,.5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__name { display: block; width: 100%; height: auto; margin-top: clamp(28px, 5vw, 72px); padding-top: clamp(14px, 2vw, 28px); border-top: 1px solid var(--line-2); overflow: visible; }
.hero__name text { font: 400 100px var(--display); fill: #fff; }
.hero__name .g { fill: var(--gold); }
/* Bricklaying: while the script lays the wordmark in blocks, the svg skips its rise (the blocks are the entrance). */
.hero__name.laying { animation: none; }
@media (max-height: 760px) and (min-width: 1000px) { .hero__head { font-size: clamp(38px, 4.4vw, 64px); } .hero__name { margin-top: 24px; } }

.statement { padding: clamp(72px, 10vw, 150px) var(--pad); }
.lit { max-width: 1040px; margin: 0 auto; font: 500 clamp(24px, 3.1vw, 44px)/1.28 var(--sans); letter-spacing: -.018em; color: #4A4A4A; text-wrap: pretty; }
.lit .w { transition: color .35s; } .lit .w.on { color: #fff; }

/* sections */
.sec { padding: clamp(64px, 8vw, 128px) 0; border-top: 1px solid var(--line); }
.ivory .sec:first-child { border-top: 0; }
.kick { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--ink-3); margin-bottom: clamp(24px, 3vw, 40px); }
.kick::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bubble { width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; display: inline-grid; place-items: center; font: 500 11px var(--mono); letter-spacing: 0; color: var(--ink); flex: none; }
.disp { font: 400 clamp(36px, 4.8vw, 76px)/.96 var(--display); text-transform: uppercase; max-width: 15ch; text-wrap: balance; }
.h2 { font: 600 clamp(28px, 3.1vw, 44px)/1.12 var(--sans); letter-spacing: -.022em; max-width: 20ch; text-wrap: balance; }
.lead { color: var(--ink-2); max-width: 58ch; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; text-wrap: pretty; }
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; }
.two { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(24px, 5vw, 80px); align-items: start; }
.two .lead { margin-top: 22px; }
@media (max-width: 900px) { .head, .two { grid-template-columns: 1fr; } }
.found__h, .aside h3, .cols h3 { font: 600 15px/1.3 var(--sans); color: var(--ink); }
.note { font-size: 13px; color: var(--ink-3); line-height: 1.55; }

/* 01 the programme */
.demo { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 56px); align-items: start; }
@media (max-width: 1000px) { .demo { grid-template-columns: 1fr; } }
.demo__chart { border: 1px solid var(--line-2); background: var(--paper); min-width: 0; }
.demo__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.demo__bar span:first-child { color: var(--ink); font-weight: 500; }
.demo__status { color: var(--ink-2); }
.gantt { --names: 34%; position: relative; margin: 0 16px 14px; }
.g-head { position: relative; height: 30px; border-bottom: 1px solid var(--line-2); }
.g-head i { position: absolute; bottom: 6px; padding-left: 5px; font: 500 10px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.g-grid { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--line); pointer-events: none; }
.g-row { position: relative; height: 24px; border-bottom: 1px solid var(--line); }
.g-row span { position: absolute; left: 0; top: 4px; width: calc(var(--names) - 8px); font: 400 12px/16px var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-bar { position: absolute; z-index: 1; top: 7px; height: 10px; background: var(--bar); transform-origin: left; transform: scaleX(0); transition: transform .5s cubic-bezier(.2,.7,.1,1), background .4s, left .7s cubic-bezier(.2,.7,.1,1); }
.g-bar.in { transform: scaleX(1); } .g-bar.done { background: var(--bar-done); } .g-bar.crit { background: var(--gold); }
.g-bar.late { background: var(--bad); }
.g-line { position: absolute; z-index: 2; top: 30px; bottom: 0; width: 0; border-left: 1px dashed var(--ink-2); transition: opacity .4s; }
.g-line.today { border-left: 1px solid var(--bad); }
.g-line i { position: absolute; bottom: -13px; transform: translateX(-50%); font: 500 9.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); font-style: normal; white-space: nowrap; background: var(--paper); padding: 0 4px; }
.g-line.today i { color: var(--bad); }
.g-line i b { font-weight: inherit; }
@media (max-width: 560px) { .g-line i b { display: none; } }
.demo__finish { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); margin-top: 22px; }
.demo__finish div { padding: 12px 16px 14px; border-right: 1px solid var(--line); min-width: 0; } .demo__finish div:last-child { border-right: 0; }
.demo__finish span { display: block; font-size: 10px; color: var(--ink-3); line-height: 1.4; }
.demo__finish b { display: block; margin-top: 5px; font: 600 clamp(17px, 1.7vw, 22px)/1.15 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: color .4s; }
.demo__finish b.bad { color: var(--bad); }
.demo__chart .note { padding: 11px 16px; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .gantt { --names: 40%; margin: 0 12px 14px; } .demo__finish div { padding: 10px; } .demo__finish b { font-size: 15px; } }
.points { list-style: none; padding: 0; counter-reset: pt; border-top: 1px solid var(--line-2); }
.points li { counter-increment: pt; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.points li::before { content: counter(pt, upper-alpha); font: 500 11px/28px var(--mono); color: var(--ink-3); grid-row: span 2; }
.points h3, .register h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.005em; }
.points p { grid-column: 2; margin-top: 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* 02 the assistant */
.terms { margin-top: 30px; border-top: 1px solid var(--line-2); }
.terms div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-size: 15px; font-weight: 600; color: var(--ink); }
.terms dd { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.chatcard { border: 1px solid var(--line-2); background: var(--paper); padding: 0 22px 20px; font-size: 16px; }
.chatcard p + p { margin-top: 12px; }
.chatcard__h { display: flex; justify-content: space-between; gap: 12px; margin: 0 -22px 20px; padding: 11px 22px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }
.chatcard__h span { color: var(--ink-3); font-weight: 400; }
.chatcard .u { background: #EFEAE0; color: var(--ink); padding: 9px 12px; font-size: 14.5px; line-height: 1.5; width: fit-content; max-width: 92%; margin-left: auto; }
.chatcard .u + .basis { margin-top: 18px; }
.chatcard .basis { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 7px; align-items: center; } .chatcard .basis i { width: 6px; height: 6px; background: var(--ok); flex: none; }
.chatcard .small { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.ref { border: 1px solid var(--line-2); padding: 1px 5px; color: var(--ink-2); font-size: 11.5px; letter-spacing: .02em; }

/* 02 the assistant, animated: three sample exchanges stacked in one grid cell so the
   card never changes height; JS steps classes s1..s4 on the active one. */
.chat { display: flex; flex-direction: column; padding-bottom: 14px; }
.chat__stage { display: grid; }
.ex { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
.ex.on { visibility: visible; opacity: 1; transition: opacity .35s; }
.ex > *, .ans > .basis, .ans > .basis + p { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.ex .ans { position: relative; margin-top: 18px; }
.ex.s1 .u, .ex.s2 .ans, .ex.s3 .ans > .basis, .ex.s3 .ans > .basis + p, .ex.s4 .prop { opacity: 1; transform: none; }
.ans > .basis + p { margin-top: 10px; }
.typing { position: absolute; top: 0; left: 0; display: flex; gap: 4px; padding: 6px 0; opacity: 0; transition: opacity .2s; }
.ex.s2:not(.s3) .typing { opacity: 1; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chatcard .basis b { font-weight: 600; color: var(--ink-2); }
.chatcard .basis.ai i { background: var(--gold); }
.bad { color: var(--bad); }
.prop { margin-top: 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--gold); padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.prop__k { grid-column: 1 / -1; font-size: 10px; color: var(--ink-3); }
.prop__t { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.chatcard .prop p + p { margin-top: 0; }
.pbtn { position: relative; display: inline-grid; min-height: 30px; padding: 0 12px; place-items: center; background: var(--gold); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .3s, color .3s, transform .1s; }
.pbtn > span { grid-area: 1 / 1; transition: opacity .25s; } .pbtn .d { opacity: 0; }
.ex.s5 .pbtn { background: transparent; color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.ex.s5 .pbtn .a { opacity: 0; } .ex.s5 .pbtn .d { opacity: 1; }
.ex.press .pbtn { transform: scale(.95); }
.draft { font-size: 12.5px; color: var(--ink-2); border: 1px dashed var(--line-2); padding: 5px 8px; white-space: nowrap; }
@media (max-width: 480px) { .prop { grid-template-columns: 1fr; } .draft, .pbtn { justify-self: start; margin-top: 6px; } }
.chat__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat__foot .small { margin: 0; padding: 0; border: 0; }
.chat__dots { display: flex; gap: 2px; }
.chat__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.chat__dots button::before { content: ""; width: 18px; height: 3px; background: var(--line-2); transition: background .3s; }
.chat__dots button[aria-current="true"]::before { background: var(--gold); }

/* 03 documents */
.read { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-top: clamp(32px, 4vw, 56px); border: 1px solid var(--line-2); }
@media (max-width: 900px) { .read { grid-template-columns: 1fr; } }
.paper { background: #F7F5F0; color: #111; padding: clamp(20px, 3vw, 36px); font: 400 16.5px/1.7 var(--serif); border-right: 1px solid var(--line-2); overflow-wrap: anywhere; }
.paper p + p { margin-top: 14px; }
.paper__meta { font: 400 13px/1.5 var(--sans); color: #555; }
.paper mark { background: transparent; color: inherit; transition: background .4s, box-shadow .4s; }
.paper mark.on { background: rgba(184,84,48,.26); box-shadow: inset 0 -2px 0 #9E4526; }
.found { background: var(--paper); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; min-width: 0; }
.found dl { margin-top: 12px; border-top: 1px solid var(--line-2); }
.found dl div { padding: 13px 0 14px; border-bottom: 1px solid var(--line); opacity: .38; transition: opacity .4s; }
.found dl div.on { opacity: 1; }
.found dt { font-size: 10.5px; color: var(--ink-3); }
.found dd b { display: block; font: 600 19px/1.25 var(--sans); letter-spacing: -.01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.found dd span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.found .note { margin-top: auto; padding-top: 16px; }
.found .tlink { justify-self: start; align-self: flex-start; margin-top: 14px; }
@media (max-width: 900px) { .paper { border-right: 0; border-bottom: 1px solid var(--line-2); } }
.aside { display: grid; grid-template-columns: 200px minmax(0, 62ch) auto; gap: 12px clamp(20px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line-2); }
.aside h3 { padding-top: 2px; }
.aside p { color: var(--ink-2); font-size: 15.5px; }
.tlink { font: 500 14.5px var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; padding-top: 2px; justify-self: end; transition: text-decoration-color .15s; }
.tlink:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) { .aside { grid-template-columns: 1fr; } .tlink { justify-self: start; } }

/* 04 the register: sheets listed like a drawing register */
.register { list-style: none; padding: 0; margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.register li { display: grid; grid-template-columns: 72px minmax(0, 3fr) minmax(0, 7fr); gap: 6px 24px; align-items: baseline; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.register span { font-size: 11px; color: var(--ink-3); }
.register p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 70ch; }
@media (max-width: 800px) { .register li { grid-template-columns: 56px minmax(0, 1fr); } .register p { grid-column: 2; } }

/* 04 works with: tiles with small drawings. A grid on wide screens, a swipe row
   with snap on phones so the section stays short. */
.tiles { list-style: none; padding: 0; margin: clamp(32px, 4vw, 56px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--line-2); background: var(--paper); padding-bottom: 18px; min-width: 0; }
.tile.wide { grid-column: span 2; }
.tile .ill { display: block; width: 100%; height: 108px; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.tile__k { margin: 14px 18px 0; font-size: 10.5px; color: var(--gold-ink); }
.tile h3 { margin: 4px 18px 0; font: 600 17px/1.3 var(--sans); letter-spacing: -.005em; }
.tile p:not(.tile__k) { margin: 6px 18px 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; max-width: 60ch; }
.tile.row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; padding: 14px 18px 16px 6px; }
.tile.row .ill { height: 76px; padding: 0; border: 0; }
.tile.row h3, .tile.row p:not(.tile__k) { margin-left: 8px; margin-right: 0; }
.tile.row h3 { margin-top: 2px; }
.also { display: flex; align-items: center; gap: 12px; margin-top: clamp(28px, 3vw, 44px); font-size: 11.5px; color: var(--ink-3); }
.also::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tiles--also { margin-top: 16px; }
.ill .st { fill: none; stroke: var(--ink-3); stroke-width: 1.25; }
.ill .st.pap, .ill .pap { fill: var(--paper); }
.ill .ln { fill: none; stroke: var(--line-2); stroke-width: 1; }
.ill .hd, .ill .hol { fill: var(--line); }
.ill .bx { fill: var(--bar); } .ill .pg { fill: var(--ink-2); } .ill .base { fill: var(--line-2); }
.ill .gd { fill: var(--gold); } .ill .gw { fill: var(--gold); opacity: .35; }
.ill .gds { fill: none; stroke: var(--gold); stroke-width: 1.5; } .ill .dash { stroke-dasharray: 3 2; }
.ill .ok { fill: var(--ok); } .ill .bad { fill: var(--bad); }
.ill .okr { fill: none; stroke: var(--ok); stroke-width: 1.5; } .ill .okp { fill: none; stroke: var(--ok); stroke-width: 2; }
.ill .ring { fill: none; stroke: var(--line-2); stroke-width: 3; } .ill .ring.pap { fill: var(--paper); stroke-width: 1.5; }
.ill .arc { fill: none; stroke: var(--gold); stroke-width: 3; } .ill .arc.thick { stroke-width: 5; }
.ill .ring:has(+ .arc.thick) { stroke-width: 5; }
.ill .tx { font: 500 8px var(--mono); letter-spacing: .06em; fill: var(--ink-3); } .ill .tx.big { font-size: 11px; fill: var(--ink); } .ill .gtx { fill: var(--gold-ink); font-size: 9px; }
.ill .grow { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.7,.1,1); }
.tiles.in .ill .grow { transform: scaleX(1); }
.tiles.in li:nth-child(2) .grow { transition-delay: .1s; } .tiles.in li:nth-child(3) .grow { transition-delay: .2s; }
.tiles.in .ill .grow:nth-of-type(2n) { transition-delay: .15s; }
@media (max-width: 1000px) and (min-width: 761px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles--also { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 10px; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; gap: 10px; }
  .tile, .tile.wide { flex: 0 0 min(82%, 320px); scroll-snap-align: start; }
  .tile.row { grid-template-columns: 1fr; padding: 0 0 16px; }
  .tile.row .ill { height: 72px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
  .tile.row h3, .tile.row p:not(.tile__k) { margin-left: 18px; margin-right: 18px; }
  .tile.row h3 { margin-top: 12px; }
  .tile p:not(.tile__k) { font-size: 14px; }
}
.tiles:focus-visible { outline-offset: 4px; }

.photo-band { height: clamp(240px, 38vw, 560px); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }

/* 05 what's real */
.honest { border-top: 0; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.cols > div { padding: 18px clamp(16px, 2vw, 28px) 4px; border-left: 1px solid var(--line); }
.cols > div:first-child { padding-left: 0; border-left: 0; }
.cols ul { list-style: none; padding: 0; margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.cols li { padding: 10px 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; border-top: 0; } .cols > div { padding: 18px 0 8px; border-left: 0; border-top: 1px solid var(--line-2); } }

.close { padding: clamp(80px, 10vw, 160px) 0; border-top: 1px solid var(--line); }
.close .disp { max-width: 14ch; }
.close__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; color: var(--ink-2); font-size: 14.5px; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--ink-3); }
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.foot__brand b { font-size: 16px; }
.foot__brand span { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.foot .small { margin-top: 16px; font-size: 12.5px; max-width: 110ch; line-height: 1.6; }
.foot a { color: var(--ink-2); text-underline-offset: 3px; } .foot a:hover { color: #fff; }

/* ---- Motion. Everything below plays whenever it is on screen and resets when it leaves, so it replays on every visit. */
/* Soft rise for headings, text and cards (only once the script is running, so nothing hides without it). */
.motion .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.1,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.7,.1,1) var(--d, 0ms); }
.motion .rv.seen { opacity: 1; transform: none; }
.motion .photo-band img.rv { transform: scale(1.06); opacity: 1; transition: transform 2.4s cubic-bezier(.2,.7,.1,1); }
.motion .photo-band img.rv.seen { transform: scale(1); }

/* Hero: the words settle in and the photo drifts slowly on load. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero picture img { animation: drift 14s cubic-bezier(.2,.7,.1,1) both; }
.hero__tag { animation: rise .8s .1s both; } .hero__head { animation: rise .9s .2s both; }
.hero__sub { animation: rise .9s .4s both; } .hero__cta { animation: rise .9s .55s both; } .hero__name { animation: rise 1.1s .7s both; }

/* Buttons and links: a small lift on hover. */
.btn { transition: transform .2s, background .2s, border-color .2s, color .2s; } .btn:hover { transform: translateY(-1px); }
.tile { transition: transform .25s, border-color .25s, opacity .7s cubic-bezier(.2,.7,.1,1) var(--d, 0ms); }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); } .motion .tile.rv.seen:hover { transform: translateY(-2px); } }

/* Works-with drawings: each part arrives in its order (--i is set by the script). */
.ill > * { transform-box: fill-box; }
.tiles .ill .okr { transform-origin: center; transform: scale(.4); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.5,1) .9s, opacity .3s .9s; }
.tiles.in .ill .okr { transform: none; opacity: 1; }
.tiles .ill .okp { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s 1.2s; }
.tiles.in .ill .okp { stroke-dashoffset: 0; }
/* Excel: the picked row glows as it is pasted. */
.tiles li:nth-child(2) .gds { opacity: 0; transition: opacity .4s .2s; } .tiles.in li:nth-child(2) .gds { opacity: 1; }
/* Tender notice: the blank the buyer forgot pulses; the deadline on the calendar fills in. */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.tiles.in li:nth-child(3) .dash, .tiles.in li:nth-child(3) .gtx { animation: pulse 1.8s ease-in-out .6s infinite; }
.tiles li:nth-child(3) .gw { transform-origin: left; transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.7,.1,1) .5s; }
.tiles li:nth-child(3) rect.gd:last-child { transform-origin: center; transform: scale(0); transition: transform .4s cubic-bezier(.3,1.6,.5,1) 1.1s; }
.tiles.in li:nth-child(3) .gw, .tiles.in li:nth-child(3) rect.gd:last-child { transform: none; }
/* Letter: the date, the ask and the clause are picked out in turn; then its clock starts. */
.tiles:not(.tiles--also) li:nth-child(4) circle.gd, .tiles:not(.tiles--also) li:nth-child(4) circle.gd + .tx { opacity: 0; transform: translateX(-4px); transition: opacity .35s, transform .35s; transition-delay: calc(var(--i) * 70ms); }
.tiles.in:not(.tiles--also) li:nth-child(4) circle.gd, .tiles.in:not(.tiles--also) li:nth-child(4) circle.gd + .tx { opacity: 1; transform: none; }
.tiles .ill .arc { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.3,.1,.3,1) .9s; }
.tiles.in .ill .arc { stroke-dashoffset: 0; }
/* Project file: the rows go into the file and come out the other side. */
.tiles:not(.tiles--also) li:nth-child(5) rect:not(.st) { opacity: 0; transform: translateX(-14px); transition: opacity .4s, transform .5s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--i) * 90ms); }
.tiles.in:not(.tiles--also) li:nth-child(5) rect:not(.st) { opacity: 1; transform: none; }
/* Director's view: each project's status lights up. */
.tiles--also li:nth-child(1) .bad, .tiles--also li:nth-child(1) .gd, .tiles--also li:nth-child(1) .ok { transform-origin: center; transform: scale(0); transition: transform .4s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(.3s + var(--i) * 60ms); }
.tiles--also.in li:nth-child(1) .bad, .tiles--also.in li:nth-child(1) .gd, .tiles--also.in li:nth-child(1) .ok { transform: none; }
/* Change history: the entries arrive one after another. */
.tiles--also li:nth-child(2) .ill > *:not(.ln) { opacity: 0; transform: translateY(-4px); transition: opacity .35s, transform .35s; transition-delay: calc(var(--i) * 80ms); }
.tiles--also.in li:nth-child(2) .ill > *:not(.ln) { opacity: 1; transform: none; }
.tiles--also li:nth-child(2) .ln { transform-origin: top; transform: scaleY(0); transition: transform 1s cubic-bezier(.2,.7,.1,1); }
.tiles--also.in li:nth-child(2) .ln { transform: none; }

/* Documents: a reading line passes over the letter as the dates are found. */
.read .paper { position: relative; overflow: hidden; }
.read .paper::after { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; background: linear-gradient(to bottom, transparent, rgba(184,84,48,.10), transparent); opacity: 0; pointer-events: none; }
@keyframes scan { 0% { top: -40px; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.read.scan .paper::after { animation: scan 2.4s cubic-bezier(.4,0,.4,1) .2s both; }
.found dl div { transform: translateX(-6px); transition: opacity .4s, transform .4s; } .found dl div.on { transform: none; }

/* Records list: the sheet numbers tick in. */
.register li .mono { display: inline-block; transition: color .6s .3s; }
.motion .register li.rv:not(.seen) .mono { color: transparent; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .lit { color: #fff; } .g-bar { transform: scaleX(1); }
  .ill .grow { transform: none; }
  .ex > *, .ans > .basis, .ans > .basis + p { transform: none; }
  .motion .rv, .tiles .ill *, .found dl div { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
  .read .paper::after { display: none; }
}
.hero__note { margin-top: 10px; font-size: 13.5px; color: rgba(255,255,255,.78); }
.close__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
