/* BrandIt — base styles.
   index.html defines these tokens on :root and styles its own layout:
   --bg --surface --ink --muted --line --accent --accent-ink --glow --radius --font-display --font-body */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
/* Native scrolling only: no scroll-jacking, no overflow on html/body, so phones keep their momentum (inertia) scrolling. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.bi-page { overflow-x: clip; }
html.bi-locked, html.bi-menu-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.bi-select { user-select: all; }
.bi-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 90; }

/* Placeholder logo (replaced by the real logo file later) */
.bi-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 15px/1 var(--font-body); letter-spacing: .22em; }
.bi-logo i { width: 30px; height: 30px; border-radius: 8px; border: 2px dashed currentColor; opacity: .75; flex: none; }
.bi-logo--xl { font-size: clamp(48px, 12vw, 170px); letter-spacing: .08em; gap: .3em; }
.bi-logo--xl i { width: .8em; height: .8em; border-radius: .18em; border-width: .05em; }
.bi-logo img { height: 36px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.bi-logo--xl img { height: .9em; max-width: 80vw; }
.bi-logo__text { letter-spacing: .04em; font-family: var(--font-display); }

/* Buttons */
.bi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .25s, background .25s, border-color .25s, color .25s; }
.bi-btn:active { transform: scale(.97); }
.bi-btn--primary { background: var(--accent); color: var(--accent-ink); }
.bi-btn--ghost { border-color: var(--line); background: transparent; }
.bi-btn--ghost:hover { border-color: var(--ink); }

/* Language toggle */

/* Burger */
.bi-burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: none; position: relative; }
.bi-burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.bi-burger span:first-child { top: 18px; } .bi-burger span:last-child { top: 26px; }
.bi-burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.bi-burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* Video tiles (base) */
.bi-video { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface); overflow: hidden; text-align: left; color: #fff; border-radius: var(--radius); aspect-ratio: 9 / 12; max-width: 100%; }
.bi-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.bi-video:hover img { transform: scale(1.05); }
.bi-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.75)); }
.bi-video__play { position: absolute; top: 14px; right: 14px; z-index: 1; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .25s, transform .25s; }
.bi-video__play svg { width: 20px; height: 20px; margin-left: 2px; }
.bi-video:hover .bi-video__play { background: var(--accent); transform: scale(1.08); }
.bi-video__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; display: grid; gap: 2px; }
.bi-video__meta small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.bi-video__meta b { display: none; font-size: 15px; line-height: 1.25; font-weight: 600; } /* posters already carry their headline */

/* Team member (base) */
.bi-member__photo { position: relative; overflow: hidden; background: var(--surface); }
.bi-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.bi-member__initial { display: grid; place-items: center; height: 100%; font-family: var(--font-display); font-size: 80px; color: var(--glow); }
.bi-member__count, .bi-member__credit { display: none; }
.bi-member__name { margin: 0; font-family: var(--font-display); line-height: 1; }
.bi-member__role { margin: 6px 0 0; color: var(--glow); font-weight: 600; font-size: 14px; }
.bi-member__bio { margin: 12px 0 0; color: var(--muted); }
.bi-member__focus { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bi-member__focus li { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.bi-member__social { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--glow); text-decoration: none; }

/* Carousel (base) */
.bi-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bi-carousel__track::-webkit-scrollbar { display: none; }
.bi-carousel__track > * { scroll-snap-align: start; min-width: 0; }
.bi-carousel__controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.bi-carousel__dots { display: flex; }
.bi-carousel__dots button { width: 40px; height: 44px; border: 0; background: none; display: grid; place-items: center; padding: 0; }
.bi-carousel__dots button::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--line); transition: width .35s, background .3s; }
.bi-carousel__dots button[aria-current="true"]::before { width: 28px; background: var(--glow); }
.bi-carousel__arrows { display: flex; gap: 10px; }
.bi-carousel__arrows button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 18px; transition: background .25s, opacity .25s; }
.bi-carousel__arrows button:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bi-carousel__arrows button:disabled { opacity: .3; cursor: default; }

/* Photos (base) */
.bi-photo { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.bi-photo img { width: 100%; height: 100%; object-fit: cover; }
.bi-photo figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* Placeholder art: brand gradients with an icon, varied per tile through --a / --x / --y. */
.bi-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; overflow: hidden;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  background:
    radial-gradient(60% 50% at var(--x, 30%) var(--y, 30%), color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%),
    radial-gradient(55% 45% at calc(100% - var(--x, 30%)) 88%, color-mix(in srgb, var(--glow) 40%, transparent), transparent 70%),
    linear-gradient(var(--a, 160deg), var(--surface), color-mix(in srgb, var(--accent) 25%, var(--bg))); }
.bi-ph svg { width: 34px; height: 34px; opacity: .85; }
.bi-ph small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.bi-ph--person { display: flex; align-items: flex-end; justify-content: center; }
.bi-ph--person svg { width: 72%; height: auto; opacity: .45; }
.bi-video .bi-ph { transition: transform .8s cubic-bezier(.2,.7,.1,1); }
.bi-video:hover .bi-ph { transform: scale(1.05); }

/* Services (base) */
.bi-service__t { margin: 0; font-family: var(--font-display); }
.bi-service__d { margin: 8px 0 0; color: var(--muted); }

/* Form */
.bi-form { display: grid; gap: 18px; min-width: 0; }
.bi-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.bi-tabs button { border: 0; background: none; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .25s, color .25s; }
.bi-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.bi-form__panel { display: grid; gap: 16px; }
.bi-step { display: grid; gap: 16px; }
.bi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bi-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.bi-field__label { font-size: 13px; font-weight: 500; color: var(--muted); padding: 0; }
.bi-input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: none; transition: border-color .25s; }
.bi-input:focus { border-color: var(--glow); }
textarea.bi-input { resize: vertical; min-height: 110px; }
.bi-input::placeholder { color: var(--muted); opacity: .7; }
.bi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bi-chip { cursor: pointer; }
.bi-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bi-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .2s, border-color .2s, color .2s; }
.bi-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bi-chip input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: 2px; }
.bi-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 10px; }
.bi-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.bi-consent a { color: var(--ink); }
.is-invalid.bi-input, .is-invalid .bi-chip span { border-color: #ff6b8a; }
.bi-consent.is-invalid { outline: 1px solid #ff6b8a; outline-offset: 4px; }
.bi-form__error { margin: 0; min-height: 1.2em; color: #ff8fa6; font-size: 14px; }
.bi-form__error:empty { display: none; }
.bi-progress { display: grid; gap: 8px; }
.bi-progress__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bi-progress__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bi-progress__bar i { display: block; height: 100%; background: var(--glow); transition: width .4s; }
.bi-form__nav { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.bi-form__nav .bi-btn { flex: 1 1 140px; }
.bi-form__done { text-align: center; padding: 24px 8px; display: grid; justify-items: center; gap: 8px; outline: none; }
.bi-form__done h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 32px; }
.bi-form__done p { margin: 0; max-width: 40ch; }
.bi-form__check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.bi-form__check svg { width: 30px; height: 30px; }
.bi-form__demo { font-size: 13px; color: var(--muted); padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; margin: 8px 0 !important; }

/* Footer legal links */
[data-bi="legal-links"] { display: flex; flex-wrap: wrap; gap: 6px 18px; }
[data-bi="legal-links"] a { font-size: 13px; color: var(--muted); text-decoration: none; }
[data-bi="legal-links"] a:hover { color: var(--ink); text-decoration: underline; }
[data-bi="company"] { font-size: 12px; color: var(--muted); margin: 0; }

/* Dialogs */
.bi-dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.bi-dialog::backdrop { background: rgba(4, 2, 14, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bi-dialog[open] { display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.bi-x { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; }
.bi-vplayer { width: min(420px, 100%); max-height: 100%; display: grid; gap: 12px; }
.bi-vplayer video, .bi-vplayer__ph { width: 100%; aspect-ratio: 9 / 12; max-height: 72vh; border-radius: 20px; background: #000; object-fit: cover; }
.bi-vplayer__ph { position: relative; overflow: hidden; }

.bi-vplayer__pulse { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); animation: bi-pulse 1.8s infinite; }
.bi-vplayer__pulse svg { width: 30px; height: 30px; margin-left: 3px; }
@keyframes bi-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 28px transparent; } }
.bi-vplayer__meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; color: #fff; }
.bi-vplayer__meta small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.bi-vplayer__meta b { font-size: 17px; }
.bi-vplayer__meta p { margin: 6px 0 0; font-size: 13px; opacity: .75; }
.bi-legal { width: min(760px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.bi-legal header { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.bi-legal nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.bi-legal nav button { white-space: nowrap; border: 0; background: none; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bi-legal nav button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.bi-legal__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px clamp(18px, 4vw, 40px) 36px; }
.bi-legal__body h2 { font-family: var(--font-display); margin: 0 0 12px; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.bi-legal__body h3 { font-size: 16px; margin: 22px 0 6px; }
.bi-legal__body p { margin: 0; color: var(--muted); font-size: 15px; max-width: 65ch; }
.bi-legal__draft { font-size: 13px !important; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line); }

/* Cookie banner */
.bi-cookies { position: fixed; z-index: 70; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin-inline: auto; display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.35); font-size: 14px; }
.bi-cookies p { margin: 0; color: var(--muted); }
.bi-cookies a { color: var(--ink); }
.bi-cookies div { display: flex; gap: 8px; }
.bi-cookies button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: none; font-weight: 600; font-size: 14px; }
.bi-cookies button.is-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

@media (max-width: 900px) { .bi-burger { display: block; } }
@media (max-width: 560px) { .bi-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
