/* M4B.space 2.0 — liquid glass · depth · 3D */
:root {
  --bg: #070707;
  --ink: #F5F1EA;
  --muted: #9B958C;
  --peach: #FFCB9A;
  --peach2: #FFE7CB;
  --glass: rgba(255,255,255,.045);
  --glass-brd: rgba(255,255,255,.09);
  --radius: 22px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  overflow-x: hidden; padding-bottom: 110px;
}
::selection { background: var(--peach); color: #0A0A0A; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1720px; margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; }

/* ambient background orbs for depth */
.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: .5; }
.orb-a { width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(255,203,154,.14), transparent 65%); top: -20vw; right: -15vw; animation: orbFloat 22s ease-in-out infinite alternate; }
.orb-b { width: 45vw; height: 45vw; background: radial-gradient(circle, rgba(255,150,80,.09), transparent 65%); bottom: -18vw; left: -12vw; animation: orbFloat 26s ease-in-out infinite alternate-reverse; }
@keyframes orbFloat { to { transform: translate(6vw, 5vh) scale(1.12); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--peach); margin-bottom: 18px; font-weight: 700;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--peach); }
.h2 { font-size: clamp(32px, 4.6vw, 58px); margin-bottom: 20px; }
.lead { color: var(--muted); font-size: 19px; max-width: 720px; }
.grad { background: linear-gradient(92deg, var(--peach), var(--peach2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- GLASS primitives ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-radius: var(--radius);
}

/* ---------- HERO (full width) ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.033) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.033) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  transform: perspective(900px) rotateX(28deg) scale(1.6) translateY(-6%);
  transform-origin: center 30%;
  animation: gridMove 18s linear infinite;
}
@keyframes gridMove { to { background-position: 0 72px, 72px 0; } }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-size: clamp(46px, 8.4vw, 124px); margin: 18px 0 26px; letter-spacing: -.035em; }
.hero .lead { font-size: clamp(17px, 1.6vw, 22px); max-width: 860px; }
.hero-logo { width: 96px; height: auto; filter: drop-shadow(0 0 24px rgba(255,203,154,.35)); }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.badge {
  border: 1px solid var(--glass-brd); border-radius: 100px; padding: 9px 20px;
  font-size: 14px; color: var(--muted);
  background: var(--glass); backdrop-filter: blur(12px);
  transition: all .3s;
}
.badge:hover { border-color: rgba(255,203,154,.5); color: var(--ink); transform: translateY(-2px); }
.badge b { color: var(--peach); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(120deg, var(--peach), var(--peach2)); color: #0A0A0A; font-weight: 800;
  padding: 17px 34px; border-radius: 100px; border: 0; cursor: pointer;
  font-size: 16px; font-family: var(--font);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 46px rgba(255,203,154,.3); }
.btn-ghost {
  background: var(--glass); color: var(--ink); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--peach); color: var(--peach); box-shadow: none; }
.hero-cta { display: flex; gap: 14px; margin-top: 42px; flex-wrap: wrap; }

/* ---------- TASKBAR ---------- */
.taskbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 18px; z-index: 100;
  display: flex; align-items: center; gap: 4px;
  background: rgba(14,14,14,.6); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--glass-brd); border-radius: 100px;
  padding: 8px; box-shadow: 0 22px 60px rgba(0,0,0,.6);
  max-width: calc(100vw - 24px);
}
.tb-logo { display: flex; align-items: center; padding: 6px 14px 6px 10px; }
.tb-logo img { height: 26px; width: auto; }
.tb-link {
  padding: 10px 16px; border-radius: 100px; font-size: 14.5px; font-weight: 600;
  color: var(--muted); white-space: nowrap; transition: all .2s;
}
.tb-link:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.tb-link.active { color: #0A0A0A; background: linear-gradient(120deg, var(--peach), var(--peach2)); }
.tb-cta { background: linear-gradient(120deg, var(--peach), var(--peach2)); color: #0A0A0A !important; font-weight: 800; margin-left: 4px; }
.tb-cta:hover { transform: scale(1.05); }
.tb-lang { font-size: 13px; font-weight: 800; letter-spacing: .06em; border-left: 1px solid var(--glass-brd); margin-left: 6px; padding-left: 10px; }

/* ---------- DIRECTIONS (glass cards, 3D tilt) ---------- */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; perspective: 1400px; }
.dir-card {
  position: relative; border-radius: 26px; padding: 44px 34px; min-height: 380px;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform .18s ease-out, border-color .35s, box-shadow .35s;
}
.dir-card:hover { border-color: rgba(255,203,154,.55); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 60px rgba(255,203,154,.05); }
.dir-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255,203,154,.13), transparent 45%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.dir-card:hover::before { opacity: 1; }
.dir-num {
  font-size: clamp(64px, 7vw, 110px); font-weight: 800; letter-spacing: -.05em;
  background: linear-gradient(180deg, rgba(255,203,154,.85), rgba(255,203,154,.05));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; transform: translateZ(50px);
}
.dir-icon { font-size: 44px; margin: auto 0 18px; transform: translateZ(40px); }
.dir-card h3 { font-size: 28px; margin-bottom: 10px; transform: translateZ(30px); }
.dir-card p { color: var(--muted); font-size: 15.5px; transform: translateZ(20px); }
.dir-arrow { margin-top: 18px; color: var(--peach); font-weight: 700; font-size: 14px; letter-spacing: .08em; transform: translateZ(30px); }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 34px 28px; transition: transform .3s, border-color .3s; }
.stat:hover { transform: translateY(-5px); border-color: rgba(255,203,154,.45); }
.stat b { display: block; font-size: clamp(36px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- SERVICES ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; perspective: 1200px; }
.svc { padding: 30px 26px; transition: all .3s; transform-style: preserve-3d; }
.svc:hover { transform: translateY(-6px) rotateX(4deg); border-color: rgba(255,203,154,.5); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.svc .ic { font-size: 30px; margin-bottom: 16px; }
.svc h3 { font-size: 19px; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 14.5px; }

/* ---------- CASES ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.case {
  overflow: hidden; transition: all .35s;
}
.case:hover { border-color: rgba(255,203,154,.5); transform: translateY(-6px); box-shadow: 0 26px 70px rgba(0,0,0,.5); }
.case-img { height: 250px; background-size: cover; background-position: center; transition: transform .6s; }
.case:hover .case-img { transform: scale(1.05); }
.case-body { padding: 28px; }
.case-tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--peach); font-weight: 700; }
.case h3 { font-size: 21px; margin: 10px 0 10px; }
.case p { color: var(--muted); font-size: 14.5px; }
.case-result { margin-top: 18px; padding: 15px 18px; border-radius: 14px; background: rgba(255,203,154,.1); border: 1px solid rgba(255,203,154,.22); color: var(--peach); font-weight: 700; font-size: 14.5px; }
.case-more { max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.case.open .case-more { max-height: 1500px; }
.case-toggle { margin-top: 16px; color: var(--peach); font-size: 14px; font-weight: 700; background: none; border: 0; cursor: pointer; font-family: var(--font); }
.case ul { margin: 16px 0 0 18px; color: var(--muted); font-size: 14.5px; }
.case ul li { margin-bottom: 7px; }

/* NDA */
.case.nda { background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 14px, transparent 14px 28px), rgba(255,255,255,.03); position: relative; }
.classified {
  display: inline-block; padding: 5px 13px; border: 1px dashed rgba(255,203,154,.6);
  border-radius: 7px; color: var(--peach); font-size: 11.5px; letter-spacing: .3em;
  text-transform: uppercase; font-weight: 800; margin-bottom: 14px;
  animation: glitch 3.5s infinite steps(1);
}
@keyframes glitch {
  0%, 91%, 100% { transform: none; opacity: 1; }
  92% { transform: translateX(2px) skewX(-8deg); opacity: .7; }
  94% { transform: translateX(-3px); opacity: .9; }
  96% { transform: translateX(1px) skewX(6deg); }
}
.redacted { background: rgba(255,255,255,.09); color: transparent; border-radius: 4px; user-select: none; }

/* ---------- CLIENTS MARQUEE ---------- */
.marquee { overflow: hidden; padding: 30px 0; margin-top: 50px; border-top: 1px solid var(--glass-brd); border-bottom: 1px solid var(--glass-brd); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.client-name { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; color: rgba(255,255,255,.26); white-space: nowrap; transition: color .3s, text-shadow .3s; letter-spacing: .02em; }
.client-name:hover { color: var(--peach); text-shadow: 0 0 30px rgba(255,203,154,.5); }

/* ---------- TEAM CAROUSEL ---------- */
.team-scroll {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 26px; margin-top: 44px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.team-scroll::-webkit-scrollbar { display: none; }
.member {
  flex: 0 0 320px; scroll-snap-align: start; overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.member:hover { transform: translateY(-8px); border-color: rgba(255,203,154,.5); box-shadow: 0 28px 70px rgba(0,0,0,.55); }
.member img { width: 100%; height: 340px; object-fit: cover; filter: grayscale(.4); transition: filter .4s, transform .6s; }
.member:hover img { filter: grayscale(0); transform: scale(1.04); }
.member div { padding: 22px; }
.member b { font-size: 19px; }
.member span { display: block; color: var(--peach); font-size: 13.5px; margin-top: 5px; font-weight: 600; }
.member p { color: var(--muted); font-size: 14px; margin-top: 9px; }
.team-hint { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }

/* ---------- GLOBE ---------- */
.globe-wrap { position: relative; height: 520px; margin-top: 40px; display: flex; align-items: center; justify-content: center; }
#globe { width: min(560px, 90vw); height: min(560px, 90vw); cursor: grab; }
#globe:active { cursor: grabbing; }
.globe-ring {
  position: absolute; width: min(640px, 96vw); height: min(640px, 96vw); border-radius: 50%;
  border: 1px dashed rgba(255,203,154,.18); pointer-events: none;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- GALLERY ---------- */
.gallery { columns: 3; column-gap: 16px; margin-top: 44px; }
.gallery img {
  width: 100%; margin-bottom: 16px; border-radius: 18px; cursor: zoom-in;
  border: 1px solid var(--glass-brd); transition: transform .35s, border-color .35s, box-shadow .35s; break-inside: avoid;
}
.gallery img:hover { transform: scale(1.02); border-color: rgba(255,203,154,.55); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,4,4,.95); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.on { display: flex; animation: fadeIn .25s; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; }
.lightbox .close { position: absolute; top: 24px; right: 30px; font-size: 36px; color: var(--ink); cursor: pointer; background: none; border: 0; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- PROCESS ---------- */
.steps { margin-top: 44px; }
.step { display: flex; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--glass-brd); transition: all .3s; }
.step:hover { background: rgba(255,255,255,.025); padding-left: 16px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 38px; font-weight: 800; min-width: 70px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--peach), rgba(255,203,154,.15));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.steps { counter-reset: step; }

/* ---------- CTA / FORM ---------- */
.cta {
  border-radius: 30px; padding: clamp(36px, 5vw, 76px); position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(255,203,154,.1), transparent 55%), rgba(255,255,255,.03);
}
.cta::before {
  content: ""; position: absolute; inset: -2px; border-radius: 32px; padding: 1px;
  background: linear-gradient(130deg, rgba(255,203,154,.5), transparent 40%, transparent 60%, rgba(255,203,154,.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.cta h2 { font-size: clamp(28px, 4vw, 50px); margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.form-grid .full { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--glass-brd);
  border-radius: 15px; padding: 16px 19px; color: var(--ink);
  font-family: var(--font); font-size: 15.5px; transition: border-color .25s, box-shadow .25s;
  backdrop-filter: blur(8px);
}
input:focus, textarea:focus { outline: none; border-color: var(--peach); box-shadow: 0 0 0 4px rgba(255,203,154,.12); }
input::placeholder, textarea::placeholder { color: #6d675f; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; accent-color: var(--peach); }
.consent a { color: var(--peach); text-decoration: underline; }
.form-ok { display: none; margin-top: 20px; color: var(--peach); font-weight: 700; }
.contacts-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--glass-brd); padding: 48px 0 32px; color: var(--muted); font-size: 14px; position: relative; z-index: 2; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--ink); font-size: 15px; margin-bottom: 12px; }
footer a:hover { color: var(--peach); }
footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--glass-brd); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
footer .legal a { margin-right: 18px; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(44px) scale(.985); transition: opacity .9s cubic-bezier(.2,.65,.3,1), transform .9s cubic-bezier(.2,.65,.3,1); }
.reveal.vis { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-56px); transition: all .9s cubic-bezier(.2,.65,.3,1); }
.reveal-l.vis { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(56px); transition: all .9s cubic-bezier(.2,.65,.3,1); }
.reveal-r.vis { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* cookies */
.cookies {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 98px; z-index: 150;
  padding: 18px 22px; max-width: 540px; width: calc(100vw - 40px);
  display: none; gap: 14px; align-items: center; font-size: 14px; color: var(--muted);
}
.cookies.on { display: flex; }
.cookies .btn { padding: 10px 20px; font-size: 14px; }

/* docs */
.doc { max-width: 860px; }
.doc h2 { font-size: 26px; margin: 36px 0 14px; }
.doc h3 { font-size: 20px; margin: 26px 0 10px; }
.doc p, .doc li { color: var(--muted); margin-bottom: 12px; font-size: 15.5px; }
.doc ul { margin-left: 20px; }
.doc b { color: var(--ink); }

.page-hero { padding: 150px 0 70px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 68px); }
.page-hero .lead { margin-top: 16px; }

@media (max-width: 960px) {
  .dirs, .svc-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { padding-bottom: 92px; font-size: 16px; }
  .section { padding: 70px 0; }
  .dirs, .svc-grid, .cases, .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 1; }
  .tb-link { display: none; }
  .tb-link.tb-always, .tb-cta, .tb-lang { display: block; }
  .taskbar { bottom: 12px; }
  .member { flex-basis: 270px; }
  .globe-wrap { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; }
}
