/* ===== Reset & Vars ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: rgb(36, 35, 35);
  --bg-alt: rgb(24, 23, 23);
  --white: rgb(255, 255, 255);
  --white-dim: rgba(255, 255, 255, 0.66);
  --white-faint: rgba(255, 255, 255, 0.12);
  --dark-dim: rgba(36, 35, 35, 0.68);
  --dark-faint: rgba(36, 35, 35, 0.12);
  --red: rgb(226, 0, 0);
  --red-light: rgb(255, 51, 35);
  --red-dark: rgb(120, 0, 0);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 92px;
}

/* scroll-behavior:smooth intentionally omitted — Lenis (js/main.js) owns all scroll easing now;
   layering CSS smooth-scroll on top of it causes the two systems to fight and stutter. */

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, .tag, .step-num {
  font-family: 'Oswald', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

section { position: relative; }
section.dark { background: var(--bg); color: var(--white); }
section.light { background: var(--white); color: var(--bg); }

.eyebrow {
  color: var(--red-light);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.light .eyebrow { color: var(--red); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

/* ===== Custom brick cursor (client's own brick-wall icon, mask-tinted red) ===== */
@media (hover: hover) and (pointer: fine) {
  /* !important beats every other cursor: rule in the file (buttons, .btn, .hamburger, etc.)
     so the real OS cursor never reappears on hover — the brick stays the only cursor. */
  *, *::before, *::after { cursor: none !important; }
}
.brick-cursor {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px; pointer-events: none; z-index: 10000;
  background: var(--red);
  -webkit-mask: url('../img/cursor-brick.webp') center / contain no-repeat;
  mask: url('../img/cursor-brick.webp') center / contain no-repeat;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.5));
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease), opacity .2s;
  opacity: 0;
}
.brick-cursor.active { opacity: 1; }
.brick-cursor.hovering { width: 34px; height: 34px; background: var(--red-light); }

/* ===== Cinematic splash: brick wall breaks open, logo crashes through =====
   See js/main.js splash() — a Three.js wall + logo plane + GSAP timeline drive the
   3D side; this just styles the HTML overlay (service panels, logo button, hints). */
.splash {
  position: fixed; inset: 0; z-index: 9999; background: rgb(20, 12, 10);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
#splashCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.splash-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 6; }

.splash-panels {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; gap: 0.9rem; max-width: 300px;
}
.splash-panels.left { left: 3vw; align-items: flex-start; }
.splash-panels.right { right: 3vw; align-items: flex-end; }

.splash-panel {
  display: flex; align-items: center; gap: 1rem; background: linear-gradient(160deg, rgba(28,20,17,.94), rgba(14,10,9,.94));
  border: 1px solid rgba(226,0,0,.45); border-radius: 10px; padding: 0.9rem 1.3rem 0.9rem 0.9rem;
  box-shadow: 0 16px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  opacity: 0; transform: translateX(-46px) scale(0.85);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.splash-panels.right .splash-panel { transform: translateX(46px) scale(0.85); padding: 0.9rem 0.9rem 0.9rem 1.3rem; }
.splash-panel.shown { opacity: 1; transform: translateX(0) scale(1); }
.splash-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(226,0,0,.4), rgba(226,0,0,.12)); border: 1px solid rgba(226,0,0,.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.15);
}
.splash-panel svg.icon { width: 21px; height: 21px; color: #fff; flex-shrink: 0; }
.splash-panel span:last-child {
  color: #fff; font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.25;
}

.splash-center { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.splash-logo {
  width: min(34vw, 300px); background: none; border: none; padding: 0; cursor: default;
  opacity: 0; transform: scale(0.3);
}
.splash-logo img { width: 100%; display: block; filter: drop-shadow(0 10px 40px rgba(226,0,0,.5)); }
.splash-logo.clickable { cursor: pointer; }
@keyframes splashLogoPulse {
  0%, 100% { filter: drop-shadow(0 10px 40px rgba(226,0,0,.5)); }
  50% { filter: drop-shadow(0 14px 60px rgba(226,0,0,.9)); }
}
.splash-logo.ready img { animation: splashLogoPulse 1.6s ease-in-out infinite; }
.splash-hint {
  color: var(--white-dim); font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0;
}

.splash-skip {
  position: absolute; bottom: 2rem; right: 2rem; z-index: 5; background: none;
  border: 1px solid var(--white-faint); color: var(--white-dim); padding: 0.6rem 1.2rem;
  border-radius: 30px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; opacity: 0; transition: opacity .4s ease, border-color .3s, color .3s;
}
.splash-skip.shown { opacity: 1; }
.splash-skip:hover { border-color: var(--red); color: #fff; }

@media (max-width: 900px) {
  .splash-panels { display: none; }
}

/* ===== Header (solid white, fixed) ===== */
/* Hidden until the hero video reaches its reveal point — see frameScrub() in main.js,
   which fades/slides this in together with the hero headline, scroll-synced. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 2rem;
  padding: 0 3.5vw; background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 26px rgba(0,0,0,.08);
  opacity: 0; transform: translateY(-20px); pointer-events: none;
  transition: box-shadow .3s var(--ease), height .35s var(--ease);
}
/* Gradient accent bar instead of a flat border — reads as a deliberate brand
   stripe rather than a plain 3px rule. */
.site-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red) 45%, var(--red-light));
}
.site-header.scrolled { height: calc(var(--header-h) - 14px); box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 12px 34px rgba(0,0,0,.15); }

.logo-badge { display: flex; align-items: center; justify-self: start; }
.logo-3d {
  display: block; perspective: 500px; transform-style: preserve-3d; flex-shrink: 0;
  opacity: 0; transform: rotateY(-90deg) scale(0.7);
}
.logo-3d.static { opacity: 1; transform: none; }
.logo-img {
  display: block; height: 68px; width: auto;
  transition: transform .35s var(--ease), height .35s var(--ease);
}
.logo-badge:hover .logo-img { transform: scale(1.06); }
.logo-badge.small .logo-img { height: 44px; }
.scrolled .logo-img { height: 52px; }

.main-nav { display: flex; align-items: center; gap: 0.4rem; justify-self: center; }
.main-nav a {
  font-family: 'Oswald', sans-serif; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; position: relative; padding: 0.65rem 1.1rem; border-radius: 30px;
  color: var(--bg); transition: color .3s var(--ease), background .3s var(--ease);
}
.main-nav a::after {
  content: ''; position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0.35rem; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--red); background: rgba(226,0,0,.06); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1.5rem; justify-self: end; }
.phone-link {
  display: flex; align-items: center; gap: 0.65rem; font-family: 'Oswald', sans-serif;
  font-size: 0.85rem; font-weight: 500; letter-spacing: .02em; color: var(--bg);
  padding: 0.4rem 0.9rem 0.4rem 0.4rem; border-radius: 30px; transition: background .3s var(--ease), color .3s var(--ease);
}
.phone-link .icon-badge.sm {
  background: linear-gradient(150deg, rgba(226,0,0,.16), rgba(226,0,0,.05));
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.phone-link:hover { color: var(--red); background: rgba(226,0,0,.06); }
.phone-link:hover .icon-badge.sm { background: var(--red); color: #fff; transform: scale(1.08); }

.btn {
  display: inline-block; padding: 0.85rem 1.9rem; border-radius: 2px; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(226,0,0,.4); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: var(--white); color: var(--bg); transform: translateY(-3px); }
.btn-ghost-dark { border: 1px solid var(--bg); color: var(--bg); display: inline-block; padding: 0.85rem 1.9rem; text-transform: uppercase; font-size: 0.85rem; letter-spacing: .06em; margin-top: 1rem; transition: background .3s, color .3s; }
.btn-ghost-dark:hover { background: var(--bg); color: var(--white); }
.btn-outline { border-color: var(--red); color: var(--red); margin-top: .5rem; }
.btn-outline:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.showcase .btn-outline, .dark .btn-outline { color: var(--red-light); }
.btn-small { padding: 0.6rem 1.3rem; font-size: 0.75rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--bg); transition: all .3s var(--ease); }

/* ===== Icon system ===== */
svg.icon { width: 24px; height: 24px; display: block; flex-shrink: 0; }
.icon-badge {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; flex-shrink: 0;
  background: linear-gradient(150deg, rgba(226,0,0,.22), rgba(226,0,0,.06));
  border: 1px solid rgba(226,0,0,.3);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.25);
  color: var(--red-light);
}
.icon-badge svg.icon { width: 26px; height: 26px; }
.icon-badge.lg { width: 78px; height: 78px; }
.icon-badge.lg svg.icon { width: 34px; height: 34px; }
.icon-badge.sm { width: 42px; height: 42px; margin: 0; }
.icon-badge.sm svg.icon { width: 19px; height: 19px; }
/* on solid red backgrounds: white glassy badge instead of red-on-red */
.process .icon-badge, .features .icon-badge {
  background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.25), 0 8px 18px rgba(0,0,0,.2);
}

/* ===== Video Hero / Banner ===== */
.video-hero { height: 380vh; background: var(--bg); }
.video-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.video-frame { position: absolute; inset: 0; background: var(--bg); }
.video-frame canvas { width: 100%; height: 100%; display: block; }
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,35,35,.6) 0%, rgba(36,35,35,.08) 22%, rgba(36,35,35,.08) 70%, rgba(36,35,35,.72) 100%);
}
.video-overlay-final { position: absolute; inset: 0; background: rgba(36,35,35,.55); opacity: 0; pointer-events: none; }

.hero-reveal {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem; opacity: 0; pointer-events: none;
}
.hero-reveal h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; line-height: 1.05; margin-bottom: 1.4rem; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero-reveal h1 .line { display: block; }
.hero-reveal h1 .accent { color: var(--red-light); }
.hero-reveal .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-reveal .hero-sub { color: var(--white-dim); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2.2rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--white-dim); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.chevron { width: 14px; height: 14px; border-right: 1px solid var(--red-light); border-bottom: 1px solid var(--red-light); transform: rotate(45deg); animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: rotate(45deg) translate(0,0);} 50% { transform: rotate(45deg) translate(6px,6px);} }

.video-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.1); z-index: 5; }
.video-progress .bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--red), var(--red-light)); }

/* ===== Intro ===== */
.intro { padding: 8rem 6vw; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5vw; align-items: center; max-width: 1300px; margin: 0 auto; }
.intro-text p { color: var(--white-dim); margin-bottom: 1.3rem; max-width: 540px; }
.intro-visual { display: flex; justify-content: center; }
#brickCanvas { width: 100%; max-width: 420px; aspect-ratio: 1 / 1; }

/* ===== Services: sticky pinned card-stack — each card pins as you scroll, the next
   one zooms up over it with a subtle 3D lean, previous cards peek out above =====
   Pure position:sticky, one shared "top" progression per card (nth-child), plus a
   scroll-scrubbed scale/rotateX "arrival" tween in main.js for the zoom-to-life feel. */
.showcase.light {
  padding: 7rem 3vw 6rem;
  background: #191b19; isolation: isolate;
}
.showcase-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.showcase-backdrop-view { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #191b19 url('../img/premium/building.jpg') center / cover; }
.showcase-backdrop-view::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,16,15,.78), rgba(12,16,15,.65) 45%, rgba(12,16,15,.84)); }
.showcase-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.045); transition: opacity .85s ease, transform 6s ease-out; }
.showcase-bg-image.is-active { opacity: 1; transform: scale(1); }
.showcase.light > h2 { color: var(--white); }
.showcase.light > .showcase-sub { color: #d0d0c9; }
@media (prefers-reduced-motion: reduce) {
  .showcase-bg-image { transition: none; transform: none; }
}
.showcase h2, .showcase .eyebrow { max-width: 850px; }
.showcase h2 { font-size: clamp(2.4rem, 4.4vw, 4rem); letter-spacing: -0.025em; }
.showcase-sub { color: #716d66; max-width: 540px; margin: 0 auto; line-height: 1.8; }

.stack-track { position: relative; width: 100%; max-width: 1200px; margin: 4.5rem auto 0; }
.stack-card {
  position: sticky; width: 100%; min-height: 460px;
  display: grid; grid-template-columns: 53% 47%;
  background: #fffdf9; border: 1px solid #e5dfd5; border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(40,32,21,.24), 0 3px 12px rgba(40,32,21,.04);
  margin-bottom: 5rem; transform-origin: center top;
}
.stack-card:nth-child(1) { top: 108px; z-index: 1; }
.stack-card:nth-child(2) { top: 124px; z-index: 2; }
.stack-card:nth-child(3) { top: 140px; z-index: 3; }
.stack-card:nth-child(4) { top: 156px; z-index: 4; }
.stack-card:nth-child(5) { top: 172px; z-index: 5; margin-bottom: 0; }

.stack-media { position: relative; width: 100%; min-height: 460px; overflow: hidden; }
.stack-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(26,24,20,.28)); pointer-events: none; }
.stack-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; display: block; }
.stack-body { padding: 3.5rem 3.25rem 7rem; display: flex; flex-direction: column; justify-content: center; }
.stack-eyebrow {
  display: flex; align-items: center; gap: 0.9rem; color: var(--red); letter-spacing: 0.22em;
  text-transform: uppercase; font-size: 0.7rem; font-weight: 600; margin-bottom: 1.7rem;
}
.stack-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.stack-body h3 { color: #282620; font-size: clamp(1.8rem, 2.7vw, 2.8rem); line-height: 1.15; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.stack-body p { color: #736e65; font-size: 1rem; line-height: 1.85; max-width: 400px; }
.stack-tag {
  position: absolute; left: calc(53% + 3.25rem); bottom: 2.3rem; color: var(--red);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.6rem 0; border-top: 1px solid #e5dfd5; min-width: 110px;
}
.stack-plus {
  position: absolute; right: 3.25rem; bottom: 2rem; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(226,0,0,.35); background: transparent; color: var(--red); font-size: 1.5rem;
  line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.stack-plus:hover { background: var(--red); color: #fff; transform: translateX(3px); }
.stack-plus:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

@media (max-width: 1050px) {
  .stack-body { padding: 2.5rem 2rem 7rem; }
  .stack-tag { left: calc(53% + 2rem); }
  .stack-plus { right: 2rem; }
}
@media (max-height: 720px) and (min-width: 701px) {
  .stack-card, .stack-media { min-height: 380px; }
  .stack-body { padding-top: 2rem; }
  .stack-card:nth-child(n) { top: 100px; }
}
/* ===== Trust / Why Choose Us ===== */
.trust { padding: 8rem 6vw 0; }
.trust-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 5vw; max-width: 1400px; margin: 0 auto; align-items: center; }
.trust-text p { color: var(--dark-dim); margin: 1rem 0 1.6rem; max-width: 480px; }
.checklist { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.checklist li { display: flex; align-items: center; gap: 0.9rem; font-size: 0.98rem; font-weight: 400; }
.check {
  width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(150deg, var(--red-light), var(--red)); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(226,0,0,.35);
}
.check svg.icon { width: 15px; height: 15px; }
.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; perspective: 1000px; }
.tb-card {
  background: linear-gradient(160deg, rgb(44,43,43), rgb(30,29,29)); color: var(--white);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 2rem 1.2rem; text-align: center;
  font-size: 0.92rem; font-weight: 500; opacity: 0;
  box-shadow: 0 16px 32px rgba(0,0,0,.35); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tb-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(0,0,0,.45); }
.tb-card .icon-badge { margin: 0 auto 1rem; }

.ticker-wrap { margin-top: 5rem; border-top: 1px solid var(--dark-faint); overflow: hidden; padding: 1.6rem 0; }
.ticker { display: flex; gap: 3rem; width: max-content; animation: tickerScroll 30s linear infinite; will-change: transform; }
.ticker span { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; color: var(--dark-dim); white-space: nowrap; }
.ticker span.dot { color: var(--red); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Process band ===== */
.process { background: linear-gradient(160deg, var(--red-light), var(--red) 60%, var(--red-dark)); padding: 6rem 6vw; overflow: hidden; }
.process-inner { position: relative; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; perspective: 1200px; }
.process-line {
  position: absolute; top: 29px; left: 16.6%; right: 16.6%; height: 2px; background: rgba(255,255,255,.3);
  transform-origin: left center; transform: scaleX(0);
}
.process-step { position: relative; text-align: center; color: #fff; opacity: 0; }
.step-num { display: block; font-size: 0.85rem; letter-spacing: 0.2em; opacity: 0.75; margin-bottom: 0.5rem; }
.process-step h3 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.92rem; color: rgba(255,255,255,.85); max-width: 280px; margin: 0 auto; }

/* ===== Gallery: full-width scroll-driven 3D carousel, cards receding into the dark =====
   The section pins while the user scrolls; scroll progress drives which card is the
   bright "hero" and how far the rest have receded — no arrows, no dots, no dragging. */
.gallery {
  --gallery-card-width: clamp(360px, 28vw, 540px);
  --gallery-card-height: clamp(470px, 35vw, 670px);
  padding: 6rem 0 4rem; overflow: hidden;
}
.gallery > .eyebrow, .gallery > h2 { padding-inline: 1.5rem; }
.gallery-stage {
  position: relative; width: 100%; height: calc(var(--gallery-card-height) + 80px); margin-top: 2.5rem;
  display: flex; align-items: center; justify-content: center; perspective: 1800px;
}
.gallery-cards {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
}
.gallery-stage::after {
  content: ''; position: absolute; inset: 0; z-index: 30; pointer-events: none;
  background: linear-gradient(to right, var(--bg) 0%, transparent 70%);
}
.gallery-card {
  position: absolute; top: 50%; left: 50%;
  width: var(--gallery-card-width); height: var(--gallery-card-height);
  margin: calc(var(--gallery-card-height) / -2) 0 0 calc(var(--gallery-card-width) / -2);
  border-radius: 12px; overflow: hidden; box-shadow: 0 25px 45px rgba(0,0,0,.55);
  background-size: cover; background-position: center;
  will-change: transform, opacity, filter;
}
.gallery-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%); }
.gallery-card::before { content: ''; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); z-index: 1; }
.gallery-card .gc-label {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 2; color: #fff;
  font-family: 'Oswald', sans-serif; font-size: clamp(0.9rem, 1vw, 1.1rem); letter-spacing: 0.03em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery-card.is-active .gc-label { opacity: 1; }
.gallery-card { cursor: pointer; }

/* ===== Gallery click-to-zoom lightbox (FLIP from the clicked card's own rect) ===== */
.gallery-lightbox-backdrop { position: fixed; inset: 0; background: rgba(10,8,8,.86); z-index: 500; opacity: 0; }
.gallery-lightbox {
  position: fixed; z-index: 501; border-radius: 12px; overflow: hidden; cursor: pointer;
  background-size: cover; background-position: center; box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.gallery-lightbox::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.72) 100%); }
.gallery-lightbox .gl-label {
  position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.4rem; z-index: 2; color: #fff;
  font-family: 'Oswald', sans-serif; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: 0.03em;
  text-transform: uppercase; opacity: 0; transition: opacity .35s var(--ease);
}
.gallery-lightbox.is-open .gl-label { opacity: 1; }

/* ===== Brick wall ===== */
.brick-wall-section { padding: 8rem 6vw; overflow: hidden; }
.wall-sub { color: var(--white-dim); max-width: 520px; margin-top: -0.5rem; margin-bottom: 3.5rem; }
.brick-wall { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; perspective: 1600px; }
.brick-row { display: flex; gap: 10px; }
.brick-row.offset { margin-left: 55px; }
.brick {
  flex: 1 1 0; min-width: 0; background: linear-gradient(135deg, var(--red-light), var(--red-dark));
  border-radius: 3px; padding: 1.1rem 1rem; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em; color: #fff;
  opacity: 0; transform: translateZ(-200px) rotateX(40deg) translateY(60px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 25px rgba(0,0,0,.35);
}

/* ===== Stats ===== */
.stats-section { padding: 7rem 6vw; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; max-width: 1400px; margin: 0 auto; align-items: center; }
.stats-panel h2 { color: var(--bg); }
.stats-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.stats-section .stat {
  background: var(--bg); color: var(--white); border-radius: 6px; padding: 2rem 1rem; text-align: center;
}
.stats-section .stat .num, .stats-section .stat .plus { color: var(--red-light); font-family: 'Oswald', sans-serif; font-size: 2.4rem; font-weight: 700; }
.stats-section .stat p { color: var(--white-dim); font-size: 0.8rem; margin-top: 0.5rem; letter-spacing: 0.03em; }

/* ===== Contact ===== */
.contact { padding: 8rem 6vw 7rem; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5vw; max-width: 1400px; margin: 0 auto; }
.contact-info p { color: var(--white-dim); margin-bottom: 2rem; max-width: 420px; }
.contact-link { display: flex; align-items: center; gap: 0.9rem; font-size: 1.05rem; margin-bottom: 1.1rem; transition: color .3s, transform .3s; }
.contact-link:hover { color: var(--red-light); transform: translateX(4px); }
.location { display: flex; align-items: center; gap: 0.9rem; color: var(--white-dim); margin-top: 1.5rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; background: rgba(255,255,255,.03); border: 1px solid rgba(226,0,0,.35); border-radius: 8px; padding: 2rem; }
.form-row { display: flex; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--white-faint); border-radius: 4px;
  padding: 0.95rem 1.1rem; color: var(--white); font-family: 'Inter', sans-serif; font-size: 0.92rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,.08); }
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: flex-start; margin-top: 0.5rem; border: none; }
.form-note { font-size: 0.85rem; color: var(--red-light); min-height: 1.2em; }

/* ===== Features band ===== */
.features { background: linear-gradient(160deg, var(--red-dark), var(--red) 55%, var(--red-light)); padding: 6.5rem 6vw; }
.features-grid { max-width: 1400px; margin: 3.5rem auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.4rem; perspective: 1000px; }
.feature {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 1.8rem 1rem; text-align: center; color: #fff;
  font-size: 0.9rem; font-weight: 500; opacity: 0;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.feature:hover { transform: translateY(-6px) scale(1.02); background: rgba(255,255,255,.14); }

/* ===== Footer ===== */
.site-footer { background: rgb(18, 17, 17); padding-top: 0; }

.footer-bricks { display: flex; gap: 4px; height: 10px; overflow: hidden; }
.footer-bricks .fb { flex: 1 1 0; background: linear-gradient(135deg, var(--red-light), var(--red-dark)); transform: translateY(-100%); }

.footer-main {
  max-width: 1400px; margin: 0 auto; padding: 5rem 6vw 3rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem;
}
.footer-col h4 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; margin-bottom: 1.3rem; color: var(--white); }
.footer-col.brand .logo-img { height: 46px; margin-bottom: 1.1rem; }
.footer-col.brand p { color: var(--white-dim); font-size: 0.88rem; max-width: 320px; }
.footer-col a { display: block; color: var(--white-dim); font-size: 0.9rem; margin-bottom: 0.8rem; transition: color .3s, transform .3s; }
.footer-col a:hover { color: var(--red-light); transform: translateX(3px); }
.footer-contact-link { display: flex !important; align-items: center; gap: 0.7rem; }
.footer-contact-link svg.icon { width: 17px; height: 17px; color: var(--red-light); flex-shrink: 0; }
.footer-cta { margin-top: 0.8rem; }

.footer-bottom {
  max-width: 1400px; margin: 0 auto; padding: 1.6rem 6vw; border-top: 1px solid var(--white-faint);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; color: var(--white-dim); font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .intro-grid, .trust-grid, .stats-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-visual { order: -1; margin-bottom: 2rem; }
  .trust-badges { order: -1; margin-bottom: 2rem; }
  .process-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-line { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .showcase.light { padding: 5rem 5vw; }
  .stack-track { margin-top: 3rem; }
  .stack-card { display: block; min-height: 0; margin-bottom: 2rem; border-radius: 16px; }
  .stack-media { height: 220px; min-height: 0; }
  .stack-body { padding: 1.75rem 1.5rem 6rem; }
  .stack-eyebrow { margin-bottom: 1rem; }
  .stack-body h3 { font-size: 1.8rem; }
  .stack-body p { font-size: .92rem; line-height: 1.7; }
  .stack-tag { left: 1.5rem; bottom: 1.75rem; }
  .stack-plus { right: 1.5rem; bottom: 1.5rem; width: 42px; height: 42px; }
  .stack-card:nth-child(n) { top: 100px; }
}
@media (max-width: 700px) and (max-height: 750px) {
  .stack-card { position: relative; }
  .stack-card:nth-child(n) { top: auto; }
}
@media (max-width: 640px) {
  .gallery {
    --gallery-card-width: clamp(230px, 65vw, 320px);
    --gallery-card-height: clamp(310px, 87vw, 430px);
    padding: 6rem 0 3rem;
  }
  .gallery-stage { margin-top: 1.5rem; }
  .form-row { flex-direction: column; }
  .stats-tiles { grid-template-columns: 1fr; }
  .hero-reveal h1 { font-size: 2.2rem; }
  .video-hero { height: 320vh; }
  .brick-cursor { display: none; }
  body { cursor: auto; }
  .brick-row.offset { margin-left: 30px; }
  .footer-main { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* Mobile nav dropdown */
.main-nav.open {
  display: flex; flex-direction: column; position: fixed; top: var(--header-h); right: 4vw; left: 4vw;
  background: var(--white); border: 1px solid var(--dark-faint); border-radius: 8px; padding: 1.5rem; gap: 1.2rem;
  z-index: 199; box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* About: scroll-controlled torn title and photographic reveal. */
.about-scroll { position: relative; }
.about-stage { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 110px 6vw 50px; overflow: hidden; isolation: isolate; }
.about-background { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,16,15,.9), rgba(12,16,15,.65)), url('../img/premium/about.jpg') center / cover; }
.about-content { width: min(100%, 1000px); text-align: center; }
.about-content > .eyebrow { font-size: .68rem; letter-spacing: .25em; margin-bottom: 1.25rem; }
.about-content h2 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 1rem; }
.about-lead { color: var(--white); font-size: clamp(1rem, 1.5vw, 1.25rem); margin-bottom: 1.8rem; }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 850px; margin: auto; text-align: left; }
.about-copy p { color: var(--white-dim); font-size: .95rem; line-height: 1.8; }
.about-details { display: flex; justify-content: center; gap: 3rem; margin: 1.8rem auto; }
.about-details span { color: var(--white-dim); font-size: .7rem; letter-spacing: .04em; }
.about-details strong { display: block; font-family: 'Oswald', sans-serif; color: var(--red-light); font-size: 1.7rem; margin-bottom: .15rem; }
.about-content .btn-outline { border-color: var(--red); color: #fff; gap: 1.5rem; }
.about-content .btn-outline:hover { background: var(--red); color: #fff; }
.about-tear, .about-scroll-note { display: none; }
.about-scroll.is-animated { height: 270vh; }
.is-animated .about-stage { position: sticky; top: 0; height: 100svh; }
.is-animated .about-content { opacity: 0; visibility: hidden; }
.is-animated .about-background { opacity: 0; }
.is-animated .about-tear { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.about-tear span { font-family: 'Oswald', sans-serif; font-size: clamp(80px, 17vw, 280px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--white); white-space: nowrap; }
.about-tear-top { clip-path: polygon(0 0,100% 0,100% 49%,90% 50%,80% 48%,70% 51%,60% 49%,50% 51%,40% 48%,30% 50%,20% 49%,10% 51%,0 49%); }
.about-tear-bottom { clip-path: polygon(0 49%,10% 51%,20% 49%,30% 50%,40% 48%,50% 51%,60% 49%,70% 51%,80% 48%,90% 50%,100% 49%,100% 100%,0 100%); }
.is-animated .about-scroll-note { display: flex; flex-direction: column; align-items: center; gap: 1rem; position: absolute; bottom: 3rem; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white-dim); }
.about-scroll-note span { font-size: 1.5rem; }
@media (max-width: 700px) {
  .about-stage { padding: 110px 6vw 40px; }
  .about-copy { grid-template-columns: 1fr; gap: .8rem; }
  .about-copy p { font-size: .84rem; line-height: 1.65; }
  .about-content h2 { font-size: 2.3rem; }
  .about-details { gap: 1.5rem; margin: 1.3rem auto; }
  .about-lead { margin-bottom: 1.25rem; }
  .about-tear span { font-size: 19vw; }
}
/* Architectural cards: tactile edge, restrained light and depth. */
.stack-card { transition: box-shadow .5s ease, border-color .5s ease; }
.stack-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,239,210,.17), transparent 55%); transition: opacity .5s ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .stack-card:hover { border-color: rgba(226,0,0,.4); box-shadow: 0 35px 75px -24px rgba(0,0,0,.48), 0 1px 0 rgba(255,255,255,.5) inset; }
  .stack-card:hover::after { opacity: 1; }
}
