/* Kenneth Viola portfolio, dark build: palette tokens and page styles (loaded after the kit stylesheets).
   Palette plum-black-pink as start.mjs printed it; the text face is Onest (the brief asks for a clean
   body sans beside the display face). Every glow on this page is light from a line, a lit edge or the
   one shader ground: no coloured blurred shadows, no radial colour washes. */
:root {
  --p-bg: #0d060b; --p-surface: #1b0e17; --p-ink: #ffffff; --p-muted: #a89ca5;
  --p-accent: #ff488b; --p-accent-ink: #0d060b; --p-action: #ff488b; --p-action-ink: #0d060b;
  --p-inv-bg: #ffffff; --p-inv-surface: #ebebeb; --p-inv-ink: #0d060b; --p-inv-muted: #5e575c;
  --p-inv-accent: #ff488b; --p-inv-accent-ink: #0d060b; --p-inv-action: #ff488b; --p-inv-action-ink: #0d060b;
  --font-display: "Epilogue", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
  --ly-scale: 0.97;

  /* page tokens */
  --read: #ddd3da;                                   /* long reading text: 13:1 on the ground */
  --bx: #140a11;                                     /* a box: one step above the ground */
  --bx-2: #1b0f18;                                   /* a panel inside a window */
  --edge: rgb(255 255 255 / .09);                    /* the one hairline */
  --edge-hi: rgb(255 255 255 / .16);
  --lit: color-mix(in oklab, var(--p-accent) 62%, transparent);
  --glow-soft: color-mix(in oklab, var(--p-accent) 14%, var(--p-bg));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
html { background: var(--p-bg); color-scheme: dark; }
body { background: var(--p-bg); }
h1, h2 { color: #fff; }
h1 { font-weight: 500; letter-spacing: var(--display-tracking-xl); }
h2 { letter-spacing: var(--display-tracking); }

/* placeholders Kenneth fills in later: hidden from visitors; open the page with #edit for the switch */

/* interface glyphs: the lucide files as masks, so they take the text colour on the dark ground */
.gl { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.gl[data-g="clock"] { --g: url(../assets/icons/ui-clock.svg); }
.gl[data-g="mail-check"] { --g: url(../assets/icons/ui-mail-check.svg); }
.gl[data-g="users"] { --g: url(../assets/icons/ui-users.svg); }
.gl[data-g="send"] { --g: url(../assets/icons/ui-send.svg); }
.gl[data-g="webhook"] { --g: url(../assets/icons/ui-webhook.svg); }
.gl[data-g="scan-search"] { --g: url(../assets/icons/ui-scan-search.svg); }
.gl[data-g="filter"] { --g: url(../assets/icons/ui-filter.svg); }
.gl[data-g="phone-call"] { --g: url(../assets/icons/ui-phone-call.svg); }
.gl[data-g="layout-template"] { --g: url(../assets/icons/ui-layout-template.svg); }
.gl[data-g="calendar-check"] { --g: url(../assets/icons/ui-calendar-check.svg); }
.gl[data-g="credit-card"] { --g: url(../assets/icons/ui-credit-card.svg); }
.gl[data-g="circle-check"] { --g: url(../assets/icons/ui-circle-check.svg); }
.gl[data-g="play"] { --g: url(../assets/icons/ui-play.svg); }
.gl[data-g="book-open"] { --g: url(../assets/icons/ui-book-open.svg); }
.gl[data-g="shopping-cart"] { --g: url(../assets/icons/ui-shopping-cart.svg); }
.gl[data-g="mail"] { --g: url(../assets/icons/ui-mail.svg); }
.gl[data-g="presentation"] { --g: url(../assets/icons/ui-presentation.svg); }
.gl[data-g="link"] { --g: url(../assets/icons/ui-link.svg); }
.gl[data-g="sparkles"] { --g: url(../assets/icons/ui-sparkles.svg); }
.ic-ink { filter: invert(1); }
.ic-paper { filter: none; }

/* no decorative "live" dots on this site: the kit's status dot stays still */
.ly-live::before { animation: none; }

/* ---------------------------------------------------------------- the nav on the dark ground */
header.nav { background: var(--p-bg); border-bottom: 1px solid var(--edge); }
.nav__menu { background: var(--p-bg); border-bottom: 1px solid var(--edge); }

/* ---------------------------------------------------------------- the box: one recipe, page-wide
   a 1px hairline on a step-up ground; .bx--lit draws its top edge in the accent light (a gradient
   border, not a shadow); on hover the box lifts 2px, its edge warms and a neutral highlight follows
   the pointer (--mx, --my from main.js) */
.bx, .wcard {
  position: relative; isolation: isolate;
  background: var(--bx); border: 1px solid var(--edge); border-radius: var(--r-lg);
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-out), background-color .3s;
}
.bx--lit {
  border-color: transparent;
  background: linear-gradient(var(--bx), var(--bx)) padding-box,
              linear-gradient(160deg, var(--lit), var(--edge) 38%, var(--edge) 70%, color-mix(in oklab, var(--p-accent) 30%, transparent)) border-box;
}
.bx::before, .wcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .06), transparent 65%);
  transition: opacity .35s;
}
@media (hover: hover) and (pointer: fine) {
  .bx:hover, .wcard:hover { border-color: color-mix(in oklab, var(--p-accent) 45%, var(--edge)); }
  .bx:hover::before, .wcard:hover::before { opacity: 1; }
  .wcard:hover { transform: translateY(-2px); }
}

/* the lit horizon: a 1px line of light across the top of each case, brightest in the middle */
main > section.section:not(.hero, #top)::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--p-accent) 45%, transparent) 50%, transparent);
  opacity: .55;
}

/* ---------------------------------------------------------------- hero */
.hero { background: linear-gradient(180deg, var(--glow-soft) 0%, var(--p-bg) 58%); }
.hero h1 { font-size: clamp(42px, 3.2vw + 18px, 76px); line-height: 1.02; max-width: 14ch; }
.hero .t-lead { color: var(--read); max-width: 40ch; }
.hero-notice { color: var(--p-muted); font-weight: 500; }
.hero-meta { font-size: var(--t-body); color: var(--p-muted); max-width: 44ch; padding-top: var(--s-4); border-top: 1px solid var(--edge); }
@media (min-width: 1024px) { .hero-split > .hero-copy > .hero-meta { margin-top: auto; } }
@media (max-width: 639px) { .hero-copy > .hero-notice { display: none; } .hero-meta { border-top: 0; padding-top: 0; font-size: var(--t-small); } .hero h1 { font-size: 40px; } }

/* window bars (the demo's run log and the browser shots below share them) */
.win-bar { display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-4); min-height: 44px; background: var(--bx-2); border-bottom: 1px solid var(--edge); color: var(--read); font-size: var(--t-small); font-weight: 500; flex: none; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .16); flex: none; }
.win-bar span { margin-left: var(--s-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win-state { margin-left: auto; font: 500 13px/1 var(--font-mono); color: var(--p-accent); letter-spacing: 0; }

/* hero: "lead to booked while you sleep", a coded story in five beats over the shader ground.
   The canvas is drawn at one size (520 x 460) and main.js scales it into its box (--k); a phone stacks
   the cards instead. main.js steps the beats by adding s-* classes to the canvas; the markup carries
   the finished "Booked" classes, so reduced motion and no script show that still frame. Light comes
   from lit edges and rings of 1px light, never coloured blurred shadows (the page rule above). */
/* the cards sit on the page ground itself; a soft pink light behind them fades out well inside the box,
   so no edge of the box ever shows (the user asked for this glow in place of the old shader panel) */
.story-frame { --fp: clamp(14px, 2.2vw, 30px); padding: var(--fp); align-items: stretch; border: 0; border-radius: 0; overflow: visible;
  background: radial-gradient(48% 45% at 52% 55%, color-mix(in oklab, var(--p-accent) 24%, transparent), color-mix(in oklab, var(--p-accent) 9%, transparent) 55%, transparent 100%); }
.story { width: 100%; height: 100%; display: flex; flex-direction: column; gap: var(--s-4); }
.story-head { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 32px; padding-right: 44px; }
.story-title { font: 500 16px/1.2 var(--font-display); letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.story-label { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); letter-spacing: 0; color: var(--read); background: var(--bx); border: 1px solid var(--edge-hi); border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.story-label__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--p-accent); flex: none; }
.story-frame > .story-pause { top: var(--fp); right: var(--fp); bottom: auto; background: var(--bx); color: #fff; border-color: var(--edge-hi); box-shadow: none; }
.story-frame > .story-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--p-bg); }
.story__fit { position: relative; flex: 1 1 auto; min-height: 0; }
.story__canvas {
  position: absolute; left: 50%; top: 50%; width: 520px; height: 460px;
  transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: 50% 50%;
  font: 400 12px/1.4 var(--font-text); color: var(--read);
  transition: opacity .6s var(--ease-out);
}
.story__canvas.s-out { opacity: 0; }
.story__canvas.s-reset * { transition: none !important; animation: none !important; }
.story__canvas p { margin: 0; }
.story__canvas .gl { width: 14px; height: 14px; }
.story.is-paused *, .story.is-paused *::before, .story.is-paused *::after { animation-play-state: paused !important; }

/* the phone */
.ph { position: absolute; left: 0; top: 0; width: 212px; height: 460px; padding: 6px; border-radius: 32px; background: #080307; border: 1px solid var(--edge-hi); box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 28px 50px -28px rgb(0 0 0 / .9); }
.ph__bar { height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font: 500 11px/1 var(--font-mono); color: #fff; }
.ph__sig { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.ph__sig i { width: 3px; border-radius: 1px; background: #fff; }
.ph__sig i:nth-child(1) { height: 4px; } .ph__sig i:nth-child(2) { height: 7px; } .ph__sig i:nth-child(3) { height: 10px; }
.ph__screen { position: relative; height: calc(100% - 28px); border-radius: 26px; background: var(--bx); overflow: hidden; border: 1px solid var(--edge); }
.ph__form, .ph__chat { position: absolute; inset: 0; padding: 16px 14px; display: flex; flex-direction: column; transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.ph__chat { opacity: 0; transform: translateX(18px); gap: 8px; }
.s-chat .ph__form { opacity: 0; transform: translateX(-18px); }
.s-chat .ph__chat { opacity: 1; transform: none; }
.ph__brand { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--p-muted); }
.ph__logo { width: 14px; height: 14px; border-radius: 4px; flex: none; background: linear-gradient(140deg, #ff86b1, var(--p-accent) 60%, #b5145a); }
.ph__h { font: 500 21px/1.1 var(--font-display); letter-spacing: -0.02em; color: #fff; margin: 12px 0 14px !important; }
.fld { display: grid; gap: 5px; margin-bottom: 10px; }
.fld span { font-size: 10.5px; color: var(--p-muted); }
.fld b { display: flex; align-items: center; height: 32px; padding: 0 10px; font-weight: 400; font-size: 12px; color: #fff; background: var(--bx-2); border: 1px solid var(--edge-hi); border-radius: 8px; white-space: nowrap; overflow: hidden; transition: border-color .3s; }
.fld--tall b { height: 54px; align-items: flex-start; padding-top: 8px; white-space: normal; }
.fld.is-typing b { border-color: color-mix(in oklab, var(--p-accent) 70%, transparent); }
.fld.is-typing b::after { content: ""; width: 1px; height: 14px; margin-left: 1px; background: var(--p-accent); animation: caret 1s steps(1) infinite; flex: none; }
.ph__btn { position: relative; margin-top: auto; display: grid; place-items: center; height: 38px; padding: 9px 12px; border-radius: 10px; background: var(--p-accent); color: var(--p-accent-ink); font-weight: 600; font-size: 12.5px; transition: transform .2s var(--ease-out), background-color .4s, color .4s; }
.ph__btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; transition: opacity .3s; }
.ph__btn-done { opacity: 0; }
.s-press .ph__btn { transform: scale(.96); }
.s-sent .ph__btn { background: color-mix(in oklab, var(--p-accent) 16%, var(--bx-2)); color: #fff; }
.s-sent .ph__btn-send { opacity: 0; }
.s-sent .ph__btn-done { opacity: 1; }
.s-sent .ph__btn-done .gl { color: var(--p-accent); }

/* the text thread */
.chat__who { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--edge); }
.chat__who b { font-size: 12px; font-weight: 600; color: #fff; }
.chat__stamp { font-size: 10px; color: var(--p-muted); text-align: center; }
.chat__dots { position: absolute; left: 14px; top: 92px; display: flex; gap: 4px; padding: 11px 12px; background: var(--bx-2); border: 1px solid var(--edge-hi); border-radius: 14px 14px 14px 4px; opacity: 0; transition: opacity .3s; }
.chat__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--p-muted); animation: dot 1.2s ease-in-out infinite; }
.chat__dots i:nth-child(2) { animation-delay: .15s; } .chat__dots i:nth-child(3) { animation-delay: .3s; }
.s-typing .chat__dots { opacity: 1; }
.bub { padding: 9px 11px; font-size: 11.5px; line-height: 1.45; color: var(--read); background: var(--bx-2); border: 1px solid var(--edge-hi); border-radius: 14px 14px 14px 4px; }
.bub, .slots { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.s-reply .bub:not(.bub--ok), .s-slots .slots, .s-confirm .bub--ok { opacity: 1; transform: none; }
.slots { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: var(--bx-2); border: 1px solid var(--edge-hi); }
.slots__link { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--p-accent); margin-bottom: 2px !important; }
.slots__link .gl { width: 12px; height: 12px; }
.slot { position: relative; display: grid; place-items: center; height: 28px; font-size: 11.5px; font-weight: 500; color: #fff; border: 1px solid var(--edge-hi); border-radius: 8px; background: var(--bx); overflow: hidden; transition: background-color .35s, color .35s, border-color .35s; }
.s-picked .slot--pick { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-accent-ink); font-weight: 600; }
.tap { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgb(255 255 255 / .55); opacity: 0; transform: scale(.2); pointer-events: none; }
.s-tap .tap { animation: tap .7s var(--ease-out); }
.bub--ok { display: flex; gap: 7px; align-items: flex-start; color: #fff; background: color-mix(in oklab, var(--p-accent) 14%, var(--bx-2)); border-color: color-mix(in oklab, var(--p-accent) 45%, transparent); }
.bub--ok .gl { color: var(--p-accent); margin-top: 1px; }

/* the cards on the right */
.sc-col { position: absolute; left: 228px; top: 0; width: 292px; height: 460px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.sc { position: relative; padding: 10px 14px; border-radius: 14px; background: #1a0d16; border: 1px solid rgb(255 255 255 / .18); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 20px 40px -24px rgb(0 0 0 / .9); }
.sc__h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: #fff; margin-bottom: 8px !important; }
.sc__h .gl { color: var(--p-muted); }
.sc__h span:last-child { margin-left: auto; font-size: 10.5px; font-weight: 400; color: var(--p-muted); }
.sc__ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--bx-2); border: 1px solid var(--edge-hi); color: var(--p-accent); }
.sc__ic .gl { width: 16px; height: 16px; }
.sc__tag { margin-left: auto; flex: none; font: 500 10px/1 var(--font-mono); color: var(--p-accent); border: 1px solid color-mix(in oklab, var(--p-accent) 40%, transparent); border-radius: 999px; padding: 4px 8px; }
.sc--clock, .sc--count { display: flex; align-items: center; gap: 12px; }
.clock, .count { display: grid; gap: 2px; min-width: 0; }
.clock b { font: 500 17px/1.15 var(--font-mono); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.clock span, .count span { font-size: 11px; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* calendar: the week, 9 AM to 12 PM; the new visit lands on Thursday 10 AM */
.cal { position: relative; display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); grid-template-rows: 14px repeat(4, 18px); gap: 3px; }
.cal > .cal__t:first-child { grid-area: 1 / 1; }
.cal__d { font-size: 10px; color: var(--p-muted); text-align: center; grid-row: 1; }
.cal__d:nth-child(2) { grid-column: 2; } .cal__d:nth-child(3) { grid-column: 3; } .cal__d:nth-child(4) { grid-column: 4; } .cal__d:nth-child(5) { grid-column: 5; } .cal__d:nth-child(6) { grid-column: 6; }
.cal__d--on { color: #fff; font-weight: 600; }
.cal__t { grid-column: 1; font: 400 9.5px/18px var(--font-mono); color: var(--p-muted); }
.cal__r1 { grid-row: 2; } .cal__r2 { grid-row: 3; } .cal__r3 { grid-row: 4; } .cal__r4 { grid-row: 5; }
.cal__busy { border-radius: 4px; background: rgb(255 255 255 / .06); border: 1px solid var(--edge); }
.cal__b1 { grid-area: 2 / 2; } .cal__b2 { grid-area: 4 / 3; } .cal__b3 { grid-area: 3 / 4 / 5 / 5; } .cal__b4 { grid-area: 2 / 6; } .cal__b5 { grid-area: 5 / 5; }
.cal__new { grid-area: 3 / 5 / 5 / 6; position: relative; display: grid; align-content: start; padding: 4px 5px; border-radius: 5px; font-size: 9.5px; line-height: 1.25; font-weight: 600; color: #fff; background: color-mix(in oklab, var(--p-accent) 26%, var(--bx)); border: 1px solid color-mix(in oklab, var(--p-accent) 70%, transparent); white-space: nowrap; overflow: visible; opacity: 0; transform: scale(.8); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.cal__new em { font-style: normal; font-weight: 400; color: #ffd0e0; overflow: hidden; text-overflow: ellipsis; }
.s-cal .cal__new { opacity: 1; transform: none; }

/* CRM pipeline: the lead lands in New lead, then slides to Booked */
.pipe { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pipe__col { padding: 8px; border-radius: 9px; background: rgb(255 255 255 / .025); border: 1px solid var(--edge); }
.pipe__col p { font-size: 10.5px; color: var(--p-muted); margin-bottom: 44px !important; }
.pipe__col--won p { color: #fff; }
.pipe__ghost, .pipe__lead { display: grid; gap: 1px; padding: 6px 8px; border-radius: 7px; font-size: 11px; font-weight: 500; color: var(--read); background: var(--bx-2); border: 1px solid var(--edge); }
.pipe__ghost { opacity: .6; }
.pipe__ghost em, .pipe__lead em { font-style: normal; font-weight: 400; font-size: 9.5px; color: var(--p-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe__lead { position: absolute; top: 29px; left: 8px; width: calc(50% - 20px); color: #fff; background: color-mix(in oklab, var(--p-accent) 16%, var(--bx-2)); border-color: color-mix(in oklab, var(--p-accent) 60%, transparent); opacity: 0; transform: scale(.88); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), left .9s cubic-bezier(.65, 0, .35, 1); }
.pipe__lead em { color: #ffc2d8; }
.s-lead .pipe__lead { opacity: 1; transform: none; }
.s-booked .pipe__lead { left: calc(50% + 12px); }

/* the counter */
.count b { font: 500 24px/1 var(--font-display); letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; display: inline-block; }
.s-count .count b { animation: count-in .6s var(--ease-out); }

/* the booking notification */
.toast { position: absolute; right: -4px; top: -4px; width: 300px; height: 70px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: #22121d; border: 1px solid color-mix(in oklab, var(--p-accent) 55%, transparent);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .9);
  opacity: 0; transform: translateY(-12px) scale(.98); transition: opacity .25s ease-in, transform .3s ease-in; }
.toast p { display: grid; gap: 2px; min-width: 0; }
.toast b { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.toast p span { font-size: 10.5px; color: var(--p-muted); }
.sc--clock > * { transition: opacity .3s; }
.s-toast .sc--clock > * { opacity: 0; }
.s-toast .toast { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }

/* a ring of 1px light where each new thing lands */
.cal__new::after, .pipe__lead::after, .toast::after, .bub--ok::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--p-accent); opacity: 0; pointer-events: none; }
.s-cal .cal__new::after, .s-lead .pipe__lead::after, .s-toast .toast::after { animation: ring 1.3s var(--ease-out) .15s 1; }
.s-booked .pipe__lead::after { animation-name: ring-b; }
.bub--ok { position: relative; }
.s-confirm .bub--ok::after { animation: ring 1.3s var(--ease-out) .15s 1; }

@keyframes caret { 50% { opacity: 0; } }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes tap { 0% { opacity: .6; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.35); } }
@keyframes ring-b { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.35); } }
@keyframes count-in { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }

/* small laptops (1024 to 1279): the words keep five columns, the story takes the other seven */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-split > .hero-copy { grid-column: 1 / span 5; }
  .hero-split > .hero-visual.story-frame { grid-column: 6 / -1; --fp: 14px; }
  .hero .t-lead { font-size: 18px; }
}
/* tablet: the story fills what the words leave */
@media (max-width: 1023px) { .hero-split > .hero-visual.story-frame { min-height: 360px; } }
/* a phone: no scaling, the phone screen then the cards in one column, and fewer moving parts */
@media (max-width: 639px) {
  .hero-split > .hero-visual.story-frame { flex: none; height: auto; min-height: 0; }
  .story { height: auto; gap: var(--s-3); }
  .story-head { flex-direction: column; align-items: flex-start; min-height: 0; }
  .story-label { font-size: 11px; padding: 6px 10px; }
  .story__fit { flex: none; }
  .story__canvas { position: relative; left: auto; top: auto; width: auto; height: auto; transform: none; display: grid; gap: 10px; }
  .ph { position: relative; width: 100%; height: 344px; border-radius: 24px; padding: 5px; }
  .pipe__col p { margin-bottom: 0 !important; height: 62px; }
  .pipe__ghost { display: none; }
  .ph__bar { height: 24px; }
  .ph__screen { height: calc(100% - 24px); border-radius: 20px; }
  .ph__form, .ph__chat { padding: 12px; }
  .ph__h { font-size: 18px; margin: 8px 0 10px !important; }
  .fld { grid-template-columns: 92px minmax(0, 1fr); align-items: center; margin-bottom: 7px; }
  .fld--tall b { height: 32px; align-items: center; padding-top: 0; white-space: nowrap; }
  .chat__dots { top: 80px; left: 12px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slots__link { grid-column: 1 / -1; }
  .slot { font-size: 10.5px; }
  .sc-col { position: static; width: auto; height: auto; display: grid; gap: 10px; }
  .toast { right: 0; left: 0; top: 354px; width: auto; height: auto; min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .story__canvas, .story__canvas * { transition: none !important; animation: none !important; }
}


/* ---------------------------------------------------------------- section heads on cases */
.kicker { font-size: var(--t-label); font-weight: 500; color: var(--p-muted); }
.kicker span + span::before { content: "·"; margin: 0 .5em; }
.case-words, .contact-words { display: flex; flex-direction: column; }
.case-words > .kicker { margin-top: var(--s-4); }
.case-sub { font: 400 var(--t-lead)/1.45 var(--font-text); letter-spacing: 0; color: var(--read); margin-top: var(--s-3); max-width: 52ch; }
/* one text link look: underlined, the copy carries its own ↗ */
.tlink { color: #fff; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--p-accent) 70%, transparent); text-underline-offset: 5px; text-decoration-thickness: 1px; font-weight: 500; transition: text-decoration-color .2s, color .2s; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; }
.tlink:hover { text-decoration-color: var(--p-accent); color: color-mix(in oklab, #fff 80%, var(--p-accent)); }

/* ---------------------------------------------------------------- the "Run the workflow" demo */
.demo-head { margin-bottom: var(--s-6); align-items: end; }
.demo-side { grid-column: 7 / -1; display: grid; gap: var(--s-2); justify-items: start; }
.demo-side .t-lead { color: var(--read); max-width: 48ch; }
.demo-win { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; background: var(--bx); border: 1px solid var(--edge-hi); border-radius: var(--r-lg); overflow: hidden; }
.demo-win .win-bar { justify-content: flex-start; min-height: 60px; padding-right: var(--s-2); background: transparent; }
.demo-win .win-bar > .run-btn { margin-left: auto; }
.run-btn { min-height: 44px; }
.run-btn[aria-disabled="true"] { opacity: .75; cursor: progress; }
.flow { flex: none; border-bottom: 1px solid var(--edge); background: color-mix(in oklab, var(--bx) 60%, var(--p-bg)); }
.nodes { position: relative; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: var(--s-4); overflow-x: auto; padding: var(--s-5); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
.flow__track { position: absolute; left: calc(var(--s-5) + 18px); right: calc(var(--s-5) + 18px); top: calc(var(--s-5) + 18px); height: 2px; background: rgb(255 255 255 / .1); border-radius: 2px; }
.flow__fill { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, color-mix(in oklab, var(--p-accent) 35%, transparent), var(--p-accent)); border-radius: inherit; transition: transform .7s var(--ease-out); }
.node { position: relative; min-width: 0; display: grid; gap: 6px; align-content: start; padding: 0; color: var(--read); transition: color .3s; }
.node__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bx-2); border: 1px solid var(--edge-hi); color: #fff; margin-bottom: var(--s-2); transition: background-color .35s var(--ease-out), border-color .35s, color .35s, transform .35s var(--ease-out); }
.node__ic img { width: 18px; height: 18px; object-fit: contain; }
.node__ic .gl { width: 18px; height: 18px; }
.node b { font-size: var(--t-small); font-weight: 600; color: #fff; }
.node > span:last-child { font-size: var(--t-small); line-height: 1.45; color: var(--p-muted); }
.node.active .node__ic { border-color: var(--p-accent); background: color-mix(in oklab, var(--p-accent) 22%, var(--bx-2)); transform: scale(1.08); }
.node.active > span:last-child { color: var(--read); }
.node.done .node__ic { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-accent-ink); }
.node.done b::after { content: " \2713"; color: var(--p-accent); }
.demo-body { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.runlog, .mailbox { padding: var(--s-5); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .2) transparent; }
.runlog { display: grid; gap: var(--s-3); align-content: start; }
.runlog .ln { font: 15px/1.6 var(--font-mono); color: var(--read); display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: var(--s-3); animation: ln-in .45s var(--ease-out) both; }
.runlog .ln b { font: 500 13px/1.85 var(--font-mono); color: var(--p-accent); }
.runlog .note { font-size: var(--t-small); color: var(--p-muted); }
.demo-idle { font-size: var(--t-small); color: var(--p-muted); max-width: 36ch; margin: 0; }
.mailbox { display: flex; flex-direction: column; gap: var(--s-3); border-left: 1px solid var(--edge); }
.email-card { border: 1px solid var(--edge-hi); border-radius: var(--r-md); background: var(--bx-2); padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-2); animation: ln-in .5s var(--ease-out) both; }
.email-card .subj { font-weight: 600; color: #fff; }
.email-card .body { white-space: pre-wrap; font-size: 15px; line-height: 1.6; min-height: 1.5em; color: var(--read); }
.email-card.is-idle { opacity: .4; animation: none; }
@keyframes ln-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .runlog .ln, .email-card { animation: none; } .flow__fill, .node__ic { transition: none; } }

/* ---------------------------------------------------------------- case layout (the work pages)
   the hero: the name and the figures on one row, the pictures (or the system) down to the foot;
   then one screen for the system and one for problem, build and stack */
.case-top { display: flex; flex-direction: column; gap: var(--s-6); min-height: 0; }
.case-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-4); align-items: start; flex: none; }
.case-words { grid-column: span 6; }
.case-out { grid-column: 7 / -1; display: grid; gap: var(--s-3); justify-items: start; align-content: start; }
.case-result { font-size: var(--t-lead); font-weight: 500; line-height: 1.45; color: #fff; }
.case-media { flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; }
.case-media > .shots { flex: 1 1 0; }
.bx { padding: var(--s-5); }
.case-dl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto; gap: var(--gutter); margin: 0; flex: 1 1 auto; align-content: stretch; }
.case-dl > div { grid-column: span 4; display: flex; flex-direction: column; gap: var(--s-2); }
.case-dl > div.wide { grid-column: span 5; }
.case-dl > div.narrow { grid-column: span 3; }
.case-dl > div.full { grid-column: 1 / -1; }
.case-dl dt { font-size: var(--t-label); font-weight: 600; color: var(--p-accent); }
.case-dl dd { margin: 0; font-size: var(--t-body); line-height: 1.6; color: var(--read); }
/* the build screen of a work page: the words at reading size, each box as tall as what it holds */
@media (min-width: 1024px) {
  #build .case-dl { flex: none; align-items: start; }
  #build .case-dl dd:not(.chips, .stack-icons) { font-size: var(--t-lead); line-height: 1.55; }
  #build .case-dl > div { padding: var(--s-6); gap: var(--s-3); }
}
.case-dl > div.rail--box { flex-direction: row; flex-wrap: wrap; align-items: center; padding: var(--s-4) var(--s-5); }
.stack-icons { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-2) !important; }
.stack-icons img { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: #f4eef2; object-fit: contain; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips span, .chips li { font-size: var(--t-small); color: var(--read); border: 1px solid var(--edge-hi); border-radius: 999px; padding: 3px 12px; background: rgb(255 255 255 / .03); }

/* the case hero: the kit's hero box, holding the case head and its pictures */
.case-hero .hero-text { height: 100%; }
.case-hero h1 { font-size: clamp(40px, 2.2vw + 22px, 68px); line-height: 1.02; max-width: 16ch; margin-top: var(--s-3); }
.back-link { align-self: flex-start; font-size: var(--t-small); color: var(--p-muted); }
.back-arrow { width: 12px; height: 12px; flex: none; transition: transform .25s var(--ease-out); }
.back-link:hover .back-arrow { transform: translateX(-3px); }
.case-figs { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--s-5); width: 100%; }
.case-figs > div { border-top: 1px solid var(--edge-hi); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.case-figs > div:first-child { border-image: linear-gradient(90deg, var(--p-accent), var(--edge-hi)) 1; }
.case-figs :is(.t-stat, .stat-word) { margin: 0; font: var(--display-weight) clamp(38px, 2.4vw + 14px, 64px)/1 var(--font-display); letter-spacing: var(--display-tracking); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-figs p:not(.t-stat, .stat-word) { color: var(--read); font-size: var(--t-small); line-height: 1.45; }
.case-figs[style*="--n: 1"] { max-width: 420px; }

/* browser-framed screenshots; the line above each says what the screen does */
.shots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); min-height: 0; }
.shots--stack { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1.2fr); }
.shots--solo { grid-template-columns: minmax(0, 1fr); }
.shot { margin: 0; display: flex; flex-direction: column; gap: var(--s-3); min-height: 0; min-width: 0; }
.shot__note { font-size: var(--t-small); color: var(--p-muted); line-height: 1.45; flex: none; max-width: 70ch; }
.browser { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--edge-hi); border-radius: var(--r-md); overflow: hidden; background: var(--bx-2); transition: border-color .3s; }
.shot:hover .browser { border-color: color-mix(in oklab, var(--p-accent) 45%, var(--edge-hi)); }
.browser .win-bar { min-height: 36px; font-size: var(--t-label); }
.browser .win-bar i { width: 8px; height: 8px; }
.browser__view { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; background: #fff; }
.browser__view img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; transition: transform .5s var(--ease-out); }
.browser__view.contain { background: #1b1b1d; }
.browser__view.contain img { object-fit: contain; object-position: 50% 50%; }
.shot:hover .browser__view img { transform: scale(1.02); }

/* system box: the real path a lead takes, five steps on one lit track */
.sys { display: grid; gap: var(--s-4); align-content: start; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); padding: 0; margin: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 18px; right: 18px; top: 18px; height: 1px; background: linear-gradient(90deg, var(--lit), rgb(255 255 255 / .14) 60%, rgb(255 255 255 / .06)); }
.step { position: relative; display: grid; gap: 6px; align-content: start; min-width: 0; }
.step__ic { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bx-2); border: 1px solid var(--edge-hi); color: #fff; margin-bottom: var(--s-2); }
.step__ic img { width: 18px; height: 18px; object-fit: contain; }
.step__ic .gl { width: 18px; height: 18px; }
.step:first-child .step__ic { border-color: var(--lit); }
.step b { font-size: var(--t-body); font-weight: 600; color: #fff; }
.step > span:not(.step__ic) { font-size: var(--t-small); line-height: 1.5; color: var(--read); }
.step em { font-style: normal; font-size: var(--t-small); line-height: 1.45; border-top: 1px dashed var(--edge-hi); padding-top: 6px; display: block; color: var(--read); }
.step em strong { display: block; font-weight: 600; color: #fff; }
.rail { padding-top: var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; font-size: var(--t-small); color: var(--read); }
.rail > b { font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: var(--s-2); }
.rail > b img { background: #f4eef2; border-radius: 6px; padding: 3px; width: 26px; height: 26px; object-fit: contain; }
/* the big system box: the steps on a wider track, filling what the screen leaves */
.sys--big { flex: 1 1 0; min-height: 0; align-content: center; gap: var(--s-6); padding: var(--s-7) var(--s-6); }
.sys--big .steps::before { top: 24px; left: 24px; right: 24px; }
.sys--big .step__ic { width: 48px; height: 48px; }
.sys--big .step__ic img, .sys--big .step__ic .gl { width: 22px; height: 22px; }
.sys--big .step b { font-size: var(--t-card); }
.sys--big .step > span:not(.step__ic), .sys--big .step em { font-size: var(--t-body); }
.sys--big .rail { padding-top: var(--s-5); border-top: 1px solid var(--edge); font-size: var(--t-body); }
.case-media > .sys--big { padding: var(--s-6); gap: var(--s-5); }

/* MärRem: the audit, one wide box */
.audit { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); align-content: center; padding: var(--s-7) var(--s-6); }
.audit > p { grid-column: span 5; color: var(--read); font-size: var(--t-lead); line-height: 1.55; }
.audit__list { grid-column: 7 / -1; display: grid; padding: 0; margin: 0; list-style: none; }
.audit__list li:first-child { border-top: 1px solid var(--edge); }
.audit__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; min-height: 72px; border-bottom: 1px solid var(--edge); font-size: var(--t-lead); font-weight: 500; color: #fff; }
.audit__list li::before { content: "!"; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--p-accent); color: var(--p-accent); font: 700 13px/1 var(--font-text); display: grid; place-items: center; }

/* ---------------------------------------------------------------- the work bento: six linked cards, one result each */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--gutter); flex: 1 1 0; min-height: 0; }
.wcard { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; min-height: 0; }
.wc-5 { grid-column: span 5; } .wc-4 { grid-column: span 4; } .wc-3 { grid-column: span 3; }
.wcard__vis { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; border-bottom: 1px solid var(--edge); background: var(--bx-2); }
.wcard__shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; transition: transform .5s var(--ease-out); }
.wcard__shot--dark { background: #1b1b1d; }
.wcard__shot--dark img { object-fit: contain; object-position: 50% 50%; padding: var(--s-2); }
.wcard:hover .wcard__shot img { transform: scale(1.03); }
/* INCO: the bottom of the cover (the guide line and its two buttons over the photo), so no letter is cut */
.wcard__shot--end img { object-position: 50% 100%; }
.wcard__text { flex: none; display: grid; gap: 6px; padding: var(--s-4) var(--s-5) var(--s-5); }
.i-name { font: var(--display-weight) var(--t-card)/1.25 var(--font-display); letter-spacing: -0.015em; color: #fff; }
.i-what { font-size: var(--t-small); line-height: 1.45; color: var(--read); }
.section-head--wide { max-width: none; }
.i-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-3); margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--edge); }
.i-num > b { flex: none; font: var(--display-weight) clamp(34px, 1.6vw + 18px, 52px)/1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--p-accent); font-variant-numeric: tabular-nums; }
.i-num > b.i-word { font-size: clamp(28px, 1.2vw + 16px, 40px); }
.i-num > span { font-size: var(--t-small); line-height: 1.35; color: var(--p-muted); }
/* the three dates on the MärRem card */
.wcard__dates { display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: var(--s-2); padding: var(--s-3) var(--s-5); }
.wcard__dates span { font-size: var(--t-small); color: var(--read); border: 1px solid var(--edge-hi); border-radius: var(--r-sm); padding: 6px 12px; }
.wcard__dates span.on { border-color: var(--p-accent); color: #fff; background: color-mix(in oklab, var(--p-accent) 14%, transparent); }
.wcard__icons { display: flex; align-items: center; justify-content: center; gap: var(--s-3); }
.wcard__icons img { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: #f4eef2; object-fit: contain; }

/* ---------------------------------------------------------------- proof: three reviews and the figures */
#proof { background: linear-gradient(180deg, var(--p-bg), color-mix(in oklab, var(--p-accent) 6%, var(--p-bg)) 100%); }
#proof .wrap { gap: var(--s-6); }
#proof .section-head { margin-bottom: 0; }
.tlink--icon img { background: #f4eef2; border-radius: 6px; padding: 3px; width: 26px; height: 26px; }
.quotes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: var(--gutter); flex: 1 1 0; min-height: 0; }
.quotes__side { grid-column: 7 / -1; display: flex; flex-direction: column; gap: var(--gutter); min-height: 0; }
.quotes__side > figure { flex: 1 1 0; }
.quotes figure { margin: 0; padding: var(--s-5) var(--s-6); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4); min-width: 0; grid-column: 7 / -1; }
.quotes blockquote { margin: 0; font-size: var(--t-lead); line-height: 1.5; color: var(--read); }
.quotes .q-feature { grid-column: 1 / span 6; padding: var(--s-6); }
.quotes .q-feature blockquote { font: 400 clamp(24px, 1.1vw + 16px, 34px)/1.34 var(--font-display); letter-spacing: -0.015em; color: #fff; flex: 1 1 auto; display: flex; align-items: center; }
.quotes__side blockquote { font-size: 18px; line-height: 1.5; }
.q-play { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--p-accent); color: var(--p-accent-ink); flex: none; }
.q-play .gl { width: 18px; height: 18px; margin-left: 2px; }
.quotes figcaption, .also-quote figcaption { display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-small); color: var(--p-muted); }
.quotes figcaption > span:last-child, .also-quote figcaption > span:last-child { display: grid; gap: 2px; }
.quotes figcaption strong, .also-quote figcaption strong { font-size: var(--t-body); font-weight: 600; color: #fff; }
.q-mono { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 600 14px/1 var(--font-display); color: #fff; background: var(--bx-2); border: 1px solid var(--edge-hi); }
.q-feature .q-mono { border-color: var(--lit); }
/* the trust strip, directly under the hero: a slim row of four figures between two hairlines. It is
   a strip, not a screen: the kit's one-screen section height and padding are switched off for it */
main > section.section.trust { height: auto; min-height: 0; padding: 0; display: block; }
main > section.section.trust::after { display: none; }
main > section.section.trust > .wrap { height: auto; display: block; }
.trust-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--gutter); margin: 0; padding: var(--s-3) 0; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.trust-stats > div { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.trust-stats dd { margin: 0; flex: none; font: var(--display-weight) clamp(26px, 1vw + 18px, 34px)/1 var(--font-display); letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.trust-stats dt { font-size: var(--t-small); line-height: 1.35; color: var(--p-muted); }
.trust-stats dt a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--read); text-decoration: underline; text-decoration-color: var(--lit); text-underline-offset: 5px; }
.trust-stats dt a:hover { color: #fff; }

/* ---------------------------------------------------------------- how I work: three steps, big numerals */
/* a split: the heading on the left four columns, three numbered rows on the right eight, each row a
   big numeral beside its words; the rows share the screen's height */
.process-split { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.process-split > .section-head { grid-column: 1 / span 5; margin: 0; align-self: start; }
.process { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); min-height: 0; }
.process li { padding-top: var(--s-5); padding-bottom: var(--s-5); display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; column-gap: var(--gutter); border-top: 1px solid var(--edge-hi); min-width: 0; }
.process li:first-child { border-image: linear-gradient(90deg, var(--p-accent), var(--edge-hi)) 1; }
.process li > div { display: grid; gap: var(--s-3); }
.process__n { font: var(--display-weight) clamp(44px, 2vw + 28px, 64px)/1 var(--font-display); letter-spacing: -0.05em; color: var(--p-accent); font-variant-numeric: tabular-nums; }
.process h3 { font-size: clamp(22px, .8vw + 16px, 30px); line-height: 1.2; color: #fff; }
.process p { color: var(--read); font-size: var(--t-lead); line-height: 1.5; max-width: 48ch; }
/* the tools row: one slim, muted line of small logos; a logo wakes up on hover */
.tools { flex: none; display: flex; align-items: center; gap: var(--s-6); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--edge); }
.tools__label { flex: none; font-size: var(--t-label); font-weight: 500; color: var(--p-muted); }
.tools__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.tools__list li { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #f4eef2; opacity: .6; filter: saturate(.6); transition: opacity .25s var(--ease-out), filter .25s var(--ease-out); }
.tools__list li:hover { opacity: 1; filter: none; }
.tools__list img { width: 18px; height: 18px; object-fit: contain; }

/* ---------------------------------------------------------------- more work */
.group > .mini { flex: 1 1 0; }
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); flex: 1 1 0; min-height: 0; }
.mini article { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.mini__top { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.mini__icons { display: flex; gap: 6px; flex: none; }
.mini__icons img { width: 32px; height: 32px; padding: 6px; border-radius: 8px; background: #f4eef2; object-fit: contain; }
.mini__icons img.ic-ink { filter: none; }
.mini h3 { font-size: var(--t-h3); color: #fff; }
.mini-sub { display: block; font: 400 var(--t-body)/1.45 var(--font-text); letter-spacing: 0; margin-top: calc(-1 * var(--s-2)); color: var(--read); }
.mini dl { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-3) var(--s-5); }
.mini dt { font-size: var(--t-label); font-weight: 600; color: var(--p-accent); padding-top: 3px; }
.mini dd { margin: 0; font-size: var(--t-body); line-height: 1.55; color: var(--read); }
.mini .case-result { margin-top: auto; font-size: var(--t-body); }
/* the index in the More work hero: every build on the page, linked */
.more-index { display: grid; align-content: center; align-self: center; height: auto !important; padding: var(--s-3) var(--s-5); }
.more-index > a { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: var(--s-4); min-height: 72px; padding: var(--s-2) 0; border-bottom: 1px solid var(--edge); color: inherit; text-decoration: none; }
.more-index > a:last-child { border-bottom: 0; }
.more-index > a > span:last-child { display: grid; gap: 2px; }
.more-index b { font: var(--display-weight) var(--t-card)/1.25 var(--font-display); color: #fff; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.more-index > a:hover b { text-decoration-color: var(--p-accent); }
.more-index b + span { font-size: var(--t-small); color: var(--p-muted); }
.more-index .also__ic { width: 32px; height: 32px; }
.more-index .also__ic .gl { width: 16px; height: 16px; }
.hero-copy > .case-figs { margin-top: auto; }
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.also article { padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; }
.also article h3 { color: #fff; }
.also article > p { color: var(--read); }
.also .t-label, .also-sites .t-label { color: var(--p-accent); font-weight: 600; }
.also__row { display: flex; align-items: center; gap: var(--s-3); }
.also__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--lit); color: #fff; flex: none; }
.also__logos { display: flex; gap: 6px; }
.also__logos img { width: 32px; height: 32px; padding: 6px; border-radius: 8px; background: #f4eef2; object-fit: contain; }
.also-sites { margin-top: var(--gutter); display: grid; gap: var(--s-4); padding: var(--s-6); }
.also-quote { margin: 0; padding: var(--s-6); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4); }
.also-quote blockquote { margin: 0; font: 400 clamp(18px, .5vw + 14px, 22px)/1.4 var(--font-display); letter-spacing: -0.01em; color: #fff; }

/* ---------------------------------------------------------------- contact: words left, the portrait slot right */
footer.closing { background: linear-gradient(180deg, var(--p-bg) 0%, color-mix(in oklab, var(--p-accent) 7%, var(--p-bg)) 55%, var(--p-bg) 100%); }
.closing__links { border-top: 0; padding-top: var(--s-7); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); flex: 1 1 auto; min-height: 0; }
.contact-words { grid-column: span 6; gap: var(--s-5); }
.contact-words h2, .case-close__words h2 { font-size: clamp(38px, 3.24vw + 25.4px, 72px); line-height: 1.02; max-width: 14ch; letter-spacing: var(--display-tracking-xl); }
.contact-words .t-lead, .case-close__words .t-lead { color: var(--read); }
.mail { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.mail__addr { font: 500 clamp(18px, 1vw + 12px, 24px)/1.3 var(--font-text); letter-spacing: -0.01em; color: #fff; text-decoration: underline; text-decoration-color: var(--lit); text-underline-offset: 6px; text-decoration-thickness: 1px; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; transition: text-decoration-color .2s; }
.mail__addr:hover { text-decoration-color: var(--p-accent); }
#copied { font-weight: 500; font-size: var(--t-small); color: var(--p-accent); }
/* the hiring note: the right column beside the words */
.hire-note { display: grid; gap: var(--s-3); align-content: end; padding: var(--s-6); border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--bx); grid-column: 7 / -1; align-self: start; }
.contact-grid { align-items: start; }
.contact-words h2 { max-width: 12ch; }
.hire-note p { color: var(--read); }
.hire-note strong { color: #fff; font-weight: 600; }
.links-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
/* the portrait beside the heading: a clearly marked dashed placeholder until the photo is in */
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.contact-words .contact-head h2 { font-size: clamp(38px, 2.6vw + 22px, 64px); max-width: none; }
.portrait { flex: none; width: 176px; aspect-ratio: 4 / 5; position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--edge-hi); background: var(--bx); }
.portrait picture { position: absolute; inset: 0; display: block; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 28%; }
.footer__lede { font: 400 var(--t-body)/1.5 var(--font-text); letter-spacing: 0; color: var(--p-muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); align-items: center; color: var(--p-muted); }
/* the work pages' close: the words and buttons left, the next case study right */
.case-close { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-6); align-items: end; }
.case-close__words { grid-column: span 7; display: grid; gap: var(--s-5); justify-items: start; }
.case-next { grid-column: 9 / -1; padding: var(--s-6); gap: var(--s-2); }
.case-next .t-label { color: var(--p-muted); font-weight: 500; }
.case-next .i-name { font-size: var(--t-h3); }

/* phones narrower than 360: the nav's button and menu toggle stay inside the screen */
@media (max-width: 359px) {
  header.nav:not(.is-open) .nav__actions { display: none; }
  header.nav:not(.is-open) .nav__actions + .nav__toggle { margin-left: auto; }
}

/* ---------------------------------------------------------------- tablet and phone */
@media (max-width: 1023px) {
  main > .hero.case-hero { height: auto; min-height: 100svh; }
  .contact-grid { display: flex; flex-direction: column; gap: var(--s-6); }
  .case-words, .case-out, .demo-side { grid-column: 1 / -1; }
  .case-out { margin-top: var(--s-4); }
  .quotes { grid-template-rows: none; flex: none; }
  .quotes__side { grid-column: 1 / -1; }
  .quotes .q-feature, .quotes figure { grid-column: 1 / -1; grid-row: auto; }
  .work-grid { grid-template-rows: none; grid-auto-rows: minmax(340px, auto); flex: none; }
  .wc-5, .wc-4, .wc-3 { grid-column: span 6; }
  .case-media, .case-media > .shots { flex: none; }
  .shots .browser { flex: none; height: auto; }
  .shots .browser__view { flex: none; aspect-ratio: 1262 / 910; }
  .shots--solo .browser__view { aspect-ratio: 1392 / 771; }
  .shots--stack { grid-template-rows: none; }
  .shots--stack .shot:first-child .browser__view { aspect-ratio: 1305 / 290; }
  .shots--stack .shot:last-child .browser__view { aspect-ratio: 1305 / 380; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .steps::before { display: none; }
  .case-dl { flex: none; }
  .case-dl > div, .case-dl > div.wide, .case-dl > div.narrow { grid-column: 1 / -1; }
  .demo-win, .demo-body { flex: none; }
  .demo-body { grid-template-columns: 1fr; }
  .runlog { min-height: 220px; max-height: 360px; border-bottom: 1px solid var(--edge); }
  .mailbox { min-height: 200px; border-left: 0; }
  .sys--big, .case-media > .sys--big { flex: none; padding: var(--s-6); }
  .process-split { flex: none; display: flex; flex-direction: column; gap: var(--s-6); }
  .process { grid-template-rows: none; }
  .process li { grid-template-columns: 96px minmax(0, 1fr); padding-block: var(--s-6); align-items: start; }
  .process__n { font-size: 72px; }
  .tools { margin-top: var(--s-6); }
  .trust-stats { gap: var(--s-4) var(--gutter); }
  .trust-stats > div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mini { flex: none; }
  .hero-copy > .case-figs { margin-top: var(--s-7); }
  .also { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also > .also-quote { grid-column: 1 / -1; }
  .audit { flex: none; }
  .audit > p, .audit__list { grid-column: 1 / -1; }
  .hero-split > .more-index { flex: none; }
  .case-close__words, .case-next { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .shots { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--s-4); }
  .trust-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
  .case-figs { grid-template-columns: repeat(min(var(--n, 3), 2), minmax(0, 1fr)); }
  .mini dl { grid-template-columns: 1fr; gap: var(--s-1); }
  .mini dd + dt { margin-top: var(--s-3); }
  .contact-head { flex-direction: column-reverse; align-items: flex-start; gap: var(--s-5); }
  .portrait { width: 136px; border-radius: 28px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
  .wc-5, .wc-4, .wc-3 { grid-column: span 1; }
  .wcard__text { padding: var(--s-3) var(--s-3) var(--s-4); }
  .i-name { font-size: 17px; }
  .i-what { font-size: 13px; }
  .i-num { flex-direction: column; gap: 2px; }
  .i-num > b { font-size: 32px; }
  .wcard__vis { flex: none; height: 120px; }
  .wcard__dates span { padding: 3px 8px; font-size: 13px; }
  .wcard__icons { flex-wrap: wrap; align-content: center; gap: 6px; padding: var(--s-3); }
  .wcard__icons img { width: 36px; height: 36px; padding: 8px; }
  .process__n { font-size: 44px; }
  .process li { padding-top: var(--s-5); padding-bottom: var(--s-5); grid-template-columns: 64px minmax(0, 1fr); }
  .tools { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .wcard__text { padding: var(--s-4); }
  .hero .t-lead { font-size: 17px; }
  .hero h1 { font-size: 37px; }
  .case-hero h1 { font-size: 36px; }
  .mini, .quotes, .also { grid-template-columns: 1fr; }
  .bx { padding: var(--s-5); }
  .mini article, .audit, .sys--big, .case-media > .sys--big { padding: var(--s-5); }
  .audit__list li { min-height: 56px; font-size: var(--t-body); }
  /* phone: the five stations fit across, name under each icon; the log below says what each did */
  .nodes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: visible; padding: var(--s-4) var(--s-2); }
  .node { justify-items: center; text-align: center; gap: 2px; }
  .node > span:last-child { display: none; }
  .node b { font-size: 11px; line-height: 1.25; }
  .node.done b::after { content: none; }
  .flow__track { left: calc(var(--s-2) + (100% - 2 * var(--s-2)) / 10); right: calc(var(--s-2) + (100% - 2 * var(--s-2)) / 10); top: calc(var(--s-4) + 18px); }
  .runlog { max-height: none; }
  .runlog .ln { grid-template-columns: 1fr; gap: 2px; }
  .demo-win .win-bar { flex-wrap: wrap; padding-block: var(--s-2); }
  .demo-win .win-bar > .run-btn { margin-left: 0; width: 100%; }
  .case-close .btn-row { width: 100%; }
  .more-index { padding: var(--s-2) var(--s-4); }
  .more-index > a { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); }
}
/* 1024 to 1279: the kit lets a section grow past its screen here, so the bento grids take their
   natural height instead of sharing a fixed one (a short laptop would clip their text) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .quotes, .work-grid { flex: none; grid-template-rows: none; grid-auto-rows: auto; }
  .work-grid .wcard__vis { flex: none; height: 150px; }
  .quotes__side > figure { flex: none; }
}
/* the demo on a desktop: the five steps as a compact strip (the run log says what each did), the log and
   the email set a step smaller, so a finished run and the whole email fit the window without inner scrolling */
@media (min-width: 1024px) {
  .demo-head { margin-bottom: var(--s-5); }
  .nodes { padding-block: var(--s-4); }
  .flow__track { top: calc(var(--s-4) + 18px); }
  .node > span:last-child { display: none; }
  .node__ic { margin-bottom: 4px; }
  .runlog, .mailbox { padding: var(--s-4) var(--s-5); }
  .runlog { gap: var(--s-2); }
  .runlog .ln { font-size: 13px; line-height: 1.5; grid-template-columns: 104px minmax(0, 1fr); }
  .runlog .ln b { font-size: 12px; line-height: 1.75; }
  .email-card { padding: var(--s-3) var(--s-4); gap: 4px; }
  .email-card .body { font-size: 14px; line-height: 1.5; }
}

/* the wordmark: "kenneth" and "viola" in the display face, joined by a small pink node (a dot with a short line through it) */
.wm { display: inline-flex; align-items: center; gap: .08em; font: 600 1em/1 var(--font-display); letter-spacing: -0.035em; text-transform: lowercase; color: #fff; white-space: nowrap; }
.wm__node { flex: none; width: .3em; height: .84em; overflow: visible; margin-top: .05em; }
.wm__node path { fill: none; stroke: var(--p-accent, #ff488b); stroke-width: 2; stroke-linecap: round; }
.wm__node circle { fill: var(--p-accent, #ff488b); }
.nav__logo { font-size: 24px; }
@media (max-width: 639px) { .nav__logo { font-size: 21px; } }
