/* ==========================================================================
   Magnifize — portfolio
   Same thesis as styles.css: a dark room, light type, one silver accent, type does the work.
   The only colour on these pages belongs to the niches themselves: every row
   carries a small specimen in that niche's own palette (themes.css).
   ========================================================================== */

/* --- the older names, on the dark site -------------------------------------
   This file was written when the site was white. Its colour names now point at the
   dark role colours of styles.css: --ink is the light text, --white the dark ground,
   so every "ink on white" pair below still reads as text on its background. */
:root {
  --white: var(--bg); --mist: var(--surface); --ink: var(--text); --ink-2: var(--text-2);
  --night: var(--bg-2); --night-2: var(--surface); --night-line: var(--line-2);
  --on-night: var(--text); --on-night-2: var(--text-2);
}

/* --- concept label: first thing under the nav on every concept page ------- */
.concept { margin-top: var(--nav-h); background: var(--mist); border-bottom: 1px solid var(--line); }
.concept p { padding-block: 0.85rem; font-size: var(--t-small); color: var(--ink-2); max-width: 70ch; }
.concept strong { color: var(--ink); font-weight: 600; }
.concept + .phero { padding-top: clamp(3.5rem, 10vh, 6.5rem); }

/* --- case hero: the niche, then its one-line problem in silver ------------ */
.phero--case h1 { font-size: var(--t-xl); letter-spacing: -0.045em; line-height: 1; max-width: 22ch; }
.phero .label a { text-decoration: none; }
.phero .label a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* --- two columns of prose: problem / build, care / stack ------------------ */
.case-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s6); }
.case-split__h { font-size: var(--t-m); letter-spacing: -0.025em; margin-bottom: var(--s2); }
.case-split p { font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }
.case-split .gets { margin-top: var(--s2); }
@media (max-width: 860px) { .case-split { grid-template-columns: 1fr; } }

/* --- what automation solves: problem → what happens automatically, on the dark stage --- */
.solve__list { border-top: 1px solid var(--on-night-2); }
.solve__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s2) var(--s4); align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem); border-bottom: 1px solid var(--night-line);
}
.solve__num { padding-top: 0.15rem; font-size: var(--t-small); font-weight: 500; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.solve__k { margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-2); }
.solve__problem p:not(.solve__k) { font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; color: var(--on-night); max-width: 26ch; }
.solve__fix p:not(.solve__k) { font-size: 1.0625rem; line-height: 1.55; color: var(--on-night); max-width: 44ch; }
.solve__arrow { padding-top: 1.6rem; font-size: 1.5rem; line-height: 1; color: var(--silver); }
.solve__toep {
  display: inline-flex; align-items: center; min-height: 1.6rem; margin-top: 0.9rem; padding: 0 0.7rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--on-night-2); box-shadow: inset 0 0 0 1px var(--night-line);
}
.solve__more { margin-top: var(--s4); color: var(--on-night); }
@media (max-width: 860px) {
  .solve__row { grid-template-columns: auto minmax(0, 1fr); }
  .solve__arrow { grid-column: 2; padding-top: 0; transform: rotate(90deg); justify-self: start; }
  .solve__fix { grid-column: 2; }
}

/* --- service fit: one ledger row per service, with an honest meter -------- */
.fit { border-top: 1px solid var(--ink); }
.fit__row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: var(--s2) var(--s5);
  align-items: start; padding-block: clamp(1.75rem, 3.5vw, 2.5rem); border-bottom: 1px solid var(--line);
}
.fit__svc { display: grid; gap: 0.6rem; justify-items: start; }
.fit__svc h3 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.04em; line-height: 1.05; }
.fit__body { display: grid; gap: var(--s2); }
.fit__body p { color: var(--ink-2); max-width: 48ch; }
.fit__toep { display: block; margin-bottom: 0.2rem; font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.fit__more { align-self: center; white-space: nowrap; font-size: 0.95rem; }
.fit__row--niet .fit__svc h3 { color: var(--ink-2); }
@media (max-width: 900px) {
  .fit__row { grid-template-columns: 1fr; }
  .fit__more { align-self: start; }
}

.meter { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }
.meter__bars { display: inline-flex; gap: 3px; }
.meter__bars i { width: 1.1rem; height: 0.3rem; border-radius: 1px; background: var(--line); }
.meter__bars i.on { background: var(--ink); }
.meter--sterk { color: var(--ink); }
@media (forced-colors: active) { .meter__bars i.on { background: CanvasText; } }

/* --- overview: a ledger of niches, not a grid of cards -------------------- */
.pfs { border-top: 1px solid var(--ink); }
.pf {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 20rem); gap: var(--s2) var(--s4);
  align-items: center; padding-block: clamp(1.25rem, 2.6vw, 1.75rem); border-bottom: 1px solid var(--line);
}
.pf::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--mist);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-out);
}
.pf:hover::before, .pf:focus-within::before { transform: scaleY(1); }
.pf__title { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.04em; line-height: 1.1; }
.pf__title a { text-decoration: none; }
.pf__title a::after { content: ""; position: absolute; inset: 0; } /* the whole row is the link */
.pf__title a:focus-visible { outline: none; }
.pf:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.pf__sum { margin-top: 0.35rem; color: var(--ink-2); max-width: 56ch; }
.pf__meta { display: grid; gap: 0.5rem; justify-items: start; font-size: var(--t-small); }
.pf__cat { color: var(--ink-2); }
.pf__svc { display: flex; flex-wrap: wrap; gap: 0.25rem 0; font-weight: 500; }
.pf__svc li:not(:last-child)::after { content: "·"; margin-inline: 0.45rem; color: var(--silver); }
@media (max-width: 860px) {
  .pf { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .pf__meta { grid-column: 2; }
}

/* the specimen: niche name as type, in the niche's own colours */
.chip {
  position: relative; display: grid; place-items: center;
  width: clamp(3.5rem, 6vw, 4.75rem); aspect-ratio: 1; border-radius: 0.9rem;
  background: var(--t-bg); color: var(--t-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.6s var(--ease-out);
}
.chip__aa { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.04em; }
.chip__dot { position: absolute; right: 0.55rem; bottom: 0.55rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--t-accent); }
.pf:hover .chip { transform: rotate(-4deg) scale(1.04); }

.tag {
  display: inline-flex; align-items: center; min-height: 1.6rem; padding: 0 0.65rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2);
}
.tag--klantproject { background: var(--ink); color: var(--white); box-shadow: none; }

@media (prefers-reduced-motion: reduce) { .pf:hover .chip { transform: none; } }

/* --- overview hero: the examples are examples ------------------------------- */
.pf-note {
  margin-top: var(--s3); max-width: 46ch; padding: 1.1rem 1.35rem; border-radius: 1.1rem;
  background: var(--mist); color: var(--ink-2); font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.01em;
}
.pf-note strong { color: var(--ink); font-weight: 600; }

/* --- filters: search, a sliding segment for categories, toggles for services --- */
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.filters[hidden] { display: none; }

/* search, with the lens from the wordmark */
.fsearch { position: relative; display: block; }
.fsearch__icon { position: absolute; left: 1.4rem; top: 50%; width: 1em; height: 1em; margin-top: -0.6em; font-size: 1.1rem; pointer-events: none; }
.fsearch__icon .lens { left: 0; top: 0; }
.fsearch input {
  width: 100%; min-height: 3.75rem; padding: 0 1.5rem 0 3.6rem; border-radius: 999px;
  border: 1px solid transparent; background: var(--mist); font-size: 1.0625rem; letter-spacing: -0.01em;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.fsearch input::placeholder { color: var(--ink-2); opacity: 1; }
.fsearch input:hover { border-color: var(--line); }
.fsearch input:focus { outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.fsearch input::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 480px) { .fsearch input { font-size: 1rem; padding-right: 1rem; } }

.fgroup { border: 0; padding: 0; margin: 0; min-width: 0; }
.fgroup__legend { padding: 0; margin-bottom: 0.6rem; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }

/* categories: one track, one white pill that slides to the choice */
.seg {
  position: relative; display: flex; gap: 0.1rem; width: max-content; max-width: 100%; padding: 0.3rem;
  border-radius: 999px; background: var(--mist);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg.is-cut-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); }
.seg.is-cut-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem); mask-image: linear-gradient(90deg, transparent, #000 3rem); }
.seg.is-cut-start.is-cut-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
.seg__pill {
  position: absolute; z-index: 0; top: 0.3rem; bottom: 0.3rem; left: 0; width: 0; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  opacity: 0;
}
.seg.is-ready .seg__pill { opacity: 1; transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out); }
.seg__opt { position: relative; flex: none; }
.seg__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 0.6rem 0 1rem; border-radius: 999px; white-space: nowrap;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2); transition: color 0.3s, background-color 0.3s;
  pointer-events: none;
}
.seg__opt:hover span, .seg__opt input:checked + span { color: var(--ink); }
.seg:not(.is-ready) .seg__opt input:checked + span { background: var(--surface-2); }
.seg__n {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.4rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.3s, color 0.3s;
}
.seg__opt input:checked + span .seg__n { background: var(--ink); color: var(--white); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -2px; }

/* services: toggles that can be combined */
.tog { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tog__opt { position: relative; }
.tog__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tog__opt span {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 1.15rem 0 0.8rem; border-radius: 999px;
  background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.925rem; font-weight: 500; pointer-events: none;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.tog__box { position: relative; flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color 0.3s, box-shadow 0.3s; }
.tog__box::after {
  content: ""; position: absolute; left: 0.42rem; top: 0.22rem; width: 0.32rem; height: 0.6rem;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 0.35s var(--ease-out);
}
.tog__opt:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.tog__opt input:checked + span { background: var(--ink); color: var(--white); box-shadow: none; }
.tog__opt input:checked + span .tog__box { background: var(--white); box-shadow: none; }
.tog__opt input:checked + span .tog__box::after { transform: rotate(45deg) scale(1); }
.tog__opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 480px) {
  .tog { gap: 0.4rem; }
  .tog__opt span { gap: 0.5rem; padding: 0 0.9rem 0 0.65rem; font-size: 0.875rem; }
}

@media (forced-colors: active) {
  .seg__opt input:checked + span, .tog__opt input:checked + span { outline: 2px solid CanvasText; }
  .tog__box::after { border-color: CanvasText; }
}

.filters__status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2); min-height: 2.5rem; padding-top: var(--s1); }
.filters__status p { font-weight: 600; letter-spacing: -0.015em; }
.filters__status [hidden] { display: none; }
.pf[hidden] { display: none; }
.pf-empty { padding-block: var(--s5); font-size: var(--t-m); letter-spacing: -0.015em; line-height: 1.4; max-width: 40ch; }
.pf-empty[hidden] { display: none; }
.pf-empty .link { font-size: inherit; }

/* --- service pages: where a service is used -------------------------------- */
.head__p { max-width: 52ch; color: var(--ink-2); font-size: 1.125rem; }
.uses { border-top: 1px solid var(--line); }
.uses__row {
  display: grid; grid-template-columns: minmax(0, 15rem) 9.5rem minmax(0, 1fr); gap: 0.5rem var(--s4); align-items: baseline;
  padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.uses__niche { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; }
.uses__niche:hover { text-decoration: underline; text-underline-offset: 4px; }
.uses__row p { color: var(--ink-2); max-width: 60ch; }
.uses__text { display: grid; gap: 0.35rem; }
.uses__problem { color: var(--ink) !important; font-weight: 500; }
.uses__problem span { display: inline-block; margin-right: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.uses--skip .uses__row { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }
.uses--skip .meter { display: none; }
.uses-group + .uses-group { margin-top: var(--s5); }
.uses-group__h { display: flex; align-items: baseline; gap: 0.6rem; font-size: var(--t-m); margin-bottom: var(--s2); }
.uses-group__h span { font-size: var(--t-small); font-weight: 500; color: var(--ink-2); }
.chip--sm { width: 1.6rem; border-radius: 0.45rem; }
.chip--sm::after { content: ""; position: absolute; right: 0.25rem; bottom: 0.25rem; width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--t-accent); }
@media (max-width: 860px) {
  .uses__row, .uses--skip .uses__row { grid-template-columns: minmax(0, 1fr) auto; }
  .uses__row p, .uses__text { grid-column: 1 / -1; }
}
.kit-note { margin-top: var(--s3); font-size: var(--t-small); color: var(--ink-2); max-width: 70ch; }
.kit-note strong { color: var(--ink); }

/* websites: the concept sites themselves are the proof */
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
.showcase__item a { display: grid; gap: 0.9rem; text-decoration: none; }
.showcase__item img, .showcase__blank {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 1rem;
  background: var(--t-bg); box-shadow: 0 0 0 1px var(--line-2); transition: transform 0.7s var(--ease-out);
}
.showcase__item a:hover img, .showcase__item a:hover .showcase__blank { transform: translateY(-4px); }
.showcase__meta { display: grid; gap: 0.15rem; }
.showcase__meta b { font-size: var(--t-m); font-weight: 600; letter-spacing: -0.025em; }
.showcase__meta span { color: var(--ink-2); font-size: var(--t-small); }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; } }
.kdemo-wrap { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: var(--s4) var(--s6); align-items: start; }
.kdemo-aside { padding-top: 3.75rem; }
.kdemo-aside .gets { margin-top: var(--s2); }
@media (max-width: 960px) { .kdemo-wrap { grid-template-columns: 1fr; } .kdemo-aside { padding-top: 0; } }

/* --- case pages: the concept site as a screenshot, and photo credits --------- */
.phero .actions .muted { font-size: var(--t-small); }
.case-shot { margin-bottom: var(--section); }
.case-shot a { display: block; border-radius: 1rem; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, 0.8); transition: transform 0.8s var(--ease-out); }
.case-shot a:hover { transform: translateY(-4px); }
.case-shot__bar { display: flex; gap: 0.4rem; padding: 0.75rem 1rem; background: var(--mist); border-bottom: 1px solid var(--line); }
.case-shot__bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--line-2); }
.case-shot img { width: 100%; height: auto; }
.credits__intro { color: var(--ink-2); max-width: 60ch; margin-bottom: var(--s3); }
.credits { border-top: 1px solid var(--line); columns: 2 22rem; column-gap: var(--s5); }
.credits li { display: grid; gap: 0.1rem; padding-block: 0.75rem; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: var(--t-small); }
.credits a { text-underline-offset: 3px; }
.credits span { color: var(--ink-2); }

/* --- overview: tags ------------------------------------------------------ */
.pf__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag--demo { background: var(--mist); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* --- sketch: a site in the niche's own colours, and a phone with the automated message --- */
.case-sketch { margin-bottom: var(--section); }
.sk { position: relative; padding: 0 clamp(0rem, 6vw, 6rem) clamp(2rem, 5vw, 3rem) 0; }
.sk-browser { border-radius: 1rem; overflow: hidden; background: var(--t-bg); color: var(--t-ink); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.sk-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; background: var(--mist); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.sk-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line-2); }
.sk-bar span { margin-left: 0.8rem; padding: 0.15rem 0.8rem; border-radius: 999px; background: var(--white); font-size: 0.75rem; }
.sk-site { padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem); }
.sk-nav { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; }
.sk-nav b { margin-right: auto; font-size: 1.05rem; letter-spacing: -0.02em; }
.sk-nav span { width: 3.2rem; height: 0.35rem; border-radius: 999px; background: currentColor; opacity: 0.25; }
.sk-nav em { font-style: normal; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--t-accent); color: var(--t-on-accent); font-weight: 600; font-size: 0.75rem; }
.sk-hero { margin-top: clamp(2rem, 6vw, 4rem); max-width: 34rem; }
.sk-h { font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.02; }
.sk-lines { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.sk-lines span { height: 0.4rem; border-radius: 999px; background: currentColor; opacity: 0.18; }
.sk-lines span:nth-child(2) { width: 88%; } .sk-lines span:nth-child(3) { width: 64%; }
.sk-btn { display: inline-block; margin-top: 1.5rem; padding: 0.6rem 1.2rem; border-radius: 999px; background: var(--t-accent); color: var(--t-on-accent); font-weight: 600; font-size: 0.85rem; }
.sk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.sk-cards span { height: clamp(3.5rem, 8vw, 6rem); border-radius: 0.6rem; background: currentColor; opacity: 0.08; }
.sk-phone {
  position: absolute; right: 0; bottom: 0; width: clamp(12rem, 24vw, 17rem); padding: 2.2rem 0.9rem 1.2rem; border-radius: 2rem;
  background: #050607; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -20px rgba(0, 0, 0, 0.8); display: grid; gap: 0.45rem;
}
.sk-phone::before { content: ""; position: absolute; top: 0.8rem; left: 50%; width: 3.5rem; height: 0.35rem; margin-left: -1.75rem; border-radius: 999px; background: #2A2C31; }
.sk-chan { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #A3A7AE; }
.sk-bubble { padding: 0.65rem 0.8rem; border-radius: 0.9rem 0.9rem 0.9rem 0.25rem; background: #F4F4F6; color: #0A0A0B; font-size: 0.8rem; line-height: 1.4; }
.sk-bubble--chat { background: var(--t-accent); color: var(--t-on-accent); border-radius: 0.9rem 0.9rem 0.25rem 0.9rem; }
.case-sketch figcaption { margin-top: 0.8rem; font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 700px) {
  .sk { padding: 0; }
  .sk-phone { position: relative; width: auto; margin: -1.5rem 1rem 0; }
  .sk-cards { display: none; }
}

/* --- working prototypes: software we really built, with made-up clients ------
   (portfolio-src/prototypes/). The link to one is the only dark card in the
   portfolio, so real work stands apart from the concepts. ------------------- */
.tag--proto { background: var(--white); color: var(--ink); box-shadow: none; }
.tag--line { color: var(--ink); }
.proto-feature { padding-bottom: clamp(3rem, 7vw, 5rem); }
.proto-callout { margin-bottom: var(--s5); }
.proto-link {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: var(--s4);
  padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: 1rem; background: var(--surface); color: var(--on-night); box-shadow: inset 0 0 0 1px var(--line-2);
  text-decoration: none; overflow: hidden; transition: transform 0.8s var(--ease-out);
}
.proto-link:hover { transform: translateY(-4px); }
.proto-link__body { display: grid; gap: 0.75rem; justify-items: start; }
.proto-link__name { display: block; font-size: var(--t-l); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin-top: var(--s1); }
.proto-link__text { color: var(--on-night-2); max-width: 46ch; }
.proto-link__go { margin-top: var(--s1); color: var(--on-night); white-space: nowrap; }
.proto-link__img { align-self: stretch; display: flex; align-items: center; margin-right: calc(clamp(1.5rem, 3.5vw, 2.5rem) * -1.6); }
.proto-link__img img { display: block; width: 100%; height: auto; border-radius: 0.6rem; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); }
@media (max-width: 760px) {
  .proto-link { grid-template-columns: 1fr; }
  .proto-link__img { margin: 0 calc(clamp(1.5rem, 3.5vw, 2.5rem) * -1) calc(clamp(1.5rem, 3.5vw, 2.5rem) * -1) 0; }
}

/* hero: the benefit as the headline, the honest label as one quiet line, then the product itself */
.phero--proto h1 { max-width: 18ch; }
.phero--proto .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.proto-label { margin-top: var(--s4); display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem;
  font-size: var(--t-small); color: var(--ink-2); max-width: 70ch; }
.proto-hero { margin-bottom: var(--section); }
.proto-frame { border-radius: 1rem; overflow: hidden; background: var(--white);
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.proto-frame img { display: block; width: 100%; height: auto; }
.proto-hero figcaption, .proto-source { margin-top: var(--s2); font-size: var(--t-small); color: var(--ink-2); max-width: 70ch; }

/* the problem: three moments every office knows, then the sum */
.proto-lead { font-size: var(--t-m); line-height: 1.4; letter-spacing: -0.015em; color: var(--ink-2); max-width: 44ch; }
.proto-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5);
  border-top: 1px solid var(--ink); }
.proto-pains li { padding-top: var(--s3); }
.proto-pains h3 { font-size: var(--t-m); letter-spacing: -0.025em; }
.proto-pains p { margin-top: var(--s1); color: var(--ink-2); max-width: 34ch; }
@media (max-width: 860px) { .proto-pains { grid-template-columns: 1fr; gap: var(--s3); } }

.proto-calc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s4) var(--s6);
  margin-top: var(--s6); padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 1rem; background: var(--mist); }
.proto-calc__result h3 { margin-top: var(--s2); font-size: var(--t-m); letter-spacing: -0.025em; max-width: 18ch; }
.proto-calc__big { margin-top: var(--s4); font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; white-space: nowrap; }
.proto-calc__unit { margin-top: var(--s1); color: var(--ink-2); max-width: 26ch; }
.proto-calc__sum > p:first-child { color: var(--ink-2); max-width: 56ch; }
.proto-calc table { width: 100%; margin-top: var(--s3); border-collapse: collapse; font-size: 0.95rem; }
.proto-calc th { text-align: left; font-weight: 500; font-size: var(--t-small); color: var(--ink-2); padding: 0 0.5rem 0.6rem 0; border-bottom: 1px solid var(--ink); }
.proto-calc td { padding: 0.7rem 0.5rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.proto-calc .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; padding-left: 0.75rem; }
.proto-calc tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--ink); }
.proto-calc__note { margin-top: var(--s3); font-size: var(--t-small); color: var(--ink-2); max-width: 60ch; }
@media (max-width: 960px) { .proto-calc { grid-template-columns: 1fr; } }
.proto-calc__how { display: none; }
@media (max-width: 560px) {
  .proto-calc { padding: 1.25rem; }
  .proto-calc th:nth-child(2), .proto-calc th:nth-child(3), .proto-calc td:nth-child(2), .proto-calc td:nth-child(3) { display: none; }
  .proto-calc__how { display: block; margin-top: 0.15rem; font-size: var(--t-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
}

/* how it works: numbered steps, text beside a real screenshot */
.proto-steps { display: grid; gap: clamp(4rem, 9vw, 8rem); }
.proto-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s4) var(--s6); align-items: center; }
.proto-step__text { display: grid; gap: var(--s1); align-content: start; }
.proto-step__num { font-size: var(--t-l); font-weight: 600; letter-spacing: -0.04em; color: var(--silver); line-height: 1; }
.proto-step__text h3 { font-size: var(--t-m); letter-spacing: -0.025em; margin-top: var(--s1); }
.proto-step__text p { color: var(--ink-2); font-size: 1.125rem; max-width: 42ch; }
.proto-step__img img { display: block; width: 100%; height: auto; border-radius: 0.85rem; background: var(--white);
  box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -28px rgba(0, 0, 0, 0.8); }
.proto-step__img--tall { justify-self: center; width: min(100%, 340px); }
.proto-step__img--tall img { border-radius: 1.6rem; }
.proto-step__img--mail { justify-self: center; width: min(100%, 560px); }
@media (max-width: 860px) { .proto-step { grid-template-columns: 1fr; } }

/* tested: the numbers, then every hard case and what happened to it */
.proto-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); border-top: 1px solid var(--night-line); padding-top: var(--s4); }
.proto-stat { display: grid; gap: var(--s1); align-content: start; }
.proto-stat dt { font-size: var(--t-l); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--on-night); white-space: nowrap; }
.proto-stat dd { color: var(--on-night-2); max-width: 26ch; }
.proto-cases { width: 100%; margin-top: var(--s6); border-collapse: collapse; }
.proto-cases th { text-align: left; font-weight: 500; font-size: var(--t-small); color: var(--on-night-2); padding: 0 var(--s3) 0.75rem 0; border-bottom: 1px solid var(--on-night-2); }
.proto-cases td { padding: 1.1rem var(--s3) 1.1rem 0; border-bottom: 1px solid var(--night-line); vertical-align: top; color: var(--on-night); }
.proto-cases td:first-child { width: 45%; font-weight: 500; }
.proto-cases td:last-child { color: var(--on-night-2); }
.proto-note { margin-top: var(--s4); color: var(--on-night-2); max-width: 68ch; font-size: var(--t-small); }
@media (max-width: 960px) { .proto-stats { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .proto-cases thead { display: none; }
  .proto-cases tr { display: grid; gap: 0.35rem; padding-block: 1rem; border-bottom: 1px solid var(--night-line); }
  .proto-cases td { width: auto !important; padding: 0; border: 0; }
}

/* who decides: three roles in one row, the explanation underneath */
.proto-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); border-top: 1px solid var(--ink); counter-reset: role; }
.proto-roles li { padding-top: var(--s3); counter-increment: role; }
.proto-roles li::before { content: counter(role, decimal-leading-zero); display: block; margin-bottom: var(--s2); font-size: var(--t-small); font-weight: 600; color: var(--silver); font-variant-numeric: tabular-nums; }
.proto-roles h3 { font-size: var(--t-m); letter-spacing: -0.025em; }
.proto-roles p { margin-top: var(--s1); color: var(--ink-2); max-width: 32ch; }
.proto-trust .proto-lead { margin-top: var(--s5); max-width: 52ch; }
@media (max-width: 860px) { .proto-roles { grid-template-columns: 1fr; gap: var(--s3); } }

/* questions: the site's accordion, with room for a list in an answer */
.faq details .gets { margin-top: 0; margin-bottom: var(--s3); max-width: 58ch; }
.faq details .gets li { color: var(--ink-2); font-weight: 400; }
