/* Native side pages (Geio, Nov 18): How I work 3, About 2 and Contact 4 from Paper "Portfolio device, <page>",
   in the dark glass of the project page (Split 6). Values from the 1440 x 900 artboards. Glass pieces fade or clip
   only themselves, never through a parent, so their blur holds during every transition. No strokes, no shadows. */

.kp {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  color: #fff;
  transition: visibility 0s linear 520ms;
}
.kp.is-open { visibility: visible; transition: visibility 0s; }
.kp.is-open .d-scrim { opacity: 1; }
.kp.is-open .d4-pill { opacity: 1; }
.kp a { color: inherit; }
/* content above the fixed scrim */
.hw-page, .ab-wrap, .ct-grid { position: relative; }

/* shared type: the krid.ee scale, white at the Paper alpha levels */
.kp-title { margin: 0; font: 400 var(--display)/var(--lh-display) var(--font); letter-spacing: var(--ls-display); text-wrap: balance; }
.kp-lead { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: rgba(255, 255, 255, 0.56); }
.kp-label, .kp-small { margin: 0; font: 400 var(--small)/var(--lh-small) var(--font); color: rgba(255, 255, 255, 0.46); }
.kp-proof { margin: 0; font: 400 var(--meta)/var(--lh-meta) var(--font); color: rgba(255, 255, 255, 0.56); }

/* the content settles in after the glass, the old view held underneath */
.kp-in { opacity: 0; transform: translateY(8px); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
.kp.is-in .kp-in { opacity: 1; transform: none; transition-duration: 420ms; transition-delay: 120ms; }
.kp.is-in .kp-in:nth-child(2) { transition-delay: 180ms; }

/* the back pill: in How I work it is the side button itself, travelled up; its old label fades as the new one arrives */
.kp-back { position: relative; }
.kp-back-label, .kp-back svg { transition: opacity 240ms ease 260ms; }
.kp-ghost {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 200ms ease 100ms;
}
.kp-back.is-ghost .kp-back-label, .kp-back.is-ghost svg { opacity: 0; transition-delay: 0s; transition-duration: 160ms; }
.kp-back.is-ghost .kp-ghost { opacity: 1; transition-delay: 80ms; }
.kp-back.is-morph { opacity: 1 !important; transition: none; }

/* ------------------------------------------------------------------ How I work 3, content from Paper (Geio, Nov 18):
   "HIW content 4, figures lead" on top, "HIW content 1" below */
.hw-page { max-width: 1440px; margin: 0 auto; padding: 128px 56px 160px; overflow-x: clip; }
/* Paper "HIW top 1, figure in a panel with its promise" (Geio, Nov 18): the column on the left holds the title at
   the top and the promises at the foot, level with the proof; the panel on the right fills the height */
.hw-top { display: flex; justify-content: space-between; gap: 56px; height: max(560px, calc(100svh - 184px)); }
.hw-side { flex: 0 0 400px; display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding-bottom: 38px; }
.hw-head { display: grid; gap: 8px; }
.hw-head .kp-lead { color: rgba(255, 255, 255, 0.78); }
/* the promises: a list, the active one white with a dot hung in the margin */
.hw-tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hw-tab {
  position: relative; display: inline-flex; align-items: center;
  font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead);
  color: rgba(255, 255, 255, 0.56); text-align: left; white-space: nowrap;
  transition: color 200ms ease;
}
.hw-tab::before {
  content: ''; position: absolute; left: -16px; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: #fff;
  opacity: 0; transform: scale(0.4); transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.hw-tab[aria-selected='true'] { color: #fff; }
.hw-tab[aria-selected='true']::before { opacity: 1; transform: none; }
@media (hover: hover) { .hw-tab:hover { color: rgba(255, 255, 255, 0.88); } }
/* the panel: the active promise's figure up and right, its line and proof in the lower left */
.hw-fig {
  position: relative; flex: 1 1 0; min-width: 0; height: 100%; padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
  /* the site's hairline palette for a grey ground (astro global.css, grey look) */
  --hairline-plate: #66686a;
  --hairline-hi: #ffffff;
  --hairline-edge: #c4c4c4;
  --hairline-mid: #9a9a9a;
  --hairline-lo: #7c7e80;
}
.hw-fig > [data-hl] {
  position: absolute; top: 8px; right: 8px; width: min(760px, 100% - 16px); max-height: calc(100% - 16px); aspect-ratio: 5 / 4;
  opacity: 0; transition: opacity 220ms ease;
}
.hw-cf-stage {
  position: absolute; inset: var(--kp-panel-inset); margin: auto; height: calc(100% - 2 * var(--kp-panel-inset)); max-width: calc(100% - 2 * var(--kp-panel-inset)); aspect-ratio: 5 / 4;
}
.hw-fig svg, .hw-cf-stage svg { width: 100%; height: 100%; stroke-width: initial; }
.hw-fig > [data-hl].is-on { opacity: 1; transition-duration: 320ms; }
.hw-fig > [data-hl]:not(.is-on) { pointer-events: none; }
.hw-fig-todo { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.hw-now { position: relative; z-index: 1; display: grid; gap: 16px; width: min(320px, 100%); pointer-events: none; }
.hw-line { margin: 0; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); }
.hw-now .kp-proof { color: rgba(255, 255, 255, 0.46); }
.hw-now > * { transition: opacity 180ms ease; }
.hw-now.is-swap > * { opacity: 0; transition-duration: 140ms; }

@media (max-width: 899px) {
  .hw-page { padding: 92px 16px 64px; }
  /* phones: title, the promises, then the panel with the figure on top and its line under it */
  .hw-top { flex-direction: column; gap: 28px; height: auto; }
  .hw-side { flex: none; gap: 28px; padding: 0; justify-content: flex-start; }
  .hw-tabs { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; padding-left: 14px; }
  .hw-tab::before { left: -14px; }
  .hw-fig { flex: none; height: auto; display: grid; padding: 8px 20px 24px; }
  .hw-fig > [data-hl] { position: relative; top: auto; right: auto; grid-area: 1 / 1; width: 100%; max-height: none; }
  .hw-now { grid-area: 2 / 1; width: auto; max-width: 560px; }
}

/* ------------------------------------------------------------------ About 2 */
.ab-wrap { width: min(720px, 100% - 32px); margin: 0 auto; padding: 96px 0 72px; }
.ab-portrait { margin: 0; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; background: #2a2c2d; }
.ab-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.ab-intro .kp-title { max-width: 340px; }
.ab-text { display: grid; gap: 16px; align-content: start; justify-items: start; }
.ab-statement { margin: 0; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); }
.ab-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
  font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.88);
  transition: color 160ms ease;
}
.ab-more svg { width: 14px; height: 14px; stroke-width: 1.6; transition: transform 300ms var(--ease-out); }
.ab-more[aria-expanded='true'] svg { transform: rotate(180deg); }
@media (hover: hover) { .ab-more:hover { color: #fff; } }

.ab-career { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ab-career li { display: grid; gap: 3px; align-content: start; }
.ab-co { font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.88); }
.ab-role { font: 400 var(--meta)/var(--lh-meta) var(--font); color: rgba(255, 255, 255, 0.56); }
/* the roles open in place with the rest */
.ab-career .ab-role { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 360ms var(--ease-out), opacity 300ms ease; }
.kp-about.is-more .ab-career .ab-role { max-height: 48px; opacity: 1; transition-delay: 0s, 80ms; }

.ab-rest { display: grid; gap: 64px; margin-top: 88px; }
.ab-rest[hidden] { display: none; }
.ab-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ab-sec, .ab-end { opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.ab-rest.is-shown .ab-sec, .ab-rest.is-shown .ab-end { opacity: 1; transform: none; }
.ab-rest.is-shown > :nth-child(2) { transition-delay: 60ms; }
.ab-rest.is-shown > :nth-child(n + 3) { transition-delay: 120ms; }
.ab-h { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.ab-body { margin: 0; display: grid; gap: 12px; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); }
.ab-body p, .ab-body blockquote { margin: 0; }
.ab-big { font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.ab-strong { color: rgba(255, 255, 255, 0.88); }
.ab-body a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
@media (hover: hover) { .ab-body a:hover { text-decoration-color: #fff; } }
.ab-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.ab-rows li { display: grid; gap: 3px; }
.ab-quote figcaption { margin-top: 2px; }
/* More about me, the scroll story (Geio, Nov 18; kept for Having fun with it only): the part leaves the 720 column, the
   section name holds at the side while the lines, in display type, light word by word as they pass the reading
   line (pages.js storyLight). One thought per line block, with room between them */
.ab-story {
  --story-w: min(1120px, 100vw - 112px);
  width: var(--story-w); margin-left: calc((100% - var(--story-w)) / 2);
  grid-template-columns: 240px minmax(0, 1fr); column-gap: 64px;
  padding: 8vh 0 18vh;
}
.ab-story .ab-h { position: sticky; top: 112px; color: rgba(255, 255, 255, 0.56); }
.ab-story .ab-body { gap: 72px; color: #fff; }
.ab-story .ab-body > p:not(.kp-proof), .ab-story .ab-co {
  font: 400 var(--display)/var(--lh-display) var(--font); letter-spacing: var(--ls-display); color: #fff; text-wrap: pretty;
}
.ab-story .ab-body > .kp-proof { margin-bottom: -48px; }
.ab-story .ab-rows { margin: 0; gap: 40px; }
.ab-story .ab-rows li { gap: 8px; }
.ab-story .ab-role { font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: rgba(255, 255, 255, 0.78); max-width: 560px; }
.ab-story .w { opacity: 0.2; transition: opacity 360ms var(--ease-out); }
.ab-story .w.is-lit { opacity: 1; }
.ab-story a { text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.ab-sec-wide { grid-template-columns: 1fr 1fr; }
.ab-offices { grid-column: 1 / -1; display: grid; grid-template-columns: 250fr 390fr 500fr; gap: 12px; align-items: end; margin-top: 8px; }
.ab-offices figure, .ab-home { margin: 0; }
.ab-offices img, .ab-home img { display: block; width: 100%; height: auto; border-radius: 16px; background: #2a2c2d; }
.ab-home { grid-column: 1 / -1; }
.ab-home img { border-radius: 24px; }
.ab-offices figcaption, .ab-home figcaption { margin-top: 8px; font: 400 var(--small)/var(--lh-small) var(--font); color: rgba(255, 255, 255, 0.46); }
.ab-end { display: grid; gap: 10px; justify-items: start; padding-top: 24px; }
.ab-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-top: 14px; padding: 0 20px; border-radius: var(--pill);
  background: #fff; color: #1a1b1c !important; text-decoration: none; font: 400 var(--meta)/var(--lh-meta) var(--font);
}
.ab-cta svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .ab-cta:hover { filter: brightness(0.94); } .ab-cta:hover svg { transform: translateX(2px); } }
.ab-talk { text-decoration: none; padding: 0 22px; }

@media (max-width: 719px) {
  .ab-wrap { padding-top: 88px; }
  .ab-story { --story-w: 100%; grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding: 24px 0 10vh; }
  .ab-story .ab-h { position: static; }
  .ab-story .ab-body { gap: 48px; }
  .ab-story .ab-body > .kp-proof { margin-bottom: -32px; }
  .ab-story .ab-rows { gap: 28px; }
  .ab-intro { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .ab-career { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 36px; }
  .ab-rest { gap: 48px; margin-top: 64px; }
  .ab-sec, .ab-sec-wide { grid-template-columns: 1fr; gap: 12px; }
  .ab-offices { gap: 8px; }
  .ab-offices figcaption { font-size: 11px; line-height: 13px; }
  .ab-talk { padding: 0 18px; }
}

/* ------------------------------------------------------------------ Contact 4 */
.ct-grid {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: 112px calc(480px + 28px + 56px) 56px 56px;
}
.ct-head { display: grid; gap: 10px; max-width: 400px; }
/* the form: the Contact pill opened up, real glass */
.ct-form {
  position: absolute;
  top: 28px;
  right: 28px;
  bottom: 28px;
  width: 480px;
  margin: 0;
  padding: 32px;
  border-radius: 24px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(36px);
  backdrop-filter: blur(36px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.kp-contact:is(.is-open, .is-closing) .ct-form { opacity: 1; transition-duration: 0s; }
.ct-inner { height: 100%; display: flex; flex-direction: column; gap: 24px; overflow: auto; opacity: 0; transition: opacity 200ms ease; }
.kp-contact.is-in .ct-inner { opacity: 1; transition: opacity 360ms var(--ease-out) 160ms; }
.ct-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 8px; }
.ct-mail { font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; text-decoration: none; }
.ct-row .kp-proof { color: rgba(255, 255, 255, 0.46); }
.ct-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-field > span, .ct-need legend { font: 400 var(--meta)/var(--lh-meta) var(--font); color: rgba(255, 255, 255, 0.56); }
.ct-field input, .ct-field textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 400 var(--body)/var(--lh-body) var(--font);
  outline: none;
  transition: background-color 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.ct-field input { height: 48px; padding: 0 16px; }
.ct-field textarea { flex: 1; min-height: 120px; padding: 15px 16px; resize: none; }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.ct-field input:focus, .ct-field textarea:focus { background: rgba(255, 255, 255, 0.12); }
@media (hover: hover) { .ct-field input:hover, .ct-field textarea:hover { background: rgba(255, 255, 255, 0.09); } .ct-field input:focus, .ct-field textarea:focus { background: rgba(255, 255, 255, 0.12); } }
.ct-msg { flex: 1; }
.ct-need { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-need legend { padding: 0; margin-bottom: 12px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips label { position: relative; cursor: pointer; }
.ct-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ct-chips span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.78);
  font: 400 var(--meta)/var(--lh-meta) var(--font);
  transition: background-color 160ms ease, color 160ms ease;
}
@media (hover: hover) { .ct-chips label:hover span { background: rgba(255, 255, 255, 0.14); } }
.ct-chips input:checked + span { background: #fff; color: #1a1b1c; }
.ct-chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.ct-send { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.ct-btn {
  height: 40px; padding: 0 20px; border-radius: var(--pill); background: #fff; color: #1a1b1c;
  font: 400 var(--meta)/var(--lh-meta) var(--font);
}
@media (hover: hover) { .ct-btn:hover { filter: brightness(0.94); } }
.ct-send a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
@media (hover: hover) { .ct-send a:hover, .ct-mail:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); } }
.ct-field.is-wrong > span { color: #fff; }
.ct-field.is-wrong input, .ct-field.is-wrong textarea { background: rgba(255, 255, 255, 0.14); }

.ct-after { display: grid; gap: 20px; max-width: 720px; }
.ct-after-h { margin: 0; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.88); }
.ct-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, 156px); gap: 24px; }
.ct-steps li { display: grid; gap: 6px; align-content: start; }
.ct-step-h { font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.88); }

@media (max-width: 1099px) and (min-width: 900px) {
  .ct-form { width: 420px; }
  .ct-grid { padding-right: calc(420px + 28px + 40px); }
}
@media (max-width: 899px) {
  .ct-grid { justify-content: flex-start; gap: 32px; padding: 92px 16px 48px; }
  .ct-form { position: relative; inset: auto; width: auto; padding: 24px 20px; order: 2; }
  .ct-after { order: 3; }
  .ct-inner { height: auto; overflow: visible; }
  .ct-field textarea { flex: none; min-height: 160px; }
  .ct-steps { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
}
@media (max-width: 420px) {
  .ct-pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .kp-in, .ab-sec, .ab-end { transform: none !important; }
  .ab-story .w { opacity: 1; transition: none; }
}

/* About 2: the dive shows first, the blur follows it in */
.kp-about.is-open .d-scrim { transition: opacity 420ms var(--ease-out) 240ms; }

/* ------------------------------------------------------------------ shared: the closing call and step lists */
.kp-sub { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.kp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px 32px; }
.kp-steps li { display: grid; gap: 6px; align-content: start; }
.kp-step-h { font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.88); }
.kp-end { display: grid; gap: 16px; justify-items: start; }
.kp-end-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; }
.kp-talk, .sv-talk {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: var(--pill);
  background: #fff; color: #1e2022 !important; text-decoration: none; font: 400 var(--meta)/var(--lh-meta) var(--font);
  transition: filter 160ms ease;
}
@media (hover: hover) { .kp-talk:hover, .sv-talk:hover { filter: brightness(0.94); } }

/* ------------------------------------------------------------------ How I work: the rest of the page, HIW content 1 */
.hw-more { display: grid; gap: 160px; margin-top: 80px; }
/* the client logos, as the site's ticker: a slow seamless loop, faded at the edges, solid white quieted as one layer */
.hw-logos {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hw-logos-track { display: flex; width: max-content; opacity: 0.45; animation: hw-logos 45s linear infinite; }
.hw-logos ul { display: flex; align-items: center; gap: 72px; margin: 0; padding: 0 72px 0 0; list-style: none; }
.hw-logos img { display: block; width: auto; max-width: none; flex-shrink: 0; filter: brightness(0) invert(1); }
@keyframes hw-logos { to { transform: translateX(-50%); } }
.kp-how:not(.is-open) .hw-logos-track { animation-play-state: paused; }

.hw-sec { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 664px); column-gap: 64px; row-gap: 28px; justify-content: space-between; align-items: start; }
.hw-sec-head { display: grid; gap: 16px; align-content: start; }
.hw-list { list-style: none; margin: 0; padding: 8px 0 0; display: grid; gap: 20px; }
.hw-list > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.hw-n { font: 400 var(--lead)/var(--lh-lead) var(--font); color: rgba(255, 255, 255, 0.46); }
.hw-h { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.hw-d { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: rgba(255, 255, 255, 0.56); }

/* What I build with: a row of logos per group, names on hover, focus or tap */
.hw-stack { display: grid; gap: 22px; padding-top: 10px; }
.hw-group { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 16px; align-items: center; }
.hw-group-name { margin: 0; font: 400 var(--meta)/var(--lh-meta) var(--font); color: rgba(255, 255, 255, 0.56); }
.hw-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 18px; }
.hw-tool { position: relative; }
.hw-tool > button { display: grid; place-items: center; width: 22px; height: 22px; position: relative; }
.hw-tool > button::after { content: ''; position: absolute; inset: -9px; }
.hw-tool img { display: block; width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: 0.85; transition: opacity 200ms ease; }
.hw-stack:has(.hw-tool:is(:hover, :focus-within, [data-on])) .hw-tool:not(:hover, :focus-within, [data-on]) img { opacity: 0.3; }
.hw-tool:is(:hover, :focus-within, [data-on]) img { opacity: 1; }
.hw-card {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5;
  display: grid; gap: 2px; width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 12px;
  background: #1e2022; pointer-events: none;
  translate: calc(-50% + var(--dx, 0px)) 4px; opacity: 0; visibility: hidden;
  transition: opacity 160ms ease, translate 160ms var(--ease-out), visibility 0s 160ms;
}
.hw-tool:is(:hover, :focus-within, [data-on]) .hw-card { translate: calc(-50% + var(--dx, 0px)) 0; opacity: 1; visibility: visible; transition-delay: 0s; }
.hw-card-n { font: 400 var(--body)/var(--lh-body) var(--font); color: #fff; }
.hw-card-d { font: 400 var(--meta)/var(--lh-meta) var(--font); color: rgba(255, 255, 255, 0.56); }

/* From your request to live: tabs under the lead, the figure, the steps, the closing line */
.hw-cf-tabs { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 24px; }
.hw-cf-tab { font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: rgba(255, 255, 255, 0.46); transition: color 200ms ease; }
.hw-cf-tab[aria-selected='true'] { color: #fff; }
@media (hover: hover) { .hw-cf-tab:hover { color: rgba(255, 255, 255, 0.88); } }
.hw-cf-panel { display: grid; gap: 40px; }
.hw-cf-fig {
  position: relative; width: min(100%, 528px); aspect-ratio: 528 / 342;
  --hairline-plate: #66686a; --hairline-hi: #ffffff; --hairline-edge: #c4c4c4; --hairline-mid: #9a9a9a; --hairline-lo: #7c7e80;
}
.hw-cf-stage[hidden] { display: none; }
.hw-cf-steps { gap: 14px; padding-top: 0; }
.hw-cf-step { display: grid; gap: 0; text-align: left; }
.hw-cf-step .hw-h { color: rgba(255, 255, 255, 0.56); transition: color 200ms ease; }
.hw-cf-step .hw-d {
  max-width: 420px; max-height: 0; overflow: hidden; opacity: 0;
  font: 400 var(--body)/var(--lh-body) var(--font); letter-spacing: 0; color: rgba(255, 255, 255, 0.78);
  transition: max-height 320ms var(--ease-out), opacity 200ms ease, margin-top 320ms var(--ease-out);
}
.hw-cf-steps > li[data-on] .hw-n, .hw-cf-steps > li[data-on] .hw-h { color: #fff; }
.hw-cf-steps > li[data-on] .hw-d { max-height: 120px; opacity: 1; margin-top: 6px; }
@media (hover: hover) { .hw-cf-step:hover .hw-h { color: rgba(255, 255, 255, 0.88); } }
.hw-closing { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }

/* one panel for every hairline figure on these pages (Geio, Nov 18: "these should be in their containers",
   "and similar ones"): a soft rounded panel a little lighter than the ground, no stroke, no shadow, smooth corners,
   the figure centred in it and its text under it. The promise figure, From your request to live, How it works and
   Ways to work all use it */
.kp { --kp-panel-bg: rgba(255, 255, 255, 0.05); --kp-panel-r: 32px; --kp-panel-pad: 6%; --kp-panel-inset: 4%; }
@supports (corner-shape: none-geio-no-smoothing) { .kp { --kp-panel-r: 44px; } }
.hw-panel, .hw-cf-fig, .hw-fig { background: var(--kp-panel-bg); border-radius: var(--kp-panel-r);; }
.hw-panel { padding: var(--kp-panel-pad); }
@media (max-width: 899px) { .kp { --kp-panel-r: 20px; } @supports (corner-shape: none-geio-no-smoothing) { .kp { --kp-panel-r: 28px; } } }

/* How it works and Ways to work, illustrated like the site (how-i-work.astro how-card): a hairline figure on the
   ground itself, white lines in the grey look's palette, rising in as it comes into view (Geio, Nov 18) */
.hw-art {
  width: 100%; aspect-ratio: 5 / 4;
  --hairline-plate: #66686a; --hairline-hi: #ffffff; --hairline-edge: #c4c4c4; --hairline-mid: #9a9a9a; --hairline-lo: #7c7e80;
  opacity: 0; transform: translateY(12px);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.hw-art.is-seen { opacity: 1; transform: none; }
.hw-art svg { width: 100%; height: 100%; stroke-width: initial; }
.hw-sec-how { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
.hw-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.hw-how > li { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 4px; }
.hw-how .hw-panel { margin-bottom: 16px; }
.hw-how .kp-small { margin-bottom: 4px; }
.hw-how > li:nth-child(2) .hw-art { transition-delay: 80ms; }
.hw-how > li:nth-child(3) .hw-art { transition-delay: 160ms; }
.hw-how > li:nth-child(4) .hw-art { transition-delay: 240ms; }
.hw-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-top: 8px; }
.hw-way { display: grid; gap: 16px; align-content: start; }
.hw-way-text { display: grid; gap: 6px; }
.hw-ways > :nth-child(2) .hw-art { transition-delay: 100ms; }

@media (max-width: 1100px) {
  .hw-sec { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 40px; }
}
@media (max-width: 899px) {
  .hw-more { gap: 88px; margin-top: 56px; }
  .hw-sec { grid-template-columns: minmax(0, 1fr); }
  .hw-group { grid-template-columns: 104px minmax(0, 1fr); }
  .hw-card { max-width: 200px; }
  .hw-how { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .hw-how .hw-panel { margin-bottom: 8px; }
  .hw-how > li:nth-child(3) .hw-art { transition-delay: 0ms; }
  .hw-how > li:nth-child(4) .hw-art { transition-delay: 80ms; }
}
@media (max-width: 560px) {
  .hw-ways { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hw-ways > :nth-child(2) .hw-art { transition-delay: 0ms; }
}
@media (max-width: 809px) {
  .hw-logos-track { zoom: 0.6; animation-duration: 32s; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-logos-track { animation-play-state: paused; }
  .hw-cf-step .hw-d, .hw-card, .hw-tab::before { transition: none; }
  .hw-art { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ Services, flow 4 */
.kp-services .kp-back { overflow: hidden; white-space: nowrap; }
.sv-back-to { display: none; }
.kp-back.is-to .kp-back-label { display: none; }
.kp-back.is-to .sv-back-to { display: inline; }

.sv-grid { position: relative; display: grid; grid-template-columns: 272px minmax(0, 1fr); column-gap: 64px; min-height: 100dvh; padding-left: 56px; }
.sv-side { position: sticky; top: 0; height: 100dvh; grid-row: 1; grid-column: 1; }
.sv-top { display: grid; padding-top: 112px; }
.sv-names, .sv-head { grid-area: 1 / 1; }
.sv-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: start; width: max-content; max-width: 520px; }

/* the names read as buttons without getting loud: pointer, a soft lift to white, an arrow that slides in */
.sv-name {
  display: inline-flex; align-items: center; gap: 14px; padding: 0; cursor: pointer; text-align: left;
  font: 400 var(--display)/var(--lh-display) var(--font); letter-spacing: var(--ls-display);
  color: rgba(255, 255, 255, 0.35);
  transition: color 220ms ease, opacity 160ms ease;
}
.sv-arrow {
  width: 22px; height: 22px; flex: none; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: translateX(-8px); transition: opacity 200ms ease, transform 320ms var(--ease-out);
}
.sv-name.is-sel { color: #fff; }
.sv-name.is-sel .sv-arrow { opacity: 1; transform: none; }
@media (hover: hover) { .sv-name:hover { color: #fff; } }
/* touch: no hover to reveal it, so every name carries a quiet arrow and the first tap opens */
@media (hover: none) {
  .sv-name { color: rgba(255, 255, 255, 0.72); }
  .sv-arrow { opacity: 0.4; transform: none; }
}

.sv-head { visibility: hidden; display: grid; gap: 10px; align-content: start; }
.sv-title { outline: none; }
.sv-head .kp-lead { opacity: 0; transition: opacity 200ms ease; }

.sv-rail { position: absolute; left: 0; top: 50%; display: grid; gap: 12px; justify-items: start; visibility: hidden; }
.sv-chap {
  display: inline-flex; align-items: center; gap: 12px; padding: 0; cursor: pointer;
  font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.46);
  opacity: 0; transform: translateY(6px); transition: opacity 200ms ease, transform 200ms ease, color 200ms ease;
}
.sv-chap i { width: 24px; height: 2px; border-radius: 1px; background: #fff; opacity: 0.14; transition: opacity 240ms ease; }
.sv-chap.is-past i { opacity: 0.35; }
.sv-chap.is-on { color: #fff; }
.sv-chap.is-on i { opacity: 1; }
@media (hover: hover) { .sv-chap:hover { color: rgba(255, 255, 255, 0.82); } }

.sv-cta { position: absolute; left: 0; bottom: 56px; display: flex; align-items: center; gap: 14px; visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 0s 200ms; }
.sv-cta .kp-small { color: rgba(255, 255, 255, 0.46); }
.sv-foot { position: absolute; left: 0; bottom: 82px; width: 440px; display: grid; gap: 4px; transition: opacity 200ms ease; }
.sv-foot-h { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }

/* the picture: runs off the right edge, rounded on the left only */
.sv-pic { position: absolute; top: 112px; left: 44.45%; right: 0; display: grid; gap: 16px; transition: transform 500ms cubic-bezier(0.53, 0, 0.12, 0.99), visibility 0s; }
.sv-shot { position: relative; height: min(600px, calc(100dvh - 300px)); border-radius: 24px 0 0 24px; overflow: hidden; background: #2a2c2d; cursor: pointer; }
.sv-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
.sv-shot img.is-on { opacity: 1; }
.sv-capt { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 0 56px 0 4px; }
.sv-capt-text { display: grid; gap: 4px; max-width: 440px; }
.sv-capt-text p { margin: 0; transition: opacity 120ms ease; }
.sv-capt-text.is-swap p { opacity: 0; }
.sv-desc { font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); }
.sv-capt-text .kp-small { color: rgba(255, 255, 255, 0.46); }
.sv-open { flex: none; height: 40px; padding: 0 14px 0 18px; font-size: var(--meta); }
.sv-open svg { width: 16px; height: 16px; }

/* inside a service: the scroll of chapters, the next services following */
.sv-main {
  grid-row: 1; grid-column: 2; padding: 112px 0 96px; min-width: 0;
  opacity: 0; transform: translateY(24px); transition: opacity 180ms ease, transform 300ms ease;
}
.sv-svc { display: grid; }
.sv-svc + .sv-svc { margin-top: 40px; }
.sv-ch, .sv-next { display: grid; gap: 28px; padding: 0 56px 120px 0; }
.sv-ch > *:not(.sv-bleed), .sv-next > *:not(.sv-bleed) { max-width: 960px; }
.sv-svc:first-child .sv-next { display: none; }
/* a following service already showed this picture in its header */
.sv-svc:not(:first-child) .sv-media[data-dup] { display: none; }
.sv-say { margin: 0; font: 400 var(--display)/var(--lh-display) var(--font); letter-spacing: var(--ls-display); color: #fff; text-wrap: pretty; }
.sv-mute { color: rgba(255, 255, 255, 0.46); }
.sv-how { display: grid; gap: 20px; padding-top: 12px; }
.sv-how-head { display: grid; gap: 4px; }
.sv-media { margin: 0; display: grid; gap: 16px; }
.sv-bleed, .sv-media.sv-bleed { margin-right: -56px; }
.sv-media img { display: block; width: 100%; height: auto; border-radius: 24px 0 0 24px; background: #2a2c2d; }
.sv-media figcaption { padding-left: 4px; color: rgba(255, 255, 255, 0.5); }
.sv-pair { grid-template-columns: 1fr 1fr; gap: 16px; }
.sv-pair figcaption { grid-column: 1 / -1; }
.sv-pair img { border-radius: 24px; }
.sv-media-pic { display: grid; gap: 8px; }
.sv-media-pic .kp-small { padding-left: 4px; color: rgba(255, 255, 255, 0.5); }
.sv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sv-chips li { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 8px; border-radius: var(--pill); background: var(--glass); font: 400 var(--meta)/var(--lh-meta) var(--font); color: #fff; }
.sv-n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font: 400 var(--small)/var(--lh-small) var(--font); color: rgba(255, 255, 255, 0.78); }
.sv-todo { height: 440px; display: grid; place-items: center; padding: 24px; border-radius: 24px 0 0 24px; background: var(--glass); text-align: center; }
.sv-todo .kp-proof { color: rgba(255, 255, 255, 0.78); }
.sv-ch-handover { gap: 36px; }
.sv-rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 28px 40px; }
.sv-rows div { display: grid; gap: 6px; align-content: start; }
.sv-rows dt { font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.sv-rows dd { margin: 0; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); }
.sv-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.sv-cards li { display: grid; gap: 4px; align-content: start; }
.sv-cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: #2a2c2d; margin-bottom: 10px; }
.sv-cards .kp-small { color: rgba(255, 255, 255, 0.46); }
.sv-faq { columns: 2 440px; column-gap: 40px; }
.sv-faq div { break-inside: avoid; display: grid; gap: 6px; margin-bottom: 24px; }
.sv-faq h4 { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.sv-faq p { margin: 0; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); }
.sv-next { gap: 20px; }
.sv-next-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sv-next-name { display: grid; gap: 6px; }
.sv-next-name .kp-small { color: rgba(255, 255, 255, 0.46); }
.sv-next-short { margin: 0; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); text-align: right; }
.sv-next-pic { height: 420px !important; object-fit: cover; }
.sv-end { display: none; padding: 0 0 96px; }
.sv-fin { padding: 40px 56px 40px 0; }

/* hub to service (state classes from pages.js) */
.kp-services.is-svc .sv-name:not(.is-sel) { opacity: 0; pointer-events: none; }
.kp-services.is-svc .sv-name.is-sel, .kp-services.is-landing .sv-name.is-sel { visibility: hidden; }
.kp-services:is(.is-svc, .is-landing) .sv-head { visibility: inherit; }
.kp-services.is-svc .sv-head .kp-lead { opacity: 1; transition: opacity 360ms var(--ease-out) 200ms; }
.kp-services.is-settled .sv-names { display: none; }
.kp-services.is-svc .sv-rail { visibility: inherit; }
.kp-services.is-svc .sv-chap { opacity: 1; transform: none; transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), color 200ms ease; transition-delay: calc(180ms + var(--i) * 60ms), calc(180ms + var(--i) * 60ms), 0s; }
.kp-services.is-svc .sv-cta { visibility: inherit; opacity: 1; transition: opacity 360ms var(--ease-out) 260ms, visibility 0s; }
.kp-services.is-svc .sv-foot { opacity: 0; pointer-events: none; }
.kp-services.is-svc .sv-pic { transform: translateX(calc(100% + 40px)); visibility: hidden; pointer-events: none; transition: transform 500ms cubic-bezier(0.53, 0, 0.12, 0.99), visibility 0s 500ms; }
.kp-services.is-svc .sv-capt-text { opacity: 0; transition: opacity 140ms ease; }
.kp-services.kp-services.is-svc .sv-open { opacity: 0; transition: opacity 140ms ease; }
.kp-services.is-svc .sv-main { opacity: 1; transform: none; transition: opacity 420ms var(--ease-out) 140ms, transform 500ms cubic-bezier(0.53, 0, 0.12, 0.99) 60ms; }
.kp-services.is-leaving .sv-main { opacity: 0; transform: none; transition: opacity 150ms ease; }
.kp-services.is-quick :is(.sv-main, .sv-chap, .sv-cta, .sv-pic, .sv-head .kp-lead) { transition: none !important; }
/* the current service changes while scrolling: title and rail swap in place */
.sv-side .sv-head, .sv-side .sv-rail { transition: opacity 160ms ease; }
.sv-side.is-swap .sv-head, .sv-side.is-swap .sv-rail { opacity: 0; }
/* closing: the side and the scroll fade with the page */
.kp-services:not(.is-in) :is(.sv-rail, .sv-cta, .sv-main) { opacity: 0; transition: opacity 200ms ease; }
/* a closed page never catches clicks */
.kp-services:not(.is-open) * { pointer-events: none !important; }

@media (max-width: 1099px) and (min-width: 900px) {
  .sv-grid { grid-template-columns: 240px minmax(0, 1fr); column-gap: 48px; }
  .sv-names { max-width: 400px; }
}
@media (max-width: 899px) {
  .sv-grid { display: flex; flex-direction: column; padding: 92px 16px 48px; }
  .sv-side { display: contents; }
  .sv-top { order: 1; padding-top: 0; }
  .sv-names { gap: 4px; width: auto; max-width: none; }
  .sv-name { gap: 10px; }
  .sv-arrow { width: 18px; height: 18px; }
  .sv-rail, .sv-cta { display: none; }
  .sv-pic { order: 2; position: relative; top: auto; left: auto; margin-top: 28px; margin-right: -16px; }
  .sv-shot { height: auto; aspect-ratio: 4 / 3; border-radius: 13px 0 0 13px; }
  .sv-capt { padding-right: 16px; }
  .sv-open { display: none; }
  .sv-foot { order: 3; position: static; width: auto; margin-top: 40px; }
  .kp-services.is-settled :is(.sv-pic, .sv-foot) { display: none; }
  .sv-main { order: 4; padding: 40px 0 24px; }
  .sv-ch, .sv-next { padding: 0 0 72px; gap: 20px; }
  .sv-bleed, .sv-media.sv-bleed { margin-right: -16px; }
  .sv-media img, .sv-todo { border-radius: 13px 0 0 13px; }
  .sv-pair { grid-template-columns: 1fr; }
  .sv-pair img, .sv-cards img { border-radius: 13px; }
  .sv-todo { height: 240px; }
  .sv-next-pic { height: 220px !important; }
  .sv-next-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sv-next-short { text-align: left; }
  .sv-rows { grid-template-columns: 1fr; gap: 20px; }
  .sv-cards { grid-template-columns: 1fr; gap: 28px; }
  .sv-faq { columns: 1; }
  .sv-end { display: block; padding-bottom: 72px; }
  .sv-fin { display: none; }
  .sv-svc + .sv-svc { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-main, .sv-chap, .sv-pic, .sv-arrow { transition: none !important; transform: none !important; }
}
/* the next service starts after a clear pause (Geio, Nov 18) */
.sv-svc:not(:first-child) .sv-next { padding-top: 96px; }
.sv-next-name .kp-small { font-variant-numeric: tabular-nums; }
@media (max-width: 719px) { .sv-svc:not(:first-child) .sv-next { padding-top: 56px; } }

/* My freelance history as photos left on a table (Geio, Nov 18): printed photos with a white margin, a little
   scattered and overlapping. Hover, focus or tap lifts one straight and shows what it is on its bottom margin */
.ab-table { position: relative; display: block; height: 640px; margin-top: 24px; }
.ab-photo {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0;
  padding: 10px 10px 34px; border-radius: 6px; background: #f3f2ee;
  transform: rotate(var(--r)); transform-origin: 50% 60%;
  transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), z-index 0s 420ms;
  cursor: pointer; outline: none;
}
.ab-photo img { display: block; width: 100%; height: auto; border-radius: 2px; background: #2a2c2d; }
.ab-photo figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 9px; margin: 0;
  font: 400 var(--small)/var(--lh-small) var(--font); color: #2b2c2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px); transition: opacity 260ms ease, transform 320ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ab-photo:is(:hover, :focus-visible, .is-up) { z-index: 5; transform: rotate(0deg) scale(1.06); transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), z-index 0s; }
.ab-photo:is(:hover, :focus-visible, .is-up) figcaption { opacity: 1; transform: none; }
@media (max-width: 719px) {
  .ab-table { height: 560px; }
  .ab-photo { padding: 7px 7px 26px; }
  .ab-photo figcaption { left: 8px; right: 8px; bottom: 7px; font-size: 11px; line-height: 13px; }
  .ab-photo:nth-child(1) { --x: 0%; --y: 10px; --w: 44%; }
  .ab-photo:nth-child(2) { --x: 40%; --y: 40px; --w: 58%; }
  .ab-photo:nth-child(3) { --x: 4%; --y: 250px; --w: 60%; }
  .ab-photo:nth-child(4) { --x: 34%; --y: 330px; --w: 64%; }
}
@media (prefers-reduced-motion: reduce) { .ab-photo, .ab-photo figcaption { transition: none; } }
/* the table keeps its shape at every width; photos sit in percentages of it */
.ab-table { height: auto; aspect-ratio: 1.55; }
@media (max-width: 719px) {
  .ab-table { aspect-ratio: 0.82; height: auto; }
  .ab-photo:nth-child(1) { --x: 0%; --y: 2%; --w: 46%; }
  .ab-photo:nth-child(2) { --x: 38%; --y: 10%; --w: 62%; }
  .ab-photo:nth-child(3) { --x: 0%; --y: 44%; --w: 62%; }
  .ab-photo:nth-child(4) { --x: 30%; --y: 58%; --w: 70%; }
}

/* the table photos (Geio, Nov 18): no print border, smooth corners; hover lifts one, draws a soft white outline and
   shows a small glass tooltip with white text */
.ab-photo {
  padding: 0; background: none; border-radius: 18px;;
  outline: 2px solid rgba(255, 255, 255, 0); outline-offset: 3px;
  transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), outline-color 260ms ease, z-index 0s 420ms;
}
.ab-photo img { border-radius: 18px;; }
.ab-photo:is(:hover, :focus-visible, .is-up) { outline-color: #fff; transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), outline-color 260ms ease, z-index 0s; }
.ab-photo figcaption {
  left: 50%; right: auto; bottom: 12px; max-width: calc(100% - 24px);
  padding: 7px 12px; border-radius: 999px;
  background: rgba(40, 42, 44, 0.42); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  color: #fff; transform: translate(-50%, 6px);
}
.ab-photo:is(:hover, :focus-visible, .is-up) figcaption { transform: translate(-50%, 0); }
@media (max-width: 719px) {
  .ab-photo { padding: 0; border-radius: 13px; }
  .ab-photo img { border-radius: 13px; }
  .ab-photo figcaption { bottom: 8px; left: 50%; right: auto; padding: 5px 10px; }
}
/* smooth corners the site's way: a squircle at twice the radius where the browser has corner-shape */
@supports (corner-shape: none-geio-no-smoothing) {
  .ab-photo, .ab-photo img { border-radius: 36px; }
  @media (max-width: 719px) { .ab-photo, .ab-photo img { border-radius: 26px; } }
}
/* the photo is a button that opens it full size; it fills the figure like the picture did */
.ab-lb { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: inherit; cursor: zoom-in; }
.ab-lb img { display: block; width: 100%; height: auto; border-radius: inherit; corner-shape: inherit; }
.ab-lb:focus-visible { outline: none; }
.ab-photo:has(.ab-lb:focus-visible) { outline-color: #fff; z-index: 5; transform: rotate(0deg) scale(1.06); }
.ab-photo:has(.ab-lb:focus-visible) figcaption { opacity: 1; transform: translate(-50%, 0); }
.ab-photo figcaption { pointer-events: none; }
/* the hub's service videos stack and crossfade like the pictures did (Geio, Nov 18) */
.sv-shot > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
.sv-shot > video.is-on { opacity: 1; }
video.sv-next-pic { display: block; width: 100%; border-radius: inherit; }

/* ------------------------------------------------------------------ Services: the site's figures and explainers
   (Geio, Nov 18). Every figure and demo sits in the soft panel of How I work: a little lighter than the ground,
   smooth corners, no stroke, no shadow. Lines are white in the site's grey look */
.sv-pick-panel, .sv-flow, .sv-week-box {
  --hairline-plate: #66686a; --hairline-hi: #ffffff; --hairline-edge: #c4c4c4; --hairline-mid: #9a9a9a; --hairline-lo: #7c7e80;
}
.sv-pick-panel svg, .sv-flow-fig svg, .sv-art svg { width: 100%; height: 100%; stroke-width: initial; }

/* What you get: the titles on the left, the chosen item's figure and line in a panel on the right */
.sv-pick { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.sv-pick-list { display: grid; gap: 12px; justify-items: start; padding: 8px 0 0 26px; }
.sv-pick-tab {
  position: relative; padding: 0; text-align: left; cursor: pointer;
  font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: rgba(255, 255, 255, 0.46);
  transition: color 200ms ease;
}
/* the loading ring (Geio, Nov 18): in front of the item on now only, it fills while that item shows and the next
   one comes up when it is full. Its fill is the timer (pages.js listens for ld-fill ending); data-held pauses it */
@property --ld { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
@keyframes ld-fill { to { --ld: 100%; } }
.sv-pick-tab::before, .hw-cf-steps > li::before {
  content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: conic-gradient(#fff var(--ld), rgba(255, 255, 255, 0.2) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.2px));
  opacity: 0; transform: scale(0.6); transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.sv-pick-tab::before { left: -24px; top: calc(50% - 6px); }
.sv-pick-tab[aria-selected='true'] { color: #fff; }
.sv-pick-tab[aria-selected='true']::before { opacity: 1; transform: none; animation: ld-fill 7s linear both; }
.hw-cf-steps > li { position: relative; }
.hw-cf-steps > li::before { left: -24px; top: calc(var(--lh-lead) / 2 - 6px); }
.hw-cf-steps > li[data-on]::before { opacity: 1; transform: none; animation: ld-fill 6s linear both; }
[data-held] .sv-pick-tab::before, [data-held] > li::before, [data-held] .hw-cf-steps > li::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .sv-pick-tab::before, .hw-cf-steps > li::before { animation: none !important; --ld: 100%; } }
@media (hover: hover) { .sv-pick-tab:hover { color: rgba(255, 255, 255, 0.88); } }
.sv-pick-tab:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.sv-pick-panel { display: grid; gap: 20px; padding: var(--kp-panel-pad) var(--kp-panel-pad) 32px; background: var(--kp-panel-bg); border-radius: var(--kp-panel-r);; }
.sv-pick-figs { display: grid; }
.sv-pick-fig { grid-area: 1 / 1; width: 100%; aspect-ratio: 5 / 4; opacity: 0; transition: opacity 220ms ease; pointer-events: none; }
.sv-pick-fig.is-on { opacity: 1; transition-duration: 320ms; pointer-events: auto; }
.sv-pick-line { margin: 0; min-height: calc(var(--lh-body) * 3); max-width: 440px; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); }

/* From your request to live: the figure in its panel with the chat on it, the steps and closing line beside it */
.sv-flow-head { display: grid; gap: 12px; max-width: 520px; }
.sv-flow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.sv-flow-stage { position: relative; aspect-ratio: 5 / 4; background: var(--kp-panel-bg); border-radius: var(--kp-panel-r);; }
.sv-flow-fig { position: absolute; inset: 4%; }
.sv-flow-side { display: grid; gap: 32px; padding-top: 8px; }
.sv-flow .hw-cf-steps { padding-top: 0; }
.sv-chat { position: absolute; left: 24px; bottom: 24px; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: min(300px, calc(100% - 48px)); pointer-events: none; }
.sv-msg { display: none; align-items: flex-end; gap: 8px; opacity: 0.5; }
.sv-msg[data-show] { display: flex; animation: sv-msg-in 420ms var(--ease-out); }
.sv-msg[data-now] { opacity: 1; }
@keyframes sv-msg-in { from { opacity: 0; transform: translateY(10px); } }
.sv-msg-av { flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font: 400 var(--small)/1 var(--font); color: #fff; }
.sv-msg-av img { width: 100%; height: 100%; object-fit: cover; }
.sv-msg-b { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #4a4c4e; font: 400 var(--meta)/var(--lh-meta) var(--font); color: #fff; }
.sv-msg[data-now] .sv-msg-b { background: #fff; color: #111; }

/* Before and after: the slider in its panel, labels and handle solid, no blur */
.sv-ba-box { padding: var(--kp-panel-pad); background: var(--kp-panel-bg); border-radius: var(--kp-panel-r);; }
.sv-ba {
  --pos: 50%; position: relative; aspect-ratio: 2000 / 1285; overflow: hidden; border-radius: 16px;;
  background: #2a2c2d; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.sv-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.sv-ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sv-ba-label { position: absolute; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(28, 29, 31, 0.72); font: 400 var(--small)/var(--lh-small) var(--font); color: #fff; pointer-events: none; transition: opacity 200ms ease; }
.sv-ba-l { left: 12px; }
.sv-ba-r { right: 12px; }
.sv-ba.hide-l .sv-ba-l, .sv-ba.hide-r .sv-ba-r { opacity: 0; }
.sv-ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.sv-ba-handle {
  position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; transition: transform 200ms var(--ease-out);
}
.sv-ba-handle path { stroke: #111; stroke-width: 1.75; }
.sv-ba-handle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (hover: hover) { .sv-ba:hover .sv-ba-handle { transform: scale(1.08); } }
.sv-ba.is-drag .sv-ba-handle { transform: scale(1.08); }

/* The weekly board: the prototype in a preview well, the weeks as pills under it */
.sv-week-box { display: grid; gap: 28px; padding: var(--kp-panel-pad); background: var(--kp-panel-bg); border-radius: var(--kp-panel-r);; }
.sv-week-preview { display: grid; place-items: center; height: 380px; border-radius: 20px;; background: rgba(255, 255, 255, 0.04); }
.sv-art { height: 100%; aspect-ratio: 5 / 4; opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.sv-art.is-seen { opacity: 1; transform: none; }
.sv-week-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sv-pill {
  padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font: 400 var(--meta)/var(--lh-meta) var(--font); color: rgba(255, 255, 255, 0.46);
  transition: background-color 360ms var(--ease-out), color 360ms var(--ease-out);
}
.sv-pill.is-past { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.78); }
.sv-pill.is-now { background: #fff; color: #111; }

/* The content demo: room kept for it until the island draws it */
.sv-demo:empty { aspect-ratio: 1120 / 690; border-radius: var(--kp-panel-r);; background: var(--kp-panel-bg); }

@media (max-width: 899px) {
  .sv-pick { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sv-pick-list { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-left: 14px; }
  .sv-pick-tab::before { left: -20px; }
  .sv-pick-panel { padding: 8px 20px 24px; }
  .sv-flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sv-flow-stage { aspect-ratio: auto; display: grid; padding: 8px 8px 16px; }
  .sv-flow-fig { position: relative; inset: auto; aspect-ratio: 5 / 4; }
  .sv-chat { position: static; width: auto; min-height: 52px; padding: 0 12px; justify-content: flex-end; }
  .sv-msg[data-show]:not([data-now]) { display: none; }
  .sv-ba-box { padding: 8px; }
  .sv-ba { border-radius: 12px; }
  .sv-week-box { gap: 20px; padding: 8px 8px 16px; }
  .sv-week-preview { height: 240px; border-radius: 14px; }
  .sv-week-pills { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-pick-tab, .sv-pick-tab::before, .sv-pick-fig, .sv-pill, .sv-ba-handle, .sv-ba-label { transition: none; }
  .sv-msg[data-show] { animation: none; }
  .sv-art { opacity: 1; transform: none; transition: none; }
}

/* How it works on the service pages, with the How I work page's step figures (Geio, Nov 18) */
.sv-how-steps { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sv-how-steps .sv-step-art { width: 100%; height: auto; --hairline-plate: #66686a; --hairline-hi: #ffffff; --hairline-edge: #c4c4c4; --hairline-mid: #9a9a9a; --hairline-lo: #7c7e80; }
.sv-how-steps > li:nth-child(2) .sv-art { transition-delay: 80ms; }
.sv-how-steps > li:nth-child(3) .sv-art { transition-delay: 160ms; }
.sv-how-steps > li:nth-child(4) .sv-art { transition-delay: 240ms; }
@media (max-width: 719px) { .sv-how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }

/* the services page never scrolls sideways: the side picture slides out to the right when a service opens, and that
   made the page wider than the window (Geio's screenshot, the sidebar title cut off at the left) */
.kp-services { overflow-x: hidden; overscroll-behavior-x: none; }
.sv-grid { overflow-x: clip; }

/* recordings made on a white page (Modena): the video's own 16:9 at full width, never cropped to the 420px band, so
   its white page reads as the recording it is (Geio, Nov 18: "correct ratio correct width") */
video.sv-next-pic.is-light { height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }

/* service pages, desktop: the content sits in one 960px column, centred in the space beside the sidebar, and the
   pictures and videos take that same width instead of running to the window's edge (Geio, Nov 18). A video keeps
   its own shape; a phone recording sits whole in the middle of a white 16:9 band, its own white ground */
@media (min-width: 720px) {
  .sv-ch, .sv-next { padding-right: 56px; }
  .sv-ch > *, .sv-next > * { width: 100%; max-width: 960px; margin-inline: auto; box-sizing: border-box; }
  .sv-bleed, .sv-media.sv-bleed { margin-right: auto; }
  video.sv-next-pic { height: auto !important; aspect-ratio: var(--ar, 16 / 9); object-fit: cover; }
  video.sv-next-pic.is-tall { aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
}

/* a new service reads as a new start (Geio, Nov 18): its name twice the size of the intro line under it, more room
   above it */
.sv-next-name .kp-title { font-size: 72px; line-height: 72px; letter-spacing: -0.03em; }
.sv-next-row { align-items: flex-end; }
.sv-next-short { padding-bottom: 8px; }
.sv-svc:not(:first-child) .sv-next { padding-top: 160px; }
@media (max-width: 1099px) { .sv-next-name .kp-title { font-size: 56px; line-height: 58px; } }
@media (max-width: 719px) {
  .sv-next-name .kp-title { font-size: 40px; line-height: 42px; }
  .sv-next-row { align-items: flex-start; }
  .sv-next-short { padding-bottom: 0; }
  .sv-svc:not(:first-child) .sv-next { padding-top: 72px; }
}

/* recent sites open their project; the live site is a quiet link under each (Geio, Nov 18) */
.sv-card-link { display: grid; gap: 4px; align-content: start; color: inherit; text-decoration: none; }
a.sv-card-link img { transition: opacity 200ms ease; }
@media (hover: hover) { a.sv-card-link:hover img { opacity: 0.86; } a.sv-card-link:hover .kp-step-h { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
a.sv-card-link:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 26px; }
.sv-live { justify-self: start; margin-top: 6px; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.78); text-decoration: none; }
@media (hover: hover) { .sv-live:hover { color: #fff; } }
.detail.from-page { z-index: 12; }

/* questions as rows, one under the other, like the career list (Geio, Nov 18): the question on the left, the answer
   beside it, a hairline between */
.sv-qa { columns: auto; margin: 0 auto; display: grid; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.sv-qa > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); column-gap: 32px; margin: 0; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); break-inside: auto; }
.sv-qa dt { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.sv-qa dd { margin: 0; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.72); }
@media (max-width: 719px) { .sv-qa > div { grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding: 16px 0; } }

/* the panels are frosted glass again now that the moving dots sit behind them (Geio, Nov 18): the dots soften to a
   shimmer inside a panel and stay crisp around it. The scroll reveal already skips glass, so no ancestor fades it */
:is(.hw-panel, .hw-cf-fig, .hw-fig, .sv-pick-panel, .sv-flow-stage, .sv-ba-box, .sv-week-box, .sv-week-preview, .sv-pill, .d-svc-card, .ct-field input, .ct-field textarea, .ct-chips span, .sv-demo:empty) {
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  backdrop-filter: blur(20px) saturate(1.1);
}

/* the next service: more room between its title and its picture, and the picture's corners rounded like every other
   picture on these pages (Geio, Nov 18) */
.sv-next { row-gap: 40px; }
.sv-next .sv-media, video.sv-next-pic, img.sv-next-pic { border-radius: 24px; overflow: hidden; }
@media (max-width: 719px) { .sv-next { row-gap: 24px; } .sv-next .sv-media, video.sv-next-pic, img.sv-next-pic { border-radius: 13px; } }
