/* About page. It shares the service pages' layout (service-page.css) and adds the working week hero,
   the founder box with its photo, the principle animations and the row of services. See about-page.js. */
.about-page { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.4, .64, 1); }

/* Hero: a working week. Sized in em from the hero's width, so it scales cleanly. */
.sp-hero-art.has-wk { container-type: inline-size; }
.wk { position: absolute; inset: 0; color: var(--ink); font-size: clamp(8.5px, 2.25cqw, 13.5px); line-height: 1.3; }
.wk-window { position: absolute; inset: 2% 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.3em; background: #fbfbfa; box-shadow: 0 2.6em 5em -2em rgba(30, 34, 32, .35), 0 0 0 1px rgba(30, 34, 32, .06); }
.wk-bar { display: flex; align-items: center; gap: .9em; padding: .95em 1.2em; border-bottom: 1px solid #e8e9e6; background: #fff; }
.wk-dots { display: flex; gap: .35em; }
.wk-dots i { width: .62em; height: .62em; border-radius: 50%; background: #dcdedb; }
.wk-bar strong { font-weight: 500; }
.wk-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-left: auto; padding: .2em; border-radius: 2em; background: #eceeeb; font-size: .82em; }
.wk-toggle b { position: relative; z-index: 1; padding: .25em .85em; font-weight: 500; text-align: center; transition: color .4s; }
.wk-toggle b:first-of-type, .wk.is-after .wk-toggle b:last-of-type { color: #fff; }
.wk.is-after .wk-toggle b:first-of-type { color: #5a5d5b; }
.wk-toggle i { position: absolute; left: .2em; top: .2em; bottom: .2em; width: calc(50% - .2em); border-radius: 2em; background: var(--ink); transition: transform .55s var(--spring); }
.wk.is-after .wk-toggle i { transform: translateX(100%); }
.wk-days { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 1.2em 0 4.4em; padding: .8em 0 .5em; color: #6b6e6c; font-size: .82em; text-align: center; }
.wk-body { position: relative; flex: 1; display: flex; margin: 0 1.2em .4em 0; }
.wk-hours { position: relative; flex: none; width: 4.4em; }
.wk-hours span { position: absolute; right: .7em; top: var(--top); color: #6b6e6c; font-size: .72em; transform: translateY(-50%); }
.wk-hours span:first-child { transform: none; }
.wk-hours span:last-child { transform: translateY(-100%); }
.wk-grid { position: relative; flex: 1; border-radius: .5em; background: repeating-linear-gradient(#fbfbfa 0 calc(25% - 1px), #ecedea calc(25% - 1px) 25%), #fbfbfa; box-shadow: inset 0 0 0 1px #ecedea; }
.wk-event, .wk-ghost { position: absolute; left: calc(var(--d) * 20% + .2em); width: calc(20% - .4em); top: var(--top); height: var(--h); box-sizing: border-box; border-radius: .45em; }
.wk-event { overflow: hidden; padding: .35em .45em; font-size: .72em; line-height: 1.2; }
.wk-event b { display: -webkit-box; overflow: hidden; font-weight: 500; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wk-fixed { z-index: 1; background: #e4e6e2; color: #4c4f50; }

/* Repeated admin: hatched, with how long it takes. It shrinks to a 15-minute check, a badge shows the time it
   saves, and a dashed outline is left where the time was freed (left empty on purpose). Leaving "After" is quick and plays all at once. */
.wk-ghost { border: 1.5px dashed #9a9e9c; background: rgba(25, 26, 27, .03); opacity: 0; transition: opacity .25s; }
.wk.is-after .wk-ghost { opacity: 1; transition-delay: calc(.2s + var(--i) * .12s); }
.wk-admin { z-index: 3; overflow: visible; padding: 0; background: #d4d7d3 repeating-linear-gradient(135deg, transparent 0 .45em, rgba(25, 26, 27, .14) .45em .6em); color: var(--ink); transition: height .35s var(--ease), background-color .3s, color .3s; }
.wk.is-after .wk-admin { height: var(--check); background: var(--ink); color: #fff; transition: height .55s var(--spring) calc(var(--i) * .12s), background-color .3s calc(var(--i) * .12s), color .3s calc(var(--i) * .12s); }
.wk-before, .wk-after { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; transition: opacity .25s; }
.wk-before { display: flex; flex-direction: column; justify-content: space-between; padding: .35em .45em; }
.wk-before em { font-style: normal; font-weight: 600; }
.wk.is-after .wk-before { opacity: 0; transition-delay: calc(var(--i) * .12s); }
.wk-after { display: flex !important; align-items: center; gap: .3em; padding: 0 .45em; white-space: nowrap; opacity: 0; }
.wk-after::before { content: "✓"; }
.wk-after em { margin-left: auto; font-style: normal; font-weight: 400; opacity: .7; }
.wk.is-after .wk-after { opacity: 1; transition-delay: calc(.15s + var(--i) * .12s); }
.wk-cut { position: absolute; right: -.3em; top: -.5em; z-index: 4; padding: .15em .5em; border-radius: 1em; background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 .4em .8em -.3em rgba(30, 34, 32, .4); font-size: .95em; font-style: normal; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; }
.wk.is-after .wk-cut { animation: wk-cut 1.6s var(--ease) both; animation-delay: calc(.25s + var(--i) * .12s); }
@keyframes wk-cut { 0% { opacity: 0; transform: translateY(.3em) scale(.8); } 14% { opacity: 1; transform: none; } 72% { opacity: 1; transform: translateY(-.5em); } 100% { opacity: 0; transform: translateY(-1.1em); } }
.wk-foot { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .3em 1em; padding: .9em 1.2em 1.1em; border-top: 1px solid #e8e9e6; background: #fff; }
.wk-foot > span:first-child { color: #6b6e6c; font-size: .9em; }
.wk-saved { font-size: 1.5em; font-weight: 400; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wk-meter { grid-column: 1 / -1; height: .5em; border-radius: 1em; background: #eceeeb; overflow: hidden; }
.wk-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ink); transition: width .5s var(--ease); }
.wk.is-after .wk-meter i { width: var(--meter); transition: width 1.7s var(--ease) .2s; }
.wk.is-instant *, .motion-paused .wk * { transition: none !important; }
.wk.is-instant .wk-cut, .motion-paused .wk .wk-cut { animation: none; opacity: 0; }
@container (max-width: 460px) {
  .wk { font-size: 9px; }
  .wk-event { font-size: .8em; }
  .wk-before { padding: .3em .35em; }
  .wk-after em { display: none; }
  .wk-cut { font-size: .85em; }
  .wk-hours { width: 3.6em; }
  .wk-days { margin-left: 3.6em; }
}

/* Make the work work better */
.ab-purpose .ab-purpose-lead { color: var(--ink); font-size: 23px; line-height: 1.4; letter-spacing: -.015em; }

.about-founder { position: relative; width: calc(100% - 28px); max-width: 1692px; margin-inline: auto; overflow: hidden; color: var(--paper); background: var(--charcoal); border-radius: 15px; }
.about-founder-inner { padding: 75px calc(var(--page-gutter) - 14px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10%; align-items: center; }
/* The founder box. The photo is a rounded square, set the same distance from the box's top, side and bottom
   edges. Negative margins pull it into the box's top and bottom padding, and its size is worked out so the
   name column is exactly as tall as the old logo mark, name and caption were (153px + the name's line), so the
   box keeps its height. P is the box's side padding: var(--page-gutter) - 14px. */
.about-founder-name { position: relative; }
.about-founder-photo { margin: 0; overflow: hidden; border-radius: 14px; background: #2c2d2e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 40px -22px rgba(0, 0, 0, .7); }
.about-founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-founder-mark { display: none; width: 34px; height: 34px; filter: invert(1); }
.about-founder .about-founder-name h2 { line-height: 1.06; }
.about-founder-name > p { color: #cbd0cd; font-size: 15px; }

/* Wide screens: the photo beside the name. The mark lines up with the photo's top edge and the name and title
   with its bottom edge. The bio column keeps its old width (.5175 of the content), so it keeps its height. */
@media (min-width: 1400px) {
  .about-founder-inner { grid-template-columns: minmax(0, .4375fr) minmax(0, .5175fr); gap: 4.5%; }
  .about-founder-name { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto; column-gap: 36px; align-self: stretch; }
  .about-founder-photo { grid-row: 1 / 4; width: calc(153px + 1.06 * clamp(60px, 7vw, 96px) + 2 * (89px - var(--page-gutter))); aspect-ratio: 1; margin-block: calc(var(--page-gutter) - 89px); }
  .about-founder-mark { display: block; align-self: start; margin-top: calc(var(--page-gutter) - 89px); }
  .about-founder .about-founder-name h2 { font-size: clamp(56px, 4.4vw, 76px); line-height: 1; }
  .about-founder-name > p { margin: 14px 0 calc(var(--page-gutter) - 89px); font-size: 14px; white-space: nowrap; }
}

/* In between: the photo above the name, set in from the top and side by the same distance. The column is at
   least as tall as the old mark, name and caption, and when the bio makes the box taller the photo grows to
   fill the spare height, so the column never looks empty. */
@media (min-width: 761px) and (max-width: 1399px) {
  .about-founder-name { display: flex; flex-direction: column; align-self: stretch; margin-top: calc(var(--page-gutter) - 89px); min-height: calc(153px + 1.06 * clamp(60px, 7vw, 96px) + 89px - var(--page-gutter)); }
  .about-founder-photo { flex: 1 1 0; min-height: 120px; align-self: flex-start; aspect-ratio: 1; max-width: 100%; margin: 0 0 22px; }
  .about-founder .about-founder-name h2 { font-size: clamp(45px, 5.25vw, 72px); }
  .about-founder-name > p { margin-top: 14px; }
}
.about-founder-copy > p:first-child { font-size: 23px; line-height: 1.5; letter-spacing: -.01em; }
.about-founder-copy > p + p { margin-top: 24px; color: #cbd0cd; font-size: 16px; }

/* Principle 1: a task looked at closely, with the questions that come first */
.ab-art-look { overflow: hidden; }
.ab-task { display: grid; gap: 7px; justify-self: start; width: 44%; margin-left: 7%; padding: 12px 14px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #e1e3df; }
.ab-task small { color: #6b6e6c; font-size: 11px; }
.ab-task i { height: 5px; border-radius: 3px; background: #dfe1dd; }
.ab-task i:nth-of-type(2) { width: 78%; }
.ab-task i:nth-of-type(3) { width: 55%; }
.ab-lens { position: absolute; left: 12%; top: 34%; width: 34px; height: 34px; border: 3px solid var(--ink); border-radius: 50%; background: rgba(255, 255, 255, .35); animation: ab-look 5s ease-in-out infinite; }
.ab-lens::after { content: ""; position: absolute; right: -11px; bottom: -9px; width: 13px; height: 3px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }
.ab-q { position: absolute; padding: 4px 9px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; animation: ab-ask 5s ease infinite both; animation-delay: calc(1.2s + var(--i) * 1s); }
.ab-q { right: 5%; max-width: 38%; white-space: normal; line-height: 1.25; }
.ab-q:nth-of-type(1) { top: 24%; }
.ab-q:nth-of-type(2) { bottom: 24%; }
@keyframes ab-look { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(52px, -10px); } 60% { transform: translate(22px, 16px); } }
@keyframes ab-ask { 0% { opacity: 0; transform: translateY(5px) scale(.9); } 8%, 55% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(-3px); } }

/* Principle 3: a team member, their confidence growing, and a result ready to use */
.ab-art-confident { grid-template-columns: auto 1fr; align-content: center; gap: 10px 14px; padding: 0 12%; }
.ab-person { grid-row: 1 / 3; }
.ab-face { display: block; width: 52px; height: 52px; border-radius: 50%; }
.ab-meter small { display: block; margin-bottom: 6px; color: #6b6e6c; font-size: 11px; }
.ab-meter b { display: block; height: 7px; overflow: hidden; border-radius: 4px; background: #e1e3df; }
.ab-meter b i { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--ink); animation: ab-grow 5s var(--ease) infinite; }
.ab-ready { justify-self: start; padding: 4px 10px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 11px; animation: ab-pop 5s var(--spring) infinite both; }
.ab-ready::before { content: "✓ "; }
@keyframes ab-grow { 0%, 10% { width: 20%; } 55%, 88% { width: 95%; } 100% { width: 20%; } }
@keyframes ab-pop { 0%, 50% { opacity: 0; transform: scale(.7); } 58%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.9); } }
.motion-paused .ab-lens, .motion-paused .ab-q, .motion-paused .ab-meter b i, .motion-paused .ab-ready { animation: none; opacity: 1; transform: none; }
.motion-paused .ab-meter b i { width: 95%; }

/* Closer to the task: the four services as a row */
.ab-working { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, .62fr); gap: 0 9%; padding-block: 85px; border-top: 1px solid var(--rule); }
.ab-working .editorial-prose .text-link { margin-top: 4px; }
.ab-services { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 46px; }
.ab-services a { position: relative; display: grid; align-content: start; gap: 8px; padding: 22px 22px 46px; border-radius: 14px; background: #eeefec; text-decoration: none; transition: background .3s; }
.ab-services a:hover { background: #e6e7e4; }
.ab-services .sv-glyph { width: 26px; height: 26px; margin-bottom: 14px; }
.ab-services strong { font-size: 24px; font-weight: 400; letter-spacing: -.025em; }
.ab-services small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.ab-services .arrow { position: absolute; right: 22px; bottom: 22px; }
.ab-services a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (hover: hover) {
  .ab-services a:hover .arrow { transform: translateX(4px); }
  .ab-services a:hover .sv-glyph rect { animation: sv-gather .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 22ms); }
}

@media (max-width: 1100px) {
  .about-founder-copy > p:first-child { font-size: 21px; }
  .ab-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ab-purpose .ab-purpose-lead { font-size: 20px; }
  .about-founder { width: calc(100% - 18px); border-radius: 12px; }
  .about-founder-inner { padding: 44px calc(var(--page-gutter) - 9px); grid-template-columns: 1fr; gap: 33px; }
  /* Phones: the photo beside the name, set in from the top and side by the same distance (P = gutter - 9px).
     Like wide screens, the mark lines up with the photo's top and the name and title with its bottom. The block
     keeps the old height of the mark, name and caption (76px + 66px name + caption), so the box keeps its size. */
  .about-founder-name { display: grid; grid-template-columns: min(46vw, 190px) minmax(0, 1fr); grid-template-rows: 1fr auto auto; align-content: start; column-gap: 16px; margin-top: calc(var(--page-gutter) - 53px); min-height: calc(76px + 66px * 1.06 + 14px + 13px * 1.6 + 53px - var(--page-gutter)); }
  .about-founder-photo { grid-row: 1 / 4; width: 100%; aspect-ratio: 1; border-radius: 10px; }
  .about-founder-mark { display: block; width: 26px; height: 26px; }
  .about-founder .about-founder-name h2 { font-size: clamp(30px, 9.5vw, 40px); line-height: 1; }
  .about-founder-name > p { margin-top: 8px; font-size: 13px; line-height: 1.35; }
  .about-founder-copy > p:first-child { font-size: 20px; }
  .about-founder-copy > p + p { margin-top: 22px; font-size: 15px; }
  .ab-working { grid-template-columns: 1fr; gap: 26px; padding-block: 64px; }
  .ab-services { grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
  .ab-services a { grid-template-columns: 26px 1fr; gap: 2px 16px; padding: 18px 46px 18px 18px; }
  .ab-services .sv-glyph { grid-row: 1 / 3; margin: 2px 0 0; }
  .ab-services .arrow { top: 50%; bottom: auto; right: 18px; margin-top: -1px; }
}

/* The two links under the About intro sit side by side and wrap on narrow screens. */
.ab-purpose-links { display: flex; flex-wrap: wrap; gap: 14px 34px; }
