/* ==========================================================================
   ELEMENT SITES — stylesheet
   Deliberately single-theme: deep matte black, platinum, white accents.
   ========================================================================== */

:root {
  --bg: #080808;
  --bg-2: #0c0c0c;
  --graphite: #222222;
  --ink: #ffffff;
  --platinum: #c5c5c5;
  --silver: #8f8f8f;
  --mute: #5a5a5a;
  --line: rgba(197, 197, 197, .14);
  --line-strong: rgba(197, 197, 197, .32);
  --glass: rgba(255, 255, 255, .05);

  --font-mark: 'Italiana', 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-display: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --font-heavy: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 80px;
  /* phones: the page moves vertically only — no sideways scroll, no pinch or double-tap zoom, no font inflation */
  overflow-x: hidden; overscroll-behavior-x: none;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor input, html.has-cursor select, html.has-cursor textarea, html.has-cursor label { cursor: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--platinum);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;                 /* clips sideways overflow without turning the body into a scroller (sticky keeps working) */
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
/* the scroll lock lives on <html> (the page scroller); the scripts mirror body.is-locked onto it */
html.is-locked, body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
::selection { background: rgba(255, 255, 255, .88); color: var(--bg); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }

/* Text for screen readers and search engines only (the hero itself is a canvas scene) */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--platinum);
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 2000;
  transform: translate(-50%, -50%);
  display: none;
}
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { display: flex; }
.cursor-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink);
  transition: opacity .3s;
}
.cursor-ring {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 0 22px rgba(255, 255, 255, .05);
  align-items: center; justify-content: center;
  transition: width .4s var(--ease), height .4s var(--ease), border-color .35s, background .35s, opacity .3s;
}
.cursor-ring__label {
  font-family: var(--font-sans); font-size: 9px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity .3s;
  white-space: nowrap;
}
/* over anything clickable: a slightly larger, brighter outline — see-through, never blurring the target */
.cursor-ring.is-hover {
  width: 46px; height: 46px;
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .035);
}
/* over the works tile: a compact "Otwórz" pill (the tile beneath is a canvas, nothing to obscure) */
.cursor-ring.is-view {
  width: 92px; height: 38px;
  border-color: rgba(255, 255, 255, .6);
  background: rgba(8, 8, 8, .55);
}
.cursor-ring.is-view .cursor-ring__label { opacity: 1; }
.cursor-ring.is-hidden, .cursor-dot.is-hidden { opacity: 0; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  --p: 0%;
}
.preloader__half {
  position: absolute; left: 0; width: 100%; height: 50.5%;
  background: #000;
  transition: transform 1.15s var(--ease-io) .25s;
}
.preloader__half--top { top: 0; }
.preloader__half--bottom { bottom: 0; }
.preloader__center {
  position: relative; z-index: 1;
  display: grid; justify-items: center; gap: clamp(20px, 3vw, 36px);
  transition: opacity .45s ease, transform .6s var(--ease);
}
/* the company mark, dim graphite underneath, lit white from top to bottom as the page loads */
.preloader__logo {
  position: relative; width: clamp(110px, 14vw, 200px); aspect-ratio: 1; overflow: hidden;
}
.preloader__layer { position: absolute; inset: 0; }
.preloader__layer img {
  width: 100%; height: 100%; display: block; object-fit: contain;
  transform: scale(2.1);                       /* the artwork carries wide empty margins: crop to the mark */
  filter: invert(1);                           /* black mark on transparent → white */
}
.preloader__layer--base { opacity: .14; }
.preloader__layer--fill {
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, .35));
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--p) - 14%), transparent var(--p));
          mask-image: linear-gradient(180deg, #000 calc(var(--p) - 14%), transparent var(--p));
}
.preloader.is-done .preloader__center { opacity: 0; transform: translateY(-14px); }
.preloader.is-done .preloader__half--top { transform: translateY(-101%); }
.preloader.is-done .preloader__half--bottom { transform: translateY(101%); }
.preloader.is-gone { display: none; }

/* Hero elements wait in blur until the curtain parts */
.js .reveal { opacity: 0; filter: blur(14px); transform: translateY(26px); }
.js body.is-ready .reveal {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 1.4s var(--ease), filter 1.4s var(--ease), transform 1.4s var(--ease);
}
.js body.is-ready .stage__word { transition-delay: .6s; }
.js body.is-ready .stage__scene { transition-delay: .8s; transition-duration: 2s; }
.js body.is-ready .stage__foot, .js body.is-ready .stage__tag { transition-delay: 1.4s; }
.js .stage__scene.reveal { transform: scale(1.08); filter: blur(10px); }
.js .stage__word.reveal { transform: translateY(-50%) translateY(30px); }
.js body.is-ready .stage__scene.reveal { transform: none; }
.js body.is-ready .stage__word.reveal { transform: translateY(-50%); }

/* ---------- Header: logo tile + floating glass pill ---------- */
.header {
  --bar-h: 46px;                 /* one height for the logo tile and the navigation pill */
  position: fixed; top: 14px; left: 0; right: 0; z-index: 500;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity 1.2s ease, transform 1.2s var(--ease);
}
.header.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand__tile {
  width: var(--bar-h); height: var(--bar-h); border-radius: 12px; overflow: hidden; flex: none;
  background: #000; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.brand__tile img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.4); }
.brand__name {
  display: grid; gap: 5px; line-height: 1;
  font-family: var(--font-sans); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink);
}

.pill {
  justify-self: center; height: var(--bar-h);
  display: inline-flex; align-items: center; gap: 2px;
  padding: 0 5px 0 8px; border-radius: 999px;
  background: rgba(8, 8, 8, .55);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.pill__link {
  display: inline-flex; align-items: center; gap: 7px;
  height: calc(var(--bar-h) - 10px); padding: 0 14px; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 500; font-size: 13.5px; letter-spacing: .01em;
  color: var(--ink); white-space: nowrap;
  transition: background .3s, color .3s;
}
.pill__link:hover { background: rgba(255, 255, 255, .08); }
.pill__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .14); margin: 0 3px; flex: none; }
.pill__cta {
  display: inline-flex; align-items: center; height: calc(var(--bar-h) - 10px);
  margin-left: 6px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #000;
  font-family: var(--font-sans); font-weight: 500; font-size: 13.5px; letter-spacing: .01em; white-space: nowrap;
  transition: background .3s, transform .3s var(--ease);
}
.pill__cta:hover { background: var(--platinum); }
.pill__cta:active { transform: scale(.97); }
.pill__menu { display: none; }
.pill__lang .chev { transition: transform .3s var(--ease); }
.lang-menu { position: relative; }
.lang-menu.is-open .chev { transform: rotate(180deg); }
.lang-menu.is-open > .pill__link { background: rgba(255, 255, 255, .08); }
.lang-menu__list {
  position: absolute; top: calc(100% + 12px); left: 50%; z-index: 5;
  transform: translate(-50%, -6px);
  min-width: 168px; padding: 6px; border-radius: 16px;
  display: grid; gap: 2px;
  background: rgba(8, 8, 8, .7);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .35s var(--ease);
}
.lang-menu.is-open .lang-menu__list { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.lang-menu__list button {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 12px; border-radius: 10px; text-align: left;
  font-family: var(--font-sans); font-weight: 500; font-size: 13.5px; color: var(--platinum);
  transition: background .25s, color .25s;
}
.lang-menu__list button:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.lang-menu__list button.is-active { color: var(--ink); }
.lang-menu__list button.is-active::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.status__dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
  animation: pulse 3s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); }
  70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.mnav {
  position: fixed; inset: 0; z-index: 450;
  background: rgba(8, 8, 8, .92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 48px;
  padding: 96px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
.mnav.is-open { opacity: 1; pointer-events: auto; }
/* auto margins centre the menu when there is room and let it scroll (instead of clipping) in landscape phones */
.mnav__links { display: flex; flex-direction: column; gap: 22px; margin-top: auto; }
.mnav__foot { margin-bottom: auto; }
.mnav__links a { font-family: var(--font-mark); font-size: clamp(28px, 8vw, 44px); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.mnav__foot { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.mnav__lang { display: flex; gap: 8px; }
.mnav__lang button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-family: var(--font-sans); font-weight: 500; font-size: 13.5px; color: var(--platinum);
  transition: background .25s, color .25s, border-color .25s;
}
.mnav__lang button.is-active { background: var(--ink); color: #000; border-color: var(--ink); }

/* ---------- Stage — scroll-driven 3D laptop ---------- */
.stage { position: relative; }
.stage__track { height: 720vh; }
.stage__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: var(--bg);
}
.stage__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.stage__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 50% 58%, rgba(255, 255, 255, .055), transparent 70%);
}
.stage__tag {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 46px; text-align: center;
  font-family: var(--font-sans); font-weight: 400; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--mute); white-space: nowrap; pointer-events: none;
}
.stage__word {
  position: absolute; z-index: 1; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: grid; justify-items: center; gap: 0;
  font-family: var(--font-heavy); font-weight: 400;
  font-size: clamp(50px, 10.4vw, 214px); line-height: .84; letter-spacing: 0; text-transform: uppercase;
  color: var(--ink); user-select: none; -webkit-user-select: none;
  pointer-events: none;
}
.stage__word span { display: block; pointer-events: auto; }
.stage__scene { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.stage__canvas { width: 100%; height: 100%; display: block; }
.stage__reveal { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage__foot {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 40px;
  display: flex; align-items: center; gap: 18px;
  font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute);
}
.stage__hint {
  position: absolute; z-index: 3; left: 50%; bottom: 44px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--silver); white-space: nowrap; opacity: 0; pointer-events: none;
}
.stage__black { position: absolute; z-index: 4; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }

/* ---------- Manifest — inside the screen ---------- */
.manifest {
  position: relative;
  padding: clamp(120px, 16vw, 220px) var(--gutter) clamp(72px, 9vw, 130px);
}
.manifest__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.manifest__left { grid-column: 1 / span 9; display: grid; gap: clamp(28px, 4vw, 48px); }
.manifest__right { grid-column: 10 / span 3; display: grid; gap: 40px; align-self: end; }
.hero__h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(40px, 5.3vw, 88px); line-height: 1.04; letter-spacing: -.005em;
  color: var(--ink); text-wrap: balance;
  display: grid; gap: .08em;
}
.hero__line { display: block; }
.hero__h1 em { font-style: italic; color: var(--platinum); }
.hero__p { max-width: 58ch; color: var(--silver); font-size: 15.5px; }
.meta { display: grid; }
.meta__row {
  display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line);
}
.meta__row:last-child { border-bottom: 1px solid var(--line); }
.meta__row dt { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.meta__row dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--platinum); font-variant-numeric: tabular-nums; }
.meta__clock { font-family: var(--font-mono); font-size: 13px; color: var(--ink); letter-spacing: .12em; }
.meta__dim { color: var(--mute); }
.meta__slots { display: inline-flex; gap: 5px; align-items: center; }
.meta__slots i { width: 14px; height: 1px; background: var(--ink); display: block; }
.meta__slots i.is-taken { background: var(--mute); }
.hero__scrollline { width: 1px; height: 48px; background: linear-gradient(var(--platinum), transparent); position: relative; overflow: hidden; }
.hero__scrollline::after { content: ''; position: absolute; inset: 0; background: var(--bg); animation: scrollline 2.8s var(--ease-io) infinite; }
@keyframes scrollline { 0% { transform: translateY(-100%); } 55% { transform: translateY(100%); } 100% { transform: translateY(100%); } }

/* ---------- Luxury outline button ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 19px 34px; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 2px;
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
  --mx: 50%; --my: 50%;
  transition: border-color .5s, box-shadow .6s, transform .4s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(140px 70px at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 70%);
  opacity: 0; transition: opacity .5s;
}
.btn:hover { border-color: rgba(255, 255, 255, .85); box-shadow: inset 0 0 28px rgba(255, 255, 255, .06), 0 0 0 1px rgba(255, 255, 255, .06); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.985); }
/* rounded variant set in the display serif: used for the link to a realized site */
.btn--pill {
  border-radius: 999px; padding: 17px 32px; gap: 14px;
  font-family: var(--font-sans); font-weight: 400; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase;
}
.btn--pill svg { flex: none; opacity: .8; transition: transform .5s var(--ease); }
.btn--pill:hover svg { transform: translate(2px, -2px); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 88px) var(--gutter); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px;
  padding-bottom: 24px; margin-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.section__head--min { align-items: center; justify-content: flex-start; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__lead { display: flex; align-items: baseline; gap: clamp(20px, 3vw, 40px); }
.section__num { font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; color: var(--silver); }
.section__title {
  font-family: var(--font-mark); font-weight: 400;
  font-size: clamp(34px, 5vw, 70px); line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
}
.section__cap { max-width: 42ch; color: var(--silver); font-size: 13.5px; line-height: 1.7; }

/* Scroll-in for below-fold groups */
.js .fade-up { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .fade-up.is-in { opacity: 1; transform: none; }

/* ---------- 01. Works ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); }
.work {
  position: relative; grid-column: span 1;
  border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  cursor: pointer;
  transform: translateZ(0);
  isolation: isolate;
}
.work--wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.work::after { /* premium edge reflection */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 3; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .05) 32%, rgba(255, 255, 255, .02) 62%, rgba(255, 255, 255, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.work__media { position: absolute; inset: -6%; will-change: transform; }
.work__media canvas { width: 100%; height: 100%; display: block; }
.work__corner {
  position: absolute; top: 22px; left: 24px; z-index: 2;
  display: flex; gap: 14px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--platinum);
}
.work__corner b { font-weight: 400; color: var(--mute); }
.work__year { position: absolute; top: 22px; right: 24px; z-index: 2; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; color: var(--mute); }
.work__info {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  padding: clamp(22px, 3vw, 44px);
  background: linear-gradient(to top, rgba(8, 8, 8, .9), rgba(8, 8, 8, .35) 40%, transparent 65%);
  opacity: 0; transition: opacity .7s ease;
}
.work__info > * { transform: translateY(14px); transition: transform .8s var(--ease); }
.work__info > *:nth-child(2) { transition-delay: .06s; }
.work__info > *:nth-child(3) { transition-delay: .12s; }
.work:hover .work__info, .work:focus-visible .work__info { opacity: 1; }
.work:hover .work__info > *, .work:focus-visible .work__info > * { transform: none; }
.work__name { font-family: var(--font-mark); font-size: clamp(28px, 3.4vw, 48px); letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: var(--ink); }
.work__sub { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--platinum); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--platinum); background: rgba(8, 8, 8, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}
@media (hover: none) {
  .work__info { opacity: 1; }
  .work__info > * { transform: none; }
}
/* the single "Realizacje" tile: its name sits over the film loop at rest */
.work__label {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center;
  padding: 24px; pointer-events: none;
  transition: transform 1.2s var(--ease);
}
.work:hover .work__label { transform: scale(1.03); }
.work__label-title {
  font-family: var(--font-mark); font-size: clamp(38px, 6.5vw, 104px); line-height: 1; letter-spacing: .14em; text-indent: .14em;
  text-transform: uppercase; color: var(--ink); text-shadow: 0 0 40px rgba(0, 0, 0, .6);
}
.work__label-sub { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--platinum); }

/* ---------- Gallery of realizations (inside the fullscreen view) ---------- */
.case__hero--short { height: 44svh; min-height: 300px; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(22px, 3vw, 40px);
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(80px, 10vw, 160px);
}
.thumb { margin: 0; cursor: pointer; display: grid; gap: 14px; }
.thumb__media {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #0e0e10; isolation: isolate;
}
.thumb__media::after {                     /* premium edge reflection, as on the tile */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .05) 32%, rgba(255, 255, 255, .02) 62%, rgba(255, 255, 255, .2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.thumb__media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease); }
.thumb:hover .thumb__media img, .thumb:focus-visible .thumb__media img { transform: scale(1.04); }
.thumb__fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  font-family: var(--font-mark); font-size: 26px; letter-spacing: .1em; text-transform: uppercase; color: var(--silver);
}
.thumb.is-missing img { display: none; }
.thumb.is-missing .thumb__fallback { display: grid; }
.thumb__meta {
  display: flex; justify-content: space-between; gap: 16px; padding: 0 4px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--platinum);
}
.thumb__meta span:last-child { color: var(--mute); }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 960;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: 88px var(--gutter) 56px;
  background: rgba(6, 6, 6, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__figure {
  margin: 0; justify-self: center;
  width: min(100%, calc((100svh - 144px) * 16 / 9)); aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; background: #0e0e10;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  transition: transform .85s var(--ease), opacity .3s ease;
}
.lb__figure img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.lb__figure.is-swapping, .lb__panel.is-swapping { opacity: 0; }
.lb__panel { display: grid; gap: 18px; align-content: center; justify-items: start; transition: opacity .3s ease; }
.js .lb .lb__panel { opacity: 0; transform: translateY(12px); transition: opacity .6s ease .35s, transform .8s var(--ease) .35s; }
.js .lb.is-open .lb__panel { opacity: 1; transform: none; }
.js .lb.is-open .lb__panel.is-swapping { opacity: 0; transition-delay: 0s; }
.lb__name { font-family: var(--font-mark); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.lb__domain { font-family: var(--font-sans); font-weight: 400; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); margin-top: -6px; }
.lb__desc { color: var(--platinum); font-size: 17px; line-height: 1.65; max-width: 40ch; }
.lb__nav {
  display: flex; align-items: center; gap: 22px; margin-top: 10px;
  font-family: var(--font-sans); font-weight: 400; font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--silver);
}
.lb__nav button { color: var(--silver); letter-spacing: inherit; transition: color .3s; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.lb__nav button:hover { color: var(--ink); border-bottom-color: rgba(255, 255, 255, .35); }
.lb__count { color: var(--mute); font-variant-numeric: tabular-nums; }
.lb__close { z-index: 970; }

/* Case study: zoom mask + fullscreen */
.case-zoom {
  position: fixed; z-index: 890; border-radius: 22px; overflow: hidden;
  background-size: cover; background-position: center;
  display: none; pointer-events: none;
  transition: top .95s var(--ease-io), left .95s var(--ease-io), width .95s var(--ease-io), height .95s var(--ease-io), border-radius .95s var(--ease-io), opacity .5s ease;
}
.case-zoom.is-on { display: block; }
.case {
  position: fixed; inset: 0; z-index: 900;
  background: var(--bg); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y;
  opacity: 0; pointer-events: none; transition: opacity .7s ease;
}
.case.is-open { opacity: 1; pointer-events: auto; }
.case__close, .modal__close, .lb__close {
  position: fixed; top: 22px; right: var(--gutter); z-index: 5;
  font-family: var(--font-sans); font-weight: 400; font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--platinum); padding: 10px 0; transition: color .3s;
}
.case__close::after, .modal__close::after, .lb__close::after {   /* hairline that grows under the word */
  content: ''; display: block; height: 1px; margin-top: 4px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.case__close:hover, .modal__close:hover, .lb__close:hover { color: var(--ink); }
.case__close:hover::after, .modal__close:hover::after, .lb__close:hover::after { transform: scaleX(1); }
.case__hero { position: relative; height: 68svh; min-height: 420px; overflow: hidden; }
.case__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.case__hero-text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 6vh, 72px);
  display: grid; gap: 18px;
  background: none;
}
.case__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 55%); pointer-events: none; }
.case__hero-text { z-index: 2; }
.case__title { font-family: var(--font-mark); font-size: clamp(40px, 8vw, 128px); line-height: .95; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.case__sub { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--platinum); }
.case__body {
  display: grid; grid-template-columns: minmax(220px, 3fr) 7fr; gap: clamp(40px, 6vw, 96px);
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(80px, 10vw, 160px);
}
.case__meta { display: grid; align-content: start; }
.case__meta div { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.case__meta div:last-child { border-bottom: 1px solid var(--line); }
.case__meta dt { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.case__meta dd { font-size: 13px; letter-spacing: .04em; color: var(--platinum); }
.case__content { display: grid; gap: 40px; max-width: 64ch; }
.case__lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.3; color: var(--ink); }
.case__content p { color: var(--silver); font-size: 15.5px; }
.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.case__metric b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.case__metric span { display: block; margin-top: 10px; font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.case__next {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 16px;
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
}
.case__next i { width: 40px; height: 1px; background: var(--platinum); transition: width .5s var(--ease); }
.case__next:hover i { width: 72px; }

/* ---------- 02. Services — boutique catalogue ---------- */
.menu { border-top: 1px solid var(--line); }
.menu__item {
  position: relative;
  display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start;
  padding: clamp(26px, 3vw, 40px) 0;
}
.menu__item::after {                       /* hairline that draws itself as the row arrives */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.menu__item.is-in::after { transform: scaleX(1); }
/* service rows glide in from the left, out of a soft blur, one after another */
.js .menu__item.fade-up { opacity: 0; transform: translateX(-36px); filter: blur(6px); }
.js .menu__item.fade-up.is-in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
}
.js .menu__item.fade-up .menu__right { transition: opacity .9s var(--ease) .15s, transform 1.1s var(--ease) .15s; opacity: 0; transform: translateX(24px); }
.js .menu__item.fade-up.is-in .menu__right { opacity: 1; transform: none; }
.menu__num {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: 17px; line-height: 1; letter-spacing: .04em;      /* on a par with the description text */
  color: var(--silver); padding-top: 8px; white-space: nowrap;
}
.menu__title { font-family: var(--font-mark); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; color: var(--platinum); transition: color .5s; }
.menu__item:hover .menu__title { color: var(--ink); }
.menu__right { display: grid; gap: 22px; }
.menu__desc { color: var(--silver); font-size: 15px; max-width: 58ch; }
.menu__items { display: grid; gap: 12px; color: var(--silver); font-size: 15px; max-width: 60ch; }
.menu__items b { font-weight: 400; color: var(--platinum); }
.menu__scope { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.menu__scope span { position: relative; }
.menu__scope span + span::before { content: '·'; position: absolute; left: -12px; color: var(--mute); }

/* ---------- 03. About — scrollytelling ---------- */
.about { position: relative; }
.about__track { height: 180vh; }
.about__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  padding: 0 var(--gutter);
  /* soft top/bottom edges: nothing inside can end in a hard cut at the frame */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.about__geo {
  position: absolute; left: 50%; top: 50%; width: min(94vh, 94vw); height: auto;   /* fits inside the frame */
  transform: translate(-50%, -50%);
  color: rgba(197, 197, 197, .085); pointer-events: none;
}
.about__inner { position: relative; display: grid; gap: clamp(28px, 4vw, 44px); justify-items: center; max-width: 900px; }
.about__kicker { display: flex; align-items: center; gap: 18px; }
.about__text {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(24px, 3.4vw, 46px); line-height: 1.32; text-align: center;
  color: var(--ink); text-wrap: balance;
}
.about__text .w { opacity: .14; transition: opacity .25s linear; }
.about__text .w em { color: var(--platinum); }
.about__principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 0 var(--gutter) clamp(40px, 5vw, 72px);
}
.principle { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.principle__k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.principle__t { font-family: var(--font-mark); font-size: clamp(20px, 2vw, 28px); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); line-height: 1.15; }
.principle__d { color: var(--silver); font-size: 14px; max-width: 34ch; }

/* ---------- 04. Contact ---------- */
.contact { padding-top: clamp(40px, 5vw, 72px); }
.contact__cta {
  font-family: var(--font-mark); font-weight: 400;
  font-size: clamp(40px, 9.4vw, 150px); line-height: .96; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); text-wrap: balance;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto auto; gap: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
/* each block shares the three rows (label / main / note) so the notes line up across columns */
.contact__grid .contact__block { grid-row: span 3; grid-template-rows: subgrid; row-gap: 20px; align-items: start; }
.contact__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 8vw, 128px); }
.contact__block .label + .email__addr { margin-top: -6px; }
.contact__block .email__addr + .label { margin-top: 14px; }
.form__head { display: grid; gap: 14px; margin-bottom: 10px; padding-right: 96px; }
.form__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; color: var(--ink); }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* scope of work: rounded chip toggles */
.scope { border: 0; padding: 0; margin: 0; min-width: 0; }
.scope legend { display: block; padding: 0; margin-bottom: 20px; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--silver); }
.form__consents { display: grid; gap: 14px; }
.check a { color: var(--platinum); border-bottom: 1px solid rgba(255, 255, 255, .3); transition: color .3s, border-color .3s; }
.check a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* custom dropdown (replaces the native <select> popup) */
.select { position: relative; }
.field .select__native, .select__native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; border: 0; background: none; }
.select__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-strong); text-align: left;
  font-family: var(--font-sans); font-weight: 300; font-size: 16px; color: var(--ink);
  transition: border-color .4s;
}
.select__btn:focus-visible { outline: none; border-bottom-color: var(--ink); }
.select__btn .chev { width: 12px; height: 12px; flex: none; color: var(--platinum); transition: transform .35s var(--ease); }
.select.is-open .select__btn { border-bottom-color: var(--ink); }
.select.is-open .select__btn .chev { transform: rotate(180deg); }
.select__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  display: grid; gap: 2px; padding: 6px; border-radius: 14px;
  background: rgba(12, 12, 13, .94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong); box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .22s ease, transform .3s var(--ease);
}
.select.is-open .select__list { opacity: 1; transform: none; pointer-events: auto; }
.select__list button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 10px 12px; border-radius: 9px; text-align: left;
  font-family: var(--font-sans); font-weight: 300; font-size: 15px; color: var(--platinum);
  transition: background .2s, color .2s;
}
.select__list button:hover, .select__list button:focus-visible { background: rgba(255, 255, 255, .08); color: var(--ink); outline: none; }
.select__list button.is-active { color: var(--ink); }
.select__list button.is-active::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--platinum);
  font-size: 13.5px; line-height: 1; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover span { border-color: rgba(255, 255, 255, .6); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #000; }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 4px; }
/* consent: a small round check */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--silver); font-size: 13.5px; line-height: 1.5; max-width: 60ch; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 3px 0 0;
  width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s;
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 7px; height: 4px; border-left: 1.5px solid #000; border-bottom: 1.5px solid #000; transform: rotate(-45deg) translate(1px, -1px); }
.check.is-invalid input { border-color: #d87c7c; }
.form__done .section__num { font-size: 14px; }
.contact__block { display: grid; gap: 20px; align-content: start; justify-items: start; }
.contact__note { color: var(--mute); font-size: 13px; max-width: 32ch; }
.email { display: flex; align-items: center; gap: 14px; }
.email__addr {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); color: var(--ink); letter-spacing: .01em;
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1;   /* even, same-height digits */
  transition: color .3s;
}
.email__addr:hover { color: var(--platinum); }
.email__copy {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--platinum);
  transition: border-color .4s, color .4s, background .4s, transform .4s var(--ease);
}
.email__copy:hover { border-color: var(--ink); color: var(--ink); background: var(--glass); }
.email__copy:active { transform: scale(.94); }
.links { display: grid; gap: 10px; }
.links a {
  position: relative; display: inline-block; padding-bottom: 2px;
  font-family: var(--font-sans); font-weight: 300; font-size: 17px; letter-spacing: .02em; color: var(--platinum);
  border-bottom: 1px solid transparent;
  transition: color .35s, border-color .35s;
}
.links a:hover { color: var(--ink); border-bottom-color: rgba(255, 255, 255, .35); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 950;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  padding: 13px 22px;
  border: 1px solid var(--platinum); border-radius: 2px;
  background: rgba(8, 8, 8, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap;
  transition: opacity .45s ease, transform .6s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modal — boutique form ---------- */
.modal {
  position: fixed; inset: 0; z-index: 800;
  display: flex; flex-direction: column; align-items: center; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y;
  padding: 32px 16px;
  background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity .55s ease;
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  position: relative; width: min(760px, 100%); flex: none; margin: auto 0;   /* centred when short, scrolls the overlay when tall */
  padding: clamp(32px, 5vw, 60px);
  background: #0b0b0b; border: 1px solid var(--line-strong); border-radius: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  display: grid; gap: 28px;
  transform: translateY(24px) scale(.985);
  transition: transform .8s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 20px; right: 24px; }
.modal__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; color: var(--ink); margin-bottom: 16px; }
.form { display: grid; gap: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--silver); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 12px 0; color: var(--ink); font-family: var(--font-sans); font-weight: 300; font-size: 16px;
  transition: border-color .4s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--platinum) 50%), linear-gradient(135deg, var(--platinum) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: #0b0b0b; color: var(--platinum); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #d87c7c; }
.form__err { color: #d8a0a0; font-size: 12.5px; letter-spacing: .04em; }
.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; padding-top: 6px; }
.form__hint { color: var(--mute); font-size: 12px; }
.form__done { display: grid; gap: 16px; justify-items: start; padding-top: 12px; }
.form__done-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; color: var(--ink); }

/* ---------- Footer ---------- */
.footer {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 32px;
  padding: 28px var(--gutter) 34px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-sans); font-weight: 300; font-size: 14px; letter-spacing: .02em; color: var(--silver);
}
.footer__mid { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.footer__left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.footer__link { color: var(--platinum); border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 1px; transition: color .3s, border-color .3s; }
.footer__link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.footer__time { color: var(--mute); font-variant-numeric: tabular-nums; }

/* ---------- Document pages (privacy policy) ---------- */
.policy {
  max-width: 78ch; margin: 0 auto;
  padding: clamp(120px, 16vh, 168px) var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; gap: clamp(36px, 5vw, 56px);
}
.policy__head { display: grid; gap: 18px; padding-bottom: clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.policy__title {
  font-family: var(--font-mark); font-weight: 400; font-size: clamp(38px, 6vw, 84px); line-height: 1; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink); text-wrap: balance;
}
.policy__meta { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.policy__intro { font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--platinum); }
.policy__note { color: var(--mute); font-size: 13.5px; }
.policy__section { display: grid; gap: 14px; }
.policy__section h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; color: var(--ink); margin-bottom: 4px; }
.policy__section p, .policy__section li { color: var(--silver); font-size: 15.5px; line-height: 1.75; }
.policy__section strong { font-weight: 400; color: var(--platinum); }
.policy__section em { font-style: italic; color: var(--platinum); }
.policy__section code { font-family: var(--font-mono); font-size: 13px; color: var(--platinum); }
.policy__section ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.policy__section a { color: var(--platinum); border-bottom: 1px solid rgba(255, 255, 255, .3); transition: color .3s, border-color .3s; }
.policy__section a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.policy__table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.policy__table th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); padding: 0 16px 12px 0; border-bottom: 1px solid var(--line-strong); }
.policy__table td { vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: var(--silver); }
.policy__table td:first-child { color: var(--platinum); width: 56%; }
.policy__back { padding-top: 8px; }
@media (max-width: 640px) {
  .policy__table, .policy__table thead, .policy__table tbody, .policy__table tr, .policy__table td { display: block; width: auto; }
  .policy__table thead { display: none; }
  .policy__table td { padding: 8px 0; border: 0; }
  .policy__table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .policy__table td:last-child { color: var(--mute); font-size: 13px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .manifest__left { grid-column: 1 / span 12; }
  .manifest__right { grid-column: 1 / span 6; }
  .case__body { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .header { grid-template-columns: 1fr auto; }
  .pill__nav { display: none; }
  .pill__menu { display: inline-flex; }
  .manifest__right { grid-column: 1 / span 12; }
  .stage__track { height: 560vh; }
  .stage__hint { left: auto; right: var(--gutter); transform: none; }
  .works { grid-template-columns: 1fr; }
  .work, .work--wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .menu__item { grid-template-columns: 1fr; gap: 14px; }
  .menu__num { padding-top: 0; }
  .about__principles { grid-template-columns: 1fr; gap: 28px; }
  .contact__grid, .contact__grid--two { grid-template-columns: 1fr; gap: 48px; }
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer__right { align-items: flex-start; text-align: left; }
  .form__row { grid-template-columns: 1fr; }
  .case__metrics { grid-template-columns: 1fr 1fr; }
  .lb { grid-template-columns: 1fr; align-content: center; padding: 72px 16px 32px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; }
  .lb__figure { width: 100%; }
  .lb__panel { justify-items: start; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  /* hero: a shorter journey for the thumb, the word never wider than the screen,
     the scroll cue and the tagline stacked in the middle instead of colliding */
  .stage__track { height: 460vh; }
  .stage__word { font-size: clamp(30px, 10.4vw, 214px); }
  .stage__foot { left: 0; right: 0; justify-content: center; bottom: 74px; gap: 14px; }   /* no transform: the reveal owns it */
  .hero__scrollline { height: 34px; }
  .stage__tag { bottom: 36px; letter-spacing: .3em; }
  .stage__hint { left: 0; right: 0; bottom: 36px; transform: none; text-align: center; }
  .about__track { height: 150vh; }
  .about__text { font-size: clamp(23px, 6.4vw, 30px); line-height: 1.36; }
  .about__principles { gap: 22px; }
  .section { padding: 44px var(--gutter); }
  .section__head { padding-bottom: 18px; margin-bottom: 26px; }
  .menu__item { padding: 22px 0; gap: 10px; }
  .menu__title { font-size: 22px; }
  .work__label-title { font-size: clamp(34px, 11vw, 48px); }
  .work__label-sub { font-size: 9.5px; letter-spacing: .24em; }
  .contact { padding-top: 40px; }
  .contact__cta { font-size: clamp(30px, 9vw, 44px); margin-bottom: 32px; }
  .contact__grid { gap: 36px; padding-top: 32px; }
  .contact__block { gap: 14px; }
  .contact__grid .contact__block { row-gap: 14px; }
  .email__addr { font-size: 23px; }
  .btn--pill { padding: 15px 26px; font-size: 11px; letter-spacing: .24em; }
  /* gallery, lightbox and the form: full-width, comfortable to tap */
  .case__hero--short { height: 36svh; min-height: 240px; }
  .case__title { font-size: clamp(36px, 11vw, 52px); }
  .gallery { gap: 28px; padding: 32px var(--gutter) 96px; }
  .lb { padding: 64px 16px 28px; gap: 22px; }
  .lb__name { font-size: 24px; }
  .lb__desc { font-size: 15.5px; }
  .lb__nav { gap: 18px; }
  .lb__nav button { padding: 10px 0; }
  .case__close, .modal__close, .lb__close { top: 16px; }
  .modal { padding: 12px 10px; }
  .modal__panel { padding: 30px 22px 34px; gap: 22px; border-radius: 22px; }
  .modal__close { top: 14px; right: 18px; }
  .form { gap: 24px; }
  .form__row { gap: 24px; }
  .form__head { padding-right: 84px; }
  .chip span { padding: 11px 16px; font-size: 13px; white-space: normal; text-align: left; line-height: 1.25; }
  .form__actions { gap: 14px 20px; }
  .form__actions .btn { width: 100%; }
  .footer { padding: 24px var(--gutter) 30px; gap: 14px; font-size: 13.5px; }
  .toast { left: 16px; right: 16px; transform: translateY(14px); white-space: normal; text-align: center; }
  .toast.is-on { transform: none; }
  .policy { padding-top: 112px; }
}
@media (max-width: 480px) {
  .preloader__mark { letter-spacing: .2em; text-indent: .2em; }
  .hero__h1 { font-size: clamp(36px, 11vw, 52px); }
  .work, .work--wide { aspect-ratio: 4 / 5; border-radius: 16px; }
  .case__metrics { grid-template-columns: 1fr; }
}
/* narrow phones: a lighter header so the pill never touches the logo */
@media (max-width: 400px) {
  .header { gap: 10px; }
  .pill__link { padding: 0 12px; }
  .pill__cta { margin-left: 4px; padding: 0 14px; }
  .brand { gap: 10px; }
}
@media (max-width: 350px) {
  .brand__name { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .fade-up { opacity: 1; filter: none; transform: none; }
  .js .stage__word.reveal { transform: translateY(-50%); }
  .stage__track { height: 100svh; }
  .about__text .w { opacity: 1; }
  .work__info { opacity: 1; }
  .work__info > * { transform: none; }
}
