/* Company page. White, one large two-tone headline, hairline rules, and the
   work shown as technical figures with mono captions. Inter Tight for the
   headlines, Inter for text, IBM Plex Mono for every label and figure. */

:root {
  --paper: #fbfaf8;
  --panel: #f3f1ed;
  --ink: #2a2724;
  --ink-2: #5b5450;
  --mute: #756d68;
  --line: #e4e0da;
  --line-2: #cfc9c2;
  --acc: #1f6b56;
  --acc-2: #2f8a70;
  --tint-a: #e7eee9;   /* green  */
  --tint-b: #f0ebe1;   /* sand   */
  --tint-c: #e6e9ec;   /* grey-blue */
  --warn: #b7752a;
  --bad: #b5524d;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tight: "Inter Tight", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --col: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
::selection { background: rgba(31, 107, 86, .18); }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 28px; }

/* ---------- top ---------- */
.top { display: flex; align-items: center; gap: 28px; padding: 26px 0 0; font-size: 14px; }
.brand { font-weight: 500; margin-right: auto; }
.brand span::after { content: "."; color: var(--acc); }
.topnav { display: flex; gap: 26px; color: var(--ink-2); }
.topnav a { padding: 6px 0; transition: color 150ms; }
.topnav a:hover { color: var(--ink); }
.topnav a::after { content: "."; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; }
h1 { font-family: var(--tight); font-weight: 400; font-size: clamp(42px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.025em; color: var(--ink); max-width: 20ch; }
h1 .brandname { color: var(--ink); }
h1 .brandname::after { content: "."; color: var(--acc); }
h1 .rest { color: var(--mute); }
.hero-foot { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.lede { font-size: 22px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; font-weight: 400; letter-spacing: -0.005em; }
.arrow { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--acc); font-size: 17px; transition: gap 200ms var(--ease); }
.arrow:hover { gap: 22px; }
.arrow::after { content: "→"; }
.spec { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); display: grid; gap: 0; }
.spec div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec b { font-weight: 500; color: var(--ink); }

/* load choreography, once */
.rise { opacity: 0; transform: translateY(14px); animation: rise 900ms var(--ease) forwards; }
.rise.d1 { animation-delay: 120ms; } .rise.d2 { animation-delay: 260ms; } .rise.d3 { animation-delay: 380ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- clients ---------- */
.clients { padding: 64px 0 0; }
.names { display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: baseline; margin-top: 14px; }
.names span { font-family: var(--tight); font-size: 28px; letter-spacing: -0.02em; color: var(--mute); }
.names small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin-top: 2px; opacity: .8; }

/* ---------- sections ---------- */
.sec { padding: 96px 0 0; }
.label { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 28px; }
.label .mono { color: var(--ink-2); }
h2 { font-family: var(--tight); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 36px; max-width: 28ch; }
h2 .mute { color: var(--mute); }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.item { display: grid; gap: 0; align-content: start; }
.item.full { grid-column: span 2; }
.plate { position: relative; border-radius: 6px; background: var(--tint-a); padding: 28px; min-height: 340px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plate.b { background: var(--tint-b); } .plate.c { background: var(--tint-c); }
.item.full .plate { min-height: 0; padding: 60px 40px 40px; }
.cap { position: absolute; left: 14px; top: 12px; display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cap b { font-weight: 500; white-space: nowrap; color: var(--ink); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 2px; background: rgba(255,255,255,.55); }
.item h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.item h3 .who { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 400; color: var(--mute); white-space: nowrap; }
.item .out { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.item .out b { font-weight: 500; color: var(--ink); }
.item .more { display: inline-flex; gap: 10px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--acc); }
.item .more::after { content: "→"; }

/* --- the figures: light interface fragments drawn with thin lines --- */
.fig { width: 100%; font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.card { background: #fff; border: 1px solid var(--line-2); border-radius: 4px; }
/* 1. documents */
.docs { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 16px; align-items: stretch; }
.doc { padding: 12px 14px; font-family: var(--sans); font-size: 12.5px; line-height: 18px; color: var(--ink-2); }
.doc .dh { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc p { margin-bottom: 7px; }
mark { background: transparent; color: inherit; padding: 0 2px; border-radius: 2px; transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.in mark.chg { background: rgba(183, 117, 42, .18); color: var(--warn); }
.in mark.miss { background: rgba(181, 82, 77, .14); color: var(--bad); text-decoration: line-through; }
.in mark.chg { transition-delay: 300ms; } .in mark.miss { transition-delay: 600ms; }
.tbl { display: grid; align-content: start; }
.tbl .th, .tbl .tr { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 10.5px; }
.tbl .th { color: var(--mute); letter-spacing: .05em; text-transform: uppercase; }
.tbl .tr { color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity 350ms var(--ease), transform 350ms var(--ease); }
.tbl .tr:last-child { border-bottom: 0; }
.in .tbl .tr { opacity: 1; transform: none; }
.in .tbl .tr:nth-child(2) { transition-delay: 450ms; } .in .tbl .tr:nth-child(3) { transition-delay: 700ms; } .in .tbl .tr:nth-child(4) { transition-delay: 950ms; }
.tbl .k { color: var(--mute); }
.tbl .chg { color: var(--warn); } .tbl .miss { color: var(--bad); } .tbl .ok { color: var(--acc); }
/* 2, 3. plots */
.plot { padding: 12px 12px 8px; }
.plot svg { display: block; width: 100%; height: 220px; overflow: visible; }
.plot .grid line { stroke: var(--line); stroke-width: 1; }
.plot .ax { font-family: var(--mono); font-size: 9.5px; fill: var(--mute); }
.plot .actual { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-linejoin: round; }
.plot .fc { fill: none; stroke: var(--acc); stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.in .plot .fc { animation: draw 1600ms 200ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.plot .bar { transform: scaleY(0); transition: transform 500ms var(--ease); }
.plot .bar.c { fill: var(--acc); opacity: .45; } .plot .bar.d { fill: var(--acc); }
.in .plot .bar { transform: none; }
.plot .zero { stroke: var(--line-2); stroke-width: 1; }
.plot .price { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.legend { display: flex; gap: 16px; justify-content: space-between; padding: 8px 2px 0; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--line-2); }
.legend i.a { background: var(--acc); } .legend i.c { background: var(--acc); opacity: .45; } .legend i.p { height: 0; border-top: 1px dashed var(--ink-2); }
/* 4. the plant schematic */
.schem { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: center; width: 100%; }
.node { position: relative; padding: 12px 12px; text-align: center; }
.node b { display: block; font-weight: 500; color: var(--ink); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.node span { display: block; font-size: 10.5px; color: var(--mute); margin-top: 4px; }
.node .v { color: var(--acc); font-weight: 500; }
.edge { position: relative; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 10px); background-size: 20px 1px; }
.in .edge { animation: flow 1.4s linear infinite; }
@keyframes flow { to { background-position: 20px 0; } }
.edge::after { content: "▸"; position: absolute; right: -4px; top: -8px; color: var(--line-2); font-size: 11px; }
.schem .card { opacity: 0; transform: translateY(4px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.in .schem .card { opacity: 1; transform: none; }
.in .schem .card:nth-child(3) { transition-delay: 250ms; } .in .schem .card:nth-child(5) { transition-delay: 500ms; }
/* 5. the brief */
.brief { display: grid; grid-template-columns: 1fr 150px; gap: 14px; width: 100%; }
.page { padding: 14px 16px; font-family: var(--sans); font-size: 11.5px; line-height: 16px; color: var(--ink-2); }
.page .pt { font-weight: 500; color: var(--ink); font-size: 13px; }
.page .pd { font-family: var(--mono); font-size: 10px; color: var(--mute); margin: 2px 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.page .ph { font-weight: 500; color: var(--ink); margin-top: 8px; }
.cite { display: inline-block; font-family: var(--mono); font-size: 8.5px; line-height: 12px; padding: 0 4px; border-radius: 2px; background: var(--tint-a); color: var(--acc); vertical-align: 1px; margin-left: 3px; opacity: 0; transition: opacity 300ms var(--ease); }
.in .cite { opacity: 1; }
.in .cite:nth-of-type(1) { transition-delay: 300ms; } .in .cite:nth-of-type(2) { transition-delay: 500ms; } .in .cite:nth-of-type(3) { transition-delay: 700ms; }
.srcs { display: grid; align-content: start; }
.srcs .th { padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.srcs .sr { display: grid; grid-template-columns: 22px 1fr; gap: 6px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--ink); opacity: 0; transform: translateX(4px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.srcs .sr:last-child { border-bottom: 0; }
.srcs .sr b { color: var(--acc); font-weight: 500; }
.srcs .sr span { display: block; color: var(--mute); font-size: 9.5px; }
.in .srcs .sr { opacity: 1; transform: none; }
.in .srcs .sr:nth-child(2) { transition-delay: 300ms; } .in .srcs .sr:nth-child(3) { transition-delay: 500ms; } .in .srcs .sr:nth-child(4) { transition-delay: 700ms; }
/* 6. the assistant */
.chat { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 420px; font-family: var(--sans); }
.msg { max-width: 88%; padding: 8px 11px; border-radius: 10px; font-size: 12px; line-height: 16px; }
.msg.u { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 3px; }
.msg.a { align-self: flex-start; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); border-bottom-left-radius: 3px; }
.task { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 11px; border-left: 2px solid var(--acc); font-size: 11px; color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity 400ms 900ms var(--ease), transform 400ms 900ms var(--ease); }
.in .task { opacity: 1; transform: none; }
.task b { font-weight: 500; color: var(--ink); }
.task .mono { font-size: 10px; }
/* 7. holdings */
.hold { width: 100%; max-width: 440px; display: grid; }
.hold .th, .hold .hr { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
.hold .th { color: var(--mute); letter-spacing: .05em; text-transform: uppercase; }
.hold .hr:last-child { border-bottom: 0; }
.hold .hr span:first-child { font-family: var(--sans); font-size: 12px; color: var(--ink); }
.hold .bar { height: 6px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.hold .bar i { display: block; height: 100%; width: var(--w); background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.in .hold .bar i { transform: none; }
.in .hold .hr:nth-child(3) .bar i { transition-delay: 100ms; } .in .hold .hr:nth-child(4) .bar i { transition-delay: 200ms; } .in .hold .hr:nth-child(5) .bar i { transition-delay: 300ms; }
.hold .tnum { text-align: right; color: var(--ink); }

/* ---------- also built: a numbered index ---------- */
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.ix { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ix .n { font-family: var(--mono); font-size: 12px; color: var(--mute); padding-top: 3px; }
.ix h3 { font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em; }
.ix p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 3px; max-width: 48ch; }
.ix .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.ix .meta b { font-weight: 500; color: var(--acc); }
.ix .meta a { color: var(--acc); }
.ix .meta a::after { content: " →"; }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.portrait { width: 200px; aspect-ratio: 4/5; object-fit: cover; object-position: center; border-radius: 4px; filter: saturate(.85); }
.founder h3 { font-family: var(--tight); font-size: 30px; font-weight: 400; letter-spacing: -0.02em; }
.founder .role { color: var(--mute); font-size: 15px; margin-top: 4px; }
.founder p { margin-top: 18px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.facts { margin-top: 26px; border-top: 1px solid var(--line); display: grid; }
.facts div { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.facts .n { font-family: var(--mono); font-size: 12px; color: var(--mute); padding-top: 2px; }
.facts b { font-weight: 500; color: var(--ink); }

/* ---------- how we work ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); }
.hw { padding-top: 18px; }
.hw .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.hw h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-top: 10px; }
.hw p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-top: 8px; }

/* ---------- contact ---------- */
.contact { padding: 96px 0 0; }
.mail { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 22px; overflow-wrap: anywhere; max-width: 100%; font-family: var(--tight); font-size: clamp(28px, 4.2vw, 52px); letter-spacing: -0.025em; color: var(--acc); border-bottom: 1px solid currentColor; padding-bottom: 6px; transition: gap 200ms var(--ease); }
.mail:hover { gap: 34px; }
.mail::after { content: "→"; }
.contact p { margin-top: 20px; color: var(--ink-2); font-size: 17px; max-width: 56ch; }

/* ---------- footer ---------- */
.foot { margin-top: 110px; background: var(--panel); border-top: 1px solid var(--line); }
.foot .wrap { padding-top: 34px; padding-bottom: 54px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 24px; font-size: 13px; color: var(--ink-2); }
.foot .col { display: grid; gap: 4px; align-content: start; }
.foot .col a:hover { color: var(--ink); }
.foot .legal { text-align: right; color: var(--mute); }

/* reveal on scroll, once */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .work { grid-template-columns: 1fr; gap: 44px; }
  .item.full { grid-column: auto; }
  .item.full .plate { min-height: 0; padding: 48px 20px 24px; }
  .plate { min-height: 0; padding: 48px 18px 20px; }
  .docs { grid-template-columns: 1fr; }
  .index { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; gap: 0; }
  .hw { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .legal { text-align: left; grid-column: span 2; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .top { flex-wrap: wrap; gap: 14px 18px; }
  .topnav { width: 100%; gap: 18px; font-size: 13px; flex-wrap: wrap; }
  .hero { padding-top: 48px; }
  .hero-foot { grid-template-columns: 1fr; margin-top: 64px; gap: 24px; }
  .lede { font-size: 19px; }
  .names { gap: 10px 26px; } .names span { font-size: 22px; }
  .sec { padding-top: 72px; }
  .schem { grid-template-columns: 1fr; gap: 6px; }
  .edge { height: 18px; width: 1px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 5px, transparent 5px 10px); background-size: 1px 20px; }
  .edge::after { content: "▾"; right: auto; left: -5px; top: 10px; }
  .brief { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .portrait { width: 160px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot .legal { grid-column: auto; }
  .mail { font-size: 24px; gap: 12px; }
  body { overflow-x: hidden; }
  .item h3 { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .plot .fc { animation: none; stroke-dashoffset: 0; }
  .in .edge { animation: none; }
  mark, .tbl .tr, .plot .bar, .cite, .srcs .sr, .task, .hold .bar i, .schem .card, .arrow, .mail { transition: none; }
}

/* ================= revision 2: separation, and the redrawn figures ================= */
.work { gap: 72px 32px; }
.item .rule { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding: 10px 0 14px; }
.item .rule .mono { color: var(--ink-2); }
.item .rule .mono b { font-weight: 500; color: var(--ink); margin-right: 8px; }
.item h3 { margin-top: 20px; }
.plate { min-height: 0; padding: 56px 28px 28px; }
.item.full .plate { padding: 56px 40px 32px; }
.fig svg, svg.fig { display: block; width: 100%; height: auto; }

/* fig 1: the aligned pages, after the LabArt page */
.align { max-width: 720px; margin: 0 auto; }
.align .pg { fill: #fff; stroke: var(--line-2); }
.align .pt { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; fill: var(--acc); }
.align .ln line { stroke: var(--line-2); stroke-width: 4; stroke-linecap: round; }
.align .ln.thin line { stroke-width: 3; }
.align .hl { stroke: var(--acc); stroke-width: 4; stroke-linecap: round; }
.align .bad { stroke: var(--bad); stroke-width: 3; stroke-linecap: round; }
.align .badbox { fill: none; stroke: var(--bad); stroke-width: 1.2; }
.align .thread path { fill: none; stroke: var(--acc); stroke-width: 1; opacity: .35; stroke-dasharray: 300; stroke-dashoffset: 300; }
.align .thread-hl { fill: none; stroke: var(--acc); stroke-width: 1.5; stroke-dasharray: 300; stroke-dashoffset: 300; }
.in .align .thread path, .in .align .thread-hl { animation: draw300 1200ms var(--ease) forwards; }
.in .align .thread path:nth-child(2) { animation-delay: 80ms; } .in .align .thread path:nth-child(3) { animation-delay: 160ms; } .in .align .thread path:nth-child(4) { animation-delay: 240ms; }
.in .align .thread path:nth-child(5) { animation-delay: 320ms; } .in .align .thread path:nth-child(6) { animation-delay: 400ms; } .in .align .thread path:nth-child(7) { animation-delay: 480ms; } .in .align .thread path:nth-child(8) { animation-delay: 560ms; }
.in .align .thread-hl { animation-delay: 700ms; }
@keyframes draw300 { to { stroke-dashoffset: 0; } }
.align .tag rect { fill: #fff; stroke: var(--bad); }
.align .tag text { font-family: var(--mono); font-size: 10px; fill: var(--bad); letter-spacing: .02em; }
.align .tag { opacity: 0; transition: opacity 400ms 1500ms var(--ease); }
.in .align .tag { opacity: 1; }

/* fig 2 and 3: no tick values on the price plot; the revenue plot */
.plot .fc.rule { stroke: var(--line-2); stroke-width: 1.4; animation: none; stroke-dasharray: none; }
.plot .max { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.plot .pct { font-family: var(--mono); font-size: 9.5px; fill: var(--mute); }

/* fig 4: the digest */
.digest { width: 100%; max-width: 460px; font-family: var(--sans); }
.dg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.dg-head b { display: block; font-weight: 500; font-size: 13px; color: var(--ink); }
.dg-head span { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.dg-head .dg-ok { color: var(--acc); white-space: nowrap; }
.dg-topics { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dg-topics span { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--mute); }
.dg-topics span.on { border-color: var(--acc); color: var(--acc); background: rgba(31,107,86,.06); }
.dg-item { padding: 10px 14px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(5px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.dg-item:last-child { border-bottom: 0; }
.in .dg-item { opacity: 1; transform: none; }
.in .dg-item:nth-of-type(2) { transition-delay: 250ms; } .in .dg-item:nth-of-type(3) { transition-delay: 500ms; } .in .dg-item:nth-of-type(4) { transition-delay: 750ms; }
.dg-t { font-size: 12.5px; font-weight: 500; color: var(--ink); line-height: 16px; }
.dg-s { font-size: 11.5px; color: var(--ink-2); line-height: 15px; margin-top: 2px; }
.dg-m { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--mute); }
.dg-m i { font-style: normal; color: var(--acc); white-space: nowrap; }
.dg-m i::before { content: "✓ "; }

/* fig 5: the site drawing */
.schem { display: block; max-width: 640px; margin: 0 auto; }
.schem * { vector-effect: non-scaling-stroke; }
.schem .sun circle { fill: rgba(183,117,42,.12); stroke: var(--warn); stroke-width: 1.4; }
.schem .sun .rays line { stroke: var(--warn); stroke-width: 1.4; stroke-linecap: round; }
.schem .pv .panel path { fill: rgba(31,107,86,.10); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.schem .pv .panel line { stroke: var(--ink); stroke-width: 1; }
.schem .bat rect { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.schem .bat .cells rect { fill: var(--acc); stroke: none; }
.schem .bat .cells rect.dim { fill: var(--line); }
.schem .fac path, .schem .fac rect { fill: #fff; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.schem .fac .win rect { fill: var(--tint-c); }
.schem .fac .door { fill: var(--line); }
.schem .grid path { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; }
.schem .flow path { fill: none; stroke: var(--acc); stroke-width: 1.2; stroke-dasharray: 4 4; }
.in .schem .flow path { animation: flowdash 1.2s linear 4; }
@keyframes flowdash { to { stroke-dashoffset: -8; } }
.schem marker path { fill: var(--acc); }
.schem .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; fill: var(--ink-2); }
.schem .lbl.v { fill: var(--acc); text-transform: none; letter-spacing: .02em; }
.schem .sun { transform-origin: 96px 62px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* fig 6: the Right Hand app, in this page's palette */
.phone { width: 100%; max-width: 300px; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; font-family: var(--sans); font-size: 11.5px; line-height: 15px; }
.phone .appbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.phone .dots i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-left: 5px; }
.phone .dots i:last-child { background: var(--line-2); }
.phone .stream { display: flex; flex-direction: column; gap: 7px; padding: 12px 12px 10px; }
.phone .sys { font-size: 10.5px; color: var(--mute); }
.phone .sys .mono { font-size: 10px; margin-right: 6px; text-transform: none; }
.phone .ai, .phone .you { max-width: 90%; padding: 7px 10px; border-radius: 10px; opacity: 0; transform: translateY(5px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.phone .ai { align-self: flex-start; background: var(--panel); color: var(--ink-2); border-bottom-left-radius: 3px; }
.phone .you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 3px; }
.in .phone .ai, .in .phone .you { opacity: 1; transform: none; }
.in .phone .you { transition-delay: 400ms; } .in .phone .ai.done { transition-delay: 1000ms; }
.phone .trow { display: grid; grid-template-columns: 10px 1fr auto auto auto; gap: 8px; align-items: center; margin: 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); opacity: 0; transition: opacity 400ms 1400ms var(--ease); }
.in .phone .trow { opacity: 1; }
.phone .trow i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); }
.phone .trow em { font-style: normal; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--acc); border: 1px solid var(--acc); border-radius: 8px; padding: 0 6px; }
.phone .trow .mono { font-size: 10.5px; text-transform: none; }
.phone .bnav { display: flex; justify-content: space-around; margin-top: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--mute); }
.phone .bnav .on { color: var(--acc); }

/* fig 7: the simulation */
.plot.sim .band { fill: var(--bad); opacity: .07; }
.plot.sim .band-l { font-family: var(--mono); font-size: 9px; fill: var(--mute); letter-spacing: .04em; text-transform: uppercase; }
.legend i.band { width: 14px; height: 8px; background: rgba(181,82,77,.35); }
.risk { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.risk .mono { text-transform: uppercase; font-size: 10.5px; }
.risk .seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.risk .seg span { font-family: var(--mono); font-size: 10.5px; padding: 3px 10px; color: var(--mute); border-right: 1px solid var(--line-2); }
.risk .seg span:last-child { border-right: 0; }
.risk .seg span.on { background: var(--acc); color: #fff; }

@media (max-width: 960px) {
  .item.full .plate, .plate { padding: 52px 18px 20px; }
  .work { gap: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .align .thread path, .align .thread-hl { animation: none; stroke-dashoffset: 0; }
  .in .schem .flow path, .in .schem .sun .rays { animation: none; }
  .align .tag, .dg-item, .phone .ai, .phone .you, .phone .trow { transition: none; }
}

/* ================= the mark ================= */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { color: var(--ink); }
.fbrand { display: inline-flex; align-items: center; gap: 8px; }
.fbrand .mark { width: 24px; height: 16px; }
/* four pieces cut along two 30° lines; they separate along the cuts and settle back */
.mark .pc { transition: transform 700ms var(--ease); }
.mark .tri   { transform: translate(calc(var(--d, 0) * 0.866px), calc(var(--d, 0) * -0.5px)); }
.mark .left  { transform: translate(calc(var(--d, 0) * -0.866px), calc(var(--d, 0) * 0.5px)); }
.mark .right { transform: translate(calc(var(--d, 0) * 0.866px), calc(var(--d, 0) * 0.5px)); }
.mark.apart { --d: 7; }
.brand:hover .mark { --d: 3; }
@media (prefers-reduced-motion: reduce) { .mark .pc { transition: none; } .mark.apart { --d: 0; } .brand:hover .mark { --d: 0; } }

/* the large mark, before contact: comes together when it scrolls into view, breathes apart now and then */
.mark.big .pc { transition: transform 1100ms var(--ease); }
.mark.big.apart { --d: 16; }
.mark.big.breathe { --d: 5; }
.hero-top:hover .mark { --d: 8; }
@media (prefers-reduced-motion: reduce) { .mark.big.apart, .mark.big.breathe, .hero-top:hover .mark { --d: 0; } }

/* the hero: the mark with the sentence beside it, the name beneath the mark */
.hero-top { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 22px 72px; align-items: center; }
.hero-top .mark { grid-column: 1; grid-row: 1; color: var(--ink); width: 280px; height: 187px; }
.hero-top h1 { grid-column: 1; grid-row: 2; font-size: 66px; line-height: 1; }
.hero-rest { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--tight); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-2); max-width: 18ch; margin: 0; }
@media (max-width: 720px) {
  .hero-top { grid-template-columns: 1fr; gap: 22px; }
  .hero-top .mark { width: 180px; height: 120px; }
  .hero-top h1 { font-size: 44px; }
  .hero-top h1 { grid-row: 2; }
  .hero-rest { grid-column: 1; grid-row: 3; max-width: 20ch; }
}

/* phone legibility: nothing below 11px */
@media (max-width: 720px) {
  .cap, .legend, .mono { font-size: 11px; }
  .plot .ax { font-size: 12px; }
  .align .pt { font-size: 14px; }
  .align .tag text { font-size: 13px; }
  .schem .lbl { font-size: 18px; }
  .schem .lbl.v { display: none; }
  .legend { flex-wrap: wrap; gap: 6px 14px; }
  .dg-head span, .dg-m, .dg-topics span, .srcs .th, .srcs .sr, .srcs .sr span, .hold .th, .hold .hr, .task .mono, .phone .sys { font-size: 11px; }
}
