/* ==========================================================================
   About me: horizontal story (js/about/*)
   The cream paper behind it is drawn by the WebGL scene (uAbout), so the
   view itself stays transparent and the landing shows through the window.
   ========================================================================== */
.view--about { --f-story: "Instrument Serif", var(--f-serif); overflow: hidden; touch-action: none; cursor: grab; color: #1d1b19; }
.view--about.is-grabbing { cursor: grabbing; }
.view--about a, .view--about button { cursor: pointer; }

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

/* ---------- 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-kicker { margin: 0; font-size: var(--ui-f); letter-spacing: -.01em; }
.ab-intro__line { margin: 0 0 18px; max-width: 22ch; font-family: var(--f-story); font-size: clamp(20px, 1.8vw, 34px); line-height: 1.2; color: #6f6a64; }
.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: inherit; font-size: clamp(13px, .95vw, 17px); text-align: left; transition: opacity .3s, transform .4s var(--ease);
}
.ab-index button span { width: 3.2em; color: #9b958d; font-variant-numeric: tabular-nums; }
.ab-index button:hover { transform: translateX(4px); }
.ab-begin {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) * 1.4);
  display: inline-flex; align-items: center; gap: .6em; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; font-size: clamp(13px, .95vw, 17px);
}
.ab-begin svg { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: ab-nudge 1.6s var(--ease) infinite; }
@keyframes ab-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* ---------- chapters ---------- */
.ab-chapter { display: flex; align-items: center; gap: clamp(28px, 4.5vw, 90px); padding: 0 clamp(40px, 5vw, 110px); }
.ab-cluster { position: relative; flex: none; width: min(52vw, calc(var(--H) * 1.05), 900px); height: min(64vh, 640px); }
.ab-card {
  position: absolute; margin: 0; border-radius: 14px; overflow: hidden;
  background: #fff; padding: 5px;
  box-shadow: 0 1px 2px rgba(40, 30, 20, .08), 0 18px 40px rgba(40, 30, 20, .18);
  transition: box-shadow .5s var(--ease), scale .5s var(--ease);
}
.ab-card:hover { scale: 1.03; box-shadow: 0 2px 4px rgba(40, 30, 20, .1), 0 28px 60px rgba(40, 30, 20, .24); z-index: 2; }
.ab-card img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.ab-ph {
  width: 100%; height: 100%; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(255, 255, 255, .28), transparent 55%),
    linear-gradient(160deg, var(--a), var(--b));
  color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
  font-size: clamp(11px, .8vw, 14px); letter-spacing: .02em;
}
.ab-ph svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }

.ab-note {
  position: absolute; z-index: 3; margin: 0; white-space: nowrap;
  font-family: "Gochi Hand", "Caveat", cursive; font-size: clamp(15px, 1.15vw, 21px); line-height: 1.15; color: #2a2724;
  transform: translate(-50%, -100%) rotate(-2deg);
}
.ab-note__arrow { position: absolute; left: 30%; top: 100%; width: 38px; height: 44px; color: #2a2724; }
.ab-note.is-flip .ab-note__arrow { left: 55%; transform: scaleX(-1); }

.ab-text {
  flex: none; width: min(26vw, 430px); margin: 0;
  font-family: var(--f-story); font-size: clamp(23px, 2.25vw, 42px); line-height: 1.22; letter-spacing: -.01em;
  color: #1d1b19;
}
.ab-text strong { font-weight: 400; }
.ab-w { display: inline-block; white-space: nowrap; }
.ab-c { opacity: .18; transition: opacity .25s linear; }

/* ---------- closing chapter ---------- */
.ab-now { width: min(70vw, 900px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 clamp(40px, 6vw, 120px); }
.ab-now__lead { margin: 0; font-size: var(--ui-f); color: #1d1b19; }
.ab-now__name { margin: .1em 0 .35em; font-family: var(--f-story); font-weight: 400; font-size: clamp(64px, 9vw, 170px); line-height: .95; letter-spacing: -.02em; }
.ab-now__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.ab-now .pill--ghost { color: #1d1b19; }
.ab-now .pill--ghost:hover { color: #fff; }

/* ---------- filmstrip ---------- */
.ab-strip {
  position: absolute; left: 50%; bottom: calc(var(--gutter) * .9); translate: -50% 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0;
  transition: opacity .2s;
}
.ab-strip__cap { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--f-story); font-size: clamp(13px, .9vw, 16px); line-height: 1.2; }
.ab-strip__w { color: #8f8a84; }
.ab-strip__thumbs {
  width: min(320px, 80vw); height: 50px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ab-strip__row { display: flex; align-items: flex-end; gap: 4px; height: 100%; width: max-content; }
.ab-thumb {
  flex: none; width: 28px; height: 30px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #ddd;
  transition: width .5s var(--ease), height .5s var(--ease), transform .4s var(--ease), box-shadow .4s;
}
.ab-thumb i, .ab-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; background: linear-gradient(160deg, var(--a), var(--b)); }
.ab-thumb--now i { background: linear-gradient(160deg, #1d1b19, #6f6a64); }
.ab-thumb:hover { transform: translateY(-3px); }
.ab-thumb.is-active { width: 36px; height: 46px; box-shadow: 0 6px 14px rgba(40, 30, 20, .25); }

/* 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: 17px; }
  .ab-index { display: none; }
  .ab-begin { right: auto; left: var(--gutter); bottom: 40px; }
  .ab-chapter { flex-direction: column; justify-content: center; gap: 22px; padding: 0 24px; }
  .ab-cluster { width: calc(var(--W) - 48px); height: 44vh; }
  .ab-text { width: calc(var(--W) - 64px); font-size: 22px; }
  .ab-now { width: var(--W); }
}
@media (prefers-reduced-motion: reduce) { .ab-begin svg { animation: none; } }
