/*
  nanquimapp.com. Papel e Tinta: paper, graphite, one pen blue; colour belongs to the team's figures.
  The page's one idea is the difference between pencil and ink: AI drafts in pencil, a person inks.
  Every colour and size comes from tokens.css or from the few site-only values defined here.
*/

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-opsz-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;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-opsz-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: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(fonts/instrument-sans-latin-wdth-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;
}
@font-face {
  font-family: 'Instrument Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(fonts/instrument-sans-latin-ext-wdth-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;
}

/* ---------- Site-only values ---------- */
:root {
  /* Pencil: graphite before it is inked. Lighter than ink, still 5:1 on paper for body sizes. */
  --pencil: #6a6f78;
  /* Display sizes only need 3:1, so the headline's pencil can be lighter and read more like graphite. */
  --pencil-display: #80858e;
  --ink: var(--text-primary);
  /* Links: blue text on paper; in the dark, the lighter pen. */
  --link: var(--accent-text);
  /* A colleague someone just made: a colour none of the six house figures use (hue 340°, outside the terracotta band). */
  --new-colleague: #de5f94;
  --rule: color-mix(in srgb, var(--border-hairline) 70%, transparent);
  --page-max: 1120px;
  --text-max: 680px;
  --gutter: clamp(16px, 5vw, 40px);
  --section-gap: clamp(88px, 12vw, 152px);
  --display-xl: clamp(42px, 6.6vw, 90px);
  --display-l: clamp(32px, 4.4vw, 54px);
  --display-m: clamp(24px, 2.6vw, 32px);
  --body-l: clamp(18px, 1.6vw, 20px);
  --body: 17px;
}
:root[data-theme='dark'] {
  --pencil: #9a9fa7;
  --pencil-display: #8a8f97;
  --link: var(--accent);
  --new-colleague: #e77aa7;
  --rule: rgba(255, 255, 255, 0.06);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-doc);
  font-size: var(--body);
  line-height: 1.6;
  font-feature-settings: 'cv05', 'cv08';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-control);
}
h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-control);
  box-shadow: var(--elevation-popover);
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.display {
  font-family: var(--font-display);
  font-stretch: 94%;
  font-weight: 600;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.meta {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* ---------- Pencil and ink ---------- */
/* Pencil is grey with a graphite grain (the #grain filter in the page); ink is solid. */
.pencil {
  color: var(--pencil);
  filter: url(#grain);
}
.ink {
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  font: 500 15px/1 var(--font-doc);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) var(--ease-out),
    border-color var(--dur-hover) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
/* The one filled action: download. */
.btn-primary {
  background: var(--accent-fill);
  color: var(--accent-fill-text);
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-quiet {
  background: var(--bg-paper);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-quiet:hover {
  background: color-mix(in srgb, var(--bg-paper) 92%, var(--text-primary));
}
/* Pen: the inking button in the demo, outlined so the download stays the one fill. */
.btn-pen {
  background: var(--bg-paper);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-pen:hover {
  background: var(--accent-subtle);
}
.btn-text {
  min-height: 32px;
  padding: 0 4px;
  background: none;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}
.btn-text:hover {
  color: var(--text-primary);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--layer-chrome);
  background: color-mix(in srgb, var(--bg-app) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-hover) var(--ease-out);
}
.site-header[data-scrolled] {
  border-bottom-color: var(--border-hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: block;
  flex: none;
  border-radius: var(--radius-control);
}
.brand svg {
  width: 132px;
  height: auto;
}
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-row);
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.site-header .btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
  .brand svg {
    width: 112px;
  }
}

/* ---------- Hero ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  background: var(--bg-paper);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
}
.chip .figure {
  --size: 22px;
}

/* The second line is inked on load: the pen passes left to right over the pencil. */

.lede {
  max-width: 36em;
  margin-top: 28px;
  font-size: var(--body-l);
  line-height: 1.55;
  color: var(--text-secondary);
}
.lede strong {
  color: var(--text-primary);
  font-weight: 550;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
}
.actions + .meta {
  margin-top: 16px;
}

/* ---------- The sheet (demo) ---------- */
.demo {
  margin-top: clamp(56px, 8vw, 96px);
}
.desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 0;
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius-sheet);
  background: var(--bg-paper);
  box-shadow: var(--elevation-raised);
  outline: 1px solid var(--border-hairline);
  overflow: hidden;
}
.sheet-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
}
.sheet-bar .meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.status .figure {
  --size: 28px;
}
.status [data-when='inked'] {
  display: none;
}
.desk[data-state='inked'] .status [data-when='pencil'] {
  display: none;
}
.desk[data-state='inked'] .status [data-when='inked'] {
  display: inline;
}
.sheet {
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4.5vw, 56px) 28px;
  font-size: 17px;
  line-height: 1.65;
  min-width: 0;
}
.sheet h3 {
  font-family: var(--font-display);
  font-stretch: 94%;
  font-weight: 600;
  font-size: var(--display-m);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.sheet p + p,
.sheet .edit + p,
.sheet p + .edit,
.sheet .edit + .edit {
  margin-top: 12px;
}
/* An edit is a block: the pencil copy below, the ink copy on top, revealed by the pen. */
.edit {
  position: relative;
}
.edit .layer-ink {
  position: absolute;
  inset: 0;
  color: var(--ink);
  clip-path: inset(0 100% 0 0);
}
.edit.add .layer-pencil {
  color: var(--pencil);
  filter: url(#grain);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: color-mix(in srgb, var(--pencil) 60%, transparent);
  text-underline-offset: 5px;
}
.edit.add::before {
  content: '';
  position: absolute;
  left: calc(-1 * clamp(12px, 2.2vw, 28px));
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--pencil) 45%, transparent);
  filter: url(#grain);
  transition: opacity var(--dur-move) var(--ease-out);
}
.edit.remove {
  display: grid;
  grid-template-rows: 1fr;
}
.edit.remove > span {
  overflow: hidden;
  color: var(--pencil);
  filter: url(#grain);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 0 8px 0 3px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font: 500 13px/24px var(--font-doc);
  vertical-align: 2px;
  white-space: nowrap;
  filter: none;
  text-decoration: none;
}
.source .figure {
  --size: 18px;
}
.credits {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-strong);
}
.credits [data-when='inked'] {
  display: none;
}
.desk[data-state='inked'] .credits [data-when='pencil'] {
  display: none;
}
.desk[data-state='inked'] .credits [data-when='inked'] {
  display: inline;
  color: var(--accent-text);
}
:root[data-theme='dark'] .desk[data-state='inked'] .credits [data-when='inked'] {
  color: var(--accent);
}
.sheet-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.sheet-actions [data-when='inked'] {
  display: none;
}
.desk[data-state='inked'] .sheet-actions [data-when='pencil'] {
  display: none;
}
.desk[data-state='inked'] .sheet-actions [data-when='inked'] {
  display: inline-flex;
}
.inked-note {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Inked: the pen passes over each added block, removed lines fold away. */
.desk[data-state='inked'] .edit .layer-ink {
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms var(--ease-in-out);
  transition-delay: calc(var(--n, 0) * 260ms);
}
.desk[data-state='inked'] .edit.add .layer-pencil {
  opacity: 0;
  transition: opacity 200ms linear calc(var(--n, 0) * 260ms + 900ms);
}
.desk[data-state='inked'] .edit.add::before {
  opacity: 0;
}
.desk[data-state='inked'] .edit.remove {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows var(--dur-step) var(--ease-out) 200ms,
    opacity 200ms linear,
    margin-top var(--dur-step) var(--ease-out) 200ms;
}
.desk[data-state='inked'] .source {
  opacity: 1;
}

/* The margin: the reviewer's note, on the highlighter. */
.margin {
  padding: clamp(24px, 4vw, 48px) 20px 28px 0;
}
.note {
  position: relative;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  background: var(--highlight-subtle);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}
.note-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 550;
}
.note-head .figure {
  --size: 26px;
}
.note-head strong {
  display: block;
  font-weight: 600;
  line-height: 1.25;
}
.note-head small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-secondary);
}
.demo-caption {
  max-width: 980px;
  margin: 16px auto 0;
  text-align: center;
}
@media (max-width: 820px) {
  .desk {
    grid-template-columns: minmax(0, 1fr);
  }
  .margin {
    padding: 0 20px 24px;
    order: 3;
  }
  .sheet-bar .meta {
    display: none;
  }
  .status {
    margin-left: 0;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-top: var(--section-gap);
}
.section h2 {
  max-width: 16em;
  font-size: var(--display-l);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.section-lede {
  max-width: 36em;
  margin-top: 20px;
  font-size: var(--body-l);
  color: var(--text-secondary);
}

/* Team: the figures standing on a ruled line. */
.team {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 56px;
}
.team li {
  position: relative;
  padding-top: 0;
}
.team .stand {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
}
.team .stand::after {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: 14px;
  height: 1px;
  background: var(--border-strong);
  transform-origin: 0 50%;
}
.team .figure {
  --size: clamp(72px, 9vw, 112px);
  position: relative;
  z-index: 1;
}
.team h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
}
.team h3 span {
  font-weight: 400;
  color: var(--text-tertiary);
}
.team p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
/* Make your own: the profile the assistant drafted, a pencil sketch until someone creates it. */
.make {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--border-hairline);
}
.make h3 {
  font-size: var(--display-m);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.make-copy p {
  max-width: 34em;
  margin-top: 14px;
  color: var(--text-secondary);
}

.make-card {
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: var(--radius-panel);
  background: var(--bg-paper);
  outline: 1px solid var(--border-hairline);
  box-shadow: var(--elevation-raised);
}
.make-label {
  font-size: 13px;
  font-weight: 550;
  color: var(--text-secondary);
}
.make-field {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  font-size: 15px;
  line-height: 1.5;
}
/* Dashed while it is a draft (the app's "basting"), solid once created. */
.make-profile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-card);
  transition: border-color var(--dur-move) var(--ease-out);
}
.make-figure {
  flex: none;
  width: 72px;
  height: 63px;
  overflow: visible;
}
.make-figure .sketch {
  fill: none;
  stroke: var(--pencil);
  stroke-width: 2.2;
  stroke-dasharray: 4 2.2;
  stroke-linejoin: round;
  filter: url(#grain);
}
.make-figure .filled {
  fill: var(--new-colleague);
  clip-path: inset(0 100% 0 0);
}
.make-name {
  font-weight: 600;
}
.make-name span {
  font-weight: 400;
  color: var(--text-tertiary);
}
.make-limit,
.make-try {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.make-try {
  color: var(--text-tertiary);
}
.make-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 16px;
}
.make-joined {
  font-size: 14px;
  color: var(--text-primary);
}
.make-card [data-when='created'] {
  display: none;
}
.make-card[data-state='created'] [data-when='draft'] {
  display: none;
}
.make-card[data-state='created'] [data-when='created'] {
  display: inline-flex;
}
.make-card[data-state='created'] .make-profile {
  border-style: solid;
  border-color: var(--border-hairline);
}
.make-card[data-state='created'] .make-figure .filled {
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms var(--ease-in-out);
}
.make-card[data-state='created'] .make-figure .sketch {
  opacity: 0;
  transition: opacity 200ms linear 900ms;
}
@media (max-width: 900px) {
  .make {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .team {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
}
@media (max-width: 520px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 20px;
  }
}

.who {
  max-width: var(--text-max);
  margin-top: 40px;
  font-size: var(--body-l);
  color: var(--text-secondary);
}
.who strong {
  color: var(--text-primary);
  font-weight: 550;
}

/* Beta: what is inked, what is in pencil, what is not drawn yet. */

/* Download: the invitation. */
.invite {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-top: 0;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-sheet);
  background: var(--bg-paper);
  box-shadow: var(--elevation-raised);
  outline: 1px solid var(--border-hairline);
}
.invite h2 {
  font-size: var(--display-l);
}
.invite .section-lede {
  margin-top: 16px;
}
/* The team waiting on its line, as on the app's welcome screen. */

.download-block .btn-primary {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}
.download-block .meta {
  margin-top: 14px;
}
.download-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 10px;
  font-size: 14px;
}
.download-alt a[hidden] {
  display: none;
}
.requirement {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  font-size: 15px;
  color: var(--text-secondary);
}
.only-mobile {
  display: none;
}
:root[data-platform='mobile'] .only-mobile {
  display: block;
}
:root[data-platform='mobile'] .not-mobile {
  display: none;
}
.margin-notes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: var(--highlight-subtle);
}
.margin-notes h3 {
  font-size: 16px;
  font-weight: 600;
}
.margin-notes p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-secondary);
}
.margin-notes > div {
  flex: 1 1 320px;
}
@media (max-width: 860px) {
  .invite {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-gap);
  padding: 48px 0 56px;
  border-top: 1px solid var(--border-hairline);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 48px;
  align-items: start;
}
.site-footer .brand svg {
  width: 120px;
}
.footer-line {
  font-family: var(--font-display);
  font-stretch: 94%;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.footer-fine {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--text-tertiary);
}
@media (max-width: 620px) {
  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Figures ---------- */
.figure {
  --size: 48px;
  --col: 0;
  --row: 0;
  display: inline-block;
  flex: none;
  width: var(--size);
  height: var(--size);
  background-repeat: no-repeat;
  background-size: 400% 200%;
  background-position: calc(var(--col) * 100% / 3) calc(var(--row) * 100%);
  vertical-align: middle;
}
.figure[data-figure='nina'] { background-image: url(team/nina.webp); }
.figure[data-figure='tomas'] { background-image: url(team/tomas.webp); }
.figure[data-figure='helena'] { background-image: url(team/helena.webp); }
.figure[data-figure='caio'] { background-image: url(team/caio.webp); }
.figure[data-figure='bia'] { background-image: url(team/bia.webp); }
.figure[data-figure='davi'] { background-image: url(team/davi.webp); }
.figure[data-state='working'] {
  animation: blob-bob 1.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.figure[data-state='asking'] {
  animation: blob-ask 2.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes blob-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1px) rotate(-3deg); }
}
@keyframes blob-ask {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
}

/* ---------- Motion ---------- */
/* Opening: the pencil line appears, then the pen inks the second line. */

/* Sections arrive once, as they scroll in. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-step) var(--ease-out),
    transform var(--dur-step) var(--ease-out);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* The team lands on its line: the line is drawn, then the figures pop in one by one. */
.js .team .stand::after {
  transform: scaleX(0);
  transition: transform var(--dur-story) var(--ease-in-out);
}
.js .team.is-in .stand::after {
  transform: scaleX(1);
}
.js .team .figure {
  opacity: 0;
  transform: translateY(14px) scale(0.6);
}
.js .team.is-in .figure {
  animation: pop var(--dur-story) var(--ease-spring-bouncy) both;
  animation-delay: calc(240ms + var(--i, 0) * 70ms);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.6); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    transform: none;
    transition: opacity 150ms ease;
  }
  .js .team .stand::after {
    transform: none;
    transition: none;
  }
  .js .team .figure,
  .js .team.is-in .figure {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .figure[data-state='working'],
  .figure[data-state='asking'] {
    animation: none;
  }
  .desk[data-state='inked'] .edit .layer-ink,
  .desk[data-state='inked'] .edit.add .layer-pencil,
  .desk[data-state='inked'] .edit.remove,
  .make-card[data-state='created'] .make-figure .filled,
  .make-card[data-state='created'] .make-figure .sketch {
    transition-duration: 1ms;
    transition-delay: 0ms;
  }
  .btn:active {
    transform: none;
  }
}
