/* =====================================================================
   korecky.org design system  (plain CSS, no framework)
   ---------------------------------------------------------------------
   TOKENS (custom properties; .dark / .light re-define them per band)
     --bg --fg --muted --accent --band-dark --band-light
     --surface --surface-2 --line --dim --grad --pill --radius --gutter --container --nav-h
     --i (stagger index, set by JS)

   LAYOUT
     .container            centred column, max 1120px + fluid gutters
     .band.dark|.light     full-width section band (#000 / #f5f5f7)
     .section-head         centred heading block above section content
     .split                two-column text/media on >=860px, stacked on phones
     .center               centre text and .actions

   TYPE
     .eyebrow  small blue kicker      .display  hero-size heading (use on the h1)
     .title    section h2             .sub      large sub-line under a title
     .lead     muted intro paragraph  .statement  huge centred statement; <em> = bright words
     .giant    enormous word/number   .gradient-text  animated blue-violet gradient fill
     .more     text link with " ›"

   COMPONENTS
     .nav > .nav-inner > .nav-brand + button.nav-toggle[aria-expanded][aria-controls] + nav.nav-menu#…
           (.nav-lang = language switch link; menu is a plain wrapped row when JS is off)
     .hero > .hero-copy.hero-in (children fade up in sequence) + .hero-media.glow > img
     .glow                 soft pulsing blue/purple glow behind its content (portrait)
     .pill  .pill.ghost  .pill.neutral   pill buttons (filled / outline / grey); .actions = row of pills
     .tiles > .tile(.wide)(.dark|.light)  tile grid, 1 col phone / 2 cols desktop
     .card                 text card (used in .cards-grid)
     .stats > .stat > .stat-num[data-count] + .stat-label
     .timeline > li > .when + h3 + p
     .faq > details > summary + p
     .media                rounded image/figure
     .footer > .container.footer-inner ; button.linklike[data-consent-settings] = "Cookie settings" (the only footer content;
                           e-mail, phone and LinkedIn live once, in the Contact section)
     .skip-link            first element in <body> (layout.html)
     .consent              cookie banner, built by site.js from body data-consent-* attributes

   JS HOOKS (site.js; everything is fully visible without JS)
     html.js                     set by site.js; hidden-before-reveal states apply ONLY under it
     .reveal | [data-reveal]     fade up when scrolled into view (adds .is-in)
     [data-reveal="zoom"]        fade + scale in
     [data-reveal="stagger"]     its children fade up one after another
     [data-reveal="words"]       statement words light up as you scroll (wraps words in .w)
     [data-count="20"]           count-up from 0; write the final value as the text too.
                                 Keep suffixes outside: <span data-count="20">20</span>+
     [data-parallax="0.15"]      slow parallax (factor, default 0.15); uses `transform`
     [data-consent-settings]     reopens the consent banner

   HOME PAGE (Task 5)
     .nav-cta              compact CTA pill in the nav bar (sibling of .nav-menu); holds .cta-long (>=480px) and
                           .cta-tiny (<480px, short label so the brand name is not clipped); exactly one is displayed
     .note                 small muted line (under hero actions)
     .center-block         centred paragraph block with top spacing
     .areas-tiles          4-up tile row (2x2 on tablets, 1 column on phones); data-reveal="stagger"
     .viz.viz-bars|lock|grid|seats   CSS-only decorative visual (aria-hidden), animates when its
                           .areas-tiles parent gets .is-in; static without JS / reduced motion
     .cards-grid           responsive grid of .card (1/2/3 columns); .cards-grid.pairs caps at 2 columns;
                           a lone last card in an otherwise full grid spans the whole row
     .about-media          portrait column in About
     .contact-list a       quiet row of three links, symmetric around the middle (LinkedIn) item: e-mail · LinkedIn · phone; one centred column < 640px (body font, --fg, no underline; underline + accent on hover/focus)
     .contact-form-wrap    form under the contact row (Task 25): form.contact-form#contact-form[hidden until site.js] > .field(label + input|textarea + p.field-error) + .hp honeypot (off-screen) + button.pill + p.form-note;
                           p.form-status[role=status] and noscript > p.form-fallback are siblings of the form
     .works > li.work      projects grid (1 / 2 cols >=640 / 4 cols >=1100), not clickable:
                           picture (4:3 cover; .work-pos-N = focus generated from objectPosition) + .work-body >
                           small (area, omitted when equal to the title) + h3 + p.work-tags + p.work-summary
   READABILITY (Task 7)
     p, li, summary        text-wrap: pretty (progressive enhancement; fewer one-word last lines)
     #hero                 own padding (--hero-pad) and a capped headline so the CTA is above the fold on laptops;
                           the gradient second sentence of the h1 is a block (starts its own line);
                           short phones (<760px wide, <=700px tall) show the CTA row right under the headline
     .consent (<760px)     slim bottom bar: title visually hidden (still labels the dialog), small text, buttons inline
     .is-split .w          word reveal: unlit = --fg at --dim opacity; lit plain words = --muted, lit <em> words = --fg,
                           so the emphasis survives the reveal
     tap targets           nav CTA >= 40px tall; footer cookie button >= 44px tall
   LEVELS OF AI ADOPTION (Task 15)
     .vh                   visually hidden, still read by screen readers
     .problem-tiles        3 tiles: 3 columns >=1000px; 760-999px 2 columns, the lone last tile spans the row
     ol.stairs[role=list][data-reveal="stagger"] > li.level > .level-rise + h3 (> .vh "Level N: ") + p
                           .level-rise > p.level-flag(.level-winners)? + .level-num[aria-hidden] + .level-step[aria-hidden]
                           >=1000px: six equal columns, step shapes rise left to right (nth-child heights), rows aligned
                           by subgrid; level 5 step is an outline ("mostly theory"). .level-flag = label + bracket over
                           its step; .level-winners spans levels 3-4 (lives in level 3, reaches forward one column and
                           sits one step higher so the bracket clears the "4"; hidden suffix "(levels 3 and 4)").
                           <1000px: vertical list, number + title row, a short rising bar beside the text; flags are
                           pills; levels 3-4 share an accent line on the left. Steps grow in when the list gets .is-in.
     .levels-close         centred closing text + CTA under the staircase
   Reveal uses `translate`/`scale`, hover uses `scale`, parallax uses `transform`, so they never
   fight. Do not put .reveal on hero content (the hero has its own load animation).
   ===================================================================== */

:root {
  --band-dark: #000;
  --band-light: #f5f5f7;
  --bg: var(--band-dark);
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #2997ff;
  --surface: #1d1d1f;
  --surface-2: #2a2a2d;
  --line: #424245;
  --dim: .4;
  --grad: linear-gradient(90deg, #2997ff, #bf5af2 35%, #ff6b6b 65%, #2997ff);
  --pill: #0071e3;
  --radius: 28px;
  --container: 1120px;
  --gutter: clamp(16px, 5vw, 44px);
  --nav-h: 52px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
.dark {
  --bg: var(--band-dark); --fg: #f5f5f7; --muted: #a1a1a6; --accent: #2997ff;
  --surface: #1d1d1f; --surface-2: #2a2a2d; --line: #424245; --dim: .4;
  --grad: linear-gradient(90deg, #2997ff, #bf5af2 35%, #ff6b6b 65%, #2997ff);
  color-scheme: dark;
}
.light {
  --bg: var(--band-light); --fg: #1d1d1f; --muted: #6e6e73; --accent: #0066cc;
  --surface: #fff; --surface-2: #fff; --line: #d2d2d7; --dim: .5;
  --grad: linear-gradient(90deg, #0066cc, #8e3fd1 35%, #c4314b 65%, #0066cc);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--band-dark); color: var(--fg);
  font: 400 17px/1.5 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.07; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
p, li, summary { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 300;
  background: #fff; color: #000; padding: 10px 18px; border-radius: 980px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { position: relative; background: var(--bg); color: var(--fg); padding-block: clamp(72px, 12vw, 148px); overflow: clip; }
.center { text-align: center; }
.center .actions { justify-content: center; }
.section-head { text-align: center; max-width: 900px; margin: 0 auto clamp(40px, 6vw, 80px); }
.section-head .actions { justify-content: center; }
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- type ---------- */
.eyebrow { display: block; color: var(--accent); font-size: clamp(14px, 1.4vw, 17px); font-weight: 600; letter-spacing: 0; margin: 0 0 14px; }
.display { font-size: clamp(40px, 7.4vw, 96px); line-height: 1.03; letter-spacing: -.03em; margin-bottom: 20px; }
.title { font-size: clamp(32px, 5.6vw, 64px); }
.title + .sub, .title + .lead { margin-top: 14px; }
.sub { font-size: clamp(19px, 2.3vw, 28px); line-height: 1.25; font-weight: 500; color: var(--fg); margin: 0 0 8px; }
.lead { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; color: var(--muted); max-width: 36em; }
.center .lead, .section-head .lead { margin-inline: auto; }
.statement {
  font-size: clamp(28px, 4.6vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em;
  max-width: 19em; margin: 0 auto; text-align: center; color: var(--muted); text-wrap: balance;
}
.statement em { font-style: normal; color: var(--fg); }
.giant { font-size: clamp(96px, 22vw, 260px); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.gradient-text {
  color: var(--accent);
  background: var(--grad) 0 50% / 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shift 14s linear infinite;
}
.more { font-weight: 500; text-decoration: none; }
.more::after { content: "\00a0›"; }
.more:hover { text-decoration: underline; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; min-height: var(--nav-h);
  background: rgba(0, 0, 0, .72); color: #f5f5f7;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: var(--nav-h); flex-wrap: wrap; }
.nav-brand { color: #f5f5f7; font-weight: 600; text-decoration: none; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(16px, 2.4vw, 32px); }
.nav-menu a { color: #d2d2d7; font-size: 14px; text-decoration: none; padding-block: 6px; }
.nav-menu a:hover { color: #fff; }
.nav-menu .nav-lang { border: 1px solid #6e6e73; border-radius: 980px; padding: 2px 12px; }
.nav-toggle { display: none; flex-shrink: 0; position: relative; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; background: currentColor;
  transition: transform .3s var(--ease);
}
.nav-toggle::before { transform: translateY(-4px); }
.nav-toggle::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
@media (max-width: 759px) {
  .nav-inner { padding-block: 8px; }
  html.js .nav-inner { flex-wrap: nowrap; padding-block: 0; }
  html.js .nav-toggle { display: block; }
  html.js .nav-cta { flex-shrink: 0; white-space: nowrap; }
  html.js .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: rgba(0, 0, 0, .96);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  html.js .nav.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  html.js .nav-menu a { font-size: 24px; font-weight: 600; color: #f5f5f7; padding: 14px 0; border-bottom: 1px solid #1d1d1f; }
  html.js .nav-menu .nav-lang { border: 0; border-radius: 0; padding: 14px 0; }
}

/* ---------- hero ---------- */
.hero { display: grid; align-items: center; gap: clamp(32px, 5vw, 72px); min-height: min(calc(100svh - var(--nav-h) - 2 * var(--hero-pad)), 760px); }
#hero.band { --hero-pad: clamp(56px, 6vw, 88px); padding-block: var(--hero-pad); }
#hero .display { font-size: clamp(40px, 6.4vw, 80px); }
#hero .display .gradient-text { display: block; } /* second sentence always starts its own line */
@media (max-width: 759px) and (max-height: 700px) {
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy .actions { order: 1; margin-top: 4px; }
  .hero-copy .note { order: 2; }
  .hero-copy .lead { order: 3; }
}
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr .85fr; } }
.hero-in > * { animation: up 1s var(--ease) both; }
.hero-in > :nth-child(2) { animation-delay: .15s; }
.hero-in > :nth-child(3) { animation-delay: .35s; }
.hero-in > :nth-child(4) { animation-delay: .55s; }
.hero-in > :nth-child(n+5) { animation-delay: .7s; }
.hero-media { width: 100%; max-width: 440px; margin-inline: auto; animation: rise 1.6s .2s var(--ease) both; }
.hero-media img { width: 100%; border-radius: var(--radius); -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; inset: -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(41, 151, 255, .38), rgba(191, 90, 242, .2) 55%, transparent 76%);
  filter: blur(28px); animation: glow 7s ease-in-out infinite; will-change: transform, opacity;
}
.media { border-radius: var(--radius); overflow: hidden; }
.media img { width: 100%; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: 980px;
  background: var(--pill); color: #fff; font: inherit; font-size: 17px; font-weight: 500; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, scale .2s var(--ease);
}
.pill:hover { background: #0077ed; text-decoration: none; }
.pill:active { scale: .97; }
.pill.ghost { background: transparent; color: var(--accent); border-color: currentColor; }
.pill.ghost:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pill.neutral { background: var(--surface-2); color: var(--fg); }
.pill.neutral:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--fg)); }

/* ---------- tiles ---------- */
.tiles { display: grid; gap: 12px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tile.wide { grid-column: 1 / -1; } }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  min-height: clamp(280px, 34vw, 420px); padding: clamp(28px, 4vw, 52px);
  background: var(--surface); color: var(--fg); border-radius: var(--radius);
  transition: scale .6s var(--ease);
}
.tile.dark, .tile.light { background: var(--bg); }
.tile:hover { scale: 1.012; }
:where(.tile) h3 { font-size: clamp(26px, 3.2vw, 40px); }
.tile p { color: var(--muted); max-width: 32em; }
.tile .actions { margin-top: auto; padding-top: 16px; }

/* ---------- cards ---------- */
.card {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 260px; padding: 28px; border-radius: 24px;
  background: var(--surface); color: var(--fg); text-decoration: none;
  transition: scale .5s var(--ease), background-color .5s;
}
.card:hover { scale: 1.03; background: var(--surface-2); }
:where(.card) h3 { font-size: 22px; line-height: 1.15; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; text-align: center; }
.stat-num { display: block; font-size: clamp(52px, 8vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 8px; color: var(--muted); }

/* ---------- timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: clamp(32px, 5vw, 56px); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding-left: 44px; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); transition: background-color .4s;
}
.timeline .when { display: block; color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
:where(.timeline) h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 24px 48px 24px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  color: var(--accent); font-size: 30px; font-weight: 300; line-height: 1; transition: rotate .3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > :not(summary) { color: var(--muted); max-width: 65ch; margin: 0 0 24px; }

/* ---------- footer ---------- */
.footer { --bg: var(--band-light); --fg: #1d1d1f; --muted: #6e6e73; --accent: #0066cc; background: var(--bg); color: var(--muted); font-size: 13px; padding-block: 20px 28px; color-scheme: light; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.footer a, .linklike { color: #424245; }
.linklike { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- consent banner ---------- */
.consent {
  --fg: #f5f5f7; --accent: #2997ff; --surface-2: #3a3a3c;
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto;
  padding: 22px 22px 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px;
  background: rgba(29, 29, 31, .94); color: var(--fg); box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  animation: up .5s var(--ease) both; color-scheme: dark;
}
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent-title { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.consent-text { font-size: 15px; line-height: 1.45; color: #a1a1a6; margin: 0 0 16px; }
.consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.consent .pill { flex: 1 1 120px; min-height: 42px; padding: 8px 18px; font-size: 15px; }
@media (max-width: 759px) {
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 8px 12px; border-radius: 16px; }
  .consent-title { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .consent-text { font-size: 13px; line-height: 1.3; margin: 0 0 8px; }
  .consent-actions { flex-wrap: nowrap; gap: 8px; }
  .consent .pill { flex: 1 1 0; min-height: 40px; padding: 6px 12px; font-size: 14px; }
}

/* ---------- JS-driven states (only under html.js) ---------- */
html.js :is(.reveal, [data-reveal=""], [data-reveal="up"]),
html.js [data-reveal="stagger"] > * {
  opacity: 0; translate: 0 36px;
  transition: opacity .9s var(--ease), translate .9s var(--ease), scale .5s var(--ease), background-color .5s;
}
html.js [data-reveal="stagger"] > * { transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
html.js [data-reveal="zoom"] { opacity: 0; scale: .92; transition: opacity 1.1s var(--ease), scale 1.1s var(--ease); }
html.js :is(.reveal, [data-reveal=""], [data-reveal="up"]).is-in,
html.js [data-reveal="stagger"].is-in > * { opacity: 1; translate: none; }
html.js [data-reveal="zoom"].is-in { opacity: 1; scale: none; }
.is-split .w { opacity: var(--dim); color: var(--fg); transition: opacity .4s var(--ease), color .4s var(--ease); }
.is-split .w.on { opacity: 1; color: var(--muted); }
.is-split em .w.on { color: var(--fg); }
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  html.js [data-parallax] { will-change: transform; }
}

/* ---------- home page ---------- */
.nav-cta { order: 3; min-height: 40px; padding: 4px 14px; font-size: 14px; color: #fff; }
.nav-menu { margin-left: auto; }
.nav-cta .cta-tiny { display: none; }
@media (max-width: 479px) {
  .nav-cta .cta-long { display: none; }
  .nav-cta .cta-tiny { display: inline; }
}
@media (max-width: 759px) {
  html.js .nav-cta { order: 1; margin-left: auto; }
  html.js .nav-toggle { order: 2; }
}
@media (max-width: 359px) {
  html.js .nav-inner { gap: 8px; }
  .nav-brand { font-size: 15px; }
  html.js .nav-cta { padding: 4px 10px; font-size: 13px; }
}
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }
.center-block { text-align: center; margin: clamp(40px, 6vw, 72px) auto 0; }
.problem-tiles { margin-top: clamp(40px, 6vw, 72px); }
.problem-tiles .tile, .proof-tiles .tile { min-height: 0; }
.problem-tiles h3, .proof-tiles h3 { font-size: clamp(22px, 2.4vw, 30px); }

@media (min-width: 760px) and (max-width: 999px) { .problem-tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .problem-tiles { grid-template-columns: repeat(3, 1fr); } }

/* ---------- levels of AI adoption (staircase) ---------- */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stairs { --gap: 8px; list-style: none; margin: 0 auto; padding: 0; max-width: 680px; }
.level {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 16px;
  grid-template-areas: "flag flag" "num title" "step text";
  padding-block: 22px; border-top: 1px solid var(--line);
}
.level:last-child { border-bottom: 1px solid var(--line); }
.level-rise { display: contents; }
.level-flag { grid-area: flag; justify-self: start; margin: 0 0 12px; padding: 4px 12px; border-radius: 980px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.level-num { grid-area: num; align-self: center; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--fg); }
.level-step { grid-area: step; align-self: start; display: block; width: calc(12px + var(--n, 0) * 10px); height: 6px; margin-top: .65em; border-radius: 3px; background: var(--step); transform-origin: left; }
.level h3 { grid-area: title; align-self: center; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.15; }
.level p:not(.level-flag) { grid-area: text; margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
/* levels 3-4 (the "winners" marker): one accent line on the left across both */
.level { position: relative; }
.level:nth-child(4)::before, .level:nth-child(5)::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 2px; background: var(--accent); }
/* rising order: step length/height and colour by level (CSP forbids style="", so nth-child) */
.level:nth-child(1) { --n: 0; --step: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.level:nth-child(2) { --n: 1; --step: color-mix(in srgb, var(--accent) 38%, var(--surface)); }
.level:nth-child(3) { --n: 2; --step: color-mix(in srgb, var(--accent) 54%, var(--surface)); }
.level:nth-child(4) { --n: 3; --step: color-mix(in srgb, var(--accent) 70%, var(--surface)); }
.level:nth-child(5) { --n: 4; --step: color-mix(in srgb, var(--accent) 86%, var(--surface)); }
.level:nth-child(6) { --n: 5; --step: transparent; }
.level:nth-child(6) .level-step { outline: 2px dashed var(--accent); outline-offset: -2px; }

@media (min-width: 1000px) {
  .stairs { max-width: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); }
  .level {
    grid-row: span 3; grid-template-columns: none; grid-template-areas: none; grid-template-rows: subgrid; row-gap: 0;
    padding: 0; border: 0;
  }
  .level:nth-child(4)::before, .level:nth-child(5)::before { content: none; }
  .level:last-child { border: 0; }
  .level h3, .level p:not(.level-flag) { grid-area: auto; }
  .level-rise { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .level-num { align-self: auto; font-size: clamp(48px, 4.6vw, 68px); margin: 0 0 14px 4px; }
  .level-step {
    align-self: stretch; width: auto; height: calc(28px + var(--n) * 30px); margin: 0; border-radius: 16px 16px 0 0;
    background: linear-gradient(var(--step), color-mix(in srgb, var(--step) 35%, var(--bg)));
    transform-origin: bottom;
  }
  .level:nth-child(6) .level-step { background: none; outline: 0; border: 2px dashed var(--accent); border-bottom: 0; }
  .level h3 { align-self: start; padding: 22px 12px 0 4px; font-size: clamp(19px, 1.75vw, 23px); hyphens: manual; }
  .level p:not(.level-flag) { margin: 10px 0 0; padding: 0 12px 0 4px; font-size: 15px; }
  .level-flag {
    position: relative; margin: 0 0 14px; padding: 0 0 14px; border-radius: 0; background: none; text-align: center;
    font-size: 14px;
  }
  .level-flag::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 8px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
  /* 44px = the flag's 14px margin + one 30px step, so the bracket clears level 4's taller number */
  .level-winners { margin-left: 0; width: calc(200% + var(--gap)); margin-bottom: 44px; }
}

.levels-close { max-width: 40em; margin: clamp(48px, 7vw, 88px) auto 0; text-align: center; }
.levels-close .lead { margin-inline: auto; color: var(--fg); }
.levels-close .lead + .lead { color: var(--muted); }
.levels-close > p:not(.lead) { color: var(--muted); margin: 24px auto 0; }
.levels-close .actions { justify-content: center; margin-top: 20px; }

.areas-tiles .tile { min-height: 0; padding: clamp(24px, 2.6vw, 36px); }
.areas-tiles h3 { font-size: clamp(22px, 2vw, 26px); }
.tile .tile-text { color: var(--fg); margin: 0; }
.tile .tile-detail { font-size: 15px; margin: 0; }
@media (min-width: 1100px) { .areas-tiles { grid-template-columns: repeat(4, 1fr); } }
#areas .section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.viz { position: relative; height: 72px; margin-bottom: 10px; }
.viz i { display: block; }
.viz-bars { display: flex; align-items: flex-end; gap: 8px; }
.viz-bars i { width: 14px; border-radius: 7px; background: var(--accent); transform-origin: bottom; }
.viz-bars i:nth-child(1) { height: 28%; opacity: .45; }
.viz-bars i:nth-child(2) { height: 44%; opacity: .6; }
.viz-bars i:nth-child(3) { height: 60%; opacity: .75; }
.viz-bars i:nth-child(4) { height: 80%; opacity: .9; }
.viz-bars i:nth-child(5) { height: 100%; }
.viz-lock::before {
  content: ""; position: absolute; left: 12px; top: 4px; width: 32px; height: 34px;
  border: 6px solid var(--accent); border-bottom: 0; border-radius: 20px 20px 0 0;
}
.viz-lock::after {
  content: ""; position: absolute; left: 0; top: 30px; width: 56px; height: 42px; border-radius: 10px;
  background: var(--accent) radial-gradient(circle at 50% 42%, var(--surface) 0 5px, transparent 6px);
}
.viz-grid {
  width: 132px; border-radius: 10px;
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1px) 0 0 / 12px 12px;
}
.viz-grid i { position: absolute; width: 36px; height: 24px; border: 2px solid var(--accent); border-radius: 6px; background: var(--surface); }
.viz-grid i:nth-child(1) { left: 6px; top: 6px; }
.viz-grid i:nth-child(2) { left: 84px; top: 6px; }
.viz-grid i:nth-child(3) { left: 45px; top: 42px; }
.viz-seats { display: grid; grid-template-columns: repeat(6, 16px); gap: 10px; align-content: center; }
.viz-seats i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }

.cards-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
/* second topics group (software teams): spaced from the first grid; 4 cards stay 2 + 2 */
.topics-tech { margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 1000px) { .cards-grid.pairs { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-inline: auto; } }
.cards-grid .card { min-height: 0; }
/* odd card count: a lone last card spans the row instead of leaving an orphan tile (7 topics = 3+3+1 / 2+2+2+1) */
@media (min-width: 640px) and (max-width: 999px) { .cards-grid:not(.pairs) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .cards-grid:not(.pairs) > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }

/* projects: calm, not clickable (no link, no hover, default cursor); equal-height cards per row */
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .works { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .works { grid-template-columns: repeat(4, 1fr); } }
.work { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.work small { color: var(--muted); font-size: 14px; }
:where(.work) h3 { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.2; }
.work-tags { color: var(--muted); font-size: 15px; margin: 0; }
.work-summary { color: var(--fg); font-size: 15px; line-height: 1.45; margin: 4px 0 0; }

.about-media { width: 100%; max-width: 440px; margin-inline: auto; }
.about-lead { color: var(--fg); margin-top: 20px; }

.contact-list { list-style: none; margin: clamp(32px, 5vw, 48px) auto 0; padding: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 36px; }
.contact-list li:nth-child(1) { justify-self: end; }
.contact-list li:nth-child(3) { justify-self: start; }
@media (max-width: 639px) { .contact-list { grid-template-columns: 1fr; justify-items: center; } .contact-list li:nth-child(n) { justify-self: center; } }
.contact-list a { display: inline-block; padding: 12px 4px; min-height: 44px; box-sizing: border-box; font: inherit; font-size: clamp(16px, 1.3vw, 18px); font-weight: 400; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover, .contact-list a:focus-visible { color: var(--accent); text-decoration: underline; }
/* contact form (Task 25): calm centred column, no card chrome; hidden by the `hidden` attribute until site.js enables it */
.contact-form-wrap { --form-w: 560px; max-width: var(--form-w); margin: clamp(40px, 6vw, 64px) auto 0; text-align: start; }
.contact-form[hidden] { display: none; }
.contact-form { display: grid; gap: 20px; }
.form-title { font-size: clamp(22px, 2.2vw, 26px); text-align: center; margin-bottom: 4px; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; min-height: 44px; box-sizing: border-box; padding: 11px 14px;
  font: inherit; font-size: 17px; letter-spacing: inherit; color: var(--fg);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--muted); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: #ff8a80; }
.field-error { margin: 6px 0 0; font-size: 15px; color: #ff8a80; }
.field-error[hidden] { display: none; }
.contact-form .pill { justify-self: center; min-height: 44px; cursor: pointer; }
.contact-form .pill:disabled { opacity: .6; cursor: default; scale: none; }
.form-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; }
.form-status { margin: 20px 0 0; text-align: center; font-size: 17px; }
.form-status:empty { margin: 0; }
.form-status:focus { outline: none; }
.form-fallback { margin: 0; text-align: center; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.footer { border-top: 1px solid #d2d2d7; }
.footer p { margin: 0; }
.footer .linklike { display: inline-flex; align-items: center; min-height: 44px; }
.footer-inner { justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  html.js .areas-tiles .viz-bars i { transform: scaleY(.12); transition: transform .9s var(--ease); }
  html.js .areas-tiles .viz-bars i:nth-child(2) { transition-delay: .08s; }
  html.js .areas-tiles .viz-bars i:nth-child(3) { transition-delay: .16s; }
  html.js .areas-tiles .viz-bars i:nth-child(4) { transition-delay: .24s; }
  html.js .areas-tiles .viz-bars i:nth-child(5) { transition-delay: .32s; }
  html.js .areas-tiles.is-in .viz-bars i { transform: none; }
  html.js .areas-tiles .viz-lock::before { translate: 0 -12px; transition: translate .6s var(--ease) .25s; }
  html.js .areas-tiles.is-in .viz-lock::before { translate: none; }
  html.js .areas-tiles .viz-grid i { opacity: 0; scale: .6; transition: opacity .6s var(--ease), scale .6s var(--ease); }
  html.js .areas-tiles .viz-grid i:nth-child(2) { transition-delay: .15s; }
  html.js .areas-tiles .viz-grid i:nth-child(3) { transition-delay: .3s; }
  html.js .areas-tiles.is-in .viz-grid i { opacity: 1; scale: none; }
  html.js .areas-tiles .viz-seats i { background: var(--line); transition: background-color .4s; }
  html.js .areas-tiles.is-in .viz-seats i { background: var(--accent); }
  html.js .areas-tiles.is-in .viz-seats i:nth-child(n+4) { transition-delay: .15s; }
  html.js .areas-tiles.is-in .viz-seats i:nth-child(n+7) { transition-delay: .3s; }
  html.js .areas-tiles.is-in .viz-seats i:nth-child(n+10) { transition-delay: .45s; }
  html.js .stairs .level-step { transform: scale(.08, 1); transition: transform .9s var(--ease) calc(var(--n, 0) * 90ms + .2s); }
  @media (min-width: 1000px) { html.js .stairs .level-step { transform: scale(1, .08); } }
  html.js .stairs.is-in .level-step { transform: none; }
  html.js .timeline.is-in > li::before { background: var(--accent); transition-delay: calc(var(--i, 0) * 150ms + .4s); }
}

/* ---------- keyframes ---------- */
@keyframes up { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
@keyframes rise { from { opacity: 0; translate: 0 40px; scale: .97; } to { opacity: 1; translate: none; scale: none; } }
@keyframes glow { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes shift { to { background-position: 300% 50%; } }

/* ---------- reduced motion: no animation, no transitions, everything at its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js :is(.reveal, [data-reveal]), html.js [data-reveal] > * { opacity: 1 !important; translate: none !important; scale: none !important; }
  .tile:hover, .card:hover, .pill:active { scale: none; }
}

/* generated by tools/build.mjs from projects.*.json objectPosition */
.work-pos-6 img { object-position: 50% 30%; }
