/* by lampy. Warm white, ink, one lamp. No script anywhere. */
@property --alive { syntax: '<number>'; inherits: true; initial-value: 1; }
:root {
  --page: #fcf8f7; --ink: #1d1b1a; --soft: #8c8681; --mid: #5d5854; --line: #ece6e2; --glow: 255,206,140;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --edge: clamp(16px, 6vw, 96px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--page); scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; }
::selection { background: rgba(var(--glow), .45); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.frame { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--edge); }
.arrow { font-family: var(--sans); font-weight: 400; font-size: .5em; position: relative; top: -.28em; margin-left: .45em; }

/* top bar */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-block: 28px; }
.mark { justify-self: start; display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 31px; line-height: 1; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.mark img { width: 38px; height: auto; margin-top: -6px; }
.nav { display: flex; gap: clamp(22px, 3.6vw, 64px); font-family: var(--serif); font-size: 18.5px; }
.nav a { text-decoration: none; color: #2b2826; }
.nav a:hover { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.pill { justify-self: end; display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 999px; background: #252322; color: #f5f1ee; text-decoration: none; font-family: var(--serif); font-size: 18px; line-height: 1; white-space: nowrap; transition: background .2s; }
.pill:hover { background: #000; }

/* opening */
.hero { position: relative; overflow-x: clip; overflow-y: visible; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; padding-block: clamp(36px, 8vh, 96px) clamp(36px, 7vh, 80px); }
.hero .words { padding-left: clamp(0px, 1.2vw, 18px); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: #3d3936; }
h1 { margin-top: 30px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -.028em; }
.sub { margin-top: 26px; max-width: 26em; font-size: clamp(17px, 1.55vw, 20px); line-height: 1.6; color: var(--soft); letter-spacing: .005em; }
.go { display: inline-flex; align-items: baseline; margin-top: 40px; font-family: var(--serif); font-size: 21px; text-decoration: none; }
.go:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.go .arrow { font-size: .9em; margin-left: .45em; }

/* the lamp, sketched by hand like CV Swoop's doodles: each line draws itself, then the light comes on and gently breathes.
   The lamp itself never moves (no hop, no face). Anyone who asks for less motion sees it already lit */
.lamp { position: relative; justify-self: end; width: min(540px, 100%); margin-right: -3%; }
.sketch { display: block; width: 100%; height: auto; overflow: visible; }
.sketch .ln { fill: none; stroke: var(--ink); stroke-width: 3.1; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: lpdraw .62s cubic-bezier(.5,0,.2,1) calc(.2s + var(--i) * .2s) forwards; }
.sketch .ln.faint { stroke-width: 1.6; opacity: .35; }
.sketch .ln.thin { stroke-width: 2.2; }
.sketch .earth { fill: #c79a76; opacity: 0; animation: lpfade .5s ease-out 1.2s forwards; }
@keyframes lpwash { to { opacity: 1; } }
@keyframes lpfade { to { opacity: 1; } }
/* the seedling: once the light is on, its stem keeps reaching up and new leaves unfold, each one filling out slowly */
.sketch .stem { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: lpstem 6s cubic-bezier(.3,.1,.3,1) 3s forwards; }
.sketch .leaf2 { fill: #86c492; stroke: var(--ink); stroke-width: 2.1; stroke-linejoin: round; transform-box: fill-box; transform: scale(0);
  animation: lpleaf 2s cubic-bezier(.22,1,.36,1) var(--t) forwards; }
.sketch .leaf2.l { transform-origin: 100% 100%; }
.sketch .leaf2.r { transform-origin: 0% 100%; }
.sketch .leaf2.g1 { fill: #6fb27f; }
.sketch .leaf2.g4 { fill: #a6d8ae; }
.sketch .sprout { transform-box: fill-box; transform-origin: 50% 100%; animation: lplean 6.5s ease-out 3s forwards, lpsway 6s ease-in-out 9.5s infinite alternate; }
.sketch .bloom { transform-box: fill-box; transform-origin: 50% 80%; transform: scale(0); animation: lpbloom 1.2s cubic-bezier(.34,1.56,.64,1) 8.4s forwards; }
.sketch .petal { fill: #ffb9a3; stroke: var(--ink); stroke-width: 1.8; }
.sketch .heart { fill: #f3c14f; stroke: var(--ink); stroke-width: 1.8; }
.sketch .mote { fill: #f6b94f; opacity: 0; animation: lpmote 3.8s ease-in calc(3.2s + var(--m) * .95s) infinite; }
@keyframes lplean { from { transform: rotate(0); } to { transform: rotate(4deg); } }
@keyframes lpbloom { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes lpmote { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 80% { opacity: .7; } 100% { opacity: 0; transform: translate(-34px, 78px); } }
@keyframes lpstem { 0% { stroke-dashoffset: 1; } 10% { stroke-dashoffset: .7; } 100% { stroke-dashoffset: 0; } }
@keyframes lpleaf { 0% { transform: scale(0) rotate(-8deg); } 35% { transform: scale(.55) rotate(-3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes lpsway { from { transform: rotate(3deg); } to { transform: rotate(5deg); } }
.sketch .rim { stroke-width: 2.8; }
.sketch .lit, .sketch .light { opacity: 0; animation: lpon .9s ease-out 2.35s forwards, lpbreathe 5.5s ease-in-out 3.4s infinite alternate; }
.sketch .light { animation-delay: 2.45s, 3.4s; }
.sketch .glow-in { fill: url(#bulb); }
.sketch .bulbshape { fill: #fffaf0; opacity: .9; }
.sketch .beam { fill: url(#beam); }
.sketch .pool { fill: url(#pool); }
.sketch .spark { fill: var(--ink); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: lpspark .55s cubic-bezier(.34,1.56,.64,1) calc(2.8s + var(--s) * .22s) forwards; }

/* the room: a window at sunrise (the sun keeps rising while the plant grows), a wooden desk, a mug, a lamp with some weight */
.sketch .window g { opacity: 0; animation: lpfade 1.2s ease-out .4s forwards; }
.sketch .sky { fill: url(#sky); }
.sketch .sun { fill: #ffc35c; animation: lprise 9.5s cubic-bezier(.3,.1,.3,1) 1s both; }
.sketch .sunhalo { fill: url(#sunglow); animation: lprise 9.5s cubic-bezier(.3,.1,.3,1) 1s both; }
.sketch .hill2 { fill: #cfe2c6; }
.sketch .hill1 { fill: #b5d4ad; }
.sketch .cloud { fill: #fffaf3; opacity: .95; animation: lpdrift 18s ease-in-out 2s infinite alternate; }
.sketch .wood { fill: url(#woodfade); opacity: 0; animation: lpfade .8s ease-out .3s forwards; }
.sketch .body > * { opacity: 0; animation: lpfade .6s ease-out 1.9s forwards; }
.sketch .metal { fill: #34302c; }
.sketch .joint { fill: #f3e9dd; }
.sketch .shine { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.sketch .body .shine { animation: lpshine .6s ease-out 2.2s forwards; }
.sketch .cup { fill: #9dc8a6; opacity: 0; animation: lpfade .5s ease-out 1.2s forwards; }
.sketch .steam { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; opacity: 0; animation: lpsteam 3.4s ease-in-out calc(2.2s + var(--w) * 1.3s) infinite; }
@keyframes lprise { from { transform: translateY(46px); } to { transform: translateY(0); } }
@keyframes lpdrift { from { transform: translateX(-6px); } to { transform: translateX(8px); } }
@keyframes lpshine { to { opacity: .45; } }
@keyframes lpsteam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .5; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes lpdraw { to { stroke-dashoffset: 0; } }
@keyframes lpon { 0% { opacity: 0; } 30% { opacity: .55; } 42% { opacity: .25; } 100% { opacity: 1; } }
@keyframes lpbreathe { from { opacity: 1; } to { opacity: .82; } }
@keyframes lpspark { from { transform: scale(0) rotate(-30deg); } to { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  .sketch .ln { animation: none; stroke-dashoffset: 0; }
  .sketch .lit, .sketch .light { animation: none; opacity: 1; }
  .sketch .spark { animation: none; transform: none; }
  .sketch .earth, .sketch .window g, .sketch .wood, .sketch .body > *, .sketch .cup { animation: none; opacity: 1; }
  .sketch .body .shine { opacity: .45; }
  .sketch .sun, .sketch .sunhalo, .sketch .cloud { animation: none; transform: none; }
  .sketch .steam { animation: none; opacity: .4; }
  .sketch .leaf2, .sketch .bloom { animation: none; transform: none; }
  .sketch .sprout { animation: none; transform: rotate(4deg); }
  .sketch .mote { animation: none; opacity: 0; }
  .sketch .stem { animation: none; stroke-dashoffset: 0; }
}

/* sections */
.rule { width: 58px; height: 1px; background: #e2dbd6; border: 0; }
section { padding-block: clamp(36px, 6vh, 72px); }
section + section { background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--edge)) 1px no-repeat; }
.label { font-size: 13px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: #3d3936; margin-bottom: clamp(28px, 4.5vh, 50px); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.025em; max-width: 16em; }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.55vw, 20px); color: var(--soft); }
.lead + .lead { margin-top: 12px; }

/* products: four across, hairlines between, a line between the rows */
#products { padding-top: 30px; }
.grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid li { position: relative; padding: 0 clamp(14px, 1.5vw, 24px); margin-block: 0; }
.grid li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.grid li:nth-child(4n+1) { padding-left: 0; }
.grid li:nth-child(4n+1)::before { display: none; }
.grid + .grid { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.grid a { display: block; text-decoration: none; padding-block: 4px; }
.grid h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 1.7vw, 27px); text-wrap: balance; line-height: 1.1; letter-spacing: -.025em; }
.grid a:hover h3 { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.grid p { margin-top: 14px; font-size: 16.5px; line-height: 1.55; color: var(--soft); max-width: 15.5em; }

/* the seven values */
.values { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 6vw, 96px); margin-top: clamp(32px, 5vh, 56px); counter-reset: v; }
.values li { counter-increment: v; padding: 24px 0 26px; border-top: 1px solid var(--line); }
.values li::before { content: counter(v, decimal-leading-zero); display: block; font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--soft); margin-bottom: 10px; }
.values strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.3vw, 31px); line-height: 1.15; letter-spacing: -.02em; }
.values span { display: block; margin-top: 8px; color: var(--soft); max-width: 30em; }

/* promises */
.promises { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promises li { position: relative; padding: 0 clamp(16px, 2.6vw, 40px); }
.promises li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.promises li:first-child { padding-left: 0; }
.promises li:first-child::before { display: none; }
.promises b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.promises span { display: block; margin-top: 10px; font-size: 16px; color: var(--soft); }

/* foot */
footer { margin-top: 20px; }
.foot { background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--edge)) 1px no-repeat; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding-block: 30px 40px; font-size: 14.5px; color: var(--soft); }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* plain text pages (privacy, not found) */
.doc { max-width: 720px; padding-block: clamp(24px, 6vh, 64px) 80px; }
.doc h1 { font-size: clamp(46px, 7vw, 76px); margin-top: 18px; }
.doc .sub { margin-top: 18px; }
.doc h2 { font-size: 13px; font-family: var(--sans); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #3d3936; margin: 46px 0 12px; }
.doc p, .doc li { color: #4a4542; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.1em; display: grid; gap: 8px; }
.doc .when { margin-top: 46px; font-size: 14px; color: var(--soft); }

/* tablet */
@media (max-width: 1000px) {
  .bar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .grid, .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .grid li:nth-child(n), .promises li:nth-child(n) { margin-top: 0; padding: 0 0 0 24px; }
  .grid li:nth-child(n)::before, .promises li:nth-child(n)::before { display: block; }
  .grid li:nth-child(2n+1), .promises li:nth-child(2n+1) { padding-left: 0; }
  .grid li:nth-child(2n+1)::before, .promises li:nth-child(2n+1)::before { display: none; }
}
/* phone */
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .bar { padding-block: 16px; }
  .mark { font-size: 26px; gap: 9px; }
  .mark img { width: 30px; }
  .pill { padding: 10px 18px; font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-top: 18px; }
  .hero .eyebrow { letter-spacing: .14em; font-size: 11px; }
  /* on a phone: all the words first, then the lamp, then a tight list of products */
  .hero .words { display: contents; }
  .hero .eyebrow { order: 1; } .hero h1 { order: 2; } .hero .sub { order: 3; } .hero .go { order: 4; justify-self: start; } .lamp { order: 5; }
  .hero .sub { margin-top: 14px; }
  .hero .go { margin-top: 18px; }
  .lamp { width: min(280px, 76%); margin: 16px auto 0; justify-self: center; }
  .grid { row-gap: 0; }
  .grid li:nth-child(n) { padding: 14px 0; }
  .grid + .grid li:first-child { padding-top: 14px; }
  .hero { padding-bottom: 0; }
  #products { padding-top: 34px; }
  #products > .label { margin-bottom: 18px; }
  #products .skey { margin: 0 0 8px; }
  #products .grid li:first-child { padding-top: 14px; }
  .hero .sub { margin-top: 12px; font-size: 16px; }
  .hero .go { margin-top: 14px; }
  .grid h3 { font-size: 25px; }
  .grid p { margin-top: 3px; font-size: 15.5px; max-width: none; }
  .grid + .grid { margin-top: 0; padding-top: 0; border-top: 1px solid var(--line); }
  .eyebrow, .label { font-size: 11.5px; letter-spacing: .26em; }
  h1 { margin-top: 14px; }
  .grid, .values, .promises, .cols { grid-template-columns: 1fr; }
  .grid li:nth-child(n), .promises li:nth-child(n) { padding: 22px 0; border-top: 1px solid var(--line); }
  .grid li:nth-child(n)::before, .promises li:nth-child(n)::before { display: none; }
  .grid li:first-child, .promises li:first-child { border-top: 0; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* the tile for what isn't announced yet: no name, no link */
.grid .soon { padding-top: 4px; }
.grid .soon h3 { color: var(--soft); }

/* ---------- product sketches: each product's page opens with a drawing of what it does, drawn by hand like the home page lamp.
   Ink draws itself in, solid parts pop, then one small loop shows the product at work. In the product's own colour ---------- */
.scene { display: block; width: 100%; height: auto; overflow: visible; }
.scene .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: lpdraw .6s cubic-bezier(.5,0,.2,1) calc(.2s + var(--i) * .17s) forwards; }
.scene .ln.thin { stroke-width: 2.3; }
.scene .pop { transform-box: fill-box; transform-origin: center; opacity: 0; animation: scpop .55s cubic-bezier(.34,1.56,.64,1) var(--d) forwards; }
.scene .white { fill: #fff; }
.scene .tint { fill: color-mix(in srgb, var(--accent) 16%, #fff); }
.scene .acc { fill: color-mix(in srgb, var(--accent) 55%, #fff); }
.scene .acc.soft { fill: color-mix(in srgb, var(--accent) 30%, #fff); }
.scene .card { stroke: var(--ink); stroke-width: 2.6; }
.scene .ink { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
@keyframes scpop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* CV Swoop: the card swipes right as the tick lights up, the next comes in */
.cv-swipe { transform-box: fill-box; transform-origin: 50% 100%; animation: cvswipe 4.4s cubic-bezier(.5,0,.3,1) 2.6s infinite; }
.cv-yes circle { transform-box: fill-box; transform-origin: center; }
.cv-yes { transform-box: fill-box; transform-origin: center; animation: cvyes 4.4s ease-out 2.6s infinite; }
@keyframes cvswipe { 0%, 30% { transform: none; opacity: 1; } 52% { transform: translate(150px, -16px) rotate(18deg); opacity: 0; }
  53% { transform: translate(0, 10px) scale(.92); opacity: 0; } 70%, 100% { transform: none; opacity: 1; } }
@keyframes cvyes { 0%, 24% { transform: none; } 34% { transform: scale(1.18); } 44%, 100% { transform: none; } }
.cv-yes circle { animation: scpop .55s cubic-bezier(.34,1.56,.64,1) 1.9s forwards, cvgreen 4.4s ease-out 2.6s infinite; }
@keyframes cvgreen { 0%, 24% { fill: #fff; } 32%, 46% { fill: #8fd3a4; } 60%, 100% { fill: #fff; } }

/* Interloo: the words move up with your voice; the waves pulse */
.il-scroll { animation: ilscroll 5.2s linear 1.8s infinite; }
@keyframes ilscroll { from { transform: translateY(0); } to { transform: translateY(-88px); } }
.il-wave { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; opacity: 0; animation: ilwave 1.6s ease-out calc(2.2s + var(--w) * .3s) infinite; }
@keyframes ilwave { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }

/* Stomach Hardware: steam rises, the trail flows from food to how you feel, the circle breathes */
.scene .food { fill: #f2c48e; }
.gb-steam { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: 0; animation: lpsteam 3.2s ease-in-out calc(2s + var(--w) * 1.2s) infinite; }
.gb-trail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 9; opacity: 0; animation: lpfade .6s ease-out 1.6s forwards, gbflow 1.4s linear 1.6s infinite; }
@keyframes gbflow { to { stroke-dashoffset: -20; } }
.gb-breathe { transform-box: fill-box; transform-origin: center; animation: gbbreathe 5s ease-in-out 2.4s infinite; }
@keyframes gbbreathe { 0%, 100% { transform: scale(.86); } 50% { transform: scale(1.08); } }

/* (old sketch parts, no longer used) */
.id-guide { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 7 7; opacity: 0; animation: lpfade .5s ease-out 1.6s forwards, idturn 6s linear 1.6s infinite; }
@keyframes idturn { to { stroke-dashoffset: -56; } }
.id-flash { fill: #fff; opacity: 0; animation: idflash 4.6s ease-out 2.8s infinite; }
@keyframes idflash { 0%, 40% { opacity: 0; } 43% { opacity: .95; } 60%, 100% { opacity: 0; } }
.id-tick { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: idtick 4.6s cubic-bezier(.34,1.56,.64,1) 2.8s infinite; }
.id-tick circle { fill: #8fd3a4; stroke: var(--ink); stroke-width: 2.4; }
.id-tick path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes idtick { 0%, 48% { transform: scale(0); } 58%, 90% { transform: scale(1); } 100% { transform: scale(0); } }

/* Page & Lamp: each line types in, the warm glow follows the line, keys press */
.scene .paper { fill: #fffaf1; }
.pl-type { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: pltype .85s steps(14, end) calc(1.4s + var(--t) * .95s) forwards; }
@keyframes pltype { to { stroke-dashoffset: 0; } }
.pl-glow { fill: rgba(255, 200, 120, .4); opacity: 0; animation: lpfade .4s ease-out 1.2s forwards, plglow 4.75s steps(5, jump-none) 1.4s forwards, lpbreathe 3s ease-in-out 6.4s infinite alternate; }
@keyframes plglow { from { transform: translateY(0); } to { transform: translateY(120px); } }
.pl-keys circle { fill: #fff; stroke: var(--ink); stroke-width: 2.2; opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: lpfade .4s ease-out 1s forwards, plkey 1.9s ease-in-out calc(1.4s + var(--k) * .3s) infinite; }
@keyframes plkey { 0%, 70%, 100% { transform: none; fill: #fff; } 80% { transform: translateY(3px) scale(.92); fill: color-mix(in srgb, var(--accent) 35%, #fff); } }

/* Ethical Finance: coins stack up, a new one drops in, a seedling grows on the lid, the shield keeps it safe */
.scene .glass { fill: color-mix(in srgb, var(--accent) 7%, #fff); }
.scene .coin { fill: #f3c14f; stroke: var(--ink); stroke-width: 2.4; }
.ef-stack .coin { opacity: 0; transform-box: fill-box; transform-origin: center; animation: efcoin .45s cubic-bezier(.34,1.56,.64,1) calc(1.2s + var(--c) * .25s) forwards; }
@keyframes efcoin { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
.ef-drop { opacity: 0; animation: efdrop 3s cubic-bezier(.5,0,.8,.6) 3s infinite; }
@keyframes efdrop { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 55% { opacity: 1; transform: translateY(46px); } 60%, 100% { opacity: 0; transform: translateY(52px); } }
.scene .leafy { fill: #86c492; stroke: var(--ink); stroke-width: 2.2; }

@media (prefers-reduced-motion: reduce) {
  .scene .ln, .pl-type { animation: none; stroke-dashoffset: 0; }
  .scene .pop, .ef-stack .coin, .pl-keys circle, .gb-trail, .id-guide, .pl-glow { animation: none; opacity: 1; transform: none; }
  .cv-swipe, .cv-yes, .cv-yes circle, .il-scroll, .gb-breathe, .gb-steam, .il-wave, .id-flash, .id-tick, .ef-drop { animation: none; }
  .cv-yes circle { opacity: 1; fill: #8fd3a4; } .id-tick { transform: none; } .pl-glow { transform: translateY(120px); }
}
.scene .blob { fill: color-mix(in srgb, var(--accent) 11%, transparent); opacity: 0; animation: lpfade 1s ease-out .05s forwards; }
@media (prefers-reduced-motion: reduce) { .scene .blob { animation: none; opacity: 1; } }

/* ---------- a product's own page, on one screen: name and words on the left, its sketch on the right,
   previous and next along the bottom. Its own colour and its own light ---------- */
.product { position: relative; background: var(--tint); overflow: hidden; }
.product::before { content: ""; position: absolute; right: -10vw; top: -20vh; width: 70vw; height: 90vh; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }
.pscreen { position: relative; min-height: calc(100svh - 98px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 5vw, 80px); align-items: center; padding-block: 8px 0; }
.pleft { padding-block: 12px; }
.back { display: inline-block; font-size: 15px; text-decoration: none; color: var(--mid); margin-bottom: clamp(16px, 4vh, 40px); }
.back .arrow { margin: 0 .3em 0 0; }
.back:hover { color: var(--ink); }
.count { font-size: 12.5px; font-weight: 500; letter-spacing: .3em; color: var(--accent); }
.pleft .pname { margin-top: 12px; font-size: clamp(44px, min(6.4vw, 10vh), 96px); line-height: .98; }
.pleft .sub { margin-top: 12px; color: var(--mid); font-size: clamp(17px, 1.6vw, 21px); }
.state { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .45; }
.state.on::before { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.state.half::before { opacity: 1; background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px currentColor; }
.pcols { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 44px); margin-top: clamp(20px, 4.5vh, 44px); padding-top: clamp(18px, 3.5vh, 32px);
  background: linear-gradient(color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 18%, transparent)) left top / 100% 1px no-repeat; }
.pcols .label { margin-bottom: 12px; font-size: 11.5px; color: var(--accent); }
.does, .ticks { list-style: none; display: grid; gap: 10px; }
.does li { font-family: var(--serif); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.28; letter-spacing: -.01em; }
.ticks li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.45; color: #3f3a37; }
.ticks li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); }
.pright { display: grid; justify-items: center; align-content: center; gap: 4px; }
.pright .scene { max-width: min(440px, 52vh); }
.story { max-width: 440px; }
.story .label { margin-bottom: 8px; font-size: 11.5px; color: var(--accent); }
.story blockquote { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.story .facts { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--mid); }
.pnav { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-block: 16px 22px; font-family: var(--serif); font-size: 19px;
  background: linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 16%, transparent)) left top / 100% 1px no-repeat; }
.pnav a { text-decoration: none; color: var(--ink); }
.pnav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pnav .arrow { font-size: .8em; margin: 0 .2em; top: 0; }
@media (max-width: 900px) {
  .pscreen { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .pright { display: contents; }
  .pright .scene { position: absolute; right: calc(var(--edge) - 10px); top: 4px; width: clamp(120px, 36vw, 220px); max-width: none; }
  .pleft { padding-top: 6px; }
  .back { margin-bottom: 14px; }
  .pleft .pname { font-size: clamp(38px, 10.5vw, 64px); margin-top: 8px; }
  .pleft .sub { margin-top: 8px; max-width: 60%; }
  .pcols { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; padding-top: 14px; }
  .pcols .label { margin-bottom: 8px; }
  .does { gap: 7px; }
  .does li { font-size: 16.5px; line-height: 1.25; }
  .ticks { gap: 5px; }
  .story { margin: 4px 0 2px; }
  .story .label { margin-bottom: 4px; }
  .story blockquote { font-size: 19px; }
  .story .facts { display: none; }
  .pnav { padding-block: 12px 16px; font-size: 17px; }
}

/* why I'm doing this: Lampy's own words, with a small Earth drawn by hand */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.why-big { font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -.025em; max-width: 15em; }
.why .lead { max-width: 30em; }
.why-big + .lead { margin-top: 24px; }
.sign { margin-top: 22px; font-family: var(--serif); font-style: normal; font-size: 24px; letter-spacing: -.01em; }
.sign::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.planet { width: 100%; max-width: 350px; justify-self: center; overflow: visible; order: -1; }
/* a planet that sketches itself in dead and barren, breaks apart, pulls back together and comes to life. It never stops turning.
   Flat colour and pen lines only. Where the browser cannot do the arrival, or motion is turned off, it simply rests alive */
.planet .sea { fill: #dbe9f2; }
.planet .land { fill: #b9d8b0; stroke: var(--ink); stroke-width: 2.3; stroke-linejoin: round; }
.planet .spin { transform-origin: 120px 124px; animation: ringround 50s linear infinite; }
.planet .halo { fill: #fdebd0; transform-box: fill-box; transform-origin: center; }
.planet .rim { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.planet .rim.again { stroke-width: 1.4; opacity: .4; }
.planet .pen { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.planet .pen.waves { opacity: .55; }
/* the sea is never still: each little wave drifts, fades and comes back; small glints of light twinkle on the water */
.planet .wave { fill: none; stroke: #5d8fb3; stroke-width: 1.7; stroke-linecap: round; animation: waveroll 5.2s ease-in-out calc(var(--w) * -.53s) infinite; }
.planet .glint { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: glint 3.4s ease-in-out calc(var(--g) * -.71s) infinite; }
@keyframes waveroll { 0% { opacity: 0; transform: translateX(-4px); } 25%, 65% { opacity: 1; } 100% { opacity: 0; transform: translateX(5px); } }
@keyframes glint { 0%, 55%, 100% { opacity: 0; scale: .3 1; } 70% { opacity: 1; scale: 1 1; } 85% { opacity: 0; scale: .6 1; } }
.planet .dead { display: none; }
.planet .chip, .planet .core, .planet .pull { opacity: 0; }
/* the journey after it re-forms: molten, then rock, rain and seas, first plants, a tree, the pyramids, a home */
.planet .rockskin { fill: #b7aca1; opacity: 0; }
.planet .moltenskin { fill: #f0a24e; opacity: 0; }
.planet .weather { opacity: 0; }
.planet .pyramid { transform-box: fill-box; transform-origin: 50% 100%; }
.planet .ring { transform-origin: 120px 124px; animation: ringround 50s linear infinite; }
@keyframes ringround { to { transform: rotate(360deg); } }
.planet .pyrfill { fill: #e9cf9a; }

.planet .cloud { fill: #fff; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.planet .rain path { fill: none; stroke: #6fa8d1; stroke-width: 1.8; stroke-linecap: round; animation: rainfall .75s linear calc(var(--d) * -.15s) infinite; }
.planet .tuft { fill: none; stroke: #4f9a63; stroke-width: 2; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes rainfall { from { transform: translate(2px, -8px); opacity: 0; } 25% { opacity: 1; } to { transform: translate(-4px, 14px); opacity: 0; } }

.planet .lq { fill: #ffb14a; animation: slosh 2.6s ease-in-out calc(var(--l) * -.45s) infinite alternate; }
.planet .lq.lqink { fill: var(--ink); }
.planet .lqshine { fill: #ffe0a3; }
.planet .chip.drop { fill: #ffb14a; }
/* the goo has a heartbeat, and a heart you would only see if you looked: a slightly deeper orange, no outline */
.planet .beat { transform-origin: 120px 124px; animation: heartbeat 1.5s ease-in-out infinite; }
.planet .hint { fill: #f7a03a; }
@keyframes slosh { from { transform: translate(0, 0); } to { transform: translate(var(--ax), var(--ay)); } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.09); } 22% { transform: scale(1); } 34% { transform: scale(1.055); } 48% { transform: scale(1); } }
.planet .dust { fill: #b7aca1; }
.planet .deadrock { fill: #8f857c; stroke: var(--ink); stroke-width: 2.3; stroke-linejoin: round; }
.planet .pen.crack { stroke-width: 1.7; }
.planet .edge { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.planet .living { transform-box: fill-box; transform-origin: center; }
.planet .home, .planet .leaves { transform-box: fill-box; transform-origin: 50% 100%; }
.planet .wall { fill: #fffaf1; }
.planet .roof { fill: #e7a184; }
.planet .lit { fill: #ffc35c; animation: homelight 4s ease-in-out infinite alternate; }
.planet .glow { fill: #ffc35c; opacity: .22; }
.planet .crown { fill: #8fc79a; }
.planet .spark { fill: #e9a63c; transform-box: fill-box; transform-origin: center; animation: twinkle 3.2s ease-in-out calc(var(--s) * .9s) infinite alternate; }
@keyframes homelight { from { fill: #ffc35c; } to { fill: #ffe0a3; } }
@keyframes twinkle { from { scale: .55; } to { scale: 1; } }
/* the arrival. Once the planet is fully on screen, --alive flips from 0 to 1 and every part follows on its own clock:
   (all times below are the original plan; the block is slowed to 1.4 times these)
   0s the circle; 0.9s the grey; 1.4s the craters; 1.95s the dead plant; 2.4s the indents; 3.1s hairline cracks creep out, lengthen and widen;
   5.5s it breaks into fourteen pieces and rock chips, floats while the core pulses, then the core
   pulls it all back in by about 8.6s and the living world pops out;
   then the living world fades in over it and the leaves, the house and the sparkles follow. The break-apart is one transition whose
   easing swings far out and back (the resting difference is a fiftieth of a pixel), so no script is needed */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .planet { --alive: 0; animation: planet-arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    @keyframes planet-arrive { 0%, 99.9% { --alive: 0; } 100% { --alive: 1; } }
    .planet .dead { display: block; opacity: calc(1 - var(--alive)); }
    /* 1 the circle, 2 the grey, 3 the craters, 4 the dead plant, 5 the indents */
    .planet .whole { opacity: calc(1 - var(--alive)); }
    .planet .wrim { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--alive)); }
    .planet .wdust { fill: #b7aca1; opacity: var(--alive); }
    .planet .wcrater { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--alive)); stroke-opacity: var(--alive); }
    .planet .deadtree { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--alive)); stroke-opacity: var(--alive); }
    .planet .wland { opacity: var(--alive); }
    /* 6 the lines of it breaking: hairline cracks creep out from the middle and pause, then lengthen to the edge, the cross-breaks
       appear, and they all widen */
    .planet .frac { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--alive)); stroke-opacity: var(--alive); stroke-width: calc(.7px + var(--alive) * 1.9px); }
    .planet .frac.cross { }
    /* 7 it breaks: the pieces (with their own outlines) take over from the whole world at the same instant, fly out with the rock chips,
       and pull back together */
    /* when the pieces lock back together their dark outlines thin away to nothing, quickly, so the world is whole again */
    .planet .edge { stroke-opacity: var(--alive); stroke-width: calc(2.4px - var(--alive) * 2.4px); }
    .planet .dust, .planet .inside { opacity: var(--alive); }
    .planet .slice { transform: translate(calc(var(--alive) * var(--dx) * .02px), calc(var(--alive) * var(--dy) * .02px)) rotate(calc(var(--alive) * var(--r) * .02deg)); }
    /* the core: orange goo spills out, beating quietly; it swells and dotted rings shrink into it as it pulls everything back */
    .planet .core, .planet .pull { transform-origin: 120px 124px; }
    .planet .core { opacity: calc(var(--alive) * .02); transform: scale(calc(1 + var(--alive) * .02)); }
    .planet .pull { fill: none; stroke: #e39a2e; stroke-width: 1.2; stroke-dasharray: 2 4; stroke-linecap: round; opacity: calc(var(--alive) * .02); transform: scale(calc(1 + var(--alive) * .1)); }
    .planet .chip { fill: #8f857c; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; opacity: calc(var(--alive) * .02); transform: translate(calc(var(--alive) * var(--dx) * .02px), calc(var(--alive) * var(--dy) * .02px)) rotate(calc(var(--alive) * var(--r) * .02deg)); }
    /* the living world appears molten where the goo was, and then its whole story plays:
       12s molten cools to rock; 13.4s clouds and rain, the seas fill; 15.6s the land turns green and plants sprout;
       17.6s the tree; 18.8s the pyramids pop up (civilisations); 20.4s the house; then halo and sparkles. Everything on the ground rides round with the world */
    .planet .living { opacity: var(--alive); transform: scale(calc(.82 + .18 * var(--alive))); }
    .planet .moltenskin { opacity: calc(1 - var(--alive)); }
    .planet .spin { opacity: var(--alive); }
    .planet .rockskin { opacity: calc(1 - var(--alive)); }
    .planet .land { fill: color-mix(in srgb, #b9d8b0 calc(var(--alive) * 100%), #8f857c); }
    .planet .pen.waves { opacity: calc(.55 * var(--alive)); }
    .planet .weather { opacity: calc(var(--alive) * .002); }
    .planet .tuft { transform: scale(var(--alive)); }
    .planet .leaves { transform: scale(var(--alive)); }
    .planet .pyramid { transform: scale(var(--alive)); }

    .planet .home { transform: scale(var(--alive)); }
    .planet .halo { opacity: var(--alive); transform: scale(calc(.85 + .15 * var(--alive))); }
    .planet .spark { opacity: var(--alive); }
    /* the story plays only while the planet has arrived: each step is an animation switched on by a style query on --alive.
       When the planet leaves the screen the query turns off and every step snaps back to the start at once, so a replay
       never begins with the pyramids or the house already standing */
    @container style(--alive: 1) {
      .planet .dead { animation: pa1 0.4s ease 9.72s both; }
      .planet .whole { animation: pa2 0.01s linear 5.12s both; }
      .planet .wrim { animation: pa3 1.26s cubic-bezier(.5, 0, .2, 1) 0s both; }
      .planet .wdust { animation: pa4 0.56s ease 1.26s both; }
      .planet .wcrater { animation: pa5 0.29s ease calc(1.68s + var(--c) * .12s) both, pa6 0.05s linear calc(1.68s + var(--c) * .12s) both; }
      .planet .deadtree { animation: pa7 0.38s ease 2.14s both, pa8 0.05s linear 2.14s both; }
      .planet .wland { animation: pa9 0.42s ease 2.52s both; }
      .planet .frac { animation: pa10 1.6s linear(0, .2 18%, .27 38%, .3 50%, .8 78%, 1) calc(3.11s + var(--f) * .05s) both, pa11 0.05s linear calc(3.11s + var(--f) * .05s) both, pa12 0.46s ease-in 4.58s both; }
      .planet .frac.cross { animation: pa13 0.42s ease 4.24s both, pa14 0.05s linear 4.24s both, pa15 0.42s ease-in 4.62s both; }
      .planet .edge { animation: pa16 0.01s linear 5.08s both, pa17 0.4s ease-in 9.27s both; }
      .planet .dust, .planet .inside { animation: pa18 0.01s linear 5.08s both; }
      .planet .slice { animation: pa19 4.62s linear(0, 0 3%, -3 7%, 38 20%, 47 31%, 52 44%, 55 57%, 54 64%, 47 72%, 30 80%, 8 86%, -6 90%, 1 95%, 1) 5.12s both; }
      .planet .core { animation: pa20 4.62s linear(0, 0 5%, 50 9%, 50 88%, 1 94%, 1) 5.12s both, pa21 4.62s linear(0, -42 5%, -42 7%, 9 22%, -2 30%, 3 40%, 0 52%, 6 60%, 30 74%, 40 86%, -44 94%, 1) 5.12s both; }
      .planet .pull { animation: pa22 4.62s linear(0, 0 calc(58% + var(--p) * 8%), 45 calc(62% + var(--p) * 8%), 45 calc(80% + var(--p) * 6%), 1 calc(88% + var(--p) * 4%), 1) 5.12s both, pa23 4.62s linear(0, 46 calc(57% + var(--p) * 8%), 46 calc(60% + var(--p) * 8%), -8 calc(87% + var(--p) * 4%), 1) 5.12s both; }
      .planet .chip { animation: pa24 4.62s linear(0, 0 5%, 40 20%, 48 33%, 53 46%, 56 58%, 54 66%, 40 76%, 12 85%, 0 90%, 1) 5.12s both, pa25 4.62s linear(0, 0 6%, 50 10%, 50 84%, 1 90%, 1) 5.12s both; }
      .planet .living { animation: pa26 0.5s ease 9.42s both, pa27 1.1s cubic-bezier(.34, 1.8, .64, 1) 9.42s both; }
      .planet .moltenskin { animation: pa28 1.5s ease 9.92s both; }
      .planet .spin { animation: ringround 50s linear infinite, pa29 1s ease 10.42s both; }
      .planet .rockskin { animation: pa30 2s ease 11.62s both; }
      .planet .land { animation: pa31 1.8s ease 13.02s both; }
      .planet .pen.waves { animation: pa32 1s ease 12.82s both; }
      .planet .weather { animation: pa33 3.4s linear(0, 500 12%, 500 76%, 1) 10.62s both; }
      .planet .tuft { animation: pa34 0.7s cubic-bezier(.34, 1.56, .64, 1) calc(13.82s + var(--u) * .18s) both; }
      .planet .leaves { animation: pa35 1.2s cubic-bezier(.34, 1.56, .64, 1) 15.02s both; }
      .planet .pyramid { animation: pa36 1s cubic-bezier(.34, 1.56, .64, 1) 16.22s both; }
      .planet .pyramid.small { animation-delay: 16.72s; }
      .planet .home { animation: pa37 1s cubic-bezier(.34, 1.56, .64, 1) 17.82s both; }
      .planet .halo { animation: pa38 1.8s ease 18.22s both, pa39 1.8s ease 18.22s both; }
      .planet .spark { animation: pa40 1.2s ease 19.02s both; }
    }
    @keyframes pa1 { from { opacity: 1; } to { opacity: 0; } }
    @keyframes pa2 { from { opacity: 1; } to { opacity: 0; } }
    @keyframes pa3 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes pa4 { from { opacity: 0; } to { opacity: 1; } }
    @keyframes pa5 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes pa6 { from { stroke-opacity: 0; } to { stroke-opacity: 1; } }
    @keyframes pa7 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes pa8 { from { stroke-opacity: 0; } to { stroke-opacity: 1; } }
    @keyframes pa9 { from { opacity: 0; } to { opacity: 1; } }
    @keyframes pa10 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes pa11 { from { stroke-opacity: 0; } to { stroke-opacity: 1; } }
    @keyframes pa12 { from { stroke-width: calc(.7px + 0 * 1.9px); } to { stroke-width: calc(.7px + 1 * 1.9px); } }
    @keyframes pa13 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes pa14 { from { stroke-opacity: 0; } to { stroke-opacity: 1; } }
    @keyframes pa15 { from { stroke-width: calc(.7px + 0 * 1.9px); } to { stroke-width: calc(.7px + 1 * 1.9px); } }
    @keyframes pa16 { from { stroke-opacity: 0; } to { stroke-opacity: 1; } }
    @keyframes pa17 { from { stroke-width: calc(2.4px - 0 * 2.4px); } to { stroke-width: calc(2.4px - 1 * 2.4px); } }
    @keyframes pa18 { from { opacity: 0; } to { opacity: 1; } }
    @keyframes pa19 { from { transform: translate(calc(0 * var(--dx) * .02px), calc(0 * var(--dy) * .02px)) rotate(calc(0 * var(--r) * .02deg)); } to { transform: translate(calc(1 * var(--dx) * .02px), calc(1 * var(--dy) * .02px)) rotate(calc(1 * var(--r) * .02deg)); } }
    @keyframes pa20 { from { opacity: 0; } to { opacity: 0.02; } }
    @keyframes pa21 { from { transform: scale(1); } to { transform: scale(1.02); } }
    @keyframes pa22 { from { opacity: 0; } to { opacity: 0.02; } }
    @keyframes pa23 { from { transform: scale(1); } to { transform: scale(1.1); } }
    @keyframes pa24 { from { transform: translate(calc(0 * var(--dx) * .02px), calc(0 * var(--dy) * .02px)) rotate(calc(0 * var(--r) * .02deg)); } to { transform: translate(calc(1 * var(--dx) * .02px), calc(1 * var(--dy) * .02px)) rotate(calc(1 * var(--r) * .02deg)); } }
    @keyframes pa25 { from { opacity: 0; } to { opacity: 0.02; } }
    @keyframes pa26 { from { opacity: 0; } to { opacity: 1; } }
    @keyframes pa27 { from { transform: scale(0.82); } to { transform: scale(1); } }
    @keyframes pa28 { from { opacity: 1; } to { opacity: 0; } }
    @keyframes pa29 { from { opacity: 0; } to { opacity: 1; } }
    @keyframes pa30 { from { opacity: 1; } to { opacity: 0; } }
    @keyframes pa31 { from { fill: #8f857c; } to { fill: #b9d8b0; } }
    @keyframes pa32 { from { opacity: 0; } to { opacity: 0.55; } }
    @keyframes pa33 { from { opacity: 0; } to { opacity: 0.002; } }
    @keyframes pa34 { from { transform: scale(0); } to { transform: scale(1); } }
    @keyframes pa35 { from { transform: scale(0); } to { transform: scale(1); } }
    @keyframes pa36 { from { transform: scale(0); } to { transform: scale(1); } }
    @keyframes pa37 { from { transform: scale(0); } to { transform: scale(1); } }
    @keyframes pa38 { from { opacity: 0; } to { opacity: 1; } }
    @keyframes pa39 { from { transform: scale(0.85); } to { transform: scale(1); } }
    @keyframes pa40 { from { opacity: 0; } to { opacity: 1; } }
  }
}
@media (max-width: 680px) { .why { grid-template-columns: 1fr; } .planet { max-width: 190px; justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .planet * { animation: none !important; } }

/* ---------- a product as a pop-up on the home page: press its tile and it blobs up out of the page (CSS :target, no script).
   It starts as a small round blob, swells with a little wobble, then settles into a card. Close (or tap outside) goes back to the products ---------- */
.pleft .pname { font-family: var(--serif); font-weight: 400; letter-spacing: -.028em; color: var(--ink); }
.sheet { display: none; position: fixed; inset: 0; z-index: 50; }
.sheet:target { display: grid; place-items: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(40, 32, 28, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lpfade .35s ease-out both; }
.sheet-card { position: relative; width: min(1240px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 30px; box-shadow: 0 30px 80px -20px rgba(40, 30, 20, .35); transform-origin: 50% 85%;
  animation: blobup .85s cubic-bezier(.2, .9, .25, 1) both; }
.sheet-card > .pscreen { min-height: min(720px, calc(100svh - 32px)); padding-block: 22px 0; animation: lpfade .35s ease-out .28s both; }
@keyframes blobup {
  0% { transform: translateY(26vh) scale(.12, .1); border-radius: 50%; opacity: 0; }
  30% { opacity: 1; border-radius: 48% 52% 44% 56% / 56% 44% 56% 44%; }
  55% { transform: translateY(-1.5%) scale(1.025, .985); border-radius: 38% 44% 36% 42% / 40% 36% 44% 38%; }
  75% { transform: translateY(.5%) scale(.995, 1.008); border-radius: 34px 40px 30px 38px; }
  100% { transform: none; border-radius: 30px; } }
.sheet-close { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(12px, 3vh, 30px); padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.7);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); font-size: 14px; color: var(--ink); text-decoration: none; }
.sheet-close:hover { background: #fff; }
@media (max-width: 900px) {
  .sheet:target { place-items: end center; }
  .sheet-card { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; max-height: calc(100svh - 10px); border-radius: 28px 28px 0 0; transform-origin: 50% 100%; }
  .sheet-card > .pscreen { min-height: 0; padding-top: 16px; }
  @keyframes blobup {
    0% { transform: translateY(40%) scale(.2, .12); border-radius: 50%; opacity: 0; }
    35% { opacity: 1; border-radius: 46% 54% 0 0 / 60% 60% 0 0; }
    60% { transform: translateY(-1.5%) scale(1.02, .99); border-radius: 40% 46% 0 0 / 22% 24% 0 0; }
    100% { transform: none; border-radius: 28px 28px 0 0; } }
}
@media (prefers-reduced-motion: reduce) { .sheet-card, .sheet-card > .pscreen, .sheet-scrim { animation: none; } }

/* a highlighter mark behind a heading, like a pen across the page; it sweeps in as it scrolls into view where the browser can do that */
mark.hl { color: inherit; background: linear-gradient(#fae5c8, #fae5c8) left 58% / 100% 82% no-repeat; padding: 0 .12em; margin: 0 -.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    h2:has(> mark.hl), .label:has(> mark.hl) { view-timeline: --hl block; }
    mark.hl { animation: hlsweep linear both; animation-timeline: --hl; animation-range: entry 60% cover 40%; }
    @keyframes hlsweep { from { background-size: 0% 82%; } to { background-size: 100% 82%; } }
  }
}
.label mark.hl { padding: .3em .45em; margin: 0; background-size: 100% 100%; background-position: left center; }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) {
  .label mark.hl { animation-name: hlsweepfull; }
  @keyframes hlsweepfull { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
} }

/* what we're trying to achieve: the words alone, across the width */
.achieve { display: block; }
.achieve .lead { max-width: 40em; }
.achieve h2 { text-wrap: balance; max-width: 13em; }
.pull { text-wrap: balance; margin-top: 26px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
@media (max-width: 680px) { .achieve { grid-template-columns: 1fr; }  }


/* ---------- each product's own character, shown where the product opens (its pop-up and its page), not on the home page ---------- */
/* every sketch floats a little and its colour wash slowly breathes */
.pright .scene { animation: scenefloat 6s ease-in-out infinite alternate; }
.pright .scene .blob { transform-box: fill-box; transform-origin: center; animation: lpfade 1s ease-out .05s forwards, blobbreathe 7s ease-in-out 1s infinite alternate; }
@keyframes scenefloat { from { transform: translateY(-4px); } to { transform: translateY(5px); } }
@keyframes blobbreathe { from { transform: scale(.97) rotate(-2deg); } to { transform: scale(1.04) rotate(3deg); } }
/* CV Swoop: a sunny splash and pink doodle sparks when a card is swiped, like the app's own doodles */
.p-cv-swoop .scene .blob { fill: #ffd65c; }
.cv-sparks { fill: none; stroke: #ff4f8a; stroke-width: 3; stroke-linecap: round; opacity: 0; animation: cvsparks 4.4s ease-out 2.6s infinite; }
@keyframes cvsparks { 0%, 30% { opacity: 0; transform: scale(.9); } 38% { opacity: 1; transform: scale(1); } 52%, 100% { opacity: 0; transform: scale(1.06); } }
.cv-sparks { transform-box: fill-box; transform-origin: center; }
/* Interloo: Loo's eyes peek over the teleprompter, look around and blink */
.loo-eye { fill: #fff; stroke: var(--ink); stroke-width: 2.6; }
.loo-pupil { fill: var(--ink); }
.loo-brow { fill: none; stroke: #e0563a; stroke-width: 3.6; stroke-linecap: round; }
.loo-look { animation: loolook 5.5s ease-in-out infinite; }
.loo-blink { transform-box: fill-box; transform-origin: center; animation: looblink 4.4s ease-in-out infinite; }
.loo-eyes { opacity: 0; animation: lpfade .5s ease 1.4s forwards, loopeek 1s cubic-bezier(.34, 1.56, .64, 1) 1.4s backwards; }
@keyframes loolook { 0%, 20% { transform: translate(-4px, 1px); } 35%, 60% { transform: translate(4px, 0); } 75%, 100% { transform: translate(-1px, 3px); } }
@keyframes looblink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.08); } }
@keyframes loopeek { from { transform: translateY(26px); } to { transform: none; } }
/* ID Olli: cream and hot orange, bold condensed capitals, the orange line cleaning the photo's background, the checklist ticking green */
.p-id-olli .pname { font-family: "Barlow Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", Impact, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: .92; }
.p-id-olli .count, .p-id-olli .pcols .label { font-weight: 700; }
/* Olli the llama, sketched by hand as a real llama, sits for the photo: long woolly neck, long face, wide-set eyes, banana ears */
.ll-wool, .ll-ear, .ll-top, .ll-muzzle { stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.ll-wool { fill: #f4e7d1; } .ll-top { fill: #ead9bd; } .ll-ear { fill: #f4e7d1; } .ll-earin { fill: #f4b6a6; }
.ll-muzzle { fill: #fffaf1; }
.ll-eye { fill: var(--ink); } .ll-glint { fill: #fff; } .ll-nostril { fill: var(--ink); }
.ll-pen { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ll-collar { fill: none; stroke: #7a3fe0; stroke-width: 3; stroke-linecap: round; }
.ll-pom { stroke: var(--ink); stroke-width: 1.3; } .ll-pom.p1 { fill: #ff6fae; } .ll-pom.p2 { fill: #2f6fe0; } .ll-pom.p3 { fill: #ff8a3c; }
.io-before { fill: #cfd3d8; }
.io-after { fill: #fff; transform-origin: 134px 0; animation: ioafter 5.5s cubic-bezier(.6, 0, .3, 1) 2.2s infinite; transform: scaleX(0); }
.io-slider { fill: none; stroke: var(--accent); stroke-width: 2.6; animation: ioslide 5.5s cubic-bezier(.6, 0, .3, 1) 2.2s infinite; transform: translateX(134px); opacity: 0; }
.io-knob { fill: #fff; stroke: var(--accent); stroke-width: 2.4; animation: ioslide 5.5s cubic-bezier(.6, 0, .3, 1) 2.2s infinite; transform: translateX(134px); opacity: 0; }
.io-list { stroke: #e6ddd2; stroke-width: 1.4; }
.io-tick { fill: #dff3e3; stroke: #3f9a5a; stroke-width: 1.6; }
.io-tickmark { fill: none; stroke: #2f8a4c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.io-val { fill: none; stroke: #a59f99; stroke-width: 2.4; stroke-linecap: round; opacity: 0; animation: lpfade .4s ease var(--d) forwards; }
.io-measure { fill: none; stroke: #6a3fe0; stroke-width: 1.7; stroke-dasharray: 3 4; stroke-linecap: round; opacity: 0; animation: lpfade .6s ease 1.5s forwards; }
.io-spark { fill: var(--accent); }
@keyframes ioslide { 0% { transform: translateX(134px); opacity: 0; } 6% { opacity: 1; } 50%, 86% { transform: translateX(266px); opacity: 1; } 94%, 100% { transform: translateX(266px); opacity: 0; } }
@keyframes ioafter { 0% { transform: scaleX(0); opacity: 1; } 50%, 86% { transform: scaleX(1); opacity: 1; } 94%, 100% { transform: scaleX(1); opacity: 0; } }
/* shared paint for the fuller product scenes: flat colour with an ink outline, like the lamp scene */
.scene .ol { stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.scene .ol.thinol { stroke-width: 1.6; }
.scene .k-ink { fill: #34302c; } .scene .k-mid { fill: #4a443e; } .scene .k-cream { fill: #fffaf1; } .scene .k-amber { fill: #ffc35c; }
.scene .k-green { fill: #86c492; } .scene .k-coral { fill: #ee9a7c; } .scene .k-steel { fill: #cfd6dc; } .scene .k-food { fill: #f2c48e; }
/* Page & Lamp: a typewriter, its page, and the lamp's light on the line being written */
/* the lamp's light: a fan from the shade down onto the page being typed, bright at the lamp and fading, with a pool where the letters land */
.scene .pw-beam { fill: url(#pw-light); opacity: 0; animation: pwbeam .8s ease 1.9s forwards; }
@keyframes pwbeam { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scene .pw-beam { animation: none; opacity: 1; } }
.pw-lever { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.p-page-and-lamp .pl-keys .k { fill: #fffaf1; stroke: var(--ink); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: lpfade .4s ease-out 1.1s forwards, plkey 1.5s ease-in-out calc(1.6s + var(--k) * .22s) infinite; }
/* Stomach Hardware: the bowl's stripe and its shadow on the table */
.sh-stripe { fill: #9fc2dd; } .sh-shadow { fill: rgba(40, 60, 45, .1); }
/* Ethical Finance: the jar's label, and the plant growing out of the coins */
.ef-label { fill: #fffaf1; }
.ef-stem { fill: none; stroke: #4f9a63; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lpdraw 1.8s ease-out 2.4s forwards; }
@media (prefers-reduced-motion: reduce) { .loo-eyes { animation: none; opacity: 1; } .loo-look, .loo-blink, .pright .scene, .cv-sparks { animation: none; }
  .io-after { animation: none; transform: none; } .io-slider, .io-knob { animation: none; transform: translateX(266px); opacity: 1; } .io-val, .io-measure { animation: none; opacity: 1; } }

/* Page & Lamp's typewriter works like a real one: the carriage slides left a step per key while the typebar strikes, the bell dings, the carriage returns and the paper rolls up a line (made by a small script; timings must stay in step) */
.tw-carriage { animation: tw-carriage 10.2s 1.4s both; }
.tw-paper { animation: tw-paper 10.2s 1.4s both; }
.tw-line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tw-type 1.8s steps(var(--n), jump-end) var(--a) both; }
@keyframes tw-type { to { stroke-dashoffset: 0; } }
.tw-bar { fill: var(--ink); stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: tw-bar 10.2s 1.4s linear both; }
.tw-ding { fill: none; stroke: #f0a63a; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 100% 100%; animation: tw-ding 10.2s 1.4s linear both; }
@keyframes tw-carriage { 0% { transform: translateX(0); } 7.843% { transform: translateX(0); animation-timing-function: steps(11, jump-end); } 25.490% { transform: translateX(-84px); animation-timing-function: cubic-bezier(.5,0,.3,1); } 29.412% { transform: translateX(0); } 30.392% { transform: translateX(0); animation-timing-function: steps(8, jump-end); } 48.039% { transform: translateX(-62px); animation-timing-function: cubic-bezier(.5,0,.3,1); } 51.961% { transform: translateX(0); } 52.941% { transform: translateX(0); animation-timing-function: steps(10, jump-end); } 70.588% { transform: translateX(-76px); animation-timing-function: cubic-bezier(.5,0,.3,1); } 74.510% { transform: translateX(0); } 75.490% { transform: translateX(0); animation-timing-function: steps(7, jump-end); } 93.137% { transform: translateX(-50px); animation-timing-function: cubic-bezier(.5,0,.3,1); } 97.059% { transform: translateX(0); } 100% { transform: translateX(0); } }
@keyframes tw-paper { 0% { transform: translateY(40px); animation-timing-function: cubic-bezier(.2,.8,.3,1); } 6.863% { transform: translateY(0); } 25.490% { transform: translateY(0px); animation-timing-function: cubic-bezier(.5,0,.3,1); } 29.412% { transform: translateY(-18px); } 48.039% { transform: translateY(-18px); animation-timing-function: cubic-bezier(.5,0,.3,1); } 51.961% { transform: translateY(-36px); } 70.588% { transform: translateY(-36px); animation-timing-function: cubic-bezier(.5,0,.3,1); } 74.510% { transform: translateY(-54px); } 93.137% { transform: translateY(-54px); animation-timing-function: cubic-bezier(.5,0,.3,1); } 97.059% { transform: translateY(-72px); } 100% { transform: translateY(-72px); } }
@keyframes tw-bar { 0% { transform: scaleY(0); } 8.467% { transform: scaleY(0); } 9.251% { transform: scaleY(1); } 10.036% { transform: scaleY(0); } 10.071% { transform: scaleY(0); } 10.856% { transform: scaleY(1); } 11.640% { transform: scaleY(0); } 11.676% { transform: scaleY(0); } 12.460% { transform: scaleY(1); } 13.244% { transform: scaleY(0); } 13.280% { transform: scaleY(0); } 14.064% { transform: scaleY(1); } 14.848% { transform: scaleY(0); } 14.884% { transform: scaleY(0); } 15.668% { transform: scaleY(1); } 16.453% { transform: scaleY(0); } 16.488% { transform: scaleY(0); } 17.273% { transform: scaleY(1); } 18.057% { transform: scaleY(0); } 18.093% { transform: scaleY(0); } 18.877% { transform: scaleY(1); } 19.661% { transform: scaleY(0); } 19.697% { transform: scaleY(0); } 20.481% { transform: scaleY(1); } 21.266% { transform: scaleY(0); } 21.301% { transform: scaleY(0); } 22.086% { transform: scaleY(1); } 22.870% { transform: scaleY(0); } 22.906% { transform: scaleY(0); } 23.690% { transform: scaleY(1); } 24.474% { transform: scaleY(0); } 24.510% { transform: scaleY(0); } 25.294% { transform: scaleY(1); } 26.078% { transform: scaleY(0); } 31.618% { transform: scaleY(0); } 32.402% { transform: scaleY(1); } 33.186% { transform: scaleY(0); } 33.824% { transform: scaleY(0); } 34.608% { transform: scaleY(1); } 35.392% { transform: scaleY(0); } 36.029% { transform: scaleY(0); } 36.814% { transform: scaleY(1); } 37.598% { transform: scaleY(0); } 38.235% { transform: scaleY(0); } 39.020% { transform: scaleY(1); } 39.804% { transform: scaleY(0); } 40.441% { transform: scaleY(0); } 41.225% { transform: scaleY(1); } 42.010% { transform: scaleY(0); } 42.647% { transform: scaleY(0); } 43.431% { transform: scaleY(1); } 44.216% { transform: scaleY(0); } 44.853% { transform: scaleY(0); } 45.637% { transform: scaleY(1); } 46.422% { transform: scaleY(0); } 47.059% { transform: scaleY(0); } 47.843% { transform: scaleY(1); } 48.627% { transform: scaleY(0); } 53.725% { transform: scaleY(0); } 54.510% { transform: scaleY(1); } 55.294% { transform: scaleY(0); } 55.490% { transform: scaleY(0); } 56.275% { transform: scaleY(1); } 57.059% { transform: scaleY(0); } 57.255% { transform: scaleY(0); } 58.039% { transform: scaleY(1); } 58.824% { transform: scaleY(0); } 59.020% { transform: scaleY(0); } 59.804% { transform: scaleY(1); } 60.588% { transform: scaleY(0); } 60.784% { transform: scaleY(0); } 61.569% { transform: scaleY(1); } 62.353% { transform: scaleY(0); } 62.549% { transform: scaleY(0); } 63.333% { transform: scaleY(1); } 64.118% { transform: scaleY(0); } 64.314% { transform: scaleY(0); } 65.098% { transform: scaleY(1); } 65.882% { transform: scaleY(0); } 66.078% { transform: scaleY(0); } 66.863% { transform: scaleY(1); } 67.647% { transform: scaleY(0); } 67.843% { transform: scaleY(0); } 68.627% { transform: scaleY(1); } 69.412% { transform: scaleY(0); } 69.608% { transform: scaleY(0); } 70.392% { transform: scaleY(1); } 71.176% { transform: scaleY(0); } 77.031% { transform: scaleY(0); } 77.815% { transform: scaleY(1); } 78.599% { transform: scaleY(0); } 79.552% { transform: scaleY(0); } 80.336% { transform: scaleY(1); } 81.120% { transform: scaleY(0); } 82.073% { transform: scaleY(0); } 82.857% { transform: scaleY(1); } 83.641% { transform: scaleY(0); } 84.594% { transform: scaleY(0); } 85.378% { transform: scaleY(1); } 86.162% { transform: scaleY(0); } 87.115% { transform: scaleY(0); } 87.899% { transform: scaleY(1); } 88.683% { transform: scaleY(0); } 89.636% { transform: scaleY(0); } 90.420% { transform: scaleY(1); } 91.204% { transform: scaleY(0); } 92.157% { transform: scaleY(0); } 92.941% { transform: scaleY(1); } 93.725% { transform: scaleY(0); } 100% { transform: scaleY(0); } }
@keyframes tw-ding { 0% { opacity: 0; } 25.392% { opacity: 0; transform: scale(.6); } 26.275% { opacity: 1; transform: scale(1); } 30.392% { opacity: 0; transform: scale(1.15); } 47.941% { opacity: 0; transform: scale(.6); } 48.824% { opacity: 1; transform: scale(1); } 52.941% { opacity: 0; transform: scale(1.15); } 70.490% { opacity: 0; transform: scale(.6); } 71.373% { opacity: 1; transform: scale(1); } 75.490% { opacity: 0; transform: scale(1.15); } 93.039% { opacity: 0; transform: scale(.6); } 93.922% { opacity: 1; transform: scale(1); } 98.039% { opacity: 0; transform: scale(1.15); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tw-carriage, .tw-bar, .tw-ding { animation: none; }
  .tw-paper { animation: none; transform: translateY(-72px); }
  .tw-line { animation: none; stroke-dashoffset: 0; }
}

/* Stomach Hardware's phone shows a happy stomach */
.sh-belly { fill: #f4a99a; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.sh-tube { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.sh-face { fill: var(--ink); } .sh-smile { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }

/* Research into poverty: lights come on in the houses, people speak, we write it down */
.rs-win { fill: #ffc35c; stroke: var(--ink); stroke-width: 1.6; }
.rs-pencil { fill: #f2c48e; }
.scene .rs-trail { animation-delay: 3.4s, 3.4s; }
.rs-say { transform-box: fill-box; transform-origin: 50% 100%; animation: rssay 3.6s ease-in-out calc(4s + var(--s) * .6s) infinite; }
@keyframes rssay { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .rs-say { animation: none; } }

/* how each product is doing: green live, yellow in development, half and half when part of it is out */
:root { --s-live: #3a9d5d; --s-dev: #e3a521; }
.sdot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 8px; vertical-align: .5em; flex: none; }
.sdot.live { background: var(--s-live); }
.sdot.dev { background: var(--s-dev); }
.sdot.half { background: linear-gradient(90deg, var(--s-live) 50%, var(--s-dev) 50%); }
.skey { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -14px 0 34px; font-size: 13px; color: #6b6560; }
.skey > span { display: inline-flex; align-items: center; }
.skey .sdot { margin: 0 7px 0 0; vertical-align: 0; }
/* the badge in each pop-up uses the same colours */
.state::before { opacity: 1; background: var(--s-dev); }
.state.on::before { background: var(--s-live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-live) 18%, transparent); }
.state.half::before { background: linear-gradient(90deg, var(--s-live) 50%, var(--s-dev) 50%); box-shadow: none; }

/* Research: under the story, a dead plant is watered and comes back to life. Plays each time the pop-up opens. */
.revive { display: block; width: min(300px, 70%); margin-top: 22px; overflow: visible; }
.revive .rv-line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.revive .rv-pot { fill: #d9825b; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.revive .rv-body { fill: color-mix(in srgb, var(--accent) 22%, #fff); stroke: var(--ink); stroke-width: 2.2; }
.revive .rv-spout, .revive .rv-handle { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.revive .rv-can { transform-box: view-box; transform-origin: 62px 78px; animation: rvcan 3s ease-in-out 1.2s both; }
@keyframes rvcan { 0% { transform: translateY(30px) rotate(0); } 15% { transform: translateY(0) rotate(0); } 28%, 70% { transform: translateY(0) rotate(24deg); } 86% { transform: translateY(0) rotate(0); } 100% { transform: translateY(30px) rotate(0); } }
.revive .rv-drop { fill: #6fb6e0; opacity: 0; animation: rvdrop .55s ease-in calc(2.1s + var(--k) * .18s) 3; }
@keyframes rvdrop { 0% { opacity: 0; transform: translate(4px, 12px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(42px, 34px); } }
.revive .rv-dead { fill: none; stroke: #9b8566; stroke-width: 2.6; stroke-linecap: round; animation: rvgone .6s ease 3.1s both; }
.revive .rv-dleaf { fill: #cdb994; stroke: #9b8566; stroke-width: 1.8; }
@keyframes rvgone { to { opacity: 0; } }
.revive .rv-live { transform-box: view-box; transform-origin: 150px 80px; transform: scale(0); animation: rvgrow 1.3s cubic-bezier(.34,1.4,.64,1) 3.1s forwards, rvsway 3.4s ease-in-out 4.6s infinite alternate; }
@keyframes rvgrow { from { transform: scale(.15, 0); } to { transform: scale(1); } }
@keyframes rvsway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.revive .rv-stem { fill: none; stroke: #3f8a52; stroke-width: 2.8; stroke-linecap: round; }
.revive .rv-leaf { fill: #86c492; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.revive .rv-flower circle { fill: #f6a9bf; stroke: var(--ink); stroke-width: 1.6; }
.revive .rv-flower .rv-mid { fill: #ffc35c; }
.revive .rv-flower { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: scpop .5s cubic-bezier(.34,1.56,.64,1) 4s forwards; }
.revive .rv-spark { fill: none; stroke: #f0a63a; stroke-width: 2.2; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center; animation: rvspark 1.6s ease calc(4.3s + var(--k) * .25s) 2 both; }
@keyframes rvspark { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .revive .rv-drop, .revive .rv-spark { animation: none; }
  .revive .rv-can { animation: none; transform: translateY(30px); }
  .revive .rv-dead { animation: none; opacity: 0; }
  .revive .rv-live, .revive .rv-flower { animation: none; transform: none; }
}
/* on small screens the pop-up must still fit one screen, so the plant is left out there */
@media (max-width: 760px), (max-height: 740px) { .revive { display: none; } }
.grid .tail { white-space: nowrap; }

/* ---------- the finale: the last thing you see before the footer.
   "We're on your side." reveals word by word as you scroll; then the hanging lamp clicks on, the cord tugs and warm light pours
   over it.
   Without scroll-driven animation (or with motion turned off) it simply rests lit. ---------- */
.finale { position: relative; overflow: clip; text-align: center; padding-block: clamp(40px, 6vh, 70px) clamp(36px, 5vh, 56px); margin-top: clamp(16px, 3vh, 36px);
  border-top: 1px solid var(--line); }
.fin-lamp { display: block; width: 100%; overflow: visible; }
/* the lamp is a switch you can click (or tab to and press space): a hidden checkbox and its label, no script */
.fin-lamp-btn { position: relative; z-index: 1; display: block; width: clamp(110px, 12vw, 150px); margin: calc(-1 * clamp(40px, 6vh, 70px)) auto 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fin-switch { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.fin-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.finale:has(.fin-switch:focus-visible) .fin-lamp-btn { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 14px; }
.fin-lamp-btn:hover .fin-bead { fill: #ffc35c; }
.fin-lamp-btn:active .fin-pull { translate: 0 9px !important; }
.fin-pull { transition: translate .15s ease; }
/* switched off: the bulb goes cold, the light and its rays go and the glow leaves the words */
.finale:has(.fin-switch:checked) .fin-line .you { text-shadow: none !important; }
.fin-cord { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.fin-cord.thin { stroke-width: 1.6; }
.fin-bead { fill: #fff; stroke: var(--ink); stroke-width: 1.8; }
.fin-cap, .fin-shade { fill: #34302c; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.fin-bulb { fill: #ffc35c; stroke: var(--ink); stroke-width: 2; }
.fin-ray { fill: none; stroke: #f0a63a; stroke-width: 2.6; stroke-linecap: round; }
.fin-inner { position: relative; z-index: 1; }
.fin-line { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.4vw, 128px); line-height: 1; letter-spacing: -.035em; margin: clamp(8px, 1.5vh, 18px) auto 0; max-width: 12ch; text-wrap: balance; }
.fin-line .w { display: inline-block; }
.fin-line .you { font-style: italic; }
.fin-lead { max-width: 46ch; margin: clamp(18px, 3vh, 28px) auto 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--mid); text-wrap: pretty; }
.fin-act { margin-top: 22px; }
.fin-act .pill { font-size: 19px; padding: 15px 28px; }
.fin-act .pill .arrow { margin-left: 8px; }
.fin-sign { margin-top: 16px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .finale { view-timeline: --fin block; }
    .fin-line .w { opacity: .1; translate: 0 .12em; animation: fin-word linear both; animation-timeline: --fin;
      animation-range: cover calc(14% + var(--i) * 4%) cover calc(20% + var(--i) * 4%); }
    @keyframes fin-word { to { opacity: 1; translate: 0 0; } }
    /* the light clicks on once the last word is there */
    .fin-line .you { animation: fin-word linear both, fin-glow linear both; animation-timeline: --fin, --fin;
      animation-range: cover calc(14% + var(--i) * 4%) cover calc(20% + var(--i) * 4%), cover 34% cover 40%; }
    .fin-lead, .fin-act, .fin-sign { animation: fin-rise linear both; animation-timeline: --fin; animation-range: cover 36% cover 44%; }
    @keyframes fin-on { to { opacity: 1; } }
    @keyframes fin-bulb { from { fill: #e9e2da; } to { fill: #ffc35c; } }
    @keyframes fin-tug { 0%, 100% { translate: 0 0; } 50% { translate: 0 9px; } }
    @keyframes fin-glow { from { text-shadow: none; } to { text-shadow: 0 0 .5em rgba(var(--glow), .9); } }
    @keyframes fin-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
  }
}
@media (max-width: 680px) { .fin-line { max-width: 9ch; } }



/* the menu button and its pop-out menu: only where the top links are hidden (tablet and phone) */
.burger { display: none; width: 30px; height: 22px; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
.menu { display: none; position: fixed; inset: 0; z-index: 60; }
.menu:target { display: block; }
.menu-scrim { position: absolute; inset: 0; background: rgba(40, 32, 28, .25); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: lpfade .25s ease-out both; }
.menu-card { position: absolute; top: 12px; right: 12px; left: 12px; display: grid; gap: 2px; padding: 56px 26px 26px; border-radius: 26px; background: var(--page);
  box-shadow: 0 24px 60px -18px rgba(40, 30, 20, .35); transform-origin: 90% 0; animation: blobup .5s cubic-bezier(.2, .9, .25, 1) both; }
.menu-card a { font-family: var(--serif); font-size: 30px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu-card a:last-child { border-bottom: 0; }
.menu-card .menu-close { position: absolute; top: 14px; right: 18px; font-family: var(--sans, inherit); font-size: 22px; border: 0; padding: 6px; }
@media (max-width: 1000px) {
  .bar { grid-template-columns: 1fr auto auto; gap: 18px; }
  .burger { display: flex; }
}

/* words that differ between laptop and phone: on a phone the top says "People first. We listen, then we build." */
.on-phone { display: none; }
@media (max-width: 680px) {
  .on-wide { display: none; }
  .on-phone { display: inline; }
  .hero .eyebrow { display: none; }
}

/* on a phone the "why" section gets its own colour so it isn't white on white: a soft dawn, warm peach at the top
   fading into a pale sky blue, with a warm glow behind the planet */
@media (max-width: 680px) {
  .why { background:
      radial-gradient(circle at 30% 17%, rgba(255, 214, 160, .55), transparent 42%),
      linear-gradient(180deg, #fbe9da 0%, #f8eee6 45%, #e6f0f3 100%);
    padding-block: 46px 52px; margin-block: 8px; }
  .why .label mark.hl { background: none; padding: 0; animation: none; }
}
/* on a phone: the "Why we're doing this" label sits to the right of the planet, level with its top, to save space */
@media (max-width: 680px) {
  .why { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: start; }
  .why .why-words { display: contents; }
  .why .planet { grid-column: 1; grid-row: 1; width: 168px; max-width: 46vw; justify-self: start; }
  .why #why-h { grid-column: 2; grid-row: 1; align-self: start; margin: 14px 0 0; white-space: nowrap; font-size: 10.5px; letter-spacing: .16em; }
  .why .why-big, .why .lead, .why .sign { grid-column: 1 / -1; }
  .why .why-big { margin-top: 20px; }
}

/* the pull when the closing lamp is switched (started by site.js): the cord is tugged down and springs back,
   and the lamp swings a little on its cord */
.finale .fin-pull.tug { animation: fin-yank .7s cubic-bezier(.3, .7, .4, 1) both; animation-timeline: auto; }
@keyframes fin-yank { 0% { translate: 0 0; } 22% { translate: 0 18px; } 45% { translate: 0 -4px; } 65% { translate: 0 5px; } 82% { translate: 0 -1px; } 100% { translate: 0 0; } }
.fin-lamp.swing { transform-box: view-box; transform-origin: 80px 0; animation: fin-swing 1.4s ease-out both; }
@keyframes fin-swing { 0% { rotate: 0deg; } 18% { rotate: 4deg; } 40% { rotate: -3deg; } 60% { rotate: 1.8deg; } 80% { rotate: -.8deg; } 100% { rotate: 0deg; } }
@media (prefers-reduced-motion: reduce) { .finale .fin-pull.tug, .fin-lamp.swing { animation: none; } }

/* the closing lamp's light lives inside the lamp drawing so it swings with the lamp. Switching off fades it out smoothly
   (the bulb goes cold); switching on flickers it back (site.js adds "flick") */
.fin-lamp { overflow: visible; }
.fin-beam { fill: url(#fin-light); }
.fin-beam.soft { opacity: .45; } /* a wider, fainter copy gives soft edges without a blur, which phones find slow */
.fin-bulb-off { fill: #e9e2da; stroke: var(--ink); stroke-width: 2; opacity: 0; transition: opacity .3s ease; }
.finale:has(.fin-switch:checked) .fin-bulb-off { opacity: 1; }
.fin-sw { transition: opacity .35s ease; }
.finale:has(.fin-switch:checked) .fin-sw { opacity: 0; }
.fin-sw.flick { animation: fin-flick .45s linear; }
@keyframes fin-flick { 0% { opacity: 0; } 18% { opacity: 1; } 32% { opacity: .25; } 46% { opacity: 1; } 58% { opacity: .6; } 72%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fin-sw.flick { animation: none; } }

/* arriving at the bottom (site.js): the light starts off, the lamp jiggles, the cord pulls itself and the light flickers on.
   Without the script the lamp is simply lit */
.finale.waiting .fin-sw { opacity: 0; }
.finale.waiting .fin-bulb-off { opacity: 1; }
.finale.waiting .fin-line .you { text-shadow: none !important; }
.fin-lamp.giggle { transform-box: view-box; transform-origin: 80px 0; animation: fin-giggle .75s ease-in-out both; }
@keyframes fin-giggle { 0% { rotate: 0deg; translate: 0 0; } 12% { rotate: -5deg; translate: 0 -2px; } 26% { rotate: 5deg; } 40% { rotate: -4deg; translate: 0 -1px; }
  54% { rotate: 3.5deg; } 68% { rotate: -2deg; } 84% { rotate: 1deg; } 100% { rotate: 0deg; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .fin-lamp.giggle { animation: none; } }

/* keeping it smooth on phones: the closing lamp moves as one picture the phone can turn cheaply, and
   every little looping animation (the planet's sea and spin, the lamp's light and dust) pauses while it is off screen (site.js) */
.fin-lamp { will-change: transform; }
.off-screen * { animation-play-state: paused !important; }
.planet.story-done .beat, .planet.story-done .lq, .planet.story-done .rain path { animation: none; }
/* on a phone the products sit two to a row, so the list is half as long */
@media (max-width: 680px) {
  #products .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 0; }
  #products .grid + .grid { border-top: 0; margin-top: 0; padding-top: 0; }
  #products .grid li:nth-child(n), #products .grid li:first-child { padding: 13px 0 12px; border-top: 1px solid var(--line); }
  #products .grid:first-of-type li:nth-child(-n+2) { border-top: 0; padding-top: 8px; }
  #products .grid li::before { display: none; }
  #products .grid h3 { font-size: 20px; line-height: 1.15; }
  #products .grid p { margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
  #products .grid .sdot { margin-left: 6px; }
  #products .grid .soon h3 { font-size: 20px; }
}

/* phones: three tiles whose product keeps changing at random (site.js swaps one box every few seconds, never showing one product twice) and
   a fourth, "Explore all our work", that opens the full list. Laptops never see these tiles and keep the full grid */
.grid.rot { display: none; }
@media (max-width: 680px) {
  #products .grid.rot { display: grid; }
  #products .allwork { display: none; }
  #products .allwork:target { display: block; scroll-margin-top: 20px; }
  #products:has(.allwork:target) .grid.rot { display: none; }
  #products .grid.rot li { border-top: 0; padding-top: 8px; }
  #products .grid.rot li:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 13px; }
  .grid.rot .slot { display: grid; }
  .grid.rot .ri { grid-area: 1 / 1; display: block; text-decoration: none; opacity: 0; visibility: hidden; translate: 0 8px;
    transition: opacity .45s ease, translate .45s ease, visibility 0s linear .45s; }
  .grid.rot .ri.on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .55s ease .45s, translate .55s ease .45s, visibility 0s linear .45s; }
  .grid.rot .all a { display: block; align-self: center; font-family: var(--serif); font-size: 22px; line-height: 1.15; letter-spacing: -.02em;
    text-decoration: none; color: var(--ink); }
  .grid.rot .all .arrow { margin-left: 8px; }
}
@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  .grid.rot .ri, .grid.rot .ri.on { transition: none; translate: none; }
}
/* on a phone the work is right under the top, so the "Explore our work" link there would only repeat the tile below */
/* on a phone "Explore our work" lives in the fourth box of Our work, so the top link is hidden */
.hero .go-phone { display: none; }
@media (max-width: 680px) {
  .hero .go { display: none; }
  .hero .go.go-phone { display: none; }
}
@media (max-width: 680px) {
  .grid.rot .all a { color: var(--ink); font-size: 21px; white-space: nowrap; }
}
/* on a phone the "Our work" heading is replaced by "Explore our work" with its arrow, which opens the full list
   (the heading stays for screen readers) */
.go-work { display: none; }
@media (max-width: 680px) {
  #products > .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
  #products .go-work { display: inline-flex; margin: 0 0 16px; color: var(--ink); }
}
