/* Karya site v5: factory.com's wireframe, in TASTE.md's skin. Ivory paper, ink, bone on dark, bronze as the one accent.
   Cinzel for the wordmark only, Cormorant for headings, Inter for everything read. Squared, flat, depth only on response. */
:root {
  --paper: #f3ebdd; --paper-2: #f7f1e6; --mist: #e9dfcd; --line: #d9ccb6; --line-2: #c3b399;
  --ink: #171715; --ink-70: rgba(23,23,21,.7); --ink-55: rgba(23,23,21,.55);
  --night: #1c1a17; --bone: #ede0ca; --bone-70: rgba(237,224,202,.7); --bone-55: rgba(237,224,202,.55); --night-line: rgba(237,224,202,.16);
  --bronze: #8f6738; --bronze-dim: rgba(143,103,56,.22); --bronze-whisper: rgba(143,103,56,.15);
  --wordmark: "Cinzel", serif; --serif: "Cormorant Garamond", serif; --sans: Inter, system-ui, sans-serif; --code: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1); --ease-out-quint: cubic-bezier(.22, 1, .36, 1); --ease-out-expo: cubic-bezier(.16, 1, .3, 1); --ease-ios: cubic-bezier(.32, .72, 0, 1);
  --ink-2: #38362f; --ink-3: #817b70; --hair: rgba(23,23,21,.22); --mono: "IBM Plex Mono", ui-monospace, monospace; --ease: cubic-bezier(.22, .61, .36, 1);   /* read by why.css and story.css */
  --wrap: 1320px; --gut: clamp(16px, 3vw, 48px);
  --lift: 0 4px 24px -4px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.pagesheet { position: fixed; inset: 0; z-index: -1; opacity: 0; transition: opacity .8s var(--ease-out-quart); } .pagesheet.ready { opacity: 1; }   /* the real paper, from the shader */
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mark { display: inline-block; width: 1em; height: 1em; background: currentColor; -webkit-mask: url(img/panther.png) center / contain no-repeat; mask: url(img/panther.png) center / contain no-repeat; }
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; font: 500 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); }
.h2 { margin: 0; font: 400 clamp(1.9rem, 3.6vw, 3rem)/1.12 var(--serif); letter-spacing: -.01em; font-optical-sizing: auto; text-wrap: balance; }
.h2 em { font-style: italic; color: var(--ink-70); }
.lede { max-width: 56ch; margin: 16px 0 0; color: var(--ink-70); text-wrap: pretty; }
section { padding: 120px 0 0; }

/* buttons: squared, uppercase, tracked */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink);
  font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease-out-quart), color .15s var(--ease-out-quart), box-shadow .25s var(--ease-out-quart), transform .1s; }
.btn:hover { box-shadow: var(--lift); } .btn:active { transform: translateY(1px); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.bone { background: var(--bone); border-color: var(--bone); color: var(--night); } .btn.ghost-d { border-color: rgba(237,224,202,.45); color: var(--bone); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.tlink { text-decoration: none; transition: color .18s var(--ease-out-quart), box-shadow .18s var(--ease-out-quart); }
.tlink:hover { color: var(--bronze); box-shadow: 0 12px 32px var(--bronze-whisper); }   /* the bronze whisper: only on the link being touched */

/* nav: solid paper, a hairline under it */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(195,179,153,.55); }
/* frosted: the page shows through, softened. The glass is a layer of its own (not the bar itself), so the menu that
   drops from the bar on phones can be the same glass: a blur on the bar would stop the menu's blur seeing the page */
.nav::before, .nav.open .links { background: rgba(243,235,221,.58); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 1.05rem/1 var(--wordmark); letter-spacing: .16em; text-decoration: none; }
.brand .mark { width: 24px; height: 24px; }
.links { display: flex; gap: 32px; margin-left: auto; }
.links a { font: 400 .875rem/1 var(--sans); text-decoration: none; transition: color .18s var(--ease-out-quart); }
.links a.more::after { content: " ›"; color: var(--ink-55); }
.links a:hover { color: var(--bronze); }
.nav .ctas { display: flex; gap: 8px; } .nav .btn { height: 34px; padding: 0 14px; }
/* at night, while the dark garden is behind it, the bar is dark glass with bone type; over the paper below, pale again */
.nav::before, .nav .brand, .nav .links a, .nav .btn, .nav .menu, .nav .menu i { transition: background-color .5s var(--ease-out-quart), color .5s var(--ease-out-quart), border-color .5s var(--ease-out-quart); }
.night .nav.dusk { border-bottom-color: var(--night-line); }
.night .nav.dusk::before, .night .nav.dusk.open .links { background-color: rgba(28,26,23,.52); }
.night .nav.dusk.open .links { border-bottom-color: var(--night-line); }
.night .nav.dusk .brand, .night .nav.dusk .links a { color: var(--bone); } .night .nav.dusk .links a:hover { color: var(--bone-70); }
.night .nav.dusk .btn { border-color: rgba(237,224,202,.55); color: var(--bone); }
.night .nav.dusk .btn.solid { background: var(--bone); border-color: var(--bone); color: var(--night); }
.night .nav.dusk .menu { border-color: rgba(237,224,202,.55); } .night .nav.dusk .menu i { background: var(--bone); }
.menu { display: none; margin-left: auto; width: 40px; height: 34px; border: 1px solid var(--line-2); border-radius: 0; background: none; }
.menu i { display: block; width: 16px; height: 1px; margin: 4px auto; background: var(--ink); }

/* hero: the mark, the line, two ways in */
.hero { padding: 120px 0 0; text-align: center; }
.hero .mark { width: 64px; height: 64px; color: var(--ink); }
.hero h1 { margin: 32px 0 0; font: 500 clamp(3rem, 7.4vw, 6.5rem)/1 var(--serif); letter-spacing: -.02em; font-optical-sizing: auto; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--ink-70); }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(12px); filter: blur(6px); transition: opacity .6s var(--ease-out-quart), transform .6s var(--ease-out-quart), filter .6s var(--ease-out-quart); transition-delay: calc(var(--i) * 60ms); }
.hero h1.go .w { opacity: 1; transform: none; filter: none; }   /* ink wicking into paper, a word at a time */
.hero .sub { max-width: 52ch; margin: 24px auto 0; font: 400 1.125rem/1.6 var(--sans); color: var(--ink-70); }
.hero .acts { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.dl { position: relative; }
.dl-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 5; min-width: 100%; padding: 8px 0; border: 1px solid var(--line-2); background: var(--paper-2); text-align: left; box-shadow: var(--lift);
  transform-origin: top left; animation: pop .22s var(--ease-out-quart); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.dl-menu[hidden] { display: none; }
.dl-menu a { display: block; padding: 10px 16px; font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; } .dl-menu a:hover { color: var(--bronze); }
.chip-cmd { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 8px 16px; border: 1px solid var(--line); font: 400 .875rem/1 var(--sans); color: var(--ink-70); }
.chip-cmd kbd { padding: 4px 8px; border: 1px solid var(--line-2); background: var(--paper-2); font: 500 .75rem/1 var(--sans); color: var(--ink); }

/* the desk: a sheet of washi behind the KChat window */
.desk { margin-top: 80px; }
.frame { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.frame::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(23,23,21,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(23,23,21,.05) 1px, transparent 1px); background-size: 48px 48px; }
.menubar { position: relative; display: flex; gap: 24px; align-items: center; height: 32px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); font: 400 .75rem/1 var(--sans); }
.menubar b { font-weight: 500; } .menubar span:last-child { margin-left: auto; color: var(--ink-55); }
.app { position: relative; display: grid; grid-template-columns: 248px 1fr; width: min(1040px, 86%); height: clamp(380px, 42vw, 540px); margin: 80px auto 0; overflow: hidden; text-align: left;
  background: var(--night); color: var(--bone); font: 400 .8125rem/1.5 var(--sans); }
.side { padding: 16px; border-right: 1px solid var(--night-line); }
.dots { display: flex; gap: 6px; margin: 0 0 24px; } .dots i { width: 9px; height: 9px; border: 1px solid var(--bone-55); border-radius: 50%; }
.side .new { color: var(--bone-70); } .side h6 { margin: 24px 0 8px; font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-55); }
.side .grp { margin: 16px 0 8px; color: var(--bone-70); }
.side .s { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 16px; color: var(--bone-70); white-space: nowrap; overflow: hidden; }
.side .s span:first-child { overflow: hidden; text-overflow: ellipsis; } .side .s span:last-child { color: var(--bone-55); }
.side .s.on { background: rgba(237,224,202,.07); color: var(--bone); }
.side .s.live span:first-child::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--bronze); }   /* still, never pulsing */
.main { display: flex; flex-direction: column; min-width: 0; }
.main .top { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 24px; border-bottom: 1px solid var(--night-line); }
.main .top em { font-style: normal; color: var(--bone-55); } .main .top .zdr { margin-left: auto; padding: 4px 8px; border: 1px solid var(--night-line); font: 500 .625rem/1 var(--sans); letter-spacing: .1em; color: var(--bone-70); }
.feed { flex: 1; overflow: hidden; padding: 16px 24px; }
.feed .me { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--night-line); color: var(--bone); }
.feed .step { display: flex; gap: 8px; align-items: baseline; margin: 8px 0; color: var(--bone-70); opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease-out-quart), transform .3s var(--ease-out-quart); }
.feed .step.in { opacity: 1; transform: none; }
.feed .step b { font-weight: 500; color: var(--bone); } .feed .step code { font: 400 .75rem/1.5 var(--code); color: var(--bone-55); }
.feed .step .ic { width: 16px; flex: none; text-align: center; color: var(--bronze); font: 400 .6875rem/1 var(--code); }
.feed .head { margin-top: 16px; } .feed .head .ic::before { content: "●"; font-size: 8px; }
.feed .done { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--bone-55); color: var(--bone); }
.feed .done small { display: block; margin-top: 4px; font: 500 .625rem/1.4 var(--sans); letter-spacing: .1em; color: var(--bone-55); }
.ask { margin: 0 24px 16px; padding: 12px 16px; border: 1px solid var(--night-line); color: var(--bone-55); }

/* a section's head: what it is on the left, what it does and the way in on the right */
.shead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-bottom: 32px; border-bottom: 1px solid var(--ink); }
.shead .lede { margin-top: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
/* a section's name, set large at its head: where you are, before the argument begins */
.sname { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.sname-t { margin: 0; font: 400 clamp(4rem, 11vw, 9.5rem)/.9 var(--serif); letter-spacing: -.03em; }
#decide .sname-t { font-size: clamp(3rem, 7.6vw, 7.5rem); }   /* the long name, still on one line on a laptop */
.sname p { margin: 0; font: 500 .75rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); }
@media (max-width: 760px) { .sname { flex-direction: column; gap: 12px; margin-bottom: 32px; } }
/* the bar names the section you are in */
.links a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 currentColor; }
/* KChat's premise in three beats, under the heading: a rule above each, the claim in the serif, the sentence beneath */
.kbeats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 56px 0 64px; }
.kbeats > div { padding-top: 20px; border-top: 1px solid var(--line-2); }
.kbeats h3 { margin: 0; font: 400 1.6rem/1.15 var(--serif); }
.kbeats p { margin: 12px 0 0; color: var(--ink-70); text-wrap: pretty; }
/* Context: the proof beside the demo */
.ctx-h { margin: 0; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.15 var(--serif); text-wrap: balance; } .ctx-h em { display: block; color: var(--ink-70); }
.ctx-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font: italic 400 1.15rem/1.4 var(--serif); color: var(--ink); }
#context .split { margin-top: 24px; }
/* Decision Engineering: the paths, and the case */
#decide .split { margin-top: 24px; }
.panel.paths { position: relative; padding: 24px; aspect-ratio: 4 / 3; } .panel.paths svg { width: 100%; height: 100%; overflow: visible; }
.paths path { fill: none; stroke: rgba(237,224,202,.22); stroke-width: .8; stroke-linecap: round; }
.paths path.cut { stroke: rgba(237,224,202,.1); }
.paths path.go { stroke: #c9a77a; stroke-width: 1.6; }
.paths circle { fill: rgba(237,224,202,.35); } .paths circle.go { fill: #c9a77a; } .paths circle.root { fill: var(--bone); }
.paths .pp-a, .paths .pp-b { position: absolute; margin: 0; font: 500 .6875rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-55); }
.paths .pp-a { left: 24px; top: 58%; } .paths .pp-b { right: 24px; top: 20px; max-width: 14ch; text-align: right; color: #c9a77a; } .paths .pp-b em { font-style: normal; color: var(--bone-55); }
.paths .pp-b { opacity: 0; transition: opacity .8s var(--ease-out-quart); } .paths.found .pp-b { opacity: 1; }
.dcase { padding: 28px; border: 1px solid var(--line-2); background: var(--paper-2); }
.dcase h3 { margin: 0; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.12 var(--serif); } .dcase h3 em { display: block; color: var(--ink-70); }
.dcase p:not(.label) { margin: 14px 0 0; color: var(--ink-70); text-wrap: pretty; }
.dnote { margin: 24px 0 0; font: italic 400 1.2rem/1.4 var(--serif); color: var(--ink); text-wrap: pretty; }
/* Enterprise AI: why no client names, said plainly */
.nonames { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: baseline; margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nonames .label { margin: 0; } .nonames p:not(.label) { margin: 0; max-width: 62ch; font: italic 400 1.25rem/1.45 var(--serif); color: var(--ink); text-wrap: pretty; }
@media (max-width: 900px) { .nonames { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
/* where it is going: ambient, and still yours */
.kamb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: end; margin-top: 96px; padding-top: 32px; border-top: 1px solid var(--ink); }
.kamb h3 { margin: 0; font: 400 clamp(1.9rem, 3.2vw, 2.6rem)/1.1 var(--serif); } .kamb h3 em { color: var(--ink-70); }
.kamb p { max-width: 56ch; margin: 0; color: var(--ink-70); text-wrap: pretty; } .kamb .firms { margin-top: 16px; color: var(--ink); } .kamb .firms b { font-weight: 500; }
.kamb .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
@media (max-width: 900px) { .kbeats { grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 40px 0 48px; } .kamb { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 64px; } }
.kfoot { margin-top: 80px; } .kfoot .chips { margin-top: 0; }
#cases { padding-top: 80px; }
/* a split: copy on one side, a dark panel of the product on the other */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 80px; align-items: center; }
.split .lede + .lede { margin-top: 16px; }
.panel { padding: 32px; background: var(--night); color: var(--bone); }
.panel .pq { padding: 16px; border: 1px solid var(--night-line); font: 400 1rem/1.4 var(--sans); }
.panel .pr { display: grid; gap: 4px; margin-top: 8px; padding: 16px; border-left: 1px solid var(--night-line); }
.panel .pr.on { background: rgba(237,224,202,.06); }
.panel .pk { font: 500 .6875rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #c9a77a; }
.panel .pr b { font: 400 1.35rem/1.2 var(--serif); } .panel .pr em { font-style: normal; color: var(--bone-70); font-size: .9375rem; }
.panel.tree { padding: 24px; aspect-ratio: 4 / 3; } .panel.tree svg { width: 100%; height: 100%; }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-70); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 1rem/1.6 var(--serif); font-variant-numeric: tabular-nums; color: var(--ink-55); grid-row: span 2; }
.steps b { display: block; font: 400 1.35rem/1.25 var(--serif); color: var(--ink); }
.qn { display: block; margin-bottom: 16px; font: 400 1rem/1 var(--serif); color: var(--bone-55); font-variant-numeric: tabular-nums; }
.dark .lede + .lede { margin-top: 16px; font: italic 400 1.35rem/1.3 var(--serif); color: var(--bone); }
.dark + .ent { margin-top: 24px; }

/* the foundation: three, flat, hairline */
.center { text-align: center; } .center .lede { margin-left: auto; margin-right: auto; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 48px; border-top: 1px solid var(--ink); text-align: left; }
.card { padding: 24px 32px 32px 0; } .card + .card { padding-left: 32px; border-left: 1px solid var(--line); }
.card .n { font: 500 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); }
.card h3 { margin: 24px 0 0; font: 400 1.75rem/1.2 var(--serif); }
.card p { margin: 8px 0 0; color: var(--ink-70); }

/* the band: the hops */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 48px; background: var(--mist); border: 1px solid var(--line); }
.hops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hop { display: inline-flex; align-items: baseline; gap: 8px; padding: 12px 16px; border: 1px solid var(--line-2); background: var(--paper-2); font: 400 .9375rem/1 var(--sans); }
.hop i { font: 500 .6875rem/1 var(--sans); letter-spacing: .08em; color: var(--ink-55); font-style: normal; }
.hop.end { background: var(--ink); color: var(--paper); border-color: var(--ink); } .hop.end i { color: var(--bone-55); }
.hops .to { color: var(--ink-55); }
.band .note { margin: 16px 0 0; font-size: .875rem; color: var(--ink-70); }

/* everything we build: KChat leads, wide; the rest in an even run */
.grid4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; margin-top: 48px; }   /* KChat spans two: three full rows */
.prod.lead { grid-column: span 2; }
.tile { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); color: var(--bone-70); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-out-quint), box-shadow .25s var(--ease-out-quart); }
.lead .tile { aspect-ratio: auto; height: calc(100% - 0px); min-height: 0; } .prod.lead a { display: grid; grid-template-rows: 1fr auto auto; height: 100%; }
.tile.on { clip-path: inset(0); }
.prod a { text-decoration: none; } .prod a:hover .tile { box-shadow: var(--lift); } .prod a:hover > h3 { color: var(--bronze); }
.prod > a > h3 { margin: 16px 0 0; font: 400 1.75rem/1.15 var(--serif); transition: color .18s var(--ease-out-quart); }
.prod > a > p { margin: 8px 0 0; color: var(--ink-70); }   /* (the tile below holds a whole app window: keep these to the caption) */
.tile .ui { position: absolute; inset: 14% 10% 0; border: 1px solid var(--night-line); border-bottom: 0; padding: 12px; font: 400 .625rem/1.5 var(--code); color: var(--bone-55); overflow: hidden; }
.lead .tile .ui { inset: 16% 22% 0; }
.tile .row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; } .tile .row.on { background: rgba(237,224,202,.08); color: var(--bone); }
.tile .bar { height: 5px; margin: 8px 0; background: rgba(237,224,202,.12); } .tile .bar.a { background: var(--bronze); width: 40%; }
.tile .pill { display: inline-block; margin: 2px; padding: 4px 8px; border: 1px solid var(--night-line); color: var(--bone-70); }
.tile .q { padding: 8px; border: 1px solid var(--night-line); color: var(--bone); }
.tile svg { width: 100%; height: 100%; }

/* works where you work */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line-2); font: 400 .875rem/1 var(--sans); }

/* the story */
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--paper-2); }
.feature .pic { position: relative; min-height: 440px; background: var(--night) url(img/story-butterfly.webp) 72% 50% / cover; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-out-quint); }
.feature .pic.on { clip-path: inset(0); }
.feature .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.55), rgba(10,10,12,.1) 60%); }   /* the backlit butterfly stays bright; the left goes darker for the words */
.feature .pic .brandline { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 16px; color: var(--bone); font: 500 1.4rem/1 var(--wordmark); letter-spacing: .16em; white-space: nowrap; }
.feature .pic .brandline .mark { width: 26px; height: 26px; } .feature .pic .brandline em { font: italic 400 1.6rem/1 var(--serif); letter-spacing: 0; opacity: .85; }
.feature .pic .play { position: absolute; left: 32px; bottom: 32px; z-index: 1; display: flex; align-items: center; gap: 16px; color: var(--bone); font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.feature .pic .play i { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--bone-55); border-radius: 50%; font-style: normal; padding-left: 2px; }   /* optical: the triangle sits right of centre */
.feature .txt { display: flex; flex-direction: column; padding: 48px; }
.feature .txt .who { font: 500 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-70); }
.feature blockquote { margin: 24px 0 0; font: italic 400 clamp(1.6rem, 2.4vw, 2.1rem)/1.25 var(--serif); }
.feature .by { margin: 24px 0 0; font-size: .875rem; color: var(--ink-55); }
.feature .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 32px; }

/* the dark band: bone on night */
.dark { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; padding: 48px; background: var(--night); color: var(--bone); }
.dark .label { color: var(--bone-70); } .dark .lede { color: var(--bone-70); } .dark .h2 em { color: var(--bone-70); }
.dark .more2 { display: inline-block; margin-top: 32px; color: var(--bone); }
.dark .more2:hover { color: #c9a77a; }
.quad { display: grid; grid-template-columns: 1fr 1fr; }
.quad div { padding: 24px 24px 32px 0; border-top: 1px solid var(--night-line); } .quad div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--night-line); }
.quad h4 { margin: 0; font: 400 1.5rem/1.2 var(--serif); } .quad p { margin: 8px 0 0; color: var(--bone-70); }

/* confidential from day one */
.ent { padding: 80px 48px; background: var(--mist); border: 1px solid var(--line); text-align: center; }
.ent .lede { margin-left: auto; margin-right: auto; }
.ent .chips { justify-content: center; } .ent .chip { font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--paper-2); }

/* what it does: the heading holds while the list scrolls past */
.cases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 80px; }
.cases .stick { position: sticky; top: 112px; align-self: start; }
.cases ol { margin: 0; padding: 0; list-style: none; counter-reset: c; border-top: 1px solid var(--ink); }
.cases li { counter-increment: c; display: grid; grid-template-columns: 48px 1fr; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cases li::before { content: counter(c, decimal-leading-zero); padding-top: 8px; font: 400 1.1rem/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--ink-55); }
.cases h3 { margin: 0; font: 400 1.75rem/1.2 var(--serif); }
.cases p { margin: 8px 0 0; color: var(--ink-70); }
.cases a { display: inline-block; margin-top: 16px; font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }

/* research */
.rhead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--ink); }
.rnav { display: flex; gap: 8px; }
.rnav button { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 0; background: transparent; cursor: pointer; transition: box-shadow .25s var(--ease-out-quart); } .rnav button:hover { box-shadow: var(--lift); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 48px) / 2.6)); gap: 24px; margin-top: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.post { scroll-snap-align: start; text-decoration: none; }
.post .img { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--night); color: var(--bone); font: 500 .95rem/1 var(--wordmark); letter-spacing: .16em; transition: box-shadow .25s var(--ease-out-quart); }
.post .img span { display: inline-flex; align-items: center; gap: 12px; } .post .img .mark { width: 18px; height: 18px; }
.post:hover .img { box-shadow: var(--lift); } .post:hover h3 { color: var(--bronze); }
.post h3 { margin: 16px 0 0; font: 400 1.6rem/1.2 var(--serif); transition: color .18s var(--ease-out-quart); }
.post p { margin: 8px 0 0; color: var(--ink-70); }
.post .rm { display: block; margin-top: 16px; font: 500 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }

/* the last call */
.cta { display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; max-width: 680px; padding: 48px; background: var(--night); color: var(--bone); }
.cta h2 { margin: 0; font: 400 clamp(2rem, 3.4vw, 2.8rem)/1.12 var(--serif); } .cta h2 em { font-style: italic; color: var(--bone-70); }
.cta .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* your footer: the wordmark and its line, three columns, the panther on the ridge multiplied into the paper, the motto on its dark ground */
.foot { position: relative; overflow: hidden; min-height: 820px; margin-top: 120px; padding: 120px 0 0; container-type: inline-size; border-top: 1px solid var(--line); }
.ftop { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 48px; }
.wordmark { display: block; font: 500 clamp(3.4rem, 6vw, 5.25rem)/.9 var(--wordmark); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.fbrand p { margin: 16px 0 0; font: 400 1.3rem/1.3 var(--serif); color: var(--ink); }
.fcols { display: grid; grid-template-columns: repeat(3, auto); gap: 80px; }
.fcols h5 { margin: 0 0 24px; font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.fcols a { display: block; margin-bottom: 12px; color: var(--ink-70); text-decoration: none; transition: color .18s var(--ease-out-quart); }
.fcols a:hover { color: var(--bronze); }
.fland { position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1672 / 611; pointer-events: none; mix-blend-mode: multiply;
  background: url(img/footer-landscape.webp) center bottom / cover no-repeat; -webkit-mask: linear-gradient(transparent 0, #000 30%); mask: linear-gradient(transparent 0, #000 30%); }
.fmotto { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 2; margin: 0; text-align: center; font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(237,224,202,.85); }

/* arrival: cards and blocks only (never headings or prose), opacity and a short rise */
.rv { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out-quart), transform .5s var(--ease-out-quart); }
.rv.on { opacity: 1; transform: none; }

@media (max-width: 1080px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prod.lead { grid-column: auto; } .prod.lead a { display: block; } .lead .tile { aspect-ratio: 4 / 3; height: auto; } .lead .tile .ui { inset: 14% 10% 0; } .links { gap: 24px; } }
@media (max-width: 900px) {
  section { padding-top: 80px; }
  .shead, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } .split.rev > .panel { order: 2; }
  .foot { min-height: 0; padding: 80px 0 calc(100cqw * 611 / 1672 * .8 + 24px); } .ftop { flex-direction: column; gap: 48px; } .fcols { grid-template-columns: repeat(2, auto); gap: 32px 48px; } .hero { padding-top: 80px; }
  .links, .nav .ctas { display: none; } .menu { display: block; }
  .nav.open .links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; gap: 0; padding: 8px var(--gut) 16px; border-bottom: 1px solid rgba(195,179,153,.55); }
  .nav.open .links a { padding: 16px 0; font-size: 1rem; }
  .band, .feature, .dark, .cases { grid-template-columns: minmax(0, 1fr); }
  .card, .card + .card { padding: 24px 0 32px; border-left: 0; } .card + .card { border-top: 1px solid var(--line); }
  .cases .stick { position: static; } .cases { gap: 48px; }
  .app { grid-template-columns: 1fr; width: 92%; margin-top: 48px; } .side { display: none; }
  .band, .dark, .cta, .feature .txt { padding: 32px 24px; } .ent { padding: 48px 24px; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .quad { grid-template-columns: 1fr; } .quad div:nth-child(even) { padding-left: 0; border-left: 0; }
  .hero .acts { flex-direction: column; align-items: center; }
  .rail { grid-auto-columns: 84%; }
  .feature .pic { min-height: 280px; }
}
/* reduced motion: spatial motion goes, a short crossfade stays */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .rv, .feed .step { transform: none !important; filter: none !important; transition: opacity .2s linear; }
  .tile, .feature .pic { clip-path: none; transition: none; } .dl-menu { animation: none; }
}

/* Why Karya and the KChat window inside v5's sections */
.whyk .shead { margin-bottom: 0; }
.whyk .wk3 { margin-top: 48px; }
.kq { margin-top: 48px; padding: 0; }
.kq + .grid4 { margin-top: 80px; }
.kq-door .btn { flex: none; max-width: 100%; height: auto; min-height: 40px; padding: 10px 18px; line-height: 1.3; white-space: normal; }
/* the story page: its own sheet; the five acts set their own spacing */
.story-page .why { padding-top: 120px; }
@media (max-width: 960px) {   /* the KChat window and its trail stack on narrow screens */
  .kq .kq-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } .kq .kq-win { height: 520px; }
  .kq .kq-door { flex-direction: column; align-items: flex-start; }
}

/* the hero: your line above the name */
.hero .eyebrow { margin: 32px 0 0; font: 500 .75rem/1.7 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-70); }
.hero .eyebrow + h1 { margin-top: 16px; }
/* the showcase: four tabs over the desk; one window at a time */
.show-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); text-align: left; }
.show-tabs button { position: relative; display: grid; align-content: start; gap: 4px; padding: 16px 18px 18px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink-55); cursor: pointer; text-align: left;
  transition: color .15s var(--ease-out-quart), background .15s var(--ease-out-quart); }
.show-tabs b { font: 400 1.3rem/1.15 var(--serif); color: inherit; } .show-tabs span { font: 400 .8125rem/1.4 var(--sans); }
.show-tabs button:hover { color: var(--ink); }
.show-tabs button[aria-selected="true"] { color: var(--ink); background: var(--paper-2); border-bottom-color: transparent; }
.show-tabs button[aria-selected="true"] b { font-style: italic; }
.show-tabs button::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--bronze); }
.show-tabs button[aria-selected="true"]::after { width: var(--tp, 0%); }   /* how long until the next one: fills while it plays */
.show-tabs + .frame { border-top: 0; }
.app[hidden] { display: none; }
/* decision odds, in the result */
.feed .done .odds { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin: 0 0 8px; padding-top: 10px; }
.feed .done .odds i { position: absolute; left: 0; top: 0; height: 3px; width: var(--w); background: var(--bronze); }
.feed .done .odds b { font-weight: 500; } .feed .done .odds em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--bone-70); }
/* context: the three phases, lit as the work reaches them */
.phase { display: flex; gap: 8px; padding: 10px 24px 0; }
.phase span { padding: 4px 10px; border: 1px solid var(--night-line); font: 500 .625rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-55); transition: color .3s var(--ease-out-quart), border-color .3s var(--ease-out-quart), background .3s var(--ease-out-quart); }
.phase span.on { color: var(--night); background: var(--bone); border-color: var(--bone); }
@media (max-width: 900px) { .show-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .show-tabs span { display: none; } .phase { padding: 10px 16px 0; } }
.feed .step.done { display: block; }   /* the result is a block: its caption and the odds sit beneath its sentence */

/* the hero, on frosted glass over the garden. The garden starts 64px up, under the bar, so the bar is glass over it
   from the first screen. The glass is the page's own paper: the picture is laid over the sheet
   a little translucent, so its grain and fibre run through the whole pane (deeper at night, where the paper is
   multiplied in instead). Hide the showcase and the glass clears: the claim moves left and the panther is there. */
@property --solid { syntax: "<percentage>"; inherits: false; initial-value: 58%; }
.hero { position: relative; }
.hero-bg { position: absolute; left: 0; right: 0; top: -64px; z-index: -1; height: calc(max(calc(100svh - 64px), 560px) + 64px); overflow: hidden; --solid: 58%;
  --fade: linear-gradient(rgba(0,0,0,1) calc(var(--solid) + (100% - var(--solid)) * 0), rgba(0,0,0,0.97) calc(var(--solid) + (100% - var(--solid)) * 0.1), rgba(0,0,0,0.9) calc(var(--solid) + (100% - var(--solid)) * 0.2), rgba(0,0,0,0.78) calc(var(--solid) + (100% - var(--solid)) * 0.3), rgba(0,0,0,0.63) calc(var(--solid) + (100% - var(--solid)) * 0.4), rgba(0,0,0,0.5) calc(var(--solid) + (100% - var(--solid)) * 0.5), rgba(0,0,0,0.37) calc(var(--solid) + (100% - var(--solid)) * 0.6), rgba(0,0,0,0.22) calc(var(--solid) + (100% - var(--solid)) * 0.7), rgba(0,0,0,0.1) calc(var(--solid) + (100% - var(--solid)) * 0.8), rgba(0,0,0,0.03) calc(var(--solid) + (100% - var(--solid)) * 0.9), rgba(0,0,0,0) calc(var(--solid) + (100% - var(--solid)) * 1));
  -webkit-mask: var(--fade); mask: var(--fade); transition: --solid .9s var(--ease-out-quint); }
.hero-bg .scene { position: absolute; max-width: none; opacity: .62; filter: blur(16px) saturate(.92); transform: scale(1.06);
  transition: filter .9s var(--ease-out-quint), opacity .9s var(--ease-out-quint), transform .9s var(--ease-out-quint); }
.night .hero-bg { mix-blend-mode: multiply; } .night .hero-bg .scene { opacity: 1; filter: blur(16px) saturate(.85) brightness(1.15); }
.hero-bg .scene > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg .panther { position: absolute; height: auto; aspect-ratio: 980 / 552; transform-origin: 63% 88%; filter: url(#pan-alpha); }
/* WebKit ignores an SVG filter on a video, so there the film is drawn into a canvas that keys out its paper (v5.js);
   once the canvas has a frame the video itself is kept playing but unseen */
.hero-bg canvas.panther { filter: none; }
.pan-gl .hero-bg video.panther { opacity: 0 !important; }
.night .hero-bg .panther { opacity: .85; }
.hero-bg .grain { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: 0; transition: opacity .9s var(--ease-out-quint); }
.hero-bg .grain.ready { opacity: 1; } .night .hero-bg .grain.ready { opacity: .8; }
.hero.bare .hero-bg .grain, .hm-split .hero-bg .grain, .hm-phone .hero-bg .grain { opacity: 0; }
.hero .eyebrow, .hero .sub { color: var(--ink); }
.lt-sunset .hero .eyebrow { color: #4a2615; }

/* the button that hides the showcase, and brings it back */
.deskbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.peek { height: 34px; padding: 0 14px; background: var(--paper-2); font-size: .75rem; }

/* hidden: the showcase steps away, the glass clears, and the claim sits left of the panther, one screen tall */
.hero { transition: min-height .9s var(--ease-out-quint); }
.hero.bare { display: flex; flex-direction: column; min-height: max(calc(100svh - 64px), 560px); padding-top: 0; }
.hero.bare .hero-bg { --solid: 100%; }   /* clear glass runs to its edge: no fade */
/* frosted, on desk: the glass runs on well past the first screen and fades out slowly into the paper over its lower
   third (as it first did), so the showcase sits on glass that thins away rather than on an edge */
.hm-desk .hero:not(.bare) .hero-bg { height: calc(clamp(760px, 120vh, 1180px) + 64px); --solid: 62%; }
/* the fade eases in and out (an S, not a straight ramp), so dark night glass melts into the paper instead of ending
   in a grey band; at night it also starts higher, for a longer, softer run */
.night.hm-desk .hero:not(.bare) .hero-bg { --solid: 46%; }
.hm-split .hero-bg .scene, .hm-phone .hero-bg .scene { opacity: 1; }   /* frosted at every size: the garden is always behind glass */
/* portrait: the band is small and the picture zoomed, so a lighter frost keeps the garden and the panther legible */
.hm-phone .hero-bg .scene { filter: blur(6px) saturate(.92); } .night.hm-phone .hero-bg .scene { filter: blur(6px) saturate(.85) brightness(1.15); }
.hero.bare .hero-bg, .hm-split .hero-bg, .hm-phone .hero-bg { mix-blend-mode: normal; }
.hero.bare .claim, .hm-split .claim { width: 100%; margin: auto auto 0; text-align: left; }   /* still the page's column, so its left edge sits under KARYA in the bar */
.hero.bare .claim > *, .hm-split .claim > * { max-width: min(46%, 620px); }
.hero.bare .claim .sub, .hm-split .claim .sub { margin-left: 0; }
.hero.bare .claim .acts, .hm-split .claim .acts { justify-content: flex-start; }
.hero.bare .desk { width: 100%; margin-top: auto; padding-top: 48px; padding-bottom: 32px; }
.hero.bare .showbody { display: none; }

/* at night the type on the picture is bone */
.night .hero .eyebrow, .night .hero .claim h1, .night .hero .claim .sub { color: var(--bone); }
.night .hero .claim h1 em { color: var(--bone-70); } .night .hero .claim .mark { color: var(--bone); }
.night .hero .claim .btn.solid { background: var(--bone); border-color: var(--bone); color: var(--night); }
.night .hero .claim .btn:not(.solid) { border-color: rgba(237,224,202,.55); color: var(--bone); }
.night .hero .show-tabs { background: var(--paper); }

/* phone landscape: the picture is the first screen, clear, with the claim on it; the showcase follows on the paper */
.hm-split .hero { padding-top: 0; }
.hm-split .hero-bg { height: calc(max(calc(100svh - 64px), 320px) + 64px); --solid: 100%; }
.hm-split .claim { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; min-height: max(calc(100svh - 64px), 320px); margin: 0 auto; padding-top: 16px; padding-bottom: 24px; }
.hm-split .claim > * { max-width: 58%; } .hm-split .hero h1 { margin-top: 8px; font-size: clamp(2rem, 6vw, 2.8rem); }
.hm-split .claim .sub { margin-top: 12px; font-size: 1rem; } .hm-split .claim .acts { flex-direction: row; margin-top: 16px; }
.hm-split .claim .eyebrow { margin-top: 0; } .hm-split .claim .mark { display: none; }

/* phone and portrait: the picture is a clear band round the panther; the claim and the showcase sit below it on the paper */
.hm-phone .hero { padding-top: calc(var(--band) + 36px); --band: min(56svh, 118vw); }
@media (orientation: portrait) and (min-width: 761px) { .hm-phone .hero { --band: min(52svh, 82vw); } }
.hm-phone .hero-bg { height: calc(var(--band) + 64px); --solid: 100%; }   /* the band ends square on the paper */
.hm-phone .claim .mark { display: none; } .hm-phone .claim .eyebrow { margin-top: 0; }
.hm-split .deskbar, .hm-phone .deskbar { display: none; }
.hm-split .hero .desk { margin-top: 48px; }
.night.hm-phone .hero .claim h1, .night.hm-phone .hero .claim .sub { color: var(--ink); } .night.hm-phone .hero .claim h1 em { color: var(--ink-70); }
.night.hm-phone .hero .claim .mark { color: var(--ink); } .night.hm-phone .hero .eyebrow { color: var(--ink); }
.night.hm-phone .hero .claim .btn.solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.night.hm-phone .hero .claim .btn:not(.solid) { border-color: var(--ink); color: var(--ink); }
.night.hm-phone .hero .show-tabs { background: none; }
@media (prefers-reduced-motion: reduce) { .hero, .hero-bg, .hero-bg .scene { transition: none; } }

/* the showcase on its own (showcase.html), set inside the hero card: the tabs on top, the window filling the rest */
body.showcase { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: transparent; }
.showcase .show-tabs { flex: none; border-top: 0; border-left: 0; }
.showcase .show-tabs button { padding: 12px 16px 13px; } .showcase .show-tabs b { font-size: 1.15rem; } .showcase .show-tabs span { font-size: .75rem; }
.showcase .frame { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 0; background: transparent; }
.showcase .frame::before, .showcase .menubar { display: none; }
.showcase .app { flex: 1; width: 100%; height: auto; min-height: 0; margin: 0; }
.showcase .feed { overflow: hidden; }
@media (max-width: 900px) { .showcase .show-tabs b { font-size: 1rem; } }

/* NIGHT: the whole site turns with the clock. The paper goes dark (the same shader, in night colours: v5.js), ink
   becomes bone, and the blocks that are dark by day sit a step lighter than the paper, so they still read as blocks.
   Everything that names the tokens follows; what is set by hand is turned below. */
.night {
  --paper: #171512; --paper-2: #1f1c18; --mist: #221f1b; --line: #3a352d; --line-2: #514a3e;
  --ink: #ede0ca; --ink-70: rgba(237,224,202,.72); --ink-55: rgba(237,224,202,.55); --ink-2: #dccfb8; --ink-3: #a59c8b; --hair: rgba(237,224,202,.2);
  --night: #25221d; --night-line: rgba(237,224,202,.16);
  --bronze: #c9a77a; --bronze-dim: rgba(201,167,122,.25); --bronze-whisper: rgba(201,167,122,.16);
  --lift: 0 4px 24px -4px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.3);
  color-scheme: dark;
}
.night body { background: var(--paper); }
/* the bar: dark glass all the way down the page */
.night .nav { border-bottom-color: var(--night-line); }
.night .nav::before, .night .nav.open .links { background-color: rgba(23,21,18,.55); }
.night .nav.open .links { border-bottom-color: var(--night-line); }
/* the hero: the garden laid straight onto the dark paper (no multiply), the paper's fibre lightening through it */
.night .hero-bg { mix-blend-mode: normal; }
.night .hero-bg .scene { opacity: .9; }
.night .hero-bg .grain { mix-blend-mode: screen; } .night .hero-bg .grain.ready { opacity: .55; }
.night .hero.bare .hero-bg .scene, .night.hm-split .hero-bg .scene, .night.hm-phone .hero-bg .scene { opacity: 1; }
.night.hm-phone .hero .claim .btn.solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* drawn lines and washes that were ink on ivory */
.night .frame::before { background-image: linear-gradient(rgba(237,224,202,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(237,224,202,.05) 1px, transparent 1px); }
.night .feature .pic::after { background: rgba(0,0,0,.5); }
.night .hop.end i { color: rgba(23,21,18,.6); }
/* the footer: the ink landscape painted in bone ink on the dark sheet (bone-ink in the page's svg: the ink turns bone,
   the paper it was painted on goes), so the ridges and the panther are light strokes on the night */
.night .fland { mix-blend-mode: normal; filter: url(#bone-ink); }
.night .fmotto { color: var(--paper); }


/* the Backlit hero (TASTE.md, "The four lights"): one photograph drawn in the hour's light by backlit.js, in place of
   the garden. The picture is plain and sharp at every size; the night file shows if WebGL is missing. */
.hero-bg .bk-img, .hero-bg .bk-cv { display: none; }
.bk .hero-bg .scene, .bk .hero-bg .grain { display: none; }
.bk .hero-bg { mix-blend-mode: normal !important; }
.bk .hero-bg .bk-img, .bk .hero-bg .bk-cv { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 42%; }
.bk.hm-phone .hero-bg .bk-img { object-position: 72% 50%; }
/* sunset: dark veins on ember, so the type over the picture is bone, as at night */
.bk.lt-sunset .hero .claim, .bk.lt-sunset .hero .eyebrow, .bk.lt-sunset .hero .claim h1, .bk.lt-sunset .hero .claim .sub, .bk.lt-sunset .hero .claim .mark { color: #ede0ca; }
.bk.lt-sunset .hero .claim h1 em { color: rgba(237,224,202,.72); }
.bk.lt-sunset .hero .claim .btn.solid { background: #ede0ca; border-color: #ede0ca; color: #171715; }
.bk.lt-sunset .hero .claim .btn:not(.solid) { border-color: rgba(237,224,202,.55); color: #ede0ca; }
.bk.lt-sunset .nav.dusk .brand, .bk.lt-sunset .nav.dusk .links a { color: #ede0ca; }
.bk.lt-sunset .nav.dusk .btn { border-color: rgba(237,224,202,.55); color: #ede0ca; }
.bk.lt-sunset .nav.dusk .btn.solid { background: #ede0ca; border-color: #ede0ca; color: #171715; }
.bk.lt-sunset .nav.dusk .menu { border-color: rgba(237,224,202,.55); } .bk.lt-sunset .nav.dusk .menu i { background: #ede0ca; }
/* on a phone the type sits below the picture's band, on the page's own paper */
.bk.lt-sunset.hm-phone .hero .claim, .bk.lt-sunset.hm-phone .hero .eyebrow, .bk.lt-sunset.hm-phone .hero .claim h1, .bk.lt-sunset.hm-phone .hero .claim .sub { color: var(--ink); }
.bk.lt-sunset.hm-phone .hero .claim h1 em { color: var(--ink-70); }
.bk.lt-sunset.hm-phone .hero .claim .btn.solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bk.lt-sunset.hm-phone .hero .claim .btn:not(.solid) { border-color: var(--ink); color: var(--ink); }

/* the Backlit pictures in the page: a plate under each section's name, and the research cards. Drawn by backlit.js in
   the hour's light; the picture's ground is the light's own (paper by day, rose at sunrise, ember at sunset, ink at night) */
.plate { position: relative; margin: 0 0 48px; aspect-ratio: 2 / 1; overflow: hidden; background: var(--paper-2); }
.whyk .plate { margin-bottom: 64px; }
.bk-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.post .img { position: relative; overflow: hidden; }
.post .img[data-bk] span { display: none; }   /* the picture is the card; its title is underneath, not on it */
@media (max-width: 760px) { .plate { aspect-ratio: 3 / 2; margin-bottom: 32px; } }   /* the photograph's own shape: nothing cropped */

/* sunrise and sunset: the page takes the hour's ground, so the Backlit pictures sit on it with no edge. Sunrise is a
   light page in rose with ink type; sunset is a dark page (it also carries .night) in ember with bone type. */
.lt-sunrise { --paper: #b5807a; --paper-2: #bb8882; --mist: #a8736d; --line: #9a6761; --line-2: #855750;
  --ink-70: rgba(23,23,21,.8); --ink-55: rgba(23,23,21,.66); --ink-3: #4a3532; --hair: rgba(23,23,21,.3);
  --bronze: #5e3f1e; --bronze-dim: rgba(94,63,30,.25); --bronze-whisper: rgba(94,63,30,.16); }
.night.lt-sunset { --paper: #a3421f; --paper-2: #ab4a26; --mist: #973c1b; --line: #c26a45; --line-2: #d27e58;
  --ink-70: rgba(237,224,202,.82); --ink-55: rgba(237,224,202,.68); --ink-3: #e3b99f; --night: #5c2410; --night-line: rgba(237,224,202,.22);
  --bronze: #ede0ca; --bronze-dim: rgba(237,224,202,.22); --bronze-whisper: rgba(237,224,202,.14); }
.night.lt-sunset .nav::before, .night.lt-sunset .nav.open .links { background-color: rgba(120,44,18,.55); }
.lt-sunrise .nav::before, .lt-sunrise .nav.open .links { background-color: rgba(181,128,122,.6); }
/* the sunset garden behind the hero is bright, so the claim on it stays dark there; on a phone the claim sits below the
   picture, on the ember page, and keeps the page's bone */
.night.lt-sunset:not(.hm-phone) .hero .claim h1, .night.lt-sunset:not(.hm-phone) .hero .claim .sub, .night.lt-sunset:not(.hm-phone) .hero .eyebrow, .night.lt-sunset:not(.hm-phone) .hero .claim .mark { color: #2a1209; }
.night.lt-sunset:not(.hm-phone) .hero .claim h1 em { color: rgba(42,18,9,.72); }
.night.lt-sunset:not(.hm-phone) .hero .claim .btn.solid { background: #2a1209; border-color: #2a1209; color: #ede0ca; }
.night.lt-sunset:not(.hm-phone) .hero .claim .btn:not(.solid) { border-color: rgba(42,18,9,.6); color: #2a1209; }

/* drift (drift.js): the Backlit pictures scattered through the sections as part of the ground. Each file's own ground is
   transparent, so only its structure shows; still, behind everything, never taking a click. The layer clips only at the
   page's sides, so a picture crossing into the next section carries on instead of being cut along a straight line */
main > section:not(.hero) { position: relative; }
.drift { position: absolute; inset: 0; z-index: 0; overflow-x: clip; overflow-y: visible; pointer-events: none; }
.drift .dp { position: absolute; display: block; opacity: 0; transition: opacity 1.2s ease; }
.drift .dp.on { opacity: var(--o, .3); }
.lt-day .drift .dp.on, .lt-sunset .drift .dp.on { opacity: calc(var(--o, .85) * .9); }
.drift .dp img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* frosted where text sits: the soft copy, blurred and quieter, shows only under the text's feathered mask */
.drift .dp .so { display: none; filter: blur(12px); opacity: .3; }
.drift .dp.glass .so { display: block; }
main > section:not(.hero) > :not(.drift) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .drift .dp { transition: none; } }

/* the footer by day and at sunrise: the landscape already multiplied into that light's paper (tools: PIL multiply),
   since Safari drops mix-blend-mode on a masked element and would show the picture's own white */
.lt-day .fland { mix-blend-mode: normal; background-image: url(img/footer-landscape-day.webp); }
.lt-sunrise .fland { mix-blend-mode: normal; background-image: url(img/footer-landscape-sunrise.webp); }

/* slightly rounded, never pills (2026-11-09, the team's call over TASTE.md's square rule): controls at --r-btn, cards
   and panels at --r-card. Images and app windows inside a card are clipped to it. */
:root { --r-btn: 6px; --r-card: 10px; }
.btn, .menu, .rnav button, .qsw button, .gbtn, .chip, .chip-cmd, .chip-cmd kbd, .hop, .peek, .dl-menu, .prose code, .prose .links li, .cx-c, .au-goals button { border-radius: var(--r-btn); }
.tile, .post .img, .feature, .frame, .dcase, .panel, .band, .dark, .ent, .cta, .way, .lead-paper, .plate, .chat .m, .ladder .rung, .cmp, .split8 .loc, .split8 .cld { border-radius: var(--r-card); }
.feature, .cmp, .lead-paper, .band, .dark { overflow: hidden; }
.show-tabs { border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; } .show-tabs button::after { top: 0; }
.show-tabs + .frame { border-radius: 0 0 var(--r-card) var(--r-card); }
