/* Global stylesheet, served as written. The order matters: later blocks refine earlier ones.
   It is linked from public/ on purpose: the build's CSS minifier drops the scroll-driven animation properties. */
/* Gilroy is a commercial face: local files for this mockup only, the live site needs a web licence. */
  
  
  

  :root {
    --ink: #13212c; --soft: #495c6b; --snow: #f4f8fb; --white: #ffffff; --line: #d8e3ec;
    --sky-top: #96bfdc; --sky-low: #eaf3f8; --accent: #17596b; --sun: #e3b23c; --night: #12202c;
    --pad: clamp(1.25rem, 4vw, 4rem);
    --body: "Onest Variable", Onest, "Helvetica Neue", Arial, sans-serif;
    /* headline face: family, weight, size factor, tracking, line height */
    --disp: "Red Hat Display", "Helvetica Neue", Arial, sans-serif; --dw: 800; --ds: 1; --dt: -.03em; --dlh: 1.05;
    /* small titles (cards, list entries) */
    --sm: var(--disp); --smw: 700; --smt: -.01em; --sms: 1;
    /* labels: eyebrows, years, chips */
    --label: var(--body); --ls: 1; --lt: 0;
  }
  html[data-font="onest"] { --disp: "Onest Variable", Onest, "Helvetica Neue", Arial, sans-serif; --dw: 700; --dt: -.035em; --smw: 600; --smt: -.015em; }
  html[data-font="gilroy"] { --disp: "Gilroy Local", "Helvetica Neue", Arial, sans-serif; --dw: 800; --dt: -.025em; --smw: 700; }
  html[data-font="kanit"] { --disp: "Kanit", "Helvetica Neue", Arial, sans-serif; --dw: 600; --dt: -.012em; --ds: .97; --dlh: 1.08; --smw: 500; --smt: 0; }
  html[data-font="montaga"] { --disp: "Montaga", Georgia, serif; --dw: 400; --dt: -.012em; --ds: 1.04; --dlh: 1.1; --smw: 400; --smt: 0; --sms: 1.08; }
  html[data-font="instrument"] { --disp: "Instrument Serif", Georgia, serif; --dw: 400; --dt: -.012em; --ds: 1.2; --dlh: 1; --smw: 400; --smt: 0; --sms: 1.22; }
  html[data-font="pixodine"] { --disp: "Pixodine 2 Web", "Onest Variable", Onest, sans-serif; --dw: 400; --dt: 0; --ds: 1.04; --dlh: 1.1; --sm: var(--body); --smw: 600; }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--snow); -webkit-font-smoothing: antialiased; padding-bottom: 0; }
  ::selection { background: var(--accent); color: #fff; }
  a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: .12em; text-underline-offset: .22em; }
  a:hover { text-decoration-thickness: .2em; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  svg { display: block; }
  .wrap { max-width: 74rem; margin: 0 auto; padding-inline: var(--pad); }

  h1, h2, h3, .dsp { font-family: var(--disp); font-weight: var(--dw); letter-spacing: var(--dt); line-height: var(--dlh); font-synthesis: none; text-wrap: balance; }
  h1 { font-size: calc(clamp(2.3rem, 5vw, 4.1rem) * var(--ds)); }
  h2 { font-size: calc(clamp(1.9rem, 3.6vw, 2.8rem) * var(--ds)); }
  h3 { font-size: calc(clamp(1.4rem, 2.2vw, 1.8rem) * var(--ds)); }
  h4, .dsm { font-family: var(--sm); font-weight: var(--smw); letter-spacing: var(--smt); font-size: calc(1.15rem * var(--sms)); line-height: 1.22; font-synthesis: none; text-wrap: balance; }
  .lab { font-family: var(--label); font-size: calc(.84rem * var(--ls)); letter-spacing: var(--lt); font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
  .sub { margin-top: .8rem; max-width: 38rem; color: var(--soft); }

  /* top: sky, nav, panorama. The mountains sit above the text, nothing overlaps them. */
  .top { background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-low) 100%); }
  .nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; }
  .nav .name { font-family: var(--disp); font-weight: var(--dw); font-size: calc(1.1rem * var(--ds)); text-decoration: none; letter-spacing: -.01em; font-synthesis: none; }
  .nav ul { display: flex; gap: .15rem; padding: .3rem; background: rgba(255, 255, 255, .72); border-radius: 99px; }
  .nav ul a { display: block; padding: .4rem .9rem; border-radius: 99px; text-decoration: none; font-weight: 500; font-size: .96rem; transition: background-color .2s; }
  .nav ul a:hover { background: #fff; }
  .art svg { width: 100%; }
  .art-hero svg { height: clamp(12.5rem, 23.6vw, max(24rem, 21.5vw)); }
  .art-divider { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
  .art-divider svg, .spot svg { height: auto; }

  section { padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; }
  .btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding: .8rem 1.35rem; border-radius: 99px; transition: background-color .2s; }
  .btn:hover { background: #24384a; }
  .cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
  .card { background: var(--white); border-radius: 22px; padding: clamp(1.4rem, 2.6vw, 2.25rem); box-shadow: 0 1px 0 var(--line), 0 24px 40px -32px rgba(40, 80, 120, .5); min-width: 0; }
  .me { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--sky-top), var(--sky-low)); }
  .me img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
  .chip { align-self: start; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-family: var(--label); font-size: calc(.82rem * var(--ls)); font-weight: 600; padding: .35rem .75rem; border-radius: 99px; background: var(--snow); box-shadow: inset 0 0 0 1px var(--line); }
  .chip i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent); }
  .chip.sun i { background: var(--sun); }
  .chip.open i { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }

  /* hut scene and footer */
  .art-hut { margin-top: clamp(3.5rem, 8vw, 6rem); }
  .art-hut svg { height: clamp(17rem, 37vw, max(36rem, 29vw)); }
  footer { background: var(--night); color: #e6eef5; padding-block: clamp(2rem, 5vw, 3.5rem) 5.5rem; }
  footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
  footer h2 { max-width: 22ch; }
  footer p { margin-top: .8rem; color: #a9bccb; max-width: 32rem; }
  footer a { text-decoration-color: var(--sun); }
  footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
  footer small { grid-column: 1 / -1; color: #a9bccb; font-size: .9rem; border-top: 1px solid #2a3c4b; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

  /* mockup tool, not part of the design */

  @media (max-width: 900px) { footer .wrap { grid-template-columns: 1fr; } }
  @media (max-width: 560px) { .nav ul li:nth-child(n+3) { display: none; } }


  /* T1 Klar: plain and direct. Facts strip, cards, career as a timeline, education as rows. */
  .intro { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: center; }
  .intro .me { max-width: 22rem; justify-self: end; width: 100%; }
  .intro h1 { margin-top: .9rem; }
  .lede { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: #2b3f4f; }

  .facts { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
  .facts li { padding: 1.4rem 1.5rem 1.4rem 0; display: flex; gap: .9rem; align-items: baseline; }
  .facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .facts b { font-family: var(--disp); font-weight: var(--dw); font-size: calc(2.2rem * var(--ds)); line-height: 1; letter-spacing: var(--dt); font-synthesis: none; }
  .facts span { color: var(--soft); font-size: .95rem; line-height: 1.4; }

  .runs { margin-top: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .run { display: flex; flex-direction: column; gap: .9rem; }
  .role { display: block; margin-top: .3rem; font-weight: 500; color: var(--soft); font-size: .98rem; }

  .line { margin-top: clamp(2rem, 4vw, 3rem); border-left: 2px solid var(--line); margin-left: .4rem; }
  .line > li { position: relative; display: grid; grid-template-columns: 9rem minmax(0, 20rem) minmax(0, 1fr); gap: .75rem clamp(1.5rem, 4vw, 3.5rem); padding: 0 0 clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
  .line > li::before { content: ""; position: absolute; left: -.5rem; top: .35rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--snow); box-shadow: inset 0 0 0 3px var(--accent); }
  .line > li:first-child::before { background: var(--accent); }
  .line .lab { padding-top: .3rem; }
  .ticks { margin-top: .9rem; display: grid; gap: .5rem; color: var(--soft); }
  .ticks li { position: relative; padding-left: 1.3rem; }
  .ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: .6rem; height: 2px; background: var(--accent); }
  .ticks strong { color: var(--ink); }
  .cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .cases p { margin-top: .5rem; color: var(--soft); font-size: .98rem; }
  .mini { margin: 1.75rem 0 1rem; font-weight: 600; }
  .line > li:last-child { padding-bottom: .5rem; }

  .posts { margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: 0; overflow: hidden; }
  .posts a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1.5rem; padding: 1.2rem clamp(1.25rem, 2.6vw, 2.25rem); text-decoration: none; transition: background-color .2s; }
  .posts li + li a { border-top: 1px solid var(--line); }
  .posts a:hover { background: var(--snow); }
  .posts a:hover .dsm { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .1em; text-underline-offset: .2em; }
  .posts .x { grid-column: 1; color: var(--soft); font-size: .98rem; }
  .posts .k { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .85rem; font-weight: 500; color: var(--soft); white-space: nowrap; }

  .head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; }
  .head .spot svg { width: clamp(6rem, 12vw, 9.5rem); }
  .rows { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
  .rows li { display: grid; grid-template-columns: 9rem minmax(0, 5fr) minmax(0, 6fr); gap: .4rem clamp(1.5rem, 4vw, 3.5rem); padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
  .rows .lab { padding-top: .25rem; }
  .rows .where { display: block; margin-top: .3rem; color: var(--soft); }
  .rows dl { font-size: .96rem; }
  .rows dt { font-weight: 600; }
  .rows dd { color: var(--soft); }
  .rows dd + dt { margin-top: .5rem; }

  .off { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: center; }
  .off p { margin-top: 1.1rem; max-width: 36rem; }
  .off p + p { color: var(--soft); }
  .off .spot svg { max-width: 26rem; margin-inline: auto; }

  @media (max-width: 900px) {
    .intro, .off, .runs, .cases { grid-template-columns: 1fr; }
    .intro .me { justify-self: start; max-width: 16rem; order: -1; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
    .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .line > li, .rows li { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .facts li { flex-direction: column; gap: .3rem; padding-right: .75rem; }
    .facts li + li { padding-left: .9rem; }
    .facts li:nth-child(3) { padding-left: 0; }
    .head { grid-template-columns: 1fr; } .head .spot { display: none; }
    .posts a { grid-template-columns: 1fr; } .posts .k { grid-column: 1; grid-row: auto; }
  }

  /* T5: the combination. T1 hero with the T3 headline, T1 cards and writing, two-column career, T2 off piste. */
  .nav .name { font-family: var(--body); font-weight: 600; font-size: 1.05rem; white-space: nowrap; letter-spacing: -.01em; }
  @media (max-width: 560px) { .nav .name { font-size: .98rem; } .nav ul a { padding-inline: .7rem; } }
  h1 { font-size: calc(clamp(1.9rem, 3.4vw, 2.75rem) * var(--ds)); }
  .intro h1 { margin-top: .7rem; max-width: 17em; }
  .intro .me { max-width: 19rem; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 7px #fff, 0 26px 40px -24px rgba(40, 80, 120, .55); margin-right: 7px; }
  .ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .icl { display: flex; align-items: center; gap: .4rem; }
  .asc .colh { font-size: 1.05rem; }
  .asc .colh .ic { width: 1.35em; height: 1.35em; color: var(--accent); }
  .asc .colh.st .ic { color: #b98a2a; }
  .asc { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); }
  .asc .colh { margin: 0 0 1.5rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
  .asc ol > li::before { content: ""; width: .85rem; height: .85rem; border-radius: 50%; background: var(--accent); flex: none; }
  .asc ol { border-left: 2px solid var(--line); margin-left: .4rem; }
  .asc ol > li { position: relative; padding: 0 0 2.25rem 1.75rem; }
  .asc ol > li:last-child { padding-bottom: 0; }
  .asc ol > li::before { position: absolute; left: -.5rem; top: .3rem; background: var(--snow); box-shadow: inset 0 0 0 3px var(--accent); }
  .asc ol.st > li::before { border-radius: 3px; box-shadow: inset 0 0 0 3px var(--sun); }
  .asc ol > li.now::before { background: var(--accent); }
  .asc h3 { margin-top: .25rem; font-size: calc(1.3rem * var(--ds)); line-height: 1.12; }
  .asc .org { display: block; margin-top: .3rem; font-weight: 600; }
  .asc p { margin-top: .6rem; max-width: 32rem; }
  .asc .ticks { margin-top: .7rem; font-size: .98rem; max-width: 32rem; }
  .asc dl { margin-top: .7rem; font-size: .98rem; max-width: 32rem; }
  .asc dt { font-weight: 600; margin-top: .5rem; }
  .asc dd { color: var(--soft); }
  .mini { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
  .off { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  @media (max-width: 900px) { .asc { grid-template-columns: 1fr; gap: 2.75rem; } .off .spot { order: 2; } }

  /* T6: copy variants. Same layout as T5, a few additions. */
  .run .ticks { margin-top: 0; font-size: .96rem; }
  .run .more { margin-top: auto; padding-top: .3rem; font-weight: 600; font-size: .96rem; }
  .run .note { font-size: .93rem; color: var(--soft); }
  .asc .ctx { color: var(--soft); font-size: .98rem; }
  .ask { margin-top: 1.4rem; }
  .ask b { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
  .ask ul { display: flex; flex-wrap: wrap; gap: .5rem; }
  .ask .chip { background: var(--white); }
  mark.q { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .stores { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; }
  .stores span { font-weight: 500; color: var(--soft); }

  /* T8 */
  /* portrait: head at 51.4% of the source, shoulders at 52.5%. Zoomed from the top so the hand at the bottom left falls outside the circle. */
  .intro .me img { width: 100%; height: 100%; max-width: none; margin-left: -3%; margin-top: 0%; }
  footer .me img { width: 107%; height: 107%; max-width: none; margin-left: -6.6%; margin-top: 3%; }
  /* location line: larger, and closer to the header illustration */
  .intro { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
  .intro .lab { font-size: 1rem; }
  .nav .name { font-family: var(--body); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; line-height: 1; padding: .62rem .85rem .52rem; margin-left: -.85rem; border-radius: 99px; transition: background-color .2s; }
  .asc .org .nb { font-weight: 400; }
  .nav .name:hover { background: rgba(255, 255, 255, .78); }

  /* contact: a small contact page on the footer colour */
  footer { padding-block: clamp(3rem, 7vw, 5.5rem) 5.5rem; }
  footer .wrap { gap: clamp(2.5rem, 5vw, 4rem) 2rem; }
  .hello { grid-column: 1 / -1; justify-self: center; display: grid; grid-template-columns: auto minmax(0, 34rem); gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
  .hello .id { display: grid; justify-items: center; }
  .hello .me { width: clamp(7.5rem, 12vw, 10rem); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(180deg, #3b6f84, #24475a); box-shadow: 0 0 0 4px #fff; }
  footer .who { margin-top: 1rem; color: #fff; font-family: var(--disp); font-weight: var(--dw); letter-spacing: var(--dt); font-synthesis: none; font-size: calc(1.6rem * var(--ds)); line-height: 1.1; }
  footer h2 { max-width: none; }
  footer .mail { display: inline-block; margin-top: 1.3rem; font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: #fff; }
  footer .acts { margin-top: 1.5rem; max-width: none; display: flex; flex-wrap: wrap; gap: .75rem; }
  footer .btn { background: #fff; color: var(--ink); }
  footer .btn:hover { background: var(--sun); }
  footer .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #5d7285; }
  footer .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
  /* Instrument Serif is a narrow face with one width. The big headlines keep their tight setting; the small serif titles get a little air. */
  .asc h3, .asc .earlier li b, .posts .dsm { letter-spacing: .016em; }
  /* bottom row under one divider: profile links on the left, copyright and imprint on the right */
  footer .wrap { column-gap: 0; }
  footer .wrap > ul { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #2a3c4b; padding-top: 1.25rem; }
  footer small { grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: start; border-top: 0; padding-top: 1.25rem; }
  @media (max-width: 560px) { footer small { grid-row: 3; justify-self: start; padding-top: 0; margin-top: -1.5rem; } }
  @media (max-width: 700px) { .hello { grid-template-columns: 1fr; justify-self: start; } .hello .id { justify-items: start; } }

  /* scroll-driven extras, pure CSS. The scenes are stacked SVG layers; nearer layers move with the page, farther ones lag behind. */
  .l3d { position: relative; overflow: clip; }
  .l3d svg + svg { position: absolute; left: 0; top: 0; }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .art-hero.l3d svg { animation: linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
      .art-hero.l3d svg.l1 { animation-name: px-h1; } .art-hero.l3d svg.l2 { animation-name: px-h2; } .art-hero.l3d svg.l3 { animation-name: px-h3; }
      /* runs from the moment the scene enters until the very end of the page */
      /* the dark foreground stays seated on the footer; everything behind it lags, the farther the more. Linear, from the scene entering to the end of the page. */
      .art-hut .l1, .art-hut .l2, .art-hut .l3 { animation: linear both; animation-timeline: scroll(root); animation-range: calc(100% - 1100px) 100%; }
      .art-hut .l1 { animation-name: px-hut1; } .art-hut .l2 { animation-name: px-hut2; }
      .art-hut .l3 { animation-name: px-hut3; box-sizing: content-box; border-bottom: 100px solid #eef1f6; }
      .art-lift g[transform*="scale(0.9)"] { animation: px-lift linear both; animation-timeline: view(); }
      .art-lift g[transform*="scale(0.6)"] { animation: px-lift-down linear both; animation-timeline: view(); }
      .art-lift g[transform^="translate(290,"], .art-lift g[transform^="translate(560,"] { animation-name: px-lift-down2; }
      .art-lift g[transform^="translate(880,"] { animation-name: px-lift2; }
      /* the rider: down the slope in a normal stance, up the kicker, grab once airborne; the run ends just after takeoff, shortly before the scene has left the window */
      .art-rider .rd, .art-rider .rd-ride, .art-rider .rd-grab, .art-rider .rd-sh { animation: linear both; animation-timeline: view(); animation-range: cover -25% cover 100%; }
      .art-rider .rd { animation-name: px-ride; } .art-rider .rd-ride { animation-name: px-pose-ride; } .art-rider .rd-grab { animation-name: px-pose-grab; } .art-rider .rd-sh { animation-name: px-ride-sh; }
      @keyframes px-ride { 0% { transform: translate(150px, 128.0px) rotate(3deg); } 12.0% { transform: translate(199px, 130.0px) rotate(3deg); } 25.0% { transform: translate(287px, 133.5px) rotate(3deg); } 37.0% { transform: translate(388px, 137.5px) rotate(3deg); } 48.0% { transform: translate(493px, 141.7px) rotate(3deg); } 57.0% { transform: translate(586px, 147.0px) rotate(3deg); } 63.0% { transform: translate(651px, 150.8px) rotate(3deg); } 66.4% { transform: translate(690px, 153px) rotate(2deg); } 71.2% { transform: translate(745px, 152px) rotate(-8deg); } 73.7% { transform: translate(775px, 144px) rotate(-28deg); } 76% { transform: translate(802px, 125px) rotate(-38deg); } 84% { transform: translate(830px, 103px) rotate(-30deg); } 92% { transform: translate(850px, 92px) rotate(-19deg); } 100% { transform: translate(864px, 85px) rotate(-14deg); } }
      @keyframes px-pose-ride { 0%, 77.9% { opacity: 1; } 78%, 100% { opacity: 0; } }
      @keyframes px-pose-grab { 0%, 77.9% { opacity: 0; } 78%, 100% { opacity: 1; } }
      @keyframes px-ride-sh { 0%, 76% { opacity: 0; } 84%, 100% { opacity: .7; } }
      /* snow cannon: two sets of flakes leave the barrel in turns, several bursts over the scroll */
      .art-rider .sp { transform-origin: 18px 0; animation: linear both; animation-timeline: view(); animation-iteration-count: 6; }
      .art-rider .sp-a { animation-name: px-spray-a; } .art-rider .sp-b { animation-name: px-spray-b; }
      @keyframes px-spray-a { 0% { transform: translate(-34px, 0) scale(.45); opacity: 0; } 18% { opacity: 1; } 70% { opacity: .9; } 100% { transform: translate(44px, 7px) scale(1.25); opacity: 0; } }
      @keyframes px-spray-b { 0% { transform: translate(5px, 3.5px) scale(.85); opacity: 1; } 20% { opacity: .9; } 50% { transform: translate(44px, 7px) scale(1.25); opacity: 0; } 50.01% { transform: translate(-34px, 0) scale(.45); opacity: 0; } 68% { opacity: 1; } 100% { transform: translate(5px, 3.5px) scale(.85); opacity: 1; } }
      @keyframes px-h1 { to { transform: translateY(132px); } }
      @keyframes px-h2 { to { transform: translateY(86px); } }
      @keyframes px-h3 { to { transform: translateY(40px); } }
      @keyframes px-hut1 { from { transform: translateY(var(--hut1, -170px)); } to { transform: none; } }
      @keyframes px-hut2 { from { transform: translateY(var(--hut2, -128px)); } to { transform: none; } }
      @keyframes px-hut3 { from { transform: translateY(var(--hut3, -76px)); } to { transform: none; } }
      /* travel is sized so that cabins going up and down pass each other at about 75% of the scroll through the scene */
      @keyframes px-lift { from { translate: -150px 11.87px; } to { translate: 150px -11.87px; } }
      @keyframes px-lift2 { from { translate: -150px 8.98px; } to { translate: 150px -8.98px; } }
      @keyframes px-lift-down { from { translate: 130px -7.82px; } to { translate: -130px 7.82px; } }
      @keyframes px-lift-down2 { from { translate: 130px -9.34px; } to { translate: -130px 9.34px; } }
    }
  }

  .logos { margin-top: clamp(1.75rem, 4vw, 2.75rem); padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .4rem 0; }
  /* brick pattern: the second row sits half a column to the right */
  .logos li { grid-column: span 2; }
  .logos li:nth-child(5) { grid-column: 2 / span 2; }
  .logos li { display: grid; place-items: center; min-height: clamp(4.6rem, 8vw, 6rem); padding: .5rem .75rem; }
  .logos a { display: block; border-radius: 6px; transition: transform .2s ease-out; }
  .logos a:hover { transform: scale(1.08); }
  @media (prefers-reduced-motion: reduce) { .logos a { transition: none; } }
  .logos img { display: block; width: auto; height: var(--h, 3rem); max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }

  .tech { margin-top: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; }
  .tech li { background: var(--white); border-radius: 18px; box-shadow: 0 1px 0 var(--line), 0 18px 30px -28px rgba(40, 80, 120, .5); padding: 1.35rem .75rem 1.15rem; display: grid; justify-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; text-align: center; }
  .tech img { width: 1.9rem; height: 1.9rem; opacity: .86; }

  /* jobs grouped by company: the company is a small label, job titles keep the headline size */
  .asc .cohead { margin: 0; max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem; }
  .asc .cohead b { font-weight: 600; font-size: 1.08rem; }
  .asc ol.roles { border-left: 0; margin: 0; }
  .asc ol.roles > li { padding: 1rem 0 0; }
  .asc ol.roles > li + li { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
  .asc ol.roles > li::before { content: none; }
  .asc ol.roles > li:first-child:not(:has(.lab)) { padding-top: .55rem; }
  .asc ol.cards { border-left: 0; margin: 0; display: grid; gap: 1.1rem; }
  .asc ol.cards > li, .asc ol.cards > li:last-child { padding: 1.3rem clamp(1.2rem, 2.2vw, 1.75rem) 1.6rem; background: var(--white); border-radius: 22px; box-shadow: 0 1px 0 var(--line), 0 24px 40px -32px rgba(40, 80, 120, .5); }
  .asc ol.cards > li::before { content: none; }
  .asc ol.cards .cohead { justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
  .asc ol.cards ol.roles > li:first-child { padding-top: 1.1rem; }
  .asc .earlier { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line); max-width: 32rem; }
  .asc .earlier ul { margin-top: .6rem; display: grid; gap: .55rem; font-size: .98rem; }
  .asc .earlier li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
  @media (max-width: 560px) { .asc .earlier li { grid-template-columns: 1fr; gap: .1rem; } }
  .stores span { display: inline-flex; align-items: center; gap: .4rem; }
  .run .stores { margin-top: auto; font-size: .96rem; }
  .run .stores + .more { margin-top: 0; padding-top: 0; }
  .stores img { width: 1rem; height: 1rem; opacity: .6; }
  .asc .earlier li b { font-family: var(--disp); font-weight: var(--dw); letter-spacing: .016em; font-synthesis: none; font-size: calc(1.08rem * var(--ds)); line-height: 1.2; }

  @media (max-width: 900px) { .tech { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (max-width: 560px) {
    .tech { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
    .tech li { padding: 1.1rem .4rem .9rem; font-size: .88rem; }
    .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 2.4rem; }
    .logos li, .logos li:nth-child(5) { grid-column: auto; }
    .logos li:nth-child(even) { translate: 0 50%; }
    .logos img { height: calc(var(--h, 3rem) * .8); }
  }

  /* subpages: flatter mountain header without the forest band, one reading column */
  .art-hero.flat svg { height: clamp(10.3rem, 19.45vw, max(19.8rem, 17.7vw)); }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .art-hero.flat.l3d svg.l1 { animation-name: px-s1; } .art-hero.flat.l3d svg.l2 { animation-name: px-s2; }
      @keyframes px-s1 { to { transform: translateY(96px); } }
      @keyframes px-s2 { to { transform: translateY(56px); } }
    }
  }
  .post { max-width: 47rem; padding-top: clamp(2.25rem, 5vw, 3.75rem); }
  .post .back { font-weight: 600; font-size: .95rem; }
  .post .back a { text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
  .post .back a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
  .post .back svg { width: 1em; height: 1em; transform: scaleX(-1); }
  .post .meta { margin-top: 1.75rem; }
  .post h1 { margin-top: .6rem; }
  .prose { margin-top: clamp(1.75rem, 4vw, 2.5rem); font-size: 1.1rem; line-height: 1.7; }
  .prose > * + * { margin-top: 1.15em; }
  .prose h2, .prose h3 { margin-top: 2.1em; font-size: calc(1.5rem * var(--ds)); line-height: 1.12; }
  .prose h2 + *, .prose h3 + * { margin-top: .7em; }
  .prose ul, .prose ol { padding-left: 1.35rem; }
  .prose ul { list-style: disc; } .prose ol { list-style: decimal; }
  .prose li + li { margin-top: .45em; }
  .prose li::marker { color: var(--accent); }
  .prose strong { font-weight: 600; }
  .prose pre { background: var(--night); color: #e6eef5; padding: 1.1rem 1.3rem; border-radius: 16px; overflow-x: auto; font: .9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
  .prose :not(pre) > code { background: #e3ecf3; padding: .1em .38em; border-radius: 6px; font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
  .prose figure { margin-block: 2em; }
  .prose img { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 16px; }
  .prose figure.gal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .75rem; align-items: start; }
  .prose figcaption { margin-top: .7rem; text-align: center; color: var(--soft); font-size: .92rem; }
  .prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.1rem; color: var(--soft); }
  .imprint .prose { font-size: 1.0625rem; }
  @media (max-width: 560px) { .prose { font-size: 1.04rem; } .prose figure.gal { grid-auto-flow: row; } }

  /* Astro port */
  .prose pre.astro-code { background: var(--night) !important; }
  .prose pre .line { border: 0; margin: 0; }  /* the highlighter's line spans share a class name with the old timeline style */
  .listing { padding-top: clamp(2.25rem, 5vw, 3.75rem); }
  .listing .posts { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
  .allposts { margin-top: 1.5rem; font-weight: 600; }
  .allposts a { display: inline-flex; align-items: center; gap: .5rem; }
  .allposts svg { width: 1em; height: 1em; }
  .notfound { padding-block: clamp(3rem, 8vw, 6rem); }
  /* phones: the name and two menu items share one row */
  @media (max-width: 560px) {
    .nav { gap: .5rem; }
    .nav .name { font-size: .66rem; letter-spacing: .08em; padding-inline: .5rem; margin-left: -.5rem; }
    .nav ul { padding: .22rem; }
    .nav ul a { padding-inline: .5rem; font-size: .86rem; }
  }

  /* The hut layers start shifted upwards. They may rise above the figure (there is only sky above it),
     so the figure clips at the sides and the bottom but not at the top. */
  .art-hut.l3d { overflow: visible; clip-path: inset(-14rem 0 0 0); }

  /* ---------- small screens ---------- */
  @media (max-width: 900px) {
    /* "Apart from building": text first, drawing below it */
    .off { grid-template-columns: 1fr; gap: 1.5rem; }
    .off .spot { order: -1; }
    .off .spot svg { max-width: 20rem; margin-inline: 0 auto; }
  }
  @media (max-width: 560px) {
    body { font-size: 1rem; }
    h1 { font-size: calc(1.62rem * var(--ds)); }
    h2 { font-size: calc(1.45rem * var(--ds)); }
    .lede { font-size: 1.02rem; margin-top: 1rem; }
    .intro { gap: 1.25rem; }
    .intro .me { max-width: 8.5rem; }
    .intro .lab { font-size: .92rem; }
    .run h3 { font-size: calc(1.3rem * var(--ds)); }
    .asc h3 { font-size: calc(1.18rem * var(--ds)); }
    .asc .earlier li b { font-size: calc(1rem * var(--ds)); }
    .prose { font-size: 1rem; }
    footer .who { font-size: calc(1.35rem * var(--ds)); }
    /* less travel for the hut layers: the scene is much smaller here */
    .art-hut { --hut1: -64px; --hut2: -46px; --hut3: -26px; }
    /* the two wide scenes are zoomed in so the figures stay readable */
    .art-divider { overflow: hidden; }
    .art-rider svg { width: 180%; max-width: none; margin-left: -54%; }
    .art-lift svg { width: 150%; max-width: none; margin-left: -28%; }
  }
  /* phones: all four menu items on a second row under the name */
  @media (max-width: 560px) {
    .nav { flex-wrap: wrap; row-gap: .6rem; padding-block: 1rem .9rem; }
    .nav ul { width: 100%; justify-content: space-between; }
    .nav ul li:nth-child(n+3) { display: block; }
    .nav ul a { padding-inline: .7rem; font-size: .92rem; }
  }
