/* ==========================================================================
   About me: horizontal story (js/about/*)
   Look (reference): grey paper, huge condensed month titles over a heavy grey
   ghost, flat photos with mono captions, mono tags, sans body text, a wavy
   line with a flying pair of eyes. One chapter turns the page dark.
   The paper itself is drawn by the WebGL scene (uAbout / uCream), so the view
   stays transparent and the landing shows through the window at the start.
   ========================================================================== */
.view--about {
  --f-story: "Instrument Serif", var(--f-serif);
  --f-ghost: "Anton", "Arial Narrow", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ink-a: #161616; --grey-a: #8c8b87; --ghost-a: #a9a8a4; --acc: #e9b41c; --red: #e5262f;
  overflow: hidden; touch-action: none; cursor: grab; color: var(--ink-a);
  transition: color .5s;
}
.view--about.is-grabbing { cursor: grabbing; }
.view--about a, .view--about button { cursor: pointer; }
body.about-dark-l .hdr__logo { color: #fff; }
body.about-dark-r .nav { --fg: #fff; color: #fff; }

.ab-track { position: absolute; left: 0; top: 0; height: 100%; display: flex; will-change: transform; }
.ab-track > section { flex: none; position: relative; height: 100%; }

/* ---------- shared type ---------- */
.ab-tag { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-a); opacity: .75; }
.ab-text { margin: 0; font-family: var(--f-sans); font-size: clamp(20px, 1.75vw, 32px); line-height: 1.12; letter-spacing: -.025em; color: var(--ink-a); }
.ab-text > strong { font-weight: 400; display: block; margin-bottom: .45em; }
.ab-text > span { display: block; font-size: .62em; line-height: 1.4; letter-spacing: -.01em; color: var(--grey-a); }
.ab-w { display: inline-block; white-space: nowrap; }
.ab-c { opacity: .18; transition: opacity .25s linear; }

/* ---------- the wavy line and the fly ---------- */
.ab-line { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; pointer-events: none; }
.ab-line path { fill: none; stroke: var(--ink-a); stroke-width: 1.4; transition: stroke .5s; }
.ab-line__ahead { stroke-dasharray: 3 6; opacity: .45; }
.ab-line .is-light path { stroke: #f1f0ec; }
.ab-flyer { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; width: 0; height: 0; }
.ab-fly { position: absolute; left: -48px; top: -31px; width: 96px; height: 62px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .16)); }
.ab-fly img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; }
.ab-fly__wing--l { transform-origin: 27% 50%; }
.ab-fly__wing--r { transform-origin: 74% 50%; }
.ab-fly__lids { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ab-fly__lid { fill: #f8bf02; stroke: #000; stroke-width: 3.5; stroke-linejoin: round; paint-order: fill; opacity: 0; }

/* ---------- opening slide: content lives in the left (paper) half ---------- */
.ab-intro { width: var(--W); }
.ab-intro__panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: 0 var(--gutter) calc(var(--gutter) * 1.4);
}
.ab-intro__line { margin: 0 0 18px; max-width: 18ch; font-family: var(--f-sans); font-size: clamp(22px, 2vw, 36px); line-height: 1.08; letter-spacing: -.03em; }
.ab-index { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ab-index button {
  display: inline-flex; align-items: baseline; gap: .9em; padding: 0; border: 0; background: none; color: inherit;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; text-align: left;
  transition: transform .4s var(--ease);
}
.ab-index button span { width: 3.4em; color: var(--grey-a); }
.ab-index button:hover { transform: translateX(4px); }
.ab-begin {
  display: inline-flex; align-items: center; gap: .8em; align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: none;
  color: var(--acc); font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em;
}
.ab-begin i { display: block; width: 46px; height: 1px; background: currentColor; position: relative; animation: ab-nudge 1.6s var(--ease) infinite; }
.ab-begin i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-right: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
@keyframes ab-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* ---------- chapters ---------- */
.ab-month { position: absolute; left: clamp(24px, 4vw, 80px); top: 6vh; z-index: 1; line-height: .8; white-space: nowrap; pointer-events: none; }
.ab-month__ghost {
  position: absolute; left: -.02em; top: .02em; font-family: var(--f-ghost); font-size: 22vh; letter-spacing: -.01em;
  color: var(--ghost-a); opacity: .75; transform: scaleY(1.12); transform-origin: 0 0;
}
.ab-month__main {
  position: relative; display: block; font-family: "Bodoni Moda", var(--f-story); font-weight: 400; font-size: 22vh; letter-spacing: -.035em; color: var(--ink-a);
  font-variation-settings: "opsz" 96; transform: scaleX(.74); transform-origin: 0 0;
}
.ab-month__swash { position: absolute; left: -.42em; top: -.14em; width: .9em; height: .72em; overflow: visible; }
.ab-month__swash path { fill: none; stroke: var(--ink-a); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ab-year { position: absolute; left: clamp(24px, 4vw, 80px); top: 3vh; margin: 0; font-family: var(--f-mono); font-size: 11px; opacity: .6; }

.ab-ph { position: absolute; margin: 0; z-index: 2; }
.ab-ph img, .ab-ph__blank { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-ph figcaption { position: absolute; left: 0; top: calc(100% + 8px); font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .02em; opacity: .65; white-space: nowrap; }

.ab-copy { position: absolute; left: clamp(28px, 6vw, 120px); bottom: 10vh; width: min(26vw, 460px); z-index: 3; display: flex; flex-direction: column; gap: 14px; }

/* alternate chapters: month at the bottom, words at the top */
.is-flip .ab-month { top: auto; bottom: 6vh; }
.is-flip .ab-year { top: auto; bottom: 3vh; }
.is-flip .ab-copy { bottom: auto; top: 12vh; }

/* the dark chapter's huge display line */
.ab-reel { background: #131313; --ink-a: #f1f0ec; --grey-a: #8d8c88; --ghost-a: #3a3a39; color: var(--ink-a); }
.ab-chapter.is-dark { overflow: hidden; background: #131313; --ink-a: #f1f0ec; --grey-a: #8d8c88; --ghost-a: #3a3a39; color: var(--ink-a); }
.is-dark .ab-copy { bottom: auto; top: 40vh; }
.ab-display {
  position: absolute; left: 4vw; bottom: 2vh; margin: 0; z-index: 1; white-space: nowrap; pointer-events: none;
  font-family: var(--f-ghost); font-size: 24vh; line-height: .9; letter-spacing: -.01em; color: var(--red);
  transform: scaleY(1.25); transform-origin: 0 100%;
}

/* ---------- closing chapter ---------- */
.ab-now .ab-copy { top: auto; bottom: max(6vh, 32px); width: min(52vw, 760px); }
.ab-now__lead { margin: 0; font-family: var(--f-sans); font-size: clamp(20px, 1.75vw, 32px); letter-spacing: -.025em; }
.ab-now__name { margin: .55em 0 .25em; font-family: var(--f-ghost); font-weight: 400; font-size: clamp(56px, min(9vw, 16vh), 180px); line-height: .9; letter-spacing: -.01em; transform: scaleY(1.15); transform-origin: 0 100%; }
.ab-now__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.ab-now .pill--ghost { color: var(--ink-a); }
.ab-now .pill--ghost:hover { color: #fff; }

/* the story owns the whole screen; landing footer hides */
body[data-view="about"] .ftr { opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .ab-intro__panel { width: 50%; padding-bottom: 96px; }
  .ab-intro__line { font-size: 18px; }
  .ab-index { display: none; }
  .ab-month { top: 9vh; }
  .ab-month__ghost { font-size: 9vh; }
  .ab-month__main, .ab-month__ghost { font-size: 13vh; }
  .ab-year { top: 6vh; }
  .is-flip .ab-month { top: 9vh; bottom: auto; }
  .is-flip .ab-year { top: 6vh; bottom: auto; }
  .is-flip .ab-copy { top: auto; bottom: 6vh; }
  .ab-copy { left: 24px; bottom: 6vh; width: calc(var(--W) - 48px); }
  .ab-text { font-size: 20px; }
  .ab-display { left: 6vw; font-size: 12vh; bottom: 30vh; }
  .ab-now .ab-copy { top: 34vh; width: calc(var(--W) - 48px); }
  .ab-fly { transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) { .ab-begin i, .ab-fly__wing { animation: none; } }

.view--about.is-paper { background: #dadad7; }
.ab-ph { will-change: transform; }

/* phones: year on top, a band of photos, the words underneath; nothing overlaps */
@media (max-width: 760px) {
  .ab-month, .is-flip .ab-month { top: 15vh; bottom: auto; left: 22px; }
  .ab-year, .is-flip .ab-year { top: 12vh; bottom: auto; left: 22px; }
  .ab-month__swash { left: -.3em; }
  .ab-copy, .is-flip .ab-copy, .is-dark .ab-copy { top: 62vh; bottom: auto; left: 22px; width: calc(var(--W) - 44px); gap: 10px; }
  .ab-text { font-size: 19px; }
  .ab-text > span { font-size: .72em; }
  .ab-ph figcaption { font-size: 9px; }
  .ab-display { bottom: 2vh; }
  .ab-now .ab-copy { top: auto; bottom: max(8vh, 40px); }
}

/* video and quote cards */
.ab-ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-qcard { position: relative; width: 100%; height: 100%; background: #fbfaf8; display: flex; flex-direction: column; overflow: hidden; }
.ab-q { margin: 0; padding: 7% 7% 4%; font-family: var(--f-sans); font-size: clamp(14px, 1.45vw, 26px); line-height: 1.25; letter-spacing: -.02em; color: #1b1a1a; min-height: 34%; }
.ab-q .is-acc { color: #a35a37; }
.ab-q .is-del { text-decoration: line-through; text-decoration-color: #a35a37; text-decoration-thickness: .1em; }
.ab-q .is-b { font-weight: 500; }
.ab-q__c { opacity: 0; }
.ab-q__caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: #1b1a1a; opacity: 0; }
.ab-qcard.is-writing .ab-q__caret { opacity: 1; animation: ab-caret .8s steps(1) infinite; }
.ab-qcard.is-written .ab-q__caret { animation: ab-caret .8s steps(1) 3; animation-fill-mode: forwards; }
@keyframes ab-caret { 50% { opacity: 0; } }
.ab-qcard img { flex: 1; min-height: 0; width: calc(100% - 14%); margin: 0 7% 7%; object-fit: cover; object-position: 50% 30%; border-radius: 8px; }

/* the work reel: a big square film on the left, words low on the right */
.ab-reel { width: calc(12vw + 76vh + 52vw); }
.ab-reel__media { position: absolute; left: 12vw; top: 11vh; width: 76vh; height: 76vh; margin: 0; z-index: 2; }
.ab-reel__media video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; background: #111; }
.ab-reel__media figcaption { margin-top: 12px; font-family: var(--f-sans); font-size: 13px; text-transform: uppercase; letter-spacing: .01em; }
.ab-reel__copy { position: absolute; left: calc(12vw + 76vh + 16vw); bottom: 10vh; z-index: 3; display: flex; flex-direction: column; gap: 14px; width: 30vw; }
.ab-reel__title { margin: 0; font-family: var(--f-sans); font-weight: 400; font-size: clamp(34px, 3.6vw, 68px); line-height: 1; letter-spacing: -.045em; }
.ab-reel__open { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.ab-reel__open:hover { opacity: .55; }
@media (max-width: 760px) {
  .ab-reel { width: calc(var(--W) * 1.25); }
  .ab-reel__media { left: 22px; top: 16vh; width: calc(var(--W) - 44px); height: calc(var(--W) - 44px); }
  .ab-reel__copy { left: 22px; bottom: auto; top: calc(16vh + var(--W) + 10px); width: calc(var(--W) - 44px); }
  .ab-reel__title { font-size: 30px; }
}
