/* =====================================================================
   TIM BODHI STUDIOS — main stylesheet
   ---------------------------------------------------------------------
   1. Fonts (self-hosted, GDPR-friendly)
   2. THEMES  <-- colours & fonts live here (switch theme in assets/js/config.js)
   3. Base
   4. Layout helpers
   5. Header / navigation / language switch
   6. Hero (full-screen video)
   7. Sections: logos, about, services, portfolio, reels, projects,
      process, testimonials, FAQ, contact
   8. Footer, lightbox, legal pages
   9. Animations (+ reduced motion)
   ===================================================================== */

/* 1. FONTS ------------------------------------------------------------ */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

/* 2. THEMES ------------------------------------------------------------
   Theme 1 "Studio Noir"  – dark, cinematic, your brand orange (default)
   Theme 2 "Ivory Atelier" – warm light, editorial serif headlines
   Theme 3 "Midnight Volt" – deep navy with an electric lime accent
   ---------------------------------------------------------------------- */
:root,
[data-theme="noir"] {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --surface: #19191c;
  --surface-2: #222226;
  --text: #f4f1ec;
  --muted: #a7a29a;
  --line: rgba(255, 255, 255, .10);
  --accent: #ff6b1a;
  --accent-2: #ffa25c;
  --accent-ink: #0b0b0c;
  --font-display: "Syne", "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --display-transform: none;
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

[data-theme="ivory"] {
  --bg: #f6f1e9;
  --bg-2: #eee6d8;
  --surface: #fffaf2;
  --surface-2: #f1e9dc;
  --text: #1f1813;
  --muted: #6d6156;
  --line: rgba(31, 24, 19, .12);
  --accent: #c2410c;
  --accent-2: #e07a3c;
  --accent-ink: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --display-weight: 500;
  --display-tracking: -0.025em;
  --display-transform: none;
  --radius: 6px;
  --shadow: 0 30px 60px -35px rgba(60, 35, 10, .35);
  color-scheme: light;
}

[data-theme="volt"] {
  --bg: #080d1c;
  --bg-2: #0d1429;
  --surface: #121a33;
  --surface-2: #1a2445;
  --text: #eef2ff;
  --muted: #98a3c7;
  --line: rgba(160, 180, 255, .14);
  --accent: #c8ff3d;
  --accent-2: #7cf5ff;
  --accent-ink: #080d1c;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.035em;
  --display-transform: none;
  --radius: 28px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* Shared tokens */
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(.22, .9, .25, 1);
  --header-h: 115px;
}

/* 3. BASE ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 4. LAYOUT ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-2); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 72px); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); font-size: 1.08em; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  border: 1.5px solid var(--b); background: var(--b); color: var(--accent-ink);
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s;
  white-space: nowrap;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { color: var(--text); border-color: var(--text); box-shadow: none; }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--light:hover { color: #fff; border-color: #fff; box-shadow: none; }

/* 5. HEADER ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, backdrop-filter .4s, height .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
  color: #fff;
}
.site-header.is-scrolled,
.site-header.is-solid {
  --header-h: 96px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
  color: var(--text);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; align-self: stretch; color: var(--logo-color); line-height: 0; }
.brand:hover { color: var(--logo-color); }
.brand .tbs-logo { height: 72px; transition: height .4s var(--ease); }
.site-header.is-scrolled .brand .tbs-logo, .site-header.is-solid .brand .tbs-logo { height: 60px; }
.site-header:not(.is-scrolled):not(.is-solid) .brand { filter: drop-shadow(0 1px 8px rgba(0,0,0,.5)); }
@media (max-width: 640px) { .brand .tbs-logo, .site-header.is-scrolled .brand .tbs-logo, .site-header.is-solid .brand .tbs-logo { height: 57px; } }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .92rem; font-weight: 500; position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__links a:hover { color: inherit; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 46px; padding: 0 20px; font-size: .9rem; }

.lang-switch {
  display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  border-color: color-mix(in srgb, currentColor 30%, transparent);
}
.lang-switch a { padding: 5px 9px; border-radius: 999px; line-height: 1; opacity: .7; }
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.lang-switch a:hover { opacity: 1; color: inherit; }
.lang-switch a[aria-current="true"]:hover { color: var(--accent-ink); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; content: ""; transition: transform .4s var(--ease), opacity .3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; z-index: 2; }
  .brand { position: relative; z-index: 2; }  /* logo stays visible above the open menu */
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 36px;
    background: var(--bg); color: var(--text);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; align-items: center; gap: 18px; }
  .nav__links a { font-family: var(--font-display); font-size: 1.8rem; }
  .nav-open .site-header { color: var(--text); }
  /* the header's frosted blur would trap the fixed menu inside the 96px bar (Safari/Chrome) – switch it off while open */
  .nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); transition: none; }
  .nav { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--header-h) + 12px) 24px 40px; }
  .nav-open, html:has(body.nav-open) { overflow: hidden; }
}

/* 6. HERO --------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate; background: #000;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: kenburns 24s ease-in-out infinite alternate; }
.hero.has-video .hero__media img { display: none; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.85) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(0,0,0,.5), transparent 60%);
}
.hero__content { padding-block: calc(var(--header-h) + 60px) clamp(56px, 9vh, 110px); width: 100%; }
.hero__eyebrow { color: #fff; opacity: .9; margin-bottom: 22px; }
.hero__eyebrow::before { background: var(--accent); }
.hero .hero__title {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  line-height: 1.05; text-wrap: balance; margin: 0 0 24px;
  font-size: clamp(2.1rem, 5.2vw, 4.6rem); max-width: 17ch; color: #fff;
}
/* the small line above the tagline is the page's H1 (keywords for Google) – styled like the other eyebrows */
h1.hero__eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .18em; line-height: 1.4; text-wrap: wrap; margin: 0 0 22px; }
.hero .hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { max-width: 560px; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.85); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero__controls { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: #fff;
  backdrop-filter: blur(6px); transition: border-color .3s, background .3s;
}
.icon-btn:hover { border-color: #fff; background: rgba(0,0,0,.45); }
.icon-btn svg { width: 18px; height: 18px; }
.hero:not(.has-video) .hero__controls { display: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.scroll-cue i { width: 1.5px; height: 46px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: scrollcue 2.2s var(--ease) infinite; }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* Page hero (sub pages) */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 16ch; }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.1em; }

/* 7a. LOGO MARQUEE ------------------------------------------------------ */
.logos { padding-block: 44px; border-bottom: 1px solid var(--line); overflow: hidden; }
.logos__label { text-align: center; font-size: .96rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.marquee { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.logos:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(52px, 7.8vw, 104px); padding: 0 clamp(26px, 3.9vw, 52px); margin: 0; list-style: none; }
.marquee li { flex: none; }
.marquee img { height: 110px; width: 110px; border-radius: 10px; max-width: none; object-fit: contain; opacity: .6; transition: opacity .3s; }
.marquee img:hover { opacity: 1; }
[data-theme="ivory"] .marquee img { filter: invert(1) brightness(.2); }
.logos { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* 7b. ABOUT ------------------------------------------------------------ */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
/* photo collage: shown in full at every screen size (image is 1600x555) */
.about__media img { width: 100%; aspect-ratio: 1600/555; object-fit: cover; object-position: 50% 50%; }
.about__badge {
  position: absolute; left: 18px; bottom: 18px; padding: 10px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.pill-list li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* 7c. SERVICES ------------------------------------------------------------ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s;
}
.service:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.service__img { aspect-ratio: 4/3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service__num { font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .12em; }
.service h3 { margin: 0; }
.service__sub { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: -4px 0 4px; }
.service p { color: var(--muted); margin: 0; }
.checks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* 7d. PORTFOLIO (photos) ------------------------------------------------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: .9rem;
  transition: background .3s, color .3s, border-color .3s;
}
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery[hidden] { display: none; }
.gallery a { display: block; border-radius: calc(var(--radius) * .7); overflow: hidden; position: relative; aspect-ratio: 1; background: var(--surface); }
.gallery a:nth-child(5n+1) { grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after {
  content: "+"; position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 1.3rem; font-weight: 500;
  opacity: 0; transform: scale(.6); transition: opacity .35s, transform .45s var(--ease);
}
.gallery a:hover::after { opacity: 1; transform: none; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* 7e. REELS -------------------------------------------------------------- */
.reels-wrap { position: relative; }
.reels {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 290px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 26px;
  scrollbar-width: none; overscroll-behavior-x: contain; scroll-behavior: smooth;
}
.reels::-webkit-scrollbar { display: none; }
/* soft fade on the side where more reels are hidden */
.reels-wrap { --fade-l: 0px; --fade-r: 0px; }
.reels-wrap.can-left { --fade-l: 56px; }
.reels-wrap.can-right { --fade-r: 56px; }
.reels {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
/* slim scroll indicator, exactly as wide as the reel row */
.reels-progress {
  position: relative; height: 3px; border-radius: 3px; background: var(--line); margin-top: 2px; cursor: pointer;
  touch-action: none;
}
.reels-progress::before { content: ""; position: absolute; inset: -8px 0; } /* bigger click/drag area */
.reels-progress span {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 3px; background: var(--accent);
  transition: height .3s var(--hover-ease, ease), top .3s var(--hover-ease, ease);
}
.reels-progress:hover span, .reels-progress.is-dragging span { height: 5px; top: -1px; }
.reels-progress[hidden] { display: none; }
.reels-nav button[disabled] { opacity: .3; pointer-events: none; }
.reel {
  scroll-snap-align: start; position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 0; padding: 0; text-align: left; color: #fff; isolation: isolate;
  transition: transform .5s var(--ease);
}
.reel:hover { transform: translateY(-6px); }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.reel:hover img { transform: scale(1.05); }
.reel video { opacity: 0; transition: opacity .4s; }
.reel.is-previewing video { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.85)); }
.reel__info { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; }
.reel__tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.reel__title { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.reel__play {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px); transition: background .3s, transform .4s var(--ease);
}
.reel__play svg { width: 16px; height: 16px; margin-left: 2px; }
.reel:hover .reel__play { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.reels-nav { display: flex; gap: 10px; }
.reels-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: border-color .3s, background .3s; }
.reels-nav button:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.reels-nav svg { width: 18px; height: 18px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 5vw, 56px); }
.head-row .section-head { margin-bottom: 0; }
.reels-note { margin-top: 10px; font-size: .85rem; color: var(--muted); }

/* 7f. PROJECTS / CASES --------------------------------------------------- */
.cases { display: grid; gap: clamp(60px, 9vw, 120px); }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.case:nth-child(even) .case__media { order: 2; }
.case__media {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #000; box-shadow: var(--shadow);
  transition: transform .9s cubic-bezier(.19, 1, .22, 1), box-shadow .9s cubic-bezier(.19, 1, .22, 1);
}
.case__media.reveal { transition: opacity .9s var(--ease), transform .9s cubic-bezier(.19, 1, .22, 1), box-shadow .9s cubic-bezier(.19, 1, .22, 1); }
.case__media:hover, .case__media.reveal.is-visible:hover, .case__media.reveal:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -35px rgba(0,0,0,.85); }
.case__client { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.case h2, .case h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.case p { color: var(--muted); }
.case__type { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case:nth-child(even) .case__media { order: 0; } }

.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Project cards (home) — smooth hover: lift, slow zoom, soft shade, arrow button */
.case-card { --hover-ease: cubic-bezier(.19, 1, .22, 1); display: flex; flex-direction: column; gap: 14px; }
.case-card__img {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; position: relative; isolation: isolate; background: var(--surface);
  box-shadow: 0 0 0 0 rgba(0,0,0,0); transform: translateY(0);
  transition: transform .9s var(--hover-ease), box-shadow .9s var(--hover-ease);
}
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.6s var(--hover-ease), filter 1s var(--hover-ease); }
.case-card__img::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
  opacity: 0; transition: opacity .9s var(--hover-ease);
}
.case-card__img::after {
  content: "\2197"; position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.25rem; font-weight: 600; line-height: 1;
  background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: translateY(12px) scale(.7); transition: opacity .7s var(--hover-ease), transform .9s var(--hover-ease);
}
.case-card:hover, .case-card:focus-visible { color: inherit; }
.case-card:hover .case-card__img, .case-card:focus-visible .case-card__img { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(0,0,0,.75); }
.case-card:hover .case-card__img img, .case-card:focus-visible .case-card__img img { transform: scale(1.07); }
.case-card:hover .case-card__img::before, .case-card:focus-visible .case-card__img::before { opacity: 1; }
.case-card:hover .case-card__img::after, .case-card:focus-visible .case-card__img::after { opacity: 1; transform: translateY(0) scale(1); }
.case-card h3 { margin: 0; font-size: 1.3rem; display: inline-flex; align-items: center; gap: 10px; transition: color .6s var(--hover-ease); }
.case-card h3::after {
  content: "\2192"; font-family: var(--font-body); font-weight: 500; color: var(--accent);
  opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--hover-ease), transform .8s var(--hover-ease);
}
.case-card:hover h3, .case-card:focus-visible h3 { color: var(--accent); }
.case-card:hover h3::after, .case-card:focus-visible h3::after { opacity: 1; transform: translateX(0); }
.case-card span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .case-cards { grid-template-columns: 1fr; } }

/* YouTube facade (privacy-friendly: loads YouTube only after click) */
.yt { position: absolute; inset: 0; border: 0; padding: 0; background: #000; width: 100%; height: 100%; color: #fff; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .9s cubic-bezier(.19, 1, .22, 1), transform 1.6s cubic-bezier(.19, 1, .22, 1); }
.yt:hover img { opacity: 1; transform: scale(1.06); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform .9s cubic-bezier(.19, 1, .22, 1);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.6s infinite;
}
.yt:hover .yt__play { transform: scale(1.12); }
.yt__play svg { width: 26px; height: 26px; margin-left: 4px; }
.yt__note { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: .72rem; color: rgba(255,255,255,.8); text-align: left; text-shadow: 0 1px 8px rgba(0,0,0,.85); }
.case__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* silent preview loop on project cards (data-preview="…mp4"); fades in over the thumbnail once playing */
.yt__loop {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0;
  transition: opacity 1s cubic-bezier(.19, 1, .22, 1), transform 1.6s cubic-bezier(.19, 1, .22, 1);
}
.yt__loop.is-playing { opacity: .9; }
.yt:hover .yt__loop { opacity: 1; transform: scale(1.06); }

/* 7g. PROCESS -------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 34px 26px 10px 0; position: relative; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--accent); line-height: 1; margin-bottom: 16px; display: block; }
.step__kicker { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.step h3 { margin: 6px 0 10px; font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1.2s var(--ease); }
.step.is-visible::before { width: 100%; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
}

/* 7h. TESTIMONIALS --------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.quote__stars { color: var(--accent); letter-spacing: 4px; font-size: 1rem; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.35; letter-spacing: -0.01em; font-weight: 500; }
.quote figcaption { display: flex; flex-direction: column; font-size: .92rem; }
.quote figcaption strong { font-weight: 600; }
.quote figcaption span { color: var(--muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* 7i. FAQ ------------------------------------------------------------------ */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--accent); transition: transform .4s var(--ease); font-family: var(--font-body); font-weight: 300; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; margin: 0; }

/* 7j. CONTACT -------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.4);
  background: var(--accent); color: var(--accent-ink); padding: clamp(40px, 7vw, 90px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start;
}
.cta-band h2 { color: var(--accent-ink); }
.cta-band .eyebrow { color: var(--accent-ink); }
.cta-band p { font-size: 1.08rem; }
.contact-lines { display: grid; gap: 10px; margin-top: 26px; font-weight: 600; font-size: 1.08rem; }
.contact-lines a { display: inline-flex; gap: 12px; align-items: center; }
.contact-lines a:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.contact-lines svg { width: 20px; height: 20px; }
.form { display: grid; gap: 14px; }

/* Contact card (booking + message) — always light so the white Calendly calendar sits in it seamlessly */
.contact-card {
  --bg: #ffffff; --surface: #f5f3ef; --text: #16161a; --muted: #67625b; --line: rgba(22,22,26,.13);
  background: var(--bg); color: var(--text); border-radius: var(--radius); padding: clamp(14px, 2vw, 22px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); display: grid; gap: 18px; align-self: stretch; min-width: 0;
}
.contact-card a { color: var(--text); }
.contact-card .form-status { font-size: .9rem; }
.contact-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface); border-radius: 999px; padding: 4px; }
.contact-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-weight: 600; font-size: .88rem; transition: background .3s, color .3s;
}
.contact-tab svg { width: 17px; height: 17px; }
.contact-tab[aria-selected="true"] { background: var(--text); color: #fff; }
.contact-tab:not([aria-selected="true"]):hover { color: var(--text); }
.contact-panel { padding: 0 clamp(6px, 1.2vw, 12px) clamp(6px, 1.2vw, 12px); min-width: 0; }
.contact-panel[hidden] { display: none; }
.booking-intro { display: grid; justify-items: start; gap: 10px; padding: 8px 0 6px; }
.booking-intro[hidden] { display: none; }
.booking-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); }
[data-theme="volt"] .booking-icon { background: #080d1c; }
.booking-icon svg { width: 26px; height: 26px; }
.booking-intro h3 { margin: 6px 0 0; font-size: clamp(1.4rem, 2vw, 1.75rem); }
.contact-card .booking-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.booking-list { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 10px; }
.booking-list li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.booking-list svg { width: 18px; height: 18px; flex: none; padding: 3px; border-radius: 50%; background: var(--text); color: #fff; }
.booking-btn { margin-top: 6px; }
.contact-card .booking-note { margin: 2px 0 0; font-size: .76rem; color: var(--muted); }
.booking-note a { text-decoration: underline; text-underline-offset: 2px; }
.calendly-frame { margin: 0 calc(clamp(6px, 1.2vw, 12px) * -1); border-radius: calc(var(--radius) * .7); overflow: hidden; background: #fff; }
.calendly-frame iframe { display: block; width: 100%; height: 700px; border: 0; transition: height .35s var(--ease); }
.contact-card .booking-done { display: flex; gap: 10px; align-items: center; margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: #e9f8ef; color: #14532d; font-weight: 600; font-size: .92rem; }
.contact-card .booking-done[hidden] { display: none; }
.booking-done svg { width: 20px; height: 20px; flex: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .02em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .9rem; min-height: 1.2em; margin: 0; }
.form-status.ok { color: #3ecf8e; }
.form-status.err { color: #ff6b6b; }
@media (min-width: 861px) { #kontakt .cta-band > div:first-child, #contact .cta-band > div:first-child { position: sticky; top: calc(var(--header-h) + 30px); } }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  #kontakt .container, #contact .container { padding-inline: 10px; }
  #kontakt .cta-band, #contact .cta-band { padding: 34px 12px 12px; gap: 28px; }
  #kontakt .cta-band > div:first-child, #contact .cta-band > div:first-child { padding-inline: 10px; }
  .contact-card { padding: 8px; gap: 14px; }
  .contact-panel { padding: 0 8px 8px; }
  .calendly-frame { margin: 0 -8px -8px; }
  .booking-btn { width: 100%; white-space: normal; }
  .contact-tab { font-size: .82rem; gap: 6px; white-space: nowrap; min-height: 42px; }
  .contact-tab svg { width: 15px; height: 15px; }
}
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* 8. FOOTER (card style) ---------------------------------------------------
   The footer is a rounded "card" set into the page. Its colours per theme
   are the --footer-* tokens below. */
:root, [data-theme="noir"] { --footer-bg: #f4f1ec; --footer-ink: #121212; --footer-muted: #6c665e; --footer-line: rgba(18,18,18,.12); --footer-accent: #e2580e; --footer-solid: #121212; --footer-solid-ink: #f4f1ec; }
[data-theme="ivory"] { --footer-bg: #1f1813; --footer-ink: #f6f1e9; --footer-muted: #b3a597; --footer-line: rgba(246,241,233,.14); --footer-accent: #ef8a4a; --footer-solid: #f6f1e9; --footer-solid-ink: #1f1813; }
[data-theme="volt"] { --footer-bg: #c8ff3d; --footer-ink: #080d1c; --footer-muted: #3f4b22; --footer-line: rgba(8,13,28,.16); --footer-accent: #080d1c; --footer-solid: #080d1c; --footer-solid-ink: #c8ff3d; }

.site-footer { padding: clamp(20px, 4vw, 48px) clamp(8px, 1.4vw, 18px) clamp(8px, 1.4vw, 18px); background: var(--bg); }
.footer-card {
  max-width: 1520px; margin-inline: auto; background: var(--footer-bg); color: var(--footer-ink);
  border-radius: clamp(18px, 2.4vw, 30px); padding: clamp(28px, 4.5vw, 64px) clamp(20px, 4.5vw, 64px) clamp(20px, 2.5vw, 30px);
}
.footer-card a:hover { color: var(--footer-accent); }
.footer-card ::selection { background: var(--footer-ink); color: var(--footer-bg); }

/* row 1: headline + call to action */
.footer-cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px 60px; align-items: end; padding-bottom: clamp(32px, 4.5vw, 56px); border-bottom: 1px solid var(--footer-line); }
.footer-kicker { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--footer-muted); margin: 0 0 14px; }
.footer-headline { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(1.5rem, 2.9vw, 2.55rem); line-height: 1.08; margin: 0; text-wrap: balance; }
.footer-headline em { font-style: normal; color: var(--footer-accent); }
.footer-cta__actions { justify-self: end; display: grid; gap: 12px; }
.footer-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--footer-line); font-size: .84rem; font-weight: 500; transition: border-color .3s, background .3s, color .3s, transform .35s var(--ease);
}
.footer-pill svg { width: 17px; height: 17px; flex: none; }
.footer-pill:hover { border-color: var(--footer-ink); color: var(--footer-ink) !important; }
.footer-pill--solid { background: var(--footer-solid); color: var(--footer-solid-ink); border-color: var(--footer-solid); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.footer-pill--solid:hover { color: var(--footer-solid-ink) !important; transform: translateY(-2px); }
.footer-pill--solid svg { transition: transform .35s var(--ease); }
.footer-pill--solid:hover svg { transform: translate(2px, -2px); }
.footer-note { font-size: .72rem; color: var(--footer-muted); margin: 0; }

/* row 2: big wordmark + columns */
.footer-main { display: grid; grid-template-columns: 1.15fr 1.5fr; gap: 40px 60px; align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--footer-line); }
.footer-mark { display: inline-block; color: var(--logo-color); line-height: 0; }
.footer-mark:hover { color: var(--logo-color) !important; }
.footer-mark .tbs-logo { height: clamp(57px, 6.8vw, 94px); }
.footer-cols { display: grid; grid-template-columns: .8fr 1.5fr .8fr; gap: 30px; align-self: start; }
.footer-h { font-family: var(--font-body); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--footer-muted); margin: 0 0 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .84rem; }
.footer-list--icons a, .footer-list--icons span { display: inline-flex; align-items: center; gap: 10px; }
.footer-list svg { width: 15px; height: 15px; flex: none; }
.footer-list strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.footer-list small { font-size: .64rem; color: var(--footer-muted); }
.footer-city { font-style: normal; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; background: var(--footer-solid); color: var(--footer-solid-ink); margin-left: 2px; }

/* row 3: copyright + legal */
.footer-bottom { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding-top: 22px; font-size: .75rem; }
.footer-bottom p { margin: 0; margin-right: auto; color: var(--footer-muted); }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-top { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--footer-solid); color: var(--footer-solid-ink); transition: transform .35s var(--ease); }
.footer-top:hover { color: var(--footer-solid-ink) !important; transform: translateY(-3px); }
.footer-top svg { width: 18px; height: 18px; }
.footer-legal { margin: 16px 0 0; font-size: .66rem; line-height: 1.6; color: var(--footer-muted); }

@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .footer-cta { grid-template-columns: 1fr; }
  .footer-cta__actions { justify-self: start; }
}
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .footer-pill { width: 100%; justify-content: center; }
  .footer-bottom p { width: 100%; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 60px 16px 20px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__frame { width: min(1200px, 100%); max-height: 100%; display: grid; place-items: center; transform: scale(.96); transition: transform .45s var(--ease); }
.lightbox.is-open .lightbox__frame { transform: none; }
.lightbox__frame > * { max-width: 100%; max-height: calc(100vh - 100px); border-radius: 12px; }
.lightbox__frame .ratio { width: 100%; aspect-ratio: 16/9; }
.lightbox__frame .ratio--v { width: auto; height: min(82vh, 860px); aspect-ratio: 9/16; }
.lightbox__frame iframe, .lightbox__frame video { width: 100%; height: 100%; border: 0; background: #000; border-radius: 12px; }
.lightbox__close { position: absolute; top: 14px; right: 14px; color: #fff; }

/* Legal pages / prose */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.notice { border: 1px dashed var(--accent); border-radius: 12px; padding: 18px 20px; background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Theme preview panel (only visible with ?preview in the URL) */
.theme-preview {
  position: fixed; right: 16px; bottom: 16px; z-index: 250; display: flex; gap: 6px; align-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); font-size: .8rem;
}
.theme-preview span { padding: 0 8px 0 10px; color: var(--muted); }
.theme-preview button { border: 0; border-radius: 999px; padding: 8px 12px; background: transparent; font-weight: 600; }
.theme-preview button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* 9. ANIMATIONS ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--fade { transform: none; }
.reveal--scale { transform: scale(.96); }
.no-js .reveal { opacity: 1; transform: none; }

.hero [data-hero] { opacity: 0; transform: translateY(30px); animation: heroIn 1.1s var(--ease) forwards; animation-delay: var(--d, .2s); }
.hero .hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .hero__title .line > span { display: block; transform: translateY(105%); animation: lineUp 1.1s var(--ease) forwards; animation-delay: var(--d, .3s); }

@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes lineUp { to { transform: none; } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollcue { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 22px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .case-card__img, .case-card__img img, .case-card__img::before, .case-card__img::after, .case-card h3, .case-card h3::after { transition-duration: .9s !important; }
  .case__media, .yt img, .yt__play { transition-duration: .9s !important; }
  .marquee { animation-duration: 60s !important; animation-iteration-count: infinite !important; }
}

/* 10. UNIFIED HOVER MOTION --------------------------------------------------
   Same smooth feel on every image/video block: slow lift, gentle zoom,
   soft shadow. Uses one easing curve (--hover-ease). */
:root { --hover-ease: cubic-bezier(.19, 1, .22, 1); }
.reveal.is-visible:hover { transition-delay: 0s; } /* no stagger delay when hovering */

/* Service cards */
.service, .service.reveal {
  transition: opacity .9s var(--ease), transform .9s var(--hover-ease), border-color .7s var(--hover-ease), box-shadow .9s var(--hover-ease);
}
.service:hover, .service.reveal.is-visible:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(0,0,0,.6); }
.service__img img { transform: scale(1.001); transition: transform 1.6s var(--hover-ease); }
.service:hover .service__img img { transform: scale(1.07); }

/* Portfolio photos */
.gallery a, .gallery a.reveal {
  isolation: isolate;
  transition: opacity .9s var(--ease), transform .9s var(--hover-ease), box-shadow .9s var(--hover-ease);
}
.gallery a:hover, .gallery a.reveal.is-visible:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(0,0,0,.7); }
.gallery img { transform: scale(1.001); transition: transform 1.6s var(--hover-ease); }
.gallery a:hover img { transform: scale(1.07); }
.gallery a::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.5) 100%);
  opacity: 0; transition: opacity .9s var(--hover-ease);
}
.gallery a:hover::before { opacity: 1; }
.gallery a::after { z-index: 2; transition: opacity .7s var(--hover-ease), transform .9s var(--hover-ease); }

/* Reels */
.reel, .reel.reveal {
  transition: opacity .9s var(--ease), transform .9s var(--hover-ease), box-shadow .9s var(--hover-ease);
}
.reel:hover, .reel.reveal.is-visible:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -26px rgba(0,0,0,.75); }
.reel img { transform: scale(1.001); transition: transform 1.6s var(--hover-ease); }
.reel:hover img { transform: scale(1.07); }
.reel video { transition: opacity .6s var(--hover-ease), transform 1.6s var(--hover-ease); }
.reel:hover video { transform: scale(1.07); }
.reel__play { transition: background .6s var(--hover-ease), color .6s var(--hover-ease), transform .9s var(--hover-ease); }
.reel:hover .reel__play { transform: scale(1.12); }

.reels { padding-top: 14px; margin-top: -10px; } /* headroom so the lift is never clipped */

/* Team photo (not clickable: zoom only) */
.about__media img { transform: scale(1.001); transition: transform 1.8s var(--hover-ease); }
.about__media:hover img { transform: scale(1.04); }

/* keep these gentle hover effects even with "reduce motion" switched on */
@media (prefers-reduced-motion: reduce) {
  .service, .gallery a, .reel, .reel__play, .gallery a::before, .gallery a::after { transition-duration: .9s !important; }
  .service__img img, .gallery img, .reel img, .reel video, .about__media img { transition-duration: 1.6s !important; }
}

/* 11. BUTTON HOVER MOTION ----------------------------------------------------
   Same easing as the image hovers (--hover-ease), smaller lift for buttons. */
.btn, .btn.reveal {
  transition: opacity .9s var(--ease), transform .8s var(--hover-ease), background-color .6s var(--hover-ease),
              color .6s var(--hover-ease), border-color .6s var(--hover-ease), box-shadow .8s var(--hover-ease);
}
.btn:hover, .btn.reveal.is-visible:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -14px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn svg { transition: transform .8s var(--hover-ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost:hover, .btn--ghost.reveal.is-visible:hover { background: color-mix(in srgb, var(--text) 6%, transparent); border-color: var(--text); box-shadow: 0 18px 32px -18px rgba(0,0,0,.6); }
.btn--light:hover { background: rgba(255,255,255,.1); border-color: #fff; box-shadow: 0 18px 32px -18px rgba(0,0,0,.6); }
.btn:active, .btn.reveal.is-visible:active { transform: translateY(-1px) scale(.98); transition-duration: .15s; }

/* round icon buttons */
.icon-btn, .reels-nav button, .footer-top, .socials a {
  transition: transform .8s var(--hover-ease), background-color .6s var(--hover-ease), color .6s var(--hover-ease),
              border-color .6s var(--hover-ease), box-shadow .8s var(--hover-ease);
}
.icon-btn:hover, .reels-nav button:hover, .footer-top:hover, .socials a:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(0,0,0,.55); }
.reels-nav button:hover { box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.icon-btn:active, .reels-nav button:active, .footer-top:active, .socials a:active { transform: translateY(-1px) scale(.95); transition-duration: .15s; }
.reels-nav svg { transition: transform .8s var(--hover-ease); }
.reels-nav button[data-reels-scroll="1"]:hover svg { transform: translateX(2px); }
.reels-nav button[data-reels-scroll="-1"]:hover svg { transform: translateX(-2px); }
.footer-top svg { transition: transform .8s var(--hover-ease); }
.footer-top:hover svg { transform: translateY(-2px); }

/* footer pills */
.footer-pill { transition: transform .8s var(--hover-ease), background-color .6s var(--hover-ease), color .6s var(--hover-ease), border-color .6s var(--hover-ease), box-shadow .8s var(--hover-ease); }
.footer-pill:hover { transform: translateY(-3px); box-shadow: 0 16px 28px -16px rgba(0,0,0,.45); }
.footer-pill--solid svg { transition: transform .8s var(--hover-ease); }
.footer-pill--solid:hover svg { transform: translate(3px, -3px); }
.footer-pill:active { transform: translateY(-1px) scale(.98); transition-duration: .15s; }

/* tabs: smooth colour change only (no lift inside the bar) */
.tab, .contact-tab { transition: background-color .6s var(--hover-ease), color .6s var(--hover-ease), border-color .6s var(--hover-ease); }
.tab:not([aria-selected="true"]):hover { border-color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn svg, .icon-btn, .reels-nav button, .reels-nav svg, .footer-top, .footer-top svg, .socials a,
  .footer-pill, .footer-pill--solid svg, .tab, .contact-tab { transition-duration: .8s !important; }
}

/* 12. SCROLL REVEAL ----------------------------------------------------------
   Every block slides up smoothly as it scrolls into view (main.js adds
   .is-visible, then .rv-done once finished so hover effects take over again).
   Plays also when "reduce motion" is switched on. */
:root { --reveal-ease: cubic-bezier(.16, 1, .3, 1); --reveal-distance: 46px; }
.anim .reveal:not(.is-visible),
.anim .step:not(.is-visible),
.anim .logos:not(.is-visible),
.anim .about__media:not(.is-visible),
.anim .page-hero .container > *:not(.is-visible),
.anim .prose > *:not(.is-visible),
.anim .footer-main:not(.is-visible),
.anim .footer-bottom:not(.is-visible),
.anim .footer-legal:not(.is-visible),
.anim .reels-note:not(.is-visible) {
  opacity: 0; transform: translate3d(0, var(--reveal-distance), 0);
}
.anim .reveal.is-visible:not(.rv-done),
.anim .step.is-visible:not(.rv-done),
.anim .logos.is-visible:not(.rv-done),
.anim .about__media.is-visible:not(.rv-done),
.anim .page-hero .container > *.is-visible:not(.rv-done),
.anim .prose > *.is-visible:not(.rv-done),
.anim .footer-main.is-visible:not(.rv-done),
.anim .footer-bottom.is-visible:not(.rv-done),
.anim .footer-legal.is-visible:not(.rv-done),
.anim .reels-note.is-visible:not(.rv-done) {
  transition: opacity 1.1s var(--reveal-ease), transform 1.4s var(--reveal-ease) !important;
  transition-delay: var(--d, 0s) !important;
}

/* hero intro plays too, even with "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  .hero [data-hero], .hero .hero__title .line > span { animation-duration: 1.1s !important; }
}

/* 13. LOGO -------------------------------------------------------------------
   The original logo artwork (assets/img/logo-tbs.png, 724x342) used as a stencil:
   exact shapes, painted in --logo-color. To replace the logo, overwrite that file
   (transparent PNG) and update the aspect-ratio below if its proportions change. */
:root { --logo-color: #f15731; }                         /* brand orange from the original file */
[data-theme="volt"] { --logo-color: var(--accent); }
[data-theme="volt"] .footer-mark { --logo-color: var(--footer-accent); }
.tbs-logo {
  display: block; width: auto; aspect-ratio: 724 / 342; background-color: currentColor;
  -webkit-mask: url("../img/logo-tbs.png") center / contain no-repeat;
          mask: url("../img/logo-tbs.png") center / contain no-repeat;
}

/* "Ihr Projekt ist das nächste?" band on the projects pages */
.cta-band--next { grid-template-columns: 1fr auto; align-items: center; }
.cta-band--next h2 { margin-bottom: .35em; }
.cta-band__btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); white-space: nowrap; }
@media (max-width: 860px) {
  .cta-band--next { grid-template-columns: 1fr; gap: 26px; padding: 40px 24px; text-align: center; }
  .cta-band--next h2 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); line-height: 1.1; text-wrap: balance; }
  .cta-band__btn { width: 100%; justify-content: center; }
}
