/* Austin Speech Labs, Our Team. Look and layout: README.md. */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/lexend-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/lexend-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  /* The green. To change it, set --mint and --mint-deep. A dark green also
     needs --on-mint: var(--paper) and a lighter --mint-on-ink. README, Changing the green. */
  --mint: #27d267; /* Kelly, Edman's pick; their logo is #56c295 */
  --on-mint: var(--ink); /* text on a green panel */
  --mint-on-ink: var(--mint); /* green as text or fill on a dark panel */
  --mint-line: color-mix(
    in oklab,
    var(--mint) 86%,
    black
  ); /* the hero's line */
  --mint-shade: color-mix(
    in oklab,
    var(--mint) 76%,
    black
  ); /* flat photo shadow */
  --lilac: #b9a2ff; /* their studio backdrop, turned up */
  --yolk: #ffc83d;
  --tomato: #ff5b3a;
  --ink: #1d1038;
  --paper: #f5f1ff;
  --white: #fff;

  /* darker steps, for text on paper and for the flat photo shadow */
  --mint-deep: #0a7a32;
  --lilac-deep: #5a2fd0;
  --yolk-deep: #865600;
  --tomato-deep: #b92e0c;

  --pad: clamp(16px, 3vw, 44px);
  --round: clamp(26px, 4vw, 56px);
  --bubble: 48% 48% 48% 7% / 42% 42% 42% 7%;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font:
    400 clamp(17px, 0.35vw + 15.5px, 19px) / 1.5 "Lexend",
    system-ui,
    sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.96);
}
.btn--solid {
  border-color: var(--btn, var(--ink));
  background: var(--btn, var(--ink));
  color: var(--btn-text, var(--paper));
}
.btn--pop {
  min-height: 68px;
  padding: 0 40px;
  border-color: var(--mint-on-ink);
  background: var(--mint-on-ink);
  color: var(--ink);
  font-size: 1.2em;
}

.chev {
  flex: none;
}

.textlink {
  font-weight: 600;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}

/* Logo: their PNG used as a mask, so it takes the colour of the panel's text */

.logo {
  display: block;
  color: inherit;
}
.logo__img {
  display: block;
  width: 138px;
  aspect-ratio: 690 / 300;
  background: currentColor;
  -webkit-mask: url(img/brand/logo.png) center / contain no-repeat;
  mask: url(img/brand/logo.png) center / contain no-repeat;
}

/* Meander: the brain-fold line from the logo, drawn once per panel */

.meander {
  position: absolute;
  pointer-events: none;
}
.meander path {
  fill: none;
  stroke: var(--line);
  stroke-width: 20;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4svh, 48px);
  min-height: 100svh;
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + var(--round));
  overflow: clip;
  --bg: var(--mint);
  --fg: var(--on-mint);
  --btn: var(--fg);
  --btn-text: var(--bg);
  --line: var(--mint-line);
  background: var(--bg);
  color: var(--fg);
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top__actions {
  display: flex;
  gap: 8px;
}

.meander--hero {
  top: 3svh;
  right: -6vw;
  width: min(62vw, 980px);
}

.hero__grid {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template: "say cast" auto "say tiles" auto / minmax(0, 5fr) minmax(
      0,
      7fr
    );
  gap: clamp(20px, 4svh, 40px) clamp(20px, 3vw, 48px);
}

/* The headline stays put on wide screens while the faces sort themselves. */
.hero__say {
  grid-area: say;
  align-self: start;
  position: sticky;
  top: var(--pad);
  container-type: inline-size;
}

/* The whole team in one speech bubble. It fills the first screen and lets the
   tiles' top edge show under it. */
.hero__cast {
  grid-area: cast;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 270px);
}
.bubble {
  width: 100%;
  padding: clamp(18px, 3vw, 44px) clamp(16px, 2.6vw, 40px)
    clamp(14px, 2vw, 26px);
  border-radius: clamp(40px, 7vw, 110px);
  border-bottom-left-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.bubble__faces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1vw, 14px);
}
.slot {
  display: block;
  border-radius: var(--bubble);
}
.slot .face {
  width: clamp(54px, 6.9vw, 104px);
  height: auto;
  aspect-ratio: 4 / 5;
  transition: transform 0.25s var(--ease);
}
.slot:hover .face,
.slot:focus-visible .face {
  transform: scale(1.08) rotate(-3deg);
}
.bubble__note {
  margin-top: clamp(12px, 1.6vw, 20px);
  text-align: center;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tiles {
  grid-area: tiles;
}
/* While the script flies a tile's faces down from the bubble they must not take
   clicks meant for the faces underneath. */
.tile .face {
  pointer-events: none;
}
.hero__title {
  font-size: min(38cqi, 25svh);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.055em;
}
.hero__title .w {
  display: block;
}
.hero__sub {
  margin-top: clamp(16px, 3svh, 32px);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Tiles: pick a group, land on its people */

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tile {
  position: relative;
  display: grid;
  border-radius: 26px;
  color: var(--ink);
  text-decoration: none;
}
.tile__label {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.tile__count {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.8;
}
.tile .chev {
  transition: transform 0.25s var(--ease);
}
.tile:hover .chev,
.tile:focus-visible .chev {
  transform: translateX(5px);
}

.face {
  flex: none;
  width: 52px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--bubble);
  background: var(--lilac);
}

.tile--big {
  grid-template: "label label" auto "faces faces" 1fr "count chev" auto / 1fr auto;
  gap: 14px;
  min-height: clamp(230px, 36svh, 380px);
  padding: clamp(16px, 1.6vw, 24px);
}
.tile--big .tile__label {
  grid-area: label;
  font-size: clamp(24px, 2.5vw, 40px);
}
.tile--big .tile__key {
  display: block;
}
.tile--big .tile__faces {
  grid-area: faces;
  align-self: end;
}
.tile--big .tile__count {
  grid-area: count;
  align-self: center;
}
.tile--big .chev {
  grid-area: chev;
}

.tile--founders {
  background: var(--lilac);
}
.tile--founders .tile__key {
  color: #3a1697;
}
.tile--founders .tile__faces {
  display: flex;
  gap: 4%;
}
.tile--founders .face {
  width: 38%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 4 / 5;
  box-shadow: 6px 6px 0 rgb(141 107 240 / var(--land, 1));
  transition: transform 0.35s var(--ease);
}
.tile--founders:hover .face:first-child,
.tile--founders:focus-visible .face:first-child {
  transform: rotate(-4deg);
}
.tile--founders:hover .face:last-child,
.tile--founders:focus-visible .face:last-child {
  transform: rotate(4deg);
}

.tile--therapy {
  background: var(--ink);
  color: var(--paper);
}
.tile--therapy .tile__key {
  color: var(--mint-on-ink);
}
.tile--therapy .tile__faces {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.tile--therapy .face {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  transition: transform 0.35s var(--ease);
}
.tile--therapy:hover .face:nth-child(odd),
.tile--therapy:focus-visible .face:nth-child(odd) {
  transform: translateY(-4px);
}

.tile--row {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 86px;
  padding: 12px 16px 12px 20px;
  background: var(--paper);
}
.tile--row .tile__label {
  font-size: clamp(18px, 1.5vw, 23px);
}
.tile--row .tile__count {
  grid-column: 1;
  grid-row: 2;
}
.tile--row .tile__faces {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
}
.tile--row .chev {
  grid-row: 1 / span 2;
  grid-column: 3;
}
/* white background, multiplied into the tile's paper */
.tile__art {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 96px;
  height: auto;
  mix-blend-mode: multiply;
  transition: transform 0.3s var(--ease);
}
.tile--board:hover .tile__art,
.tile--board:focus-visible .tile__art {
  transform: translateY(-3px) rotate(-2deg);
}
.tile--row .face {
  width: 44px;
  height: 55px;
  margin-left: -12px;
  border: 3px solid var(--paper);
  transition: margin 0.3s var(--ease);
}
.tile--row:hover .face,
.tile--row:focus-visible .face {
  margin-left: -4px;
}
.tile--bilingual .tile__key {
  color: var(--tomato-deep);
}
.tile--development .tile__key {
  color: var(--mint-deep);
}
.tile--office .tile__key {
  color: var(--lilac-deep);
}
.tile--board .tile__key {
  color: var(--yolk-deep);
}

/* Posters: one person, one colour, one screen */

.team {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--round) * -1);
}

.poster {
  --bg: var(--lilac);
  --fg: var(--ink);
  --shade: #8d6bf0;
  --name: var(--fg);
  --btn: var(--fg);
  --btn-text: var(--bg);
  --cap: 0.32;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(14px, 3svh, 36px);
  min-height: 100svh;
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + 76px);
  overflow: clip;
  border-radius: var(--round) var(--round) 0 0;
  background: var(--bg);
  color: var(--fg);
}
.poster:last-child {
  /* the mission panel overlaps the end of the stack */
  padding-bottom: calc(var(--pad) + 76px + var(--round));
}
.poster--yolk {
  --bg: var(--yolk);
  --shade: #f0a400;
}
.poster--mint {
  --bg: var(--mint);
  --fg: var(--on-mint);
  --shade: var(--mint-shade);
}
.poster--tomato {
  --bg: var(--tomato);
  --shade: #cf3517;
}
.poster--ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --shade: #43297a;
  --name: var(--yolk);
}

.stacked .poster {
  position: sticky;
  top: var(--top, 0px);
  transform: scale(calc(1 - var(--cover, 0) * 0.06));
  transform-origin: 50% 0;
}

.poster__first {
  /* a safe size before the script fits each name to the panel */
  font-size: min(calc(92vw / (var(--n) * 0.6)), calc(var(--cap) * 100svh));
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  white-space: nowrap;
  color: var(--name);
}
.poster__first span {
  display: inline-block;
  /* grows from its own corner as the poster rises, so no letter leaves the panel */
  transform: scale(calc(0.8 + var(--enter, 1) * 0.2));
  transform-origin: 0 100%;
}

.poster__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(20px, 4vw, 72px);
}

.poster__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 2svh, 22px);
  max-width: 44rem;
}
.poster__name {
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.poster__name:focus {
  outline: none;
}
.poster__creds {
  font-weight: 400;
  white-space: nowrap;
}
.poster__role {
  margin-top: 6px;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.poster__pull {
  max-width: 31em;
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.4;
}
.poster__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.poster__photo {
  height: min(42svh, 520px);
  aspect-ratio: 4 / 5;
  border-radius: var(--bubble);
  box-shadow: clamp(8px, 1.1vw, 16px) clamp(8px, 1.1vw, 16px) 0 var(--shade);
  margin: 0 clamp(8px, 1.1vw, 16px) clamp(8px, 1.1vw, 16px) 0;
  overflow: hidden;
  transform: rotate(calc((1 - var(--enter, 1)) * 7deg))
    scale(calc(0.9 + var(--enter, 1) * 0.1));
  transform-origin: 0 100%;
}
.poster__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wide screens: the name runs the full width with the photo under it, or,
   when a short name can be bigger that way, the photo stands beside the name. */
@media (min-width: 721px) {
  .poster {
    --cap-beside: 0.42;
    display: grid;
    grid-template: "name name" auto "info photo" 1fr / minmax(0, 1fr) auto;
    gap: clamp(14px, 3svh, 36px) clamp(20px, 4vw, 72px);
  }
  .poster--beside {
    grid-template-areas: "name photo" "info photo";
  }
  .poster__body {
    display: contents;
  }
  .poster__first {
    grid-area: name;
    min-width: 0;
  }
  .poster__info {
    grid-area: info;
    align-self: end;
  }
  .poster__photo {
    grid-area: photo;
    align-self: end;
  }
  .poster__bio {
    grid-column: 1 / -1;
  }
}

/* Without the script there are no sheets, so their buttons go and bios show in place. */
html:not(.js) [data-bio],
html:not(.js) [data-open] {
  display: none;
}

/* The full bio lives in the page; the script moves it into a sheet. */
.poster__bio {
  display: grid;
  gap: 1em;
  max-width: 44rem;
}
.js .poster__bio {
  display: none;
}

.team__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: clamp(28px, 5vw, 64px) var(--pad)
    calc(clamp(28px, 5vw, 64px) + var(--round));
  background: var(--paper);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Closing panel: their mission, lit one word at a time as you scroll */

.close {
  --line: #33205f;
  position: relative;
  z-index: 2;
  margin-top: calc(var(--round) * -1);
  padding: clamp(72px, 13vw, 190px) var(--pad) clamp(48px, 8vw, 110px);
  overflow: clip;
  border-radius: var(--round) var(--round) 0 0;
  background: var(--ink);
  color: var(--paper);
}
.meander--close {
  top: clamp(24px, 5vw, 80px);
  right: -8vw;
  width: min(70vw, 900px);
}
.close > :not(.meander) {
  position: relative;
}
.close__label {
  margin-bottom: clamp(16px, 2vw, 28px);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  color: var(--mint-on-ink);
}
.close__mission {
  max-width: 17em;
  font-size: clamp(30px, 5.6vw, 92px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.word {
  transition:
    opacity 0.3s linear,
    color 0.3s linear;
}
.word--yolk {
  color: var(--yolk);
}
.word--mint {
  color: var(--mint-on-ink);
}
.word--lilac {
  color: var(--lilac);
}
.motion .word:not(.is-lit) {
  color: var(--paper);
  opacity: 0.36;
}
.close__cta {
  margin-top: clamp(32px, 5vw, 72px);
}
/* The mission picture, cut to the speech-bubble shape. */
.close__art {
  display: block;
  width: min(100%, 420px);
  height: auto;
  margin-top: 40px;
  border-radius: var(--bubble);
  transform-origin: 0 100%;
}
@media (min-width: 901px) {
  .close {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--pad);
  }
  .close__label,
  .close__mission,
  .close .links {
    grid-column: 1 / -1;
  }
  .close__cta {
    align-self: start;
  }
  .close__art {
    width: min(32vw, 440px);
    margin-top: clamp(32px, 5vw, 72px);
  }
}
.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(40px, 7vw, 110px);
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 16px;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.row__text {
  flex: 1;
  display: grid;
  min-width: 0;
}
.row__name {
  flex: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.row__role {
  font-size: 15px;
  line-height: 1.3;
  opacity: 0.8;
}
.row .chev {
  transition: transform 0.25s var(--ease);
}
.row:hover .chev,
.row:focus-visible .chev {
  transform: translateX(5px);
}
.row--dark {
  min-height: 84px;
  padding: 10px 20px 10px 24px;
  background: #2c1b52;
  color: var(--paper);
  font-size: clamp(18px, 1.5vw, 23px);
}

/* Footer */

.meander--foot {
  position: static;
  display: block;
  width: 100%;
  margin-bottom: clamp(28px, 4vw, 56px);
  --line: #dfd6ff;
}
.foot {
  padding: clamp(40px, 6vw, 80px) var(--pad) calc(var(--pad) + 76px);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px 24px;
}
.foot h2 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}
.foot p + h2 {
  margin-top: 22px;
}
.foot li + li {
  margin-top: 6px;
}
.foot a {
  text-underline-offset: 0.2em;
}
.foot__social {
  margin-top: 16px;
}
.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.logo__img--foot {
  width: 170px;
  color: var(--mint-deep);
}
.foot__base p {
  flex: 1;
  min-width: 14em;
}
.foot__preview {
  max-width: 44em;
  margin-top: 28px;
}
.nowrap {
  white-space: nowrap;
}
.foot__badge img {
  width: 88px;
  height: 88px;
}

/* Finder: where you are in the stack, and the way to anyone else */

.finder {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 7px 0 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.finder__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}

/* Sheets */

.sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(620px, 100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--round) 0 0 var(--round);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet::backdrop {
  background: rgb(29 16 56 / 0.6);
}
.sheet__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(16px, 3vw, 28px);
  background: var(--head, var(--paper));
  color: var(--head-text, var(--ink));
}
.sheet__head > div {
  flex: 1;
  min-width: 0;
}
.sheet__name {
  flex: 1;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.sheet__name:focus {
  outline: none;
}
.sheet__role {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}
.sheet__photo {
  flex: none;
  width: 84px;
  height: 105px;
  object-fit: cover;
  border-radius: var(--bubble);
}
.sheet__close {
  flex: none;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.sheet__body {
  display: grid;
  gap: 1.1em;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 3vw, 28px) 48px;
}
.sheet--bio .sheet__body {
  font-size: clamp(18px, 0.4vw + 16px, 21px);
  line-height: 1.6;
}
.sheet--bio[data-color="lilac"] {
  --head: var(--lilac);
}
.sheet--bio[data-color="yolk"] {
  --head: var(--yolk);
}
.sheet--bio[data-color="mint"] {
  --head: var(--mint);
  --head-text: var(--on-mint);
}
.sheet--bio[data-color="tomato"] {
  --head: var(--tomato);
}
.sheet--bio[data-color="ink"] {
  --head: var(--ink);
  --head-text: var(--paper);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.chip span {
  font-weight: 400;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.rows {
  display: grid;
  gap: 8px;
}

.sheet--menu {
  inset: 0;
  width: 100vw;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  --head: var(--ink);
  --head-text: var(--paper);
}
.menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
}
.menu h3 {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--mint-on-ink);
}
.menu li + li {
  margin-top: 8px;
}
.menu a {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.menu__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  --btn: var(--mint-on-ink);
  --btn-text: var(--ink);
}

/* Narrow screens */

@media (max-width: 900px) {
  .hero__grid {
    grid-template: "say" auto "cast" auto "tiles" auto / minmax(0, 1fr);
  }
  .hero__say {
    position: static;
  }
  .hero__cast {
    min-height: 0;
  }
  .slot .face {
    width: clamp(54px, 13.6vw, 96px);
  }
  .hero__title {
    font-size: min(36cqi, 22svh);
  }
  .meander--hero {
    top: 8svh;
    right: -30vw;
    width: 110vw;
  }
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .top__give {
    display: none;
  }
  .top .btn {
    min-height: 46px;
    padding: 0 18px;
    font-size: 16px;
  }
  .logo__img {
    width: 116px;
  }
  .tile--big {
    min-height: 220px;
  }
  .tile--therapy .tile__faces {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tile--row {
    grid-column: 1 / -1;
  }

  .poster {
    --cap: 0.2;
    justify-content: flex-start;
    gap: 12px;
  }
  .poster__body {
    grid-template: "photo head" auto "pull pull" auto "acts acts" auto / auto minmax(
        0,
        1fr
      );
    align-items: end;
    gap: 14px 16px;
  }
  .poster__info {
    display: contents;
  }
  .poster__head {
    grid-area: head;
  }
  .poster__pull {
    grid-area: pull;
  }
  .poster__actions {
    grid-area: acts;
  }
  .poster__photo {
    grid-area: photo;
    width: 43vw;
    height: auto;
  }
  .poster__creds {
    display: block;
    font-size: 0.8em;
    white-space: normal;
  }
  .poster .btn {
    min-height: 48px;
    padding: 0 17px;
    font-size: 16px;
  }

  .links {
    grid-template-columns: minmax(0, 1fr);
  }
  .menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .sheet {
    inset: auto 0 0 0;
    width: 100vw;
    height: auto;
    max-height: 92dvh;
    border-radius: var(--round) var(--round) 0 0;
  }
  .sheet--menu {
    inset: 0;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
}

/* Motion. Nothing here hides a face, a name or a button. */

@media (prefers-reduced-motion: no-preference) {
  .hero__title .w {
    animation: word 0.7s var(--ease) both;
  }
  .hero__title .w:nth-child(2) {
    animation-delay: 0.45s;
  }
  .hero__title .w:nth-child(3) {
    animation-delay: 0.9s;
  }
  .meander--hero path {
    animation: draw 2.6s 0.2s var(--ease) both;
  }
  .motion .meander--close path,
  .motion .meander--foot path {
    stroke-dashoffset: calc(1 - var(--p, 1));
  }
  /* tips up into place as it scrolls in (--q, site.js); never fades */
  .motion .close__art {
    transform: rotate(calc((1 - var(--q, 1)) * -9deg))
      scale(calc(0.82 + 0.18 * var(--q, 1)));
  }
  .sheet[open] {
    animation: sheet-in 0.4s var(--ease);
  }
  .sheet[open]::backdrop {
    animation: fade 0.3s linear;
  }
  @media (max-width: 720px) {
    .sheet[open] {
      animation-name: sheet-up;
    }
  }
  .sheet--menu[open] {
    animation-name: fade;
  }
}

@keyframes word {
  from {
    opacity: 0;
    transform: translateY(0.3em);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes sheet-in {
  from {
    transform: translateX(100%);
  }
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
