/* OSC Group / AI LAB.
   One family (Archivo, variable width): wide cuts for headings, the normal
   width for reading. Colour comes from the photographs and the OSC mark; the
   interface itself stays graphite and white. The neutrals are the BuyNBack
   widget's own (surface #161618, line #29292D, text #F4F4F5, muted #9D9DA5),
   so the payment card sits in the page as if it were drawn by it. The page is
   dark only, because that embed is dark and stays byte for byte as it is.

   Radii: containers 18px (the widget's), controls 14px, thumbnails 10px. */

:root {
  --bg: #0e0e10;
  --surface: #161618;
  --line: #29292d;
  --line-2: #3a3a40;
  --text: #f4f4f5;
  --text-2: #c8c8ce;
  --muted: #9d9da5;
  --hint: #8a8a92;
  --err: #f2a99d;

  --gut: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --bar-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --r-box: 18px;
  --r-ctl: 14px;
  --r-thumb: 10px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* film grain over everything, fixed so it never repaints with the scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--gut); top: 8px; z-index: 30;
  padding: 10px 16px; border-radius: var(--r-ctl);
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ------------------------------------------------------------- type --- */
.display {
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}
.display--h2 {
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  max-width: 17ch;
}
.lede { font-size: clamp(1.125rem, 1.4vw, 1.3rem); line-height: 1.45; color: var(--text-2); max-width: 34ch; text-wrap: pretty; }
.body { color: var(--text-2); max-width: 52ch; text-wrap: pretty; }
.note { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.small { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
h3 { font-weight: 600; font-size: 1.1875rem; letter-spacing: 0; line-height: 1.25; }

/* ---------------------------------------------------------- controls --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--r-ctl);
  background: var(--text); color: var(--bg);
  font-size: 1rem; font-weight: 600; letter-spacing: 0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 0.9375rem; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #ffffff; }
  .btn--ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px #55555c; }
}

.link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-weight: 400; color: var(--text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: var(--text); } }

/* ------------------------------------------------------------ header --- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease;
}
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar__in {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--max); height: var(--bar-h); margin: 0 auto; padding: 0 var(--gut);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { width: 44px; height: auto; }
.brand span { font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 0.9375rem; font-weight: 400; color: var(--muted); text-decoration: none;
  padding: 10px 0; transition: color 200ms ease;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
@media (max-width: 960px) { .nav { display: none; } }

/* ------------------------------------------------------------ layout --- */
main > section, .foot {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--gut);
  scroll-margin-top: calc(var(--bar-h) + 8px);
}
main > section + section { padding-top: clamp(112px, 14vw, 200px); }

/* --------------------------------------------------------------- hero --- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; column-gap: clamp(32px, 5vw, 96px);
  min-height: calc(100dvh - var(--bar-h));
  padding-block: clamp(24px, 4vh, 48px) clamp(32px, 5vh, 56px);
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5.25rem); margin-bottom: 28px; max-width: 13ch; }
.hero .lede { margin-bottom: 36px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* The template frame: the signature. */
.lab {
  display: grid;
  grid-template-columns: auto 64px;
  grid-template-rows: auto auto;
  column-gap: 12px; row-gap: 14px;
  --stage-h: min(72dvh, 700px);
}
.lab__stage {
  grid-column: 1; grid-row: 1;
  position: relative; overflow: hidden; isolation: isolate;
  height: var(--stage-h); aspect-ratio: 3 / 4;
  border-radius: var(--r-box);
  background: var(--surface);
}
.lab__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  visibility: hidden;
}
.lab__img.is-on { visibility: visible; z-index: 2; }
.lab__img.is-out { visibility: visible; z-index: 1; }
.lab__cap {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  min-height: 1.5em;
}
.lab__name { font-weight: 600; font-size: 1.0625rem; letter-spacing: 0; }
.lab__model { font-size: 0.9375rem; color: var(--muted); }
.lab__cap.is-new span { animation: cap-in 420ms var(--ease-out) 140ms both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(4px); } }
.lab__picks {
  grid-column: 2; grid-row: 1;
  display: grid; grid-template-rows: repeat(var(--n, 8), minmax(0, 1fr)); gap: 8px;
  height: var(--stage-h);
}
.pick {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-thumb); overflow: hidden; background: var(--surface);
  opacity: 0.42;
  transition: opacity 220ms ease, transform 160ms var(--ease-out);
}
.pick img { width: 100%; height: 100%; object-fit: cover; }
/* a video thumbnail carries a small play mark */
.pick--video::before {
  content: ""; position: absolute; z-index: 1; right: 7px; top: 7px; width: 0; height: 0;
  border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}
video.lab__img { background: var(--surface); }
.pick::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 220ms ease;
}
.pick[aria-pressed="true"] { opacity: 1; }
.pick[aria-pressed="true"]::after { box-shadow: inset 0 0 0 2px var(--text); }
.pick:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .pick:hover { opacity: 0.8; } .pick[aria-pressed="true"]:hover { opacity: 1; } }
.pick__t {
  position: absolute; left: 6px; right: 6px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--text); transform: scaleX(0); transform-origin: left center; opacity: 0;
}
.lab.is-auto .pick[aria-pressed="true"] .pick__t.is-run {
  opacity: 1;
  animation: lab-tick var(--lab-ms, 5200ms) linear forwards;
}
.lab.is-paused .pick__t.is-run { animation-play-state: paused; }
@keyframes lab-tick { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  .lab__img.is-on.is-enter {
    animation: lab-wipe 820ms var(--ease-io) both, lab-settle 1400ms var(--ease-out) both;
  }
  .lab__img.is-out { animation: lab-back 820ms var(--ease-io) both; }
  @keyframes lab-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes lab-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
  @keyframes lab-back { to { transform: scale(0.96); opacity: 0.35; } }

  /* the one load sequence: copy rises, then the first photo wipes in */
  .hero h1, .hero .lede, .hero .ctas { animation: rise 760ms var(--ease-out) both; }
  .hero .lede { animation-delay: 80ms; }
  .hero .ctas { animation-delay: 160ms; }
  .lab__picks .pick { animation: fade 600ms var(--ease-out) both; animation-delay: calc(260ms + var(--i, 0) * 45ms); }
  .lab__img.is-first { animation: lab-wipe 900ms var(--ease-io) 120ms both, lab-settle 1600ms var(--ease-out) 120ms both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } }
}

/* ------------------------------------------------------------- studio --- */
.studio .display--h2 { max-width: 20ch; }
.shot {
  margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--r-box); overflow: hidden;
  border: 1px solid var(--line);
  background: #1d1d1f;
}
.shot img { width: 100%; height: auto; }
/* the screenshot opens from a smaller window to the full frame as it comes
   up the screen; scroll-driven, so it costs no script and stops with the scroll */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shot {
      animation: shot-open linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 42%;
    }
    .shot img {
      animation: shot-zoom linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 42%;
    }
    @keyframes shot-open { from { clip-path: inset(7% 9% 7% 9% round 28px); } to { clip-path: inset(0 0 0 0 round 18px); } }
    @keyframes shot-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
  }
}
.does {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px; margin-top: clamp(40px, 5vw, 64px);
}
.does h3 { margin-bottom: 10px; }
.does p { color: var(--muted); font-size: 1rem; text-wrap: pretty; }

/* -------------------------------------------------------------- plan --- */
.plan {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(48px, 7vw, 120px); align-items: center;
}
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; margin: 28px 0 32px; }
.price__n {
  font-size: clamp(5rem, 13vw, 11rem); line-height: 0.85; font-weight: 600; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.price__per { font-size: 1.25rem; color: var(--text-2); }
.facts { display: grid; gap: 12px; }
.facts li { display: flex; gap: 14px; align-items: baseline; color: var(--text-2); }
.facts li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--muted); transform: translateY(-5px); }
.plan__dl { display: grid; justify-items: start; gap: 14px; margin-top: 40px; }
.plan__pay { display: grid; gap: 16px; justify-self: end; width: min(100%, 460px); }
.pay__widget { min-height: 260px; }

/* --------------------------------------------------------------- osc --- */
.osc__head { display: grid; gap: 24px; }
.work { margin-top: clamp(48px, 6vw, 80px); }
.work li { border-top: 1px solid var(--line); }
.work a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 12px 40px;
  padding: clamp(20px, 2.6vw, 34px) 0; text-decoration: none;
}
.work h3 {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem); font-weight: 600;
  letter-spacing: 0; line-height: 1.02;
  transition: transform 320ms var(--ease-out);
}
.work p { color: var(--muted); transition: color 220ms ease; max-width: 40ch; }
@media (hover: hover) and (pointer: fine) {
  .work a:hover h3 { transform: translateX(12px); }
  .work a:hover p { color: var(--text); }
}
.channels {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px;
  margin-top: clamp(56px, 7vw, 96px);
}
.channels__grp { display: grid; gap: 14px; align-content: start; }
.channels__grp ul { display: grid; gap: 4px; }
.big-link {
  display: inline-block; text-decoration: none;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: 0; line-height: 1.2;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 320ms var(--ease-out);
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) { .big-link:hover { background-size: 100% 1px; } }

/* -------------------------------------------------------------- news --- */
.news__head { display: grid; gap: 24px; }
.news__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
}
.news__list li { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.news__list li[hidden] { display: none; }
.news__list a {
  display: block; text-decoration: none; font-weight: 400; font-size: 1.0625rem; line-height: 1.4;
  overflow-wrap: anywhere; transition: color 200ms ease;
}
.news__list a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.news__src { display: block; margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.news__skel { height: 92px; position: relative; overflow: hidden; }
.news__skel::after {
  content: ""; position: absolute; left: 0; right: 30%; top: 20px; height: 16px; border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 28px 0 0 var(--surface);
}
.news__empty { color: var(--muted); grid-column: 1 / -1; }
.news__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }

/* ----------------------------------------------------------- contact --- */
.contact { padding-bottom: clamp(80px, 9vw, 120px); }
.brief, .report { display: grid; gap: 28px; margin-top: clamp(36px, 4vw, 56px); max-width: 780px; }
.picks { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picks legend { font-size: 0.9375rem; font-weight: 400; color: var(--muted); padding: 0; margin-bottom: 12px; }
.picks label { position: relative; cursor: pointer; }
.picks input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.picks span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-2); font-size: 0.9375rem; font-weight: 400;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.picks input:checked + span { background: var(--text); color: var(--bg); box-shadow: none; }
.picks input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 3px; }
.picks label:active span { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .picks label:hover input:not(:checked) + span { box-shadow: inset 0 0 0 1px #6a6a72; color: var(--text); } }
.field { display: grid; gap: 10px; }
.field label, .field__label { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.field textarea, .field input[type="email"], .field input[type="text"], .field input[type="date"] {
  width: 100%; min-height: 150px; resize: vertical;
  padding: 16px 18px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: 1.0625rem; line-height: 1.5;
  transition: border-color 200ms ease;
}
.field textarea::placeholder, .field input[type="email"]::placeholder, .field input[type="text"]::placeholder { color: var(--hint); }
.field textarea:focus, .field input[type="email"]:focus, .field input[type="text"]:focus, .field input[type="date"]:focus { border-color: #6a6a72; outline: none; }
.field textarea:focus-visible, .field input[type="email"]:focus-visible, .field input[type="text"]:focus-visible, .field input[type="date"]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.field textarea[aria-invalid="true"], .field input[aria-invalid="true"] { border-color: var(--err); }
.field__err { color: var(--err); font-size: 0.9375rem; }
.brief .row, .report .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.brief__status, .report__status { color: var(--text-2); min-height: 1.5em; }
.brief__status a, .report__status a { font-weight: 600; text-underline-offset: 4px; }
.report__status.is-err { color: var(--err); }

/* The problem report: a screenshot picked or pasted, shown small, removable. */
.page-first .display + .lede { margin-top: clamp(16px, 2vw, 24px); }
.field input[type="email"], .field input[type="text"], .field input[type="date"] { min-height: 52px; resize: none; }
.note a { text-underline-offset: 3px; }
.attach__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.attach__pick input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 3px; }
.attach__prev { display: grid; justify-items: start; gap: 6px; }
.attach__prev[hidden] { display: none; }
.attach__prev img { width: auto; height: auto; max-width: min(100%, 360px); max-height: 240px; object-fit: contain; border: 1px solid var(--line-2); border-radius: var(--r-thumb); background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  .attach__prev:not([hidden]) { animation: attach-in 220ms var(--ease-out) both; }
  @keyframes attach-in { from { opacity: 0; transform: translateY(6px); } }
}

/* Cancel or withdraw (/odstupenie/): two cards side by side, stacked on a phone. The withdrawal card holds
   the two-step form: the fields, then the summary with the confirm button. */
.choices {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: clamp(36px, 4vw, 56px);
}
.choice {
  display: grid; gap: 20px; align-content: start;
  padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface);
  scroll-margin-top: calc(var(--bar-h) + 16px);
}
.choice__h { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: 0; line-height: 1.1; text-wrap: balance; }
.choice > .btn { justify-self: start; white-space: normal; text-align: center; padding-block: 12px; }
.choice .body a, .choice .note a { text-underline-offset: 3px; }
.choice .report { margin-top: 0; max-width: none; }
.choice .field textarea, .choice .field input[type="email"], .choice .field input[type="text"], .choice .field input[type="date"] { background: var(--bg); }
.field__hint { font-size: 0.875rem; color: var(--hint); margin-top: -4px; }
.withdraw__step { display: grid; gap: 28px; }
.withdraw__step[hidden] { display: none; }
.withdraw__step h3:focus { outline: none; }
.withdraw__step h3:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.summary { margin: 0; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: 0.9375rem; }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.report__status:focus { outline: none; }
.price + .price__split { margin: -16px 0 32px; }
.pay__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (max-width: 899px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .choice > .btn { width: 100%; }
  .summary div { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ footer --- */
.foot {
  display: grid; gap: 40px;
  padding-block: clamp(64px, 8vw, 104px) 40px;
  border-top: 1px solid var(--line);
}
main + .foot { margin-top: 0; }
.foot__mark img { width: clamp(150px, 20vw, 260px); }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.foot__links a, .social a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.9375rem; color: var(--muted); text-decoration: none; transition: color 200ms ease;
}
.foot__links a:hover, .social a:hover { color: var(--text); }
.foot__end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; color: var(--muted); font-size: 0.9375rem; align-items: center; }
.social { display: flex; flex-wrap: wrap; gap: 0 22px; }

/* ------------------------------------------------------- breakpoints --- */
@media (max-width: 1099px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 48px; min-height: 0; padding-top: clamp(32px, 6vw, 64px); }
  .hero h1 { max-width: 14ch; }
  .lab { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; width: min(100%, 620px); }
  .lab__stage { grid-column: 1; height: auto; width: 100%; }
  .lab__cap { grid-row: 2; }
  .lab__picks { grid-column: 1; grid-row: 3; height: auto; grid-template-rows: none; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); }
  .pick { aspect-ratio: 3 / 4; }
  .does { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan__pay { justify-self: start; }
}
@media (max-width: 759px) {
  :root { --bar-h: 60px; }
  .bar__in { gap: 12px; }
  .brand span { font-size: 0.9375rem; }
  .hero h1 { font-size: clamp(2.35rem, 10.4vw, 3.2rem); max-width: none; }
  .lab__picks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .does { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .work a { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .channels { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .news__list { grid-template-columns: minmax(0, 1fr); }
  .brief .row .btn, .report .row .btn { width: 100%; }
  .ctas .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ===================================================== between pages === */
/* The pages cross-fade into each other (cross-document view transitions);
   from the galaxy the camera has already flown in, so the next page simply
   comes up out of the dark. Cut entirely with reduced motion. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 180ms ease both; }
::view-transition-new(root) { animation: vt-in 300ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.012); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* the way back */
.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px;
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.9375rem; font-weight: 400; color: var(--text); text-decoration: none;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.back span { transition: transform 220ms var(--ease-out); }
.back:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .back:hover { background: var(--surface); } .back:hover span { transform: translateX(-3px); } }
.bar__in .back + .brand { margin-left: 4px; }
@media (max-width: 759px) { .bar__in .back + .brand span { display: none; } }

.display--h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 600; letter-spacing: 0; line-height: 0.98; max-width: 16ch; }
main > section.page-first { padding-top: clamp(48px, 9vw, 120px); }
.contact.page-first { min-height: calc(100dvh - var(--bar-h) - 200px); }

/* a service reached from its galaxy node lights up */
.work li { scroll-margin-top: calc(var(--bar-h) + 24px); transition: background-color 600ms ease; }
.work li:target { background: linear-gradient(90deg, var(--surface), transparent 85%); }
.work h2 {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem); font-weight: 600;
  letter-spacing: 0; line-height: 1.02; transition: transform 320ms var(--ease-out);
}
.work li:target h2 { transform: translateX(12px); }
@media (hover: hover) and (pointer: fine) { .work a:hover h2 { transform: translateX(12px); } }
.channels__grp { scroll-margin-top: calc(var(--bar-h) + 24px); }
.channels__grp:target .small { color: var(--text); }

/* ========================================================= the galaxy === */
html.home-root, .home { height: 100%; overflow: hidden; overscroll-behavior: none; }
.home { background: #04050c; }
.home::after { opacity: 0.035; }
.home__main { position: fixed; inset: 0; overflow: hidden; }
.galaxy {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 700ms ease; touch-action: none; cursor: grab;
}
.galaxy.is-grabbing { cursor: grabbing; }
.is-ready .galaxy { opacity: 1; }
.no-gl .home__main { background: #04050c url("/assets/05-orbit-end.webp") center / cover no-repeat; }
.bar--home {
  position: fixed; left: 0; right: 0; z-index: 30;
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0;
}
.home__copy {
  position: absolute; z-index: 25; left: var(--gut); top: calc(var(--bar-h) + clamp(8px, 3vh, 32px));
  max-width: min(440px, calc(100% - 2 * var(--gut))); pointer-events: none;
}
.display--home { font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1; margin-bottom: 14px; }
.home__copy .lede { font-size: clamp(1rem, 1.15vw, 1.125rem); color: var(--text-2); margin-bottom: 10px; }
.hint { font-size: 0.875rem; color: var(--muted); }
.when-coarse { display: none; }
@media (pointer: coarse) { .when-fine { display: none; } .when-coarse { display: inline; } }

/* labels riding on the nodes: crisp text on a solid chip, never glass */
.labels { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.node {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity;
  padding: 6px 11px 7px; border-radius: 10px;
  background: rgba(10, 11, 16, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: var(--text); font-size: 0.875rem; font-weight: 600;
  line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.node--main { background: var(--text); color: #0b0c10; box-shadow: none; }
.node--core { background: transparent; box-shadow: none; color: var(--text-2); font-weight: 400; }
.node.is-hover, .node:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.node--main.is-hover, .node--main:hover { background: #fff; }

/* the same nodes as a list: keyboard, screen readers, and a quick way in */
.dock {
  /* centred by flex, never by a translate of an intrinsic width: whatever the
     font and the window, the bar stays in the middle, and when it does not
     fit it scrolls inside itself instead of running off the edge */
  position: absolute; z-index: 26; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; justify-content: center; padding: 0 var(--gut); pointer-events: none;
}
.dock ul {
  pointer-events: auto; min-width: 0; max-width: 100%;
  display: flex; flex-wrap: nowrap; gap: 4px; padding: 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  border-radius: 16px; background: rgba(10, 11, 16, 0.74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.dock ul::-webkit-scrollbar { display: none; }
.dock li { flex: none; scroll-snap-align: start; }
.dock a {
  white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 11px;
  font-size: 0.9375rem; font-weight: 400; color: var(--text-2); text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.dock a.is-main { color: var(--text); font-weight: 600; }
.dock a:hover, .dock a.is-hover, .dock a:focus-visible { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.dock a:active { transform: scale(0.97); }
.dock a:focus-visible { outline-offset: 0; }

/* leaving: everything on top steps aside while the camera flies in, then
   the dark closes over the scene just before the next page */
.veil { position: absolute; inset: 0; z-index: 40; background: var(--bg); opacity: 0; pointer-events: none; }
.home__copy, .dock, .bar--home { transition: opacity 220ms ease, transform 320ms var(--ease-out); }
.is-leaving .home__copy, .is-leaving .bar--home { opacity: 0; transform: translateY(-6px); }
.is-leaving .dock { opacity: 0; transform: translateY(8px); }
.is-leaving .veil { opacity: 1; transition: opacity 220ms ease 300ms; }

@media (max-width: 759px) {
  .home__copy { top: calc(var(--bar-h) + 4px); }
  .display--home { font-size: 1.75rem; margin-bottom: 8px; }
  .home__copy .lede { font-size: 0.9375rem; margin-bottom: 6px; max-width: 30ch; }
  /* one row the thumb can flick through, so the galaxy keeps the screen */
  .dock { bottom: max(12px, env(safe-area-inset-bottom)); }
  .dock ul { width: 100%; padding: 5px; }
  .dock a { min-height: 44px; padding: 0 13px; font-size: 0.875rem; }
  .node { font-size: 0.875rem; padding: 5px 9px 6px; }
}

.labels { transition: opacity 160ms ease; }
.is-leaving .labels { opacity: 0; }
/* the labels arrive with the scene: the canvas fades in, then they do */
.home:not(.is-ready) .labels { opacity: 0; }
.is-ready .labels { transition: opacity 500ms ease 250ms; }
.is-ready.is-leaving .labels { transition: opacity 160ms ease; }

/* ---------------------------------------------------- our latest posts --- */
.posts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px;
  margin-top: clamp(40px, 5vw, 64px); list-style: none; padding: 0;
}
.post a { display: grid; gap: 12px; color: inherit; text-decoration: none; }
.post__img {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 14px; background: var(--surface);
}
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.post__img--video::after {
  content: ""; position: absolute; right: 12px; top: 12px; width: 0; height: 0;
  border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9));
}
.post__meta { font-size: 0.875rem; color: var(--muted); }
.post__text {
  font-size: 1rem; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .post a:hover .post__img img { transform: scale(1.03); }
}
.post a:hover .post__text { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.news__when { margin-top: 32px; }
@media (max-width: 759px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .post__text { font-size: 0.9375rem; }
}
