/* Silvertrees — «small beginnings» identity
   disc = something launched · seed = something starting · moat = the white gap where two things meet
   rings = growth, drawn in silver · hat yellow = only for "start building" */

@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbmono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --mist: #f2f3f4;
  --silver: #c9cdd1;
  --silver-2: #e3e5e8;
  --graphite: #4d4c4a;
  --ink: #232220;
  --ink-2: #5c5b58;
  --sky: #02a3fd;
  --sky-ink: #006fb3;
  --sky-type: #0098ec; /* logo blue nudged to 3.1:1 for large type on white */
  --hat: #feb916;
  --hat-deep: #e98604;
  --hat-ink: #8a5a00; /* hat as small text: 5.9:1 on white */
  --night: #1f1e1d;
  --night-2: #2b2a28;
  --sky-night: #45bcff;

  --moat: 6px;
  --f: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1320px;
  --gut: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --grow: cubic-bezier(.34, 1.36, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
::selection { background: var(--sky); color: #fff; }
:focus-visible { outline: 2px solid var(--sky-ink); outline-offset: 3px; }
.dark :focus-visible, .foot :focus-visible, dialog :focus-visible { outline-color: var(--sky-night); }
.start :focus-visible { outline-color: var(--ink); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 99; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
.d1, .d2, .d3, .d4 { font-weight: 700; letter-spacing: -.035em; text-transform: lowercase; margin: 0; text-wrap: balance; }
.d1 { font-size: clamp(48px, 8.4vw, 128px); line-height: .9; letter-spacing: -.045em; }
.d2 { font-size: clamp(36px, 5.4vw, 80px); line-height: .95; }
.d3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.02; letter-spacing: -.025em; }
.d4 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.15; letter-spacing: -.015em; }
.d1 em, .d2 em, .d3 em { font-style: normal; color: var(--sky-type); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 38ch; margin: 0; text-wrap: pretty; }
.prose { max-width: 64ch; }
.prose p { margin: 0 0 1em; text-wrap: pretty; }
/* the tracked lowercase of the logo's "web development" line */
.tag {
  font: 600 12.5px/1.3 var(--f); letter-spacing: .34em; text-transform: lowercase;
  color: var(--sky-ink); margin: 0;
}
.tag.on-dark { color: var(--sky-night); }
.num { font: 500 13px/1 var(--mono); letter-spacing: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- seed glyph: ring = starting, dot = launched ---------- */
.seed { display: inline-block; inline-size: .62em; block-size: .62em; border-radius: 50%; border: .14em solid currentColor; vertical-align: .02em; flex: none; }
.seed.live { background: currentColor; border-color: currentColor; box-shadow: 0 0 0 .14em var(--paper), 0 0 0 .26em currentColor; inline-size: .44em; block-size: .44em; margin: .09em; }
.seed.hat { color: var(--hat); }

/* ---------- moat: a white gap wherever two shapes meet ---------- */
.moat { box-shadow: 0 0 0 var(--moat) var(--paper); }

/* ---------- notch: panels carry the seed bite at a corner ---------- */
.notch { --n: 30px; position: relative; isolation: isolate; }
.notch > .notch-in {
  -webkit-mask: radial-gradient(circle at calc(100% - var(--n)) var(--n), #0000 calc(var(--n) * .9), #000 calc(var(--n) * .9 + .5px));
          mask: radial-gradient(circle at calc(100% - var(--n)) var(--n), #0000 calc(var(--n) * .9), #000 calc(var(--n) * .9 + .5px));
  overflow: hidden;
}
.notch::after {
  content: ""; position: absolute; z-index: 2;
  inline-size: calc(var(--n) * 1.04); block-size: calc(var(--n) * 1.04); border-radius: 50%;
  inset-inline-end: calc(var(--n) * .48); top: calc(var(--n) * .48);
  background: var(--dot, var(--graphite));
  transition: transform .5s var(--grow), background-color .3s;
}
.notch.sky { --dot: var(--sky); }
.notch.hat { --dot: var(--hat); }
.notch.low > .notch-in {
  -webkit-mask: radial-gradient(circle at var(--n) calc(100% - var(--n)), #0000 calc(var(--n) * .9), #000 calc(var(--n) * .9 + .5px));
          mask: radial-gradient(circle at var(--n) calc(100% - var(--n)), #0000 calc(var(--n) * .9), #000 calc(var(--n) * .9 + .5px));
}
.notch.low::after { inset-inline-end: auto; top: auto; inset-inline-start: calc(var(--n) * .48); bottom: calc(var(--n) * .48); }

/* ---------- buttons: the seed grows to fill ---------- */
.btn {
  --b: var(--ink); --fg: #fff; --dotc: var(--sky);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-block-size: 52px; padding: 0 24px 0 20px; border: 0; border-radius: 3px;
  background: var(--b); color: var(--fg); font: 600 16px/1 var(--f); text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate; transition-property: color, scale; transition-duration: .3s, .12s; transition-timing-function: var(--ease);
}
.btn::before {
  content: ""; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--dotc); flex: none;
  transition: transform .45s var(--ease); z-index: -1;
}
@media (hover: hover) {
  .btn:hover::before { transform: scale(60); }
  .btn:hover { color: var(--fg-h, var(--ink)); }
}
.btn:active { scale: .96; }
.btn.hat { --b: var(--hat); --fg: var(--ink); --dotc: var(--ink); --fg-h: var(--hat); }
.btn.line { --b: transparent; --fg: var(--ink); --dotc: var(--ink); --fg-h: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.on-dark.line { --fg: #fff; --dotc: var(--sky); --fg-h: var(--ink); box-shadow: inset 0 0 0 1.5px #ffffff55; }
@media (prefers-reduced-motion: reduce) { .btn::before { transition: none; } }

.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.more .seed { transition: transform .4s var(--grow), background-color .2s; }
.more:hover .seed { background: currentColor; transform: scale(1.25); }
.more:hover { color: var(--sky-ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: #fffffff2; backdrop-filter: saturate(1.4) blur(10px); border-block-end: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-color: var(--silver-2); }
.top .wrap { display: flex; align-items: center; gap: 28px; block-size: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand svg { inline-size: 40px; block-size: 40px; }
.brand b { display: block; font: 700 25px/1 var(--f); letter-spacing: -.03em; color: var(--graphite); }
.brand small { display: block; font: 500 9.5px/1 var(--f); letter-spacing: .5em; color: var(--sky); margin-block-start: 5px; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 10px 12px; font-weight: 500; font-size: 15.5px; text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; inset-inline-start: 50%; bottom: 0; inline-size: 6px; block-size: 6px; margin-inline-start: -3px; border-radius: 50%; background: var(--sky); }
.nav .btn { display: none; }
.top .btn { min-block-size: 44px; font-size: 15px; padding: 0 18px 0 16px; }
.menu-btn { display: none; inline-size: 44px; block-size: 44px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); }
.menu-btn svg { inline-size: 28px; margin: auto; }
@media (max-width: 1020px) {
  .nav, .top .btn { display: none; }
  .menu-btn { display: block; }
  .top.open .nav { display: flex; position: fixed; inset: 76px 0 0; flex-direction: column; gap: 0; background: var(--paper); padding: 16px var(--gut) 40px; overflow-y: auto; }
  .top.open .nav a { font: 700 34px/1.1 var(--f); letter-spacing: -.03em; text-transform: lowercase; color: var(--ink); padding: 14px 0; border-block-end: 1px solid var(--silver-2); }
  .top.open .nav a[aria-current]::after { inset-inline-start: auto; inset-inline-end: 4px; top: 50%; margin-block-start: -5px; inline-size: 10px; block-size: 10px; }
  .top.open .nav .btn { display: inline-flex !important; margin-block-start: 24px; align-self: flex-start; font-size: 16px; }
}
@media (max-width: 420px) { .brand small { letter-spacing: .38em; } }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding-block: clamp(72px, 10vw, 140px); }
.band.tight { padding-block: clamp(48px, 6vw, 80px); }
.band.mist { background: var(--mist); }
.band.dark { background: var(--night); color: #f3f2ef; }
.band.dark .lede { color: #b9b7b2; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-block-end: clamp(36px, 5vw, 64px); }
.head .tag { grid-column: 1 / -1; }
.head .lede { grid-column: 1; }
.hair { border: 0; border-block-start: 1px solid var(--silver-2); margin: 0; }

/* ---------- growth rings ---------- */
.rings { position: absolute; pointer-events: none; color: var(--silver-2); }
.rings circle { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dark .rings { color: #ffffff12; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px clamp(24px, 4vw, 72px); align-items: center; }
.hero .copy > * + * { margin-block-start: 28px; }
.hero .d1 .line { display: block; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin-block-start: 44px; list-style: none; color: var(--ink-2); font-size: 15px; }
.hero .facts li { display: flex; align-items: center; gap: 10px; }
.hero .facts .seed { color: var(--sky); }
.hero-mark { position: relative; aspect-ratio: 1; inline-size: 100%; max-inline-size: 640px; justify-self: end; }
.hero-mark svg { inline-size: 100%; block-size: 100%; overflow: visible; }
.hero-mark .rings { inset: -30%; inline-size: 160%; block-size: 160%; }
.hero-mark .count { font: 800 30px/1 var(--f); letter-spacing: -.04em; fill: #fff; }
.hero-mark .count-l { font: 600 6.4px/1 var(--f); letter-spacing: .32em; fill: #ffffffb8; }
.hero-mark .cap { position: absolute; inset-inline-start: 0; bottom: 2%; font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; max-inline-size: 46%; }
.hero-mark .cap b { color: var(--ink); font-weight: 600; }
.reel-pause { min-block-size: 32px; min-inline-size: 44px; padding: 0 10px; border: 1px solid var(--silver); border-radius: 3px; background: none; font: 500 13px/1 var(--f); color: var(--ink-2); cursor: pointer; }
.reel-pause:hover { color: var(--ink); border-color: var(--ink); }
.shotset image { opacity: 0; transition: opacity 1s var(--ease); }
.shotset image.on { opacity: 1; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { max-inline-size: min(300px, 72vw); justify-self: center; order: -1; margin-block-end: 0; }
  .hero-mark .rings circle:nth-child(n+6) { display: none; }
  .hero-mark .cap { position: static; max-inline-size: none; margin-block-start: 12px; justify-content: center; }
}

/* ---------- three tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-start: 1.5px solid var(--ink); }
.track { padding: 32px clamp(16px, 2.4vw, 36px) 40px 0; display: flex; flex-direction: column; gap: 18px; border-inline-end: 1px solid var(--silver-2); text-decoration: none; position: relative; }
.track + .track { padding-inline-start: clamp(16px, 2.4vw, 36px); }
.track:last-child { border-inline-end: 0; }
.track .glyph { inline-size: 76px; block-size: 76px; }
.track p { margin: 0; color: var(--ink-2); max-width: 34ch; }
.track ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.track li { display: flex; gap: 10px; align-items: baseline; }
.track li .seed { color: var(--sky); font-size: 13px; }
.track .more { margin-block-start: auto; padding-block-start: 12px; }
.track .glyph circle { transition: transform .7s var(--grow); transform-box: fill-box; transform-origin: center; }
.track:hover .glyph .g { transform: scale(1.18); }
@media (max-width: 860px) {
  .tracks { grid-template-columns: minmax(0, 1fr); }
  .track, .track + .track { padding: 28px 0 32px; border-inline-end: 0; border-block-end: 1px solid var(--silver-2); }
}

/* ---------- work grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 36px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 40px; padding: 0 14px 0 12px;
  border: 1px solid var(--silver); border-radius: 3px; background: none; font: 500 14.5px/1 var(--f); color: var(--ink-2); cursor: pointer;
}
.filters button .seed { color: var(--ink-2); transition: color .2s, background-color .2s; }
.filters button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] .seed { color: var(--sky); background: var(--sky); }
.filters .n { font: 500 12px/1 var(--mono); color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.card { grid-column: span 4; text-decoration: none; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.wide { grid-column: span 8; }
.card.half { grid-column: span 6; }
.card[hidden] { display: none; }
.card .frame { aspect-ratio: 4 / 3; background: var(--mist); }
.card.wide .frame { aspect-ratio: 16 / 9.4; }
.card .frame { outline: 1px solid #0000001a; outline-offset: -1px; }
.card .frame img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.card:hover .frame img { transform: scale(1.04); }
.card:hover .notch::after { transform: scale(1.45); }
.card .meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 46ch; }
.card .sector { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 1020px) { .card, .card.wide, .card.half { grid-column: span 6; } }
@media (max-width: 640px) { .card, .card.wide, .card.half { grid-column: 1 / -1; } }

/* ---------- product shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #ffffff1a; border: 1px solid #ffffff1a; }
.tool { background: var(--night); padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-block-size: 250px; position: relative; transition: background-color .3s; }
.tool:hover { background: var(--night-2); }
.tool .ix { font: 500 12px/1 var(--mono); color: #8d8b86; }
.tool svg { inline-size: 54px; block-size: 54px; margin-block: 6px 4px; }
.tool p { margin: 0; color: #b9b7b2; font-size: 15px; }
.tool .free { position: absolute; inset-inline-end: 20px; top: 24px; font: 600 11px/1 var(--f); letter-spacing: .2em; color: var(--hat); display: flex; gap: 6px; align-items: center; }
@media (max-width: 1020px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shelf { grid-template-columns: minmax(0, 1fr); } .tool { min-block-size: 0; } }

/* ---------- growth process ---------- */
.grow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: end; list-style: none; margin: 0; padding: 0; }
.grow li { display: flex; flex-direction: column; gap: 14px; }
.grow .stage { block-size: 150px; display: flex; align-items: flex-end; border-block-end: 1.5px solid var(--ink); padding-block-end: 0; }
.grow .stage i { display: block; border-radius: 50%; background: var(--graphite); margin-block-end: -1px; transform-origin: bottom center; }
.grow li:nth-child(1) .stage i { inline-size: 18px; block-size: 18px; background: none; border: 3px solid var(--graphite); }
.grow li:nth-child(2) .stage i { inline-size: 36px; block-size: 36px; background: none; border: 3px dashed var(--graphite); }
.grow li:nth-child(3) .stage i { inline-size: 62px; block-size: 62px; background: var(--hat); }
.grow li:nth-child(4) .stage i { inline-size: 96px; block-size: 96px; background: var(--sky); }
.grow li:nth-child(5) .stage i { inline-size: 138px; block-size: 138px; box-shadow: 0 0 0 var(--moat) var(--paper); position: relative; }
.grow h3 { margin: 6px 0 0; }
.grow p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.grow .num { color: var(--sky-ink); }
.js .grow .stage i { transform: scale(0); transition: transform 1s var(--grow); }
.js .grow.in .stage i { transform: none; }
.js .grow.in li:nth-child(2) .stage i { transition-delay: .12s; }
.js .grow.in li:nth-child(3) .stage i { transition-delay: .24s; }
.js .grow.in li:nth-child(4) .stage i { transition-delay: .36s; }
.js .grow.in li:nth-child(5) .stage i { transition-delay: .48s; }
@media (max-width: 900px) {
  .grow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grow li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 20px; padding-block: 20px; border-block-end: 1px solid var(--silver-2); align-items: center; }
  .grow .stage { block-size: auto; border: 0; grid-row: span 3; justify-content: center; align-items: center; }
  .grow li:nth-child(5) .stage i { inline-size: 96px; block-size: 96px; }
  .grow li:nth-child(4) .stage i { inline-size: 76px; block-size: 76px; }
}

/* ---------- people strip ---------- */
.crew { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.dots { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.dots i { inline-size: 64px; block-size: 64px; border-radius: 50%; background: var(--graphite); box-shadow: 0 0 0 var(--moat) var(--paper); }
.dots i.d { background: var(--sky); }
.dots i + i { margin-inline-start: -22px; }
.dots i.w { background: none; border: 2px dashed var(--silver); box-shadow: none; }
.stat { display: flex; gap: 48px; flex-wrap: wrap; margin-block-start: 28px; }
.stat b { display: block; font: 800 clamp(48px, 5vw, 72px)/1 var(--f); letter-spacing: -.05em; }
.stat span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .crew { grid-template-columns: minmax(0, 1fr); } .dots { flex-wrap: nowrap; gap: 0; } .dots i { inline-size: 40px; block-size: 40px; flex: none; } .dots i + i { margin-inline-start: -8px; } }

/* ---------- news ---------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.note { display: flex; flex-direction: column; gap: 12px; padding-block: 24px 8px; border-block-start: 1.5px solid var(--ink); text-decoration: none; }
.note p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.note:hover h3 { color: var(--sky-ink); }
@media (max-width: 860px) { .notes { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- start-a-project slab ---------- */
.start { position: relative; overflow: hidden; background: var(--hat); color: var(--ink); }
.start .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: end; padding-block: clamp(72px, 9vw, 128px); position: relative; z-index: 1; }
.start .tag { color: var(--ink); }
.start .rings { color: #00000014; inset-inline-end: -20%; top: -40%; inline-size: 80%; aspect-ratio: 1; }
.start .lines { display: grid; gap: 4px; font-size: 18px; }
.start .lines a { font-weight: 700; text-decoration: none; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.start .lines a:hover { text-decoration: underline; }
.start .btn { --b: var(--ink); --fg: #fff; --dotc: var(--paper); --fg-h: var(--ink); }
@media (max-width: 860px) { .start .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #c9c7c2; padding-block: 72px 32px; font-size: 15px; position: relative; overflow: hidden; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 14px; font: 600 12px/1.3 var(--f); letter-spacing: .3em; color: var(--sky-night); text-transform: lowercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .big { font: 700 clamp(64px, 14vw, 220px)/.8 var(--f); letter-spacing: -.06em; color: #ffffff0d; margin: 64px 0 24px; white-space: nowrap; user-select: none; }
.foot .big span { color: #02a3fd2a; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block-start: 22px; border-block-start: 1px solid #ffffff1a; font-size: 13.5px; color: #8d8b86; }
.foot .brand b { color: #fff; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* ---------- inner page head ---------- */
.phead { padding-block: clamp(48px, 7vw, 104px) clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.phead .wrap > * + * { margin-block-start: 24px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.phead .rings { inset-inline-end: -12%; top: -50%; inline-size: min(70vw, 900px); aspect-ratio: 1; }

/* ---------- case study ---------- */
.case-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.facts-tbl { display: grid; gap: 0; margin: 0; }
.facts-tbl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--silver-2); }
.facts-tbl dt { color: var(--ink-2); font-size: 14px; }
.facts-tbl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.feat li { display: flex; gap: 14px; align-items: baseline; padding-block: 14px; border-block-end: 1px solid var(--silver-2); font-size: 18px; }
.feat li .seed { color: var(--sky); }
.lead-shot { margin-block: clamp(40px, 5vw, 72px) 0; }
.lead-shot .frame { background: var(--mist); display: grid; place-items: center; padding: clamp(20px, 5vw, 72px) clamp(16px, 5vw, 72px); }
.lead-shot .frame img { inline-size: min(100%, 720px); block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; outline: 1px solid var(--silver-2); }
.lead-shot .frame.photo { padding: 0; }
.lead-shot .frame.photo img { inline-size: 100%; outline: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery button { outline: 1px solid #0000001a; outline-offset: -1px; }
.gallery button { display: block; padding: 0; border: 0; background: var(--mist); inline-size: 100%; aspect-ratio: 4 / 3; cursor: zoom-in; overflow: hidden; }
.gallery img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 14px; color: var(--ink-2); padding-block-start: 10px; display: flex; gap: 10px; align-items: baseline; text-transform: lowercase; }
@media (max-width: 860px) { .case-top { grid-template-columns: minmax(0, 1fr); } .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-block-start: 1.5px solid var(--ink); }
.pager a { padding-block: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pager a + a { text-align: end; align-items: flex-end; border-inline-start: 1px solid var(--silver-2); padding-inline-start: 24px; }
.pager a:hover .d3 { color: var(--sky-ink); }

dialog.lb { border: 0; padding: 0; background: transparent; max-inline-size: min(96vw, 1100px); inline-size: 100%; }
dialog.lb::backdrop { background: #1f1e1dee; }
dialog.lb img { inline-size: 100%; block-size: auto; max-block-size: 86vh; object-fit: contain; background: #fff; }
dialog.lb .bar { display: flex; justify-content: space-between; align-items: center; color: #fff; padding-block: 12px; gap: 16px; }
dialog.lb button { min-block-size: 44px; min-inline-size: 44px; border: 1px solid #ffffff55; background: none; color: #fff; font: 600 15px var(--f); border-radius: 3px; cursor: pointer; padding: 0 14px; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field textarea, .field select {
  font: 400 17px/1.4 var(--f); color: var(--ink); background: var(--paper);
  border: 0; border-block-end: 1.5px solid var(--ink); border-radius: 0; padding: 12px 2px; inline-size: 100%;
}
.field textarea { min-block-size: 140px; resize: vertical; border: 1.5px solid var(--ink); padding: 12px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sky); box-shadow: 0 1.5px 0 var(--sky); }
.field .hint { font-size: 13.5px; color: var(--ink-2); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices legend { font-weight: 600; font-size: 14.5px; margin-block-end: 10px; }
.choices label { display: inline-flex; gap: 10px; align-items: center; min-block-size: 44px; padding: 0 16px 0 12px; border: 1px solid var(--silver); border-radius: 3px; cursor: pointer; font-size: 15.5px; }
.choices input { appearance: none; inline-size: 14px; block-size: 14px; border-radius: 50%; border: 2px solid var(--ink-2); margin: 0; transition: background-color .2s, box-shadow .25s var(--grow); }
.choices input:checked { background: var(--sky); border-color: var(--sky); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--sky); }
.choices label:has(input:checked) { border-color: var(--ink); }
.done { display: none; padding: 20px; background: var(--mist); }
.done.on { display: flex; gap: 14px; align-items: center; }

/* ---------- misc ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { border: 1.5px solid var(--ink); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.plan .feat li { font-size: 16px; padding-block: 10px; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* reveal */
.js [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-rise] { opacity: 1; transform: none; transition: none; } .js .grow .stage i { transform: none; } }

/* ---------- loader: small beginnings ---------- */
.boot { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: none; place-items: center; transition: opacity .35s; }
.boot-on .boot { display: grid; }
.boot svg { inline-size: min(46vw, 260px); overflow: visible; }
.boot .g, .boot .b, .boot .s1, .boot .s2 { transform-box: fill-box; transform-origin: center; }
.boot .s2 { animation: pop .45s var(--grow) both; }
.boot .b { animation: pop .55s .18s var(--grow) both; }
.boot .s1 { animation: pop .35s .62s var(--grow) both; }
.boot .g { animation: pop .6s .36s var(--grow) both; }
.boot p { position: absolute; bottom: 12vh; inset-inline: 0; text-align: center; animation: fade .4s .5s both; }
.boot.out { opacity: 0; pointer-events: none; }
@keyframes pop { from { transform: scale(0); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .boot { display: none; } }

/* ---------- identity book ---------- */
.bk-cover { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 96px) clamp(64px, 8vw, 120px); }
.bk-cover > .rings { inset-inline-start: -10%; top: -20%; inline-size: min(110vw, 1200px); aspect-ratio: 1; }
.bk-cover .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center; }
.bk-cover .copy > * + * { margin-block-start: 28px; }
.bk-cover .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.bk-mark svg { inline-size: 100%; max-inline-size: 560px; overflow: visible; }
.replay .g, .replay .b, .replay .s1, .replay .s2 { transform-box: fill-box; transform-origin: center; }
.replay.go .s2 { animation: pop .45s var(--grow) both; }
.replay.go .b { animation: pop .7s .32s var(--grow) both; }
.replay.go .g { animation: pop .8s .62s var(--grow) both; }
.replay.go .s1 { animation: pop .4s 1s var(--grow) both; }
@media (max-width: 860px) { .bk-cover .wrap { grid-template-columns: minmax(0, 1fr); } .bk-mark svg { max-inline-size: 320px; } }

.anatomy { position: relative; margin: 0; max-inline-size: 520px; justify-self: center; inline-size: 100%; }
.anatomy figcaption span { position: absolute; inset-inline-start: var(--x); top: var(--y); font-size: 14px; color: var(--ink-2); background: #fffd; padding: 4px 8px; max-inline-size: 15em; line-height: 1.35; }
.anatomy figcaption b { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 560px) {
  .anatomy figcaption { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 16px; }
  .anatomy figcaption span { position: static; padding: 0; background: none; }
}

.fp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fp-t { background: var(--paper); padding: 20px 20px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fp-t p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.fp-v { block-size: 190px; display: grid; place-items: center; background: var(--mist); position: relative; margin-block-end: 8px; }
.fp-v svg { max-block-size: 150px; }
.fp-v .st { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin: 0 10px; }
@media (max-width: 1020px) { .fp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fp { grid-template-columns: minmax(0, 1fr); } }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.sw .chip { block-size: 150px; display: flex; align-items: flex-end; padding: 14px; margin-block-end: 14px; outline: 1px solid #0000000f; outline-offset: -1px; }
.sw h3 { margin: 0 0 6px; }
.sw p { margin: 0 0 6px; font-size: 15px; color: var(--ink-2); }

.spec { display: grid; gap: 56px; }
.spec .d1 { color: #fff; }
.spec-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block-start: 32px; border-block-start: 1px solid #ffffff1f; }
@media (max-width: 860px) { .spec-row { grid-template-columns: minmax(0, 1fr); } .spec-row p[style*="34px"] { font-size: 26px !important; } }

.versions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.versions .v { aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; }
.versions .v img, .versions .v svg { inline-size: 42%; block-size: auto; }
.lock b { display: block; font: 700 26px/1 var(--f); letter-spacing: -.03em; color: var(--c, var(--graphite)); text-align: center; }
.lock small { display: block; font: 500 9.5px/1 var(--f); letter-spacing: .5em; color: var(--t, var(--sky)); margin-block-start: 6px; text-align: center; }
.mono-w > g circle, .mono-w > circle { fill: #fff; }
.mono-k > g circle, .mono-k > circle { fill: var(--ink); }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-block-start: 40px; }
.rules > div { border-block-start: 1.5px solid var(--ink); padding-block-start: 16px; }
.rules p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1020px) { .versions, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lock b { font-size: 20px; } .lock small { letter-spacing: .32em; } }

.motion { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.motion p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.mo-v { position: relative; block-size: 220px; background: var(--mist); display: grid; place-items: center; padding: 20px; margin-block-end: 14px; overflow: hidden; }
.mo-v .replay { inline-size: 150px; }
@media (max-width: 860px) { .motion { grid-template-columns: minmax(0, 1fr); } }

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card-biz { position: relative; overflow: hidden; aspect-ratio: 1.75; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); }
.card-biz.front { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 16px; align-content: space-between; }
.card-biz.front div b { display: block; font-size: 20px; }
.card-biz.front div span { color: var(--ink-2); font-size: 14px; }
.card-biz.front .num { grid-column: 1 / -1; align-self: end; line-height: 1.6; margin: 0; }
.card-biz.back { background: var(--graphite); justify-content: flex-end; }
.sig { background: var(--paper); padding: 28px; }
.avatar { background: var(--paper); padding: 28px; display: flex; align-items: center; gap: 24px; }
.avatar div { inline-size: 120px; block-size: 120px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; flex: none; }
.avatar img { inline-size: 76px; }
@media (max-width: 760px) { .apps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .filters button { flex: none; }
}

/* reduced motion: hover growth, zooms, reveals and the loader all stop */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
.count-live { font: 500 13px/1 var(--mono); color: var(--ink-2); margin: -16px 0 28px; }

/* ---------- browser window: the three buttons are the brand's three seeds ---------- */
.browser { margin: 0; background: var(--paper); box-shadow: 0 0 0 1px #0000001a, 0 24px 48px -28px #23222059; min-width: 0; }
.browser .bar { display: flex; align-items: center; gap: 7px; block-size: 34px; padding: 0 12px; border-block-end: 1px solid var(--silver-2); }
.browser .bar i { inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--graphite); flex: none; }
.browser .bar i:nth-child(2) { background: var(--sky); }
.browser .bar i:nth-child(3) { background: var(--hat); }
.browser .url { margin-inline-start: 10px; font: 500 12px/1 var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.browser img { inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }
.browser.dark { background: var(--night-2); box-shadow: 0 0 0 1px #ffffff1a, 0 30px 60px -30px #000; }
.browser.dark .bar { border-color: #ffffff14; }
.browser.dark .url { color: #a9a7a2; }
.browser.lift { max-inline-size: 620px; justify-self: end; inline-size: 100%; }

/* ---------- home: product switcher ---------- */
.switch { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pts { display: grid; border-block-start: 1px solid #ffffff1f; }
.pt { display: flex; gap: 16px; align-items: center; text-align: start; padding: 14px 12px 14px 0; background: none; border: 0; border-block-end: 1px solid #ffffff1f; color: #b9b7b2; font: inherit; cursor: pointer; position: relative; min-block-size: 64px; }
.pt .glyph { flex: none; opacity: .55; transition: opacity .2s; }
.pt b { display: block; font-weight: 600; font-size: 17px; color: #e9e7e3; }
.pt small { font-size: 14px; line-height: 1.4; color: #9a9893; margin-block-start: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pt::after { content: ""; position: absolute; inset-inline-start: -14px; top: 50%; inline-size: 6px; block-size: 6px; margin-block-start: -3px; border-radius: 50%; background: var(--sky); scale: 0; transition: scale .3s var(--grow); }
.pt[aria-selected="true"] .glyph, .pt:hover .glyph { opacity: 1; }
.pt[aria-selected="true"] b { color: #fff; }
.pt[aria-selected="true"] small { -webkit-line-clamp: 3; color: #b9b7b2; }
.pt[aria-selected="true"]::after { scale: 1; }
.pp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pp:not([hidden]) { animation: ppin .45s var(--ease); }
@keyframes ppin { from { opacity: 0; translate: 0 10px; } }
.pp-copy { display: grid; gap: 14px; justify-items: start; }
.pp-copy .d3 { color: #fff; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #cfcdc8; font-size: 15.5px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks .seed { color: var(--sky-night); --paper: var(--night); flex: none; }
.ticks.light { color: var(--ink-2); }
.ticks.light .seed { color: var(--sky); --paper: var(--paper); }
.mist .ticks.light .seed { --paper: var(--mist); }
@media (max-width: 900px) {
  .switch { grid-template-columns: minmax(0, 1fr); }
  .pts { display: flex; overflow-x: auto; gap: 8px; border: 0; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; scrollbar-width: none; }
  .pt { flex: none; border: 1px solid #ffffff26; border-radius: 3px; padding: 8px 14px 8px 8px; min-block-size: 48px; }
  .pt .glyph { inline-size: 28px; block-size: 28px; }
  .pt small, .pt::after { display: none; }
  .pt[aria-selected="true"] { border-color: var(--sky-night); }
}

/* ---------- products index ---------- */
.gidx { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block-start: 8px; }
.gidx a { display: inline-flex; gap: 10px; align-items: baseline; font-weight: 600; text-decoration: none; padding-block: 8px; }
.gidx a:hover { color: var(--sky-ink); text-decoration: underline; }
.gidx .num { color: var(--sky-ink); }
.ghead { display: grid; gap: 16px; margin-block-end: clamp(32px, 4vw, 56px); }
section[aria-labelledby^="g"] { scroll-margin-top: 76px; }
.prows { display: grid; gap: clamp(56px, 7vw, 104px); }
.prow { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.prow:nth-child(even) .browser { order: 2; }
.prow-copy { display: grid; gap: 16px; justify-items: start; }
.prow-copy h3 a { text-decoration: none; }
.prow-copy h3 a:hover { color: var(--sky-ink); }
.prow-top { display: flex; align-items: center; gap: 14px; }
.flag { display: inline-flex; gap: 8px; align-items: center; font: 600 12px/1 var(--f); letter-spacing: .2em; color: var(--hat-ink); text-transform: lowercase; }
.used { margin: 0; font-size: 15px; color: var(--ink-2); }
.used a { color: var(--ink); font-weight: 600; }
.prow .acts, .ph-copy .acts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 6px 0 0; }
@media (max-width: 900px) { .prow { grid-template-columns: minmax(0, 1fr); } .prow:nth-child(even) .browser { order: 0; } }

.tbl-wrap { overflow-x: auto; }
.cmp { inline-size: 100%; min-inline-size: 560px; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { text-align: start; padding: 14px 16px 14px 0; border-block-end: 1px solid var(--silver-2); vertical-align: top; }
.cmp thead th { border-block-end: 1.5px solid var(--ink); font-size: 18px; padding-block-end: 16px; }
.cmp thead th a { text-decoration: none; }
.cmp thead th a:hover { text-decoration: underline; }
.cmp thead .glyph { display: inline-block; vertical-align: middle; margin-inline-end: 10px; }
.cmp tbody th { font-weight: 500; color: var(--ink-2); inline-size: 22%; }

/* ---------- product page ---------- */
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; margin-block-start: 28px; }
.ph-copy > * + * { margin-block-start: 22px; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: minmax(0, 1fr); } .browser.lift { justify-self: stretch; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: ""; position: absolute; top: 20px; inset-inline: 54px -12px; block-size: 1.5px; background: var(--silver); }
.steps li:last-child::before { display: none; }
.steps .sn { position: relative; inline-size: 42px; block-size: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 17px/1 var(--f); background: var(--graphite); color: #fff; }
.steps li:last-child .sn { background: var(--sky); color: var(--ink); }
.steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { grid-template-columns: 42px minmax(0, 1fr); column-gap: 18px; padding-block-end: 26px; }
  .steps .sn { grid-row: span 2; }
  .steps li::before { top: 50px; bottom: 8px; inset-inline: 20px auto; inline-size: 1.5px; block-size: auto; }
}
.feat-g li .glyph { flex: none; align-self: center; }
.rels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rel { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--mist); text-decoration: none; min-width: 0; }
.rel b { display: block; font-size: 17px; }
.rel small { display: block; color: var(--ink-2); font-size: 14.5px; }
.rel:hover b { color: var(--sky-ink); text-decoration: underline; }
@media (max-width: 640px) { .rels { grid-template-columns: minmax(0, 1fr); } }

.pp[hidden] { display: none; }
@media (max-width: 640px) { .head { grid-template-columns: minmax(0, 1fr); } .head .more { justify-self: start; } }

/* ---------- client sign in ----------
   the stage draws the mark as a plan (dashed = planned); it fills in as the form is completed
   (filled = launched): email → blue disc, password → graphite disc and one growth ring per character,
   sign in → the last seed, then the blue disc opens over the page and greets the client */
body.li { min-block-size: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }

/* stage */
.li-stage { --px: 0; --py: 0; position: relative; overflow: hidden; background: var(--night); color: #f3f2ef; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 24px; padding: clamp(20px, 3vw, 40px) clamp(20px, 4vw, 56px); }
.li-stage .brand { margin: 0; justify-self: start; position: relative; z-index: 1; }
.li-stage .brand b { color: #fff; }
.li-fig { position: relative; place-self: center; inline-size: min(72%, 520px, 58vh); aspect-ratio: 1; }
.li-fig svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
.li-fig .li-rings { inset: -45%; inline-size: 190%; max-width: none; block-size: 190%; translate: -2.5% 2.5%;
  transform: translate(calc(var(--px) * -14px), calc(var(--py) * -14px)); transition: transform 1.2s var(--ease); }
.li-fig .li-mark { transform: translate(calc(var(--px) * 10px), calc(var(--py) * 10px)); transition: transform .9s var(--ease); }
.li-rings circle { fill: none; stroke: #ffffff12; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 0; transform-box: fill-box; transform-origin: center; transform: scale(.97); transition: stroke .5s, transform .6s var(--grow); }
.li-rings circle.on { stroke: #ffffff5c; transform: none; }
.li-mark .plan, .li-mark .plan circle { fill: none; stroke: #ffffff45; stroke-width: 1.2; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; animation: li-march 1.6s linear infinite; }
.li-mark .g, .li-mark .b, .li-mark .s1, .li-mark .s2, .li-mark .burst { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .75s var(--grow); }
.li-mark .s2 { transform: none; animation: li-breathe 3.2s ease-in-out infinite; }
.li-fig.st-mail .b { transform: none; }
.li-fig.st-mail .li-mark .s2 { animation: none; }
.li-fig.st-pass .g { transform: none; }
.li-fig.st-go .s1 { transform: none; }
.li-fig.st-go .plan, .li-fig.st-go .plan circle { animation-duration: .5s; }
.li-fig.st-open .burst { transform: scale(24); transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); }
.li-fig.st-open .li-rings, .li-fig.st-open .plan, .li-fig.st-open .g, .li-fig.st-open .s1, .li-fig.st-open .s2 { opacity: 0; transition: opacity .4s; }
@keyframes li-breathe { 50% { transform: scale(1.22); } }
@keyframes li-march { to { stroke-dashoffset: -14; } }

.li-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.li-copy .d3 { color: #fff; max-width: 15ch; margin-block-start: 14px; }
.li-copy .d3 em { color: var(--sky-night); }
.li-live { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 15px; color: #cfcdc8; min-block-size: 24px; }
.li-live .seed { color: var(--sky-night); --paper: var(--night); font-size: 15px; }
.li-live-l { font: 600 11.5px/1 var(--f); letter-spacing: .3em; color: #8d8b86; }
.li-live-n { font-weight: 600; transition: opacity .35s, translate .35s var(--ease); }
.li-live-n.swap { opacity: 0; translate: 0 6px; }
.li-clock { color: #8d8b86; letter-spacing: .05em; white-space: nowrap; margin: 0; }

/* entrance: rings draw outward, the plan fades in, the copy rises */
.li-enter .li-rings circle { animation: li-draw 1.4s calc(var(--i) * 70ms + .1s) var(--ease) both; }
.li-enter .li-mark .plan { animation: li-fade .8s .5s both, li-march 1.6s linear infinite; }
.li-enter .li-mark .s2 { animation: li-pop .6s .9s var(--grow) both, li-breathe 3.2s 1.5s ease-in-out infinite; }
.li-enter .li-stage .brand, .li-enter .li-copy > * { animation: li-rise .9s .3s var(--ease) both; }
.li-enter .li-copy > :last-child { animation-delay: .45s; }
.li-enter .li-signin > *, .li-enter .li-form > * { animation: li-rise .8s var(--ease) both; }
.li-enter .li-signin > :nth-child(2) { animation-delay: .06s; }
.li-enter .li-signin > :nth-child(3) { animation-delay: .12s; }
.li-enter .li-form > :nth-child(1) { animation-delay: .18s; }
.li-enter .li-form > :nth-child(2) { animation-delay: .24s; }
.li-enter .li-form > :nth-child(3) { animation-delay: .3s; }
.li-enter .li-form > :nth-child(n+4) { animation-delay: .36s; }
@keyframes li-draw { from { stroke-dashoffset: 1; } }
@keyframes li-fade { from { opacity: 0; } }
@keyframes li-pop { from { transform: scale(0); } }
@keyframes li-rise { from { opacity: 0; translate: 0 14px; } }

/* pane */
.li-pane { display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: clamp(24px, 4vw, 56px) var(--gut) 24px; }
.li-box { place-self: center; inline-size: 100%; max-inline-size: 420px; }
.li-box .d2 { margin-block-start: 18px; font-size: clamp(38px, 4.2vw, 60px); }
.li-box .lede { margin-block-start: 14px; font-size: 17px; }

/* remembered account */
.li-who { display: flex; align-items: center; gap: 14px; margin-block-start: 28px; padding: 10px 6px 10px 10px; background: var(--mist); }
.li-who[hidden] { display: none; }
.li-av { inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--graphite); color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--f); flex: none; box-shadow: 0 0 0 3px var(--mist), 0 0 0 4.5px var(--sky); }
.li-who-t { min-width: 0; flex: 1; }
.li-who-t b { display: block; font-size: 16px; }
.li-who-t small { display: block; font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-notyou { border: 0; background: none; font: 500 14px/1 var(--f); color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-block-size: 44px; padding: 0 10px; flex: none; }
.li-notyou:hover { color: var(--ink); }

/* form */
.li-form { display: grid; gap: 22px; margin-block-start: 32px; }
.li-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; padding: 3px; margin: 0; background: var(--mist); }
.li-mode label { display: flex; align-items: center; justify-content: center; gap: 9px; min-block-size: 42px; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; position: relative; transition: color .2s; }
.li-mode input { appearance: none; margin: 0; inline-size: 9px; block-size: 9px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .2s, border-color .2s; }
.li-mode label:has(input:checked) { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px #2322201a; }
.li-mode input:checked { background: var(--sky); border-color: var(--sky); }
.li-mode label:has(input:focus-visible) { outline: 2px solid var(--sky-ink); outline-offset: -2px; }
.li-mode input:focus-visible { outline: none; }
.li-in { position: relative; }
.li-in::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; block-size: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease), background-color .2s; pointer-events: none; }
.li-in:focus-within::after { transform: none; }
.li-form .field input:focus { border-color: var(--ink); box-shadow: none; }
.li-in input { padding-inline-end: 48px; }
.li-ok { position: absolute; inset-inline-end: 14px; top: 50%; margin-block-start: -5px; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--sky); transform: scale(0); transition: transform .45s var(--grow); }
.li-mail.ok .li-ok { transform: none; }
.li-eye { position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%; inline-size: 44px; block-size: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 20px; cursor: pointer; }
.li-eye .seed { transition: background-color .2s, transform .35s var(--grow); }
.li-eye:hover .seed { transform: scale(1.15); }
.li-eye[aria-pressed="true"] { color: var(--sky-ink); }
.li-eye[aria-pressed="true"] .seed { background: currentColor; }
.li-caps { display: flex; gap: 8px; align-items: center; }
.li-caps[hidden], .li-linkhint[hidden], .li-pw[hidden], .li-mail[hidden], .li-forgot[hidden] { display: none; }
.li-caps::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--hat); }
.li-linkhint { margin: -4px 0 0; }
.li-row { display: flex; justify-content: space-between; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: 15px; margin-block-start: -6px; }
.li-check { display: inline-flex; gap: 10px; align-items: center; min-block-size: 44px; cursor: pointer; }
.li-check input { appearance: none; inline-size: 16px; block-size: 16px; border-radius: 50%; border: 2px solid var(--ink-2); margin: 0; transition: background-color .2s, border-color .2s, box-shadow .25s var(--grow); }
.li-check input:checked { background: var(--sky); border-color: var(--sky); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--sky); }
.li-forgot { border: 0; background: none; padding: 0; min-block-size: 44px; font: inherit; color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; cursor: pointer; }
.li-forgot:hover { color: var(--ink); }
.li-err { margin: -6px 0 0; display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink); max-width: 44ch; animation: li-rise .4s var(--ease); }
.li-err[hidden] { display: none; }
.li-err .seed { flex: none; font-size: 13px; }
.li-form .field input[aria-invalid="true"] { border-color: var(--hat-deep); }
.li-in:has([aria-invalid="true"])::after { background: var(--hat-deep); transform: none; }
.li-go { justify-self: start; min-inline-size: 236px; }
/* busy: the button's seed grows to fill it, the brand's hover read as progress */
.li-go.busy { cursor: progress; color: var(--ink); }
.li-go.busy::before { transform: scale(60); transition-duration: .9s; }
.li-alt { margin: 36px 0 0; color: var(--ink-2); font-size: 15.5px; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: baseline; }
.li-alt .more { color: var(--ink); padding-block: 10px; }
.li-alt .more .seed { color: var(--sky); }

/* link sent */
.li-sent[hidden], .li-signin[hidden] { display: none; }
.li-sent { animation: li-rise .6s var(--ease); }
.li-sent:focus { outline: none; }
.li-sent b { color: var(--ink); overflow-wrap: anywhere; }
.li-sent-acts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 32px 0 0; }
.li-resend { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; padding: 10px 0; color: var(--ink); }
.li-resend .seed { color: var(--sky); }

.li-foot { display: flex; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; inline-size: 100%; max-inline-size: 420px; margin-inline: auto; padding-block-start: 32px; font-size: 13.5px; color: var(--ink-2); }
.li-foot a { text-decoration: none; padding-block: 11px; }
.li-secure { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); }
.li-secure svg { inline-size: 14px; block-size: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.li-foot a:hover { color: var(--ink); text-decoration: underline; }

/* opening: the blue disc covers the page and greets the client (ink on sky, 5.8:1) */
body.li-open { overflow: hidden; }
.li-open .li-stage { overflow: visible; z-index: 5; }
.li-open .li-box, .li-open .li-foot, .li-open .li-copy, .li-open .li-stage .brand { opacity: 0; transition: opacity .5s; }
.li-hello { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; gap: 18px; padding: var(--gut); text-align: center; pointer-events: none; visibility: hidden; }
.li-hello .tag { color: var(--ink); opacity: 0; }
.li-hello .d1 { color: var(--ink); opacity: 0; translate: 0 24px; }
.li-open .li-hello { visibility: visible; }
.li-open .li-hello .tag { opacity: 1; transition: opacity .5s .55s; }
.li-open .li-hello .d1 { opacity: 1; translate: 0 0; transition: opacity .6s .45s, translate .9s .45s var(--ease); }

@media (max-width: 900px) {
  body.li { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .li-stage { grid-template-rows: auto; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 14px var(--gut); gap: 16px; }
  .li-fig { inline-size: 92px; place-self: center end; }
  .li-fig .li-rings circle:nth-child(n+7) { display: none; }
  .li-copy { display: none; }
  .li-pane { padding-block: 32px 20px; }
  .li-box .d2 { font-size: clamp(36px, 10vw, 44px); }
  .li-form { margin-block-start: 28px; }
  .li-go { justify-self: stretch; justify-content: center; }
  .li-hello .d1 { font-size: clamp(40px, 12vw, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .li-mark .s2, .li-mark .plan, .li-mark .plan circle { animation: none; }
  .li-fig .li-rings, .li-fig .li-mark { transform: none; }
}

/* desktop: the sign-in is one screen, never a scrolling page. spacing follows the screen height;
   the pane scrolls inside itself only as a last resort on very short windows */
@media (min-width: 901px) {
  body.li { block-size: 100dvh; overflow: hidden; }
  .li-stage, .li-pane { min-block-size: 0; }
  .li-pane { overflow-y: auto; padding-block: clamp(16px, 3.5vh, 48px) 14px; }
  .li-box .d2 { margin-block-start: clamp(10px, 1.8vh, 18px); font-size: clamp(36px, min(4.2vw, 7vh), 60px); }
  .li-box .lede { margin-block-start: clamp(8px, 1.4vh, 14px); }
  .li-who { margin-block-start: clamp(14px, 2.6vh, 28px); }
  .li-form { gap: clamp(12px, 2.3vh, 22px); margin-block-start: clamp(16px, 3.4vh, 32px); }
  .li-alt { margin-block-start: clamp(12px, 3vh, 36px); }
  .li-foot { padding-block-start: clamp(8px, 2vh, 32px); }
  /* a remembered admin is already named in the heading and the account row */
  .li-signin:has(.li-who:not([hidden])) .lede { display: none; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .li-alt { display: none; }
  .li-row { margin-block-start: -10px; }
}

/* ---------- administrator log in ----------
   the familiar CMS card, centred on mist; growth rings spread from behind it and light up in sky,
   one per password character; the mark assembles on arrival; a wrong password shakes the card */
body.ad { min-block-size: 100dvh; margin: 0; background: var(--mist); overflow-x: hidden; }
.ad-rings { position: fixed; left: 50%; top: 50%; inline-size: max(150vmax, 1500px); max-width: none; block-size: auto; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; z-index: 0; }
.ad-rings circle { fill: none; stroke: #c9cdd170; stroke-width: 1; stroke-dasharray: 1; transform-box: fill-box; transform-origin: center; transform: scale(.985); transition: stroke .45s, transform .6s var(--grow); }
.ad-rings circle.on { stroke: #02a3fd52; transform: none; }
.ad-main { position: relative; z-index: 1; min-block-size: 100dvh; display: grid; place-content: center; justify-items: center; gap: clamp(8px, 1.6vh, 18px); padding: clamp(16px, 3vh, 40px) var(--gut); }
.ad-card { --n: 20px; inline-size: min(400px, 100vw - 2 * var(--gut)); }
.ad-card > .notch-in { background: var(--paper); padding: clamp(24px, 3.6vh, 36px) 32px clamp(22px, 3.2vh, 30px); box-shadow: 0 0 0 1px #0000000d, 0 30px 60px -32px #23222047; }
.ad-card::after { box-shadow: 0 0 0 0 #02a3fd55; }

.ad-brand { display: grid; justify-items: center; gap: 10px; text-decoration: none; }
.ad-mark { inline-size: 56px; block-size: 56px; overflow: visible; }
.ad-mark .g, .ad-mark .b, .ad-mark .s1, .ad-mark .s2 { transform-box: fill-box; transform-origin: center; }
.ad-brand .lock b { font-size: 24px; }
.ad-brand .lock small { font-size: 9px; }
.ad-h { margin: clamp(16px, 2.4vh, 24px) 0 0; padding-block-start: clamp(14px, 2.2vh, 20px); border-block-start: 1px solid var(--silver-2); text-align: center; font: 700 24px/1.15 var(--f); letter-spacing: -.02em; text-transform: lowercase; }
.ad-site { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 10px auto 0; inline-size: fit-content; padding: 6px 12px 6px 10px; background: var(--mist); font: 500 12.5px/1 var(--mono); color: var(--ink); }
.ad-site span:last-child { color: var(--ink-2); margin-inline-start: -8px; }
.ad-site .seed { color: var(--sky); font-size: 12px; }

.ad-form { display: grid; gap: clamp(12px, 2vh, 18px); margin-block-start: clamp(16px, 2.8vh, 24px); }
.ad-form .field { gap: 7px; }
.ad-form .field label { font-size: 14px; }
.ad-form .field input { border: 1.5px solid var(--silver); border-radius: 3px; padding: 11px 13px; font-size: 16px; background: var(--paper); transition: border-color .2s, box-shadow .25s; }
.ad-form .field input:hover { border-color: #aeb3b8; }
.ad-form .field input:focus { border-color: var(--sky-ink); box-shadow: 0 0 0 3px #02a3fd2e; }
.ad-form .field input[aria-invalid="true"] { border-color: var(--hat-deep); box-shadow: 0 0 0 3px #feb91633; }
.ad-in { position: relative; }
.ad-in input { padding-inline-end: 46px; }
.ad-eye { position: absolute; inset-inline-end: 1px; top: 50%; translate: 0 -50%; inline-size: 44px; block-size: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; color: var(--ink-2); font-size: 19px; cursor: pointer; }
.ad-eye .seed { transition: background-color .2s, transform .35s var(--grow); }
.ad-eye:hover .seed { transform: scale(1.15); }
.ad-eye[aria-pressed="true"] { color: var(--sky-ink); }
.ad-eye[aria-pressed="true"] .seed { background: currentColor; }
.ad-caps { display: flex; gap: 8px; align-items: center; }
.ad-caps[hidden] { display: none; }
.ad-caps::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--hat); }
.ad-err { margin: 0; display: flex; gap: 10px; align-items: baseline; padding: 11px 13px; background: #feb9161f; border-inline-start: 3px solid var(--hat); font-size: 14.5px; line-height: 1.45; }
.ad-err[hidden] { display: none; }
.ad-err .seed { flex: none; font-size: 12px; }
.ad-row { display: flex; align-items: center; margin-block: -8px -4px; font-size: 15px; }
.ad-go { inline-size: 100%; justify-content: center; }
.ad-go.busy { cursor: progress; color: var(--ink); }
.ad-go.busy::before { transform: scale(60); transition-duration: .9s; }

.ad-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ad-lost { font-size: 13.5px; color: var(--sky-ink); text-decoration: none; padding-block: 12px; margin-block: -12px; }
.ad-lost:hover { text-decoration: underline; }
.ad-arr { display: inline-block; margin-inline-start: 2px; transition: translate .35s var(--ease); }
@media (hover: hover) { .ad-go:hover .ad-arr { translate: 4px 0; } }
.ad-foot { inline-size: min(400px, 100vw - 2 * var(--gut)); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.ad-foot a { color: var(--ink-2); text-decoration: none; padding-block: 12px; }
.ad-foot a:hover { color: var(--ink); text-decoration: underline; }
.ad-secure { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.ad-secure svg { inline-size: 14px; block-size: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* wrong password: the shake every WordPress user knows */
.ad-card.shake { animation: ad-shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes ad-shake { 15%, 85% { translate: -2px 0; } 30%, 70% { translate: 6px 0; } 45%, 55% { translate: -9px 0; } }

/* arrival: rings draw outward, the card rises, the mark assembles seed by disc */
.ad-enter .ad-rings circle { animation: li-draw 1.6s calc(var(--i) * 60ms) var(--ease) both; }
.ad-enter .ad-card { animation: li-rise .9s .1s var(--ease) both; }
.ad-enter .ad-foot { animation: li-fade .8s .7s both; }
.ad-enter .ad-mark .s2 { animation: pop .45s .35s var(--grow) both; }
.ad-enter .ad-mark .b { animation: pop .6s .5s var(--grow) both; }
.ad-enter .ad-mark .g { animation: pop .65s .72s var(--grow) both; }
.ad-enter .ad-mark .s1 { animation: pop .4s 1s var(--grow) both; }
.ad-enter .ad-card::after { animation: pop .5s 1.1s var(--grow) both; }

/* success: every ring lights, the card's seed pulses, the card lifts away */
.ad-ok .ad-rings circle { stroke: #02a3fd52; transform: none; transition-delay: calc(var(--i) * 35ms); }
.ad-ok .ad-card::after { animation: ad-ping 1s var(--ease) infinite; }
@keyframes ad-ping { to { box-shadow: 0 0 0 14px #02a3fd00; } from { box-shadow: 0 0 0 0 #02a3fd73; } }
.ad-out .ad-card, .ad-out .ad-foot { opacity: 0; translate: 0 -14px; transition: opacity .45s, translate .6s var(--ease); }
.ad-out .ad-rings { opacity: 0; scale: 1.06; transition: opacity .6s .1s, scale .9s var(--ease); }

@media (max-width: 480px) {
  .ad-main { place-content: start center; padding-block: 28px; }
  .ad-card > .notch-in { padding: 30px 22px 26px; }
  .ad-card { --n: 18px; }
}
