/* ============================================================
   About — Figma 1436:260: a fixed sidebar menu (bio · skills ·
   resume · contact, current section orange) beside a full-height
   hairline, with the chapters stacked VERTICALLY to its right —
   scroll down to move, the menu tracks. Content centres on the
   CONTENT AXIS --ax = midline of [247px … right edge], width-proof.
   ============================================================ */

.about-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--t-stage) ease;
}
.about-stage.revealed { opacity: 1; }

/* ---- the sidebar (Figma 1436:260): a full-height hairline at 247 that
   DRAWS itself on arrival (the line-art system's habit), icon+word menu
   below the house chip. ONE flat chip — the home pill's family, turned
   vertical — glides between the words, resting on the current chapter;
   an orange stitch rides the hairline showing how deep you've read ---- */
.about-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 247px;
  width: 1px;
  background: #d9d9d9;
  z-index: 4;
  pointer-events: none;
  transform: scaleY(0);                 /* pen at the top, waiting */
  transform-origin: top;
  transition: transform 0.9s var(--ease-draw) 0.1s;
}
.about-stage.revealed .about-divider { transform: none; }

/* the reading thread — about.js maps the chapter scroller onto --p, and
   this orange ink POURS down the hairline from the top: a 56px stitch on
   arrival, the full line inked by the time the last chapter is reached */
.about-thread {
  position: absolute;
  top: 0;
  left: 246px;
  width: 3px;
  height: calc(56px + (100% - 56px) * var(--p, 0));
  border-radius: 1.5px;
  background: var(--orange);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease 0.9s;   /* appears once the line is drawn */
}
.about-stage.revealed .about-thread { opacity: 1; }

/* left edge sits on the house chip's 31px, and 17.5px item padding puts
   the 26px icons' centres on the house glyph's axis (x 61.5) */
.about-menu {
  position: absolute;
  top: 133px;
  left: 31px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}
/* the one chip: sized and placed by about.js to whichever word it's
   under. First child, no z-index — it paints BEHIND the words, so the
   grey never touches the glyphs and the orange stays vivid */
.menu-glass {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--gw, 0px);
  height: var(--gh, 44px);
  translate: 0 var(--gt, 0px);
  border-radius: 20px;
  background: rgba(253, 143, 59, 0.13);   /* the sitewide warm hover wash */
  border: 1px solid rgba(253, 143, 59, 0.35);
  opacity: 0;
  pointer-events: none;
}
/* transitions arrive one frame AFTER the first placement, so the chip
   materialises on the current word instead of flying in from 0,0 */
.menu-glass.is-ready {
  transition: translate var(--t-glide) var(--ease-glide),
              width var(--t-glide) var(--ease-glide),
              height var(--t-glide) var(--ease-glide),
              background-color var(--t-micro) ease, border-color var(--t-micro) ease,
              opacity 0.45s ease 0.4s;
}
.about-stage.revealed .menu-glass.is-ready { opacity: 1; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 8px 17.5px;
  border-radius: 20px;
  font-size: 28px;
  color: #5e5e5e;
  text-decoration: none;
  /* entrance stagger only — color still snaps at 0.18s on hover */
  --d: 0.3s;
  transition: color var(--t-micro) ease,
              opacity var(--t-fade) ease var(--d),
              translate var(--t-rise) var(--ease-rise) var(--d);
}
.about-stage:not(.revealed) .menu-item {
  opacity: 0;
  translate: -14px 0;
}
.about-menu a:nth-of-type(2) { --d: 0.37s; }
.about-menu a:nth-of-type(3) { --d: 0.44s; }
.about-menu a:nth-of-type(4) { --d: 0.51s; }
.menu-item svg { flex: none; }
.menu-item:hover,
.menu-item:focus-visible,
.menu-item.is-current,
.menu-item[aria-current='page'] { color: var(--orange); }
/* while the cursor is on some other word, the resting current chapter
   steps aside so only one word is lit (the site-nav's manner) */
.about-menu:hover .menu-item.is-current:not(:hover) { color: var(--ink); }

/* on hover the little icon REDRAWS itself — the craft cards' pen,
   miniaturised (every shape carries pathLength="1"); later shapes wait
   their turn like the cards' s2/s3 strokes */
.menu-item:hover svg :is(path, rect),
.menu-item:focus-visible svg :is(path, rect) {
  stroke-dasharray: 1;
  animation: craft-redraw 0.7s var(--ease-draw) both;
}
.menu-item:hover svg g > :nth-child(2),
.menu-item:focus-visible svg g > :nth-child(2) { animation-delay: 0.1s; }
.menu-item:hover svg g > :nth-child(3),
.menu-item:focus-visible svg g > :nth-child(3) { animation-delay: 0.2s; }
.menu-item:hover svg g > :nth-child(4),
.menu-item:focus-visible svg g > :nth-child(4) { animation-delay: 0.3s; }

/* ---- the chapter stack: one screen per section, free scrolling ---- */
.about-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.about-scroll::-webkit-scrollbar { display: none; }
.about-slide {
  position: relative;
  flex: none;
  width: 100%;
  height: 100%;
  /* midline of the content area right of the 247px divider */
  --ax: calc(50% + 123.5px);
}

/* ---- per-slide title pair (the site standard) ---- */
.about-title {
  position: absolute;
  top: 40px;
  left: var(--ax);
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.about-title h2 {
  font-size: 28px;
  font-weight: 400;
  color: #5e5e5e;
}
.about-title p {
  font-size: 28px;
  color: rgba(0, 0, 0, 0.3);
}

/* ---- slide artifacts rise softly the first time they snap in (the
   figure/cards keep their own transforms, so the lift rides a wrapper-
   free opacity+translate pair via these shared selectors) ---- */
.about-title, .about-portrait, .story-bio,
.slide-link, .compose, .social-row {
  transition: opacity var(--t-fade) ease, translate var(--t-rise) var(--ease-rise);
}
.about-slide:not(.revealed) :is(.about-title, .about-portrait, .story-bio,
.slide-link, .compose, .social-row) {
  opacity: 0;
  translate: 0 16px;
}
/* the card grids arrive one card at a time — each card rides its own --n
   (set inline) so the row deals itself left to right */
.about-slide:not(.revealed) :is(.xp-row, .craft-card) {
  opacity: 0;
  translate: 0 18px;
}

/* ============================================================
   01 · story — the full bio beside the hedcut, which watches
   you read it. Group centred: text 480 + 80 gap + face 330.
   ============================================================ */
.story-bio {
  position: absolute;
  top: 158px;
  left: calc(var(--ax) - 445px);
  width: 480px;
  font-size: 20px;
  line-height: 30px;
  color: #5e5e5e;
}
.story-bio p + p { margin-top: 24px; }
.story-bio strong {
  font-weight: 400;                   /* emphasis by INK, not weight */
  color: #404040;
  /* an orange HIGHLIGHTER sweep behind the key phrases (the case studies'
     manner — replaced the old 2px underline); drawn left → right in
     reading order once the slide settles (delays below) */
  background: linear-gradient(rgba(253, 143, 59, 0.3), rgba(253, 143, 59, 0.3))
              no-repeat left 78% / 0% 0.58em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-size 0.55s var(--ease-draw) var(--ud, 0.6s);
}
.about-slide.revealed .story-bio strong { background-size: 100% 0.58em; }
.story-bio p:nth-of-type(1) strong:nth-of-type(1) { --ud: 0.6s; }
.story-bio p:nth-of-type(1) strong:nth-of-type(2) { --ud: 0.9s; }
.story-bio p:nth-of-type(2) strong:nth-of-type(1) { --ud: 1.2s; }
.story-bio p:nth-of-type(2) strong:nth-of-type(2) { --ud: 1.5s; }

/* the signature closes the letter: ink strokes draw themselves after
   the underlines (T → i → go), the orange i-dot lands last; hovering
   makes the pen sign it again */
.sig {
  position: absolute;
  top: 655px;
  left: calc(var(--ax) - 430px);
  width: 190px;
  height: 84px;
  transform: rotate(-3deg);
}
.sig path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s var(--ease-draw);
}
.sig .sig-s1 { transition-delay: 1.7s; }
.sig .sig-s2 { transition-delay: 2s; }
.sig .sig-s3 { transition-delay: 2.3s; }
.sig .sig-dot {
  fill: var(--orange);
  opacity: 0;
  transition: opacity 0.3s ease 2.75s;
}
.about-slide.revealed .sig path { stroke-dashoffset: 0; }
.about-slide.revealed .sig .sig-dot { opacity: 1; }
.sig:hover path {
  animation: craft-redraw 0.8s var(--ease-draw) both;
}
.sig:hover .sig-s2 { animation-delay: 0.2s; }
.sig:hover .sig-s3 { animation-delay: 0.4s; }
.sig:hover .sig-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-pop var(--t-pop) var(--ease-pop) 0.75s both;
}
.about-portrait {
  position: absolute;
  top: 174px;
  left: calc(var(--ax) + 115px);
  width: 330px;
  height: 421px;
  cursor: pointer;                    /* click the face — it takes a spin */
}
.about-portrait.is-spun {
  animation: face-spin 0.9s var(--ease-glide);
}
@keyframes face-spin {
  from { transform: perspective(900px) rotateY(0turn); }
  to   { transform: perspective(900px) rotateY(1turn); }
}
.about-portrait canvas,
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.about-portrait img { object-fit: contain; }

/* a quiet cue that three more chapters wait below — fades in after the
   bio has settled, bows out on the first scroll */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: var(--ax);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 13.25px;
  color: rgba(0, 0, 0, 0.42);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease 1.4s;
}
.about-slide.revealed .scroll-hint { opacity: 1; }
.about-stage.is-scrolled .scroll-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.scroll-hint svg { animation: hint-bob 2.2s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 4px; }
}

/* ============================================================
   Line-art system — thin ink strokes that DRAW THEMSELVES when a
   slide arrives (.revealed via the IO): solid paths carry
   pathLength="1" and slide from dashoffset 1 → 0; dotted guides
   and dots fade in after. The hedcut's engraving, generalised.
   ============================================================ */
.stroke {
  fill: none;
  stroke: #5e5e5e;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease-draw);
}
.stroke.s2 { transition-delay: 0.25s; }
.stroke.s3 { transition-delay: 0.5s; }
.guide {
  fill: none;
  stroke: #d9d9d9;
  stroke-width: 1.2;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.5s ease 0.9s;
}
.dot {
  fill: #5e5e5e;
  opacity: 0;
  transition: opacity 0.4s ease 1s;
}
.dot.hollow {
  fill: var(--bg);
  stroke: #5e5e5e;
  stroke-width: 1.2;
}
.about-slide.revealed .stroke { stroke-dashoffset: 0; }
.about-slide.revealed .guide,
.about-slide.revealed .dot { opacity: 1; }

/* ============================================================
   resume — the LEDGER: four postings as ONE ruled typographic
   column, newest first (no cards; the craft grid keeps those).
   The rows share a fixed height: the hovered/focused row
   BREATHES OPEN via flex-grow while the others compress, so the
   column never changes size. Opening reveals the summary and
   wakes the employer's mark from grey to colour; each row's
   hairline draws itself when the chapter arrives.
   ============================================================ */
.xp-ledger {
  position: absolute;
  top: 140px;
  left: var(--ax);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  width: 880px;
  height: 460px;
}
.xp-row {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 24px 18px 0;
  transition: flex-grow 0.5s var(--ease-rise),
              opacity var(--t-fade) ease calc(var(--n) * 0.09s),
              translate var(--t-rise) var(--ease-rise) calc(var(--n) * 0.09s);
}
.xp-row:hover,
.xp-row:focus-visible { flex-grow: 2; }
/* the rules: a hairline under every row (plus one over the first)
   that draws itself left → right on reveal, top to bottom */
.xp-row::after,
.xp-row:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #e3e3e3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-draw)
              calc(0.2s + var(--n) * 0.12s);
}
.xp-row:first-child::before { top: 0; bottom: auto; transition-delay: 0.1s; }
.about-slide.revealed .xp-row::after,
.about-slide.revealed .xp-row:first-child::before { transform: scaleX(1); }

/* the margin index — quiet numerals that warm when their row opens */
.xp-num {
  flex: none;
  width: 34px;
  padding-top: 6px;
  font-size: 13.25px;
  color: rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.xp-row:hover .xp-num,
.xp-row:focus-visible .xp-num { color: var(--orange); }

.xp-main { flex: 1; min-width: 0; }
.xp-role {
  font-size: 22px;
  line-height: 28px;
  color: #404040;
}
.xp-co {
  margin-top: 4px;
  font-size: 15px;
  color: #767676;                    /* quiet locator label under the role */
}
/* the summary waits below the fold of the closed row and rises in once
   the row opens — the readable body line (mid grey, not the faint
   caption tone), so "what I did" actually reads */
.xp-sum {
  margin-top: 15px;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 23px;
  color: #5e5e5e;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.25s ease,
              translate 0.35s var(--ease-rise);
}
.xp-row:hover .xp-sum,
.xp-row:focus-visible .xp-sum {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.12s;
}

/* the right margin: date chip over location, then the mark */
.xp-when {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  padding-top: 3px;
}
.xp-date {
  display: inline-block;
  padding: 3px 9px;
  font-size: 13.25px;
  color: #5e5e5e;
  background: rgba(0, 0, 0, 0.03);
  border: 0.663px solid #d9d9d9;
  border-radius: 6.625px;
  white-space: nowrap;
}
.xp-loc {
  font-size: 13.25px;
  color: rgba(0, 0, 0, 0.42);
  white-space: nowrap;
}
/* the employer's mark — sleeping in grey until its row is visited */
.xp-logo {
  flex: none;
  width: 96px;
  height: 46px;
  margin-top: 4px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 0.25s ease, opacity 0.25s ease,
              scale 0.4s var(--ease-spring);
}
.xp-row:hover .xp-logo,
.xp-row:focus-visible .xp-logo {
  filter: none;
  opacity: 1;
  scale: 1.12;
}
.slide-link {
  position: absolute;
  top: 618px;
  left: var(--ax);
  transform: translateX(-50%);
  font-size: 16px;
  color: #5e5e5e;
  text-decoration: none;
  transition: color var(--t-micro) ease;
}
.slide-link:hover,
.slide-link:focus-visible { color: var(--orange); }

/* the resume chapter carries TWO doors on the line the others give one —
   the wrapper takes over the positioning so the pair centres as a unit */
.slide-links {
  position: absolute;
  top: 618px;
  left: var(--ax);
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 28px;
  white-space: nowrap;
}
.slide-links .slide-link {
  position: static;
  transform: none;
}

/* ============================================================
   skills — four illustration cards, drawn in thin ink
   ============================================================ */
.craft-grid {
  position: absolute;
  top: 164px;
  left: var(--ax);
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
}
.craft-card {
  width: 240px;
  height: 460px;
  padding: 26px 20px;
  background: rgba(233, 233, 233, 0.23);
  border: 2px solid #eeeded;
  border-radius: 31px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-lift) var(--ease-lift),
              border-color var(--t-micro) ease, box-shadow var(--t-micro) ease,
              opacity var(--t-fade) ease calc(var(--n) * 0.09s),
              translate var(--t-rise) var(--ease-rise) calc(var(--n) * 0.09s);
}
.craft-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.08),
              0 1px 2px rgba(0, 0, 0, 0.06);
}
.craft-illo {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.craft-illo svg {
  width: 160px;
  height: 160px;
}
/* on hover the illustration REDRAWS itself — the page's draw-in replayed
   under the cursor: ink strokes wipe and re-flow in sequence, the dotted
   construction guides march while the pen works, and the anchor dots
   pop back in once the ink has landed */
.craft-card:hover .craft-illo .stroke {
  animation: craft-redraw 0.9s var(--ease-draw) both;
}
.craft-card:hover .craft-illo .stroke.s2 { animation-delay: 0.12s; }
.craft-card:hover .craft-illo .stroke.s3 { animation-delay: 0.24s; }
.craft-card:hover .craft-illo .guide {
  animation: guide-march 1.4s linear infinite;
}
.craft-card:hover .craft-illo .dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: dot-pop var(--t-pop) var(--ease-pop) 0.5s both;
}
.craft-card:hover .craft-illo .dot.hollow { animation-delay: 0.66s; }
@keyframes craft-redraw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes guide-march {
  to { stroke-dashoffset: -14; }        /* two 2-on/5-off periods */
}
@keyframes dot-pop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.45); }
  100% { opacity: 1; transform: scale(1); }
}
.craft-label {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.42);
}
.craft-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* the ai suggestion chip, small — each one pops in with a little
   overshoot once its card's illustration has drawn (delays ride the
   card's --n plus the chip's own place in line) ---- */
.craft-chip {
  padding: 5px 12px;
  font-size: 14px;
  color: #5e5e5e;
  background: rgba(233, 233, 233, 0.48);
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  white-space: nowrap;
  transition: background-color var(--t-micro) ease, color var(--t-micro) ease,
              border-color var(--t-micro) ease,
              opacity 0.4s ease var(--cd, 0.9s),
              translate 0.4s var(--ease-pop) var(--cd, 0.9s);
}
.about-slide:not(.revealed) .craft-chip { opacity: 0; translate: 0 8px; }
.craft-chip:nth-child(1) { --cd: calc(var(--n) * 0.09s + 0.75s); }
.craft-chip:nth-child(2) { --cd: calc(var(--n) * 0.09s + 0.83s); }
.craft-chip:nth-child(3) { --cd: calc(var(--n) * 0.09s + 0.91s); }
.craft-chip:nth-child(4) { --cd: calc(var(--n) * 0.09s + 0.99s); }
.craft-chip:nth-child(5) { --cd: calc(var(--n) * 0.09s + 1.07s); }
.craft-chip:hover {
  background: rgba(253, 143, 59, 0.13);   /* the sitewide warm hover wash */
  border-color: rgba(253, 143, 59, 0.35);
  color: var(--orange);
}

/* ============================================================
   04 · contact — a small white LETTER: to-line, an open page to
   write on, a send chip. Kept deliberately unlike the ai page's
   grey chat panel.
   ============================================================ */
.compose {
  position: absolute;
  top: 200px;
  left: var(--ax);
  margin-left: -320px;
  width: 640px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.17);
  border-radius: 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  transition: border-color var(--t-micro) ease, box-shadow var(--t-micro) ease,
              opacity var(--t-fade) ease, translate var(--t-rise) var(--ease-rise);
}
.compose:focus-within {
  border-color: rgba(0, 0, 0, 0.42);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(0, 0, 0, 0.06);
}
.compose-to {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.to-label {
  min-width: 38px;                    /* to/from share a column, pills align */
  font-size: 16px;
  color: rgba(0, 0, 0, 0.42);
}
.to-chip {
  padding: 3px 10px;
  font-size: 13.25px;
  color: #5e5e5e;
  background: rgba(0, 0, 0, 0.03);
  border: 0.663px solid #d9d9d9;
  border-radius: 6.625px;
}
.compose-from {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}
.from-input {
  width: 216px;
  padding: 3px 10px;
  font: inherit;
  font-size: 13.25px;
  color: #5e5e5e;
  background: rgba(0, 0, 0, 0.03);
  border: 0.663px solid #d9d9d9;
  border-radius: 6.625px;
  outline: none;
  caret-color: var(--orange);
  transition: border-color var(--t-micro) ease;
}
.from-input:focus { border-color: rgba(0, 0, 0, 0.17); }
.from-input::placeholder { color: #7c7c7c; }
/* letterhead rule — the line-art guides' dash rhythm (2 on, 5 off),
   drawn in CSS so the header and the meat of the letter part ways */
.compose-rule {
  height: 1px;
  margin-top: 18px;
  background-image: repeating-linear-gradient(90deg,
    #d9d9d9 0 2px, transparent 2px 7px);
}
.compose-body {
  display: block;
  width: 100%;
  height: 190px;
  margin-top: 16px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font: inherit;
  font-size: 20px;
  line-height: 30px;
  color: #404040;
  caret-color: var(--orange);
}
.compose-body::placeholder { color: #7c7c7c; }
.compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #eeeded;
}
.compose-hint {
  font-size: 13.25px;
  color: rgba(0, 0, 0, 0.42);
  transition: color var(--t-micro) ease;
}
.compose-hint.is-sent { color: var(--orange); }
.compose-hint.is-error { color: var(--error); }
.compose-send {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 22px;
  font: inherit;
  font-size: 18.6px;
  color: #5e5e5e;
  background: rgba(233, 233, 233, 0.48);
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  cursor: pointer;
  transition: transform var(--t-lift) var(--ease-lift),
              background-color var(--t-micro) ease, color var(--t-micro) ease,
              border-color var(--t-micro) ease, box-shadow var(--t-micro) ease;
}
.compose-send:hover:not([disabled]),
.compose-send:focus-visible:not([disabled]) {
  background: rgba(253, 143, 59, 0.13);   /* the sitewide warm hover wash */
  border-color: rgba(253, 143, 59, 0.35);
  color: var(--orange);
  transform: translateY(-1.5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06),
              0 0.5px 1px rgba(0, 0, 0, 0.05);
}
.compose-send[disabled] {
  cursor: default;
  color: rgba(0, 0, 0, 0.42);
}
/* on a successful send the little arrow LAUNCHES — up and out of the
   chip, then slips back in from below (about.js flags the button) */
.compose-send.is-sent-anim svg {
  animation: send-fly 0.8s var(--ease-draw);
}
@keyframes send-fly {
  0%   { translate: 0 0;     opacity: 1; }
  42%  { translate: 0 -26px; opacity: 0; }
  50%  { translate: 0 14px;  opacity: 0; }
  100% { translate: 0 0;     opacity: 1; }
}

/* ---- elsewhere: bare monochrome marks that warm on hover ---- */
.social-row {
  position: absolute;
  top: 648px;
  left: var(--ax);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
}
.social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ababab;
  transition: color var(--t-micro) ease,
              translate var(--t-lift) var(--ease-lift);
}
/* the app's name whispers in under the mark while it's lit */
.social::after {
  content: attr(aria-label);
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.42);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-micro) ease;
}
.social:hover::after,
.social:focus-visible::after { opacity: 1; }
.social:hover,
.social:focus-visible {
  translate: 0 -2px;
}
/* each mark wakes up in its own brand ink */
.social-li:hover, .social-li:focus-visible { color: #0a66c2; }
.social-gh:hover, .social-gh:focus-visible { color: #181717; }
.social-gr:hover, .social-gr:focus-visible { color: #382110; }
.social-lb circle { transition: fill var(--t-micro) ease; }
.social-lb:hover .lb-a, .social-lb:focus-visible .lb-a { fill: #ff8000; }
.social-lb:hover .lb-b, .social-lb:focus-visible .lb-b { fill: #00e054; }
.social-lb:hover .lb-c, .social-lb:focus-visible .lb-c { fill: #40bcf4; }

/* ============================================================
   MOBILE (≤700px) — the chapter deck unrolls into one flowing
   scroll: sidebar chrome retired, every slide becomes a stacked,
   centred column at natural height. The desktop geometry above
   is untouched. js/about.js swaps wheel-paging for a viewport
   observer under the same breakpoint.
   ============================================================ */
@media (max-width: 700px) {
  .about-stage {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  /* the desktop section sidebar retires on mobile; the shared site-nav
     bottom bar (styles.css) is the mobile nav now */
  .about-divider, .about-thread, .about-menu { display: none; }
  .about-scroll {
    position: static;
    inset: auto;
    display: block;
    overflow: visible;
  }
  .about-slide {
    height: auto;
    padding: 30px 20px 42px;
    --ax: 50%;
  }
  .about-slide:first-of-type { padding-top: 54px; }
  /* the last chapter clears the shared site-nav bottom bar (styles.css) */
  .about-slide:last-of-type { padding-bottom: 116px; }

  .about-title {
    position: static;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 0;
    margin-bottom: 20px;
    text-align: center;
  }
  .about-title h2 { font-size: 22px; }
  .about-title p { font-size: 16px; }
  .scroll-hint { display: none; }

  /* 01 · bio — letter, signature, then the face, stacked */
  .story-bio {
    position: static;
    width: auto;
    max-width: 460px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 26px;
  }
  .story-bio p + p { margin-top: 18px; }
  .sig {
    position: static;
    display: block;
    margin: 16px auto 0;
  }
  .about-portrait {
    position: relative;                /* in flow, but still the canvas's box */
    top: auto;
    left: auto;
    width: 240px;
    height: 306px;                     /* keeps the 330:421 face ratio */
    margin: 18px auto 0;
  }

  /* 02 · craft — the four ink cards deal into a centred column */
  .craft-grid {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .craft-card {
    width: min(300px, 100%);
    height: auto;
    padding: 22px 20px 24px;
  }
  .craft-illo { height: 160px; }
  .craft-illo svg { width: 140px; height: 140px; }

  /* 03 · experience — the ledger unrolls: every row open, no
     accordion, the rules already drawn */
  .xp-ledger {
    position: static;
    transform: none;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
  }
  .xp-row {
    flex: none;
    display: block;
    overflow: visible;
    padding: 18px 2px 20px;
  }
  .xp-num { display: none; }
  .xp-when {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding: 0;
    margin-bottom: 8px;
  }
  .xp-role { font-size: 19px; line-height: 25px; }
  .xp-sum {
    opacity: 1;
    translate: none;
    margin-top: 10px;
    transition: none;
  }
  .xp-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 120px;
    margin-top: 14px;
    filter: none;
    opacity: 1;
  }
  .slide-link {
    position: static;
    display: block;
    transform: none;
    margin-top: 26px;
    text-align: center;
  }
  /* the resume pair stacks on a phone — one door per line, centred */
  .slide-links {
    position: static;
    transform: none;
    display: block;
    white-space: normal;
  }
  .slide-links .slide-link + .slide-link { margin-top: 14px; }

  /* 04 · contact — the letter fills the width, socials beneath */
  .compose {
    position: static;
    margin: 0 auto;                    /* retires the -320px axis shift */
    width: 100%;
    max-width: 420px;
    padding: 20px 22px;
  }
  .from-input {
    width: min(216px, 100%);
    font-size: 16px;                   /* ≥16px so iOS doesn't zoom the page */
  }
  .compose-body {
    height: 160px;
    font-size: 17px;
    line-height: 26px;
  }
  .social-row {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-scroll { scroll-behavior: auto; }
  .about-title, .about-portrait, .story-bio,
  .xp-row, .craft-card, .craft-chip, .slide-link,
  .compose, .social-row {
    transition: opacity 0.25s ease;
    translate: none;
  }
  /* the ledger opens instantly, rules pre-drawn, summary just fades */
  .xp-row::after, .xp-row:first-child::before {
    transition: none;
    transform: scaleX(1);
  }
  .xp-sum { transition: opacity 0.25s ease; translate: none; }
  .xp-logo { transition: filter 0.25s ease, opacity 0.25s ease; }
  .xp-row:hover .xp-logo, .xp-row:focus-visible .xp-logo { scale: none; }
  .about-portrait { cursor: default; }
  .about-portrait.is-spun { animation: none; }
  .compose-send.is-sent-anim svg { animation: none; }
  .story-bio strong { transition: none; background-size: 100% 0.58em; }
  .sig path { transition: none; stroke-dashoffset: 0; }
  .sig .sig-dot { transition: none; opacity: 1; }
  .sig:hover path, .sig:hover .sig-dot { animation: none; }
  .craft-chip:hover { transform: none; }
  .compose-send:hover, .compose-send:focus-visible { transform: none; }
  .social:hover, .social:focus-visible { translate: none; }
  .stroke { transition: none; stroke-dashoffset: 0; }
  .guide, .dot { transition: none; opacity: 1; }
  .craft-card:hover .craft-illo :is(.stroke, .guide, .dot) { animation: none; }
  .about-divider { transition: none; transform: none; }
  .about-thread { transition: opacity 0.25s ease; }
  .menu-item { transition: color var(--t-micro) ease; }
  .about-stage:not(.revealed) .menu-item { opacity: 1; translate: none; }
  .menu-glass.is-ready { transition: opacity 0.25s ease; }
  .menu-item:hover svg :is(path, rect),
  .menu-item:focus-visible svg :is(path, rect) { animation: none; }
  .scroll-hint { transition: opacity 0.25s ease; }
  .scroll-hint svg { animation: none; }
}
