:root{
  /* ---- colour · light surfaces ---- */
  --bg:#ffffff;                       /* page, inset fills */
  --bg-2:#f6f7f6;                     /* panels and cards */
  --bg-glass:rgba(255,255,255,.82);   /* sticky nav over content */
  --ink:#111111;                      /* headings, emphasis */
  --ink-2:#3a3f3c;                    /* body copy */
  --ink-soft:#6b716d;                 /* labels, captions, meta */
  --line:#e7e9e7;                     /* hairlines and card borders */
  --accent:#00de83;                   /* the single accent */
  --site-dark:#14181f;                /* ground behind the OFIGO design-system page (Figma) */
  --accent-glow:rgba(0,222,131,.2);    /* the soft green wash in a card corner */
  --accent-stroke:rgba(0,222,131,.66); /* foot of the hairline that fades from grey to green */
  --hover-fill:var(--ink);           /* ink fill on hover: recommendation and work cards; var(--accent) for a green version */
  --accent-deep:#01634c;              /* deep end of the glyph field (Figma 75:628160) */
  --accent-ink:#007a52;               /* green text on white — 4.6:1 */

  /* ---- colour · dark surfaces ---- */
  --dark:#111311;                     /* dark cards: work log, lead quote */
  --dark-2:#262926;                   /* a raised element on a dark card */
  --on-dark:#ffffff;                  /* primary text on dark and on ink fills */
  --on-dark-2:#e9ede9;                /* body text on dark */
  --on-dark-soft:#8b938d;             /* meta text on dark */
  --line-dark:rgba(255,255,255,.08);  /* row dividers on dark */
  --line-dark-2:rgba(255,255,255,.1); /* section divider on dark */
  --line-dark-3:rgba(255,255,255,.14);/* ring around a dark avatar */
  --line-dark-4:rgba(255,255,255,.16);/* chip outline on dark */
  --scrim:rgba(17,17,17,.42);         /* dims a screen behind a sheet */
  --todo:rgba(107,113,109,.55);       /* outline of unfinished [EDIT] copy */

  /* ---- type ---- */
  --font-display:"polymath","Helvetica Neue",Arial,system-ui,sans-serif;
  --font-body:"polymath","Helvetica Neue",Arial,system-ui,sans-serif;
  --font-mono:"SFMono-Regular",ui-monospace,"JetBrains Mono","Menlo",monospace;
  --fs-base:18px;  --lh-base:1.55;
  /* display — fluid, largest first */
  --fs-display-1:clamp(2.4rem,7vw,5rem);      /* contact */
  --fs-display-2:clamp(2.4rem,6vw,4.4rem);    /* case-study title */
  --fs-display-3:clamp(2rem,6.2vw,4.4rem);    /* manifesto */
  --fs-display-4:clamp(2rem,5vw,3.6rem);      /* section heading (About) */
  --fs-title:clamp(1.5rem,3vw,2.4rem);        /* card title */
  --fs-quote:clamp(1.2rem,2.4vw,1.7rem);      /* lead quote */
  --fs-title-sm:clamp(1.15rem,2vw,1.35rem);   /* small card title */
  /* lead copy — fluid */
  --fs-lead-lg:clamp(1.1rem,2.2vw,1.4rem);    /* case-study standfirst */
  --fs-lead:clamp(1.05rem,2.2vw,1.3rem);      /* hero lead */
  --fs-lead-sm:clamp(1.05rem,2vw,1.25rem);    /* About copy */
  --fs-quote-sm:clamp(1.05rem,1.6vw,1.22rem); /* secondary quotes */
  /* fixed steps */
  --fs-h4:1.25rem;    /* card heading (teaching) */
  --fs-ui:1rem;       /* buttons, list titles */
  --fs-sm:.98rem;     /* card summaries */
  --fs-nav:.95rem;    /* navigation */
  --fs-meta:.9rem;    /* roles, chips on dark */
  --fs-section:1.125rem; /* case-study and contact dot labels */
  --fs-section-title:clamp(1.5rem,2.8vw,1.75rem); /* section titles: Selected work, Work log… (28px desktop) */
  --fs-stat:clamp(2.4rem,5vw,3.6rem);         /* the big numbers in a case-study stats panel */
  --fs-label:.8rem;   /* mono labels, block labels */
  --fs-xs:.78rem;     /* chips, sub-lines */
  --fs-micro:.74rem;  /* segmented-control labels */
  --fs-floor:11px;    /* smallest text anywhere */
  --fs-nav-sm:.85rem; /* navigation on phones */

  /* ---- shape ---- */
  --radius-xs:4px;    /* focus ring, placeholders */
  --radius-sm:14px;   /* inset media, small boxes */
  --radius:22px;      /* cards and panels */
  --radius-pill:999px;/* buttons, chips, toggles */

  /* ---- elevation ---- */
  --shadow-1:0 10px 30px -14px rgba(0,0,0,.25);  /* avatar */
  --shadow-2:0 14px 36px -24px rgba(0,0,0,.14);  /* card hover lift — a hint, not a float */
  --shadow-3:0 24px 50px -28px rgba(0,0,0,.3);   /* flat product shot */
  --shadow-4:0 30px 70px -34px rgba(0,0,0,.45);  /* phone in a card */

  /* ---- layout and spacing ---- */
  --maxw:1160px;
  --pad:clamp(20px,5vw,64px);              /* page gutter */
  --space-section:clamp(72px,11vw,150px);  /* between sections */
  --space-block:clamp(36px,5vw,64px);      /* between blocks in a section */
  --space-block-sm:clamp(36px,5vw,56px);   /* between a figure and the next block */
  --pad-card:clamp(22px,2.4vw,34px);       /* inside cards */
  --pad-feature:clamp(28px,5.2vw,64px);    /* inside the selected-work cards: room to breathe */

  /* ---- motion ---- */
  --ease-spring:cubic-bezier(.22,1,.36,1); /* sheets sliding up */

  /* ---- cursor ---- */
  --cursor:16px;                      /* resting dot — the "O" of the SKVOR mark */
  --cursor-hover:48px;                /* over links and buttons */
}

*{box-sizing:border-box;}
[hidden]{display:none !important;}   /* components set their own display; hidden must still win */
html{scroll-behavior:smooth;}
:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px;border-radius:var(--radius-xs);}
.skip-link{position:absolute;left:-9999px;top:0;z-index:50;background:var(--ink);color:var(--on-dark);padding:12px 20px;border-radius:0 0 12px 0;font-weight:600;}
.skip-link:focus{left:0;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--fs-base);
  line-height:var(--lh-base);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}

.container{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--pad);}
.mono{font-family:var(--font-mono);font-size:var(--fs-label);letter-spacing:.01em;}
.accent{color:var(--accent-ink);}
.accent-dot{color:var(--accent);}

/* page scale by viewport, so the content keeps roughly the same share of the screen (~55–60%):
   1800–2047 (1920 monitors) a touch smaller, 2048 native, then larger up to +25% at 2432+ (27" 2560).
   Below 1800 unchanged */
@media (min-width:1800px){html{zoom:.92;}}
@media (min-width:2048px){html{zoom:1;}}
@media (min-width:2240px){html{zoom:1.1;}}
@media (min-width:2432px){html{zoom:1.25;}}

/* generous vertical rhythm = more whitespace */
.section{padding-block:var(--space-section);}
/* section labels. Most sections get a plain title (Figma 77:654513); the case studies and
   contact get a small dot and a name, and on scroll the name fades in and the dot takes the
   signature green — the accent marks the places worth stopping at */
.label{margin:0 0 clamp(28px,4vw,52px);font-size:var(--fs-section);line-height:1.25;}
.label--title{font-family:var(--font-display);font-weight:600;font-size:var(--fs-section-title);letter-spacing:.004em;color:var(--ink-2);}
.label--dot{
  display:flex;align-items:center;gap:8px;
  font-family:var(--font-display);font-weight:600;letter-spacing:-.01em;color:var(--ink-2);
}
.label__dot{width:16px;height:16px;border-radius:50%;flex:none;background:var(--accent);}
.js .label[data-label]{opacity:0;transform:translateY(6px);transition:opacity .5s ease,transform .5s ease;}
.js .label[data-label] .label__dot{background:var(--ink);transition:background .45s ease .35s,transform .45s var(--ease-spring) .35s;}
.js .label[data-label].is-in{opacity:1;transform:none;}
.js .label[data-label].is-in .label__dot{background:var(--accent);transform:scale(1.08);}

.nav{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;
  padding:18px var(--pad);
  padding-inline:max(var(--pad),calc((100% - var(--maxw)) / 4 + var(--pad)));   /* logo and links sit halfway between the viewport edge and the content column */
  background:var(--bg-glass);
  backdrop-filter:saturate(1.2) blur(10px);
  border-bottom:1px solid var(--line);
}
/* from 1800px (1920 monitors and up) the content is wide enough that the nav goes back to the window edge */
@media (min-width:1800px){.nav{padding-inline:var(--pad);}}
.nav__logo{height:20px;width:auto;display:block;}
.nav__links{display:flex;gap:28px;font-size:var(--fs-nav);white-space:nowrap;}
.nav__links a{
  color:var(--ink-2);
  /* underline drawn as a background line, so it can grow left to right after the colour fades */
  background:linear-gradient(currentColor,currentColor) left bottom / 0% max(1px,.06em) no-repeat;
  padding-bottom:.18em;
  transition:color .3s ease,background-size .25s ease;   /* leaving: no delay */
}
.nav__links a:hover,.nav__links a:focus-visible{
  color:var(--accent);background-size:100% max(1px,.06em);   /* Figma 94:211531 */
  transition:color .3s ease,background-size .35s cubic-bezier(.4,0,.2,1) .12s;
}

.hero{padding-block:clamp(64px,12vw,132px) clamp(48px,8vw,96px);}
.hero__whoami{color:var(--ink-soft);margin:0 0 40px;display:flex;flex-wrap:wrap;align-items:center;gap:0;}
.hero__whoami .prompt{color:var(--accent);font-weight:700;margin-right:8px;}
.hero__whoami .dot{margin:0 10px;color:var(--ink-soft);}
.hero__whoami .nowrap{white-space:nowrap;}   /* name and role wrap as whole phrases on a phone */
.caret{display:inline-block;width:8px;height:1.05em;background:var(--accent);margin-left:8px;transform:translateY(2px);animation:blink 1.1s steps(1) infinite;}
@keyframes blink{50%{opacity:0;}}

/* the name lives in a visually hidden h1 and the portrait's alt; the manifesto carries the display
   weight (Figma 77:654349) */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.hero__avatar{
  position:relative;
  width:clamp(144px,18vw,200px);
  height:clamp(144px,18vw,200px);
  box-sizing:border-box;
  border-radius:50%;
  overflow:hidden;
  background:var(--bg-2);
  border:1px solid var(--line);
  box-shadow:var(--shadow-1);
  margin:0;
  isolation:isolate;
}
.hero__avatar img,
.hero__avatar canvas{
  width:100%;
  height:100%;
  display:block;
}
/* the filter sits on the photo only: on the canvas it would also lighten the ground the blocks are drawn on
   (app.js greys the pixelated copy itself) */
.hero__avatar img{object-fit:cover;object-position:top;filter:grayscale(1) contrast(1.06);}
/* pixelation layer — drawn only while hovering, sits exactly over the photo */
.hero__avatar canvas{
  position:absolute;
  inset:0;
  opacity:0;
  image-rendering:pixelated;
  pointer-events:none;
  transition:opacity .35s ease;   /* fades out while the blocks resolve, so leaving has no hard cut */
}
.hero__lead{max-width:29.5em;font-size:var(--fs-lead);line-height:1.55;color:var(--ink-2);margin:28px 0 0;}   /* 610px at 20.8px */
.hero__lead strong{color:var(--ink);font-weight:700;}
/* one highlighted phrase (after a carousel Michal liked): a slanted brand-green highlighter that sweeps
   in once, left to right, a beat after the page appears; text stays ink (~10.6:1 on the green).
   One line only (nowrap), so the slanted shape never breaks across lines. */
.mark{position:relative;isolation:isolate;white-space:nowrap;padding:0 .12em;margin:0 -.04em;}
.mark::before{
  content:'';position:absolute;z-index:-1;inset:.08em -.06em .02em;
  background:var(--accent);border-radius:var(--radius-xs);
  transform:skewX(-14deg) scaleX(0);transform-origin:left center;
  animation:mark-in .7s cubic-bezier(.4,0,.2,1) 1.2s forwards;
}
@keyframes mark-in{to{transform:skewX(-14deg) scaleX(1);}}
@media (prefers-reduced-motion:reduce){.mark::before{animation:none;transform:skewX(-14deg);}}


.hero__cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:40px;}

.btn{display:inline-flex;align-items:center;justify-content:center;height:52px;padding:0 26px;border-radius:var(--radius-pill);font-family:inherit;font-weight:600;font-size:var(--fs-ui);border:0;cursor:pointer;transition:transform .18s,background .2s,color .2s;}
.btn--solid{background:var(--ink);color:var(--on-dark);}
/* Nucleo outline icons, thinned from 2 to 1.5 so they sit with Polymath */
.icon{display:block;flex:none;--nucleo-stroke-width:1.5;}
.btn__icon{width:18px;height:18px;margin-right:10px;}
.btn--solid:hover{transform:translateY(-2px);}
/* outline button: on hover the brand green grows from the pointer and fills the pill, text turns
   white (Figma 77:654402) — same mechanics as the card fill, --x/--y/--d from app.js */
.btn--ghost{position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--line);color:var(--ink);transition:border-color .4s ease,color .4s ease;}
.btn--ghost::after{
  content:'';position:absolute;z-index:-1;pointer-events:none;
  left:var(--x,50%);top:var(--y,50%);width:var(--d,300%);aspect-ratio:1;border-radius:50%;
  background:var(--accent);
  transform:translate(-50%,-50%) scale(0);
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.btn--ghost:hover,.btn--ghost:focus-visible{border-color:var(--accent);color:var(--on-dark);}
.btn--ghost:hover::after,.btn--ghost:focus-visible::after{transform:translate(-50%,-50%) scale(1);}

.manifesto{padding-block:clamp(64px,10vw,128px);}
/* the value strip under the manifesto (2026-11-22): what Michal brings, three short columns,
   no card and no heading, so it reads as the manifesto's second beat */
.values{list-style:none;margin:var(--space-block) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,4vw,56px);max-width:var(--maxw);}
.values__title{margin:0 0 10px;font-family:var(--font-display);font-weight:600;font-size:var(--fs-h4);letter-spacing:-.01em;color:var(--ink);}
.values__item p{margin:0;font-size:var(--fs-sm);line-height:1.55;color:var(--ink-2);max-width:32ch;}
/* the concrete proof under the three values (review 2026-11-22), pointing to the CPO's recommendation */
.values__proof{margin:clamp(28px,3vw,40px) 0 0;font-size:var(--fs-sm);line-height:1.55;color:var(--ink-2);max-width:62ch;}
.values__proof strong{color:var(--ink);font-weight:600;}
.values__link{white-space:nowrap;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;transition:color .3s ease,text-decoration-color .3s ease;}
.values__link:hover,.values__link:focus-visible{color:var(--accent-ink);text-decoration-color:currentColor;}
/* Glyph field behind the hero and manifesto: faint clouds of mono characters drift across the
   right side, the characters slowly re-roll, and the pointer leaves a soft trail of ink. Colour
   runs from the accent to the deep green of Michal's gradient (Figma 75:628160). WebGL, drawn by
   app.js; the copy sits above it. Desktop only. */
.intro{position:relative;}
.intro > .container{position:relative;z-index:1;}
.glyphs{position:absolute;inset:0 0 -80px;z-index:0;pointer-events:none;overflow:hidden;}
.glyphs canvas{display:block;width:100%;height:100%;opacity:0;transition:opacity 1.2s ease;}   /* starts after load, so it fades in rather than pops */
.glyphs canvas.is-ready{opacity:1;}
.manifesto__text{
  font-family:var(--font-display);
  font-weight:800;
  font-size:var(--fs-display-3);
  line-height:1.02;
  letter-spacing:-.025em;
  max-width:20ch;
  margin:0;
}

.bento{display:grid;grid-template-columns:repeat(6,1fr);gap:clamp(20px,3vw,40px);}
/* on wide screens the work cards reach 40px past the text column either side; the section title stays aligned */
@media (min-width:1440px){.bento{margin-inline:-40px;}}
.card{
  grid-column:span 3;
  position:relative;
  background:var(--bg);               /* white, held by a hairline — the work carries the colour */
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:var(--pad-card);
  transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease;
}
/* hover lift only where the card actually navigates */
.card:has(.card__link):hover{transform:translateY(-2px);box-shadow:var(--shadow-2);}
/* stretch the card link over the whole card — the title is the link, so no
   separate "read case study" call to action is needed */
.card__link::after{content:'';position:absolute;inset:0;border-radius:var(--radius);z-index:3;}
/* corner arrow, only on cards that navigate: on touch there is no hover lift,
   so this is the one cue that the whole card is a link */
.card__arrow{
  position:absolute;top:clamp(20px,2.4vw,32px);right:clamp(20px,2.4vw,32px);   /* in the corner, clear of the media */
  width:22px;height:22px;color:var(--ink-soft);pointer-events:none;z-index:2;
  transition:transform .22s ease,color .22s ease;
}
.card:hover .card__arrow{color:var(--ink);transform:translate(2px,-2px);}
.card__link{color:inherit;}
.card__logo{height:22px;width:auto;display:block;margin:0 0 20px;}
.card__logo--ofigo{height:26px;margin-bottom:22px;}  /* compact mark, needs more height to match optically */

/* a flat product shot as the feature visual, cropped by the card floor like the device is */
/* OFIGO: more air above, and the site runs past the card floor like the phones do */
.card--ofigo{padding-top:calc(var(--pad-feature) + 24px);}   /* the site sits lower, so the corner arrow never lands on it */
.card--ofigo .card__body{padding-bottom:calc(var(--pad-feature) + 24px);}
.card--ofigo .shot{align-self:start;margin-bottom:calc(-1 * clamp(70px,10vw,150px));}
.shot{margin:0;}
/* OFIGO: the homepage in a window (Figma 78:211299 — the content column with a little air either
   side, its own 2.2x crop). It rests on the hero, then nudges down so "Co pro vás vyřídíme" sits at
   the top, then to "Ohlasy zákazníků", and glides back. Calmer than the case-study windows. */
.shot__window{
  aspect-ratio:406/446;overflow:hidden;
  border:1px solid var(--line);border-bottom:0;border-radius:var(--radius-sm) var(--radius-sm) 0 0;
  background:var(--bg);box-shadow:var(--shadow-3);
}
.shot__page{
  width:100%;height:auto;display:block;
  margin-top:3%;   /* a little air above the site's header, as in Figma */
  animation:shot-scroll 18s infinite;
}
/* stops as % of the page: services heading 740 / 5282, reviews: past the white edge above the beige section, −35.2% (1440px capture) */
@keyframes shot-scroll{
  0%,22%{transform:translateY(0);animation-timing-function:cubic-bezier(.45,0,.2,1);}
  29%,51%{transform:translateY(-14.01%);transform:translateY(round(-14.01%,1px));animation-timing-function:cubic-bezier(.45,0,.2,1);}
  60%,84%{transform:translateY(-35.2%);transform:translateY(round(-35.2%,1px));animation-timing-function:cubic-bezier(.45,0,.2,1);}
  93%,100%{transform:translateY(0);}
}
/* the device is anchored to the card's floor and cropped by it, so it reads as
   continuing past the edge — and the card gets shorter for it */
.card--feature{
  grid-column:span 6;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:clamp(24px,3vw,48px);
  align-items:end;
  padding:var(--pad-feature) var(--pad-feature) 0;
  overflow:hidden;
}
.card--feature .card__body{align-self:center;padding-bottom:var(--pad-feature);}

.card__title{font-family:var(--font-display);font-weight:800;letter-spacing:-.02em;line-height:1.04;font-size:var(--fs-title);margin:0 0 14px;text-wrap:balance;}
.card__summary{color:var(--ink-2);margin:0 0 18px;font-size:var(--fs-sm);}
.card__summary strong{color:var(--ink);}


.chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0 0 18px;}
.chips li{font-size:var(--fs-xs);color:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius-pill);padding:5px 12px;background:var(--bg);}

.flow{
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  /* let the phone run past the card's bottom edge; the card clips it */
  margin-bottom:calc(-1 * clamp(70px,10vw,150px));
}
.flow__phone{
  position:relative;
  width:100%;
  aspect-ratio:393/852;
  border-radius:38px;
  overflow:hidden;
  background:var(--dark);   /* the frame's colour: the anti-aliased corner then blends dark into dark, no white hairline */
}
/* the device: a dark frame around the screen, outside it so the screen keeps its exact width */
.flow__device{
  width:min(318px,100%);box-sizing:border-box;   /* 300px screen + 9px frame either side */
  padding:9px;border-radius:47px;
  background:var(--dark);
  box-shadow:var(--shadow-4),inset 0 0 0 1.5px var(--line-dark-3);
}
.flow__screen{position:absolute;inset:0;width:100%;height:auto;object-fit:cover;object-position:top;display:block;}
/* dimmed backdrop behind the sheets */
.flow__scrim{position:absolute;inset:0;background:var(--scrim);opacity:0;pointer-events:none;}

/* each sheet is a clipped viewport; the screenshot inside can scroll within it */
.flow__sheet{
  position:absolute;left:0;right:0;top:5.9%;top:round(5.9%,1px);bottom:0;
  overflow:hidden;
  border-radius:26px 26px 0 0;
  transform:translateY(100%);
  pointer-events:none;
}
.flow__sheet img{width:100%;height:auto;display:block;}


/* 14.2s story (Figma 1:21131 → 1:58672 → 78:207378): the match rests a beat, the rating list
   opens, Messi's card follows; the header stays fixed while the stats scroll under it: rests on
   Attacking, scrolls to Playmaking and stops, then reads slowly down to the end, rests, fades back
   to the match and loops (data-flow-pause 0.6s). Stops are % of the card image (2431px): Playmaking
   (y 980) brought up to the header's foot (y 392) → -588 → -24.19%; the end at
   (2431 - 1224 visible) / 2431 → -49.6%. */
.flow.is-playing .flow__scrim{animation:flow-scrim 14.2s ease-out forwards;}
.flow.is-playing .flow__sheet--rating{animation:flow-rating 14.2s var(--ease-spring) forwards;}
.flow.is-playing .flow__sheet--card{animation:flow-card 14.2s var(--ease-spring) forwards;}
.flow.is-playing .flow__sheet--card img:not(.flow__sheet-head){animation:flow-cardscroll 14.2s forwards;}
/* the card's header (player, minutes, rating, the two event rows) stays put and the stats scroll
   under it: a second copy of the screenshot, clipped to y 0–392 of 2431, sits on top and never moves */
.flow__sheet-head{position:absolute;top:0;left:0;clip-path:inset(0 0 83.875% 0);}

/* the last 0.64s fades the sheets and scrim away, so the loop returns to the match without a jump */
@keyframes flow-scrim{
  0%,10.6%{opacity:0;}
  16.9%,95.5%{opacity:1;}
  100%{opacity:0;}
}
@keyframes flow-rating{
  0%,10.6%{transform:translateY(100%);}
  16.9%,95.5%{transform:translateY(0);opacity:1;animation-timing-function:ease-in-out;}
  100%{transform:translateY(0);opacity:0;}
}
@keyframes flow-card{
  0%,26.8%{transform:translateY(100%);}
  33.1%,95.5%{transform:translateY(0);opacity:1;animation-timing-function:ease-in-out;}
  100%{transform:translateY(0);opacity:0;}
}
@keyframes flow-cardscroll{
  0%,43.7%{transform:translateY(0);animation-timing-function:cubic-bezier(.45,0,.2,1);}
  52.1%,63.4%{transform:translateY(-24.19%);transform:translateY(round(-24.19%,1px));animation-timing-function:cubic-bezier(.4,0,.6,1);}
  91.5%,100%{transform:translateY(-49.6%);transform:translateY(round(-49.6%,1px));}
}

/* Scrolling variant (Match Detail): the app bar stays put while the long screen
   scrolls under it. Rests on Match Prediction, then Predicted lineups, then reads
   slowly down the whole pitch to Match information, and returns to the top.
   Stops are (Figma y - 107 - 8) / body height 3423. */
.flow__viewport{position:absolute;left:0;right:0;top:12.56%;top:round(down,12.56%,1px);bottom:0;overflow:hidden;}  /* 107 / 852, tucked under the bar */
.flow__long{width:100%;height:auto;display:block;}
.flow__bar{position:absolute;top:0;left:0;width:100%;height:auto;display:block;z-index:1;}
.flow--scroll.is-playing .flow__long{animation:flow-scroll 14.8s cubic-bezier(.6,0,.25,1) forwards;}
@keyframes flow-scroll{
  0%,6.76%{transform:translateY(0);}
  12.84%,27.03%{transform:translateY(-6.37%);transform:translateY(round(-6.37%,1px));}      /* Match Prediction, y 333 */
  33.11%,43.24%{transform:translateY(-34.44%);transform:translateY(round(-34.44%,1px));animation-timing-function:cubic-bezier(.4,0,.6,1);}  /* Predicted lineups, y 1294; gentle easing for the slow read down the pitch */
  77.03%,87.84%{transform:translateY(-80.81%);transform:translateY(round(-80.81%,1px));}     /* Match information, y 2881 */
  97.3%,100%{transform:translateY(0);}
}

@media (prefers-reduced-motion:reduce){
  .quote:not(.quote--lead)::after,.card:has(.card__link)::after,.btn--ghost::after{transition:none;}
  .js .label[data-label]{opacity:1;transform:none;transition:none;}
  .js .label[data-label] .label__dot{background:var(--accent);transition:none;}
  /* settle on the end state, no travel */
  .flow__long{transform:translateY(-6.37%);transform:translateY(round(-6.37%,1px));}
  .flow__sheet{transform:translateY(0);}
  .flow__scrim{opacity:1;}
}

.worklog{background:var(--dark);color:var(--on-dark-2);border-radius:var(--radius);padding:clamp(24px,3vw,44px);}
.worklog__head{color:var(--on-dark-soft);display:flex;justify-content:space-between;gap:12px;padding-bottom:24px;border-bottom:1px solid var(--line-dark-2);flex-wrap:wrap;}
.worklog .accent{color:var(--accent);}
.worklog__list{list-style:none;margin:0;padding:8px 0 0;}
/* date, logo and title share one centre line (Figma 75:628012); logos get their own wider column */
.worklog__list{--row-line:26px;}
.worklog__list li{display:grid;grid-template-columns:130px 180px 1fr;gap:20px;padding:clamp(26px,3vw,34px) 0;border-bottom:1px solid var(--line-dark);align-items:start;}   /* rows breathe: 34px each side on desktop */
.worklog__list .when{height:var(--row-line);display:flex;align-items:center;gap:8px;}
.when__arrow{width:13px;height:13px;flex:none;--nucleo-stroke-width:1.75;}   /* Nucleo arrow-right, in place of the → glyph */
.worklog__list .when{color:var(--accent);}
/* org marks: forced to a single white so four different brand palettes
   never compete with the card's one green accent */
.worklog__list .org{display:flex;align-items:center;height:var(--row-line);}
.worklog__logo{width:auto;filter:brightness(0) invert(1);opacity:.82;}
.worklog__logo--flashscore{height:22.5px;}
.worklog__logo--vse{height:29px;}
.worklog__logo--laba{height:19px;}
.worklog__logo--wunderman{height:22px;}
/* no logo file yet: the name set as a quiet wordmark, as light as the logos beside it */
.worklog__wordmark{font-family:var(--font-display);font-weight:700;font-size:var(--fs-meta);letter-spacing:.1em;text-transform:uppercase;color:var(--on-dark);opacity:.82;white-space:nowrap;}
.worklog__list .what{color:var(--on-dark-2);font-family:var(--font-body);font-size:var(--fs-ui);line-height:var(--row-line);}
/* a second, temporary role under the main one, so the years read as the main role's span */
.worklog__list .what__sub{display:block;color:var(--on-dark-2);font-size:var(--fs-sm);margin-top:2px;}
.worklog__list .what em{display:block;color:var(--on-dark-soft);font-family:var(--font-mono);font-size:var(--fs-xs);font-style:normal;line-height:1.5;margin-top:4px;}
/* an outside link inside a row's notes: same mono text, a quiet underline, green on hover */
.worklog__link{color:var(--on-dark-2);text-decoration:underline;text-decoration-color:var(--line-dark-4);text-underline-offset:3px;transition:color .3s ease,text-decoration-color .3s ease;}
.worklog__link:hover,.worklog__link:focus-visible{color:var(--accent);text-decoration-color:currentColor;}
.worklog__tool{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:clamp(26px,3vw,34px);color:var(--on-dark-soft);}
.toolchips{display:flex;flex-wrap:wrap;gap:10px;}
.toolchips span{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line-dark-4);border-radius:var(--radius-pill);padding:7px 15px 7px 12px;color:var(--on-dark-2);font-family:var(--font-body);font-size:var(--fs-meta);}
.toolchip__icon{width:15px;height:15px;flex:none;}
/* brand marks set white like the company logos above; the loop icon follows the text colour */
.toolchip__logo{filter:brightness(0) invert(1);opacity:.85;}

.cs__head{max-width:60ch;margin-bottom:var(--space-block);}
.cs__title{font-family:var(--font-display);font-weight:800;letter-spacing:-.03em;line-height:1;font-size:var(--fs-display-2);margin:8px 0 18px;text-wrap:balance;}
.cs__standfirst{font-size:var(--fs-lead-lg);color:var(--ink-2);margin:0;}
.cs__chips{margin:24px 0 0;}   /* the same chips as the work card, under the standfirst */
.cs__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(24px,4vw,56px);margin-bottom:var(--space-block);}
.cs__block :is(h2,h3){font-size:var(--fs-label);text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);margin:0 0 12px;}

/* case-study pages: a quiet way back at the top, the next study as a large link at the end */
.cs-page .casestudy{padding-top:clamp(28px,4vw,48px);}
.cs-back{padding-top:clamp(28px,5vw,56px);}
.cs-back__link{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-sm);color:var(--ink-2);transition:color .3s ease;}
.cs-back__link span{transition:transform .3s cubic-bezier(.2,.7,.2,1);}
.cs-back__link:hover{color:var(--ink);}
.cs-back__link:hover span{transform:translateX(-3px);}
.cs-next{padding-bottom:var(--space-section);}
.cs-next__link{display:flex;flex-direction:column;gap:12px;padding-top:clamp(28px,4vw,48px);border-top:1px solid var(--line);}
.cs-next__label{font-size:var(--fs-label);text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);}
.cs-next__title{font-family:var(--font-display);font-weight:800;letter-spacing:-.02em;line-height:1.08;font-size:var(--fs-title);color:var(--ink);text-wrap:balance;transition:color .3s ease;}
.cs-next__arrow{display:inline-block;transition:transform .3s cubic-bezier(.2,.7,.2,1);}
.cs-next__link:hover .cs-next__title{color:var(--accent-ink);}
.cs-next__link:hover .cs-next__arrow{transform:translateX(6px);}
.cs__block p,.cs__block ul{margin:0;color:var(--ink-2);}
.cs__block p + p{margin-top:12px;}
.cs__block p + ul{margin-top:14px;}
/* the facts worth catching on a scan, lifted out of the surrounding prose */
.cs__block strong,.cs__outcome strong{color:var(--ink);font-weight:600;}
.cs__block ul{padding-left:18px;}
.cs__block li{margin-bottom:8px;}

/* a figure in a case study */
.stage-wrap{margin:0 0 var(--space-block-sm);}


/* the arc: one card, two moments, swapped in place — plays once on scroll,
   then the toggle (or a swipe across the panel) hands it over to the reader */
.swap{margin:0 0 clamp(40px,6vw,72px);}
.swap__stage{
  border-radius:var(--radius);
  background:var(--bg-2);
  overflow:hidden;
  touch-action:pan-y;          /* keep vertical scroll, claim the horizontal drag */
  -webkit-user-select:none;user-select:none;
}
/* the panel is the Figma frame itself — 1032x771, no padding of its own —
   and everything inside sits on its measured percentage of it */
.swap__scene{position:relative;aspect-ratio:1032/771;}
.swap__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;}
.swap__phone{
  position:absolute;left:24.782%;top:9.598%;width:50.388%;
  transition:opacity .5s ease;
}
.swap__phone--final{opacity:0;}
.swap.is-finished .swap__phone--live{opacity:0;}
.swap.is-finished .swap__phone--final{opacity:1;}

/* each floating value is its own element: it fades in, drifts, and leaves
   on its own rather than dissolving through the other state's pieces */
.chip{
  position:absolute;left:var(--x);top:var(--y);width:var(--w);
  opacity:0;transform:translateY(12px);pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;   /* the quick exit */
}
.chip img{width:100%;display:block;animation:chip-float var(--d,6s) ease-in-out var(--t,0s) infinite;}
/* the old pieces are gone before the new ones start, so 62' never ghosts under 90' */
.swap:not(.is-finished) .chip--live,
.swap.is-finished .chip--final{
  opacity:1;transform:none;
  transition:opacity .45s ease,transform .45s ease;
  transition-delay:calc(var(--t,0s) + .26s);
}
@keyframes chip-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-7px);}}

.swap__toggle{
  display:inline-flex;gap:4px;margin-top:clamp(16px,2vw,22px);
  padding:4px;border-radius:var(--radius-pill);border:1px solid var(--line);background:var(--bg);
}
.swap__btn{
  appearance:none;border:0;cursor:pointer;background:transparent;
  font-family:var(--font-mono);font-size:var(--fs-micro);letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-soft);padding:8px 16px;border-radius:var(--radius-pill);
  transition:background .25s ease,color .25s ease;
}
.swap__btn:hover{color:var(--ink);}
.swap__btn.is-on{background:var(--ink);color:var(--on-dark);}
.swap__caption{margin:clamp(22px,2.6vw,32px) 0 0;max-width:60ch;color:var(--ink-2);}

/* case study 02 — predicted lineups, one pitch read three ways. One SVG in the
   Figma frame's own coordinates (2064x2028 at 2x): the rating frame is the base and
   each state is a group of player-sized cuts of its own frame. Base and cuts share one
   transform, so they land on the same pixels at any size — separate positioned boxes
   rounded differently and made the players twitch by a pixel. */
.lineup{margin:0 0 clamp(40px,6vw,72px);}
.lineup__stage{
  border-radius:var(--radius);background:var(--bg-2);overflow:hidden;
  touch-action:pan-y;-webkit-user-select:none;user-select:none;
}
.lineup__scene{position:relative;aspect-ratio:1032/1014;}
.lineup__svg{position:absolute;inset:0;width:100%;height:100%;display:block;}
.lineup__layer > svg{opacity:0;}
/* the incoming state is moved last in the SVG (on top) and arrives top to bottom;
   the outgoing one stays put underneath until the wave has passed */
.lineup__layer.is-on > svg{opacity:1;transition:opacity .34s ease calc(var(--i) * 30ms);}
.lineup__layer.was > svg{opacity:1;}

/* reference screens on one ground (Figma 1032x960), used in both case studies. The
   ground stays, only the phone changes; every phone of an instance sits in the same
   measured box (--pl / --pt / --pw on .refs__scene) so a switch never makes it jump. */
.refs{margin:0 0 clamp(40px,6vw,72px);}
.stage-wrap .refs{margin:0;}
.refs__stage{
  border-radius:var(--radius);overflow:hidden;
  touch-action:pan-y;-webkit-user-select:none;user-select:none;
}
.refs__scene{position:relative;aspect-ratio:1032/960;}
.refs__bg{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;}
.refs__phone{
  position:absolute;left:var(--pl);top:var(--pt);width:var(--pw);height:auto;
  opacity:0;transform:translateY(14px);
  transition:opacity .22s ease,transform .22s ease;     /* the quick exit */
}
.refs__phone.is-on{
  opacity:1;transform:none;
  transition:opacity .42s ease .18s,transform .5s var(--ease-spring) .18s;
}

/* case study 03 — a website in a window on a ground (Figma 77:630364 / 77:647796, 1032x1014).
   Each page is a layer with its own ground; the page scrolls slowly inside the window, resting
   twice on the way down, then returns. --top places the window, --max is the scroll depth. */
.site__stage{border-radius:var(--radius);overflow:hidden;touch-action:pan-y;-webkit-user-select:none;user-select:none;}
.site__scene{position:relative;aspect-ratio:1032/1014;}
.site__layer{position:absolute;inset:0;opacity:0;transition:opacity .4s ease;}
.site__layer.is-on{opacity:1;}
.site__layer--home{background:var(--bg-2);}
.site__layer--ds{background:var(--site-dark);}
.site__window{
  position:absolute;left:8.227%;width:83.547%;top:var(--top);bottom:0;overflow:hidden;
  border-radius:clamp(12px,2.3vw,24px) clamp(12px,2.3vw,24px) 0 0;background:var(--bg);
}
.site__layer--ds .site__window{box-shadow:0 0 0 1px var(--line-dark-3);}
.site__page{width:100%;height:auto;display:block;}
.site__layer.is-on .site__page{animation:site-scroll 16s cubic-bezier(.55,0,.3,1) infinite;}
@keyframes site-scroll{
  0%,8%{transform:translateY(0);}
  26%,40%{transform:translateY(calc(var(--max) * .42));transform:translateY(round(calc(var(--max) * .42),1px));}
  62%,80%{transform:translateY(var(--max));transform:translateY(round(var(--max),1px));}
  94%,100%{transform:translateY(0);}
}

/* no motion: the toggle still works, the pieces just land rather than drift in */
@media (prefers-reduced-motion:reduce){
  .swap__phone,.chip,.lineup__layer.is-on > svg,.refs__phone,.refs__phone.is-on,.site__layer{transition:none;}
  .site__layer.is-on .site__page,.shot__page{animation:none;}
  .refs__phone{transform:none;}
  .chip{transform:none;}
}

/* a prose block that sits between shot rows */
.cs__block--wide{max-width:60ch;margin-bottom:var(--space-block-sm);}
.cs__block--wide :is(h2,h3){font-size:var(--fs-label);text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);margin:0 0 12px;}
.cs__outcome{max-width:60ch;}
/* case-study numbers (after Tomas Pondelik's review, 2026-11-22): one quiet panel, the figures dominant,
   a short label under each; four across on desktop, 2 × 2 on phones. Public figures only, plus the
   Player Card ~30% signal. The source line carries the data provider and the launch video. */
.cs-stats{margin:0 0 var(--space-block);}
.cs-stats__grid{display:grid;grid-template-columns:repeat(4,1fr);margin:0;background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;}
.cs-stats__item{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:10px;padding:clamp(22px,2.6vw,34px);border-left:1px solid var(--line);}
.cs-stats__item:first-child{border-left:0;}
.cs-stats__grid--3{grid-template-columns:repeat(3,1fr);}
.cs-stats__grid--3 .cs-stats__item dt{max-width:24ch;}
.cs-stats__item dd{margin:0;font-family:var(--font-display);font-weight:700;font-size:var(--fs-stat);line-height:1;letter-spacing:-.035em;color:var(--ink);font-variant-numeric:tabular-nums;}
.cs-stats__item dt{font-size:var(--fs-sm);line-height:1.4;color:var(--ink-2);max-width:16ch;}
.cs-stats__source{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:16px;font-size:var(--fs-meta);color:var(--ink-soft);}
.cs-stats__logo{height:22px;width:auto;filter:grayscale(1);opacity:.6;}
.cs-stats__link{color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;transition:color .3s ease,text-decoration-color .3s ease;}
.cs-stats__link:hover,.cs-stats__link:focus-visible{color:var(--accent-ink);text-decoration-color:currentColor;}

.cs__outcome :is(h2,h3){font-size:var(--fs-label);text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);margin:0 0 12px;}

.teach{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2.4vw,32px);}
/* teaching cards (Figma 75:628117): white with a grey hairline, the mark at the top and the
   words at the foot. On hover a faint green wash rises from the bottom-right corner and the
   hairline runs from grey to green — both are layers that fade in, since gradients can't transition.
   The recommendation cards (.quote, not the dark lead) share the same treatment. */
.teach__item,.quote:not(.quote--lead){position:relative;isolation:isolate;}
.quote:not(.quote--lead){overflow:hidden;}
.quote:not(.quote--lead){display:flex;flex-direction:column;}
.quote:not(.quote--lead) figcaption.quote__by{margin-top:auto;padding-top:28px;}   /* short quotes: the byline sits at the foot, level with its neighbour */
.teach__item{
  display:flex;flex-direction:column;min-height:465px;
  border:1px solid var(--line);border-radius:var(--radius);padding:clamp(26px,2.8vw,37px);
  background:var(--bg);
}
.teach__item::before,.teach__item::after{
  content:'';position:absolute;border-radius:inherit;pointer-events:none;
  opacity:0;transition:opacity .4s ease;
}
.teach__item::after{inset:0;z-index:-1;background:radial-gradient(120% 60% at 100% 100%,var(--accent-glow),transparent 62%);}
.teach__item::before{
  inset:-1px;padding:1px;
  background:linear-gradient(to bottom,var(--line),var(--accent-stroke));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;   /* leaves only the 1px ring */
}
.teach__item:hover::before,.teach__item:hover::after{opacity:1;}
/* the LABA card links out to the course page: the whole card is the link, with the corner arrow */
.teach__link{color:inherit;}
.teach__link::after{content:'';position:absolute;inset:0;border-radius:var(--radius);z-index:3;}
.teach__item:hover .card__arrow{color:var(--ink);transform:translate(2px,-2px);}

/* recommendation and work cards: on hover a circle of ink grows from the pointer and fills the card,
   and the text turns light (after newlogic.cz's footer). --x/--y/--d come from app.js; centre as fallback */
.quote:not(.quote--lead)::after,.card:has(.card__link)::after{
  content:'';position:absolute;z-index:-1;pointer-events:none;
  left:var(--x,50%);top:var(--y,50%);width:var(--d,300%);aspect-ratio:1;border-radius:50%;
  background:var(--hover-fill);
  transform:translate(-50%,-50%) scale(0);
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.quote:not(.quote--lead):hover::after,.card:has(.card__link):hover::after{transform:translate(-50%,-50%) scale(1);}
/* work cards: the same fill behind the copy and the mockups; logos go white, chips go outline */
.card:has(.card__link){isolation:isolate;overflow:hidden;}
.card:has(.card__link),.card__summary,.card__summary strong,.chips li,.card__logo{transition:color .45s ease,border-color .45s ease,background-color .45s ease,filter .45s ease,transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease;}
.card:has(.card__link):hover{color:var(--on-dark);border-color:var(--hover-fill);}
.card:has(.card__link):hover .card__summary{color:var(--on-dark-2);}
.card:has(.card__link):hover .card__summary strong{color:var(--on-dark);}
.card:has(.card__link):hover .chips li{color:var(--on-dark-2);border-color:var(--line-dark-4);background:transparent;}
.card:has(.card__link):hover .card__logo{filter:brightness(0) invert(1);}
.card:has(.card__link):hover .card__arrow{color:var(--on-dark);}
.quote:not(.quote--lead),.quote:not(.quote--lead) .quote__role,.quote:not(.quote--lead) .quote__link{transition:color .45s ease,border-color .45s ease;}
.quote:not(.quote--lead):hover{color:var(--on-dark);border-color:var(--hover-fill);}
.quote:not(.quote--lead):hover .quote__role,.quote:not(.quote--lead):hover .quote__link{color:var(--on-dark-soft);}
.quote:not(.quote--lead):hover .quote__link:hover{color:var(--on-dark);}
.quote:not(.quote--lead):hover .todo{outline-color:var(--line-dark-4);}
.teach__item h3{font-family:var(--font-display);font-weight:700;font-size:var(--fs-h4);margin:auto 0 12px;letter-spacing:-.01em;}   /* auto top: the words sit at the foot */
.teach__item p{margin:0;color:var(--ink-2);font-size:var(--fs-sm);}
/* with subgrid the three cards share their rows, so the headings sit on one line across the row
   whatever the length of the text beneath them */
@supports (grid-template-rows:subgrid){
  @media (min-width:901px){
    /* the middle row is the open space above the heading; it sets the card to ~465px (Figma) */
    .teach{grid-template-rows:auto minmax(clamp(150px,19vw,223px),auto) auto;row-gap:0;}
    .teach__item{display:grid;grid-row:span 3;grid-template-rows:subgrid;min-height:0;}
    .teach__item h3{align-self:end;}
  }
}
.teach__item strong{color:var(--ink);font-weight:600;}
/* institution marks: forced to ink so two brand palettes stay out of the page's
   one-green system. Reserved height keeps all three headings on the same line. */
.teach__mark{display:flex;align-items:center;height:28px;margin-bottom:18px;}
.teach__logo{width:auto;filter:brightness(0);opacity:.78;}
.teach__logo--laba{height:18px;}
.teach__logo--vse{height:27px;}
.teach__icon{width:28px;height:28px;color:var(--ink);opacity:.78;}

.quotes{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(18px,2.4vw,28px);}
.quote{margin:0;border:1px solid var(--line);border-radius:var(--radius);padding:clamp(26px,3vw,44px);background:var(--bg);}   /* hover: ink fill from the pointer, see above */
.quote--lead{grid-column:1 / -1;background:var(--dark);color:var(--on-dark);border-color:transparent;}
.quote blockquote{margin:0;font-family:var(--font-display);font-weight:600;letter-spacing:-.01em;font-size:var(--fs-quote);line-height:1.34;}
.quote--lead blockquote::first-letter{color:var(--accent);}
.quote--lead .quote__logo--vse{height:24px;}
@media (min-width:901px){.quote--end{order:1;}}   /* third in the source (and on one column), last in the two-column grid */   /* VŠE's narrow mark next to the 22px Flashscore one */
/* the half-width cards carry longer quotes, so they read a step smaller */
.quote:not(.quote--lead) blockquote{font-size:var(--fs-quote-sm);line-height:1.45;}
.quote figcaption{margin-top:22px;display:flex;flex-direction:column;gap:2px;}
.quote__name{font-weight:700;}
.quote__role{color:var(--ink-soft);font-size:var(--fs-meta);}
.quote--lead .quote__role{color:var(--on-dark-soft);}
/* lead reference: face, name and role, then the LinkedIn link */
.quote figcaption.quote__by{flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px;margin-top:28px;}
.quote__avatar{--initials-size:.95rem;width:60px;height:60px;border-radius:50%;flex:none;overflow:hidden;display:grid;place-items:center;background:var(--dark-2);color:var(--on-dark);font-weight:600;font-size:var(--initials-size);box-shadow:0 0 0 1px var(--line-dark-3);}  /* the hairline keeps a dark portrait from dissolving into the dark card */
.quote__avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.quote__who{display:flex;flex-direction:column;gap:2px;flex:1 1 0;min-width:0;}   /* a long role wraps beside the photo, not under it */
.quote__link{display:inline-flex;color:var(--on-dark-soft);transition:color .2s;}
.quote__link:hover{color:var(--on-dark);}
.quote:not(.quote--lead) .quote__link{color:var(--ink-soft);}
.quote:not(.quote--lead) .quote__link:hover{color:var(--ink);}
.quote__who .quote__name{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;}
.quote__link svg{width:16px;height:16px;}
.quote__logo{margin-left:auto;height:16px;width:auto;filter:brightness(0) invert(1);opacity:.82;}
/* small cards: a smaller mark in quiet grey right after the name and the LinkedIn icon,
   turning light with the hover fill */
.quote__name .quote__logo{margin-left:6px;height:11px;flex:none;filter:brightness(0);opacity:.5;transition:filter .45s ease,opacity .45s ease;}
.quote:not(.quote--lead):hover .quote__logo{filter:brightness(0) invert(1);opacity:.82;}
/* optical sizes: Schaeffler's heavy caps read well small; the thinner marks need more height to match */
.quote__logo--flashscore{height:22px;}
.quote__name .quote__logo--flashscore{height:15px;}
.quote__name .quote__logo--vse{height:16px;}
/* phones: the mark moves under the role at its full size (a copy, hidden from screen readers) */
.quote__logo--stack{display:none;filter:brightness(0);opacity:.5;transition:filter .45s ease,opacity .45s ease;}

.about__grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(28px,4vw,64px);align-items:stretch;}
.about__figure{margin:0;position:relative;}   /* as tall as the text beside it */
/* documentary shot runs in full colour so the subject separates from the busy scene;
   the formal hero portrait stays black & white */
/* reaches 16px past the text column at both ends, so it frames the text rather than matching it;
   the crop keeps the face and the Figma logo in frame */
.about__photo{position:absolute;inset:-16px 0;height:calc(100% + 32px);border-radius:var(--radius);width:100%;object-fit:cover;object-position:50% 40%;display:block;}
.about__text p{font-size:var(--fs-lead-sm);color:var(--ink-2);margin:0 0 20px;}
.about__text strong{color:var(--ink);font-weight:600;}
.about__focus{margin-top:clamp(28px,3vw,40px);}
.about__focus h3{font-size:var(--fs-label);font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft);margin:0 0 8px;}
.about__focus ul{list-style:none;margin:0;padding:0;}
.about__focus li{padding:12px 0;border-top:1px solid var(--line);color:var(--ink);}
.about__focus li:last-child{border-bottom:1px solid var(--line);}

.contact__title{font-family:var(--font-display);font-weight:800;letter-spacing:-.03em;line-height:1;font-size:var(--fs-display-1);margin:0 0 36px;text-wrap:balance;}
.about__title{font-family:var(--font-display);font-weight:800;letter-spacing:-.03em;line-height:1.02;font-size:var(--fs-display-4);margin:0 0 var(--space-block);max-width:18ch;text-wrap:balance;}
/* the Email button copies the address rather than opening a mail client */
.email-copy__icon--done{display:none;color:var(--accent);}
.email-copy.is-copied .email-copy__icon--mail{display:none;}
.email-copy.is-copied .email-copy__icon--done{display:block;}
.contact__links{display:flex;flex-wrap:wrap;gap:14px;}

.footer{display:flex;align-items:center;justify-content:space-between;padding-block:40px;border-top:1px solid var(--line);color:var(--ink-soft);}
.footer__logo{height:16px;width:auto;}
.footer__meta{display:inline-flex;align-items:center;gap:8px;}
.footer__dot{width:12px;height:12px;border-radius:50%;background:var(--ink);flex:none;}   /* the logo's O as a separator (Figma 77:654499) */

/* editable placeholders — neutral gray so the brand green never means "unfinished" */
.todo{outline:1px dashed var(--todo);outline-offset:4px;border-radius:var(--radius-xs);padding:12px 14px;}


/* custom cursor (mouse and trackpad only; app.js adds .has-cursor and the element).
   A disc that shows what's under it inverted and in greyscale: black on white, white on ink, and
   grey on the green fills (a plain difference blend turns green into magenta). Drawn at hover size
   and scaled down, so both sizes stay crisp. */
html.has-cursor,html.has-cursor *{cursor:none !important;}
.cursor{
  position:fixed;left:0;top:0;z-index:100;pointer-events:none;
  width:var(--cursor-hover);height:var(--cursor-hover);
  margin:calc(var(--cursor-hover) / -2) 0 0 calc(var(--cursor-hover) / -2);
  will-change:transform;
}
.cursor__dot{
  width:100%;height:100%;border-radius:50%;
  -webkit-backdrop-filter:grayscale(1) invert(1) brightness(1.6);backdrop-filter:grayscale(1) invert(1) brightness(1.6);   /* lifts the mid grey from green fills so inverted text stays readable */
  opacity:0;
  transform:scale(calc(var(--cursor) / var(--cursor-hover)));
  transition:transform .35s var(--ease-spring),opacity .2s ease;
}
.cursor.is-visible .cursor__dot{opacity:1;}
.cursor.is-link .cursor__dot{transform:scale(1);}
.cursor.is-down .cursor__dot{transform:scale(calc(var(--cursor) / var(--cursor-hover) * .7));}
.cursor.is-link.is-down .cursor__dot{transform:scale(.85);}

@media (max-width:900px){
  .values{grid-template-columns:1fr;gap:22px;}
  /* stacked feature cards: half the air between the chips and the mockup (70 → 35px) */
  .card--feature .card__body,.card--ofigo .card__body{padding-bottom:0;}
  .card--feature .card__body .chips{margin-bottom:11px;}
  .card--feature{grid-template-columns:1fr;}
  .card--feature,.card{grid-column:1 / -1;}
  .bento{grid-template-columns:1fr;}
  .cs__grid,.quotes,.about__grid{grid-template-columns:1fr;}
  .about__photo{position:static;height:auto;aspect-ratio:4/5;}
  .teach{grid-template-columns:1fr;}
  .teach__item{min-height:0;}
  .teach__item h3{margin-top:clamp(40px,10vw,64px);}
  .worklog__list li{display:block;}
  .worklog__list .org{margin-top:12px;height:auto;}
  .worklog__list .when{height:auto;}
  .worklog__list .what{display:block;margin-top:8px;}
}
@media (max-width:560px){
  .cs-stats__grid{grid-template-columns:repeat(2,1fr);}
  .cs-stats__item:nth-child(3){border-left:0;}
  .cs-stats__item:nth-child(n+3){border-top:1px solid var(--line);}
  .cs-stats__grid--3{grid-template-columns:1fr;}
  .cs-stats__grid--3 .cs-stats__item{border-left:0;}
  .cs-stats__grid--3 .cs-stats__item:nth-child(n+2){border-top:1px solid var(--line);}
  .nav__links{gap:16px;font-size:var(--fs-nav-sm);}
  /* phones keep Contact (the reason most people visit) and drop Work log, which is one scroll below Work */
  .nav__worklog{display:none;}
  /* the wide composition would leave the card 170px across — show the phone
     at a readable size and drop the floating values, which only repeat it */
  .swap__stage{--swap-pad:clamp(20px,5vw,28px);--pw:min(280px,76%);}
  .swap__scene{aspect-ratio:auto;padding-top:var(--swap-pad);}
  .swap__phone--live{position:relative;left:auto;top:auto;width:var(--pw);margin-inline:auto;}
  .swap__phone--final{left:50%;top:var(--swap-pad);width:var(--pw);transform:translateX(-50%);}
  .chip{display:none;}
  /* the pitch column alone, at a readable size */
  .lineup__scene{width:190.06%;margin-left:-45.12%;}   /* the card (x 257–775 of 1032) plus a 12px margin */
  /* the phone at a readable size, centred on the ground */
  .refs__scene{width:190%;margin-left:-45%;}
  /* the window nearly full width, so the page reads */
  .site__window{left:3%;width:94%;}
}

/* phones: the switchers span the column, segments share it equally; reference bylines stack
   (photo, name and role, company mark); the two contact buttons stack at the same full width */
@media (max-width:560px){
  .swap__toggle{display:flex;width:100%;box-sizing:border-box;}
  .swap__btn{flex:1 1 auto;min-width:0;min-height:40px;padding-inline:6px;text-align:center;white-space:nowrap;}   /* fill the row (a longer label takes a little more); 40px touch target */
  /* bylines stack: photo, then name and role, then the company mark if there is one */
  .quote figcaption.quote__by{flex-direction:column;align-items:flex-start;gap:14px;}
  .quote .quote__who{flex:none;}
  .quote--lead .quote__logo{margin-left:0;}
  .quote__name .quote__logo{display:none;}
  .quote__who .quote__logo--stack{display:block;align-self:flex-start;margin:10px 0 0;height:16px;}
  .quote__who .quote__logo--stack.quote__logo--flashscore{height:22px;}
  .quote__who .quote__logo--stack.quote__logo--vse{height:24px;}
  .contact__links .btn{flex:1 1 100%;}
  /* hero: a little tighter between portrait, lead and buttons (28 → 20, 40 → 28px) */
  .hero__lead{margin-top:20px;}
  .hero__cta{margin-top:28px;}
}

/* three-way toggles stay on one line down to 320px, still at the 11px floor */
@media (max-width:400px){
  /* four links plus the logo: a smaller logo and tighter gaps keep a clear space between them */
  .nav__logo{height:16px;}
  .nav__links{gap:12px;}
  .lineup .swap__btn,.refs .swap__btn{letter-spacing:.02em;padding-inline:9px;white-space:nowrap;}
}
@media (max-width:350px){
  .nav__links{gap:10px;font-size:var(--fs-xs);}   /* 320px: smaller type so four links still fit */
  .lineup .swap__btn,.refs .swap__btn{font-size:var(--fs-floor);letter-spacing:0;padding-inline:5px;}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important;}
  html{scroll-behavior:auto;}
  /* microinteraction demo settles in the favorited state */
}
