/* Bytekat v014. "The work, in the world." Display: Host Grotesk. Text: Satoshi.
   One stylesheet for the whole site. Rationale and tokens: docs/redesign-v014.md
   Shape rule: photos and panels 20px, inputs and small panels 12px, buttons and chips pill. */

@font-face { font-family: "Host Grotesk"; src: url("/fonts/host-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("/fonts/host-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("/fonts/host-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f2f3f5;
  --bg-2: #e2e5ea;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-2: #2e333c;
  --muted: #515764;
  --line: #d3d7de;
  --accent: #1e293b;          /* dark slate: buttons, focus, markers. Orange lives only in the logo. */
  --accent-hover: #334155;
  --on-accent: #f8fafc;
  --brand-blue: #0066ff;
  --accent-text: #1e3a8a;     /* deep blue for text accents, from the logo family */
  --scrim: rgb(14 16 20 / .72);
  --shadow: 0 1px 2px rgb(21 23 28 / .06), 0 18px 40px -18px rgb(21 23 28 / .28);

  --f-display: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 20px;
  --r-md: 12px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1360px;
  --header-h: 68px;
  --sec: clamp(72px, 9vw, 136px);

  --ease: cubic-bezier(.16, 1, .3, 1);

  --z-header: 20;
  --z-preview: 30;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.25rem); line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.017em; }
h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.008em; font-weight: 700; }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-md); text-decoration: none; }
.skip-link:focus { top: 12px; }

.lede { font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }
.prose { max-width: 66ch; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.011em; margin: 2.2em 0 .6em; }
.prose > :first-child { margin-top: 0; }

.sec { padding-block: var(--sec); }
.pt-0 { padding-top: 0; }
.pb-sec { padding-bottom: var(--sec); }
.mt-20 { margin-top: 20px; }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { margin-top: 18px; color: var(--ink-2); max-width: 56ch; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-pill);
  font: 500 1rem/1 var(--f-text); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--ink-2); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

.link {
  font-weight: 500; color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.link:hover { text-decoration-color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* glass edge: a soft light highlight over a barely-there shadow, instead of a hard grey rule */
.site-header.is-scrolled { border-bottom-color: rgb(255 255 255 / .6); box-shadow: 0 1px 0 rgb(21 23 28 / .04), 0 8px 24px -16px rgb(21 23 28 / .18); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; flex: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: .9688rem; text-decoration: none; color: var(--ink-2); padding: 6px 0; position: relative; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-toggle, .nav-toggle[hidden] { display: none; }
.nav-quick { display: none; }

@media (max-width: 960px) {
  /* the menu button: a 3x3 pixel grid, like the displays on the page; open, it folds into an X */
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
  }
  .nav-toggle:hover { border-color: var(--ink-2); }
  .nt-grid { display: grid; grid-template-columns: repeat(3, 4px); gap: 4px; transition: transform .45s var(--ease); }
  .nt-grid i { width: 4px; height: 4px; border-radius: 1px; background: currentColor; transition: transform .35s var(--ease), opacity .25s var(--ease), background-color .25s; }
  .nt-grid i:nth-child(5) { background: var(--accent-text); }
  .nav-toggle:hover .nt-grid i:nth-child(even) { transform: scale(.55); }
  .nav-toggle[aria-expanded="true"] .nt-grid { transform: rotate(90deg); }
  .nav-toggle[aria-expanded="true"] .nt-grid i:nth-child(even) { transform: scale(0); opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nt-grid i:nth-child(5) { transform: scale(1.25); }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  html.js .nav-menu:not(.is-open) { display: none; }
  .nav-menu.is-open { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav-toggle[hidden] { display: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .nav { height: auto; flex-wrap: wrap; padding-block: 14px 0; }
  html:not(.js) .nav-menu { position: static; width: 100%; padding: 0 0 16px; border: 0; box-shadow: none; background: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.25rem; font-family: var(--f-display); font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent-text); }
  /* phones and tablets: "Talk to us" stays in the bar, beside the menu button, so the menu doesn't repeat it */
  .nav-quick { display: inline-flex; margin-left: auto; min-height: 40px; padding: 0 16px; font-size: .875rem; }
  .nav { gap: 10px; }
  .nav-cta { display: none; }
}

/* ---------- photos ---------- */
.ph { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- home: hero ---------- */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.hero-copy { grid-column: 1 / span 7; padding-bottom: clamp(8px, 2vw, 32px); }
.hero-copy h1 { max-width: 13em; }
.hero-copy .lede { margin-top: 28px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero-media { grid-column: 8 / span 5; aspect-ratio: 4 / 5; }
.hero-media img { object-position: 50% 40%; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .ln { display: block; animation: rise .9s var(--ease) both; }
  .hero h1 .ln:nth-child(2) { animation-delay: .08s; }
  .hero .lede, .hero-actions { animation: rise .9s var(--ease) both; animation-delay: .2s; }
  .hero-actions { animation-delay: .28s; }
  .hero-media img { animation: settle 1.4s var(--ease) both; animation-delay: .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(6%) scale(1.12); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-copy, .hero-media { grid-column: 1 / -1; }
  .hero-media { aspect-ratio: 4 / 3; }
}

/* ---------- home: client roll (the page's one marquee) ---------- */
.roll { border-block: 1px solid var(--line); padding-block: 26px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 32px; }
.roll-lead { font-weight: 500; color: var(--muted); white-space: nowrap; font-size: .9375rem; }
.roll-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.roll-track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; }
.roll-track li { margin-right: 56px; font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.005em; color: var(--ink-2); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .roll-track { animation: roll 70s linear infinite; }
  .roll:hover .roll-track, .roll:focus-within .roll-track, .roll.is-paused .roll-track { animation-play-state: paused; }
}
@keyframes roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .roll-track { flex-wrap: wrap; width: auto; row-gap: 12px; }
  .roll-track li { margin-right: 36px; }
  .roll-pause { display: none; }
  .roll-track [aria-hidden="true"] { display: none; }
  .roll-viewport { mask-image: none; }
}
@media (max-width: 700px) { .roll { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- home: work index (the bold moment) ---------- */
.wi { list-style: none; margin: 0; padding: 0; }
.wi li + li { border-top: 1px solid var(--line); }
.wi a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr);
  align-items: baseline; gap: 24px; padding: clamp(22px, 2.6vw, 34px) 0; text-decoration: none;
}
.wi-name {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  line-height: 1; letter-spacing: -0.02em; transition: color .25s var(--ease), transform .4s var(--ease);
}
.wi-line { color: var(--ink-2); font-size: 1.125rem; line-height: 1.45; }
.wi-meta { color: var(--muted); font-size: .9375rem; text-align: right; }
.wi-thumb { display: none; }
.wi a:hover .wi-name, .wi a:focus-visible .wi-name { color: var(--accent-text); transform: translateX(10px); }
.wi-preview {
  position: fixed; left: 0; top: 0; z-index: var(--z-preview); width: 340px; aspect-ratio: 4 / 3;
  border-radius: var(--r-lg); overflow: hidden; pointer-events: none; box-shadow: var(--shadow);
  opacity: 0; scale: .86; transform-origin: 0 0; transition: opacity .25s var(--ease), scale .35s var(--ease);
}
.wi-preview img { width: 100%; height: 100%; object-fit: cover; }
.wi-preview.is-on { opacity: 1; scale: 1; }
@media (hover: none), (max-width: 900px) {
  .wi-preview { display: none; }
  .wi a { grid-template-columns: 96px 1fr; gap: 6px 18px; align-items: center; }
  .wi-thumb { display: block; grid-row: 1 / span 3; width: 96px; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; }
  .wi-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .wi-name { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
  .wi-line { font-size: 1rem; }
  .wi-meta { text-align: left; font-size: .875rem; }
}

/* ---------- home: capability bento ---------- */
.bento {
  display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "web web mob crm"
    "web web api crm"
    "eco evt evt ai";
}
.bento a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 248px; padding: 28px; border-radius: var(--r-lg); text-decoration: none; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .25s var(--ease);
}
.bento a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.bento h3 { font-size: 1.5rem; }
.bento p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; max-width: 36ch; }
.bento .b-web { grid-area: web; min-height: 520px; }
.bento .b-mob { grid-area: mob; }
.bento .b-crm { grid-area: crm; }
.bento .b-api { grid-area: api; }
.bento .b-eco { grid-area: eco; }
.bento .b-evt { grid-area: evt; }
.bento .b-ai { grid-area: ai; background: var(--ink); border-color: var(--ink); }
.bento .b-ai h3 { color: var(--bg); }
.bento .b-ai:hover { border-color: var(--ink); }
.bento .b-ai p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.bento .is-photo { border: 0; background: #1b1d22; }
.bento .is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento .is-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 18%, rgb(12 14 18 / .58) 52%, rgb(12 14 18 / .88) 100%); }
.bento .is-photo h3, .bento .is-photo p { text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
.bento .is-photo > :not(img) { position: relative; z-index: 2; }
.bento .is-photo h3 { color: #f6f7f8; }
.bento .is-photo p { color: rgb(246 247 248 / .86); }
.bento .is-photo:hover img { transform: scale(1.04); }
.bento-foot { margin-top: 28px; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "web web" "mob crm" "api crm" "eco ai" "evt evt"; }
  .bento .b-web { min-height: 400px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "web" "mob" "crm" "api" "eco" "evt" "ai"; }
  .bento a, .bento .b-web { min-height: 0; }
  .bento .is-photo { min-height: 300px; }
}

/* ---------- home: why (sticky split) ---------- */
.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.why-head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
.why-head p { margin-top: 20px; color: var(--ink-2); max-width: 40ch; }
.why-list { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; }
.why-list li { padding-block: 0 clamp(40px, 5vw, 64px); }
.why-list li + li { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.why-list h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.014em; margin-bottom: 14px; }
.why-list p { color: var(--ink-2); margin: 0; max-width: 52ch; }
@media (max-width: 900px) {
  .why-head, .why-list { grid-column: 1 / -1; position: static; }
  .why-head { margin-bottom: 40px; }
}

/* ---------- products ---------- */
.prods { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.prod { grid-column: span 6; background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; min-height: 340px; }
.prod:nth-child(2) { margin-top: clamp(0px, 5vw, 72px); }
.prod-name { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); letter-spacing: -0.02em; line-height: 1; }
.prod-status { margin: 14px 0 22px; color: var(--accent-text); font-weight: 500; font-size: .9375rem; }
.prod p { color: var(--ink-2); max-width: 44ch; }
.prod .link { margin-top: auto; align-self: flex-start; }
.prods-foot { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; color: var(--ink-2); }
.prods-foot strong { color: var(--ink); font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; }
@media (max-width: 800px) { .prod { grid-column: 1 / -1; } .prod:nth-child(2) { margin-top: 0; } }

/* ---------- split (photo + text) ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.split-media { grid-column: 1 / span 6; aspect-ratio: 5 / 4; }
.split-copy { grid-column: 8 / span 5; }
.split-copy p { color: var(--ink-2); margin-top: 20px; }
.split-copy .link { display: inline-block; margin-top: 8px; }
.split--flip .split-media { grid-column: 7 / span 6; grid-row: 1; }
.split--flip .split-copy { grid-column: 1 / span 5; grid-row: 1; }
@media (max-width: 900px) {
  .split-media, .split-copy, .split--flip .split-media, .split--flip .split-copy { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- closing band ---------- */
.close { background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(40px, 7vw, 104px) clamp(24px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.close h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem); max-width: 14ch; }
.close p { margin: 18px 0 0; color: var(--ink-2); font-size: 1.125rem; }
@media (max-width: 760px) { .close { grid-template-columns: 1fr; } }
.close-wrap { padding-bottom: var(--sec); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 0; font-size: .9688rem; color: var(--ink-2); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.foot-brand { max-width: 34ch; }
.foot-brand p { margin: 0; }
.foot-brand .slogan { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }
.foot-h { font-family: var(--f-text); font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin: 0 0 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-explore ul { grid-template-columns: repeat(2, max-content); column-gap: 40px; }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-follow ul { grid-template-columns: repeat(2, max-content); column-gap: 40px; }
}

/* ---------- inner pages: page head ---------- */
.page-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(36px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; font-size: .9375rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 24px; }
.wide-photo { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .wide-photo { aspect-ratio: 4 / 3; } }

/* ---------- work index page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); font: 500 .9375rem var(--f-text); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) 24px; list-style: none; margin: 0; padding: 0; }
.case { grid-column: span 6; }
.case:nth-child(4n + 1) { grid-column: 1 / span 7; }
.case:nth-child(4n + 2) { grid-column: 8 / span 5; margin-top: clamp(0px, 8vw, 120px); }
.case:nth-child(4n + 3) { grid-column: 2 / span 5; }
.case:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: clamp(0px, 4vw, 56px); }
.case[hidden] { display: none; }
html:not(.js) .filters { display: none; }
.case a { text-decoration: none; display: block; }
.case .ph { aspect-ratio: 4 / 3; margin-bottom: 22px; }
.case:nth-child(4n + 2) .ph { aspect-ratio: 4 / 5; }
.case .ph img { transition: transform .8s var(--ease); }
.case a:hover .ph img { transform: scale(1.035); }
.case-meta { color: var(--muted); font-size: .9375rem; margin-bottom: 8px; }
.case h2 { font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); letter-spacing: -0.014em; line-height: 1.1; }
.case-more { display: inline-block; margin-top: 16px; }
.cases.is-filtered .case { grid-column: span 6; margin-top: 0; }
.cases.is-filtered .case .ph { aspect-ratio: 4 / 3; }
.cases-empty { color: var(--muted); }
.cases-note { margin-top: clamp(56px, 7vw, 96px); color: var(--ink-2); max-width: 60ch; }
@media (max-width: 800px) {
  .case, .case:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .case:nth-child(n) .ph { aspect-ratio: 4 / 3; }
  .cases.is-filtered .case { grid-column: 1 / -1; }
}

/* ---------- case page ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .875rem; margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 500; color: var(--ink); line-height: 1.45; }
.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.story-nav { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.story-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.story-nav a { display: block; padding: 8px 0 8px 16px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s var(--ease), border-color .2s var(--ease); }
.story-nav a:hover { color: var(--ink); }
.story-nav a.is-current { color: var(--ink); border-left-color: var(--accent); }
.story-body { grid-column: 5 / span 7; }
.story-body section + section { margin-top: clamp(56px, 6vw, 88px); }
.story-body h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin-bottom: 22px; }
.story-body p, .story-body li { color: var(--ink-2); }
.story-body .first { font-size: 1.3125rem; line-height: 1.5; color: var(--ink); }
.story-body ul { padding-left: 1.1em; margin: 0; display: grid; gap: 10px; }
.story-body li::marker { color: var(--accent); }
.story-outcome { background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) {
  .story-nav { display: none; }
  .story-body { grid-column: 1 / -1; }
}
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: block; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s var(--ease); }
.pager a:hover { border-color: var(--ink-2); }
.pager span { display: block; color: var(--muted); font-size: .9375rem; margin-bottom: 8px; }
.pager strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.014em; line-height: 1.1; }
.pager a:last-child { text-align: right; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; } }

/* ---------- capabilities ---------- */
.cap-list { list-style: none; margin: 0; padding: 0; }
.cap-list li + li { border-top: 1px solid var(--line); }
.cap-list a { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px 40px; align-items: baseline; padding: clamp(24px, 3vw, 36px) 0; text-decoration: none; }
.cap-list h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.017em; transition: color .25s var(--ease); }
.cap-list p { margin: 0; color: var(--ink-2); }
.cap-list a:hover h2 { color: var(--accent-text); }
@media (max-width: 760px) { .cap-list a { grid-template-columns: 1fr; } }

.cap-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.cap-body .prose { grid-column: 1 / span 7; }
.cap-body .prose > p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.cap-aside { grid-column: 9 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 32px); }
.cap-aside h2 { font-size: 1.25rem; letter-spacing: -0.005em; margin-bottom: 14px; }
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.proof a { display: block; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s var(--ease); }
.proof a:hover { border-color: var(--ink-2); }
.proof strong { display: block; font-weight: 500; color: var(--ink); line-height: 1.35; }
.proof span { display: block; color: var(--muted); font-size: .875rem; margin-top: 4px; }
@media (max-width: 900px) { .cap-body .prose, .cap-aside { grid-column: 1 / -1; position: static; } }

.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin: 0; }
.qa div { padding-top: 22px; border-top: 1px solid var(--line); }
.qa dt { font-family: var(--f-display); font-weight: 700; font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.005em; margin-bottom: 12px; }
.qa dd { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; } }

/* ---------- platforms ---------- */
.plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px); }
.plat h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); margin-bottom: 16px; }
.plat p { color: var(--ink-2); }
.plat-proof { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.plat-proof h3 { font-family: var(--f-text); font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.plat-proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plat-proof li { border-radius: var(--r-pill); background: var(--bg-2); padding: 6px 14px; font-size: .9375rem; }
.plat-proof a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.plat-proof a:hover { text-decoration-color: var(--accent); }
@media (max-width: 800px) { .plats { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-weight: 500; color: var(--ink); }
.field .help { font-size: .875rem; color: var(--muted); margin: 0; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--f-text); color: var(--ink);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink) 50%, var(--line)); border-radius: var(--r-md);
  padding: 13px 16px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 168px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.field .err { display: none; margin: 0; font-size: .9375rem; font-weight: 500; color: var(--accent-text); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent-text); }
.field.is-invalid .err { display: block; }
.form-status { margin-top: 18px; border-radius: var(--r-md); padding: 14px 16px; font-weight: 500; }
.form-status:empty { padding: 0; margin: 0; }
.form-status.is-ok { background: var(--bg-2); color: var(--ink); }
.form-status.is-error { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); color: var(--ink); }
.form-status a { color: inherit; }
button[aria-busy="true"] { opacity: .7; pointer-events: none; }

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: clamp(40px, 6vw, 88px); }
.contact-copy { grid-column: 1 / span 5; }
.contact-copy .lede { margin-top: 24px; }
.reach { margin: 40px 0 0; display: grid; gap: 22px; }
.reach dt { color: var(--muted); font-size: .875rem; margin-bottom: 4px; }
.reach dd { margin: 0; font-weight: 500; font-size: 1.125rem; }
.reach a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.reach a:hover { text-decoration-color: var(--accent); }
.contact-form { grid-column: 7 / span 6; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 48px); }
.contact-form .note { margin: 14px 0 0; font-size: .9375rem; color: var(--muted); }
@media (max-width: 900px) { .contact-copy, .contact-form { grid-column: 1 / -1; } }

.notify { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; max-width: 520px; }
.notify .field { margin: 0; }
.notify .btn { margin-top: 32px; }
@media (max-width: 560px) { .notify { grid-template-columns: 1fr; } .notify .btn { margin-top: 0; } }
.lite { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.lite-copy { grid-column: 1 / span 6; }
.lite-copy p { color: var(--ink-2); }
.lite-form { grid-column: 8 / span 5; }
.lite-status { color: var(--accent-text); font-weight: 500; margin-bottom: 14px; }
@media (max-width: 900px) { .lite-copy, .lite-form { grid-column: 1 / -1; } }

/* ---------- method / company ---------- */
.stages { list-style: none; margin: 0; padding: 0; }
.stages > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-block: clamp(36px, 5vw, 64px); }
.stages > li + li { border-top: 1px solid var(--line); }
.stages h2 { grid-column: 1 / span 4; font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.75rem); }
.stages div { grid-column: 6 / span 7; color: var(--ink-2); }
.stages div p:first-child { color: var(--ink); font-size: 1.1875rem; line-height: 1.55; }
@media (max-width: 800px) { .stages h2, .stages div { grid-column: 1 / -1; } }
.statement { max-width: 1040px; }
.statement .kicker { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: var(--accent-text); margin-bottom: 18px; }
.statement blockquote { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.statement p { margin-top: 32px; color: var(--ink-2); max-width: 62ch; }

.co { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.co .prose { grid-column: 1 / span 7; }
.co .prose p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.creds { grid-column: 9 / span 4; margin: 0; display: grid; gap: 0; align-self: start; }
.creds div { padding: 18px 0; border-top: 1px solid var(--line); }
.creds dt { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.011em; line-height: 1.1; }
.creds dd { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .co .prose, .creds { grid-column: 1 / -1; } }
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.groups h3 { font-size: 1.25rem; margin-bottom: 12px; }
.groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--ink-2); }
@media (max-width: 900px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .groups { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: calc(100dvh - var(--header-h) - 220px); display: grid; align-content: center; padding-block: 64px; }
.lost h1 { max-width: 14ch; }
.lost p { margin: 24px 0 32px; color: var(--ink-2); max-width: 46ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.statement blockquote p { margin: 0; }
.lost .hero-actions { margin-top: 0; }

.roll { position: relative; }
.roll-pause {
  justify-self: end; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
}
.roll-pause:hover { color: var(--ink); border-color: var(--ink-2); }
/* two bars for pause; a triangle for play */
.roll-pause::before { content: ""; box-sizing: border-box; width: 10px; height: 11px; border-inline: 3.5px solid currentColor; border-radius: 1px; }
.roll-pause[aria-pressed="true"]::before { width: 10px; height: 12px; margin-left: 2px; border: 0; border-radius: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.roll { grid-template-columns: auto 1fr auto; }
@media (max-width: 700px) { .roll { grid-template-columns: 1fr; } .roll-pause { justify-self: start; } }


/* =====================================================================
   HOME v2: GSAP choreography (js/home.js). Every block below renders as a
   complete static layout first; JS only adds motion on top.
   ===================================================================== */

/* ---------- hero: a tile mosaic that assembles into the picture ---------- */
.hx { position: relative; height: max(560px, calc(100svh - var(--header-h))); overflow: hidden; background: var(--bg); }
.hx-fallback { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: min(42vw, 620px); aspect-ratio: 4 / 5; max-height: 86%; }
.hx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
html.is-motion .hx-canvas { display: block; }
html.is-motion .hx-fallback { display: none; }
/* only the bottom and left darken, behind the words: the photos stay photographs */
.hx-shade { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  background: linear-gradient(0deg, rgb(10 14 22 / .82) 0%, rgb(10 14 22 / .45) 32%, rgb(10 14 22 / 0) 60%),
              linear-gradient(90deg, rgb(10 14 22 / .38) 0%, rgb(10 14 22 / 0) 55%); }
.hx-copy { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.hx-copy .container > * { pointer-events: auto; }
.hx-copy h1 { font-size: clamp(2.8rem, 1.2rem + 5.4vw, 6.5rem); line-height: .95; letter-spacing: -0.025em; max-width: 8.5em; }
.hx-copy .lede { margin-top: 28px; max-width: 34ch; }
.hx-copy .hero-actions { margin-top: 36px; }
.hx-lines { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(40px, 9vh, 104px); pointer-events: none; }
.hx-lines .container { width: 100%; }
.hx-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 8px; opacity: 0; visibility: hidden; }
.hx-steps li { width: 44px; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .28); position: relative; overflow: hidden; }
.hx-steps li::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(var(--fill, 0)); }
.hx-stack { display: grid; }
.hx-line { grid-area: 1 / 1; align-self: end; opacity: 0; visibility: hidden; }
.hx-who { margin: 0 0 14px; font-size: 1rem; font-weight: 500; color: rgb(246 247 248 / .82); max-width: none; }
.hx-text { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 1.2rem + 4.2vw, 5.4rem);
  line-height: 1; letter-spacing: -0.022em; color: #f6f7f8; text-wrap: balance; max-width: 13ch; }
.hx-text .pw-mask { padding: .14em .1em .2em; margin: -.14em -.1em -.2em; }
.hx-go { display: inline-block; margin-top: 22px; color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .45);
  text-underline-offset: 5px; pointer-events: auto; transition: text-decoration-color .2s var(--ease); }
.hx-go:hover, .hx-go:focus-visible { text-decoration-color: #fff; }
.hx-curtain { position: absolute; inset: 0; background: var(--bg); transform: translateY(101%); }
@media (max-width: 900px) {
  .hx { height: max(520px, calc(100svh - var(--header-h))); }
  .hx-fallback { right: var(--gutter); left: var(--gutter); top: 16px; translate: none; width: auto; height: 46%; aspect-ratio: auto; max-height: none; }
  .hx-copy { align-items: flex-end; padding-bottom: 28px; }
  .hx-copy h1 { font-size: clamp(2.5rem, 10.5vw, 3.6rem); }
  .hx-copy .lede { margin-top: 16px; font-size: 1.0625rem; }
  .hx-copy .hero-actions { margin-top: 22px; }
  .hx-text { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hx-lines { padding-bottom: 36px; }
}

/* ---------- principles: one pinned stage, big formations ---------- */
.pr { position: relative; }
.pr-stage { position: relative; }
.pr-canvas { display: none; }
.pr-inner { position: relative; padding-block: clamp(56px, 7vw, 104px); }
.pr-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -0.008em; margin: 0 0 32px; }
.pr-index { display: none; }
.pr-panel { padding-block: 28px 44px; border-top: 1px solid var(--line); }
.pr-word { font-size: clamp(3.4rem, 1rem + 7.4vw, 9rem); line-height: .86; letter-spacing: -0.032em; color: var(--accent); margin: 0 0 24px; white-space: nowrap; }
.pr-head { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.2rem); line-height: 1.12; letter-spacing: -0.011em; color: var(--ink); margin: 0 0 14px; max-width: 20ch; }
.pr-story { color: var(--ink-2); max-width: 44ch; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); }

html.is-pr .pr-stage { height: calc(100svh - var(--header-h)); overflow: hidden; }
html.is-pr .pr-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html.is-pr .pr-inner { height: 100%; display: flex; flex-direction: column; padding-block: 32px; pointer-events: none; }
html.is-pr .pr-inner a { pointer-events: auto; }
html.is-pr .pr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
html.is-pr .pr-title { margin: 0; }
html.is-pr .pr-index { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: .9375rem; color: var(--muted); }
.pr-index li { position: relative; padding-top: 12px; min-width: 84px; transition: color .3s var(--ease); }
.pr-index li::before, .pr-index li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; }
.pr-index li::before { background: var(--line); }
.pr-index li::after { background: var(--accent); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; }
.pr-index li.is-on { color: var(--ink); }
html.is-pr .pr-panels { position: relative; flex: 1; }
html.is-pr .pr-panel { position: absolute; left: 0; bottom: 0; width: min(100%, 720px); border: 0; padding: 0; opacity: 0; visibility: hidden; }
html.is-pr .pr-panel:first-child { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  html.is-pr .pr-top { flex-direction: column; gap: 16px; }
  html.is-pr .pr-index { gap: 14px; font-size: .8125rem; }
  .pr-index li { min-width: 0; flex: 1; }
  .pr-word { font-size: clamp(3rem, 15vw, 5rem); margin-bottom: 14px; }
  .pr-head { font-size: 1.3rem; margin-bottom: 10px; }
  .pr-story { font-size: .9688rem; line-height: 1.55; margin-bottom: 10px; }
}

/* ---------- products: stacked panels, each with an animated tile scene ---------- */
.pdx { display: grid; gap: 20px; }
.pdx-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 4vw, 64px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 3.4vw, 52px); transform-origin: 50% 0;
  box-shadow: 0 1px 2px rgb(21 23 28 / .04), 0 30px 60px -40px rgb(21 23 28 / .35);
}
.pdx-name { font-size: clamp(3rem, 1.6rem + 4.4vw, 6.25rem); line-height: .9; letter-spacing: -0.028em; color: var(--ink); }
.pdx-tag { margin: 18px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); line-height: 1.2; letter-spacing: -0.008em; color: var(--ink); max-width: 24ch; }
.pdx-scene { margin: 16px 0 22px; color: var(--ink-2); max-width: 44ch; }
.pdx-art { border-radius: 16px; aspect-ratio: 4 / 3; overflow: hidden; }
.pdx-cv { width: 100%; height: 100%; display: block; }
@media (min-width: 901px) {
  .pdx:not(.pdx--static) { gap: 16vh; padding-bottom: 4vh; }
  .pdx:not(.pdx--static) .pdx-panel { position: sticky; top: calc(var(--header-h) + 24px); min-height: min(76svh, 660px); }
  .pdx:not(.pdx--static) .pdx-panel:nth-child(2) { top: calc(var(--header-h) + 48px); }
  .pdx:not(.pdx--static) .pdx-panel:nth-child(3) { top: calc(var(--header-h) + 72px); }
}
@media (max-width: 900px) {
  .pdx-panel { grid-template-columns: 1fr; }
  .pdx-art { order: -1; aspect-ratio: 1 / 1; }
}

/* ---------- manifesto: words light up on scroll ---------- */
.manifesto { padding-block: clamp(96px, 14vw, 200px) clamp(72px, 9vw, 136px); }
.manifesto p { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.022em; color: var(--ink); }
.mf-lead { max-width: 22ch; font-size: clamp(2.2rem, 1.1rem + 4.2vw, 5.4rem); line-height: 1.02; }
.mf-turn { display: block; }                 /* the turn of the sentence gets its own line: the pause is the emphasis */
.mf-close { margin-top: .9em !important; max-width: 34ch; text-wrap: balance; font-size: clamp(1.5rem, .95rem + 2.2vw, 3rem); line-height: 1.08; }
.manifesto .pw-mask { padding: .12em .1em .18em; margin: -.12em -.1em -.18em; }
/* the pixel mark after the last word */
.mf-px { display: inline-grid; grid-template-columns: repeat(5, .13em); gap: .035em; margin-left: .25em; vertical-align: .64em; }   /* an inline grid sits on its first row: lift it so its foot meets the baseline */
.mf-px i { width: .13em; height: .13em; border-radius: .02em; transform: scale(1); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.mf-px i.off { visibility: hidden; }
html.is-motion .mf-px:not(.is-on) i { transform: scale(0); transition-delay: 0s; }

/* ---------- client roll, velocity-driven ---------- */
.roll-track.is-js { animation: none !important; will-change: transform; }

/* ---------- work: horizontal gallery ---------- */
.hz { position: relative; overflow: hidden; overflow: clip; }
.hz-track { display: flex; gap: 24px; padding-inline: var(--gutter); width: max-content; align-items: stretch; }
.hz-intro { width: min(34vw, 460px); flex: none; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
.hz-intro p { color: var(--ink-2); margin: 20px 0 0; max-width: 34ch; }
.hz-card {
  position: relative; flex: none; width: min(64vw, 980px); height: min(70svh, 680px); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: #f6f7f8; background: #1b1d22; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
}
.hz-card .hz-ph { position: absolute; inset: 0 -12%; }
.hz-card .hz-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hz-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(12 14 18 / 0) 35%, rgb(12 14 18 / .55) 62%, rgb(12 14 18 / .9)); }
.hz-card > :not(.hz-ph) { position: relative; z-index: 2; }
.hz-meta { font-size: .9375rem; color: rgb(246 247 248 / .78); margin: 0 0 10px; }
.hz-name { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6rem); line-height: .92; letter-spacing: -0.025em; margin: 0; color: #fff; }
.hz-line { margin: 16px 0 0; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); max-width: 34ch; color: rgb(246 247 248 / .9); }
.hz-go { margin-top: 22px; align-self: flex-start; display: inline-flex; min-height: 44px; align-items: center; padding: 0 20px; border-radius: var(--r-pill); background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .25s var(--ease); }
.hz-card:hover .hz-go, .hz-card:focus-visible .hz-go { background: #fff; border-color: #fff; color: var(--ink); }
.hz-card:hover .hz-ph img { transform: scale(1.04); }
.hz-end { flex: none; width: min(30vw, 400px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding-bottom: 8px; }
.hz-end p { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.02; letter-spacing: -0.017em; }
html:not(.is-hz) .hz-track { overflow-x: auto; scroll-snap-type: x mandatory; width: auto; padding-bottom: 20px; scrollbar-width: thin; }
html:not(.is-hz) .hz-card, html:not(.is-hz) .hz-intro { scroll-snap-align: start; }
@media (max-width: 900px) {
  .hz-intro { width: 78vw; }
  .hz-card { width: 84vw; height: 64svh; }
  .hz-end { width: 70vw; }
}
html.is-hz .hz { height: calc(100svh - var(--header-h)); display: flex; align-items: center; }

/* ---------- closing ---------- */
.finale { padding-block: clamp(72px, 9vw, 136px) var(--sec); }
.finale-grid { position: relative; overflow: hidden; display: block; min-height: clamp(420px, 52vw, 620px); padding: 0; }
.fin-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fin-copy { position: relative; z-index: 1; padding: clamp(40px, 7vw, 104px) clamp(24px, 6vw, 88px); max-width: 760px; pointer-events: none; }
.fin-copy > * { pointer-events: auto; }
.finale h2 { font-size: clamp(2.6rem, 1.3rem + 5vw, 6.5rem); line-height: .95; letter-spacing: -0.025em; max-width: 9em; }
.finale p { margin: 24px 0 32px; color: var(--ink-2); font-size: 1.1875rem; max-width: 40ch; }

/* reveal helpers: hidden only when JS runs, motion is allowed, and home.js has booted */
html.is-motion [data-rise] { opacity: 0; } /* fade only: nothing moves, so nothing jumps */
html.is-motion .hx-copy h1 { visibility: hidden; }   /* only the headline waits for its reveal; the rest paints at once */
html.is-motion .bento a[data-rise]:not(.is-in) { transition: border-color .25s var(--ease); }
/* SplitText line masks: room for descenders, and no re-wrapping inside a split line */
.hx-copy h1 .ln-mask, .close h2 .ln-mask, .pr-word .ln-mask { padding-block: .12em; margin-block: -.12em; }
.hx-copy h1 .ln, .finale h2 .ln { white-space: nowrap; }
html:not(.is-hz) .hz-track { scroll-padding-inline: var(--gutter); }

/* v2.1 fixes from the browser pass */
.hz-intro { justify-content: center; }
.hz-name { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.8rem); line-height: .98; letter-spacing: -0.02em; }

/* ---------- footer: a dot-matrix field, lighter at the top, with the lockup lit in it ---------- */
.foot-mark { position: relative; margin-top: 8px; padding-block: clamp(40px, 6vw, 96px) clamp(64px, 8vw, 112px); overflow: hidden; }
.foot-mark-img { width: 100%; height: auto; opacity: .12; }
.foot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s var(--ease); }
.foot-canvas.is-on { opacity: 1; }
.foot-mark:has(.foot-canvas.is-on) .foot-mark-img { visibility: hidden; }
.site-footer .foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.foot-legal p { margin: 0 auto 0 0; }   /* copyright left, policy links pushed right */
.foot-legal a { color: var(--muted); }
.note-block { max-width: 720px; padding-top: 28px; border-top: 1px solid var(--line); }
.note-block h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); letter-spacing: -0.011em; margin-bottom: 14px; }
.note-block p { color: var(--ink-2); margin: 0; }
.pr { margin-bottom: 0; }
/* principles: every word lands on the same line, whatever the story length below it */
@media (min-width: 901px) {
  /* every panel reserves the tallest panel's height and is centred, so words never jump and the block sits on the artifact's centre line */
  html.is-pr .pr-panel { top: 50%; bottom: auto; transform: translateY(-50%); min-height: var(--pr-h, 0px); }
}
.pr-word { line-height: .95; }
@media (max-width: 900px) {
  /* the text sits at the foot of the screen, so the display gets all the room above it */
  html.is-pr .pr-panel { top: auto; bottom: 20px; min-height: var(--pr-h, 0px); }
}
/* principles: the word's single clipping box leaves room for overhangs and descenders */
.pr-word .pw-mask, .pdx-name .pw-mask { padding: .22em .14em; margin: -.22em -.14em; }
.pr-word .ch { display: inline-block; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin: 1.8em 0 .5em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* home: Bytekat, in brief */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; margin: 0; }
.qa dt { font-family: var(--f-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.005em; color: var(--ink); margin-bottom: 10px; }
.qa dd { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 760px) { .qa { grid-template-columns: 1fr; gap: 28px; } }

/* footer links: plain text, underline only on hover and keyboard focus */
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- team (company page) ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(24px, 4vw, 64px); }
.tm { margin: 0; }
.tm-ph { position: relative; margin: 0 0 16px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; }
.tm-name { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); }
.tm-role { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.tm-link { display: inline-block; margin-top: 8px; font-size: .9375rem; color: var(--accent-text); text-decoration: none; }
.tm-link:hover, .tm-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; } .tm-name { font-size: 1.0625rem; } }

/* ---------- pixel reveal: inner-page photos open through a grid of page-coloured pixels ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* the spam trap */
.px-veil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
