/* ==========================================================================
   About — an index page: one line, the story beside the quote, then a list.
   Hover a row and a photo appears in a diamond beside the cursor.
   ========================================================================== */
body.about-page { overflow-x: hidden; overflow-y: auto; }
.ab { --l: max(calc(var(--pad) + 130px), 12vw); --r: calc(var(--pad) + 60px); }

.ab-kicker { display: flex; align-items: center; gap: .7rem; font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ab-mark { width: 16px; height: 16px; flex: none; }

/* reveal once on entry */
.rv-in { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.19,1,.22,1); transition-delay: var(--d, 0s); }
.rv-in.is-in { opacity: 1; transform: none; }

/* 1 · one line, alone on the first screen */
.ab-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 6vh var(--r) 6vh var(--l); }
.ab-hero .ab-kicker { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.ab-hello { font-size: clamp(2.2rem, .9rem + 3vw, 4.1rem); font-weight: 500; line-height: 1.04; letter-spacing: -.04em; max-width: 21ch; }
.ab-hello .org { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }   /* places in the upright serif; the name stays italic */
.ab-hello em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* scroll hint — a hairline with a small diamond sliding down it; fades once the page moves */
.ab-scroll { position: absolute; left: var(--l); bottom: clamp(28px, 6vh, 56px); width: 14px; height: 56px; display: block; transition: opacity .6s ease; animation: fadeIn 1s ease 1.4s both; }
.ab-scroll::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(0,0,0,.14); }
.ab-scroll i { position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; background: var(--ink); border-radius: 1.5px; transform: rotate(45deg); animation: abDrop 2.4s cubic-bezier(.65,0,.35,1) 2s infinite; }
@keyframes abDrop { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 70% { top: calc(100% - 7px); opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }
@keyframes abOut { to { opacity: 0; visibility: hidden; } }
body.ab-scrolled .ab-scroll { animation: abOut .5s ease forwards; pointer-events: none; }

/* 2 · what I'm looking for, then the story */
.ab-story { padding: 14vh var(--r) 14vh var(--l); max-width: calc(var(--l) + 44rem); }
.ab-open { position: relative; font-size: clamp(1.4rem, .95rem + 1.1vw, 2.15rem); font-weight: 500; line-height: 1.18; letter-spacing: -.03em; max-width: 21em; margin-bottom: clamp(3.5rem, 11vh, 7rem); }
.ab-open .org { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; white-space: nowrap; }
.ab-story-text { max-width: 34rem; }
.ab-story-text p { font-size: clamp(1rem, .9rem + .25vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); }
.ab-story-text p + p { margin-top: 1.1em; }
/* 4 · the quote closes the page */
.ab-end { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 10vh var(--r) 16vh var(--l); }
.ab-hq { max-width: 22ch; font-family: var(--serif); font-style: italic; font-weight: 400; text-align: center; font-size: clamp(1.9rem, 1rem + 2.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.ab-hq .q { color: var(--ink-3); }
.ab-hq .w { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(3px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.19,1,.22,1), filter .9s ease; transition-delay: calc(var(--i) * 40ms); }
.ab-hq.is-in .w { opacity: 1; transform: none; filter: none; }

/* 3 · the index */
.ab-index { position: relative; padding: 0 var(--r) 0 var(--l); }
.ab-list { list-style: none; border-top: 1px solid rgba(0,0,0,.12); }
.ab-list li { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 8rem; align-items: baseline; column-gap: 2rem; padding: 1.35rem 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.rk { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.rv { font-size: clamp(1.15rem, .95rem + .5vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; transition: transform .6s cubic-bezier(.19,1,.22,1), color .4s ease; }
.rp { display: block; margin-top: .3rem; font-size: .75rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ry { text-align: right; font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rv-t { font-size: clamp(.95rem, .88rem + .2vw, 1.0625rem); font-weight: 400; letter-spacing: -.003em; line-height: 1.6; color: var(--ink-2); max-width: 40rem; }
.rv-s { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.ab-list li[data-photo] { cursor: default; }
.ab-list li[data-photo]:hover .rv { transform: translateX(.5rem); }
.ab-list:has(li[data-photo]:hover) li[data-photo]:not(:hover) .rv { color: var(--ink-3); }

/* the photo diamond that follows the cursor over the rows */
.ab-photo { position: absolute; left: 0; top: 0; width: clamp(200px, 17vw, 280px); aspect-ratio: 1; pointer-events: none; z-index: 3;
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(.7) rotate(-8deg);
  transition: opacity .35s ease, transform .6s cubic-bezier(.19,1,.22,1); filter: drop-shadow(0 22px 32px rgba(0,0,0,.2)); }
.ab-photo.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(1) rotate(0); }
/* a rounded square turned 45°, with the same corner radius as the site's tiles; the photo inside turns back upright */
.ab-photo-sq { position: absolute; left: 14.645%; top: 14.645%; width: 70.71%; height: 70.71%; border-radius: 14.1%; overflow: hidden; transform: rotate(45deg); }
.ab-photo-in { position: absolute; left: -20.7%; top: -20.7%; width: 141.4%; height: 141.4%; transform: rotate(-45deg); background-size: cover; background-position: center 30%; }

/* collected patterns — 18 small diamonds in one row */
.ab-pats { display: grid; grid-template-columns: repeat(9, 56px); gap: 8px; margin: .2rem 0 .3rem -4px; }   /* two even rows of nine */
.ab-pat { width: 56px; height: 56px; cursor: pointer; outline: none; }
.ab-pat canvas { display: block; width: 100%; height: 100%; filter: grayscale(1) contrast(.8) brightness(1.1); transition: filter .4s ease, transform .5s cubic-bezier(.19,1,.22,1); }
.ab-pat.is-on canvas, .ab-pat:focus-visible canvas { filter: none; transform: scale(1.15); }
.ab-pat-cap { min-height: 1.2em; margin-top: .7rem; }

@media (max-width: 860px) {
  .ab { --l: 20px; --r: 20px; }
  .ab-hero { min-height: 70svh; padding-bottom: 6vh; }
  .ab-hello { font-size: 7.4vw; max-width: none; }
  .ab-story { padding-top: 8vh; padding-bottom: 10vh; }
  .ab-end { min-height: 60vh; }
  .ab-list li { grid-template-columns: 1fr; row-gap: .5rem; }
  .ry { text-align: left; }
  .ab-photo { display: none; }
  .ab-pats { grid-template-columns: repeat(6, 44px); }
  .ab-pat { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-scroll i { animation: none; top: 50%; }
  .rv-in, .ab-hq .w { opacity: 1; transform: none; filter: none; transition: none; }
}
