/* ─────────────────────────────────────────────────────────────
   RT Design Studio — site stylesheet
   Stack: DaisyUI components + custom layout. No Tailwind utilities.
   ───────────────────────────────────────────────────────────── */

/* Trial fonts loaded from Google CDN until final pick */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:wght@400;700&display=swap');

/* ── fonts (variable woff2, served locally) ───────────────── */
@font-face {
  font-family: 'Geologica';
  src: url('../fonts/geologica.woff2') format('woff2-variations'), url('../fonts/geologica.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2-variations'), url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono.woff2') format('woff2-variations'), url('../fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display.woff2') format('woff2-variations'), url('../fonts/playfair-display.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat.woff2') format('woff2-variations'), url('../fonts/caveat.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond.woff2') format('woff2-variations'), url('../fonts/eb-garamond.woff2') format('woff2');
  font-weight: 400 800; font-style: normal; font-display: swap;
}

/* ── custom RT theme matching Figma (#262833) ─────────────────
   DaisyUI 4 uses OKLCH triplets: "L% C H" (lightness, chroma, hue).
   ───────────────────────────────────────────────────────────── */
[data-theme="rt-dark"] {
  color-scheme: dark;
  --p:  72%  0.13  226;     --pc: 18% 0.01 264;   /* sky-400ish primary */
  --s:  78%  0.05  264;     --sc: 18% 0.01 264;   /* light cool secondary */
  --a:  72%  0.13  226;     --ac: 18% 0.01 264;   /* same as primary */
  --n:  28%  0.014 264;     --nc: 95% 0    0;     /* dark neutral */
  --b1: 23.2% 0.014 264;    --b2: 19.8% 0.013 264; --b3: 16.6% 0.011 264;
  --bc: 95%  0    0;
  --in: 72%  0.16  231;     --inc: 100% 0   0;
  --su: 70%  0.15  160;     --suc: 100% 0   0;
  --wa: 85%  0.20  84;      --wac: 0%   0   0;
  --er: 71%  0.22  22;      --erc: 100% 0   0;
  --rounded-box:   1rem;
  --rounded-btn:   9999px;
  --rounded-badge: 9999px;
  --animation-btn: .25s;
  --animation-input: .2s;
  --btn-text-case: none;
  --btn-focus-scale: .97;
  --border-btn: 1px;
  --tab-border: 1px;
  --tab-radius: .5rem;
}

/* ── font families per theme ─────────────────────────────── */
:root {
  --font-display: 'Geologica', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:    'Inter',     system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
[data-theme="rt-dark"], [data-theme="dim"], [data-theme="business"], [data-theme="forest"] {
  --font-display: 'Libre Caslon Text', ui-serif, Georgia, serif;
  --font-body:    'Inter',     system-ui, sans-serif;
}
[data-theme="dracula"], [data-theme="coffee"] {
  --font-display: 'Playfair Display', ui-serif, Georgia, serif;
  --font-body:    'Inter',           system-ui, sans-serif;
}
[data-theme="retro"] {
  --font-display: 'Playfair Display', ui-serif, Georgia, serif;
  --font-body:    ui-serif, Georgia, 'Times New Roman', serif;
}
[data-theme="synthwave"], [data-theme="cyberpunk"] {
  --font-display: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
  --font-body:    'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
}
[data-theme="valentine"] {
  --font-display: 'Caveat', "Brush Script MT", cursive;
  --font-body:    'Inter',  system-ui, sans-serif;
}
[data-theme="nord"] {
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── reset minim (DaisyUI nu include Tailwind preflight) ── */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ── base ─────────────────────────────────────────────────── */
html {
  background: oklch(var(--b1));
  color: oklch(var(--bc));
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  background: oklch(var(--b1));
}

/* smooth theme transitions on the leaf elements that change color */
html, body, .topbar, .badge, .btn, .card, .ico, .invoice {
  transition: background-color .35s ease, color .35s ease,
              border-color .35s ease, fill .35s ease;
}

/* ── design tokens for spacing ────────────────────────────── */
:root {
  --section-gap: 96px;          /* desktop vertical rhythm */
  --topbar-h:    86px;          /* logo 50 + padding 18*2 */
}
@media (max-width: 1100px) {
  :root { --section-gap: 64px; --topbar-h: 78px; }
}

/* ── page grid ────────────────────────────────────────────── */
.page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 64px var(--section-gap);
  display: grid;
  grid-template-columns: minmax(0, 760px) 424px;
  column-gap: 128px;
  align-items: start;
}
@media (max-width: 1100px) {
  .page { grid-template-columns: 1fr; column-gap: 0; row-gap: var(--section-gap); padding: 0 28px var(--section-gap); }
}

/* ── topbar (full-width sticky, color identical to body, blur for content scrolling under) ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  margin-top: 48px;                       /* 48px gap from top until scroll */
  background: oklch(var(--b1) / .72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  margin-bottom: var(--section-gap);
  transition: margin-top .3s ease, border-bottom-color .3s ease;
}
.topbar.scrolled { margin-top: 0; border-bottom-color: oklch(var(--bc) / .08); }

.topbar-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 64px;
  display: grid;
  /* Mirrors the .page grid so .tools sits centered above the clients column. */
  grid-template-columns: minmax(0, 760px) 128px 424px;
  align-items: center;
}
.topbar-inner .logo  { grid-column: 1; justify-self: start; }
.topbar-inner .tools { grid-column: 3; justify-self: center; }

@media (max-width: 1100px) {
  .topbar { margin-top: 0; margin-bottom: calc(var(--section-gap) - 24px); }
  .topbar-inner {
    display: flex; justify-content: space-between;
    grid-template-columns: none;
    padding: 28px;
  }
  /* Bottom fade-out — purely cosmetic, scroll passes through */
  body::after {
    content: '';
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 48px;
    background: linear-gradient(to top, oklch(var(--b1)), oklch(var(--b1) / 0));
    pointer-events: none;
    z-index: 40;
  }
}
.topbar.scrolled .topbar-inner { padding-top: 16px; padding-bottom: 16px; }

.topbar .logo img { height: 50px; width: auto; color: oklch(var(--bc)); }
.tools { display: flex; align-items: center; gap: 8px; }

/* Inline hint pointing to the clients column */
.header-clients-hint {
  display: inline-flex; align-items: center; gap: 8px;
  padding-left: 32px; padding-right: 16px;
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.6;
  color: oklch(var(--bc) / .5);
  white-space: nowrap;
}
.header-clients-hint svg { flex-shrink: 0; }
@media (max-width: 1100px) { .header-clients-hint { display: none; } }

/* Mobile-only header rotating logo cluster (4 slots).
   Reuses the same `breathe` rhythm as the desktop logo grid:
   each slot has random delay+duration; logo swaps on iteration boundary. */
.header-logos { display: none; }
@media (max-width: 1100px) {
  .header-logos { display: inline-flex; gap: 22px; align-items: center; }
}
.header-logo-slot {
  position: relative;
  width: 36px; height: 36px;
  flex-shrink: 0;
  filter: grayscale(1) blur(2px);
  opacity: 0;
  animation: breathe-slot var(--breathe-dur, 7s) ease-in-out var(--breathe-delay, 0s) infinite;
  will-change: opacity, filter;
}
.header-logo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
@keyframes breathe-slot {
  0%, 100% { opacity: 0;  filter: grayscale(1) blur(2px); }
  50%      { opacity: .5; filter: grayscale(1) blur(0); }
}
/* Light-theme inversion (composes with parent filter) */
[data-theme="light"] .header-logo-slot img,
[data-theme="cupcake"] .header-logo-slot img, [data-theme="bumblebee"] .header-logo-slot img,
[data-theme="emerald"] .header-logo-slot img, [data-theme="corporate"] .header-logo-slot img,
[data-theme="retro"] .header-logo-slot img,   [data-theme="cyberpunk"] .header-logo-slot img,
[data-theme="valentine"] .header-logo-slot img, [data-theme="garden"] .header-logo-slot img,
[data-theme="lofi"] .header-logo-slot img,    [data-theme="pastel"] .header-logo-slot img,
[data-theme="fantasy"] .header-logo-slot img, [data-theme="wireframe"] .header-logo-slot img,
[data-theme="cmyk"] .header-logo-slot img,    [data-theme="autumn"] .header-logo-slot img,
[data-theme="acid"] .header-logo-slot img,    [data-theme="lemonade"] .header-logo-slot img,
[data-theme="winter"] .header-logo-slot img,  [data-theme="nord"] .header-logo-slot img { filter: invert(1); }

/* ── hero ─────────────────────────────────────────────────── */
.hero-section { /* same vertical rhythm as the rest */ }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 36px;
  color: oklch(var(--bc));
}
.hero-title strong { font-weight: 400; }
.hero-title em { font-weight: 400; font-style: normal; }
[data-theme="valentine"] .hero-title { font-weight: 400; line-height: 1; }
[data-theme="cyberpunk"] .hero-title,
[data-theme="synthwave"] .hero-title { letter-spacing: -0.04em; font-size: clamp(32px, 5vw, 52px); }

/* ── sections ─────────────────────────────────────────────── */
.section { margin-top: var(--section-gap); }

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 36px);
  line-height: normal;
  margin: 24px 0 24px;
  color: oklch(var(--bc));
}
.section p { margin: 0 0 24px; color: oklch(var(--bc)); }
.section .lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: oklch(var(--bc) / .7);
  margin-top: 0;
  margin-bottom: 32px;
}
.section .lead.highlight {
  font-size: 20px;
  line-height: 1.6;
  color: oklch(var(--bc) / 1);
  margin-bottom: 16px;
}
.section .aside {
  margin-top: 16px; padding: 30px 32px;
  background: oklch(var(--bc) / .06);
  border-top: 1px solid oklch(var(--bc) / .12);
  border-radius: 24px;
  font-size: 18px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

/* ── filled section label ───────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px;
  background: oklch(var(--bc) / .05);
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 700; font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: oklch(var(--bc) / .5);
  text-align: center;
  line-height: 1;
}

/* ── inline dotted underline emphasis ───────────────────── */
.dotted {
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-decoration-color: oklch(var(--bc) / .3);
  text-underline-offset: 4px;
}

/* ── inline handwritten swoosh emphasis ───────────────────── */
.swoosh-1, .swoosh-2 {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
button.swoosh-1, button.swoosh-2 {
  background: transparent; border: 0; padding: 0;
  font: inherit; color: inherit;
  cursor: help;
}
button.swoosh-1:focus-visible, button.swoosh-2:focus-visible {
  outline: 2px solid oklch(var(--bc) / .4);
  outline-offset: 2px; border-radius: 2px;
}

/* ── Tooltips (custom popover, hover + click) ─────────────── */
.tip {
  position: fixed; z-index: 100;
  width: 480px;
  padding: 32px;
  background: oklch(var(--bc) / .1);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid oklch(var(--bc) / .18);
  border-radius: 16px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; line-height: 1.8;
  color: oklch(var(--bc));
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.tip:not([hidden]) { opacity: 1; transform: translateY(0); }
.tip--with-image {
  width: 480px;
  display: flex; align-items: center; gap: 24px;
}
.tip--with-image img {
  width: 140px; height: auto;
  border-radius: 12px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.tip--with-image p { flex: 1; margin: 0; }
@media (max-width: 1100px) {
  .tip { width: calc(100vw - 32px); max-width: 360px; padding: 24px; }
  .tip--with-image { width: calc(100vw - 32px); max-width: 460px; gap: 16px; }
  .tip--with-image img { width: 100px; }
}
.swoosh-1::after, .swoosh-2::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  background-color: currentColor;
  opacity: 0.45;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  pointer-events: none;
}
.swoosh-2::after {
  height: 9px;
  bottom: -6px;
  mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg preserveAspectRatio='none' viewBox='0 0 210 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 2.5C93.5 0 202.5 -0.4 208.5 2.5C213.3 4.9 96.5 8.2 37.5 9.5' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg preserveAspectRatio='none' viewBox='0 0 210 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 2.5C93.5 0 202.5 -0.4 208.5 2.5C213.3 4.9 96.5 8.2 37.5 9.5' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.swoosh-1::after {
  height: 5px;
  bottom: -2px;
  mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg preserveAspectRatio='none' viewBox='0 0 217 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 3.1C93.5 0.6 210 -0.8 216 2.1' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg preserveAspectRatio='none' viewBox='0 0 217 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 3.1C93.5 0.6 210 -0.8 216 2.1' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ── service / principles list ─────────────────────────────── */
.list { margin: 24px 0 0; }
.list li { padding: 16px 0; }
.list h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 30px); font-weight: 400; margin-bottom: 8px;
  line-height: normal;
  color: oklch(var(--bc));
}
.list p { margin: 0; font-size: 16px; color: oklch(var(--bc) / .7); }

/* ── contacts row ──────────────────────────────────────────── */
.contacts-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contacts-row-left {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  flex: 1;
}
/* Desktop: copy button pushed to far right of the row */
.contacts-row-left > [data-copy="contacts"] { margin-left: auto; }

/* SVG-as-mask icons — inherit currentColor, themeable.
   URLs resolve relative to this CSS file (css/style.css → ../assets/...). */
.icon-svg {
  display: inline-block; width: 24px; height: 24px;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain;    mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.icon-instagram { -webkit-mask-image: url('../assets/icons/instagram.svg'); mask-image: url('../assets/icons/instagram.svg'); }
.icon-facebook  { -webkit-mask-image: url('../assets/icons/facebook.svg');  mask-image: url('../assets/icons/facebook.svg');  }
.icon-behance   { -webkit-mask-image: url('../assets/icons/behance.svg');   mask-image: url('../assets/icons/behance.svg');   }
.icon-copy      { -webkit-mask-image: url('../assets/icons/copy.svg');      mask-image: url('../assets/icons/copy.svg');      }
.invoice {
  padding: 24px;
  background: oklch(var(--bc) / .07);
  border-top: 1px solid oklch(var(--bc) / .12);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
}

/* ── card-style section (e.g. "Ei bine...") ─────────────── */
.section--card {
  padding: 30px 32px;     /* match .section .aside */
  background: oklch(var(--bc) / .05);
  border-top: 1px solid oklch(var(--bc) / .12);
  border-radius: 24px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex; flex-direction: column; align-items: stretch;
  gap: 48px;
}
.section--card > * { margin: 0; }
.section--card > .tag { align-self: flex-start; }
.section--card .lead { font-size: 14px; color: oklch(var(--bc) / .7); max-width: none; margin: 0; }
.section--card .list { display: flex; flex-direction: column; gap: 36px; width: 100%; margin: 0; }
.section--card .list li { padding: 0; }
.section--card .list h3 { margin-bottom: 8px; font-size: clamp(22px, 3.4vw, 30px); line-height: normal; }
.section--card .list p { font-size: 16px; color: oklch(var(--bc) / .7); }
.section--card .invoice { width: 100%; padding: 24px; margin-top: -24px; }   /* compensate parent's gap:48 → 24px */

/* ── glass pill (contacts row label + icon buttons) ─────── */
.pill-glass {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 24px;
  background: oklch(var(--bc) / .1);
  border-top: 1px solid oklch(var(--bc) / .2);
  border-radius: 96px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700; font-size: 18px;
  line-height: 1; color: oklch(var(--bc));
  text-align: center; white-space: nowrap;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}
.contacts-row .ico {
  width: 60px; height: 60px; padding: 0;
  /* override DaisyUI btn defaults inside contacts-row */
  min-height: 0;
  transition: background-color .2s ease, border-top-color .2s ease;
}
.contacts-row .ico:hover {
  background: oklch(var(--bc) / .18);
  border-top-color: oklch(var(--bc) / .3);
}
.pill-glass[aria-expanded="true"],
.pill-glass[data-copied] {
  background: oklch(var(--bc) / .22);
  border-top-color: oklch(var(--bc) / .35);
}
/* Copy button is completely hidden until the invoice card is opened. */
[data-copy="contacts"]:disabled,
[data-copy="contacts"][disabled] {
  display: none;
}
.invoice h4 {
  font-family: inherit;
  font-weight: 700; font-size: 14px; margin-bottom: 18px;
  line-height: normal;
}
.invoice .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.invoice .cols div { font-size: 13px; line-height: 1.6; color: oklch(var(--bc) / .85); }
@media (max-width: 600px) { .invoice .cols { grid-template-columns: 1fr; gap: 20px; } }

/* ── clients column ────────────────────────────────────────── */
.clients {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  align-self: start;
  height: calc(100vh - var(--topbar-h) - 32px);
  display: flex;
  flex-direction: column;
}

.clients-head {
  text-align: center;
  padding: 0 16px 24px;
  border-bottom: 1px solid oklch(var(--bc) / .08);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.clients-head p { margin-top: 12px; color: oklch(var(--bc) / .7); font-size: 15px; }
.clients .more { text-align: center; font-style: normal; font-size: 14px; color: oklch(var(--bc) / .55); margin-top: 16px; flex-shrink: 0; }

/* Cells (shared by desktop columns & mobile marquee).
   "Breathing" pulse: each cell fades + blurs in/out on its own random rhythm.
   --breathe-delay / --breathe-dur are set per-cell by JS at init. */
.cell {
  display: grid; place-items: center;
  aspect-ratio: 1;
  padding: 14px;
  filter: grayscale(1) brightness(1.05) blur(1.5px);
  opacity: .3;
  pointer-events: none;
  animation: breathe var(--breathe-dur, 7s) ease-in-out var(--breathe-delay, 0s) infinite;
  will-change: opacity, filter;
}
@keyframes breathe {
  0%, 100% { opacity: .3; filter: grayscale(1) brightness(1.05) blur(1.5px); }
  50%      { opacity: .9; filter: grayscale(1) brightness(1.05) blur(0); }
}
.cell img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; }

/* ── desktop: 3 vertical columns, alternating scroll directions ── */
.clients-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.clients-col { overflow: hidden; }
.clients-col .track {
  display: flex; flex-direction: column;
  gap: 22px;
  will-change: transform;
}
/* All columns drift bottom→top, but at varied speeds for organic motion. */
.clients-col:nth-child(1) .track { animation: scroll-up 320s linear infinite; }
.clients-col:nth-child(2) .track { animation: scroll-up 240s linear infinite; }
.clients-col:nth-child(3) .track { animation: scroll-up 400s linear infinite; }

@keyframes scroll-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* On light themes, white SVGs need inversion */
[data-theme="light"] .cell img,
[data-theme="cupcake"] .cell img, [data-theme="bumblebee"] .cell img,
[data-theme="emerald"] .cell img, [data-theme="corporate"] .cell img,
[data-theme="retro"] .cell img,   [data-theme="cyberpunk"] .cell img,
[data-theme="valentine"] .cell img, [data-theme="garden"] .cell img,
[data-theme="lofi"] .cell img,    [data-theme="pastel"] .cell img,
[data-theme="fantasy"] .cell img, [data-theme="wireframe"] .cell img,
[data-theme="cmyk"] .cell img,    [data-theme="autumn"] .cell img,
[data-theme="acid"] .cell img,    [data-theme="lemonade"] .cell img,
[data-theme="winter"] .cell img,  [data-theme="nord"] .cell img { filter: invert(1) grayscale(1) brightness(.95); }

/* ── mobile: hide the entire clients column (replaced by header rotator) ─── */
@media (max-width: 1100px) {
  .clients { display: none !important; }   /* hidden; header-logos takes over */
  .clients-cols {
    display: block;
    grid-template-columns: none;
    height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  }
  .clients-cols .clients-col--down,
  .clients-cols .clients-col--up:last-of-type { display: none; }
  /* Single visible column inherits the same scroll-up keyframe & duration. */

  /* Contacts row on mobile: toggle pill full-width row, then icons row centered.
     Copy joins the same row as social icons when it becomes visible. */
  .contacts-row-left { justify-content: center; }
  .contacts-row-left > .pill-glass:not(.ico) {
    flex: 0 0 100%;
    width: 100%;
  }
  .contacts-row-left > [data-copy="contacts"] { margin-left: 0; }
}

/* ── copyright (below the contacts card) ─────────────────── */
.copyright {
  margin-top: 24px;
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: oklch(var(--bc) / .4);
  text-align: left;
}

/* ── theme dropdown menu (DaisyUI dropdown + custom rows) ─── */
.theme-menu { width: 240px; max-height: 60vh; overflow-y: auto; padding: 8px; }
.theme-menu li > a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; }
.theme-menu li > a.active { background: oklch(var(--p) / .15); color: oklch(var(--p)); }
.theme-menu .swatches { display: inline-flex; gap: 3px; }
.theme-menu .swatch { width: 10px; height: 10px; border-radius: 50%; }

/* ── konami easter-egg confetti ───────────────────────────── */
.confetti {
  position: fixed; top: -20px; width: 8px; height: 14px;
  border-radius: 2px; pointer-events: none; z-index: 9999;
  animation: confetti-fall 2.4s linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(110vh)  rotate(720deg); opacity: 0; }
}

/* ── DEV MODE overlay (hold Shift+D for 800ms to toggle) ─── */
.dev-mode body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image:
    linear-gradient(to right,  oklch(var(--p) / .12) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(var(--p) / .10) 1px, transparent 1px);
  background-size: 8px 8px;
}
.dev-mode::after {
  content: "DEV MODE · 8px grid · " attr(data-theme);
  position: fixed; bottom: 12px; left: 12px; z-index: 101;
  padding: 6px 12px; border-radius: 999px;
  background: oklch(var(--p)); color: oklch(var(--pc));
  font: 700 11px/1 var(--font-body, system-ui);
  letter-spacing: .05em; text-transform: uppercase;
  pointer-events: none;
}
.dev-mode .page * {
  outline: 1px solid oklch(var(--p) / .25);
  outline-offset: -1px;
}

/* ── focus ring ───────────────────────────────────────────── */
:focus-visible { outline: 2px solid oklch(var(--p)); outline-offset: 2px; border-radius: 4px; }

/* ── print ────────────────────────────────────────────────── */
@media print {
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; }
  .topbar .tools, .clients-grid .cell, .confetti, .topbar { background: #fff !important; backdrop-filter: none !important; border: 0 !important; box-shadow: none !important; }
  .topbar .tools { display: none !important; }
  .page { display: block; max-width: none; padding: 0; }
  .clients-head, .clients .more { display: none; }
  .hero-title { font-size: 24pt; color: #000; }
  .hero-title em { color: #000; text-decoration: underline; }
  a { color: #000; text-decoration: underline; }
  .invoice { background: none; border: 1px solid #999; }
  .badge { background: #000 !important; color: #fff !important; }
  .list li { break-inside: avoid; }
}

/* ── reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .clients-grid { animation: none !important; }
  .cell { animation: none !important; opacity: .55 !important; filter: grayscale(1) !important; }
}
