/* About: the full story page (projects/about.html, .ab-*) and the short
   "About" block low on the home page (index.html #about, .ha-*).
   Loads after base.css + case.css. Line icons share one stroke style. */

/* ---------- Line icons ---------- */
.ab-ch__node svg, .ab-tile__icon svg, .ab-way__icon svg, .ha-fact__icon svg {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible;
}
/* about.js inlines each icon and draws its strokes in once seen */
.is-drawable > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out); }
.is-drawable > :nth-child(2) { transition-delay: 0.15s; }
.is-drawable > :nth-child(3) { transition-delay: 0.3s; }
.is-drawable > :nth-child(4) { transition-delay: 0.45s; }
.is-drawable.is-drawn > * { stroke-dashoffset: 0; }

/* ---------- Hero ---------- */
.ab-hero { padding-top: clamp(110px, 13vw, 160px); }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ab-hero__intro { display: grid; gap: 22px; justify-items: start; }
.ab-hero h1 { font-size: clamp(46px, 6.4vw, 96px); letter-spacing: -0.055em; line-height: 0.98; }
.ab-hero__lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--grey-7); max-width: 46ch; }
.ab-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--grey-1); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
}
.ab-status i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3ccf6e; }
.ab-status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ccf6e; opacity: 0; animation: ab-ping 2.4s var(--ease-out) infinite; }
@keyframes ab-ping { 0% { opacity: 0.7; scale: 0.6; } 100% { opacity: 0; scale: 1.6; } }

.ab-collage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; isolation: isolate; }
.ab-scribble { position: absolute; inset: 4% -4%; width: 108%; height: 92%; z-index: -1; overflow: visible; pointer-events: none; }
.ab-scribble path { fill: none; stroke: var(--hl-yellow); stroke-width: 88; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; mix-blend-mode: multiply; }

.ab-piece {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); rotate: var(--r);
  display: block; text-decoration: none; color: inherit;
  transition: rotate 0.6s var(--ease-spring), scale 0.6s var(--ease-spring);
}
a.ab-piece:hover, a.ab-piece:focus-visible { rotate: 0deg; scale: 1.05; z-index: 6; }
.ab-piece--logo { aspect-ratio: 1.45; border-radius: 18px; background: var(--bg); display: grid; place-items: center; padding: 0 11%; box-shadow: 0 2px 4px rgb(20 20 30 / 0.08), 0 26px 50px -24px rgb(20 20 30 / 0.55); }
.ab-piece--logo img { width: 100%; height: auto; }
.ab-piece--paper img { width: 100%; aspect-ratio: 0.707; object-fit: cover; border-radius: 3px; box-shadow: 0 2px 4px rgb(20 20 30 / 0.1), 0 24px 44px -20px rgb(20 20 30 / 0.5); }

/* Name badge until John adds a portrait */
.ab-portrait {
  margin: 0; z-index: 3; aspect-ratio: auto; border-radius: 26px; overflow: hidden;
  display: grid; grid-template-rows: 1fr auto;
  background: #fff; color: #18181a; border: 1px solid rgb(24 24 26 / 0.08);
  box-shadow: 0 2px 4px rgb(20 20 30 / 0.06), 0 40px 70px -30px rgb(20 20 30 / 0.5);
}
.ab-portrait__mono {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0.02em;
  font-size: clamp(76px, 9vw, 132px); font-weight: 800; letter-spacing: -0.07em; line-height: 1;
  background: radial-gradient(120% 90% at 30% 10%, #fffbe0, #fff 60%);
}
.ab-portrait__mono span:last-child {
  padding: 0 0.08em; border-radius: 0.12em 0.2em 0.14em 0.22em;
  background: linear-gradient(100deg, transparent 2%, var(--hl-pink) 6%, var(--hl-pink) 94%, transparent 98%) 0 62% / 100% 70% no-repeat;
}
.ab-portrait__img { display: block; width: 100%; height: auto; aspect-ratio: 864 / 1160; object-fit: cover; object-position: 50% 0; }
.ab-portrait figcaption { display: grid; gap: 2px; padding: 14px 18px 16px; border-top: 1px dashed rgb(24 24 26 / 0.14); }
.ab-portrait figcaption b { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.ab-portrait figcaption span { font-size: 12.5px; color: #6b6b70; }

.ab-hero .meta { margin-top: clamp(40px, 6vw, 72px); }

@media (max-width: 900px) {
  .ab-hero__grid { grid-template-columns: 1fr; }
  .ab-collage { max-width: 440px; }
}

/* ---------- The story so far ---------- */
.ab-story { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 110px); }
.ab-story__line { position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; background: var(--line); }
.ab-story__line i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: top; }
.ab-ch {
  display: grid; grid-template-columns: 56px minmax(0, 5fr) minmax(0, 6fr); gap: 0 clamp(20px, 3.4vw, 56px); align-items: start;
}
.ab-ch__node {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--ink); border: 1.5px solid var(--grey-3);
  transition: background 0.5s var(--ease-out), border-color 0.5s, color 0.5s, scale 0.5s var(--ease-spring);
}
.ab-ch__node svg { width: 26px; height: 26px; }
.ab-ch.is-on .ab-ch__node { background: var(--pen); border-color: transparent; color: #18181a; scale: 1.08; }
.ab-ch__copy { display: grid; gap: 12px; align-content: start; padding-top: 4px; }
.ab-ch__tag { font-size: 13px; font-weight: 600; color: var(--grey-5); letter-spacing: 0.01em; }
.ab-ch h3 { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.045em; line-height: 1.05; }
.ab-ch p { color: var(--grey-7); font-size: 17px; max-width: 46ch; }
.ab-ch--short .ab-ch__copy { grid-column: 2 / -1; }

.ab-ch__shots { display: flex; align-items: center; justify-content: center; padding: 18px 0 8px; }
.ab-shot {
  position: relative; flex: 0 0 auto; width: var(--w, 30%); margin-left: -5%;
  rotate: var(--r, 0deg); translate: 0 var(--y, 0px);
  text-decoration: none; color: var(--ink);
  transition: rotate 0.6s var(--ease-spring), translate 0.6s var(--ease-spring), scale 0.6s var(--ease-spring);
}
.ab-shot:first-child { margin-left: 0; }
.ab-shot img {
  width: 100%; aspect-ratio: var(--ar, 1.6); object-fit: cover; border-radius: 10px; background: var(--grey-1);
  box-shadow: 0 2px 4px rgb(20 20 30 / 0.08), 0 22px 40px -20px rgb(20 20 30 / 0.5);
}
.ab-shot--paper img { border-radius: 3px; }
/* website fold in a slim browser frame */
.ab-shot--web img { aspect-ratio: 1.6; object-position: top; border-radius: 0 0 10px 10px; }
.ab-shot--web::before {
  content: ""; display: block; height: 14px; border-radius: 10px 10px 0 0; background: #ececef;
  background-image: radial-gradient(circle, #ff6159 2.6px, transparent 3px), radial-gradient(circle, #ffbd2e 2.6px, transparent 3px), radial-gradient(circle, #28c941 2.6px, transparent 3px);
  background-size: 10px 14px; background-repeat: no-repeat; background-position: 8px 0, 18px 0, 28px 0;
}
.ab-shot--logo img { object-fit: contain; padding: 0 16%; background: var(--bg); }
.ab-shot span {
  position: absolute; left: 50%; bottom: -34px; translate: -50% 6px; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, translate 0.35s var(--ease-out);
}
.ab-shot:hover, .ab-shot:focus-visible { z-index: 5; rotate: 0deg; translate: 0 calc(var(--y, 0px) - 12px); scale: 1.06; }
.ab-shot:hover span, .ab-shot:focus-visible span { opacity: 1; translate: -50% 0; }

@media (max-width: 900px) {
  .ab-ch { grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; }
  .ab-ch__node { width: 44px; height: 44px; }
  .ab-ch__node svg { width: 21px; height: 21px; }
  .ab-story__line { left: 21px; top: 22px; bottom: 22px; }
  .ab-ch__shots { grid-column: 2; padding-top: 26px; justify-content: flex-start; }
  .ab-ch p { font-size: 16px; }
}
@media (max-width: 560px) {
  .ab-shot:nth-child(4) { display: none; }
  .ab-shot { width: calc(var(--w, 30%) * 1.25); margin-left: -7%; }
  .ab-shot--web::before { height: 10px; background-size: 8px 10px; background-position: 6px 0, 13px 0, 20px 0; background-image: radial-gradient(circle, #ff6159 1.8px, transparent 2.2px), radial-gradient(circle, #ffbd2e 1.8px, transparent 2.2px), radial-gradient(circle, #28c941 1.8px, transparent 2.2px); }
}

/* ---------- What I do ---------- */
.ab-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ab-tile {
  display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2vw, 28px);
  border-radius: 22px; background: var(--grey-1); border: 1px solid var(--line);
  transition: translate 0.5s var(--ease-spring), background 0.3s;
}
.ab-tile:hover { translate: 0 -6px; }
.ab-tile__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--pen); color: #18181a; margin-bottom: 8px; transition: rotate 0.6s var(--ease-spring); }
.ab-tile:hover .ab-tile__icon { rotate: -10deg; }
.ab-tile__icon svg { width: 27px; height: 27px; }
.ab-tile h3 { font-size: clamp(19px, 1.5vw, 22px); letter-spacing: -0.03em; }
.ab-tile p { font-size: 15px; color: var(--grey-7); line-height: 1.55; }
.ab-tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ab-tags li { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
@media (max-width: 1180px) { .ab-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } .ab-tile { grid-column: span 2; } .ab-tile:nth-child(4) { grid-column: 2 / span 2; } }
@media (max-width: 760px) { .ab-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab-tile, .ab-tile:nth-child(4) { grid-column: auto; } .ab-tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 460px) {
  .ab-tiles { grid-template-columns: 1fr; gap: 10px; }
  .ab-tile { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding: 18px; border-radius: 18px; }
  .ab-tile__icon { grid-row: span 3; width: 48px; height: 48px; margin: 0; }
  .ab-tile__icon svg { width: 23px; height: 23px; }
}

/* ---------- How I work ---------- */
.ab-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.ab-how__head { position: sticky; top: 120px; margin-bottom: 0; }
.ab-ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ab-way { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; align-items: start; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); }
.ab-way__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--grey-3); transition: background 0.4s, border-color 0.4s, color 0.4s; }
.ab-way:hover .ab-way__icon { background: var(--hl-yellow); border-color: transparent; color: #18181a; }
.ab-way__icon svg { width: 24px; height: 24px; }
.ab-way h3 { font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -0.035em; margin-bottom: 6px; padding-top: 10px; }
.ab-way p { color: var(--grey-7); font-size: 16px; max-width: 48ch; }
@media (max-width: 900px) { .ab-how { grid-template-columns: 1fr; } .ab-how__head { position: static; } }
@media (max-width: 560px) { .ab-way { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; } .ab-way__icon { width: 44px; height: 44px; } .ab-way h3 { padding-top: 6px; } }

/* ---------- Brands (a calm text list, no logos) ---------- */
.ab-brands { border-top: 1px solid var(--line); }
.ab-brands__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 12px clamp(20px, 4vw, 60px); padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ab-brands__label { font-size: 14px; font-weight: 600; color: var(--grey-5); }
.ab-brands__names { font-size: clamp(20px, 2.1vw, 30px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.35; }
.ab-brands__names a {
  text-decoration: none; padding: 0 0.1em; margin: 0 -0.1em; border-radius: 0.2em 0.35em 0.25em 0.4em;
  background: linear-gradient(100deg, transparent 0.4%, var(--hl-yellow) 1.2%, var(--hl-yellow) 96%, transparent 99%) 0 62% / 0% 70% no-repeat;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.ab-brands__names a:hover, .ab-brands__names a:focus-visible { background-size: 100% 70%; color: var(--hl-text); }
.ab-sep { font-style: normal; font-weight: 400; color: var(--grey-3); margin: 0 0.1em 0 0.4em; }
@media (max-width: 700px) { .ab-brands__row { grid-template-columns: 1fr; } }

/* ---------- Home: the short About block (index.html #about) ---------- */
.ha__head { max-width: 980px; }
.ha { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.ha__intro { display: grid; gap: clamp(24px, 3vw, 36px); align-content: start; }
.ha__story { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; letter-spacing: -0.01em; color: var(--grey-7); max-width: 42ch; }
.ha-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.ha-fact { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.ha-fact__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--pen); color: #18181a; margin-bottom: 6px; transition: rotate 0.6s var(--ease-spring); }
.ha-fact:hover .ha-fact__icon { rotate: -10deg; }
.ha-fact__icon svg { width: 24px; height: 24px; }
.ha-fact b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.ha-fact > span:last-child { font-size: 14.5px; color: var(--grey-7); line-height: 1.5; }
.ha__more { justify-self: start; display: inline-flex; align-items: baseline; gap: 10px; font-size: clamp(20px, 1.8vw, 25px); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; color: inherit; }
.ha__more i {
  font-style: normal; padding: 0 0.12em; margin: 0 -0.12em; border-radius: 0.2em 0.35em 0.25em 0.4em;
  background: linear-gradient(100deg, transparent 0.4%, var(--hl-blue) 1.2%, var(--hl-blue) 96%, transparent 99%) 0 60% / 0% 72% no-repeat;
  transition: background-size 0.6s var(--ease-out), color 0.3s;
}
.ha__more em { font-style: normal; transition: translate 0.35s var(--ease-spring); }
.ha__more:hover i, .ha__more:focus-visible i { background-size: 100% 72%; color: var(--hl-text); }
.ha__more:hover em { translate: 6px 0; }
@media (max-width: 900px) {
  .ha { display: flex; flex-direction: column; gap: 32px; }
  .ha__intro { display: contents; }
  .ha__more { order: 3; }
}
@media (max-width: 640px) {
  .ha-facts { grid-template-columns: 1fr; gap: 0; }
  .ha-fact { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 16px; padding: 16px 0; }
  .ha-fact__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .ha-fact__icon svg { width: 21px; height: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-status i::after { animation: none; }
  .is-drawable > * { stroke-dashoffset: 0; }
}

/* Dark mode: a hairline so the dark PATCH tile doesn't melt into the page */

/* ---------- Story as a central timeline: line down the middle, chapters alternate sides ---------- */
@media (min-width: 801px) {
  .ab-story { gap: clamp(8px, 2vw, 24px); }
  .ab-story__line { left: 50%; translate: -1px 0; }
  .ab-ch { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 64px); }
  .ab-ch__node { grid-column: 2; grid-row: 1; }
  .ab-ch .ab-ch__copy, .ab-ch--short .ab-ch__copy { grid-row: 1; grid-column: 1; justify-items: end; text-align: right; }
  .ab-ch .ab-ch__copy p { margin-left: auto; }
  .ab-ch:nth-child(even of .ab-ch) .ab-ch__copy { grid-column: 3; justify-items: start; text-align: left; }
  .ab-ch:nth-child(even of .ab-ch) .ab-ch__copy p { margin-left: 0; }
}
