/* ==========================================================================
   MGBIT Solutions — Swiss Architectural Print & 3D Scroll-Film Studio
   100% Distinct Design: Chalk-White (#FAF9F7), Concrete (#ECEAE4), Ink (#111015),
   MGBIT Signature Crimson (#E11D62). Horizontal Split-Matte Preloader,
   Space Grotesk + Playfair Display Italic + JetBrains Mono.
   ========================================================================== */

:root {
  --chalk: #faf9f7;
  --paper: #ffffff;
  --concrete: #eceae4;
  --ink: #111015;
  --ink-soft: #1b1922;
  --ink-sec: #524f5d;
  --ink-muted: #7f7b8a;

  --crimson: #e11d62;
  --crimson-dark: #be1250;
  --crimson-glow: rgba(225, 29, 98, 0.34);

  --rule: rgba(17, 16, 21, 0.12);
  --rule-strong: rgba(17, 16, 21, 0.25);
  --rule-dark: rgba(250, 249, 247, 0.14);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--ink);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-display);
  background: var(--chalk);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   HORIZONTAL SPLIT-MATTE CINEMA PRELOADER (Top & Bottom Parting)
   ========================================================================== */
.matte-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.matte-loader.is-gone {
  visibility: hidden;
  pointer-events: none;
}

.matte-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #100f14;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.matte-top { top: 0; border-bottom: 1px solid rgba(225, 29, 98, 0.35); }
.matte-bottom { bottom: 0; border-top: 1px solid rgba(225, 29, 98, 0.35); }

.matte-loader.is-done .matte-top { transform: translate3d(0, -102%, 0); }
.matte-loader.is-done .matte-bottom { transform: translate3d(0, 102%, 0); }

.matte-core {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  color: #faf9f7;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-expo);
}

.matte-loader.is-done .matte-core {
  opacity: 0;
  transform: scale(0.96);
}

.matte-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--crimson);
}

.matte-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.matte-num span { color: var(--crimson); }

.matte-bar {
  width: min(260px, 64vw);
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.matte-fill {
  height: 100%;
  width: 0%;
  background: var(--crimson);
  transition: width 0.12s ease;
}

.matte-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.58);
}

/* ==========================================================================
   ADAPTIVE SWISS HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 180%;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(16, 15, 20, 0.62), rgba(16, 15, 20, 0));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.site-header.is-past-film {
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}

.site-header.is-past-film::before { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--crimson);
}

.brand-word {
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.site-header.is-past-film .brand-word {
  color: var(--ink);
  text-shadow: none;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
  transition: color 0.2s ease;
}

.site-header.is-past-film .nav-links a {
  color: var(--ink-sec);
  text-shadow: none;
}

.nav-links a:hover,
.site-header.is-past-film .nav-links a:hover {
  color: var(--crimson);
}

/* Confident Swiss Buttons */
.btn-crimson {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.6rem;
  border-radius: 4px;
  border: 1px solid var(--crimson);
  background: var(--crimson);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 26px -8px var(--crimson-glow);
  transition: transform 0.25s var(--ease-expo), background-color 0.2s ease;
}

.btn-crimson:hover {
  background: var(--crimson-dark);
  transform: translateY(-2px);
}

.btn-crimson--sm {
  padding: 0.58rem 1.05rem;
  font-size: 0.66rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(17, 16, 21, 0.35);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}

.btn-ink-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.3rem;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ink-outline:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}

/* ==========================================================================
   600vh SCROLL-FILM STAGE (DESKTOP 1280p + MOBILE 9:16)
   ========================================================================== */
.film-scroll {
  position: relative;
  height: 600vh;
  background: var(--ink);
}

.film-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

#film-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.film-stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(17, 16, 21, 0.75));
  z-index: 2;
}

.beats-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.beat {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(4.5rem, 12vh, 8rem);
  max-width: 760px;
  color: #ffffff;
  opacity: 0;
  will-change: opacity, transform;
}

.beat--hero {
  bottom: auto;
  top: 50%;
  transform: translate3d(0, -50%, 0);
}

.beat::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -65% -28% -65% -16%;
  background: radial-gradient(62% 58% at 24% 50%, rgba(16, 15, 20, 0.78), rgba(16, 15, 20, 0.45) 50%, transparent 80%);
  pointer-events: none;
}

.beat-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff7aa8;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.beat h1 {
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 1.15rem;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.55);
}

.beat h2 {
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.beat em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: #ff7aa8;
}

.beat p {
  font-size: clamp(0.98rem, 1.3vw, 1.16rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.6);
}

.beat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.film-hud {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.4rem;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  pointer-events: none;
}

.film-chapter-code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.film-progress-track {
  flex: 1;
  max-width: 320px;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.film-progress-fill {
  width: 100%;
  height: 100%;
  background: var(--crimson);
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   STATS BAR + CAPABILITIES TICKER
   ========================================================================== */
.stats-strip {
  background: var(--ink);
  color: #faf9f7;
  border-bottom: 1px solid var(--rule-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-box {
  padding: 2.1rem 1.25rem;
  border-right: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

@media (min-width: 768px) {
  .stat-box { border-bottom: none; }
  .stat-box:last-child { border-right: none; }
}

.stat-val {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-val span { color: var(--crimson); }

.stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 249, 247, 0.65);
  margin-top: 0.4rem;
}

.ticker {
  overflow: hidden;
  background: var(--concrete);
  border-bottom: 1px solid var(--rule);
  padding-block: 0.95rem;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 2.25rem;
  animation: tickerRun 28s linear infinite;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-sec);
  display: inline-flex;
  align-items: center;
  gap: 2.25rem;
}

.ticker-item::after {
  content: '/';
  color: var(--crimson);
  font-weight: 700;
}

@keyframes tickerRun {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   SWISS EDITORIAL SECTIONS
   ========================================================================== */
.swiss-sec {
  padding-block: clamp(4.5rem, 8.5vw, 7.5rem);
  border-bottom: 1px solid var(--rule);
}

.swiss-sec--dark {
  background: var(--ink);
  color: #faf9f7;
  border-bottom-color: var(--rule-dark);
}

.swiss-sec--concrete {
  background: var(--concrete);
}

.swiss-sec .wrap > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-expo), transform 0.85s var(--ease-expo);
}

.swiss-sec.in .wrap > * { opacity: 1; transform: none; }
.swiss-sec.in .wrap > *:nth-child(2) { transition-delay: 0.08s; }
.swiss-sec.in .wrap > *:nth-child(3) { transition-delay: 0.16s; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.sec-h2 {
  font-size: clamp(2.15rem, 4.5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.sec-h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--crimson);
}

.sec-p {
  font-size: 1.04rem;
  color: var(--ink-sec);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.swiss-sec--dark .sec-p { color: rgba(250, 249, 247, 0.72); }

/* 6-Card Swiss Hairline Matrix (What We Help You Solve) */
.solve-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

@media (min-width: 720px) {
  .solve-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .solve-grid { grid-template-columns: repeat(3, 1fr); }
}

.solve-card {
  padding: 2rem 1.75rem;
  background: var(--paper);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.25s ease;
}

.solve-card:hover { background: var(--chalk); }

.solve-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--crimson);
  display: block;
  margin-bottom: 1rem;
}

.solve-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.solve-card p {
  font-size: 0.92rem;
  color: var(--ink-sec);
}

/* Unified 2x2 Portfolio Showcase (Zero Redundancy + Hover-to-Webpage Cross-Fade) */
.works-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

@media (min-width: 820px) {
  .works-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Live Auto-Scrolling Webpage Portal + 3D Cursor Tilt + Dynamic Glass Light Sheen */
.work-item {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.1) 32%,
    transparent 65%
  );
  transition: opacity 0.35s ease;
}

.work-item:hover .card-sheen {
  opacity: 1;
}

/* Exact 3D Perspective-Mapped Screen Portal (only the laptop/monitor screen animates!) */
.screen-quad-portal {
  position: absolute;
  left: 0;
  top: 0;
  width: 600px;
  height: 375px;
  transform-origin: 0 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: #111015;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.work-item--scroll:hover .screen-quad-portal,
.work-item--scroll:focus-within .screen-quad-portal,
.work-item--mgbit:hover .screen-quad-portal,
.work-item--mgbit:focus-within .screen-quad-portal {
  opacity: 1;
}

.scene-scroll-img {
  width: 100%;
  height: auto;
  display: block;
  transform: translate3d(0, 0, 0);
  transition: transform 0.9s var(--ease-expo);
  will-change: transform;
}

.work-item--scroll:hover .scene-scroll-img--tall,
.work-item--scroll:focus-within .scene-scroll-img--tall {
  transition: transform 8.5s cubic-bezier(0.25, 0.08, 0.25, 1) 0.2s;
  transform: translate3d(0, -75%, 0);
}

.work-item--scroll:hover .scene-scroll-img--med,
.work-item--scroll:focus-within .scene-scroll-img--med {
  transition: transform 7.5s cubic-bezier(0.25, 0.08, 0.25, 1) 0.2s;
  transform: translate3d(0, -68%, 0);
}

.scene-mgbit-anim {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: transform 0.35s var(--ease-expo), border-color 0.25s ease, box-shadow 0.35s var(--ease-expo);
  cursor: pointer;
}

.work-item:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 22px 44px -24px rgba(17, 16, 21, 0.28);
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: var(--chalk);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.browser-dots {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rule-strong);
}

.work-item:hover .browser-dots span:first-child { background: var(--crimson); }

.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.browser-cta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.work-item:hover .browser-cta {
  color: var(--crimson);
}

.work-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border: 1px solid var(--rule);
}

/* Photorealistic Editorial Table & Coffee Showcase Frames */
.scene-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--concrete);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.scene-thumb > img,
.scene-zoom-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.75s var(--ease-expo);
}

.scene-zoom-wrap > img.scene-base-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-thumb > img {
  object-fit: cover;
  display: block;
}

.work-item:hover .scene-thumb > img,
.work-item:hover .scene-zoom-wrap {
  transform: scale(1.035);
}

/* Pixel-exact animated screen portal inside the photographed Ayala MacBook */
.ayala-screen-portal {
  position: absolute;
  left: 31.08%;
  top: 29.38%;
  width: 37.83%;
  height: 42.58%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  background: #141d19;
}

.work-item--animated:hover .ayala-screen-portal,
.work-item--animated:focus-within .ayala-screen-portal {
  opacity: 1;
}

.ayala-screen-portal .ayala-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ayala-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 38%, transparent 52%);
  pointer-events: none;
  z-index: 5;
}

.ayala-screen-portal .ayala-mini-rail { width: 12px; gap: 0.2rem; font-size: 0.34rem; }
.ayala-screen-portal .ayala-mini-ph { bottom: 3px; font-size: 0.28rem; }
.ayala-screen-portal .ayala-mini-topbar { top: 4px; right: 5px; }
.ayala-screen-portal .ayala-mini-btn { padding: 0.12rem 0.28rem; font-size: 0.28rem; }
.ayala-screen-portal .ayala-mini-caption { left: 17px; right: 6px; bottom: 14px; }
.ayala-screen-portal .ayala-mini-kicker { font-size: 0.3rem; }
.ayala-screen-portal .ayala-mini-title { font-size: 0.62rem; }
.ayala-screen-portal .ayala-mini-hud { left: 12px; padding: 3px 5px; font-size: 0.28rem; }
.ayala-screen-portal .ayala-mini-bar { width: 36px; height: 1.5px; }

.sample-photo-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  border: 1px solid var(--rule);
  margin-bottom: 0.25rem;
  background: var(--concrete);
}

.sample-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-expo);
}

.sample-card:hover .sample-photo-thumb img {
  transform: scale(1.05);
}

/* 3D Workstation Laptop + Floating Mobile Phone on Real Coffee-Table Scenes */
.scene--office { background-image: url('assets/desk-office.jpg'); }
.scene--home   { background-image: url('assets/desk-home.jpg'); }
.scene--garden { background-image: url('assets/desk-garden.jpg'); }
.scene--cafe   { background-image: url('assets/desk-cafe.jpg'); }

.device-stage {
  position: relative;
  padding: 2.2rem 1.25rem 1.65rem;
  background-color: #eceae4;
  background-size: cover;
  background-position: center bottom;
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  perspective: 1100px;
}

.device-stage--lead {
  padding: 2.8rem 1.5rem 2.15rem;
}

.device-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 16, 21, 0.04) 0%, rgba(17, 16, 21, 0.14) 100%);
  pointer-events: none;
}

.device-stage::after {
  content: '';
  position: absolute;
  left: 19%;
  right: 21%;
  bottom: 1.25rem;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(12, 10, 8, 0.58) 0%, rgba(12, 10, 8, 0.22) 55%, transparent 78%);
  pointer-events: none;
  z-index: 1;
}

.laptop-3d {
  position: relative;
  width: 66%;
  max-width: 440px;
  transform: rotateX(2deg) translateY(2px);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-expo);
  z-index: 2;
}

.work-item:hover .laptop-3d {
  transform: rotateX(0deg) translateY(-4px) scale(1.03);
}

.laptop-lid {
  position: relative;
  background: linear-gradient(145deg, #25242c 0%, #111015 100%);
  padding: 10px 10px 12px;
  border-radius: 12px 12px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 44px -20px rgba(17, 16, 21, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.laptop-cam {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a3946;
  margin: 0 auto 6px;
}

.laptop-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111015;
  border-radius: 4px;
}

.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease-expo);
}

.work-item:hover .laptop-screen img {
  transform: scale(1.03);
}

.laptop-base {
  position: relative;
  width: 110%;
  margin-left: -5%;
  height: 12px;
  background: linear-gradient(180deg, #dcd9d1 0%, #b7b3a9 55%, #8d8980 100%);
  border-radius: 2px 2px 10px 10px;
  box-shadow: 0 10px 18px -6px rgba(17, 16, 21, 0.35);
}

.laptop-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 4px;
  background: #9a968d;
  border-radius: 0 0 4px 4px;
}

/* Companion Floating 3D Mobile Phone resting on table right of laptop */
.phone-3d {
  position: absolute;
  right: 8%;
  bottom: 1.45rem;
  width: 17%;
  max-width: 92px;
  min-width: 60px;
  aspect-ratio: 9 / 19;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(155deg, #27262f 0%, #0e0d12 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    -8px 16px 28px -8px rgba(12, 10, 8, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotateY(-10deg) rotateZ(1.5deg) translateY(0);
  transition: transform 0.6s var(--ease-expo);
  z-index: 4;
}

.work-item:hover .phone-3d {
  transform: rotateY(-4deg) rotateZ(0deg) translateY(-8px) scale(1.04);
}

.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4px;
  border-radius: 99px;
  background: #0b0a0e;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  overflow: hidden;
  background: #111015;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.75s var(--ease-expo);
}

.work-item:hover .work-thumb img { transform: scale(1.03); }

/* Authentic Ayala Land Premier Live Mini-Browser Overlay */
.work-thumb--ayala img.ayala-frame-img {
  object-position: center center;
  transition: transform 0.55s var(--ease-expo);
}

.work-item--animated:hover .work-thumb--ayala img.ayala-frame-img {
  transform: scale(1.045);
}

.ayala-mini-rail {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 24px;
  background: rgba(246, 243, 236, 0.96);
  border-right: 1px solid rgba(28, 36, 31, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.52rem;
  color: #5c635d;
  z-index: 3;
  pointer-events: none;
}

.ayala-mini-ph {
  position: absolute;
  bottom: 6px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.08em;
}

.ayala-mini-topbar {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 3;
  pointer-events: none;
}

.ayala-mini-btn {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: rgba(20, 29, 25, 0.9);
  color: #f6f3ec;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}

.ayala-mini-caption {
  position: absolute;
  left: 34px;
  right: 14px;
  bottom: 24px;
  z-index: 3;
  pointer-events: none;
  color: #faf7f0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
  transition: transform 0.35s var(--ease-expo);
}

.work-item--animated:hover .ayala-mini-caption {
  transform: translateY(-2px);
}

.ayala-mini-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: #d8be89;
  margin-bottom: 2px;
}

.ayala-mini-title {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.1;
}

.ayala-mini-hud {
  position: absolute;
  left: 24px;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  background: linear-gradient(to top, rgba(16, 22, 19, 0.85), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  color: rgba(246, 243, 236, 0.82);
}

.ayala-mini-bar {
  width: 68px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  flex-shrink: 0;
}

.ayala-mini-fill {
  width: 45%;
  height: 100%;
  background: #c9a66b;
  transition: width 0.14s linear;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.work-item h3 { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em; }
.work-item p { font-size: 0.92rem; color: var(--ink-sec); }

.work-link-pill {
  margin-top: auto;
  padding-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.2s ease;
}

.work-item:hover .work-link-pill { color: var(--crimson); }

/* Sample Websites Quick Directory */
.sample-showcase-block {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule-strong);
}

.sample-showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.sample-showcase-h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .sample-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .sample-grid { grid-template-columns: repeat(4, 1fr); }
}

.sample-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: transform 0.28s var(--ease-expo), border-color 0.2s ease, background-color 0.2s ease;
}

.sample-card:hover {
  transform: translateY(-4px);
  border-color: var(--crimson);
  background: var(--chalk);
}

/* Mini Laptop / Desktop PC Monitor / Mobile Hardware Frames on Coffee-Table Scenes */
.sample-device-stage {
  position: relative;
  height: 162px;
  padding: 1.15rem 0.75rem 0.95rem;
  margin-bottom: 0.25rem;
  border-radius: 5px;
  background-color: #eceae4;
  background-size: cover;
  background-position: center bottom;
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  perspective: 800px;
}

.sample-device-stage::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0.65rem;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(12, 10, 8, 0.5) 0%, transparent 74%);
  pointer-events: none;
}

.mini-laptop {
  position: relative;
  z-index: 2;
  width: 68%;
  max-width: 175px;
  transform: rotateX(2deg);
  transition: transform 0.45s var(--ease-expo);
}

.sample-card:hover .mini-laptop {
  transform: rotateX(0deg) rotateY(0deg) translateY(-3px) scale(1.03);
}

.mini-laptop-lid {
  background: #14131a;
  padding: 5px 5px 6px;
  border-radius: 7px 7px 2px 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 24px -12px rgba(17, 16, 21, 0.5);
}

.mini-laptop-lid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 3px;
}

.mini-laptop-base {
  width: 112%;
  margin-left: -6%;
  height: 7px;
  background: linear-gradient(180deg, #dcd9d0 0%, #a5a198 100%);
  border-radius: 1px 1px 6px 6px;
}

.mini-monitor {
  position: relative;
  z-index: 2;
  width: 64%;
  max-width: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotateY(-2deg);
  transition: transform 0.45s var(--ease-expo);
}

.sample-card:hover .mini-monitor {
  transform: rotateY(0deg) translateY(-3px) scale(1.03);
}

.mini-monitor-frame {
  width: 100%;
  background: #14131a;
  padding: 5px 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 24px -12px rgba(17, 16, 21, 0.52);
}

.mini-monitor-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border-radius: 3px;
}

.mini-monitor-stand {
  width: 18px;
  height: 12px;
  background: linear-gradient(180deg, #9f9b92 0%, #d4d1c8 100%);
}

.mini-monitor-foot {
  width: 56px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #dcd9d0 0%, #9b978e 100%);
  box-shadow: 0 4px 10px rgba(17, 16, 21, 0.25);
}

.mini-phone {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  aspect-ratio: 9 / 19;
  padding: 3px;
  border-radius: 9px;
  background: #14131a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: -6px 10px 18px -6px rgba(17, 16, 21, 0.55);
  transition: transform 0.45s var(--ease-expo);
}

.sample-card:hover .mini-phone {
  transform: translateY(-5px) scale(1.05);
}

.mini-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
}

.sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sample-num { color: var(--crimson); font-weight: 600; }
.sample-tag { color: var(--ink-muted); }

.sample-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sample-card p {
  font-size: 0.85rem;
  color: var(--ink-sec);
  line-height: 1.5;
  flex: 1;
}

.sample-url {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.sample-card:hover .sample-url { color: var(--crimson); }

/* Who We Are + Why Choose MGBIT (8-Cell Matrix) */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--rule-dark);
}

@media (min-width: 920px) {
  .about-split { grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; }
}

.founder-box {
  border: 1px solid var(--rule-dark);
  background: var(--ink-soft);
  padding: 2.25rem;
}

.badge-degree {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--crimson);
  color: #ff7aa8;
  margin-bottom: 1.25rem;
}

.values-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .values-3 { grid-template-columns: repeat(3, 1fr); }
}

.val-box {
  border-top: 2px solid var(--crimson);
  padding-top: 0.85rem;
}

.val-box h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.val-box p { font-size: 0.84rem; color: rgba(250, 249, 247, 0.7); }

.why-8 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 3.5rem;
}

@media (min-width: 640px) { .why-8 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-8 { grid-template-columns: repeat(4, 1fr); } }

.why-item {
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.15rem;
}

.why-item span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--crimson);
  display: block;
  margin-bottom: 0.5rem;
}

.why-item h4 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.why-item p { font-size: 0.86rem; color: rgba(250, 249, 247, 0.68); }

/* 4-Step Process + Packages + Testimonials + FAQ */
.steps-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.85rem 1.5rem;
}

.pkg-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) { .pkg-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pkg-4 { grid-template-columns: repeat(4, 1fr); } }

.pkg {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.9rem 1.55rem;
}

.pkg--hot {
  background: var(--ink);
  color: #faf9f7;
  border-color: var(--ink);
}

.pkg ul {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: var(--ink-sec);
}

.pkg--hot ul { color: rgba(250, 249, 247, 0.76); }
.pkg ul li::before { content: '— '; color: var(--crimson); }

.reviews-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 900px) { .reviews-3 { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
}

/* FAQ Accordion */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease-expo); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; }
.faq-body { padding-bottom: 1.35rem; color: var(--ink-sec); max-width: 68ch; font-size: 0.94rem; }

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
}

.form-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.row-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }

.fld { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.row-2 .fld { margin-bottom: 0; }
.fld label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-sec); }
.fld input, .fld textarea {
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--chalk);
  font-size: 0.95rem;
}
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--crimson); background: #ffffff; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  background: var(--chalk);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}
.chip.is-selected { background: var(--ink); border-color: var(--ink); color: #ffffff; }

.form-feedback {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: var(--concrete);
  border-left: 3px solid var(--crimson);
  font-size: 0.92rem;
  display: none;
}
.form-feedback.is-visible { display: block; }

.site-footer {
  background: var(--ink);
  color: rgba(250, 249, 247, 0.72);
  padding-block: 3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Prominent Social Media Pills (Contact Section) */
.social-connect-block {
  margin-top: 0.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule-strong);
}

.social-connect-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-sec);
  margin-bottom: 0.85rem;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease-expo), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.social-pill:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 12px 24px -10px rgba(17, 16, 21, 0.35);
}

.social-pill--fb:hover { background: #1877f2; border-color: #1877f2; }
.social-pill--ig:hover { background: var(--crimson); border-color: var(--crimson); }
.social-pill--tt:hover { background: #111015; border-color: #111015; }
.social-pill--li:hover { background: #0a66c2; border-color: #0a66c2; }

/* Upgraded Footer Social Buttons */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(250, 249, 247, 0.24);
  background: rgba(250, 249, 247, 0.06);
  color: #faf9f7;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 0.22s var(--ease-expo), background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social-btn:hover {
  transform: translateY(-2px);
  background: var(--crimson);
  border-color: var(--crimson);
  color: #ffffff;
}

.footer-social-btn--wa:hover {
  background: #16a34a;
  border-color: #16a34a;
}

/* Floating Always-Visible Social Media Dock */
.floating-social-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dock-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 16, 21, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(250, 249, 247, 0.26);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease-expo), background-color 0.2s ease, border-color 0.2s ease;
}

.dock-btn::before {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s var(--ease-expo);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.4);
}

.dock-btn:hover {
  transform: scale(1.08);
}

.dock-btn:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.dock-btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.dock-btn--ig:hover { background: var(--crimson); border-color: var(--crimson); }
.dock-btn--tt:hover { background: #000000; border-color: var(--crimson); }
.dock-btn--li:hover { background: #0a66c2; border-color: #0a66c2; }
.dock-btn--wa:hover { background: #16a34a; border-color: #16a34a; }

/* ==========================================================================
   MODERN INTERACTIVE CONSULTATION BOOKING MODAL
   ========================================================================== */
.booking-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 16, 21, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
}

.booking-backdrop[hidden] { display: none; }

.booking-sheet {
  width: 100%;
  max-width: 920px;
  max-height: min(92dvh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow: 0 36px 80px -20px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: modalRise 0.32s var(--ease-expo);
}

@keyframes modalRise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.booking-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: var(--chalk);
  border-bottom: 1px solid var(--rule);
}

.booking-head h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.booking-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.booking-close:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.booking-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  padding: 1.35rem 1.5rem;
}

@media (min-width: 820px) {
  .booking-body { grid-template-columns: 1.05fr 0.95fr; gap: 1.75rem; }
}

.booking-body[hidden], .booking-confirmed[hidden] { display: none; }

.booking-step-2 {
  display: block;
}

.booking-confirmed {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.booking-field-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-sec);
  margin-bottom: 0.65rem;
}

.booking-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

@media (min-width: 560px) {
  .booking-services { grid-template-columns: 1fr 1fr; }
}

.bk-svc {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 5px;
  border: 1px solid var(--rule-strong);
  background: var(--chalk);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.bk-svc strong { font-size: 0.84rem; font-weight: 700; }
.bk-svc span { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-muted); }

.bk-svc:hover { border-color: var(--crimson); }
.bk-svc.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.bk-svc.is-active span { color: #ff7aa8; }

.cal-box {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.9rem;
  background: var(--chalk);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.cal-arrow {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.cal-arrow:hover { border-color: var(--crimson); color: var(--crimson); }

.cal-dow, .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-dow span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-muted);
  padding-bottom: 4px;
}

.cal-day {
  height: 34px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-day:hover:not(:disabled) { border-color: var(--crimson); color: var(--crimson); }
.cal-day.is-selected { background: var(--crimson); border-color: var(--crimson); color: #ffffff; }
.cal-day:disabled { background: transparent; color: rgba(17, 16, 21, 0.25); cursor: not-allowed; }
.cal-day--pad { visibility: hidden; }

.booking-col-right {
  display: flex;
  flex-direction: column;
}

.booking-tz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.booking-tz-select {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--chalk);
}

.booking-selected-date {
  font-weight: 700;
  font-size: 0.96rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.slot-btn {
  padding: 0.58rem 0.4rem;
  border-radius: 5px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.slot-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.slot-btn.is-selected { background: var(--crimson); border-color: var(--crimson); color: #ffffff; font-weight: 600; }

.booking-summary-bar {
  margin-top: auto;
  padding: 1rem;
  background: var(--concrete);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bk-sum-svc { font-weight: 700; font-size: 0.88rem; }
.bk-sum-dt { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-sec); margin-top: 2px; }

.bk-recap-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--concrete);
  border-left: 3px solid var(--crimson);
  margin-bottom: 1.25rem;
}

.bk-recap-main { font-weight: 700; font-size: 1rem; margin-top: 0.2rem; }

.bk-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.bk-notice { font-size: 0.8rem; color: var(--ink-sec); }

.booking-confirmed {
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bk-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.booking-confirmed h3 { font-size: 1.5rem; font-weight: 700; }
.booking-confirmed p { color: var(--ink-sec); max-width: 52ch; font-size: 0.95rem; }

.bk-cal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.bk-done-link {
  margin-top: 0.5rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-decoration: underline;
  color: var(--ink-sec);
  cursor: pointer;
}

/* Mobile Overrides (<= 768px) */
@media (max-width: 768px) {
  :root { --gutter: 1.1rem; }

  .film-scroll { height: 340vh; }
  .header-inner { height: 58px; gap: 0.5rem; }
  .brand img { width: 30px; height: 30px; }
  .brand-word { font-size: 0.78rem; letter-spacing: 0.04em; }
  .btn-crimson--sm { padding: 0.5rem 0.78rem; font-size: 0.62rem; }

  /* Position mobile hero & beats cleanly below the upper 16:9 3D cinema band */
  .beat,
  .beat--hero {
    top: auto;
    bottom: 5.25rem;
    transform: none;
  }
  .beat::before {
    inset: -35% -16% -45% -16%;
    background: linear-gradient(to top, rgba(17, 16, 21, 0.94) 0%, rgba(17, 16, 21, 0.68) 65%, transparent 100%);
  }
  .beat-tag { font-size: 0.64rem; margin-bottom: 0.55rem; }
  .beat h1 { font-size: clamp(1.95rem, 8.6vw, 2.65rem); margin-bottom: 0.75rem; }
  .beat h2 { font-size: clamp(1.65rem, 7.2vw, 2.25rem); margin-bottom: 0.65rem; }
  .beat p { font-size: 0.9rem; line-height: 1.5; }
  .beat-actions { margin-top: 1.1rem; gap: 0.55rem; }
  .beat-actions .btn-crimson,
  .beat-actions .btn-ghost {
    padding: 0.72rem 1.05rem;
    font-size: 0.68rem;
  }

  .film-hud { bottom: 3.9rem; gap: 0.75rem; }
  .film-chapter-code { font-size: 0.56rem; }

  /* Mobile Stats, Sections & Cards */
  .stat-box { padding: 1.4rem 0.85rem; }
  .swiss-sec { padding-block: 3.5rem; }
  .sec-p { font-size: 0.95rem; margin-bottom: 1.75rem; }
  .work-item { padding: 0.95rem; gap: 0.75rem; }
  .browser-chrome { padding: 0.42rem 0.55rem; }
  .browser-url { font-size: 0.62rem; }
  .browser-cta { font-size: 0.58rem; }
  .founder-box { padding: 1.45rem; }
  .form-box { padding: 1.25rem; }
  .social-pill { padding: 0.62rem 0.92rem; font-size: 0.84rem; }

  /* Sleek Bottom-Center Floating Social Pill Bar on Mobile (never covers content edges) */
  .floating-social-dock {
    right: auto;
    left: 50%;
    bottom: 0.65rem;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 0.45rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    background: rgba(17, 16, 21, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(250, 249, 247, 0.18);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.55);
  }
  .dock-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-width: 1px;
    box-shadow: none;
  }
  .dock-btn::before { display: none; }

  /* Extra bottom clearance on footer for the floating mobile social bar */
  .site-footer { padding-bottom: 5.5rem; }
  .footer-social-btn { padding: 0.52rem 0.8rem; font-size: 0.8rem; }

  /* Mobile-First Booking Modal Sheet */
  .booking-backdrop {
    align-items: flex-end;
    padding: 0.4rem;
  }
  .booking-sheet {
    max-height: 92dvh;
    border-radius: 14px 14px 8px 8px;
  }
  .booking-head { padding: 0.95rem 1.1rem; }
  .booking-head h2 { font-size: 1.18rem; }
  .booking-body { padding: 1rem 1.1rem 1.25rem; gap: 1.1rem; }
  .booking-services { grid-template-columns: 1fr; gap: 0.4rem; }
  .bk-svc { padding: 0.58rem 0.75rem; }
  .cal-box { padding: 0.65rem; }
  .cal-day { height: 34px; font-size: 0.8rem; }
  .booking-tz-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .booking-tz-select { width: 100%; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .slot-btn { padding: 0.55rem 0.25rem; font-size: 0.68rem; }
  .booking-summary-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem;
  }
  .booking-summary-bar .btn-crimson { width: 100%; }
  .bk-submit-row { flex-direction: column; align-items: stretch; }
  .bk-submit-row .btn-crimson { width: 100%; }
  .booking-confirmed { padding: 1.5rem 1.1rem; }
  .bk-cal-actions { flex-direction: column; width: 100%; }
  .bk-cal-actions > * { width: 100%; }
}
