/* About section previews for v7. Idea 1 (.about-a) and idea 2 (.about-b). Light theme, v7 type and colour. */
.ptag { position: relative; padding-left: 22px; color: var(--ink); }
.ptag::before { content: ""; position: absolute; left: 0; top: .2em; width: 10px; height: 10px; border-radius: 50%; background: var(--peri); box-shadow: 0 0 0 4px rgba(122, 136, 255, .2); }
.hl { font-style: normal; background: linear-gradient(110deg, #5b8cff, #7a5cff 55%, #ff5fa8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- idea 1 ---------- */
.about-a { position: relative; background: var(--light); padding: clamp(120px, 18vh, 200px) clamp(20px, 3vw, 48px) clamp(90px, 12vh, 140px); }
.aa-grid { display: grid; grid-template-columns: 32vw 1fr; align-items: start; }
.aa-left { position: sticky; top: 20vh; padding: 0 4vw 0 1vw; }
.aa-card { position: relative; margin: 0; background: #fff; padding: 12px 12px 16px; border-radius: 24px; transform: rotate(-4deg); box-shadow: 0 30px 60px rgba(40, 50, 140, .16); max-width: 380px; }
.aa-card img { width: 100%; height: auto; border-radius: 16px; display: block; }
.aa-tape { position: absolute; left: 50%; top: -16px; transform: translateX(-50%) rotate(3deg); white-space: nowrap; padding: 9px 16px; border-radius: 6px;
  background: rgba(255, 143, 196, .88); color: var(--ink); box-shadow: 0 6px 14px rgba(255, 95, 168, .25); }
.aa-right .ptag { margin-bottom: 4vh; }
.aa-lead { position: relative; font-family: var(--cab); font-weight: 500; font-size: clamp(28px, 3vw, 54px); line-height: 1.07; letter-spacing: -.02em; color: var(--ink); margin-bottom: 3.2vw; }
.aa-lead--first { text-indent: 14vw; }
.aa-lead--first::before { content: "→"; position: absolute; left: 0; top: 0; text-indent: 0; color: var(--peri); }
.aa-lead .w { opacity: .18; }
.aa-pitrow { display: grid; grid-template-columns: 32vw 1fr; align-items: end; margin-top: 4vh; }
.aa-ai { padding: 0 4vw 2vh 1vw; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.55; color: #4a4f6b; }
.aa-pit { position: relative; height: clamp(340px, 46vh, 480px); border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #ffffff, #e9edff);
  box-shadow: inset 0 0 0 1px rgba(122, 136, 255, .15); touch-action: pan-y; }
.aa-bubs { list-style: none; position: absolute; inset: 0; }
.bub { position: absolute; left: 0; top: 0; padding: .7em 1.35em; border-radius: 999px; white-space: nowrap; font-family: var(--cab); font-weight: 700; font-size: clamp(18px, 1.55vw, 28px);
  letter-spacing: -.01em; user-select: none; cursor: grab; will-change: transform; visibility: hidden;
  box-shadow: inset 0 -10px 18px rgba(20, 20, 80, .14), inset 0 8px 14px rgba(255, 255, 255, .55), 0 14px 26px rgba(40, 50, 140, .18); }
.bub::before { content: ""; position: absolute; top: 12%; left: 14%; width: 38%; height: 26%; border-radius: 999px; background: rgba(255, 255, 255, .6); filter: blur(1.5px); pointer-events: none; }
.bub:active { cursor: grabbing; }
.b0 { background: #9cc7ff; color: var(--ink); }
.b1 { background: #7a88ff; color: #fff; }
.b2 { background: #ff9ccc; color: var(--ink); }
.b3 { background: #ffffff; color: var(--ink); }
.b4 { background: #2b3160; color: #b9d6ff; }
.aa-hint { position: absolute; right: 22px; top: 18px; color: var(--peri); opacity: .8; }
/* without physics (reduced motion), the bubbles simply sit in a wrapped row */
.aa-pit.static { height: auto; padding: 28px; }
.aa-pit.static .aa-bubs { position: static; display: flex; flex-wrap: wrap; gap: 12px; }
.aa-pit.static .bub { position: relative; visibility: visible; cursor: default; }
.aa-pit.static .aa-hint { display: none; }

/* ---------- idea 2 ---------- */
.about-b { position: relative; background: var(--light); }
.ab-pin { height: 280vh; position: relative; }
.ab-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 0 8vw; overflow: hidden; }
.ab-stage .ab-tag { position: absolute; left: clamp(20px, 3vw, 48px); top: 18vh; z-index: 2; }
.ab-blob { position: absolute; left: 0; top: 0; width: 36vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 0; opacity: .55;
  background: radial-gradient(closest-side at 38% 42%, rgba(143, 191, 255, .95), rgba(143, 191, 255, 0)), radial-gradient(closest-side at 64% 56%, rgba(255, 143, 196, .85), rgba(255, 143, 196, 0)), radial-gradient(closest-side, rgba(122, 136, 255, .6), rgba(122, 136, 255, 0));
  will-change: transform; }
.ab-text { position: relative; z-index: 1; max-width: 1400px; font-family: var(--cab); font-weight: 600; font-size: clamp(32px, 4.1vw, 78px); line-height: 1.08; letter-spacing: -.02em; color: #c9cde2; }
.ab-text .w { transition: color .35s; }
.ab-text .w.lit { background-image: linear-gradient(110deg, #5b8cff, #7a5cff 50%, #ff5fa8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-after { display: grid; grid-template-columns: minmax(260px, 30vw) 1fr; gap: 6vw; align-items: center; padding: 6vh clamp(20px, 8vw, 140px) 4vh; }
.ab-circle { clip-path: circle(0% at 50% 50%); border-radius: 28px; overflow: hidden; }
.ab-circle img { width: 100%; height: auto; display: block; }
.ab-lead { font-family: var(--cab); font-weight: 500; font-size: clamp(26px, 2.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.ab-lead .w { opacity: .18; }
.ab-chip { display: inline-block; margin: 3vh 0 2vh; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(122, 136, 255, .3); color: var(--ink); }
.ab-ai { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.55; color: #4a4f6b; max-width: 36em; }
.ab-curve { padding: 2vh 0 10vh; overflow: hidden; }
.ab-curve svg { width: 100%; height: auto; display: block; overflow: visible; }
.ab-skills { font-family: var(--cab); font-weight: 700; font-size: 60px; letter-spacing: -.01em; fill: url(#skillGrad); }

@media (max-width: 760px) {
  .aa-grid, .aa-pitrow { grid-template-columns: 1fr; }
  .aa-left { position: relative; top: 0; padding: 0 10vw 8vh; }
  .aa-lead--first { text-indent: 18vw; }
  .aa-ai { padding: 0 0 3vh; }
  .ab-after { grid-template-columns: 1fr; }
  .ab-text { font-size: 30px; }
  .ab-skills { font-size: 80px; }
}

.about-a .aa-right .ptag { position: relative; }

/* idea 1, revised: no box. The skills pile up along the bottom edge of the section, full width. */
.about-a { padding-bottom: 0; overflow: clip; }
.aa-right .aa-ai { padding: 0; margin-top: -1vw; max-width: 36em; }
.about-a .aa-pit { height: clamp(300px, 40vh, 440px); margin: 4vh calc(clamp(20px, 3vw, 48px) * -1) 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }

/* description text in the hero font (Satoshi, regular) */
.aa-lead, .ab-lead { font-family: var(--sat); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }
.ab-text { font-family: var(--sat); font-weight: 400; letter-spacing: -.025em; line-height: 1.12; }

.ab-lead--ai { margin-top: 0; }
.ab-chip { margin: 3vh 0 3vh; }

/* ---------- idea 1, gradient version (.about-c): no portrait. The whole text lights up under a drifting gradient,
   then the skill bubbles pile up along the bottom of the section. ---------- */
.about-c { position: relative; background: var(--light); overflow-x: clip; overflow-y: visible; }
.ac-pin { height: 420vh; position: relative; }
.ac-stage { position: sticky; top: 0; height: 100vh; overflow: visible; padding: 0 8vw; }
.ac-stage .ac-tag { position: absolute; left: clamp(20px, 3vw, 48px); top: 20vh; z-index: 2; }
.ac-flow { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding-top: 30vh; will-change: transform; }
.ac-text { font-family: var(--sat); font-weight: 400; font-size: clamp(30px, 3.5vw, 66px); line-height: 1.14; letter-spacing: -.025em; color: #c9cde2; margin-bottom: .9em; }
.ac-text .w { transition: color .35s; }
.ac-text .w.lit { background-image: linear-gradient(110deg, #5b8cff, #7a5cff 50%, #ff5fa8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ac-chip { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(122, 136, 255, .3); color: var(--ink); opacity: .35; transition: opacity .5s; }
.ac-chip.lit { opacity: 1; }
.about-c .aa-pit { height: clamp(300px, 40vh, 440px); margin: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
@media (max-width: 760px) {
  .ac-stage { padding: 0 6vw; }
  .ac-text { font-size: 28px; }
}

/* about (gradient version), split layout: weighted headline left, the rest of the text right */
.ac-stage { display: flex; align-items: center; padding: 100px clamp(20px, 3vw, 48px) 40px; }
.ac-grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 6vw; align-items: center; }
.ac-stage .ac-tag { position: relative; left: auto; top: auto; margin-bottom: 4vh; }
.ac-head { font-family: var(--cab); font-weight: 800; font-size: clamp(46px, 5.4vw, 104px); line-height: .98; letter-spacing: -.035em; color: var(--ink); }
.ac-head .ch { display: inline-block; will-change: transform; }
.ac-flow { max-width: none; margin: 0; padding-top: 0; }
.ac-text { font-size: clamp(20px, 1.75vw, 32px); line-height: 1.32; letter-spacing: -.012em; margin-bottom: .8em; }
@media (max-width: 760px) {
  .ac-grid { grid-template-columns: 1fr; gap: 28px; }
  .ac-head { font-size: 44px; }
  .ac-text { font-size: 19px; }
  .ac-stage { padding-top: 90px; }
}

/* ---------- About with photos (.about-e) ---------- */
.about-e { position: relative; background: var(--light); overflow-x: clip; padding: clamp(110px, 16vh, 190px) clamp(20px, 3vw, 48px) 0; }
.ae-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6vw; align-items: start; }
.ae-left { position: sticky; top: 22vh; }
.ae-left .ptag { margin-bottom: 4vh; }
.ae-head { font-family: var(--cab); font-weight: 800; font-size: clamp(44px, 5vw, 96px); line-height: .98; letter-spacing: -.035em; color: var(--ink); }
.ae-head .ch { display: inline-block; }
.ae-text { font-family: var(--sat); font-weight: 400; font-size: clamp(21px, 1.9vw, 34px); line-height: 1.34; letter-spacing: -.015em; color: var(--ink); margin-bottom: .85em; }
.ae-text .w { opacity: .16; }
.ae-text--me { margin-top: 1.6em; }
/* the photo words: a soft gradient underline that fills in on hover */
.hw { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; position: relative; display: inline;
  background-image: linear-gradient(90deg, #8fbfff, #7a88ff 50%, #ff8fc4); background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .12em;
  transition: background-size .35s cubic-bezier(.2, .8, .2, 1), color .3s; }
.hw:hover, .hw:focus-visible, .hw.on { background-size: 100% 92%; color: #fff; border-radius: .18em; }
.hw:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; }
.ae-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 2.6vh; }
.ae-chip { display: inline-block; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(122, 136, 255, .3); color: var(--ink); }
.ae-hint { color: var(--peri); }
/* the polaroid that follows the cursor */
.ae-photo { position: fixed; left: 0; top: 0; z-index: 60; width: clamp(190px, 17vw, 290px); margin: 0; padding: 10px 10px 30px; background: #fff; border-radius: 16px;
  box-shadow: 0 28px 60px rgba(30, 30, 90, .25); pointer-events: none; opacity: 0; transform: scale(.6); will-change: transform, opacity; }
.ae-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; display: block; }
/* two prints peeking in from the edges, a hint that there are photos to find */
.ae-peek { position: absolute; z-index: 0; margin: 0; width: clamp(130px, 11vw, 200px); padding: 8px 8px 22px; background: #fff; border-radius: 14px; box-shadow: 0 20px 44px rgba(30, 30, 90, .16); }
.ae-peek img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; }
.ae-peek--l { left: -3.5vw; top: 62%; transform: rotate(-9deg); }
.ae-peek--r { right: -3vw; top: 8%; transform: rotate(8deg); }
.about-e .aa-pit { height: clamp(300px, 40vh, 440px); margin: 6vh calc(clamp(20px, 3vw, 48px) * -1) 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
@media (max-width: 760px) {
  .ae-grid { grid-template-columns: 1fr; gap: 28px; }
  .ae-left { position: relative; top: 0; }
  .ae-head { font-size: 42px; }
  .ae-text { font-size: 20px; }
  .ae-peek { display: none; }
  .ae-photo { width: 62vw; }
}
@media (hover: none) { .ae-hint::after { content: " (tap them)"; } }
.ae-peek--r { top: auto; bottom: calc(clamp(300px, 40vh, 440px) + 12vh); right: -2.5vw; transform: rotate(8deg); }
.ae-text .hw.on, .ae-text .hw:hover, .ae-text .hw:focus-visible { opacity: 1 !important; }

/* About photo trail: photos rise out of a ripple under the cursor and melt away */
.ae-trail { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.ae-trail img { position: absolute; left: 0; top: 0; width: 180px; height: 240px; object-fit: cover; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }

/* ---------- About in the v3 layout (.about-v3): portrait on the left, heading and description on the right ---------- */
.about-v3 { padding: clamp(100px, 15vh, 170px) clamp(20px, 3vw, 48px) 0; }
.av-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center;
  padding: 0 clamp(0px, 5vw, 110px); }
.av-photo { margin: 0; justify-self: center; position: relative; }
.av-photo img { display: block; width: auto; max-width: 100%; height: auto; }
.av-photo--cutout img { max-height: 84vh; }
.av-photo--framed img { max-height: 78vh; border-radius: 26px; box-shadow: 0 30px 70px rgba(30, 30, 90, .16); }
.av-text .ptag { margin-bottom: 22px; }
.about-v3 .ae-head { font-size: clamp(36px, 3.5vw, 68px); line-height: 1.04; margin-bottom: 30px; }
.about-v3 .ae-text { font-size: clamp(17px, 1.32vw, 23px); line-height: 1.6; letter-spacing: -.005em; color: #3d4263; margin-bottom: .9em; }
.about-v3 .ae-text--me { margin-top: 1.4em; }
.about-v3 .ae-chip { margin-top: 18px; }
.about-v3 .aa-pit { margin-top: 4vh; }
@media (max-width: 760px) {
  .av-grid { grid-template-columns: 1fr; padding: 0; }
  .av-photo { max-width: 340px; }
}
.about-v3 .ae-head { font-size: clamp(32px, 3vw, 58px); margin-bottom: 24px; }
.about-v3 .ae-text { font-size: clamp(16px, 1.2vw, 21px); line-height: 1.58; }
.av-photo--cutout img { max-height: 78vh; }
.av-photo--framed img { max-height: 72vh; }
.about-v3 .aa-pit { height: clamp(200px, 27vh, 270px); margin-top: 2vh; }

/* ---------- skills as two slow rows drifting in opposite directions ---------- */
.ae-rows { position: relative; z-index: 1; margin: clamp(48px, 8vh, 90px) calc(clamp(20px, 3vw, 48px) * -1) 0; padding-bottom: clamp(56px, 9vh, 100px);
  display: grid; gap: 14px; overflow: hidden; }
.ae-row { overflow: visible; }
.ae-track { list-style: none; display: flex; gap: 14px; width: max-content; will-change: transform; }
.sk { position: relative; flex: 0 0 auto; padding: .62em 1.3em; border-radius: 999px; white-space: nowrap; font-family: var(--cab); font-weight: 800;
  font-size: clamp(19px, 1.65vw, 30px); letter-spacing: .01em; line-height: 1.1;
  box-shadow: inset 0 -10px 18px rgba(20, 20, 80, .14), inset 0 8px 14px rgba(255, 255, 255, .55), 0 12px 22px rgba(40, 50, 140, .14); }
.sk::before { content: ""; position: absolute; top: 12%; left: 14%; width: 38%; height: 26%; border-radius: 999px; background: rgba(255, 255, 255, .55); filter: blur(1.5px); pointer-events: none; }
.sk.b0 { background: #9cc7ff; color: var(--ink); }
.sk.b1 { background: #7a88ff; color: #fff; }
.sk.b2 { background: #ff9ccc; color: var(--ink); }
.sk.b3 { background: #ffffff; color: var(--ink); }
.sk.b4 { background: #2b3160; color: #b9d6ff; }

/* phone: a smaller portrait in About */
@media (max-width: 760px) {
  .av-photo, .av-photo--cutout { max-width: 220px; margin: 0 auto; }
  .av-photo--cutout img { max-height: 48vh; }
}
/* phone: the portrait is cropped at the waist, with a soft fade instead of a hard edge */
@media (max-width: 760px) {
  .av-photo, .av-photo--cutout { max-width: 240px; }
  .av-photo--cutout img { width: 100%; max-height: none; aspect-ratio: 755 / 1010; object-fit: cover; object-position: top;
    -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
}
