/* =========================================================
   A × C2 home · detail round 1
   - Header: nothing at first glance; the signature appears top-left
     only after the first screen (no name, no outline)
   - Hero: the signature draws itself stroke by stroke, three lines
   - Title font: Montserrat, bold
   - Selected work: chapter pages that stack like turning spreads
   ========================================================= */
:root {
  --title: "Montserrat";
  --text: "Archivo", Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --bar-h: 4.25rem;
}

body { font: 400 1.0625rem/1.6 var(--text); }
.t { font-family: var(--title), Arial, sans-serif; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Header ---------- */
.bar { position: fixed; z-index: 60; inset: 0 0 auto 0; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); pointer-events: none; transition: background-color .35s; }
.bar > * { pointer-events: auto; }
.bar.is-scrolled { background: var(--white); }
.bar-logo { display: block; width: 104px; visibility: hidden; opacity: 0; transform: translateY(-.5rem); transition: opacity .35s, transform .5s var(--ease-out), visibility 0s .5s; }
.bar.is-scrolled .bar-logo { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.bar-logo:focus-visible { outline-offset: 6px; }
.menu-btn { margin-left: auto; min-height: 2.75rem; padding: 0 1.25rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 700; cursor: pointer; transition: transform .25s var(--ease-out); }
.menu-btn:hover { transform: rotate(-4deg); }

.menu { position: fixed; z-index: 80; inset: 0; background: var(--lavender); display: flex; flex-direction: column; justify-content: center; padding: 5rem var(--gutter) 3rem; }
.menu[hidden] { display: none; }
.menu-close { position: absolute; top: .75rem; right: var(--gutter); min-height: 2.75rem; padding: 0 1.25rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 700; cursor: pointer; }
.menu ul { display: grid; gap: .25rem; }
.menu a { display: inline-flex; align-items: baseline; gap: 1rem; text-decoration: none; font-size: clamp(3.5rem, 13vw, 9rem); line-height: .95; }
.menu a span { font: 700 1rem var(--text); color: var(--ink); }
.menu a:hover, .menu a:focus-visible { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .08em; text-underline-offset: .1em; }
.menu li { opacity: 0; transform: translateY(40%); transition: opacity .4s, transform .6s var(--ease-out); }
.menu.is-open li { opacity: 1; transform: none; }
.menu.is-open li:nth-child(2) { transition-delay: .07s; } .menu.is-open li:nth-child(3) { transition-delay: .14s; }

/* ---------- Signature (drawn along its own centre line) ---------- */
.sig { width: 100%; overflow: visible; }
.js .sig[data-draw] .sig-strokes path { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; }
.sig.is-drawing .sig-strokes path { animation: sig-draw var(--d, .3s) cubic-bezier(.45, .05, .55, .95) var(--delay, 0s) forwards; }
@keyframes sig-draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; display: grid; align-content: end; padding: 6rem var(--gutter) clamp(2rem, 5vw, 3.5rem); }
/* Signature and the "hello!" drawing travel together: she stands right at the end of the signature */
.hero-mark { position: absolute; z-index: 2; left: min(calc(45% + 200px), calc(100% - var(--gutter) - min(36vw, 530px))); top: 32%; transform: translate(-50%, -50%); width: min(42vw, 620px); }
.hero-sig { display: block; width: 100%; }
.lines { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lines path { fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
/* Colours swapped (Dec 2026): the ribbons are yellow with an ink edge, the band is lavender */
.lines .l-ribbon { stroke: var(--yellow); stroke-width: 34; }
.lines .l-ribbon.thin { stroke-width: 16; }
.lines .l-ribbon.thick { stroke-width: 56; }
/* Home hero: thinner yellow ribbons */
.hero .lines .l-ribbon { stroke-width: 20; }
.hero .lines .l-ribbon.thick { stroke-width: 32; }
.lines .l-ribbon-edge { display: none; }
.lines .l-ribbon-edge.thin { stroke-width: 19; }
.lines .l-ribbon-edge.thick { stroke-width: 59; }
/* Yellow band: the brand yellow is too pale to read as a line on white (1.07:1),
   so it gets a thin ink edge, like the tape stickers */
.lines .l-yellow-edge { display: none; }
.lines .l-yellow { stroke: var(--lavender); stroke-width: 28; }
.lines .l-orange { stroke: var(--orange); stroke-width: 7; }
.js .lines path { stroke-dasharray: 1 2; stroke-dashoffset: 1.001; }
.js .lines.is-in path { transition: stroke-dashoffset 2.4s var(--ease-in-out); stroke-dashoffset: 0; }
.js .lines.is-in :is(.l-ribbon, .l-ribbon-edge) { transition-delay: .9s; }
.js .lines.is-in :is(.l-ribbon, .l-ribbon-edge).thick { transition-delay: .6s; transition-duration: 1.8s; }
.js .lines.is-in :is(.l-ribbon, .l-ribbon-edge).thin { transition-delay: 1.2s; transition-duration: 2.8s; }
.js .lines.is-in :is(.l-yellow, .l-yellow-edge) { transition-delay: 1.2s; transition-duration: 2.8s; }
.js .lines.is-in .l-orange { transition-delay: 2.3s; transition-duration: 1.8s; }

.tape { position: absolute; z-index: 3; display: inline-flex; padding: .5rem 1rem; background: var(--yellow); font: 800 .9375rem/1 var(--text); text-transform: uppercase; letter-spacing: .02em; box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: polygon(0 0, 100% 6%, 97% 50%, 100% 100%, 2% 94%, 4% 50%); transform: rotate(-6deg); }
.hero-tape { right: calc(var(--gutter) + 3%); top: calc(30% + min(8vw, 120px)); }
.js .hero-tape { opacity: 0; transform: rotate(-6deg) scale(.6); }
.js .hero-tape.is-in { opacity: 1; transform: rotate(-6deg) scale(1); transition: opacity .3s, transform .55s cubic-bezier(.3, 1.6, .5, 1); }

.hero-copy { position: relative; z-index: 3; display: grid; gap: 1.25rem; }
/* Her "hello!" drawing, in three parts: she pops up, writes "hello!", then waves.
   Hovering her waves again. Orange swishes mark the wave. */
.hero-hello { position: absolute; z-index: 2; left: 101%; top: 14%; width: 34%; aspect-ratio: 1210 / 1265; }
.hero-hello img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hh-arm { transform-origin: 22.1% 65%; }
.hh-swish { position: absolute; left: 9%; top: 27%; width: 9%; overflow: visible; opacity: 0; }
.hh-swish path { fill: none; stroke: var(--orange); stroke-width: 4; }
.js .hero-hello { animation: hh-pop .8s cubic-bezier(.3, 1.5, .5, 1) 1.5s both; transform-origin: 60% 100%; }
.js .hh-text { animation: hh-write 1.1s steps(9, end) 2.2s both; }
.js .hh-arm { animation: hh-wave .5s ease-in-out 3.3s 4 alternate both; }
.js .hh-swish { animation: hh-swish 2s ease-out 3.3s both; }
.js .hero-hello:hover .hh-arm { animation: hh-wave .45s ease-in-out 0s 4 alternate; }
.js .hero-hello:hover .hh-swish { animation: hh-swish 1.8s ease-out; }
.hero-hello { pointer-events: auto; }
@keyframes hh-pop { from { opacity: 0; transform: translateY(30%) scale(.6) rotate(-6deg); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes hh-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hh-wave { from { transform: rotate(0deg); } to { transform: rotate(-16deg); } }
@keyframes hh-swish { 0% { opacity: 0; transform: scale(.6); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js .hero-hello, .js .hero-hello * { animation: none !important; } }
:root[data-motion="off"] .hero-hello, :root[data-motion="off"] .hero-hello * { animation: none !important; }
.kicker { display: flex; align-items: center; gap: .6rem; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.spark { width: 1.4rem; height: 1.4rem; flex: none; fill: var(--orange); }
.js .spark { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-title { font-size: clamp(3.5rem, 11vw, 10rem); line-height: .9; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: end; justify-content: space-between; }
.hero-sub { max-width: 34ch; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.4; }
.facts { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.facts div { display: grid; gap: .25rem; }
.facts dt { order: 2; font-size: .8125rem; line-height: 1.3; max-width: 16ch; }
.facts dd { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.facts .plus { color: var(--orange); } /* large text: 3.6:1 passes */

/* Proximity type (c.js sets --wght per word) */
[data-proximity] .w { display: inline-block; font-weight: calc(var(--wght, 700) + 100); transition: font-weight .25s ease-out; }

/* ---------- Selected work: chapter pages ---------- */
.work { padding: clamp(4rem, 9vw, 8rem) 0 0; }
.work-head { display: flex; align-items: flex-start; gap: .75rem; padding: 0 var(--gutter); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.work-head h2 { font-size: clamp(3rem, 9vw, 7.5rem); line-height: .9; }
.count { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--orange); font: 800 1.125rem var(--text); transform: rotate(8deg); }

.chapters { display: grid; }
.chapter { position: sticky; top: var(--bar-h); min-height: calc(100svh - var(--bar-h)); display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-content: start; padding: clamp(1.75rem, 4vw, 3rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); border-radius: 2.25rem 2.25rem 0 0; background: var(--surface, var(--white)); transform-origin: 50% 0; }
.chapter:nth-child(1) { --surface: var(--lavender); }
.chapter:nth-child(2) { --surface: var(--yellow); }
.chapter:nth-child(3) { --surface: var(--white); box-shadow: inset 0 1.5px 0 var(--ink); }
.chapter:nth-child(4) { --surface: var(--lavender); }
.chapter:nth-child(5) { --surface: var(--yellow); }
.chapter:nth-child(6) { --surface: var(--white); box-shadow: inset 0 1.5px 0 var(--ink); }
@supports (animation-timeline: view()) {
  .chapter:not(:last-child) { animation: page-under linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit-crossing 100%; }
  @keyframes page-under { to { transform: scale(.94); filter: brightness(.92); } }
}

.tracker { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tracker ol { display: flex; gap: .25rem; }
.tracker li { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; letter-spacing: 0; }
.tracker li[aria-current] { background: var(--orange); }

.chapter-body { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.chapter-text { display: grid; gap: 1rem; align-content: start; }
.chapter-num { font-size: clamp(4rem, 10vw, 8rem); line-height: .8; }
.chapter-title { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: .98; max-width: 16ch; }
.chapter-title a { text-decoration: none; }
.chapter-title a::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; cursor: pointer; } /* whole card is the target, screenshot and sticker included */
.chapter-title a:focus-visible { outline: none; }
.chapter:has(.chapter-title a:focus-visible) { outline: 3px solid var(--ink); outline-offset: -6px; }
.context { font-size: .9375rem; }
.summary { max-width: 46ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .35rem .8rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-size: .875rem; font-weight: 600; }
.go { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; margin-top: .5rem; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; }
.go svg { width: 1.1rem; height: 1.1rem; stroke: var(--orange); stroke-width: 2.5; fill: none; transition: transform .35s var(--ease-out); }
.chapter:hover .go svg, .chapter:focus-within .go svg { transform: translateX(.35rem) rotate(-20deg); }
/* Project images: rounded, and still on hover (the arrow is the only hover cue) */
.chapter-img { position: relative; z-index: -1; aspect-ratio: 4 / 3; border-radius: 2.25rem; } /* below the card-wide link, also where the title link is its own layer (page transition) */
.chapter-img.ph-box { background-color: var(--white); }
.chapter:nth-child(3) .chapter-img.ph-box, .chapter:nth-child(6) .chapter-img.ph-box { background-color: var(--lavender); }
.chapter-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Dark course screenshots: show the whole screen on the course's own background */
.chapter-img.is-screen img { object-fit: contain; background: #13131b; }
/* Project screenshots: the frame hugs the image, no letterbox bars */
.chapter-img.is-screen { aspect-ratio: auto; align-self: center; }
.chapter-img.is-screen img { display: block; height: auto; object-fit: fill; background: none; box-shadow: 0 0 0 1.5px var(--ink); }
.chapter .tape { right: 1.25rem; top: -1rem; transform: rotate(5deg); }
.proto-note { padding: 1rem var(--gutter) 0; font-size: .8125rem; color: var(--ink-soft); }

/* ---------- About: intro, path, how I work, outside work ---------- */
.about { position: relative; z-index: 1; background: var(--white); padding: clamp(4rem, 9vw, 8rem) var(--gutter) 0; display: grid; gap: clamp(4rem, 9vw, 7rem); border-top: 1.5px solid var(--ink); }
.eyebrow { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.about-intro { display: grid; gap: 2.5rem; align-items: center; }
.about-title { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .95; max-width: 14ch; }
.about-lead { margin-top: 1.5rem; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.55; }
.about-portrait { position: relative; width: min(100%, 600px); justify-self: center; isolation: isolate; }
.about-portrait img { position: relative; z-index: 1; width: 92%; margin: 4% auto 0; }
.ring-line { z-index: 0; }
.ring-line .l-ribbon { stroke-width: 30; }
.ring-line .l-ribbon-edge { stroke-width: 33; }
.ring-line .l-orange { stroke-width: 6; }
.portrait-tape { left: 0; bottom: 10%; transform: rotate(-8deg); }
/* The orange loop is written by her pencil: it starts at the pencil tip, draws out once on arrival,
   and is written again when the picture is hovered. Square-cut ends, like the other lines */
.ring-line .pen-loop { stroke-width: 7; }
.js .lines.is-in .pen-loop { transition: stroke-dashoffset 1.4s cubic-bezier(.5, 0, .4, 1) 2.2s; }
.js .about-portrait:hover .lines.is-in .pen-loop { animation: pen-write 1.3s cubic-bezier(.5, 0, .4, 1); }
@keyframes pen-write { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js .about-portrait:hover .pen-loop { animation: none; } }
:root[data-motion="off"] .about-portrait:hover .pen-loop { animation: none; }

/* The path: a winding ribbon that draws left to right; a stop sits on the road above each column of text */
.path-map { --road-h: clamp(7rem, 11vw, 10rem); position: relative; padding-top: calc(var(--road-h) + 1.5rem); margin-top: 1rem; }
.path-road { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: var(--road-h); overflow: visible; }
.path-road path { fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
.path-road .road { stroke: var(--lavender); stroke-width: 40; }
.path-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.path-list li { position: relative; display: grid; gap: .5rem; align-content: start; justify-items: center; text-align: center; }
.path-list li > span:last-child { max-width: 26ch; }
.path-list li::before { content: ""; position: absolute; left: 50%; top: var(--stop-top, calc(-1.5rem - var(--road-h) * (1 - var(--y)))); width: 1.5rem; height: 1.5rem; margin: -.75rem 0 0 -.75rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px var(--white), 0 0 0 6.5px var(--ink); }
.path-now::before { background: var(--yellow) !important; }
.path-big { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; }
.path-big .plus { color: var(--orange); }
.js .path-road { clip-path: inset(-30% 100% -30% -2%); }
.js .path.is-in .path-road { clip-path: inset(-30% -2% -30% -2%); transition: clip-path 2.4s cubic-bezier(.45, .05, .55, .95); }
.js .path-list li { translate: 0 .75rem; }
.js .path.is-in .path-list li { opacity: 1; translate: 0 0; transition: opacity .35s, translate .6s cubic-bezier(.3, 1.6, .5, 1); }
.js .path.is-in .path-list li:nth-child(1) { transition-delay: .35s; }
.js .path.is-in .path-list li:nth-child(2) { transition-delay: .95s; }
.js .path.is-in .path-list li:nth-child(3) { transition-delay: 1.55s; }
.js .path.is-in .path-list li:nth-child(4) { transition-delay: 2.15s; }

/* How my brain works (CliftonStrengths, in her own words) */
.brain { margin: 0 calc(-1 * var(--gutter)); padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); background: var(--yellow); }
.brain-head { display: grid; gap: .5rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.brain-title { font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1; max-width: 22ch; }
.brain-list li { display: grid; gap: .75rem 2rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-top: 1.5px solid var(--ink); }
.brain-list li:last-child { border-bottom: 1.5px solid var(--ink); }
.brain-n { font-size: 1rem; }
.brain-say { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.02; max-width: 18ch; }
.brain-list li > div { display: grid; gap: .75rem; justify-items: start; align-content: start; }
.brain-list li > div p { max-width: 40ch; }
.brain-tag { display: inline-flex; padding: .45rem .9rem; font: 800 .8125rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); clip-path: polygon(0 0, 100% 6%, 97% 50%, 100% 100%, 2% 94%, 4% 50%); transform: rotate(-3deg); }
.brain-list li:nth-child(2) .brain-tag { background: var(--lavender); transform: rotate(2deg); }
.brain-list li:nth-child(3) .brain-tag { background: var(--orange); } /* black on orange 5.6:1 */
.brain-list li:nth-child(4) .brain-tag { transform: rotate(3deg); }
.brain-list li:nth-child(5) .brain-tag { background: var(--lavender); }
.js .brain-list li { opacity: 0; translate: 0 1.25rem; }
.js .brain-list li.is-in { opacity: 1; translate: 0 0; transition: opacity .4s, translate .7s var(--ease-out); }
.js .brain-list li .brain-tag { scale: .6; opacity: 0; }
.js .brain-list li.is-in .brain-tag { scale: 1; opacity: 1; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1) .25s, opacity .2s .25s; }

/* No gap between the two bands: cancel the About grid gap */
.brain + .how { margin-top: calc(-1 * clamp(4rem, 9vw, 7rem)); }
.how { position: relative; margin: 0 calc(-1 * var(--gutter)); padding: clamp(2.5rem, 5vw, 4rem) var(--gutter); background: var(--white); }
.how-eyebrow { display: flex; align-items: center; gap: .6rem; }
.how-eyebrow .spark { width: 1.2rem; height: 1.2rem; }
/* How I work: her drawing, annotated. Each skill is a plain label pointing at the tool it stands for,
   with a single pencil arrow. */
.how-board { position: relative; display: grid; gap: 1.5rem; margin-top: 1rem; }
.how-art { position: relative; width: min(100%, 600px); justify-self: center; }
.how-art img { display: block; width: 100%; height: auto; }
/* The drawing, animated: cut into its nine real pieces (her figure and eight tools).
   The tools float gently around her, the pencil writes. Off for reduced motion. */
.ha-layers, .how .ha-pause { display: none; }
.how-art .ha-layers { position: absolute; inset: 0; }
/* Story: the tools are thought up. They start inside her head and spill out to their places,
   then each has its own small moment on its own clock. They drift with the pointer by depth (--z),
   and hovering a label makes its tool answer. Idle motion = transform; entrance, pointer, hover = translate/scale. */
.how-art { container-type: inline-size; }
.how-art .ha-l { position: absolute; width: auto; height: auto; --hot: 1;
  translate: calc(var(--px, 0) * var(--z, 0) * 1.6cqw) calc(var(--py, 0) * var(--z, 0) * 1.6cqw); scale: var(--hot);
  animation: var(--a) infinite; animation-delay: calc(var(--i) * -1.3s);
  transition: opacity .3s calc(var(--i) * 110ms), translate 1s cubic-bezier(.25, 1.35, .45, 1) calc(var(--i) * 110ms), scale 1s cubic-bezier(.25, 1.35, .45, 1) calc(var(--i) * 110ms); }
.how-art.is-live .ha-l { transition: opacity .3s, translate .5s cubic-bezier(.2, .7, .2, 1), scale .35s cubic-bezier(.3, 1.6, .5, 1); }
.how-art .ha-l.is-hot { --hot: 1.14; z-index: 2; }
.how-art .ha-figure { --a: ha-breathe 4s ease-in-out alternate; transform-origin: 50% 100%; }
.how-art .ha-question { --a: ha-hop 4.6s ease-in-out; transform-origin: 50% 100%; }
.how-art .ha-magnifier { --a: ha-search 6s ease-in-out; transform-origin: 70% 80%; }
.how-art .ha-start { --a: ha-gate 5.2s ease-in-out; transform-origin: 50% 100%; }
.how-art .ha-bulb { --a: ha-click 5.6s ease-in-out; transform-origin: 50% 80%; }
.how-art .ha-flow { --a: ha-tug 4.2s ease-in-out; }
.how-art .ha-pencil { --a: ha-scribble 3.4s linear; transform-origin: 15% 90%; }
.how-art .ha-wireframe { --a: ha-pinned 6.4s ease-in-out; transform-origin: 50% 0; }
.how-art .ha-people { --a: ha-chat 3.8s ease-in-out; transform-origin: 50% 100%; }
@keyframes ha-breathe { to { transform: scale(1.012, 1.02); } }
/* question: waits, crouches, hops, lands with a squash */
@keyframes ha-hop { 0%, 62%, 100% { transform: none; } 68% { transform: scale(1.12, .86); } 76% { transform: translateY(-22%) rotate(-10deg) scale(.94, 1.08); } 84% { transform: scale(1.1, .9); } 90% { transform: rotate(4deg); } }
/* magnifier: looks around in a small loop, pausing to peer */
@keyframes ha-search { 0%, 100% { transform: none; } 20% { transform: translate(10%, -6%) rotate(8deg); } 35% { transform: translate(10%, -6%) rotate(8deg) scale(1.08); } 55% { transform: translate(-6%, -12%) rotate(-6deg); } 75% { transform: translate(-10%, 2%) rotate(-10deg); } }
/* start gate: a little nod, like "ready, go" */
@keyframes ha-gate { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-4deg) translateY(-3%); } 82% { transform: rotate(3deg); } 88% { transform: rotate(-1deg); } }
/* bulb: floats, then the idea clicks: a quick pop and shake */
@keyframes ha-click { 0%, 100% { transform: none; } 40% { transform: translateY(-8%); } 72% { transform: translateY(-4%); } 76% { transform: scale(1.22) rotate(-8deg); } 80% { transform: scale(.94) rotate(6deg); } 84% { transform: scale(1.06) rotate(-3deg); } 88% { transform: none; } }
/* flow cards: tug on the string between them */
@keyframes ha-tug { 0%, 100% { transform: none; } 30% { transform: rotate(-4deg) translateX(-4%); } 45% { transform: rotate(3deg) translateX(5%) scaleX(1.04); } 60% { transform: rotate(-1deg); } }
/* pencil: scribbles in short bursts, then rests */
@keyframes ha-scribble { 0%, 55%, 100% { transform: none; } 60% { transform: rotate(-7deg) translate(-6%, 4%); } 65% { transform: rotate(4deg) translate(5%, 0); } 70% { transform: rotate(-6deg) translate(-4%, 5%); } 75% { transform: rotate(5deg) translate(6%, 1%); } 80% { transform: rotate(-3deg) translate(-2%, 4%); } 86% { transform: none; } }
/* wireframe: a pinned sheet that catches a draught */
@keyframes ha-pinned { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(2.5deg) skewX(-1deg); } 55% { transform: rotate(-1.5deg); } 75% { transform: rotate(1deg) skewX(1deg); } }
/* people: two quick bounces, like a conversation */
@keyframes ha-chat { 0%, 50%, 100% { transform: none; } 56% { transform: translateY(-9%); } 62% { transform: none; } 68% { transform: translateY(-6%); } 74% { transform: none; } }
.ha-pause { position: absolute; top: calc(clamp(2.5rem, 5vw, 4rem) - 1rem); right: var(--gutter); z-index: 3; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.how-art.is-paused .ha-l { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  :root.js:not([data-motion="off"]) .how-art .ha-layers { display: block; }
  :root.js:not([data-motion="off"]) .how .ha-pause { display: inline-flex; }
  :root.js:not([data-motion="off"]) .how-art > img { visibility: hidden; }
  :root.js .how:not(.is-in) .ha-l:not(.ha-figure) { opacity: 0; scale: .15; translate: calc(var(--dx) * 1cqw) calc(var(--dy) * 1cqw); }
  :root.js .how:not(.is-in) .ha-figure { opacity: 0; }
}
.how-links { display: none; }
.how-notes { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; }
.hn { font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.15; white-space: nowrap; }
.js .hn { opacity: 0; transition: opacity .35s; transition-delay: calc(var(--i) * 90ms + 1.3s); }
.js .how.is-in .hn { opacity: 1; }
@media (min-width: 900px) {
  .how-board { display: block; aspect-ratio: 1200 / 560; max-width: 1240px; margin: 1rem auto 0; }
  .how-art { position: absolute; left: 25%; top: 13.4%; width: 50%; }
  .how-notes { display: contents; }
  .hn { position: absolute; z-index: 2; left: var(--x); top: var(--y); translate: -50% -50%; font-size: clamp(.9375rem, 1.4vw, 1.3125rem); }
  .how-links { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .how-links path { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: butt; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .js .how-links path { stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; }
  .js .how.is-in .how-links path { stroke-dashoffset: 0; opacity: 1; transition: stroke-dashoffset .5s var(--ease-in-out) 1.6s, opacity 0s 1.6s; }
  .js .how.is-in .how-links path.hd { transition-delay: 2.05s, 2.05s; transition-duration: .15s; }
}
@media (prefers-reduced-motion: reduce) { .hn, .how-links path { transition: none !important; } }
:root[data-motion="off"] .hn, :root[data-motion="off"] .how-links path { transition: none !important; }

.outside { display: grid; gap: 1rem; justify-items: start; padding-bottom: clamp(4rem, 9vw, 7rem); }
.outside .eyebrow { margin: 0; }
.outside-text { max-width: 30ch; font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.2 var(--title), Arial, sans-serif; letter-spacing: -.01em; }
/* Outside work: a smaller copy of the Branding & visuals hero illustration (her own marks),
   assembled once when the section is reached. No sticker here. */
.out-illo { position: relative; width: min(72%, 26rem); aspect-ratio: 1 / 1; justify-self: center; margin: 3.5rem 0 4rem; }
.outside .out-illo .b-doodle { inset: auto; left: -12%; bottom: -11%; width: 27%; height: auto; z-index: 4; }
.out-illo .b-doodle .l-orange { stroke-width: 5; }
   Brand colours are the originals from each project's files. */
.out-illo { overflow: visible; }
.out-illo .bi { position: absolute; display: block; height: auto; }
.out-illo .bi-krzywa { left: 4%; top: 6%; width: 60%; fill: #A46454; }
.out-illo .bi-sagre { left: 1%; top: 29%; width: 61%; padding: 6% 6.5%; background: #EDDBD1; box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 0, 0, .35); --rot: -4deg; transform: rotate(var(--rot)); }
.out-illo .bi-sagre svg { display: block; width: 100%; height: auto; fill: #C54F1D; }
.out-illo .bi-przystan { right: -1%; top: 58%; width: 53%; mix-blend-mode: multiply; --rot: 3deg; transform: rotate(var(--rot)); }
.out-illo .bi-flower { left: 3%; bottom: 3%; width: 28%; fill: #27358A; }
.out-illo .bi-cut { filter: drop-shadow(0 .6rem .8rem rgba(0, 0, 0, .18)); }
.out-illo .bi-hand { right: -9%; top: -3%; width: 43%; --rot: -8deg; --fx: 30%; --fy: -40%; transform: rotate(var(--rot)); }
.out-illo .bi-birds { right: 8%; top: 35%; width: 20%; --rot: 4deg; --fx: 10%; --fy: -60%; transform: rotate(var(--rot)); }
.out-illo .bi-daisy { left: 55%; top: 21%; width: 18%; --rot: 12deg; --fx: -20%; --fy: -50%; transform: rotate(var(--rot)); }
.out-illo .bi-fig { left: 36%; bottom: 2%; width: 19%; --rot: -10deg; --fx: -10%; --fy: 60%; transform: rotate(var(--rot)); }
.out-illo .bi-pear { right: 2%; bottom: -5%; width: 17%; --rot: 6deg; --fx: 30%; --fy: 50%; transform: rotate(var(--rot)); }

/* Timeline (about 3.5s, plays once) */
.out-illo .bi-krzywa path { animation: bi-rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.25s + var(--k) * 70ms); }
.out-illo .bi-sagre { animation: bi-card .7s cubic-bezier(.2, .9, .3, 1.1) .5s both; }

.out-illo .bi-przystan { animation: bi-card .7s cubic-bezier(.2, .9, .3, 1.1) 1.1s both, bi-wipe 1.1s cubic-bezier(.5, 0, .3, 1) 1.3s both; }
.out-illo .bi-flower { transform-origin: 50% 50%; animation: bi-bloom 1.1s cubic-bezier(.2, .9, .3, 1.15) 1.6s both; }
.out-illo .bi-cut { animation: bi-drop .9s cubic-bezier(.2, .9, .3, 1.12) both; }
.out-illo .bi-hand { animation-delay: 2.1s; }
.out-illo .bi-birds { animation-delay: 2.35s; }
.out-illo .bi-daisy { animation-delay: 2.5s; }
.out-illo .bi-fig { animation-delay: 2.65s; }
.out-illo .bi-pear { animation-delay: 2.8s; }
@keyframes bi-rise { from { opacity: 0; transform: translateY(18%); } to { opacity: 1; transform: none; } }
@keyframes bi-card { from { opacity: 0; transform: translateY(14%) rotate(calc(var(--rot) * -2)) scale(.94); } to { opacity: 1; transform: rotate(var(--rot)); } }
@keyframes bi-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bi-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bi-bloom { from { opacity: 0; transform: scale(.2) rotate(-120deg); } to { opacity: 1; transform: none; } }
@keyframes bi-drop { from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(calc(var(--rot) * -3)); } to { opacity: 1; transform: rotate(var(--rot)); } }
@media (prefers-reduced-motion: reduce) { .out-illo *, .out-illo { animation: none !important; } }
:root[data-motion="off"] .out-illo, :root[data-motion="off"] .out-illo * { animation: none !important; }
/* More pieces from her collages (cut from the Krzywa "Polska naturalnie" layers), landing after the rest */
.out-illo .bi-wheat { left: -10%; top: -9%; width: 15%; --rot: -12deg; --fx: -30%; --fy: -40%; transform: rotate(var(--rot)); animation-delay: 3s; }
.out-illo .bi-lily { left: 30%; top: -13%; width: 17%; --rot: 8deg; --fx: 0%; --fy: -60%; transform: rotate(var(--rot)); animation-delay: 3.15s; }
.out-illo .bi-bee { left: 66%; top: 6%; width: 8%; --rot: -14deg; --fx: 40%; --fy: -50%; transform: rotate(var(--rot)); animation-delay: 3.3s; }
.out-illo .bi-strawberry { right: -13%; top: 36%; width: 13%; --rot: 10deg; --fx: 60%; --fy: 0%; transform: rotate(var(--rot)); animation-delay: 3.45s; }
.out-illo .bi-plums { left: -15%; top: 50%; width: 16%; --rot: -6deg; --fx: -60%; --fy: 10%; transform: rotate(var(--rot)); animation-delay: 3.6s; }
.out-illo .bi-fairy { left: 35%; top: 55%; width: 15%; --rot: 5deg; --fx: 0%; --fy: 60%; transform: rotate(var(--rot)); animation-delay: 3.75s; }
.js .outside:not(.is-in) .out-illo, .js .outside:not(.is-in) .out-illo * { animation-play-state: paused; }
@media (min-width: 900px) {
  .outside { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
  .outside > :not(.out-illo) { grid-column: 1; }
  .outside > .eyebrow { grid-row: 2; } .outside > .outside-text { grid-row: 3; } .outside > .pill-link { grid-row: 4; }
  .out-illo { grid-column: 2; grid-row: 1 / -1; justify-self: center; width: clamp(20rem, 30vw, 32rem); margin: 4rem 0; }
}
.pill-link svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--orange); stroke-width: 2.5; transition: transform .35s var(--ease-out); }
.pill-link:hover svg, .pill-link:focus-visible svg { stroke: var(--ink); transform: translateX(.3rem); }

.menu-side { margin-top: 1.5rem; }
.menu .menu-side a { font: 800 clamp(1.5rem, 4vw, 2.5rem)/1.1 var(--title), Arial, sans-serif; letter-spacing: -.01em; }
.menu .menu-side a span { text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.contact .lines { z-index: -1; }
.contact-title { font-size: clamp(4.5rem, 17vw, 15rem); line-height: .85; }
.contact-lead { margin: 1.5rem 0 2rem; font-size: clamp(1.125rem, 2vw, 1.5rem); max-width: 38ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.pill-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none; transition: transform .3s var(--ease-out), background-color .25s, color .25s; }
.pill-link:hover, .pill-link:focus-visible { background: var(--yellow); color: var(--ink); transform: rotate(-3deg); }
.pill-off { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; border: 1.5px dashed var(--ink); font-weight: 600; }

.foot { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem var(--gutter); border-top: 1.5px solid var(--ink); font-size: .8125rem; }
.foot .sig { width: 120px; }

@media (min-width: 900px) {
  .chapter-body { grid-template-columns: 5fr 6fr; }
  .about-intro { grid-template-columns: 6fr 6fr; }
  .brain-list li { grid-template-columns: 4rem minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}
/* Pages taller than the screen can't stick (their lower half would be covered before it is read):
   on small or short screens the chapters overlap like loose pages and scroll normally. */
@media (max-width: 899px), (max-height: 760px) {
  .chapter { position: relative; top: auto; min-height: 0; animation: none !important; }
  .chapter + .chapter { margin-top: -2.25rem; }
}
@media (max-width: 899px) {
  .path-map { padding: 0 0 0 2.75rem; }
  .path-road,   .path-map::before { content: ""; position: absolute; left: .4rem; top: .25rem; bottom: .25rem; width: 1.25rem; border-radius: 1rem; background: var(--lavender); }
  .path-list { grid-template-columns: 1fr; gap: 2.25rem; }
  .path-list li { justify-items: start; text-align: left; }
  .path-list li::before { left: -2.75rem; top: .6rem; margin: 0 0 0 .3rem; }
}
@media (max-width: 640px) {
  .hero-mark { width: 68vw; top: 24%; left: 44%; }
  .hero-hello { left: 70%; top: 88%; width: 40%; }
  .hero-tape { right: 6%; top: calc(27% + 13vw); }
  .kicker { background: var(--white); width: fit-content; padding-right: .3em; }
  .hero-sub span { background: var(--white); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .facts dd { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { .chapter { animation: none !important; } }
:root[data-motion="off"] .chapter { animation: none !important; }
:root[data-motion="off"] .spark { animation: none; }
.how { overflow: clip; }

/* Deploy fix: between 900 and 1199px the Outside work illustration was wider than its column,
   so the strawberry cut-out pushed past the right edge of the page. */
@media (min-width: 900px) and (max-width: 1199px) {
  .outside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .out-illo { width: min(clamp(20rem, 30vw, 32rem), 76%); }
}
