/* =============================================================================
   AMA Creative Media — styles
   Dark, cinematic, editorial. One accent (brand magenta) + the four logo
   stripe colours used only as thin motifs.
   ============================================================================= */

/* ---------- Fonts (self-hosted, assets/fonts; licence: SIL OFL 1.1, assets/fonts/OFL-*.txt) ----------
   Same files and unicode ranges Google Fonts serves: latin + latin-ext (Romanian diacritics). Inter Tight and
   Instrument Sans are variable fonts, so one file covers several weights. */
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-sans-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-sans-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/instrument-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/instrument-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/inter-tight-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/inter-tight-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/inter-tight-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/inter-tight-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/inter-tight-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/inter-tight-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --bg: #030304;
  --bg-2: #06060a;
  --bg-3: #0c0c11;
  --ink: #f2f0ec;
  --ink-2: #b9b6ae;
  --ink-3: #7c7a74;
  --line: rgba(242, 240, 236, 0.12);
  --accent: #00bcec;          /* brand cyan accent. Contrast on --bg: 8.6:1. Brand magenta alternative: #ff2d9b (6.2:1) */
  --accent-ink: #030304;      /* text on accent */
  --magenta: #ff2d9b;         /* logo stripe colours, used only as motifs */
  --yellow: #ffd100;
  --blue: #1d6bff;
  --cyan: #14c8e8;

  --font-display: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-text: 'Instrument Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(6rem, 14vw, 12rem);
  --radius: 4px;
  --header-h: 96px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Lens pointer replaces the native cursor (pointer devices only); nothing on the page is text-selectable. */
body.has-cursor, body.has-cursor * { cursor: none !important; }
body { -webkit-user-select: none; user-select: none; }
img, video, a { -webkit-user-drag: none; }
body.menu-open, body.modal-open { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 0.6rem 1rem; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-text);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: var(--accent); flex: none; }
.section-title {
  font-family: var(--font-display);
  font-weight: 500; letter-spacing: -0.03em; line-height: 0.98;
  font-size: clamp(2.4rem, 1.5rem + 4.6vw, 6rem);
  text-wrap: balance;
  max-width: 14ch;
  margin-top: 1.25rem;
}
.section-head { padding: 0 var(--gutter); margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-intro { color: var(--ink-2); max-width: 36ch; font-size: 1.05rem; }

/* Split-text masks (built by script.js) */
.split-line { display: inline-block; overflow: hidden; clip-path: inset(-10% 0 -20% 0); vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-br { display: block; height: 0; }
.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; }
html.motion .split-ready .split-char { transform: translateY(110%); will-change: transform; }

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: -12%; z-index: 90; pointer-events: none; opacity: 0.055;
  will-change: transform;            /* keep the infinite grain loop on the compositor, off the main thread */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
html.motion .grain { animation: grain 0.6s steps(6) infinite; }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4.84%, 3.23%); } 40% { transform: translate(3.23%, -6.45%); }
  60% { transform: translate(-1.61%, 6.45%); } 80% { transform: translate(6.45%, -1.61%); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 900; display: grid; place-items: center;
  background: var(--bg); color: var(--ink);
}
.preloader__half { position: absolute; left: 0; right: 0; height: 50%; background: var(--bg); }
.preloader__half--top { top: 0; }
.preloader__half--bottom { bottom: 0; }
.preloader__inner { position: relative; z-index: 2; display: grid; justify-items: center; align-content: center; gap: 1.1rem; text-align: center; width: 100%; height: 100%; }
.preloader__glow { position: absolute; width: 46vmin; height: 46vmin; border-radius: 50%; background: radial-gradient(circle, rgba(0,188,236,0.18), rgba(29,107,255,0.08) 45%, transparent 70%); filter: blur(10px); z-index: 1; opacity: 0; }
.preloader__stripes { display: flex; gap: 6px; margin-top: 0.4rem; }
.preloader__stripes i { display: block; width: 22px; height: 3px; border-radius: 2px; transform-origin: left; }
.preloader__stripes i:nth-child(1) { background: var(--magenta); } .preloader__stripes i:nth-child(2) { background: var(--yellow); }
.preloader__stripes i:nth-child(3) { background: var(--blue); } .preloader__stripes i:nth-child(4) { background: var(--cyan); }
.preloader__logo { width: clamp(88px, 14vw, 132px); height: auto; }
.preloader__logo .stroke { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.preloader__logo .stroke--m { stroke: var(--accent); } .preloader__logo .stroke--y { stroke: var(--yellow); }
.preloader__logo .stroke--b { stroke: var(--blue); } .preloader__logo .stroke--c { stroke: var(--cyan); }
.preloader__logo .fill { opacity: 0; }
.preloader__rive { width: clamp(88px, 14vw, 132px); aspect-ratio: 1; }
.preloader__tag { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.02em; font-weight: 500; }
.preloader__count { font-variant-numeric: tabular-nums; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--ink-3); }
.preloader__count b { color: var(--ink); font-weight: 500; }
.preloader__bar { width: min(240px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.preloader.is-done { pointer-events: none; }
.preloader { animation: preloader-failsafe 0.6s ease 8s forwards; }   /* script.js removes it after ~3 s; this only fires if it never does */
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Scroll progress + header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 210; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
  height: var(--header-h); padding: 0 var(--gutter);
  transition: height 0.45s var(--ease-out), background-color 0.45s, backdrop-filter 0.45s, border-color 0.45s;
  border-bottom: 1px solid rgba(242, 240, 236, 0.08);
}
.site-header.is-compact {
  height: 64px;
  background: rgba(3, 3, 4, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 0.2rem; justify-self: start; }
.brand__logo { width: clamp(64px, 6vw, 88px); height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)); transition: width 0.45s var(--ease-out); }
.site-header.is-compact .brand__logo { width: 52px; }
.brand__name { font-family: var(--font-text); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.6rem; white-space: nowrap; transition: opacity 0.3s, height 0.3s; }
.site-header.is-compact .brand__name { opacity: 0; height: 0; overflow: hidden; }
.preloader__mark { width: clamp(140px, 18vw, 220px); height: auto; }
.preloader__logo { display: none; }

.nav__list { display: flex; gap: 2.25rem; }
.nav__count { font-size: 0.55rem; letter-spacing: 0.08em; margin-left: 0.3rem; color: var(--ink-2); vertical-align: top; }
.nav__talk { display: inline-flex; align-items: center; gap: 0.5rem; }
.nav__talk svg { width: 16px; height: 16px; color: var(--accent); transition: transform 0.35s var(--ease-out); }
.nav__talk:hover svg, .nav__talk:focus-visible svg { transform: translate(2px, -2px); }
.nav__link, .u-line {
  position: relative; font-size: 0.9rem; letter-spacing: 0.02em; padding: 0.4rem 0; display: inline-block;
}
.nav__link::after, .u-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(var(--u, 0)); transform-origin: var(--o, right);
}
html:not(.motion) .nav__link:hover::after, html:not(.motion) .u-line:hover::after { transform: scaleX(1); }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; background: var(--accent); }

.header__tools { display: flex; align-items: center; gap: 1.5rem; justify-self: end; }
.lang { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; letter-spacing: 0.1em; }
.lang__btn { padding: 0.35rem 0.2rem; color: var(--ink-3); transition: color 0.3s; }
.lang__btn[aria-pressed="true"] { color: var(--ink); }
.lang__sep { color: var(--ink-3); }

.sound { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 2px; height: 4px; background: currentColor; transform-origin: bottom; }
.sound[aria-pressed="true"] { color: var(--ink); }
html.motion .sound[aria-pressed="true"] .sound__bars i { animation: bars 0.9s ease-in-out infinite; }
.sound__bars i:nth-child(2) { animation-delay: 0.15s; } .sound__bars i:nth-child(3) { animation-delay: 0.3s; } .sound__bars i:nth-child(4) { animation-delay: 0.45s; }
@keyframes bars { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(3.2); } }

.menu-btn { display: none; align-items: center; gap: 0.75rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.menu-btn__icon { position: relative; width: 26px; height: 14px; }
.menu-btn__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out); }
.menu-btn__icon i:first-child { top: 0; } .menu-btn__icon i:last-child { top: 12px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:first-child { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon i:last-child { top: 6px; transform: rotate(-45deg); }
@media (max-width: 1100px) { .nav__talk { display: none; } }
@media (max-width: 900px) {
  :root { --header-h: 84px; }
  .site-header { display: flex; justify-content: space-between; gap: 1rem; }
  .brand__logo { width: 60px; }
  .nav, .sound__label, .nav__talk { display: none; }
  .menu-btn { display: inline-flex; }
  .header__tools { gap: 0.9rem; flex: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .site-header.is-compact { height: 60px; }
  .brand__name { display: none; }                 /* the wordmark + tools do not fit side by side on phones */
  .brand__logo { width: 54px; }
  .site-header.is-compact .brand__logo { width: 46px; }
}
@media (max-width: 400px) {
  .menu-btn__label { display: none; }             /* icon-only menu button on the narrowest phones */
  .header__tools { gap: 0.6rem; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 190; background: var(--bg); overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  clip-path: inset(0 0 100% 0);
}
.mobile-menu__list { display: grid; gap: 0.25rem; margin-bottom: auto; }
.mobile-menu__link {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.6rem 0;
  font-family: var(--font-display); font-size: clamp(2.6rem, 11vw, 4.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__num { font-family: var(--font-text); font-size: 0.75rem; letter-spacing: 0.15em; color: var(--accent); }
.mobile-menu__footer { display: grid; gap: 1rem; padding-top: 2rem; color: var(--ink-2); font-size: 0.95rem; }
.mobile-menu__social { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Custom lens pointer: shows while the mouse moves, fades when idle */
.cursor { position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none; opacity: 1; transition: opacity 0.35s; will-change: transform; }
.cursor__lens { position: absolute; width: 42px; height: 42px; max-width: none; margin: -21px; transform-origin: center; transition: transform 0.35s var(--ease-out); }
.cursor.is-hover .cursor__lens { transform: scale(1.25); }
.cursor.is-down .cursor__lens { transform: scale(0.85); }
.cursor__label {
  position: absolute; top: 26px; left: 0; transform: translateX(-50%); white-space: nowrap;
  padding: 0.25rem 0.55rem; border-radius: 2px; background: var(--accent); color: var(--accent-ink);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: 0; transition: opacity 0.25s;
}
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Section wipe used for nav clicks */
.wipe { position: fixed; inset: 0; z-index: 800; background: var(--accent); transform: scaleY(0); transform-origin: bottom; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.05rem 1.6rem; border-radius: 2px; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: color 0.35s, background-color 0.35s, border-color 0.35s; overflow: hidden; isolation: isolate;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform 0.45s var(--ease-out); z-index: -1; border-radius: inherit; }
.btn--primary:hover::before, .btn--primary:focus-visible::before { transform: translateY(0); }
.btn--ghost { background: rgba(3, 3, 4, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(242,240,236,0.14); color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--ink); background: rgba(3, 3, 4, 0.75); }
.btn__arrow, .btn__play { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translate(3px, 3px); }
.btn:hover .btn__play { transform: scale(1.15); }
.btn__inner { display: inline-flex; align-items: center; gap: 0.75rem; }

/* ---------- 3D stage (fixed behind hero → work) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; }
.stage.is-interactive { pointer-events: auto; }
main { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; align-content: end;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 0;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
html.webgl .hero__frame { visibility: hidden; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,3,4,0.35) 0%, rgba(3,3,4,0.05) 40%, rgba(3,3,4,0.85) 100%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; align-self: end; padding-bottom: clamp(2rem, 5vh, 3.5rem); }
.hero__eyebrow { display: flex; align-items: center; gap: 0.9rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); margin-bottom: clamp(1.5rem, 3vh, 2.5rem); }
.hero__plus { color: var(--accent); font-size: 1.4rem; line-height: 1; font-weight: 300; }
.hero__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.045em; line-height: 0.92;
  font-size: clamp(3.4rem, 1rem + 12.2vw, 13rem); max-width: 12ch;
}
.hero__title .accent { color: var(--accent); font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(1.5rem, 4vh, 3rem); }
.hero__lead { max-width: 30ch; color: var(--ink); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__meta {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0 1.3rem; border-top: 1px solid rgba(242, 240, 236, 0.16);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.hero__meta-center { position: absolute; left: 50%; transform: translateX(-50%); }
.hero__motion { display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); }
.hero__motion svg { width: 12px; height: 12px; }
.hero__motion .icon-play { display: none; } .hero__motion[aria-pressed="false"] .icon-play { display: block; } .hero__motion[aria-pressed="false"] .icon-pause { display: none; }
@media (max-width: 900px) { .hero__meta-center { display: none; } }
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 0.5rem); }
  .hero__content { padding-bottom: 1.25rem; }
  .hero__eyebrow { margin-bottom: 1rem; font-size: 0.64rem; }
  .hero__row { margin-top: 1.25rem; gap: 1rem; }
  .hero__actions { width: 100%; }
  .hero__meta { flex-wrap: wrap; padding: 0.9rem 0 1rem; }
  .hero__row .btn { flex: 1 1 auto; justify-content: center; padding: 0.9rem 1.2rem; }
}
.hero__next {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -0.02em; font-weight: 500; opacity: 0; pointer-events: none; text-align: center;
}
.hero__next small { display: block; font-family: var(--font-text); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.stripes { display: flex; gap: 6px; }
.stripes i { display: block; width: 28px; height: 4px; border-radius: 2px; }
.stripes i:nth-child(1) { background: var(--magenta); } .stripes i:nth-child(2) { background: var(--yellow); }
.stripes i:nth-child(3) { background: var(--blue); } .stripes i:nth-child(4) { background: var(--cyan); }

/* ---------- 3D gallery section ---------- */
.gallery { position: relative; min-height: 140svh; padding: var(--section) var(--gutter) 0; pointer-events: none; }
@media (max-width: 900px) { .gallery { min-height: 90svh; padding-top: calc(var(--section) * 0.7); } .gallery__head { top: 16vh; } }
/* Phones / tablets with WebGL (gallery3d.js adds .gallery-seq): the clips come one at a time below the sticky title,
   ≈ a third of a screen of scrolling each (SEQ.start / SEQ.end in gallery3d.js depend on this height) */
html.gallery-seq .gallery { min-height: 400svh; }
.gallery__head { position: sticky; top: 22vh; max-width: 30rem; pointer-events: auto; }
.gallery__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2rem, 1rem + 4vw, 4.4rem); margin-top: 1rem; }
.gallery__hint { margin-top: 1.25rem; color: var(--ink-2); font-size: 0.95rem; max-width: 30ch; }
.gallery__fallback { position: absolute; inset: var(--section) var(--gutter); display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-content: center; pointer-events: auto; z-index: -1; }   /* the 10 clips, 5 × 2 */
.gallery__fallback figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.gallery__fallback picture { display: block; height: 100%; }
.gallery__fallback img, .gallery__fallback video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
@media (max-width: 720px) { .gallery__fallback { position: relative; inset: auto; z-index: auto; margin-top: 2rem; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }   /* 2 × 5, in the flow under the title */
html:not(.webgl) .gallery { pointer-events: auto; }

/* Gallery → work transition: an accent line grows from the hint towards the next title */
.gallery__line { display: block; width: 1px; height: 140px; margin-top: 2.5rem; background: linear-gradient(var(--accent), transparent); transform-origin: top; transform: scaleY(0); }

/* ---------- Selected work ---------- */
/* Zoom-in video intro (pinned, scrubbed by buildWorkIntro) */
.work-intro { position: relative; height: 100svh; display: grid; place-items: center; overflow: hidden; background: transparent; contain: layout paint; }   /* contain: the width/height scrub relayouts only this box */   /* transparent: the fixed 3D stage (floating clips) continues behind the frame, like the gallery above */
.work-intro__frame { position: relative; width: min(62vw, 110vh); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--bg-3); }
.work-intro__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.work-intro__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,3,4,0.1) 0%, rgba(3,3,4,0.75) 100%); opacity: 0; }
.work-intro__label { position: absolute; left: var(--gutter); bottom: clamp(2rem, 7vh, 4.5rem); z-index: 2; display: grid; gap: 0.6rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 1rem + 4.5vw, 5.5rem); letter-spacing: -0.035em; line-height: 0.95; opacity: 0; pointer-events: none; }
.work-intro__num { font-family: var(--font-text); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 640px) { .work-intro__frame { width: 80vw; } }
html:not(.motion) .work-intro { display: none; }

.work { position: relative; padding: calc(var(--section) * 0.6) 0 var(--section); background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 var(--gutter); margin-bottom: 2.5rem; }
.filter { padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--ink-2); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.filter:hover, .filter:focus-visible { color: var(--ink); border-color: var(--ink-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.work__viewport { position: relative; }
/* Grid (tablets, phones, narrow windows). script.js (layoutWork) turns it into a justified mosaic (.is-justified): rows
   run edge to edge and the cards of a row share one height. The flex-basis rules below are only the fallback. */
.work__grid { --gap: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); padding: 0 var(--gutter); }
.card { position: relative; flex: 0 0 calc((100% - 1.25rem) / 2); min-width: 0; }
.card--reel { flex-basis: calc((100% - 2.5rem) / 3); }
/* --r: card aspect ratio (render), --n / --sum: cards in the row and their summed ratios, --grow: 0 for a capped row (layout).
   Each card gets its share of the row width; the 1px slack absorbs sub-pixel rounding, flex-grow (∝ ratio) gives it back. */
html:not(.work-horizontal) .work__grid.is-justified .card { flex: var(--grow) 1 calc((100% - (var(--n) - 1) * var(--gap)) * var(--r) / var(--sum) - 1px); }
.card.is-hidden { display: none; }
.card__link { display: block; color: inherit; }
.card__link--static { cursor: default; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3);
  aspect-ratio: 4 / 3;
}
.card--wide .card__media { aspect-ratio: 16 / 9; }
.card--reel .card__media { aspect-ratio: 9 / 16; }
.card--square .card__media { aspect-ratio: 1 / 1; }
.card__img, .card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__img { transform: scale(1.001); }
html:not(.motion) .card__link:hover .card__img, html:not(.motion) .card__link:focus-visible .card__img { transform: scale(1.05); transition: transform 0.9s var(--ease-out); }
.card__video { pointer-events: none; background: var(--bg-3); }
.card__body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0.1rem 0; }
.card__title { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; overflow: hidden; }
.card__title span { display: inline-block; transition: transform 0.6s var(--ease-out); }
.card__link:hover .card__title span, .card__link:focus-visible .card__title span { transform: translateY(-2px); }
.card__meta { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.card__meta b { color: var(--accent); font-weight: 500; }
.card__tag { position: absolute; top: 0.9rem; left: 0.9rem; padding: 0.3rem 0.6rem; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; background: rgba(3,3,4,0.65); backdrop-filter: blur(6px); border-radius: 2px; }
.card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3,3,4,0.55)); opacity: 0; transition: opacity 0.5s; }
.card__link:hover .card__overlay, .card__link:focus-visible .card__overlay { opacity: 1; }
.work__empty { padding: 2rem var(--gutter); color: var(--ink-2); }
.work__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.5rem, 4vw, 3rem); height: 1px; background: var(--line); display: none; }
.work__progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.work__hint { display: none; position: absolute; right: var(--gutter); top: 0; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }

@media (max-width: 900px) {
  .card { flex-basis: 100%; }                                   /* landscape: full width */
  .card--reel { flex-basis: calc((100% - 1.25rem) / 2); }       /* reels: two per row */
  .card--reel .card__body, .card--square .card__body { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}
@media (max-width: 480px) { .work__grid { --gap: 1rem; } .card--reel { flex-basis: calc((100% - 1rem) / 2); } }

/* Horizontal mode (desktop, enabled by script.js): the grid becomes a track */
html.work-horizontal .work { padding-bottom: 0; }
html.work-horizontal .work__viewport { height: 100vh; overflow: hidden; display: flex; align-items: center; }
html.work-horizontal .work__grid {
  display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: clamp(1.5rem, 3vw, 3rem); padding: 0 var(--gutter); align-items: stretch; height: 68vh; width: max-content;
}
html.work-horizontal .card { flex: none; height: 100%; display: flex; flex-direction: column; }
html.work-horizontal .card__link { height: 100%; }
html.work-horizontal .card__media { height: calc(100% - 3.5rem); aspect-ratio: auto; }
/* each card is as wide as its clip at the track height, so nothing is cropped */
html.work-horizontal .card--wide { width: calc((68vh - 3.5rem) * 16 / 9); }
html.work-horizontal .card--reel { width: calc((68vh - 3.5rem) * 9 / 16); }
html.work-horizontal .card--square { width: calc(68vh - 3.5rem); }
html.work-horizontal .card--wide .card__media, html.work-horizontal .card--reel .card__media, html.work-horizontal .card--square .card__media { aspect-ratio: auto; }
html.work-horizontal .card__title { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
html.work-horizontal .work__progress { display: block; }
html.work-horizontal .work__hint { display: block; }
html.work-horizontal .work .section-head { position: relative; }

/* Image reveal wipe (script.js wraps images in .reveal-img) */
.reveal-img { position: relative; overflow: hidden; }
.reveal-img > img, .reveal-img > picture { display: block; }
.reveal-img__wipe { position: absolute; inset: 0; background: var(--accent); transform: scaleX(1); transform-origin: right; pointer-events: none; z-index: 2; }
html:not(.motion) .reveal-img__wipe { display: none; }

/* ---------- About (Studio): statement with inline video, editorial band, team cards, process ---------- */
.about { position: relative; padding: var(--section) var(--gutter); background: var(--bg-2); overflow: hidden; }
.about__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg-2); }
.about__bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; filter: saturate(0.8) contrast(1.05); }
.about__bg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-2) 0%, rgba(6,6,10,0.5) 28%, rgba(6,6,10,0.6) 72%, var(--bg-2) 100%); }
.about > :not(.about__bg) { position: relative; z-index: 1; }
.about__statement { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(2.3rem, 1.1rem + 5vw, 7rem); margin-top: 1.5rem; max-width: 18ch; text-wrap: balance; }
.about__inline-video { position: relative; display: inline-block; vertical-align: middle; width: clamp(5rem, 13vw, 12.5rem); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; margin: 0 0.12em; transform: translateY(-0.1em); box-shadow: 0 14px 40px rgba(0,0,0,0.45); background: var(--bg-3); }
.about__inline-video video { width: 100%; height: 100%; object-fit: cover; }
.about__band { display: grid; gap: 3.5rem; margin-top: clamp(3rem, 7vw, 6rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.about__col { display: grid; gap: 2.5rem; align-content: start; }
.about__body { color: var(--ink-2); font-size: 1.15rem; max-width: 44ch; }
.about__col .btn { justify-self: start; }
.about__stats { display: grid; align-content: start; max-width: 34rem; }
.about__stats .stat { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.about__stats .stat:first-child { padding-top: 0; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2.6vw, 4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.about__stats dd { color: var(--ink-3); font-size: 0.82rem; text-align: right; max-width: 18ch; }
.about__sub { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.gear { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gear li { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--ink-2); }
.about__team { display: grid; gap: 2rem; align-content: start; }
.about__team-head { display: grid; gap: 0.9rem; }
.about__team-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-size: clamp(1.8rem, 1rem + 2.8vw, 3.6rem); max-width: 16ch; }
.team--cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
.team-card { position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-3); aspect-ratio: 3 / 4; max-height: 30rem; }
.team-card picture, .team-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.team-card__photo { object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.03); transition: filter 0.8s var(--ease-out), transform 1.4s var(--ease-out); }
.team-card:hover .team-card__photo, .team-card:focus-within .team-card__photo { filter: grayscale(0); transform: scale(1.08); }
.team-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; background: linear-gradient(180deg, transparent, rgba(3,3,4,0.92)); }
.team-card__num { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--accent); }
.team-card__name { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; margin-top: 0.4rem; }
.team-card__role { color: var(--accent); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.3rem; }
.team-card__bio { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.6rem; max-width: 36ch; }
.about__process { display: grid; gap: 0; margin-top: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.process { padding: 2rem 2rem 2.2rem 0; border-bottom: 1px solid var(--line); }
.process__num { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--accent); }
.process__title { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; margin-top: 0.8rem; }
.process__text { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.6rem; max-width: 30ch; }
@media (min-width: 1000px) {
  .about__band { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
  .about__team { justify-self: end; width: 100%; max-width: 46rem; }
  .about__process { grid-template-columns: repeat(4, 1fr); }
  .process { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 1.5rem; }
  .process:first-child { padding-left: 0; } .process:last-child { border-right: 0; }
}

/* ---------- Services ---------- */
.services { position: relative; padding: var(--section) 0; background: transparent; }
.services__wrap { display: grid; gap: 3rem; padding: 0 var(--gutter); }
.services__sticky { align-self: start; }
.services__right { display: grid; gap: 3rem; align-content: start; }
.services__list { display: grid; gap: 1.25rem; counter-reset: svc; }
.service { position: relative; z-index: calc(1 + var(--i, 0)); outline: none; }
html.svc-live .service { will-change: transform; }   /* promoted only while #services is in view */
/* iOS-style liquid glass: translucent dark glass, blurred backdrop, specular top edge, soft depth */
.service__card {
  --p: 0%;
  position: relative; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem; align-content: center; padding: 2.4rem 2.4rem 2.6rem;
  border-radius: 24px; border: 1px solid rgba(242, 240, 236, 0.07);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0.012) 100%), rgba(12, 12, 17, 0.82);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.04), inset 1px 0 0 rgba(255, 255, 255, 0.05), 0 24px 60px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
}
/* accent border that "loads" clockwise from the top-left corner (--p is driven by sweepBorder in script.js) */
.service__card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 1;
  background: conic-gradient(from 225deg at 50% 50%, var(--accent) 0, var(--accent) var(--p), transparent var(--p));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0.95; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent));
}
.service__bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; transform: translateZ(0);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.07), transparent 55%), radial-gradient(80% 60% at 100% 100%, rgba(255, 255, 255, 0.035), transparent 60%); }
.service__bg::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 240, 236, 0.1), transparent 62%); }
.service:hover .service__bg::before, .service:focus-visible .service__bg::before { opacity: 1; }
/* dim veil for cards that settle back in the desktop stack (animated by buildServices; replaces opacity so texts never overlap) */
.service__veil { position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: 0; pointer-events: none; transform: translateZ(60px); z-index: 2; }
/* big decorative icon on the right of every card */
.service__watermark { position: absolute; right: 5%; top: 50%; transform: translateY(-50%) rotate(-8deg); width: clamp(150px, 26%, 260px); aspect-ratio: 1; color: var(--accent); opacity: 0.14; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent) 60%, transparent)); transition: opacity 0.5s, transform 0.8s var(--ease-out); }
.service__watermark svg { width: 100%; height: 100%; stroke-width: 1; }
.service:hover .service__watermark, .service:focus-visible .service__watermark { opacity: 0.24; transform: translateY(-50%) rotate(0deg) scale(1.04); }
.service__num, .service__body { position: relative; }
.service__num { transform: translateZ(28px); }
.service__head { transform: translateZ(34px); }
.service__text { transform: translateZ(22px); }
.service__tags { transform: translateZ(14px); }
.service__num { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--accent); padding-top: 0.6rem; }
.service__head { display: flex; align-items: center; gap: 1rem; }
.service__icon { width: 60px; height: 60px; flex: none; color: var(--ink); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 45%, transparent)); }
.service__icon svg { width: 100%; height: 100%; }
.service__title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.service__text { color: var(--ink-2); margin-top: 1rem; max-width: 56ch; }
.service__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.service__tags li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 0.4rem 0.8rem 0.4rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.03); }
.service__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
@media (min-width: 1000px) {
  .services__wrap { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .services__sticky { position: sticky; top: 20vh; }
  html.motion .services__list { position: relative; }
  .services__list { gap: 2.5rem; }
  html.motion .service { position: sticky; top: calc(14vh + var(--stack, 0px)); }
  html.motion .service__card { min-height: 46vh; }
  html.motion .service:last-child { margin-bottom: 4vh; }
}

/* ---------- Contact (closing piece: video bed + particles + big email) ---------- */
.contact { position: relative; padding: var(--section) var(--gutter) 0; background: var(--bg-2); overflow: hidden; isolation: isolate; }
.site-footer__bar.contact__bar { position: relative; z-index: 2; margin-top: clamp(2rem, 5vw, 3.5rem); padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom)); border-top: 0; }   /* higher specificity: the generic .site-footer__bar rules come later in the file */
.contact__bg { position: absolute; inset: -12% 0; z-index: 0; }
.contact__video { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; filter: saturate(0.7) contrast(1.05); }
.contact__shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-2) 0%, rgba(6,6,10,0.55) 35%, rgba(6,6,10,0.7) 70%, var(--bg) 100%); }
.contact__inner { position: relative; z-index: 2; display: grid; gap: 3rem; }
.contact__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(2.8rem, 1.5rem + 6.5vw, 8rem); max-width: 14ch; margin-top: 1.25rem; text-wrap: balance; }
.contact__lead { color: var(--ink-2); max-width: 44ch; margin-top: 1.75rem; font-size: 1.1rem; }
.contact__email { display: inline-flex; flex-direction: column; gap: 0.6rem; margin-top: 3rem; padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 100%; }
.contact__email-text { font-family: var(--font-display); font-size: clamp(1.1rem, 0.4rem + 2.6vw, 3.4rem); font-weight: 500; letter-spacing: -0.03em; }
.roll { position: relative; display: block; overflow: hidden; line-height: 1.05; }
.roll__a, .roll__b { display: block; transition: transform 0.7s var(--ease-out); white-space: nowrap; }
.roll__b { position: absolute; left: 0; top: 100%; color: var(--accent); }
.contact__email:hover .roll__a, .contact__email:focus-visible .roll__a { transform: translateY(-100%); }
.contact__email:hover .roll__b, .contact__email:focus-visible .roll__b { transform: translateY(-100%); }
.contact__email-cta { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.contact__email-cta svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.contact__email:hover .contact__email-cta svg { transform: translateX(6px); }
.contact__right { display: grid; gap: 2.5rem; align-content: end; }
.contact__grid { display: grid; gap: 1.6rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact__item { padding-top: 1rem; border-top: 1px solid var(--line); }
.contact__label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.6rem; }
.contact__item dd, .contact__item a { font-size: 1.05rem; }
.contact__clock { font-family: var(--font-display); font-size: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.contact__clock b { color: var(--accent); font-weight: 500; }
.social--row { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.social--row a { display: inline-flex; gap: 0.45rem; align-items: baseline; font-size: 1rem; }
.social--row small { color: var(--ink-3); font-size: 0.78rem; }
@media (min-width: 1000px) { .contact__inner { grid-template-columns: 7fr 5fr; gap: 4rem; } .contact__right { padding-top: 5rem; } }
@media (max-width: 560px) {
  .contact__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .contact__email { margin-top: 2rem; }
  .team--cards { grid-template-columns: 1fr; } .team-card { max-height: none; aspect-ratio: 4 / 5; }
  .about__stats dd { text-align: left; max-width: none; }
  .about__stats .stat { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .services__wrap { gap: 2rem; }
  .service__card { grid-template-columns: 2.2rem 1fr; gap: 1rem; padding: 1.4rem 1.2rem 1.6rem; border-radius: 18px; }
  .service__watermark { width: 110px; right: -2%; opacity: 0.1; }
  .service__icon { width: 34px; height: 34px; }
  .modal__bar { padding: 0 1rem; }
  .filters { gap: 0.4rem; }
  .filter { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
}

/* ---------- Footer ---------- */
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--gutter) 2rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-3); }
.site-footer__copy { flex: 1 1 auto; }
.site-footer__top { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-2); padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px; transition: border-color 0.3s, color 0.3s; }
.site-footer__top svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.site-footer__top:hover, .site-footer__top:focus-visible { border-color: var(--ink); color: var(--ink); }
.site-footer__top:hover svg { transform: translateY(-3px); }
.stripes--grow i { transform-origin: left; }
html.motion .stripes--grow i { transform: scaleX(0); }

/* ---------- Dialogs ---------- */
.modal { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: var(--bg); color: var(--ink); overflow: hidden; }
.modal::backdrop { background: rgba(3, 3, 4, 0.9); }
.modal[open] { display: flex; flex-direction: column; }
.modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--gutter); height: 64px; border-bottom: 1px solid var(--line); flex: none; }
.modal__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: border-color 0.3s, background-color 0.3s; }
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover, .modal__close:focus-visible { border-color: var(--ink); }

/* Showreel player */
.modal--reel { background: #000; }
.modal--reel .modal__bar { border-color: rgba(255,255,255,0.1); }
.modal__reel-title { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); }
.player { position: relative; flex: 1 1 auto; display: grid; place-items: center; background: #000; overflow: hidden; }
.player video { width: 100%; height: 100%; max-height: calc(100dvh - 64px); object-fit: contain; background: #000; }
.player__controls {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 1rem; padding: 1rem var(--gutter);
  background: linear-gradient(transparent, rgba(0,0,0,0.75)); opacity: 1; transition: opacity 0.4s;
}
.player.is-idle .player__controls { opacity: 0; }
.player.is-idle:focus-within .player__controls { opacity: 1; }
.player__btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); color: #fff; transition: border-color 0.3s; flex: none; }
.player__btn:hover, .player__btn:focus-visible { border-color: #fff; }
.player__btn svg { width: 18px; height: 18px; }
.player__btn .icon-alt { display: none; }
.player__btn.is-alt .icon-main { display: none; } .player__btn.is-alt .icon-alt { display: block; }
.player__seek { flex: 1 1 auto; -webkit-appearance: none; appearance: none; height: 24px; background: transparent; cursor: pointer; }
.player__seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--p, 0%) 100% no-repeat, rgba(255,255,255,0.25); }
.player__seek::-moz-range-track { height: 2px; background: rgba(255,255,255,0.25); }
.player__seek::-moz-range-progress { height: 2px; background: var(--accent); }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; margin-top: -5px; }
.player__seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 0; }
.player__seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player__time { font-size: 0.75rem; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; color: rgba(255,255,255,0.75); white-space: nowrap; }
.reel-ghost { position: fixed; z-index: 850; border-radius: 999px; background: #000; pointer-events: none; overflow: hidden; }

/* ---------- Reduced motion / no-JS ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
html:not(.motion) .split-char { transform: none !important; }
html:not(.js) .preloader, html:not(.js) .cursor, html:not(.js) .wipe { display: none; }
html:not(.js) .card, html:not(.js) [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive polish: phones & tablets ---------- */
/* Comfortable tap targets on touch screens (44px), without changing the desktop look */
@media (pointer: coarse) {
  .sound { min-width: 44px; min-height: 44px; justify-content: center; }
  .lang__btn { min-width: 40px; min-height: 44px; display: inline-grid; place-items: center; }
  .menu-btn { min-height: 44px; padding: 0 0.25rem; }
  .hero__motion { min-height: 44px; }
  .u-line, .mobile-menu__mail { padding-top: 0.55rem; padding-bottom: 0.55rem; }
  .mobile-menu__social a { padding: 0.4rem 0; display: inline-block; }
  .filter { min-height: 42px; }
  .site-footer__top { min-height: 44px; }
  .btn { min-height: 48px; }
  .card__link:hover .card__img { transform: none; }
}
/* Notched phones (viewport-fit=cover): keep the header and bottom bars out of the safe areas */
.site-header { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.mobile-menu { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.site-footer__bar { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
/* Landscape phones: a shorter hero and menu so nothing is cut off by the small height */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--header-h) + 0.5rem); }
  .hero__title { font-size: clamp(2.2rem, 11vh, 4.5rem); }
  .hero__eyebrow { margin-bottom: 0.75rem; }
  .hero__row { margin-top: 1rem; gap: 0.75rem 2rem; }
  .hero__content { padding-bottom: 1rem; }
  .hero__meta { padding: 0.7rem 0 0.8rem; }
  .mobile-menu__link { font-size: clamp(1.5rem, 9vh, 3rem); padding: 0.35rem 0; }
  .mobile-menu__footer { padding-top: 1rem; }
}
/* Tablets in portrait: give the two-column grids a little more air */
@media (min-width: 641px) and (max-width: 999px) {
  .about__band { gap: 3rem; }
  .team--cards { max-width: none; }
  .services__wrap { gap: 2.5rem; }
}
/* Smoother scrolling on touch: cheaper blur behind the compact header and no blur on buttons/tags */
@media (pointer: coarse) {
  .site-header.is-compact { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(3, 3, 4, 0.78); }
  .btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(3, 3, 4, 0.7); }
  .card__tag { backdrop-filter: none; }
}

/* ---------- Services CTA + footer credit ---------- */
.services__cta { display: grid; gap: 1.5rem; justify-items: start; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.services__cta-text { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem); max-width: 22ch; text-wrap: balance; }
.site-footer__credit { color: var(--ink-3); font-size: 0.8rem; letter-spacing: 0.04em; white-space: nowrap; }
.site-footer__credit b { color: var(--ink-2); font-weight: 600; letter-spacing: 0.1em; transition: color 0.3s; }
.site-footer__credit:hover b, .site-footer__credit:focus-visible b { color: var(--accent); }
@media (pointer: coarse) {
  .site-footer__credit { padding: 0.5rem 0; }
  .service__head, .service__text, .service__tags, .service__num { transform: none; }
  .service__card { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015)), rgba(12, 12, 17, 0.96); }
}

/* ---------- Audit 2026-10: a11y, touch, short viewports ---------- */
/* Contact details can be selected and copied (the rest of the page stays non-selectable by design) */
.contact__item dd, .contact__item a, .contact__email-text, .mobile-menu__mail, .site-footer__copy { -webkit-user-select: text; user-select: text; }
/* Skip-link target is focusable; no outline box around the whole page */
main:focus, main:focus-visible { outline: none; }
/* Native anchor jumps (static fallback, no JS) land below the compact header */
section[id] { scroll-margin-top: 64px; }

/* Touch screens: every control is at least 44 x 44 px */
@media (pointer: coarse) {
  .brand { min-width: 44px; min-height: 44px; justify-content: center; }
  .lang__btn { min-width: 44px; }
  .menu-btn { min-width: 44px; justify-content: center; }
  .filter { min-height: 44px; }
  .u-line, .nav__list .nav__link, .site-footer__credit { min-height: 44px; display: inline-flex; align-items: center; }   /* nav__list: desktop header on touch tablets */
  .nav__talk { min-height: 44px; }   /* height only: its display stays governed by the breakpoints (hidden <= 1100 px) */
}
/* Mouse at tablet widths: the icon-only sound toggle still needs a 24 px target (WCAG 2.5.8); touch keeps its 44 px */
@media (max-width: 900px) and (pointer: fine) { .sound { min-width: 24px; min-height: 24px; justify-content: center; } .menu-btn { min-height: 24px; } }
/* Phones: the small uppercase labels stay readable */
@media (max-width: 640px) {
  .hero__eyebrow, .hero__meta, .card__tag { font-size: 0.7rem; }
  .contact__label, .about__sub, .team-card__num, .work-intro__num { font-size: 0.72rem; }
}
/* Touch has no hover: team portraits get their colour while the card is in the middle of the screen (class set in script.js) */
@media (hover: none) { .team-card.is-inview .team-card__photo { filter: grayscale(0); transform: scale(1.06); } }

/* Short viewports. The hero is pinned while scrolling, so if it is taller than the screen its bottom row stays cut off.
   Laptops / landscape tablets 521-799 px tall: cap the title by the height (no effect at 800 px and taller). */
@media (min-width: 641px) and (min-height: 521px) and (max-height: 799px) {
  .hero__title { font-size: max(3.4rem, min(clamp(3.4rem, 1rem + 12.2vw, 13rem), calc(54vh - 220px))); }
}
/* Landscape phones and 200 % zoom: a slimmer header and tighter hero rhythm */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 60px; }
  .site-header.is-compact { height: 54px; }
  .brand__name { display: none; }
  .brand__logo, .site-header.is-compact .brand__logo { width: 42px; }
  .hero__meta-center { display: none; }
  .hero { padding-top: calc(var(--header-h) + 0.25rem); }
  .hero__eyebrow { margin-bottom: 0.5rem; }
  .hero__lead { max-width: 46ch; }                 /* two lines instead of three */
  .hero__row { margin-top: 0.6rem; }
  .hero__content { padding-bottom: 0.6rem; }
  .hero__meta { padding: 0.1rem 0 0.2rem; }        /* the row already holds a 44 px tap target */
}
/* Small phones (iPhone SE 1st gen and similar, 320 x 568) */
@media (max-width: 400px) and (max-height: 640px) {
  .hero { padding-top: var(--header-h); }
  .hero__eyebrow { margin-bottom: 0.6rem; }
  .hero__row { margin-top: 0.9rem; gap: 0.75rem; }
  .hero__actions { gap: 0.6rem; }
  .hero__content { padding-bottom: 0.9rem; }
  .hero__meta { padding: 0.6rem 0 0.7rem; }
}

/* ---------- Legal documents (end of the contact section): links to their own pages ----------
   termeni-si-conditii.html, politica-de-confidentialitate.html, politica-cookies.html (styled by legal.css) */
.legal { position: relative; z-index: 2; margin-top: clamp(3rem, 7vw, 5rem); }
.legal__link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 1.1rem 0; border-top: 1px solid var(--line); color: var(--ink-2); transition: color 0.3s; }
.legal__link:hover, .legal__link:focus-visible { color: var(--ink); }
.legal__title { font-family: var(--font-display); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); font-weight: 500; letter-spacing: -0.01em; }
.legal__arrow { flex: none; width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.legal__link:hover .legal__arrow, .legal__link:focus-visible .legal__arrow { transform: translateX(4px); }
.legal__company { padding: 1.1rem 0 0; border-top: 1px solid var(--line); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-3); -webkit-user-select: text; user-select: text; }
