/* Page layouts of the new design. */

/* ================= Stacked pages: cream panels on the dark frame ================= */
.tv-panel--stack, .tv-panel--stack .tv-scroll { background: var(--bg-dark); }
.stack { display: flex; flex-direction: column; gap: var(--tv-border); }
.panel { position: relative; background: var(--bg-beige); border-radius: var(--tv-radius); }
.stack > .marquee { margin: calc(-1 * var(--tv-border)) 0; } /* bands sit directly between panels */

.section-head { display: grid; gap: 8px; }
.section-head__sub { color: var(--text-muted); }

/* ================= Home: hero ================= */
.hero {
  height: 100cqh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
@media (min-width: 700px) { .page-home .hero { min-height: 560px; } }
@media (max-width: 699px) { .hero { height: auto; } }
.hero__center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 56px; text-align: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--white);
  font: 500 var(--fs-label-eyebrow)/1.35 var(--font-text);
}
.hero__dot { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--available); }
/* "Available" pulse (Pauline, 30 Nov 2026): a green ring grows out of the dot and fades, every 2 s. */
.hero__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--available);
  animation: dot-pulse 2s ease-out infinite;
}
@keyframes dot-pulse {
  0% { transform: scale(1); opacity: .6; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}
.hero__name { margin: 0; }
.hero__floats { position: absolute; inset: 0; z-index: 2; pointer-events: none; } /* tags always above the name */
.float {
  position: absolute;
  left: var(--dx); top: var(--dy);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--tilt));
  will-change: transform;
}
.hero__hint {
  position: absolute; z-index: 1;
  left: 50%; bottom: 40px;
  transform: translateX(-50%);
  font: 500 22px/1.35 var(--font-text);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.hero__hint-arrow svg { display: inline-block; width: .85em; height: .85em; vertical-align: -.1em; margin-left: .15em; } /* the site arrow, pointing down */
  .hero__hint { animation: hint-bob 3.2s ease-in-out infinite; }
  @keyframes hint-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ================= Home: selected work ================= */
.work { padding: 120px 0; }
.work__inner { width: min(1060px, 100% - 80px); margin: 0 auto; display: grid; gap: 50px; }
.work__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 32px; }

/* ================= Home: recommendations ================= */
.recs { padding: 100px 120px; display: grid; gap: 48px; }
.recs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.recs__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ================= Home: contact ================= */
.contact { padding: 20px 50px; }
.contact__box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  padding: 68px 220px;
  border-radius: var(--radius-card);
  background: var(--bg-dark);
}
.contact__title { color: var(--white); }
/* The banner fills a whole screen, like the hero (Pauline, 17 Nov 2026) */
.contact { height: 100cqh; min-height: 560px; display: flex; flex-direction: column; }
.contact__box { flex: 1; justify-content: center; }
/* More beige around the dark box, so it clears the corner buttons, and a bigger title (Pauline, 17 Nov 2026).
   Responsive: padding and title size follow the width of the box, so the title (its longest word,
   SOMETHING, is about 4.8 × the font size wide) always fits with room around it. */
.contact { container-type: inline-size; }
.contact__box { container-type: inline-size; padding: clamp(40px, 6cqi, 64px) clamp(20px, 8cqi, 120px); }
.contact__title { font-size: min(150px, 19cqi); line-height: .95; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .contact { padding: clamp(24px, 7cqi, 100px); }
  .contact__box { gap: 40px; }
}
@media (max-width: 699px) {
  .contact { height: auto; min-height: calc(100svh - var(--bar-h) - 2 * var(--tv-border)); padding: 24px; }
}

/* ================= Tablet ================= */
@media (max-width: 1099px) {
  .float { left: var(--tx); top: var(--ty); }
  .hero__center { gap: 48px; }
  .work { padding: 72px 0; }
  .work__inner { width: calc(100% - 64px); gap: 16px; }
  .work .section-head { margin-bottom: 0; }
  .work__grid { gap: 16px; }
  .recs { padding: 72px 32px; gap: 36px; }
  .recs__head { flex-direction: column; align-items: flex-start; }
  .recs__cards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -32px; padding: 0 32px; scrollbar-width: none; }
  .recs__cards > * { flex: 0 0 340px; scroll-snap-align: start; }
}

/* ================= Mobile ================= */
@media (max-width: 699px) {
  /* The tags get their own area between the LinkedIn corner and the name (Figma: tags y 77–442,
     name at 446). The area shrinks on short screens such as the iPhone 12 mini, but never so much
     that tags overlap the name: then the hero grows instead. overflow stays visible so the
     Instagram corner is not clipped at the panel edge. */
  .page-home .hero { height: auto; min-height: calc(100svh - var(--bar-h) - 2 * var(--tv-border)); display: flex; flex-direction: column; justify-content: flex-end; place-items: initial; padding: 0 24px 80px; overflow: visible; }
  .page-home .hero__floats { position: relative; inset: auto; align-self: stretch; flex: 1 0 196px; margin: 66px -24px 12px; }
  /* mirrored (Pauline, 16 Nov 2026): 3 tags left, 4 right, so the LinkedIn corner balances the left side */
  .float { left: auto; right: var(--mx); top: var(--my); }
  /* centred on mobile (Pauline, 16 Nov 2026; Figma stays left-aligned) */
  .hero__center { align-items: center; text-align: center; gap: 14px; flex-direction: column-reverse; }
  .hero__eyebrow { padding: 6px 12px; gap: 8px; }
  .hero__hint { left: 50%; bottom: 28px; transform: translateX(-50%); white-space: nowrap; font-size: 18px; }
  .work { padding: 40px 0 24px; }
  .work__inner { width: calc(100% - 32px); }
  .work__grid { grid-template-columns: 1fr; }
  .recs { padding: 40px 16px; gap: 24px; }
  .recs__title { font-size: var(--fs-heading-h2); }
  .recs__cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; overflow: visible; }
  .recs__cards > * { flex: none; }
}

/* ================= Project detail ================= */
.project {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100cqh;
  min-height: 520px;
  padding: 96px 0 clamp(24px, 10.8cqh, 95px);
}
.project__intro {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 0 104px;
}
/* min-content: the head is never narrower than its longest word, so a long title can never run into the text */
.project__head { display: flex; flex-direction: column; gap: 12px; flex: 1 1 0; min-width: min-content; }
.project__about { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; flex: 0 1 764px; }
.project__text { color: var(--text-muted); }

.wall {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-behavior: auto;
}
.wall::-webkit-scrollbar { display: none; }
.wall:focus-visible { outline: 2px solid var(--phone-orange); outline-offset: -2px; }
.wall__track { display: flex; gap: 12px; height: 100%; width: max-content; padding: 0 100px; }
.wall__img { height: 100%; width: auto; max-width: none; flex: none; user-select: none; -webkit-user-drag: none; }

/* the wall plus its swipe hint */
.wall-box { position: relative; display: flex; flex: 1 1 0; min-height: 0; overflow: hidden; } /* clips the slide-in, so phones don't widen the page */
.wall-box > .wall { flex: 1 1 auto; width: 100%; }

/* Swipe hint (touch screens): round arrow over the right side of the visuals,
   bobbing like the About me nudge. Fades out after the first swipe (Pauline, 17 Nov 2026). */
.wall-hint { display: none; }
@media (hover: none) {
  .wall-hint {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 16px;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: var(--cursor-pointer, pointer);
    -webkit-tap-highlight-color: transparent;
    animation: hint-in .4s ease-out .8s backwards; /* "backwards", not "both": otherwise it keeps forcing opacity 1 and the hint can never fade out */
    transition: opacity .4s ease-out;
  }
  /* dissolves once the visitor starts swiping */
  .wall-box.is-swiped .wall-hint { opacity: 0; pointer-events: none; }
}
.wall-hint__arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--black); color: var(--white);
  animation: nudge-bob 1.6s ease-in-out infinite;
  --bob: 8px;
}
.wall-hint__arrow svg { width: 100%; height: 100%; }
@keyframes hint-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 700px) { .wall-hint { right: 56px; bottom: 20px; } }
/* mobile: halfway down the right side, so it never sits under the LinkedIn corner */
@media (max-width: 699px) { .wall-hint { bottom: auto; top: calc(50% - 24px); } }

/* NDA (project.md "nda: true"): blurred visuals with a note on top (Pauline, 17 Nov 2026) */
.wall-box--nda .wall { overflow: hidden; pointer-events: none; }
.nda {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%;
  width: min(460px, calc(100% - 40px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 28px 32px;
  border: 2px solid var(--black); border-radius: var(--radius-card);
  box-shadow: 0 4px 0 var(--black);
  background: var(--bg-beige);
  color: var(--text);
}
.nda__note { margin: 0; }
@media (max-width: 699px) { .nda { padding: 20px; gap: 16px; } }

/* entrance: the text block, then the wall, slide in from the right */
  .project__intro, .wall { animation: slide-in .5s ease-out both; }
  .wall { animation-delay: .15s; }
  @keyframes slide-in { from { opacity: 0; transform: translateX(260px); } to { opacity: 1; transform: none; } }

@media (max-width: 1099px) {
  .project { padding: 88px 0 clamp(24px, 8.2cqh, 91px); gap: 36px; }
  .project__intro { flex-direction: column; gap: 24px; padding: 0 56px; }
  .project__about { flex: none; }
  .wall__track { gap: 16px; padding: 0 56px; }
}

@media (max-width: 699px) {
  /* tighter around the title and a lower wall, so more of it fits on screen (Pauline, 17 Nov 2026) */
  .project { height: auto; min-height: 0; padding: 72px 0 32px; gap: 20px; overflow-x: clip; } /* the slide-in must not widen the page */
  .project__title { line-height: 1.05; }
  .project__head { gap: 8px; }
  .project__intro { padding: 0 20px; gap: 8px; }
  .wall-box { flex: none; }
  .wall { flex: none; height: 400px; }
  .wall__track { gap: 12px; padding: 0 20px; }
}

/* ================= Recommendations page ================= */
.recs-page { display: flex; flex-direction: column; min-height: 100cqh; padding: 120px 0 56px; overflow: hidden; }
.recs-page__head { display: grid; justify-items: center; gap: 0; text-align: center; padding: 0 40px; }
.recs-page__intro { color: var(--text-muted); }
.carousel {
  --k: 1;            /* card scale: 100 % desktop, 82 % tablet, 74 % mobile */
  --step: 445px;     /* centre-to-centre distance at full size */
  position: relative;
  flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 50px;
  padding-top: 50px;
}
.carousel__viewport { width: 100%; overflow: visible; }
.carousel__track {
  display: flex;
  gap: calc((var(--step) - 440px) * var(--k));
  width: max-content;
  transition: transform .45s cubic-bezier(0, 0, .58, 1); /* Figma: smart animate, ease out, 450 ms */
  will-change: transform;
}
.carousel__track.no-anim, .carousel__track.no-anim .rcard { transition: none; }
.carousel__slide { position: relative; flex: none; width: calc(440px * var(--k)); height: calc(var(--card-h, 707px) * var(--k)); }
/* room above the card when you arrive from a homepage card (#name), Pauline 16 Nov 2026 */
.carousel__slide { scroll-margin-top: 32px; }
/* mobile: the fixed LinkedIn corner covers the top of the screen, so keep the card below it */
@media (max-width: 699px) { .carousel__slide { scroll-margin-top: 88px; } }
.carousel__slide .rcard {
  width: 440px; max-width: none; min-height: 707px; height: var(--card-h, 707px);
  transform-origin: top left;
  /* Tilt and drop depend on the position, set by the script (Figma "recommendations"):
     centre 0°, next to it 3° (leaning towards the centre) and 24 px lower, outer 2° and 6 px lower.
     The card turns around its own centre, as in Figma, so left and right stay symmetrical. */
  transform: scale(var(--k))
    translate(220px, calc(var(--card-h, 707px) / 2))
    translateY(var(--slot-y, 0px)) rotate(var(--slot-tilt, 0deg))
    translate(-220px, calc(var(--card-h, 707px) / -2));
  transition: transform .45s cubic-bezier(0, 0, .58, 1);
}
.carousel__counter {
  padding: 12px 24px; border-radius: 30px;
  background: var(--black); color: var(--beige);
}
/* left / right hover zones with the round arrow cursor */
.carousel__zone {
  /* the zones stop at the edges of the centred card, so over that card the cursor is normal
     and its LinkedIn button looks clickable (Pauline, 16 Nov 2026) */
  position: absolute; top: 0; bottom: 80px; width: calc(50% - 220px * var(--k));
  border: 0; padding: 0; background: none; cursor: var(--cursor-pointer, pointer);
}
.carousel__zone--prev { left: 0; }
.carousel__zone--next { right: 0; }
@media (hover: hover) and (pointer: fine) { .carousel__zone { cursor: none; } }
.carousel__zone:focus-visible { outline: 2px solid var(--phone-orange); outline-offset: -6px; }
.cursor-arrow {
  position: absolute; z-index: 5; top: 0; left: 0;
  /* 60 px (was 75, Pauline 16 Nov 2026) */
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--black); color: var(--white);
  pointer-events: none; opacity: 0;
  transition: opacity .15s, scale .25s var(--ease-out-back);
}
.cursor-arrow svg { width: 60px; height: 60px; transition: transform .2s; }
/* click: shrinks to 85 % from its centre and pops back, like the LinkedIn button hover */
.cursor-arrow.is-pressed { scale: .85; }
.cursor-arrow.is-on { opacity: 1; }
.cursor-arrow.is-left svg { transform: scaleX(-1); }

@media (max-width: 1099px) {
  .recs-page { padding: 96px 0 40px; }
  .carousel { --k: .82; gap: 32px; padding-top: 32px; }
}
@media (max-width: 699px) {
  .recs-page { min-height: 0; padding: 96px 0 32px; }
  .recs-page__head { padding: 0 30px; gap: 20px; }
  .recs-page__title { font-size: var(--fs-heading-h2); }
  .carousel { --k: .741; --step: 453px; gap: 24px; padding-top: 24px; }
  .carousel__slide .rcard { transform: scale(var(--k)); }
  .carousel__zone { display: none; }
  .carousel__viewport { touch-action: pan-y; }
}
.cursor-arrow--fixed { position: fixed; z-index: 50; }
@media (hover: hover) and (pointer: fine) { .wall.has-cursor, .wall.has-cursor * { cursor: none; } }

/* ================= About me page =================
   Figma: Website → "about me" (+ tablet / mobile and the "extended" frames).
   The title stays put; one horizontal strip scrolls inside the panel. */
.about {
  display: flex;
  flex-direction: column;
  min-height: 100cqh;
}
.about__title {
  flex: none;
  padding: 30px 40px 0;
  text-align: center;
  font-size: min(var(--fs-display-lg), 17cqh);
  line-height: 1.4;
}

.strip {
  flex: 1 0 auto;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline: 2px solid var(--phone-orange); outline-offset: -4px; }
.strip__track {
  display: flex;
  align-items: center;
  gap: 90px;
  width: max-content;
  min-height: 100%;
  padding: 0 140px 0 0;
  --zt: 1;                 /* zoom of the whole strip (short screens) */
  zoom: var(--zt);
}
/* Desktop: the postcard is a full "screen" of its own, centred in the panel, so the CV
   blocks start just outside it and only show up after scrolling (Pauline, 13 Nov 2026).
   The nudge sits centred in the space right of the card. */
.strip__intro {
  /* narrower panels: the card + nudge get smaller so the nudge always fits next to the card.
     --zw is the zoom the width needs; only the part not already done by the strip zoom is added. */
  --zw: 1;
  --zi: min(1, var(--zw) / var(--zt));
  zoom: var(--zi);
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100cqw / (var(--zt) * var(--zi)));
}
.work-x { scroll-margin-left: 110px; }

/* ---------- shared card bits ---------- */
.bold-card {
  border: 2px solid var(--black);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 0 var(--black);
}
.cv-h1 { font: 700 var(--fs-heading-h1)/1.4 var(--font-title); white-space: nowrap; }
.cv-h2 { font: 700 var(--fs-heading-h2)/1.4 var(--font-title); white-space: nowrap; }
.cv-title { font: 700 var(--fs-heading-h4)/1 var(--font-title); }
.cv-link { font: 500 16px/1.4 var(--font-text); color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.cv-link:hover { text-decoration-thickness: 2px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 9px 16px; border-radius: var(--radius-pill); background: var(--white); font: 500 var(--fs-label-md)/1.4 var(--font-text); white-space: nowrap; }

/* ---------- postcard ---------- */
.pc-wrap { flex: none; perspective: 1000px; padding: 15px 8px; }
.pc {
  --st: 1;                 /* stamp scale (134 px wide at 1) */
  --tilt: 2deg;            /* rest tilt (Figma -2°) */
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 36px;
  width: 860px;
  height: 500px;
  padding: 40px 44px;
  transform-style: preserve-3d;
  transform: translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--tilt));
  will-change: transform;
}
/* border and shadow on the card background only, so the stickers don't get them */
.pc__bg { position: absolute; inset: 0; border: 2px solid var(--black); border-radius: var(--radius-card); box-shadow: 0 4px 0 var(--black); background: var(--white); }
.pc__sheen {
  position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-card); pointer-events: none;
  background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 70%);
  mix-blend-mode: soft-light;
  opacity: var(--sheen, 0);
}
.pc > :not(.pc__bg, .pc__sheen, .pc__sticker),
.pc__message > *, .pc__side > * { position: relative; z-index: 1; }
.pc__message { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pc__hello { display: flex; flex-direction: column; gap: 18px; }
.pc__overline { font: 600 var(--fs-label-overline)/1.4 var(--font-text); letter-spacing: .12em; color: var(--text-muted); }
.pc__greeting { font: 700 var(--fs-heading-h2)/1.4 var(--font-title); }
.pc__text { font: 400 var(--fs-body-md)/24px var(--font-text); }
.pc__spacer { flex: 1 1 auto; }
.pc__signature { font: 700 var(--fs-heading-h4)/1 var(--font-title); white-space: nowrap; }
.pc__divider { flex: none; width: 2px; background: var(--black); }
.pc__side { flex: none; width: 290px; display: flex; flex-direction: column; align-items: flex-end; gap: 30px; }
.pc__address { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.pc__line { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--black); }
.pc__label { flex: none; font: 600 var(--fs-label-overline)/1.4 var(--font-text); color: var(--text-muted); }
.pc__value { flex: 1 1 auto; min-width: 0; text-align: right; font: 500 var(--fs-label-md)/1.4 var(--font-text); }
.pc__value a { text-decoration: none; }
.pc__value a:hover, .pc__copy:hover { text-decoration: underline; }
.pc__copy { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: var(--cursor-pointer, pointer); }

/* Stamp: black frame with round perforation bites (white dots in the card colour). */
.stamp {
  position: relative;
  flex: none;
  display: block;
  width: calc(134px * var(--st));
  height: calc(164px * var(--st));
  padding: calc(10.72px * var(--st));
  background: var(--black);
}
.stamp img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(1.78px * var(--st)); }
.stamp::after {
  --r: calc(5.36px * var(--st));
  /* one dot in the middle of each tile */
  --dot: radial-gradient(circle var(--r) at center, var(--white) calc(100% - .5px), transparent);
  content: "";
  position: absolute;
  inset: calc(-1 * var(--r));
  pointer-events: none;
  background:
    var(--dot) calc(5.025px * var(--st)) 0 / calc(16.75px * var(--st)) calc(2 * var(--r)) repeat-x,
    var(--dot) calc(5.025px * var(--st)) 100% / calc(16.75px * var(--st)) calc(2 * var(--r)) repeat-x,
    var(--dot) 0 calc(5.18px * var(--st)) / calc(2 * var(--r)) calc(16.44px * var(--st)) repeat-y,
    var(--dot) 100% calc(5.18px * var(--st)) / calc(2 * var(--r)) calc(16.44px * var(--st)) repeat-y;
}

.pc__sticker { position: absolute; z-index: 3; transform: translateZ(12px) rotate(var(--st-rot)); } /* lower 3D lift so it reads as stuck on the card */
.pc__sticker--1 { --st-rot: -8deg; left: -18px; top: -12px; } /* overlaps the card edge (Pauline, 17 Nov 2026) */
.pc__sticker--2 { --st-rot: 6deg; right: -4px; bottom: -18px; }
.pc__sticker .tag { box-shadow: none; }

/* one small wobble on touch screens (no 3D tilt there) */
.pc.is-wobble { animation: pc-wobble .9s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes pc-wobble {
  0%, 100% { transform: rotate(var(--tilt)); }
  25% { transform: rotate(calc(var(--tilt) - 3deg)); }
  50% { transform: rotate(calc(var(--tilt) + 2deg)); }
  75% { transform: rotate(calc(var(--tilt) - 1deg)); }
}

/* ---------- scroll nudge ---------- */
.nudge { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
@media (min-width: 1100px) {
  .nudge {
    position: absolute;
    top: 50%;
    left: calc(50% + 450px);   /* right edge of the card (wrapper 893 px wide) */
    right: 0;
    transform: translateY(-50%);
    align-items: center;
  }
  .nudge > * { width: 210px; }
}
.nudge__text { font: 500 var(--fs-label-md)/1.4 var(--font-text); white-space: nowrap; }
.nudge__cta {
  display: flex; align-items: center; gap: 12px;
  padding: 0; border: 0; background: none; cursor: var(--cursor-pointer, pointer); color: var(--text);
  font: 700 var(--fs-label-strong)/1.4 var(--font-text);
  -webkit-tap-highlight-color: transparent;
}
.nudge__arrow {
  --size: 60px; /* same as the recommendations arrow (was 75, Pauline 17 Nov 2026) */
  --bob: 10px;
  display: grid; place-items: center; flex: none;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--black); color: var(--white);
  /* Figma prototype "Proto/Nudge arrow": 10 px right and back, smart animate, ease in and out, 800 ms each way */
  animation: nudge-bob 1.6s ease-in-out infinite;
}
.nudge__arrow svg { width: 100%; height: 100%; }
@keyframes nudge-bob { 0%, 100% { translate: 0 0; } 50% { translate: var(--bob) 0; } }
.nudge__label--swipe { display: none; }

/* ---------- work experience ---------- */
.work-x { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.jobs { display: flex; align-items: stretch; gap: 28px; padding-right: 4px; }
.job {
  flex: none;
  width: 434.67px;
  margin: 0 4px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px;
  background: var(--white);
  transform: rotate(1.5deg);
}
.job:nth-child(even) { transform: rotate(-1.5deg); }
.job__text { font: 400 var(--fs-body-sm)/24px var(--font-text); color: var(--text-muted); }

/* ---------- education ---------- */
.edu {
  flex: none;
  align-self: stretch;
  width: 1081px;
  margin: 6px 5px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 60px;
  border-radius: var(--radius-card);
  background: var(--white);
  transform: rotate(-1deg);
}
.edu__item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---------- skills ---------- */
.skills-col { flex: none; width: 369px; display: flex; flex-direction: column; gap: 20px; transform: rotate(1.5deg); margin: 0 8px; }
.skills-stack { flex: none; display: flex; flex-direction: column; gap: 20px; }
.skill-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 36px; }
.skill-card--pills { width: 477.33px; height: 295px; gap: 20px; }
.skill-card--software { background: var(--tag-lime); }
.skill-card--languages { background: var(--tag-orchid); }
.skill-card--soft { background: var(--tag-aqua); transform: rotate(-1.5deg); }
.skill-card--uxui { background: var(--tag-lilac); transform: rotate(1deg); }
.skill-card--hobbies { flex: none; background: var(--tag-peach); transform: rotate(-2deg); margin: 0 5px; }
.rows { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; font: 500 var(--fs-label-md)/1.4 var(--font-text); }
.row strong { font: 700 var(--fs-label-strong)/1.4 var(--font-text); }

/* Software dots (component "Software dots"): fill one by one when the card scrolls into view. */
.dots { display: flex; gap: 6px; }
.dot {
  display: block;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--black);
  background: transparent;
  transition: background-color .2s ease-out, transform .2s ease-out;
  transition-delay: calc(var(--i) * .2s);
}
.dot.is-on { background: var(--black); }
.js [data-dots]:not(.is-played) .dot.is-on { background: transparent; transform: scale(.7); }

/* Shorter screens (desktop): the whole strip scales down so it always fits under the title. */
@media (min-width: 1100px) {
  @container panel (max-height: 860px) { .strip__track { --zt: .9; } }
  @container panel (max-height: 760px) { .strip__track { --zt: .8; } }
  @container panel (max-height: 680px) { .strip__track { --zt: .7; } }
  @container panel (max-height: 600px) { .strip__track { --zt: .6; } }
  @container panel (max-height: 520px) { .strip__track { --zt: .5; } }
  /* narrower panels: card + nudge need about 1420 px at full size */
  @container panel (max-width: 1420px) { .strip__intro { --zw: .92; } }
  @container panel (max-width: 1300px) { .strip__intro { --zw: .85; } }
  @container panel (max-width: 1200px) { .strip__intro { --zw: .78; } }
  @container panel (max-width: 1100px) { .strip__intro { --zw: .72; } }
}

/* ================= About: tablet (700–1099 px) ================= */
@media (max-width: 1099px) {
  .about { min-height: 0; padding: 96px 0 40px; gap: 32px; }
  .about__title { padding: 0 48px; font-size: var(--fs-display-lg); line-height: 1.4; }
  .strip { flex: none; }
  .strip__track { align-items: flex-start; gap: 60px; padding: 30px 48px 12px; }
  .strip__track { --zt: 1; }
  .strip__intro { --zw: 1; --zi: 1; width: auto; position: static; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 36px; }
  .work-x { scroll-margin-left: 48px; }
  .pc { width: 650px; height: auto; }
  .pc__side { width: 236px; gap: 22px; }
  .pc { --st: calc(150 / 134); }
  .pc__spacer { flex: none; height: 6px; }
  .nudge { padding: 0 0 0 24px; }
}

/* ================= About: mobile (below 700 px) ================= */
@media (max-width: 699px) {
  .about { padding: 80px 0 32px; gap: 24px; }
  .about__title { padding: 0 20px; }
  .strip {
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
  }
  .strip__track { align-items: stretch; gap: 16px; padding: 32px 24px 16px; }
  .strip__intro { align-items: center; gap: 28px; scroll-snap-align: start; }
  .work-x { scroll-margin-left: 24px; }
  .pc-wrap { padding: 0 10px; }

  /* portrait postcard: greeting + stamp, text, address, signature */
  .pc {
    --st: .7;
    width: 306px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "hello stamp" "text text" "addr addr" "sign sign";
    align-items: end;
    gap: 18px 12px;
    padding: 26px 22px 24px;
  }
  .pc__message, .pc__side { display: contents; }
  .pc__hello { grid-area: hello; gap: 8px; }
  .pc__text { grid-area: text; }
  .pc__spacer, .pc__divider { display: none; }
  .pc__signature { grid-area: sign; }
  .stamp { grid-area: stamp; }
  .pc__address { grid-area: addr; }
  .pc__sticker--1 { left: -4px; }
  .pc__sticker--2 { right: -6px; bottom: -22px; }

  .nudge { padding: 0; }
  .nudge__text, .nudge__label--scroll { display: none; }
  .nudge__label--swipe { display: inline; }
  .nudge__cta { flex-direction: row-reverse; }
  .nudge__arrow { --size: 48px; --bob: 8px; }

  .work-x { gap: 16px; }
  .jobs { gap: 16px; padding: 0; flex: 1 1 auto; }
  .job, .job:nth-child(even), .edu, .skills-col, .skill-card--pills {
    width: 306px; margin: 0; transform: none; scroll-snap-align: start;
  }
  .job { padding: 20px; }
  .edu { align-self: stretch; justify-content: flex-start; gap: 28px; padding: 32px 16px 24px; border-radius: var(--radius-card-sm); }
  .skills-col { gap: 8px; }
  .skills-stack { display: contents; }
  .skill-card { padding: 24px 20px; }
  .skill-card--pills { height: auto; }
  .skills-col .skill-card { flex: none; }
  .cv-h2, .cv-h1 { white-space: normal; }
}
