/* ==========================================================================
   About page
   Type: Helvetica Neue only (handwriting just for polaroid captions).
   Palette: cream, cobalt, ink. Fun comes from objects (pinned photos,
   a framed board, cards that flip), not from mixing typefaces.
   ========================================================================== */
.about {
  --hand: "Caveat", "Comic Sans MS", cursive;
  --cobalt: #2f5bd3;
  --cobalt-tint: #ffd6ea;
  --cream: #f6f1e7;
  --ink: #15171c;
  --muted: #4a4f5a;
  background: var(--cream);
  color: var(--ink);
}

/* Subtle film grain (decorative) */
.about::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.about main { overflow-x: clip; }

/* Header over the hero sky */
.about .site-header { position: absolute; }
.about .nav__list,
.about .nav__toggle {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}
.about .nav__list a[aria-current="page"] { background: #fff; }
.about .nav__list a:hover { color: var(--cobalt); }
.about :focus-visible { outline-color: var(--cobalt); }
@media (max-width: 719.98px) {
  .js .about .nav__list { background: rgba(255, 255, 255, 0.96); }
}

/* ---- Layout + type ---- */
.ab-wrap { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }
.ab-section { position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.ab-cobalt { background: var(--cobalt); color: #fff; }
.ab-cobalt :focus-visible { outline-color: #fff; }

.ab-title {
  margin: 0;
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ab-title em { font-style: normal; color: var(--cobalt); }
.ab-cobalt .ab-title em { color: var(--cobalt-tint); }

.ab-lede {
  max-width: 60ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
}
.ab-cobalt .ab-lede { color: rgba(255, 255, 255, 0.85); }

.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 50px;
  margin-top: 2rem;
  padding: 0.35rem 0.4rem 0.35rem 1.5rem;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out);
}
.ab-btn::after {
  content: "→";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--cobalt);
  transition: transform 0.3s var(--ease-out);
}
.ab-btn:hover { transform: translateY(-2px); }
.ab-btn:hover::after { transform: translateX(3px); }

/* Push pin used on pinned photos */
.pin::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8fb0ff, var(--cobalt) 60%, #1b3a94);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
}

/* ---- 1. Hero ---- */
.ab-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #3a8ac0 url("../assets/img/about/sky.webp") center top / cover no-repeat;
}
.ab-hero__field {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: url("../assets/img/about/field.webp") center top / cover;
  -webkit-mask-image: linear-gradient(transparent, #000 30%);
  mask-image: linear-gradient(transparent, #000 30%);
}
.ab-hero__cloud {
  position: absolute;
  z-index: -1;
  top: var(--ct);
  left: -25%;
  width: var(--cw);
  pointer-events: none;
  animation: drift var(--cd) linear infinite;
  animation-delay: var(--cdl, 0s);
}
@keyframes drift { to { transform: translateX(160vw); } }

.ab-hero__inner {
  display: grid;
  gap: 2rem;
  min-height: 100svh;
  padding-top: clamp(8rem, 20vh, 12rem);
  align-content: start;
}
@media (min-width: 960px) {
  .ab-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-content: stretch; }
}
.ab-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.ab-hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(8px);
  animation: word-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.25s + var(--wi) * 0.08s);
}
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }

.ab-hero__photo {
  align-self: end;
  justify-self: center;
  width: min(100%, 440px);
  filter: drop-shadow(0 30px 40px rgba(20, 40, 80, 0.35));
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform 0.6s var(--ease-out);
}

/* ---- 2. Intro: framed board with pinned photos around it ---- */
.ab-scene { position: relative; padding-block: clamp(2rem, 5vw, 4rem); }

.board-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 28px;
  background: var(--cobalt);
  box-shadow: 0 30px 60px rgba(33, 72, 179, 0.22);
}
.board-card__inner {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.board-card__inner .ab-title { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem); }
.board-card__inner p {
  max-width: 58ch;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
}
.board-card__inner em { font-style: normal; color: var(--cobalt); font-weight: 700; }

.scene-photo {
  position: absolute;
  z-index: 2;
  width: clamp(150px, 15vw, 210px);
  margin: 0;
  padding: 0.55rem 0.55rem 1.6rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 14px 26px rgba(21, 23, 28, 0.2);
  transform: rotate(var(--r));
  transition: transform 0.45s cubic-bezier(0.34, 1.5, 0.64, 1);
}
.scene-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.scene-photo:hover { transform: rotate(0deg) scale(1.06); }
.scene-photo--1 { --r: -8deg; left: 0; top: 4%; }
.scene-photo--2 { --r: 6deg; right: 0; top: 0; }
.scene-photo--3 { --r: -4deg; right: 3%; bottom: 0; }
@media (max-width: 1099.98px) { .scene-photo { display: none; } }

/* ---- 3. Superpowers (cobalt) ---- */
.powers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.powers li { transition: transform 0.4s var(--ease-out); }
.powers li.is-tilting { transition: transform 0.1s linear; }

.flip {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  perspective: 1200px;
}
.flip__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.flip:hover .flip__inner,
.flip:focus-visible .flip__inner,
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }

.flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  overflow: hidden;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip__front { isolation: isolate; }
.flip__front img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.flip__label {
  align-self: flex-start;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.flip__back {
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--cream);
  color: var(--ink);
  transform: rotateY(180deg);
}
.flip__back strong { color: var(--cobalt); font-size: 1.125rem; line-height: 1.25; }
.flip__back p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

@media (prefers-reduced-motion: no-preference) {
  .js .powers li[data-reveal] {
    opacity: 0;
    transform: translateY(80px) rotate(calc(var(--d, 0) * 4deg - 8deg));
    transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.34, 1.3, 0.64, 1);
    transition-delay: calc(var(--d, 0) * 100ms);
  }
  .js .powers li[data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---- 4. Apart from design (cream) ---- */
.ab-life__head { display: grid; gap: 1.5rem 3rem; align-items: end; }
@media (min-width: 960px) { .ab-life__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: start;
  padding: 0.65rem 1.25rem 0.65rem 0.65rem;
  border: 1px solid rgba(21, 23, 28, 0.15);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), border-color 0.2s ease;
}
.ig-link small { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.ig-link:hover { transform: translateY(-2px); border-color: var(--ink); }
.ig-link__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5zm5 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm5.5-3.2a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.board {
  position: relative;
  height: clamp(420px, 46vw, 500px);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  touch-action: none;
}
.board-hint { margin: 1rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.polaroid {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(140px, 16vw, 190px);
  margin: 0;
  padding: 0.6rem 0.6rem 2.2rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 14px 28px rgba(21, 23, 28, 0.18);
  cursor: grab;
  user-select: none;
  transform: rotate(var(--r));
  transition: box-shadow 0.2s ease, transform 0.25s var(--ease-out);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; }
.polaroid figcaption {
  position: absolute;
  inset: auto 0 0.45rem;
  font-family: var(--hand);
  font-size: 1.25rem;
  text-align: center;
}
.polaroid:hover { transform: rotate(0deg) scale(1.04); }
.polaroid.is-dragging { cursor: grabbing; transform: rotate(0deg) scale(1.08); box-shadow: 0 26px 44px rgba(21, 23, 28, 0.28); }

@media (prefers-reduced-motion: no-preference) {
  .js .board .polaroid { opacity: 0; }
  .js .board.is-dropped .polaroid { animation: drop-in 0.9s cubic-bezier(0.34, 1.5, 0.64, 1) forwards; animation-delay: calc(var(--n) * 0.12s); }
}
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-120px) rotate(calc(var(--r) * -3)); }
  to { opacity: 1; transform: rotate(var(--r)); }
}

@media (max-width: 719.98px) {
  .board { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; touch-action: auto; }
  .polaroid { position: relative; left: auto; top: auto; width: 100%; cursor: default; transform: rotate(calc(var(--r) / 2)); }
  .board-hint { display: none; }
}

/* ---- 5. How I work (cobalt) ---- */
.folders { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.folders__tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.folders__tab {
  padding: 0.7rem 1.4rem 0.55rem;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: #2148b3;
  color: #fff;
  font: 700 0.9375rem/1 var(--font-sans);
  cursor: pointer;
  transform: translateY(6px);
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, color 0.25s ease;
}
.folders__tab:hover { transform: translateY(2px); background: #1a3c99; }
.folders__tab[aria-selected="true"] { background: var(--cream); color: var(--ink); transform: none; }

.folders__panel {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: 0 24px 24px 24px;
  background: var(--cream);
  color: var(--ink);
}
.folders__panel[hidden] { display: none; }
@media (min-width: 860px) { .folders__panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.folders__panel h3 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); letter-spacing: -0.02em; }
.folders__panel p { margin: 1rem 0 0; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.65; }
.folders__panel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.folders__panel.is-entering { animation: folder-out 0.55s cubic-bezier(0.34, 1.2, 0.64, 1); }
@keyframes folder-out { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---- 6. Certifications (cream) ---- */
.ab-certs__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .ab-certs__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

.stack {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 1200 / 927;
  justify-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack li {
  position: absolute;
  inset: 0;
  z-index: calc(10 - var(--k));
  transform: translate(calc(var(--k) * 10px), calc(var(--k) * -10px)) rotate(calc(var(--k) * 2.5deg - 2deg));
  transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.4s ease;
}
.stack li[data-k="4"], .stack li[data-k="5"], .stack li[data-k="6"] { opacity: 0; }
.stack img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(21, 23, 28, 0.16);
}
.stack li.is-leaving { transform: translate(-60%, 20%) rotate(-18deg); opacity: 0; }

.stack-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; }
.stack-btn {
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 1rem/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.stack-btn:hover { background: var(--ink); color: #fff; }
.stack-count { color: var(--muted); font-size: 0.9375rem; }
.stack-caption { min-height: 3em; margin: 1rem 0 0; color: var(--ink); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .ab-hero h1 .w { opacity: 1; transform: none; filter: none; animation: none; }
  .ab-hero__cloud { animation: none; }
  .flip__inner { transition: none; }
}

/* ---- Superpowers: polaroid board with sticky-note one-liners ---- */
.sp-board {
  position: relative;
  height: 660px;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.sp {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(190px, 19vw, 230px);
}
.sp:has(.sp__photo:hover, .sp__photo:focus-visible),
.sp.is-open { z-index: 5; }

.sp__photo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.6rem 0.9rem;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(21, 23, 28, 0.16);
  transform: rotate(var(--r));
  transition: transform 0.5s cubic-bezier(0.34, 1.5, 0.64, 1), box-shadow 0.4s ease;
}
.sp__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sp__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Hover / focus / tap: the photo lifts and shifts, the note slides out from behind it */
.sp__photo:hover,
.sp__photo:focus-visible,
.sp.is-open .sp__photo {
  transform: translate(-10px, -14px) rotate(calc(var(--r) * -0.6));
  box-shadow: 0 26px 40px rgba(21, 23, 28, 0.24);
}

.sp__note {
  position: absolute;
  z-index: 1;
  top: 52%;
  left: 90%;
  width: 210px;
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  background: #d7e4f7;
  border-radius: 3px;
  box-shadow: 0 10px 20px rgba(21, 23, 28, 0.14);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translate(-40px, -30px) rotate(-8deg) scale(0.85);
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.sp--note-left .sp__note { left: auto; right: 90%; transform: translate(40px, -30px) rotate(8deg) scale(0.85); }

.sp:has(.sp__photo:hover, .sp__photo:focus-visible) .sp__note,
.sp.is-open .sp__note {
  opacity: 1;
  visibility: visible;
  transform: rotate(3deg);
  transition: opacity 0.3s ease 0.08s, transform 0.55s cubic-bezier(0.34, 1.5, 0.64, 1) 0.08s, visibility 0s;
}
.sp--note-left:has(.sp__photo:hover, .sp__photo:focus-visible) .sp__note,
.sp--note-left.is-open .sp__note { transform: rotate(-3deg); }

/* Cue */
.sp-cue {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0;
  transition: opacity 0.4s ease;
}
.sp-cue span:last-child {
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
}
.sp-cue__icon {
  width: 22px;
  height: 22px;
  margin: -0.4rem 0.4rem 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 10-6 1.2 3.6 7-2.6 1.4-3.6-7L5 19z' fill='white' stroke='%2315171c' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: cue-nudge 1.8s ease-in-out infinite;
}
@keyframes cue-nudge { 50% { transform: translate(5px, 5px); } }
.sp-cue.is-done { opacity: 0; }

/* Smaller screens: a grid of cards that turn over to show the one-liner */
@media (max-width: 959.98px) {
  .sp-board {
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 1.25rem;
  }
  .sp { position: relative; left: auto; top: auto; width: 100%; perspective: 1200px; }
  .sp__photo,
  .sp__note,
  .sp--note-left .sp__note {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0s, visibility 0s !important;
  }
  .sp__photo,
  .sp__photo:hover,
  .sp__photo:focus-visible { transform: rotateY(0deg); box-shadow: 0 10px 20px rgba(21, 23, 28, 0.14); }
  .sp__note,
  .sp--note-left .sp__note {
    position: absolute;
    inset: 0;
    width: auto;
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-radius: 4px;
    font-size: 1rem;
    opacity: 1;
    visibility: visible;
    transform: rotateY(180deg) !important;
    pointer-events: none;
    cursor: pointer;
  }
  .sp.is-open .sp__photo { transform: rotateY(-180deg); }
  .sp.is-open .sp__note,
  .sp--note-left.is-open .sp__note { transform: rotateY(0deg) !important; pointer-events: auto; }
  .sp-cue { display: flex; }
}
@media (max-width: 959.98px) and (hover: hover) {
  .sp:hover .sp__photo { transform: rotateY(-180deg); }
  .sp:hover .sp__note { transform: rotateY(0deg) !important; }
}

html.motion-off .sp-cue__icon { animation: none; }

/* ==========================================================================
   Superpowers board (wide screens): photos flip on hover, objects can be dragged.
   Smaller screens use the flip-card grid instead.
   ========================================================================== */
.obj-board { display: none; }

@media (min-width: 960px) {
  #powers-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sp-board, .sp-cue { display: none; }

  .obj-board {
    position: relative;
    display: block;
    aspect-ratio: 1160 / 820;
    border: 1px solid rgba(21, 23, 28, 0.12);
    border-radius: 28px;
    background-color: #f8f4ec;
    background-image:
      linear-gradient(rgba(21, 23, 28, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(21, 23, 28, 0.07) 1px, transparent 1px);
    background-size: calc(100% / 12) calc(100% / 8);
    overflow: hidden;
  }

  .obj-cell {
    position: absolute;
    margin: 0;
    padding: 1.1rem 1.4rem;
    border: 1px solid rgba(21, 23, 28, 0.12);
    background: #fbf8f2;
    color: var(--ink);
    font-size: clamp(1.75rem, 0.6rem + 2.6vw, 3rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    pointer-events: none;
  }
  .obj-cell--title { left: calc(100% / 12); top: calc(100% / 8); }
  .obj-cell--end { right: calc(100% / 12); bottom: calc(100% / 8); text-align: right; font-size: clamp(1.25rem, 0.5rem + 1.6vw, 2rem); }

  /* Draggable objects */
  .obj {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    cursor: grab;
    touch-action: none;
    user-select: none;
    transform: rotate(var(--r));
    filter: drop-shadow(0 10px 14px rgba(21, 23, 28, 0.18));
    transition: transform 0.35s cubic-bezier(0.34, 1.6, 0.64, 1), filter 0.3s ease;
  }
  .obj:hover { transform: rotate(calc(var(--r) * -0.5)) scale(1.05); }
  .obj.is-dragging {
    cursor: grabbing;
    transform: rotate(0deg) scale(1.1);
    filter: drop-shadow(0 26px 30px rgba(21, 23, 28, 0.3));
    transition: filter 0.2s ease;
  }

  /* Photo polaroids that flip */
  .pf-list { margin: 0; padding: 0; list-style: none; }
  .pf {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    width: 15%;
    perspective: 1200px;
  }
  .pf:hover, .pf:focus-within, .pf.is-open { z-index: 30; }

  .pf__card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 5 / 6;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transform: rotate(var(--r));
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.34, 1.3, 0.64, 1);
  }
  .pf__card:hover,
  .pf__card:focus-visible,
  .pf.is-open .pf__card { transform: rotate(0deg) rotateY(180deg) scale(1.06); }
  .pf__card:focus-visible { outline: none; }
  .pf__card:focus-visible .pf__face { outline: 3px solid var(--cobalt); outline-offset: 4px; }

  .pf__face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.55rem 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 14px 26px rgba(21, 23, 28, 0.2);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .pf__front img { width: 100%; aspect-ratio: 1; object-fit: cover; }
  .pf__label {
    padding: 0.6rem 0.15rem;
    color: var(--ink);
    font-size: clamp(0.75rem, 0.5rem + 0.4vw, 0.9375rem);
    font-weight: 700;
    line-height: 1.2;
  }
  .pf__back {
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--ink);
    color: #fff;
    font-size: clamp(0.75rem, 0.55rem + 0.35vw, 0.9rem);
    line-height: 1.45;
    transform: rotateY(180deg);
  }
  .pf__back strong { color: #ffd6ea; font-size: 1.05em; }

  /* Cue pill */
  .obj-cue {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .obj-cue span:last-child {
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .obj-cue__icon {
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 10-6 1.2 3.6 7-2.6 1.4-3.6-7L5 19z' fill='white' stroke='%2315171c' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: cue-nudge 1.8s ease-in-out infinite;
  }
  .obj-cue.is-done { opacity: 0; }
}

html.motion-off .obj-cue__icon { animation: none; }

/* Polaroid flip cards: everything sized from the card's own width (cqi) so it always fits */
@media (min-width: 960px) {
  .pf { container-type: inline-size; }
  .pf__card { aspect-ratio: 5 / 6.2; }
  .pf__face { padding: 5cqi 5cqi 0; }
  .pf__label {
    padding: 4.5cqi 1.5cqi 0;
    font-size: 7.4cqi;
    font-weight: 500;
    line-height: 1.2;
  }
  .pf__back {
    justify-content: center;
    gap: 3.5cqi;
    padding: 9cqi 9cqi;
    font-size: 7.8cqi;
    font-weight: 400;
    line-height: 1.4;
  }
  .pf__back strong { font-size: 8.6cqi; font-weight: 500; line-height: 1.2; }

  .obj-cell { font-weight: 600; }
}

/* ==========================================================================
   Palette override: cream + black, with the home-page pink as the only accent.
   ========================================================================== */
.about {
  --cobalt: #15171c;           /* former blue accents now use ink */
  --cobalt-tint: #fcd6d9;      /* highlight on dark sections */
  --pink: #fcd6d9;
}
.about mark,
.about .ab-title em {
  padding: 0 0.12em;
  border-radius: 0.12em;
  background: var(--pink);
  color: var(--ink);
  font-style: normal;
}
.ab-cobalt .ab-title em { background: var(--pink); color: var(--ink); }
.pin::after { background: radial-gradient(circle at 35% 30%, #fff, var(--pink) 55%, #e7a9b0); }
.board-card { box-shadow: 0 30px 60px rgba(21, 23, 28, 0.18); }
.folders__tab { background: #2a2c33; }
.folders__tab:hover { background: #3a3d46; }
.sp__note { background: var(--pink); }
.about .nav__list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.about :focus-visible { outline-color: var(--ink); }
.ab-cobalt :focus-visible { outline-color: var(--pink); }
.pf__back strong { color: var(--pink); }

/* ==========================================================================
   Intro: a floor plan that redraws itself as a phone (scroll-linked).
   --p (0 → 1) is set by main.js from the section's scroll progress.
   ========================================================================== */
.ab-morph { --p: 0; position: relative; }
.ab-morph__sticky { padding-block: clamp(4rem, 8vw, 6rem); }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .ab-morph { height: 320vh; }
  .ab-morph__sticky { position: sticky; top: 0; display: flex; align-items: center; min-height: 100vh; padding-block: 0; }
}
html.motion-off .ab-morph { height: auto; }
html.motion-off .ab-morph__sticky { position: static; min-height: 0; padding-block: clamp(4rem, 8vw, 6rem); }

.ab-morph__grid { display: grid; gap: 3rem 5rem; align-items: center; }
@media (min-width: 900px) { .ab-morph__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.ab-morph__art { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.blueprint { width: 100%; overflow: visible; }
.blueprint path {
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
}
/* plan draws in over the first 40%, phone draws in over 50–90% */
.blueprint__plan path { stroke-dashoffset: calc(1 - min(1, var(--p) / 0.4)); }
.blueprint__plan {
  transform-origin: 50% 50%;
  opacity: calc(1 - max(0, (var(--p) - 0.45) / 0.15));
  transform: scale(calc(1 - max(0, var(--p) - 0.45) * 0.6));
}
.blueprint__phone path { stroke-dashoffset: calc(1 - max(0, min(1, (var(--p) - 0.5) / 0.4))); }
.blueprint__screen {
  fill: var(--pink);
  transform-origin: 200px 130px;
  transform: scale(calc(max(0, min(1, (var(--p) - 0.85) / 0.15))));
}
.ab-morph__caption {
  position: relative;
  height: 1.5em;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.ab-morph__caption span { position: absolute; inset: 0; transition: opacity 0.4s ease, transform 0.4s ease; }
.ab-morph__caption .is-phone { opacity: 0; transform: translateY(8px); }
.ab-morph.is-phone .ab-morph__caption .is-plan { opacity: 0; transform: translateY(-8px); }
.ab-morph.is-phone .ab-morph__caption .is-phone { opacity: 1; transform: none; }

.ab-morph__text .read-along {
  max-width: 54ch;
  margin: 1.4rem 0 0;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
}
.read-along .rw { color: rgba(21, 23, 28, 0.22); transition: color 0.25s ease; }
.read-along .rw.is-lit { color: var(--ink); }

/* No scroll-linking: everything simply shows */
@media (max-width: 899.98px), (prefers-reduced-motion: reduce) {
  .ab-morph { --p: 1 !important; }
  .read-along .rw { color: var(--ink); }
}
html.motion-off .ab-morph { --p: 1 !important; }
html.motion-off .read-along .rw { color: var(--ink); }

/* ==========================================================================
   Apart from design: a black film strip that moves sideways as you scroll.
   ========================================================================== */
.ab-strip { position: relative; background: var(--ink); color: var(--cream); }
.ab-strip .ab-lede { color: rgba(246, 241, 231, 0.78); }
.ab-strip__sticky { padding-block: clamp(4rem, 8vw, 6rem); overflow: hidden; }
.ab-strip__head { display: grid; gap: 1rem 4rem; align-items: end; }
@media (min-width: 900px) { .ab-strip__head { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .ab-strip .ab-lede { margin: 0; } }

.strip {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 34px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
/* sprocket holes along the top and bottom edge */
.strip::before,
.strip::after {
  content: "";
  position: absolute;
  left: 0;
  width: var(--strip-w, 100%);
  height: 14px;
  background: radial-gradient(circle, rgba(246, 241, 231, 0.85) 0 3.5px, transparent 4px) 0 50% / 26px 14px repeat-x;
  opacity: 0.5;
}
.strip::before { top: 8px; }
.strip::after { bottom: 8px; }
.strip:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }

.strip__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: max-content;
  margin: 0;
  padding: 0 max(var(--gutter), calc((100vw - 1160px) / 2));
  list-style: none;
}
.strip__frame { --focus: 1; flex: 0 0 auto; scroll-snap-align: center; }
.strip__frame figure { margin: 0; width: clamp(240px, 26vw, 340px); }
.strip__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(calc(1 - var(--focus)));
  transform: scale(calc(0.86 + var(--focus) * 0.14));
  transition: transform 0.2s linear, filter 0.2s linear;
}
.strip__frame figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  margin-top: 1rem;
  opacity: calc(0.35 + var(--focus) * 0.65);
}
.strip__num { color: var(--pink); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; }
.strip__frame strong { font-size: 1.25rem; font-weight: 600; }
.strip__line { flex-basis: 100%; color: rgba(246, 241, 231, 0.75); font-size: 0.9375rem; }

.strip__frame--ig { display: flex; align-items: stretch; }
.strip__ig {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  width: clamp(240px, 26vw, 340px);
  aspect-ratio: 4 / 5;
  padding: 1.75rem;
  border-radius: 6px;
  background: var(--pink);
  color: var(--ink);
  text-decoration: none;
  transform: scale(calc(0.86 + var(--focus) * 0.14));
  transition: transform 0.2s linear;
}
.strip__ig-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.strip__ig-handle { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.strip__ig-sub { font-size: 0.9375rem; }
.strip__ig-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--pink);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease-out);
}
.strip__ig:hover .strip__ig-arrow { transform: rotate(45deg); }
.strip__ig:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }

/* Desktop with motion: pin the section and drive the strip with vertical scroll */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .ab-strip.is-pinned .ab-strip__sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding-block: 3rem;
  }
  .ab-strip.is-pinned .strip { overflow: visible; scroll-snap-type: none; }
  .ab-strip.is-pinned .strip__track { transform: translateX(var(--tx, 0px)); will-change: transform; }
}
html.motion-off .ab-strip { height: auto !important; }
html.motion-off .ab-strip .ab-strip__sticky { position: static; min-height: 0; }
html.motion-off .ab-strip .strip { overflow-x: auto; }
html.motion-off .ab-strip .strip__track { transform: none; }
html.motion-off .strip__frame { --focus: 1 !important; }

/* Pinned area carries its own background so nothing appears to slide behind it */
.ab-morph__sticky {
  background-color: var(--cream);
  background-image: var(--grid-light);
  background-size: 96px 96px;
}

/* ==========================================================================
   Intro journey: photos deal onto a stack one at a time as you scroll.
   main.js sets --k on each card (0 = current, 1+ = behind it).
   ========================================================================== */
.journey {
  position: relative;
  height: clamp(420px, 62vh, 560px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey__card {
  --k: -1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  z-index: calc(10 - var(--k));
  transform:
    translate(calc(-50% - var(--k) * 26px), calc(-50% - var(--k) * 18px))
    rotate(calc(var(--k) * -5deg + (var(--i) - 1.5) * 1.2deg))
    scale(calc(1 - var(--k) * 0.06));
  opacity: 1;
  transition: transform 0.75s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.5s ease, filter 0.5s ease;
}
.journey__card.is-portrait { width: 68%; }
.journey__card.is-future {
  opacity: 0;
  transform: translate(-50%, calc(-50% + 140px)) rotate(8deg) scale(0.92);
}
.journey__card.is-past { filter: grayscale(0.85) brightness(0.96); }
.journey__card.is-past-far { opacity: 0; }

.journey__card figure {
  margin: 0;
  padding: 0.6rem 0.6rem 0.9rem;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(21, 23, 28, 0.18);
}
.journey__card img { width: 100%; border-radius: 2px; }
.journey__card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.25rem 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
}
.journey__tag {
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Step rail */
.journey-rail {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 2px solid rgba(21, 23, 28, 0.12);
  list-style: none;
  position: relative;
}
.journey-rail::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  height: 2px;
  width: calc(var(--rail, 0) * 100%);
  background: var(--ink);
  transition: width 0.5s var(--ease-out);
}
.journey-rail li {
  position: relative;
  color: rgba(21, 23, 28, 0.45);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.journey-rail li::before {
  content: "";
  position: absolute;
  top: calc(-1.1rem - 7px);
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.journey-rail li:last-child { text-align: right; }
.journey-rail li:last-child::before { left: auto; right: 0; }
.journey-rail li.is-on { color: var(--ink); }
.journey-rail li.is-on::before { background: var(--pink); transform: scale(1.25); }

/* Small screens / no motion: a plain 2x2 grid of the four moments */
@media (max-width: 899.98px), (prefers-reduced-motion: reduce) {
  .journey { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .journey__card,
  .journey__card.is-portrait,
  .journey__card.is-future,
  .journey__card.is-past-far {
    position: static;
    width: auto;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .journey__card img { aspect-ratio: 4 / 3; object-fit: cover; }
  .journey-rail { display: none; }
}
html.motion-off .journey { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
html.motion-off .journey__card { position: static; width: auto !important; opacity: 1 !important; filter: none !important; transform: none !important; }
html.motion-off .journey__card img { aspect-ratio: 4 / 3; object-fit: cover; }
html.motion-off .journey-rail { display: none; }

/* Grid stays put while content scrolls, so pinned sections never look like they slide */
body.about, .ab-morph__sticky { background-attachment: fixed; }

/* ==========================================================================
   About hero: grainy sky, scattered snapshots, cream type (moodboard style)
   ========================================================================== */
.ab-sky {
  position: relative;
  min-height: max(100svh, 680px);
  overflow: hidden;
  isolation: isolate;
  background: #8fb3cc url("../assets/img/about/sky.webp") center / cover no-repeat;
  color: var(--cream);
}
/* heavier grain just on the sky */
.ab-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ab-sky__hello,
.ab-sky__line {
  position: absolute;
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(40, 70, 100, 0.25);
}
.ab-sky__hello { left: 8%; top: 24%; font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem); }
.ab-sky__line { right: 8%; bottom: 16%; font-size: clamp(2rem, 1rem + 3.2vw, 3.75rem); }
.ab-sky__sign {
  position: absolute;
  left: 50%;
  bottom: 5%;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}
.ab-sky .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  filter: blur(8px);
  animation: word-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.3s + var(--wi) * 0.08s);
}

/* Snapshots: small, square-edged prints scattered across the sky */
.ab-sky__photos { position: absolute; inset: 30% 30% 12% 8%; }
.snap {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  margin: 0;
  transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--r));
  box-shadow: 0 14px 30px rgba(30, 50, 80, 0.28);
  opacity: 0;
  animation: snap-in 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  animation-delay: calc(0.9s + var(--n) * 0.18s);
  transition: transform 0.6s var(--ease-out);
}
.snap img { width: 100%; display: block; }
.snap:hover { z-index: 3; transform: translate(var(--px, 0px), var(--py, 0px)) rotate(0deg) scale(1.06); }
@keyframes snap-in {
  from { opacity: 0; transform: translateY(40px) rotate(calc(var(--r) * 4)) scale(0.9); }
  to { opacity: 1; transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--r)); }
}

@media (max-width: 899.98px) {
  .ab-sky { display: flex; flex-direction: column; gap: 2rem; min-height: auto; padding: 8rem var(--gutter) 3rem; }
  .ab-sky__hello, .ab-sky__line, .ab-sky__sign, .ab-sky__photos { position: static; transform: none; }
  .ab-sky__line { align-self: flex-end; text-align: right; }
  .ab-sky__sign { align-self: center; }
  .ab-sky__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .snap { position: static; width: auto; }
  .snap:last-child { grid-row: span 2; }
  .snap img { height: 100%; object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-sky .w, .snap { opacity: 1; filter: none; animation: none; }
  .snap { transform: rotate(var(--r)); }
}
html.motion-off .ab-sky .w,
html.motion-off .snap { opacity: 1; filter: none; animation: none; }

/* Volleyball clip inside the film strip */
.strip__video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
  filter: grayscale(calc(1 - var(--focus)));
  transform: scale(calc(0.86 + var(--focus) * 0.14));
  transition: transform 0.2s linear, filter 0.2s linear;
}

/* Hero refinements: pale, soft sky like the reference; clearer spacing */
.ab-sky { background-image: url("../assets/img/about/sky-soft.webp"); background-color: #b9cfdc; }
.ab-sky::before { opacity: 0.5; }
.ab-sky__line { bottom: 11%; }
.snap[style*="--n: 2"] { --y: 4% !important; }
.ab-sky__photos { inset: 32% 32% 22% 8%; }
.strip__video { height: auto; }

/* Sky: deeper base for readable cream type, soft clouds drifting on the right like the reference */
.ab-sky {
  background:
    radial-gradient(22% 30% at 92% 14%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(18% 26% at 84% 56%, rgba(255, 255, 255, 0.6), transparent 70%),
    radial-gradient(26% 22% at 70% 96%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(14% 18% at 6% 92%, rgba(255, 255, 255, 0.4), transparent 70%),
    linear-gradient(180deg, #5f88a3 0%, #6a90aa 60%, #7398b1 100%);
  background-size: 160% 100%, 160% 100%, 160% 100%, 100% 100%, 100% 100%;
  animation: sky-drift 40s ease-in-out infinite alternate;
}
@keyframes sky-drift {
  to { background-position: 30% 0, 25% 0, 35% 0, 0 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) { .ab-sky { animation: none; } }
html.motion-off .ab-sky { animation: none; }
/* text never sits on a cloud */
.ab-sky__hello, .ab-sky__line { text-shadow: 0 2px 18px rgba(40, 70, 100, 0.35); }

/* ==========================================================================
   About hero (sticker poster): giant tight lowercase type on the grid page,
   photos as die-cut stickers and badges that slap on one after another.
   ========================================================================== */
.ab-stick { position: relative; overflow: hidden; padding-block: clamp(7rem, 14vh, 9rem) clamp(3rem, 6vw, 5rem); }
.ab-stick__inner { position: relative; min-height: clamp(560px, 78vh, 760px); display: grid; place-items: center; }

.ab-stick__type { position: relative; z-index: 2; margin: 0; text-align: center; color: var(--ink); }
.ab-stick__line {
  display: block;
  font-size: clamp(3.5rem, 1rem + 9vw, 9rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.065em;
}
.ab-stick__line--big { font-size: clamp(5rem, 1rem + 15vw, 15rem); }
.ab-stick__sub {
  display: block;
  margin-top: clamp(1rem, 2vw, 1.75rem);
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ab-stick__sub mark { padding: 0.05em 0.25em; border-radius: 0.3em; }

/* words pop in */
.pop {
  display: inline-block;
  opacity: 0;
  transform: scale(0.6) translateY(0.15em);
  animation: pop-in 0.7s cubic-bezier(0.34, 1.6, 0.64, 1) forwards;
  animation-delay: calc(0.15s + var(--n) * 0.12s);
}
@keyframes pop-in { to { opacity: 1; transform: none; } }

/* stickers */
.sticker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  margin: 0;
  opacity: 0;
  transform: rotate(var(--r));
  animation: slap 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
  animation-delay: calc(0.9s + var(--n) * 0.14s);
  transition: transform 0.4s cubic-bezier(0.34, 1.6, 0.64, 1);
}
@keyframes slap {
  0% { opacity: 0; transform: scale(1.5) rotate(calc(var(--r) * 3)); }
  60% { opacity: 1; transform: scale(0.94) rotate(var(--r)); }
  100% { opacity: 1; transform: scale(1) rotate(var(--r)); }
}
.sticker:hover { transform: rotate(calc(var(--r) * -1)) scale(1.06); z-index: 6; }

.sticker--photo {
  width: var(--w);
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(21, 23, 28, 0.08), 0 16px 30px rgba(21, 23, 28, 0.16);
}
.sticker--photo img { width: 100%; border-radius: 11px; }

.sticker--badge {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: clamp(0.8125rem, 0.7rem + 0.3vw, 1rem);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(21, 23, 28, 0.14);
}
.sticker--pink { background: var(--pink); color: var(--ink); border: 2px solid var(--ink); }
.sticker--ink { background: var(--ink); color: var(--cream); }
.sticker--outline { background: var(--cream); color: var(--ink); border: 2px solid var(--ink); }

.sticker--burst { width: clamp(84px, 8vw, 120px); aspect-ratio: 1; display: grid; place-items: center; }
.sticker--burst svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ink); animation: spin 18s linear infinite; }
.sticker--burst span { position: relative; color: var(--pink); font-size: clamp(0.875rem, 0.7rem + 0.4vw, 1.125rem); font-weight: 800; line-height: 1; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* phones: type first, stickers in a loose row underneath */
@media (max-width: 759.98px) {
  .ab-stick__inner { min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .ab-stick__type { flex-basis: 100%; margin-bottom: 1rem; }
  .sticker { position: relative; left: auto; top: auto; }
  .sticker--photo { width: 44%; }
  .sticker--burst { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pop, .sticker { opacity: 1; transform: rotate(var(--r, 0deg)); animation: none; }
  .pop { transform: none; }
  .sticker--burst svg { animation: none; }
}
html.motion-off .pop { opacity: 1; transform: none; animation: none; }
html.motion-off .sticker { opacity: 1; transform: rotate(var(--r)); animation: none; }
html.motion-off .sticker--burst svg { animation: none; }

/* header sits on cream here */
.about .site-header { position: absolute; }
.about .nav__list,
.about .nav__toggle { background: rgba(255, 255, 255, 0.6); border-color: rgba(21, 23, 28, 0.15); color: var(--ink); }
.about .nav__list a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.about .logo img { filter: brightness(0); }

/* ==========================================================================
   About hero v4: painted pastel backdrop (not the Home sky), intro copy on the
   left, photo stickers on the right. Replaces the separate intro section.
   ========================================================================== */
.ab-intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(7.5rem, 16vh, 10rem) clamp(4rem, 8vw, 6rem);
  background:
    linear-gradient(90deg, rgba(246, 241, 231, 0.45), rgba(246, 241, 231, 0) 65%),
    #f2c4b8 url("../assets/img/about/hero-paint.webp") center / cover no-repeat;
}
.ab-intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: min(68vh, 640px);
}
.ab-intro__text { position: relative; z-index: 2; }
.ab-intro .sticker.ab-intro__hi { position: relative; left: auto; top: auto; display: inline-block; margin: 0 0 1.5rem; }
.ab-intro__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.75rem, 1.2rem + 4.6vw, 5.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.ab-intro__title mark { padding: 0 0.12em; border-radius: 0.15em; background: var(--cream); }
.ab-intro__copy {
  max-width: 34rem;
  margin: 1.75rem 0 2rem;
  color: var(--ink);
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}
.ab-intro__collage { position: relative; aspect-ratio: 1 / 1.02; }
.ab-intro__collage .sticker--photo { border-radius: 16px; }

@media (max-width: 899.98px) {
  .ab-intro__grid { grid-template-columns: 1fr; min-height: 0; }
  .ab-intro__collage { width: min(100%, 520px); margin-inline: auto; }
}
/* the generic phone rule unpins stickers; keep the collage absolute here */
@media (max-width: 759.98px) {
  .ab-intro__collage .sticker { position: absolute; left: var(--x); top: var(--y); }
  .ab-intro__collage .sticker--photo { width: var(--w); padding: 5px; }
  .ab-intro__collage .sticker--burst { display: grid; width: 72px; }
}
.ab-intro__title { font-size: clamp(2.5rem, 1.1rem + 3.6vw, 4.75rem); }
.ab-intro__title mark { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ab-intro__title mark.pop { display: inline; }
/* hero collage: badges always sit above the photos */
.ab-intro__collage .sticker--badge,
.ab-intro__collage .sticker--burst { z-index: 5; }
.sticker--burst span { margin: 0; }

/* Superpowers board: every title listed on the board + a hand-drawn hover cue */
@media (min-width: 960px) {
  .obj-cell--title p { margin: 0; }
  .obj-legend {
    display: grid;
    gap: 0.25rem;
    margin: 1rem 0 0 -0.55rem;
    padding: 0;
    list-style: none;
    counter-reset: sp;
    font-size: clamp(0.8125rem, 0.55rem + 0.35vw, 1rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    pointer-events: auto;
  }
  .obj-legend li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    counter-increment: sp;
    transition: background-color 0.25s ease;
  }
  .obj-legend li::before { content: counter(sp, decimal-leading-zero); font-size: 0.8em; color: #5c5f66; }
  .obj-legend li.is-hot { background: var(--pink); }

  .obj-hint {
    position: absolute;
    left: 47%;
    top: 15.5%;
    z-index: 25;
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    margin: 0;
    color: var(--ink);
    font-size: clamp(0.9375rem, 0.7rem + 0.35vw, 1.125rem);
    font-weight: 600;
    transform: rotate(-3deg);
    pointer-events: none;
  }
  .obj-hint span { order: 2; padding-bottom: 2.4rem; white-space: nowrap; }
  .obj-hint svg { width: 64px; transform: scaleX(-1) rotate(10deg); }
}
@media (min-width: 960px) {
  .obj-legend {
    position: absolute;
    left: 50%;
    bottom: 3.5%;
    z-index: 26;
    grid-auto-flow: column;
    gap: 0.5rem;
    margin: 0;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .obj-legend li {
    padding: 0.5rem 0.9rem;
    border: 1.5px solid var(--ink);
    background: #fbf8f2;
    cursor: default;
  }
  .obj-hint small { display: block; margin-top: 0.2rem; font-size: 0.8em; font-weight: 500; color: #4a4d55; }
  .obj-hint span { padding-bottom: 1.6rem; }
}
@media (min-width: 960px) { .obj-hint svg { transform: scaleX(-1) rotate(-35deg) translate(-6px, 14px); } }

/* Hobbies film strip: photos and videos always stay in full colour */
.strip__frame img,
.strip__video { filter: none; }

/* How I work: process as four numbered steps */
.process-steps { display: grid; gap: 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.process-steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}
.process-steps h4 { margin: 0.35rem 0 0; font-size: 1.125rem; letter-spacing: -0.01em; }
.folders__panel .process-steps p { margin: 0.35rem 0 0; font-size: 1rem; line-height: 1.6; }
@media (min-width: 860px) { .folders__panel--process { align-items: start; } .folders__panel--process img { position: sticky; top: 6rem; } }
@media (max-width: 759.98px) { .ab-intro__collage .sticker--outline { left: 40%; font-size: 0.75rem; } }

/* How I work: every folder has its own colour; the open panel matches its tab */
#tab-process, #panel-process { --folder: #fcd6d9; }
#tab-philosophy, #panel-philosophy { --folder: #f6e3a8; }
#tab-motivation, #panel-motivation { --folder: #d9d3f5; }
.folders__tab,
.folders__tab:hover { background: var(--folder); color: var(--ink); }
.folders__tab { filter: brightness(0.72) saturate(0.85); }
.folders__tab:hover { filter: brightness(0.88); }
.folders__tab[aria-selected="true"] { background: var(--folder); color: var(--ink); filter: none; }
.folders__panel { background: var(--folder); }
.folders__panel p, .folders__panel .process-steps p { color: #3a3b40; }
.folders__panel .process-steps li::before { background: var(--ink); color: var(--folder); }
/* Tabs sit flush on the panel (no offset ledge); the open tab is simply taller */
.folders__tabs { align-items: flex-end; gap: 0.4rem; }
.folders__tab,
.folders__tab:hover,
.folders__tab[aria-selected="true"] { transform: none; filter: none; margin: 0; }
.folders__tab { padding: 0.65rem 1.3rem; opacity: 0.78; transition: opacity 0.2s ease, padding 0.25s var(--ease-out); }
.folders__tab:hover { opacity: 1; }
.folders__tab[aria-selected="true"] { padding-top: 0.95rem; padding-bottom: 0.75rem; opacity: 1; }
.folders__tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.folders__tab[aria-selected="true"] { padding-bottom: 0.65rem; }
.folders__panel--process img { position: static !important; } @media (min-width: 860px) { .folders__panel--process { align-items: center; } }

/* About: awards */
.ab-awards { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .ab-awards { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.ab-awards__certs { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.awards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .awards { grid-template-columns: 1fr 1fr; } }
.awards li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid rgba(21, 23, 28, 0.12); border-radius: 18px; background: #fff; }
.awards li:first-child { grid-column: 1 / -1; }
.awards img { flex: none; width: 64px; height: 76px; object-fit: contain; }
.awards li:first-child img { width: 110px; }
.awards h3 { margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.25; }
.awards p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.awards a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.awards__more { font-weight: 600; }

/* About hero: soften the low-resolution painted background, then add fine grain back */
.ab-intro { background: #f2c4b8; isolation: isolate; }
.ab-intro::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -2;
  background: url("../assets/img/about/hero-paint.webp") center / cover no-repeat;
  filter: blur(14px) saturate(1.08);
}
.ab-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 241, 231, 0.42), rgba(246, 241, 231, 0) 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: normal;
  opacity: 0.9;
}
/* Logo flips colour with the section behind it (set by main.js) */
.about .logo img { transition: filter 0.25s ease; }
html .about .site-header.logo-on-dark .logo img { filter: none; }
/* Indigo card spans the row and lists each category */
.awards li:nth-child(2) { grid-column: 1 / -1; align-items: flex-start; }
.awards__list { display: grid; gap: 0.3rem 1.5rem; margin: 0.7rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 640px) { .awards__list { grid-template-columns: 1fr 1fr; } }
.awards__list strong { display: inline-block; min-width: 3.6rem; color: var(--ink); font-weight: 600; }
.awards .awards__list li { display: block; grid-column: auto; padding: 0; border: 0; border-radius: 0; background: none; }
.ab-awards__total { display: flex; align-items: baseline; gap: 0.6rem; margin: 1.5rem 0 0; color: var(--ink); }
.ab-awards__total strong { font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.ab-awards__total span { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }
/* Awards: one text size, hierarchy from a label + divider */
.ab-awards__certs { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(21, 23, 28, 0.14); }
.ab-awards__certs p { margin: 0; color: var(--muted); font-size: inherit; line-height: 1.55; }
.ab-awards .ab-lede, .ab-awards__certs p:last-child { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.ab-awards__label { margin-bottom: 0.4rem !important; color: var(--ink) !important; font-size: 0.8125rem !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
/* Indigo categories: label column + text that wraps under itself */
.awards .awards__list li { display: grid; grid-template-columns: 3.6rem 1fr; column-gap: 0.4rem; }
.awards__list strong { min-width: 0; }
/* European award spans the row like Red Dot */
.awards > li:last-child { grid-column: 1 / -1; }
/* About titles: same pairing as the hero — Inter Medium + Libre Baskerville italic, no highlight, a little smaller */
.about .ab-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); font-weight: 500; letter-spacing: -0.02em; }
.about .ab-title em, .about mark.ab-hl { background: none !important; padding: 0 !important; color: inherit; font-family: "Libre Baskerville", Georgia, serif; font-style: italic !important; font-weight: 400; }
.about .ab-intro__title { font-weight: 500; }
.about .ab-intro__title mark { background: none; padding: 0; font-family: "Libre Baskerville", Georgia, serif; font-style: italic; font-weight: 400; }
/* small pink full stop after every About title */
.about .ab-title::after { content: "."; color: #ff8cc9; font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; }
.about .title-dot { color: #ff8cc9; font-family: "Libre Baskerville", Georgia, serif; font-style: italic; }
