/* ABOUT: same language as the project pages (type, lines, label colors).
   The motion (pictures sliding in, words lighting up, the timeline drawing) is in js/about.js */
.about { max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter) 40px; overflow-x: clip; }
.about h1 {
  margin: 0 0 clamp(32px, 6vw, 80px);
  font-size: clamp(48px, 9vw, 128px); font-weight: 700; line-height: .92; letter-spacing: -0.045em;
}
.about h2 { margin: 0 0 16px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.about p { max-width: 58ch; margin: 0 0 1em; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; }

/* words that light up while you read */
.words .w { color: rgba(18, 20, 50, .16); transition: color .4s; }
.words .w.on { color: var(--ink); }

/* picture + text rows */
.a-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 110px); align-items: center; margin: 0 0 clamp(72px, 14vh, 170px); }
.fx-pic { margin: 0; will-change: transform, opacity; }
.a-lead { margin: 0 !important; font-size: clamp(26px, 3.2vw, 42px) !important; line-height: 1.2 !important; letter-spacing: -0.02em; font-weight: 400; max-width: 22em !important; }
.a-row:nth-of-type(2) .a-text p, .a-body { font-size: clamp(20px, 2vw, 26px); line-height: 1.5; }

.portrait-in { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.portrait-in img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-in { touch-action: pan-y; --r: 0px; --mx: 50%; --my: 50%; }
.portrait-in .p-draw {
  position: absolute; inset: 0; height: 100%; object-fit: cover; background: none; /* the drawing is a white outline on transparent: it only shows inside the circle around the cursor */
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 86%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 86%, transparent 100%);
  pointer-events: none;
}
.portrait-in.has-draw { cursor: crosshair; }

.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: var(--shadow-md); background: var(--surface); }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.ph { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 16px; text-align: center; border-radius: var(--radius-card); color: var(--muted); font-size: 13px; background: repeating-linear-gradient(135deg, #eceef7 0 12px, #f5f6fb 12px 24px); }

/* away from the desk: pictures alternate left and right */
.cv.away { padding-bottom: clamp(40px, 8vh, 90px); }
.shots { display: grid; gap: clamp(48px, 10vh, 120px); margin-top: clamp(40px, 8vh, 90px); }

/* cosplay: the portraits sit a little staggered */

/* timeline: a line that draws while you scroll */
.cv { padding: clamp(40px, 8vh, 90px) 0 clamp(60px, 10vh, 110px); }
.cv h2 { text-align: center; margin-bottom: clamp(32px, 6vh, 64px); }
.tl { position: relative; padding: 4px 0; }

.logo { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); overflow: hidden; }

.logo img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.logo img[hidden] { display: none; }
.logo.has-img b { display: none; }

@media (max-width: 820px) {
  .a-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .fx-pic { max-width: 420px; }
  
  
  
  
  
  .cv h2 { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .words .w { transition: none; } }

/* title fonts */
.about h1 { font-size: clamp(56px, 12vw, 190px); letter-spacing: 0.005em; line-height: .9; }
.about h2 { font-size: clamp(32px, 4.4vw, 56px); letter-spacing: 0.005em; line-height: 1; }

/* timeline: Nohemi SemiBold, one size for all its headings */

/* skills + awards (above the timeline) */
.skills-sec, .awards-sec { padding-bottom: 0; }
.skills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); max-width: 1040px; margin: 0 auto; }
.sk { position: relative; display: grid; place-items: center; aspect-ratio: 1; opacity: 0; transform: translateY(24px) scale(.85); transition: opacity .5s var(--ease) var(--d, 0ms), transform .6s var(--ease) var(--d, 0ms); }
.skills.in .sk { opacity: 1; transform: none; }
.sk img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease); }
.sk::after {
  content: attr(data-name); position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 6px);
  padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; line-height: 1.2; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.skills.in .sk:hover::after, .skills.in .sk:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.sk:hover img, .sk:focus-visible img { transform: translateY(-4px) rotate(-3deg) scale(1.06); }
.sk:focus-visible { outline: none; }
.sk.ph { border-radius: 16px; font-size: 11px; color: var(--muted); background: repeating-linear-gradient(135deg, #eceef7 0 10px, #f5f6fb 10px 20px); }
.awards { display: grid; gap: 20px; max-width: 640px; margin: 0 auto; }

@media (max-width: 820px) { .skills { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px) { .skills { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; } }   /* 10 skills: 5 + 5 on a phone */
@media (prefers-reduced-motion: reduce) { .sk { transition: none; opacity: 1; transform: none; } }

.shot-in img { aspect-ratio: auto; height: auto; box-shadow: none; border-radius: 0; }
.shot-in img.p-draw { position: absolute; height: 100%; }
.shot-in .ph { border-radius: 0; }

/* room for the legend on the left (wide screens) */
@media (min-width: 1360px) {
  .about > *:not(h1):not(.toc):not(.anchor) { margin-left: 190px; }   /* the title lines up with Work; the content makes room for the legend */
}

/* first picture: bigger, so the next row is not peeking in yet */
.a-row:first-of-type { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-bottom: clamp(120px, 34vh, 360px); }
@media (max-width: 760px) { .a-row:first-of-type { grid-template-columns: 1fr; } }

/* education / experience / awards: quiet editorial list (hairlines, big years, logo on the right) */
.cv h2 { text-align: left; }

@media (max-width: 700px) {
  
  
  
}

@media (max-width: 760px) { .a-row:first-of-type { gap: 52px; } }   /* phone: more space between the picture and the text under it */

/* phone: hints that the CV chart can be swiped sideways */
.chart .ch-swipe, .ch-swipe { display: none; margin: 8px 0 0; font-size: var(--fs-small, 14px); line-height: 1.3; color: var(--muted, #5b5f82); }
.chart .ch-swipe.on, .ch-swipe.on { display: block; animation: swipeNudge 1.6s ease-in-out infinite; }
@keyframes swipeNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .ch-swipe.on { animation: none; } }
@media (max-width: 760px) { .a-row:first-of-type { gap: 84px; } }   /* phone: air between the picture and the text under it */
@media (max-width: 760px) { .a-row:first-of-type { gap: calc(89vw - 50px); margin-bottom: calc(89vw + 50px); } }   /* phone: as much space between the picture and the dark box as the dark box is tall, the text in the middle */
