/* About us (round ab1, 2026-11-01). One canvas, after Freenote's header (freenotetech.com: paper with a dot grid,
   handwriting, taped notes, doodles), holding the team's letter on a sticky note, after Craft's founder story and
   Portal's founder memo (craft.do/about, useportal.net: a first-person letter on a white card, signed, that lifts
   on hover), with stickers scattered round it, after Clicky's desktop (heyclicky.com: small tilted items you can
   drag). The handwriting is Caveat (OFL, assets/fonts). */

@font-face { font-family: 'Caveat'; src: url('/landing-preview/assets/fonts/caveat-latin.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

.about-main { padding: 0; }
.ab-canvas { position: relative; overflow: hidden; padding: 148px 24px 96px; }
/* The dot grid covers the whole page, so it runs on past the button, round the footer card and to the bottom. */
html:has(.ab-canvas), body:has(.ab-canvas) {
  background-color: var(--color-canvas);
  background-image: radial-gradient(var(--color-line-strong) 1.1px, transparent 1.4px);
  background-size: 22px 22px; background-position: 11px 11px;
}

.ab-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.ab-eyebrow { margin: 0 0 16px; font: 600 12px/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--color-ink-2); }
.ab-head h1 { margin: 0; font: 400 clamp(42px, 5.4vw, 72px)/1.1 'Bitter', Georgia, serif; letter-spacing: 0; color: var(--color-ink); text-wrap: balance; }
.ab-room { position: relative; z-index: 0; display: inline-block; } /* its own stacking context, so the scribble sits under the word and above the canvas */
/* The highlighter under "room": star gold (gold = highlight), drawn in once. */
.ab-scribble { position: absolute; left: -4%; right: -4%; bottom: -0.12em; width: 108%; height: 0.36em; overflow: visible; z-index: -1; }
.ab-scribble path { fill: none; stroke: #f2c94c; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ab-scribble path + path { stroke-width: 4; opacity: .7; }

.ab-board { position: relative; max-width: 1080px; margin: 0 auto; min-height: 640px; display: flex; justify-content: center; }

/* The sticky note: our sticky yellow, taped, slightly turned. It lifts flat on hover, as Portal's memo does
   (0.98 → 1). Ink on #fbf1b0 is 15.17:1 and stays yellow in dark mode, like a real one. */
.ab-note {
  position: relative; z-index: 2; width: min(100%, 620px); margin: 0; padding: 52px 52px 44px;
  background: #fbf1b0; color: #121a2a; border-radius: 4px 4px 10px 4px;
  box-shadow: 0 1px 0 rgb(18 26 42 / .05), 0 22px 36px -16px rgb(18 26 42 / .32);
  transform: rotate(-1.2deg) scale(.98); transition: transform 320ms var(--ease-out-soft), box-shadow 320ms var(--ease-out-soft);
}
@media (hover: hover) and (pointer: fine) {
  .ab-note:hover { transform: rotate(-.4deg) scale(1); box-shadow: 0 1px 0 rgb(18 26 42 / .05), 0 30px 48px -18px rgb(18 26 42 / .36); }
}
.ab-tape { position: absolute; top: -14px; left: 50%; width: 132px; height: 32px; translate: -50% 0; rotate: 3deg;
  background: rgb(250 249 246 / .55); box-shadow: 0 0 0 1px rgb(18 26 42 / .06); backdrop-filter: blur(1px); }
/* The note stays yellow in dark mode, so its writing stays ink too: the site's heading and paragraph colours
   turn light there and would vanish on the yellow. */
.ab-note-title { margin: 0 0 14px; font: 700 34px/1.15 'Caveat', cursive; color: #121a2a; letter-spacing: 0; }
.ab-note-body p { margin: 0 0 14px; font: 500 25px/1.36 'Caveat', cursive; color: #121a2a; }
.ab-note-body .ab-note-end { margin-top: 22px; font-weight: 700; font-size: 26px; }
/* The signature: "With love," and the three of us as badges, after Notion's hero pile (notion.com, measured at
   375px: 48px faces overlapping by 8px, each turning 15deg on hover over 300ms on cubic-bezier(0.86, 0, 0.07, 1),
   still with reduced motion). Ours add a tooltip below on hover, and on focus or tap, so keyboard and touch get it. */
.ab-sign { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.ab-note-body .ab-sign-text { margin: 0; font-size: 25px; font-weight: 600; }
.ab-team { display: flex; margin: 0; padding: 0; list-style: none; }
.ab-team li { position: relative; }
.ab-team li + li { margin-left: -8px; }
.ab-av {
  display: block; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: default;
  background: #faf9f6; box-shadow: 0 0 0 2.5px var(--ring), 0 0 0 5px #fbf1b0; transition: rotate 300ms cubic-bezier(0.86, 0, 0.07, 1), scale 120ms var(--ease-out-soft);
}
.ab-av img { display: block; width: 100%; height: 100%; }
.ab-av-1 { --ring: #3264b7; } .ab-av-2 { --ring: #a87c15; } .ab-av-3 { --ring: #2c7359; }
.ab-av:focus-visible { outline: 2px solid #3264b7; outline-offset: 6px; }
.ab-team li:focus-within { z-index: 2; }
/* An open tooltip lifts the note over the stickers, so the Mimo cursor next to the badges can't cover it. */
.ab-note:has(.ab-av:focus) { z-index: 4; }
/* Rings on the note's #fbf1b0: Boris cobalt 5.03:1, Jacelyn star gold #a87c15 3.29:1, Ân Ân moss #2c7359 4.94:1 (3:1 needed). Tooltip white on ink 17.40:1. */
/* Hover lives only where there's a mouse. Phones and tablets get a press instead: the badge dips to 0.92 under the
   finger and the tap opens its tooltip through focus. */
@media (hover: hover) and (pointer: fine) {
  .ab-team li:hover { z-index: 2; }
  .ab-note:has(.ab-team li:hover) { z-index: 4; }
  .ab-team li:hover .ab-tip { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
  .ab-team li:last-child:hover .ab-tip { translate: 0 0; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .ab-av:hover { rotate: 15deg; } }
@media (prefers-reduced-motion: no-preference) { .ab-av:active { scale: .92; } }
.ab-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ab-tip {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% -4px; z-index: 3; padding: 6px 10px; border-radius: 8px;
  background: #121a2a; color: #faf9f6; font: 600 13px/1.3 var(--font-sans); white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity 150ms var(--ease-out-soft), translate 150ms var(--ease-out-soft), visibility 0s linear 150ms;
}
/* WCAG 1.4.13: the pointer can move from the badge onto its tooltip without losing it (this strip bridges the 12px
   gap), and Escape closes it (about.js) without moving the pointer or focus. */
.ab-tip::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.ab-tip::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; translate: -50% 0; rotate: 45deg; background: inherit; border-radius: 1px; }
.ab-team li:last-child .ab-tip { left: auto; right: -6px; translate: 0 -4px; }
.ab-team li:last-child .ab-tip::before { left: auto; right: 20px; translate: 0 0; }
.ab-av:focus-visible + .ab-tip, .ab-av:focus + .ab-tip { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.ab-team li:last-child .ab-av:focus + .ab-tip { translate: 0 0; }
.ab-team.ab-tips-off li .ab-tip { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ab-av, .ab-tip { transition: none; } }

/* Stickers, after Clicky's desktop: small, tilted, draggable. Placed in the gutters beside the note. */
.ab-stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ab-st { position: absolute; display: block; margin: 0; pointer-events: auto; cursor: grab; touch-action: none; user-select: none;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r, 0deg)) scale(var(--lift)); transition: --lift 150ms var(--ease-out-soft); }
/* Picked up on press, mouse or finger, and set down on release. --lift is registered so it can ease; ab-pop owns `scale`. */
@property --lift { syntax: '<number>'; inherits: false; initial-value: 1; }
.ab-st.is-dragging { cursor: grabbing; z-index: 5; --lift: 1.06; }
@media (prefers-reduced-motion: reduce) { .ab-st.is-dragging { --lift: 1; } }
.ab-st img, img.ab-st { display: block; height: auto; }
.ab-st img { width: 100%; pointer-events: none; } /* an image inside a sticker; a sticker that is an image keeps its own pointer, so it drags */
.ab-st-photo { left: 0; bottom: 2%; width: 156px; --r: -4deg; padding: 9px 9px 30px; background: #faf9f6; box-shadow: 0 14px 26px -12px rgb(18 26 42 / .35); }
.ab-st.ab-st-photo, .ab-st.ab-sk-photograph { pointer-events: none; cursor: auto; } /* pinned: both polaroids stay put, no drag and no lift */
.ab-st-photo figcaption { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font: 600 19px/1 'Caveat', cursive; color: #121a2a; }
.ab-tape-sm { top: -10px; width: 70px; height: 20px; rotate: -4deg; }
/* Your stickers, die-cut with a white edge (assets/about/stickers), in two loose columns either side of the note. */
.ab-sk { filter: drop-shadow(0 8px 12px rgb(18 26 42 / .2)); }
.ab-sk-photograph { left: 1%; top: 0; width: 124px; --r: -6deg; filter: drop-shadow(0 9px 10px rgb(18 26 42 / .26)); } /* the ref #001 polaroid's shadow (0 14px 26px -12px, .35) as a drop shadow, so it follows the die-cut edge */
.ab-sk-ctrl { right: 1%; top: 0; width: 140px; --r: 6deg; }
.ab-sk-idea { left: 0; top: 27%; width: 124px; --r: -4deg; }
.ab-sk-focus { right: 2%; bottom: 2%; width: 128px; --r: -3deg; }
/* The three of us, as stickers too (cut from your sheet): Boris on the left, Jacelyn and Ân Ân on the right. */
.ab-sk-boris { left: 5%; top: 50%; width: 106px; --r: -6deg; }
.ab-sk-jacelyn { right: 3%; top: 25%; width: 116px; --r: 5deg; }
.ab-sk-anan { right: 5%; top: 49%; width: 106px; --r: -4deg; }
/* Mimo's cursor, as if he were on the canvas with you. Ink on persimmon 7.14:1; the ink edge keeps the pill's
   shape on the paper canvas, the navy one and the yellow note. */
.ab-st-cursor { display: flex; align-items: flex-start; gap: 2px; --r: 0deg; }
.ab-st-cursor svg { width: 26px; height: 26px; fill: var(--c); stroke: #121a2a; stroke-width: 1.4; stroke-linejoin: round; }
.ab-st-cursor b { margin-top: 18px; padding: 3px 9px; border-radius: 999px; background: var(--c); color: var(--t); box-shadow: 0 0 0 1.5px #121a2a; font: 600 13px/1.4 var(--font-sans); white-space: nowrap; }
.ab-cur-mimo { --c: #ef8c66; --t: #121a2a; right: 18%; bottom: 3%; }

.ab-cta { display: flex; justify-content: center; margin-top: 56px; position: relative; z-index: 2; }
.ab-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px;
  background: var(--color-primary); color: var(--color-on-primary); font: 600 16px/1 var(--font-sans); text-decoration: none; transition: filter 150ms var(--ease-out-soft), scale 120ms var(--ease-out-soft); }
@media (hover: hover) and (pointer: fine) { .ab-button:hover { filter: brightness(1.08); } }
@media (prefers-reduced-motion: no-preference) { .ab-button:active { scale: .97; } }
.ab-button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
:root[data-theme="dark"] .ab-button { background: var(--color-primary); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ab-button { background: var(--color-primary); } }

/* Motion, once each: the stickers pop in 70ms apart, the scribble draws, and the note writes itself in a word at a
   time (32ms apart) when it comes into view. Still and complete with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .ab-armed .ab-st { opacity: 0; scale: .9; }
  .ab-in .ab-st { animation: ab-pop 420ms var(--ease-out-soft) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
  .ab-armed .ab-scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .ab-in .ab-scribble path { animation: ab-draw 700ms cubic-bezier(.65, .05, .36, 1) 300ms forwards; }
  .ab-in .ab-scribble path + path { animation-delay: 650ms; }
  .ab-armed .ab-w { opacity: 0; }
  .ab-writing .ab-w { animation: ab-ink 360ms var(--ease-out-soft) both; animation-delay: calc(var(--n, 0) * 32ms); }
}
@keyframes ab-pop { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes ab-draw { to { stroke-dashoffset: 0; } }
@keyframes ab-ink { from { opacity: 0; } to { opacity: 1; } } /* a plain fade: a blur on inline words left faint specks behind */

/* Mid widths: the gutters narrow, so the label and the cursor move clear of the writing. */
@media (max-width: 1100px) {
  .ab-cur-mimo { right: 2%; bottom: -46px; }
  .ab-board { padding-bottom: 48px; }
  /* Narrower columns either side of the note: smaller stickers, pushed out to the edges. */
  .ab-sk-photograph { left: 0; width: 106px; }
  .ab-sk-ctrl { right: 0; width: 112px; }
  .ab-sk-idea { width: 104px; }
  .ab-sk-focus { right: 0; width: 104px; }
  .ab-sk-boris, .ab-sk-anan { width: 92px; }
  .ab-sk-jacelyn { right: 0; width: 96px; }
  .ab-sk-anan { right: 4%; }
  .ab-st-photo { width: 138px; }
}
/* Tablets and phones: the stickers that stay get their own room above and below the note, so none covers a word. */
@media (max-width: 900px) {
  .ab-canvas { padding: 128px 20px 80px; }
  .ab-note, .ab-note:hover { transform: none; } /* straight on tablets and phones; the turn and the hover lift are desktop only */
  .ab-board { min-height: 0; padding-top: 150px; padding-bottom: 132px; } /* the cat and the brain sit fully below the note */
  .ab-stickers .ab-st-photo { display: none; }
  .ab-sk-photograph { left: 30%; top: auto; bottom: 4px; width: 84px; }
  .ab-sk-ctrl { right: 4%; top: 8px; width: 104px; }
  .ab-sk-focus { right: auto; left: 5%; bottom: 2px; width: 98px; }
  .ab-sk-idea { right: 5%; top: auto; left: auto; bottom: 2px; width: 98px; }
  .ab-st-photo { right: 4%; top: 0; width: 108px; padding: 7px 7px 24px; }
  /* The three of us lead, in a row above the note; the Ctrl key moves below it. */
  .ab-sk-boris { left: 2%; top: 22px; width: 84px; }
  .ab-sk-jacelyn { right: auto; left: 22%; top: 12px; width: 88px; }
  .ab-sk-anan { right: auto; left: 42%; top: 24px; width: 82px; }
  .ab-cur-mimo { right: auto; left: 56%; bottom: 30px; }
  .ab-st-photo figcaption { font-size: 16px; }
}
@media (max-width: 560px) {
  .ab-canvas { padding: 112px 16px 64px; }
  .ab-head { margin-bottom: 32px; }
  .ab-board { padding-top: 124px; padding-bottom: 108px; }
  .ab-note { padding: 40px 26px 30px; }
  .ab-note-title { font-size: 29px; }
  .ab-note-body p { font-size: 22px; }
  .ab-note-body .ab-note-end { font-size: 23px; }
  .ab-note-body .ab-sign-text { font-size: 22px; }
  .ab-av { width: 42px; height: 42px; }
  .ab-sign { margin-bottom: 12px; } /* room for the tooltip inside the note, 5px short at 375 without it */
  .ab-st-photo { width: 88px; }
  .ab-sk-photograph { left: 38%; bottom: 4px; width: 66px; }
  .ab-sk-ctrl { width: 84px; }
  .ab-sk-focus { width: 74px; }
  .ab-sk-idea { width: 74px; }
  .ab-stickers .ab-cur-mimo { display: none; }
  .ab-sk-boris { left: 0; top: 24px; width: 56px; }
  .ab-sk-jacelyn { left: 23%; top: 16px; width: 60px; }
  .ab-sk-anan { left: 47%; top: 26px; width: 56px; }
  .ab-cta { margin-top: 24px; }
  .ab-button { width: 100%; }
}
/* The narrowest phones (320–360): a smaller Ctrl key keeps clear of Ân Ân in the top row. */
@media (max-width: 360px) { .ab-sk-ctrl { width: 70px; } }

/* ref #001 is painted in (round rf1): the canvas starts as blank cream, five wide brush strokes uncover the
   painting (sky in two passes, then the town, then the sea), and the seven haloed stars glint last. About 2s, once,
   when the stickers pop in; it plays the same on touch, with no hover. With reduced motion the painting is simply
   there. The polaroid stays pinned. */
.ab-paint { display: block; width: 100%; height: auto; }
.ab-paint-ground { fill: #f3ecdc; }
.ab-paint-strokes path { fill: none; stroke: #faf9f6; stroke-width: 150; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ab-glint { fill: #f2c94c; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ab-in .ab-paint-strokes path { animation: ab-brush var(--d) cubic-bezier(.45, .05, .35, 1) calc(var(--w) + var(--i, 0) * 70ms + 420ms) forwards; }
.ab-in .ab-glint { animation: ab-glint 620ms var(--ease-out-soft) calc(var(--g) + var(--i, 0) * 70ms + 420ms) both; }
@keyframes ab-brush { to { stroke-dashoffset: 0; } }
@keyframes ab-glint { 0% { opacity: 0; scale: .2; } 45% { opacity: 1; scale: 1.25; } 100% { opacity: 0; scale: .6; } }
/* Before the canvas is in view (or if the script never runs), show the finished painting, not a blank card. */
.ab-canvas:not(.ab-armed) .ab-paint-strokes path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .ab-paint-strokes path { stroke-dashoffset: 0; animation: none !important; }
  .ab-glint { display: none; }
}
