/* ══════════════════════════════════════════════════════════════════════
   BRANDON BAILY AUTOMOTIVE MEDIA
   Cinematic viewfinder — very dark blue + electric ice-blue HUD accent.
   Fonts (loaded in head.php): Barlow Condensed · Inter · IBM Plex Mono
   ══════════════════════════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────────────────────────────── */
:root {
  --bg:        #070B18;   /* page base — very dark blue */
  --bg2:       #0A1024;   /* elevated sections */
  --bg3:       #0E1630;   /* cards, panels */
  --bg-glass:  rgba(9,14,30,.72);

  --blue:      #4DA3FF;   /* electric ice-blue — signal */
  --blue-2:    #7CC4FF;   /* lighter, for glow/hover */
  --blue-d:    #2E7FE0;   /* deep, active */

  --white:     #EAF0FA;   /* cool off-white text */
  --muted:     #6B7C99;   /* blue-gray secondary */

  --w90: rgba(234,240,250,.90);
  --w70: rgba(234,240,250,.70);
  --w50: rgba(234,240,250,.50);
  --w30: rgba(234,240,250,.30);
  --w12: rgba(234,240,250,.12);
  --w06: rgba(234,240,250,.06);
  --w03: rgba(234,240,250,.03);

  --rule:   rgba(234,240,250,.10);
  --rule-2: rgba(234,240,250,.055);
  --glow:   rgba(77,163,255,.22);
  --glow-2: rgba(77,163,255,.42);

  --ff-disp: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 2px;
  --ease:      cubic-bezier(.16,1,.3,1);
  --ease-mech: cubic-bezier(.2,0,0,1);

  --px:  clamp(20px, 4vw, 52px);
  --py:  clamp(84px, 11vw, 132px);
  --max: 1240px;

  --nav-h: 76px;
}

/* ── RESET ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #04070F; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Custom cursor active → hide native on fine pointers */
@media (pointer: fine) {
  html.has-reticle, html.has-reticle * { cursor: none; }
}

/* ── ATMOSPHERE: grain + scanlines + base glow ───────────────────────── */
body::before {   /* scanlines */
  content: ''; position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: repeating-linear-gradient(to bottom,
    transparent 0 2px, rgba(0,0,0,.16) 2px 3px);
  opacity: .5;
  mix-blend-mode: multiply;
}
body::after {    /* film grain */
  content: ''; position: fixed; inset: -50%; z-index: 8999; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  animation: grain 6s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -2%); }
  60%  { transform: translate(-2%, 4%); }
  80%  { transform: translate(4%, -3%); }
  100% { transform: translate(0,0); }
}

/* ── CAMERA FOCUS RETICLE (custom cursor) ────────────────────────────── */
.reticle {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  pointer-events: none;
  opacity: 0;
  transition: width .28s var(--ease), height .28s var(--ease),
              opacity .3s ease, transform .12s var(--ease-mech);
  will-change: transform;
}
.reticle.ready { opacity: 1; }
.reticle b {
  position: absolute; width: 10px; height: 10px;
  border: 1.5px solid var(--blue-2);
  filter: drop-shadow(0 0 2px rgba(0,0,0,.55));
  transition: inset .24s var(--ease), border-color .24s ease;
}
.reticle b.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.reticle b.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.reticle b.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.reticle b.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.reticle i {   /* centre dot */
  position: absolute; top: 50%; left: 50%; width: 2px; height: 2px;
  margin: -1px 0 0 -1px; background: var(--blue-2); border-radius: 50%;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.55));
}
.reticle.lock { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.reticle.lock b { border-color: var(--blue); }
.reticle.down { transform: scale(.8); }
.reticle-label {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  font-family: var(--ff-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2);
  transform: translate(18px, 8px);
  opacity: 0; transition: opacity .2s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.reticle-label.show { opacity: 1; }

/* ── VIEWFINDER HUD FRAME (fixed corners + readouts) ──────────────────── */
.hud { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.hud .corner {
  position: absolute; width: 26px; height: 26px;
  border: 1px solid var(--w30);
}
.hud .corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.hud .corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.hud .corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.hud .corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.hud .readout {
  position: absolute;
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--w30);
  white-space: nowrap;
}
.hud .ro-tl { top: 20px;    left: 52px; }
.hud .ro-tr { top: 20px;    right: 52px; display: flex; align-items: center; gap: 8px; }
.hud .ro-bl { bottom: 20px; left: 52px; }
.hud .ro-br { bottom: 20px; right: 52px; color: var(--blue); }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF4D4D;
  box-shadow: 0 0 8px #FF4D4D; animation: recblink 1.4s steps(1) infinite; }
@keyframes recblink { 0%,60%{opacity:1;} 61%,100%{opacity:.15;} }
@media (max-width: 900px) { .hud { display: none; } }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────── */
.rev { opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.rev.in { opacity: 1; transform: none; filter: none; }
.rev[data-d="1"] { transition-delay: .08s; }
.rev[data-d="2"] { transition-delay: .16s; }
.rev[data-d="3"] { transition-delay: .24s; }
.rev[data-d="4"] { transition-delay: .32s; }
.rev[data-d="5"] { transition-delay: .40s; }
.rev[data-d="6"] { transition-delay: .48s; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────── */
.disp { font-family: var(--ff-disp); font-weight: 700; text-transform: uppercase;
  letter-spacing: .005em; }
.t-hero { font-family: var(--ff-disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(52px, 9.4vw, 132px); line-height: .9; letter-spacing: .004em; }
.t-h2 { font-family: var(--ff-disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 6.2vw, 86px); line-height: .94; }
.t-h3 { font-family: var(--ff-disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 40px); line-height: 1.04; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--w70); line-height: 1.62; }
.mono { font-family: var(--ff-mono); }
.tnum { font-variant-numeric: tabular-nums; }

.label { font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.blue { color: var(--blue); }

/* ── LAYOUT ──────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }
.section { position: relative; padding: var(--py) 0; }
.section-hd { max-width: 760px; margin-bottom: clamp(40px, 6vw, 68px); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.eyebrow .tick { width: 30px; height: 1px; background: var(--blue);
  box-shadow: 0 0 10px var(--glow-2); }
.eyebrow .num { font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; color: var(--blue); }
.eyebrow .txt { font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--w50); }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 26px; border-radius: var(--radius); min-height: 52px;
  transition: transform .22s var(--ease), background .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease), color .2s; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-fill { background: var(--blue); color: #04070F; }
.btn-fill:hover { background: var(--blue-2); transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--glow-2); }
.btn-ghost { border: 1px solid var(--w12); color: var(--white); background: var(--w03); }
.btn-ghost:hover { border-color: var(--blue); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.btn-lg { font-size: 13.5px; padding: 20px 38px; min-height: 62px; }
.btn-arrow svg { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow svg, .btn.btn-arrow:hover svg { transform: translateX(4px); }

/* ── NAV ─────────────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 20px 0; transition: padding .35s var(--ease), background .35s var(--ease),
  border-color .35s var(--ease), backdrop-filter .35s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { padding: 12px 0; background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: var(--rule); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--ff-disp); font-weight: 700; font-size: 20px;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.brand-name em { color: var(--blue); font-style: normal; }
.brand-sub { display: block; font-family: var(--ff-mono); font-size: 8.5px; font-weight: 500;
  letter-spacing: .28em; color: var(--w50); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--w50);
  transition: color .2s; position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--blue); box-shadow: 0 0 8px var(--glow-2);
  transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone { font-family: var(--ff-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; color: var(--w70); transition: color .2s; }
.nav-phone:hover { color: var(--blue); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobnav { position: fixed; inset: 0; z-index: 480; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 var(--px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.mobnav.open { opacity: 1; pointer-events: all; }
.mobnav a.ml { font-family: var(--ff-disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 11vw, 60px); line-height: 1.08; color: var(--w50);
  letter-spacing: .01em; transition: color .2s, padding-left .3s var(--ease);
  border-bottom: 1px solid var(--rule-2); padding: 8px 0; }
.mobnav a.ml:hover, .mobnav a.ml:focus-visible { color: var(--white); padding-left: 10px; }
.mobnav a.ml span { color: var(--blue); font-family: var(--ff-mono); font-size: 12px;
  vertical-align: super; margin-right: 12px; letter-spacing: .1em; }
.mobnav-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

@media (max-width: 880px) {
  .nav-links, .nav-right .nav-phone, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
}

/* ── MOBILE STICKY CTA BAR ───────────────────────────────────────────── */
.mobbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 460;
  background: var(--bg-glass); -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px); border-top: 1px solid var(--rule);
  padding: 10px 14px; gap: 10px; }
.mobbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 13px; border-radius: var(--radius); min-height: 48px; }
.mobbar a svg { width: 15px; height: 15px; }
.mobbar .call { background: var(--blue); color: #04070F; }
.mobbar .book { border: 1px solid var(--w12); color: var(--white); }
@media (max-width: 880px) { .mobbar { display: flex; } body { padding-bottom: 70px; } }

/* ══ HERO ════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; padding-bottom: clamp(48px, 8vh, 96px); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { animation: kenburns 26s var(--ease-mech) infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(7,11,24,.55) 34%, rgba(7,11,24,.28) 62%, rgba(7,11,24,.62) 100%),
    linear-gradient(to right, rgba(7,11,24,.72) 0%, rgba(7,11,24,.12) 55%, transparent 100%); }
.hero-glow { position: absolute; z-index: 1; left: 50%; top: 42%; width: 74vw; height: 60vh;
  transform: translate(-50%,-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 62%);
  animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%,100%{opacity:.65;} 50%{opacity:1;} }
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-plate { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
  border: 1px solid var(--w12); border-radius: var(--radius);
  padding: 8px 14px; background: var(--w03);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-plate .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 10px var(--glow-2); }
.hero-plate span { font-family: var(--ff-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--w70); }
.hero h1 { max-width: 15ch; margin-bottom: 26px; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; will-change: transform; }
.hero h1 em { color: var(--blue); font-style: normal;
  text-shadow: 0 0 40px var(--glow-2); }
.hero-sub { max-width: 46ch; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 32px; }
.hero-meta .m { display: flex; align-items: center; gap: 9px;
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--w50); }
.hero-meta .m svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; }
.hero-scroll { position: absolute; z-index: 2; right: var(--px); bottom: clamp(48px, 8vh, 96px);
  display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-scroll .txt { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--w50); writing-mode: vertical-rl; }
.hero-scroll .bar { width: 1px; height: 54px; background: var(--w12); overflow: hidden; position: relative; }
.hero-scroll .bar::after { content: ''; position: absolute; inset: 0; background: var(--blue);
  transform: translateY(-100%); animation: scrolldrip 2.2s var(--ease) infinite; }
@keyframes scrolldrip { 0%{transform:translateY(-100%);} 55%,100%{transform:translateY(100%);} }
@media (max-width: 640px) { .hero-scroll { display: none; } }

/* ══ MARQUEE ═════════════════════════════════════════════════════════ */
.marquee { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: var(--bg2); overflow: hidden; white-space: nowrap; padding: 16px 0; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee.run .marquee-track { animation: ticker 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq { display: inline-flex; align-items: center; gap: 22px; padding: 0 22px;
  font-family: var(--ff-disp); font-weight: 600; font-size: clamp(16px, 2vw, 22px);
  text-transform: uppercase; letter-spacing: .04em; color: var(--w70); }
.mq b { color: var(--blue); font-weight: 600; }
.mq .star { color: var(--blue); font-size: 12px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══ WORK / GALLERY ══════════════════════════════════════════════════ */
.work-top { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--w50); padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--w12); transition: all .22s var(--ease); }
.chip:hover { color: var(--white); border-color: var(--w30); }
.chip.active { color: #04070F; background: var(--blue); border-color: var(--blue);
  box-shadow: 0 6px 20px var(--glow); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 190px); grid-auto-flow: dense; gap: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bg3); grid-row: span 2; cursor: pointer;
  transition: transform .5s var(--ease), opacity .45s var(--ease), filter .45s var(--ease); }
.tile.shape-tall { grid-row: span 3; }
.tile.shape-wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .7s var(--ease);
  filter: saturate(.92) contrast(1.02); }
.tile::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(4,7,15,.92) 0%, rgba(4,7,15,.15) 45%, transparent 70%);
  opacity: .55; transition: opacity .45s var(--ease); }
.tile:hover img { transform: scale(1.08); filter: saturate(1.05) contrast(1.04); }
.tile:hover::after { opacity: .9; }
/* mini corner brackets echo the reticle on hover */
.tile .brk { position: absolute; z-index: 3; width: 16px; height: 16px;
  border: 1.5px solid var(--blue-2); opacity: 0; transition: opacity .3s var(--ease), inset .4s var(--ease); }
.tile .brk.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.tile .brk.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.tile:hover .brk { opacity: .9; }
.tile-info { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px;
  transform: translateY(8px); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.tile:hover .tile-info { transform: none; opacity: 1; }
.tile-info .ti-tag { font-family: var(--ff-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 5px;
  display: flex; gap: 8px; align-items: center; }
.tile-info .ti-title { font-family: var(--ff-disp); font-weight: 600; font-size: 20px;
  text-transform: uppercase; line-height: 1; }
.tile.hide { display: none; }
/* always-visible tiny index tag top-left */
.tile .ti-idx { position: absolute; z-index: 3; top: 14px; left: 14px;
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; color: var(--w50);
  transition: opacity .3s; }
.tile:hover .ti-idx { opacity: 0; }

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 10px; }
  .tile, .tile.shape-tall { grid-row: span 1; }
  .tile.shape-wide { grid-column: span 2; grid-row: span 1; }
  .tile-info { opacity: 1; transform: none; }
  .tile::after { opacity: .8; }
}

/* ══ LIGHTBOX ════════════════════════════════════════════════════════ */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center;
  justify-content: center; padding: clamp(20px, 5vw, 64px);
  background: rgba(4,7,15,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-stage { position: relative; max-width: 1100px; width: 100%; }
.lb-figure { position: relative; transform: scale(.97); transition: transform .4s var(--ease); }
.lightbox.open .lb-figure { transform: none; }
.lb-figure img { width: 100%; height: auto; max-height: 82svh; object-fit: contain;
  border-radius: var(--radius); }
.lb-cap { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 16px; flex-wrap: wrap; }
.lb-cap .t { font-family: var(--ff-disp); font-weight: 600; font-size: clamp(20px, 3vw, 30px);
  text-transform: uppercase; }
.lb-cap .m { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--w50); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--w12); border-radius: 50%; background: var(--w06);
  color: var(--white); transition: all .2s; }
.lb-btn:hover { border-color: var(--blue); background: var(--w12); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev { left: -8px; } .lb-next { right: -8px; }
.lb-close { position: absolute; top: -14px; right: -6px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; color: var(--w70);
  transition: color .2s, transform .2s; }
.lb-close:hover { color: var(--white); transform: rotate(90deg); }
.lb-close svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .lb-btn { width: 42px; height: 42px; } .lb-prev { left: 2px; } .lb-next { right: 2px; }
}

/* ══ BEFORE / AFTER ══════════════════════════════════════════════════ */
.ba { position: relative; }
.ba-frame { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--rule);
  -webkit-user-select: none; user-select: none; touch-action: pan-y; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); filter: saturate(.6) brightness(.82) contrast(.95); }
.ba-tag { position: absolute; z-index: 3; top: 16px; font-family: var(--ff-mono);
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius); background: rgba(4,7,15,.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ba-tag.before { left: 16px; color: var(--w70); }
.ba-tag.after { right: 16px; color: var(--blue-2); }
.ba-handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--blue); box-shadow: 0 0 18px var(--glow-2); transform: translateX(-1px); }
.ba-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #04070F;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px var(--glow-2); cursor: ew-resize; }
.ba-grip svg { width: 22px; height: 22px; }
.ba input[type=range] { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; }

/* ══ SERVICES ════════════════════════════════════════════════════════ */
.svc-list { border-top: 1px solid var(--rule); }
.svc { border-bottom: 1px solid var(--rule); }
.svc-hd { display: grid; grid-template-columns: 58px 1fr auto; align-items: center;
  gap: 22px; padding: clamp(22px, 3.2vw, 34px) 4px; width: 100%; text-align: left;
  transition: padding-left .3s var(--ease); }
.svc-hd:hover { padding-left: 12px; }
.svc-num { font-family: var(--ff-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--blue); }
.svc-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.svc-title .n { font-family: var(--ff-disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 4.6vw, 56px); line-height: .95; color: var(--w70);
  transition: color .25s; }
.svc:hover .svc-title .n, .svc.open .svc-title .n { color: var(--white); }
.svc-title .tag { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.svc-ico { width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--w50);
  transition: all .35s var(--ease); flex-shrink: 0; }
.svc-ico svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.svc.open .svc-ico { background: var(--blue); color: #04070F; border-color: var(--blue);
  box-shadow: 0 0 22px var(--glow); }
.svc.open .svc-ico svg { transform: rotate(45deg); }
.svc-body { overflow: hidden; max-height: 0; transition: max-height .6s var(--ease); }
.svc.open .svc-body { max-height: 520px; }
.svc-body-in { display: grid; grid-template-columns: 58px 1fr; gap: 22px;
  padding: 0 4px clamp(28px, 4vw, 44px); }
.svc-desc { color: var(--w70); max-width: 60ch; margin-bottom: 24px; }
.svc-feats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 30px; }
.svc-feat { display: flex; gap: 11px; font-size: 14.5px; color: var(--w70); line-height: 1.5; }
.svc-feat svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.svc-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.svc-tier { background: var(--bg2); padding: clamp(18px, 2.4vw, 26px); }
.svc-tier .tn { font-family: var(--ff-disp); font-weight: 700; text-transform: uppercase;
  font-size: 22px; margin-bottom: 8px; }
.svc-tier .tn .k { font-family: var(--ff-mono); font-size: 10px; color: var(--blue);
  letter-spacing: .14em; display: block; margin-bottom: 6px; }
.svc-tier .td { font-size: 13.5px; color: var(--w50); line-height: 1.55; }
.svc-note { grid-column: 1 / -1; margin-top: 16px; font-family: var(--ff-mono);
  font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 720px) {
  .svc-hd { grid-template-columns: 34px 1fr auto; gap: 14px; }
  .svc-body-in { grid-template-columns: 1fr; }
  .svc-feats, .svc-tiers { grid-template-columns: 1fr; }
  .svc-body-in > .svc-num-spacer { display: none; }
}

/* ══ PROCESS ═════════════════════════════════════════════════════════ */
.proc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.proc-step { background: var(--bg2); padding: clamp(26px, 3.4vw, 44px);
  position: relative; transition: background .35s var(--ease); }
.proc-step:hover { background: var(--bg3); }
.proc-step .pn { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--blue); margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }
.proc-step .pn .l { width: 24px; height: 1px; background: var(--blue); }
.proc-step h3 { font-family: var(--ff-disp); font-weight: 700; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1; margin-bottom: 12px; }
.proc-step p { font-size: 14.5px; color: var(--w50); line-height: 1.6; max-width: 34ch; }
.proc-step .big { position: absolute; right: 18px; bottom: 6px; font-family: var(--ff-disp);
  font-weight: 700; font-size: 84px; line-height: 1; color: var(--w03);
  pointer-events: none; }
@media (max-width: 720px) { .proc { grid-template-columns: 1fr; } }

/* ══ STATS ═══════════════════════════════════════════════════════════ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { background: var(--bg); padding: clamp(28px, 4vw, 52px) clamp(18px, 2.6vw, 34px); }
.stat .v { font-family: var(--ff-disp); font-weight: 700; color: var(--blue);
  font-size: clamp(44px, 6vw, 78px); line-height: .9; letter-spacing: .01em;
  text-shadow: 0 0 40px var(--glow); }
.stat .v span { font-size: .5em; color: var(--w50); }
.stat .k { font-family: var(--ff-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--w50); margin-top: 12px; line-height: 1.5; max-width: 22ch; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ══ ABOUT ═══════════════════════════════════════════════════════════ */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 72px);
  align-items: center; }
.about-media { position: relative; }
.about-media .ph { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.about-media .ph img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-media .badge { position: absolute; left: -18px; bottom: -18px; background: var(--bg3);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.about-media .badge .v { font-family: var(--ff-disp); font-weight: 700; font-size: 40px;
  color: var(--blue); line-height: 1; }
.about-media .badge .k { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--w50); margin-top: 6px; }
.about-copy p { color: var(--w70); margin-bottom: 18px; max-width: 52ch; }
.about-copy p.big { font-size: clamp(18px, 2vw, 22px); color: var(--white); line-height: 1.5; }
.about-sign { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.about-sign .nm { font-family: var(--ff-disp); font-weight: 700; text-transform: uppercase;
  font-size: 26px; }
.about-sign .rl { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; } .about-media .badge { left: auto; right: 16px; } }

/* ══ CONTACT ═════════════════════════════════════════════════════════ */
.contact { position: relative; overflow: hidden; }
.contact-glow { position: absolute; z-index: 0; left: 12%; top: 30%; width: 60vw; height: 60vh;
  transform: translate(-50%,-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 62%);
  animation: breathe 8s ease-in-out infinite; }
.contact-grid { position: relative; z-index: 1; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.contact-lead h2 { margin-bottom: 22px; }
.contact-lines { margin-top: 34px; display: flex; flex-direction: column; gap: 2px; }
.cl { display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-top: 1px solid var(--rule); transition: padding-left .3s var(--ease); }
.cl:last-child { border-bottom: 1px solid var(--rule); }
.cl:hover { padding-left: 8px; }
.cl svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.cl .k { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--w50); }
.cl .v { font-family: var(--ff-disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(18px, 2vw, 24px); }

.form { background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 40px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--w50); }
.field label em { color: var(--blue); font-style: normal; }
.field input, .field textarea, .field select {
  background: var(--w03); border: 1px solid var(--w12); border-radius: var(--radius);
  padding: 14px 16px; color: var(--white); transition: border-color .2s, background .2s; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); background: var(--w06); }
.field textarea { resize: vertical; min-height: 118px; }
.field select { appearance: none; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236B7C99' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-foot { margin-top: 6px; }
.form-note { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--muted); margin-top: 14px; }
.form-err { color: #FF6B6B; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .03em;
  margin-top: 14px; display: none; }
.form-err.show { display: block; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ══ CTA BAND ════════════════════════════════════════════════════════ */
.cta-band { position: relative; overflow: hidden; text-align: center;
  padding: clamp(72px, 11vw, 128px) 0; border-top: 1px solid var(--rule); }
.cta-band .glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 120%, var(--glow) 0%, transparent 60%); }
.cta-band .in { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 auto 26px; max-width: 18ch; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══ FOOTER ══════════════════════════════════════════════════════════ */
footer { border-top: 1px solid var(--rule); padding: 56px 0 32px; background: var(--bg2); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 36px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.foot-brand { max-width: 300px; }
.foot-brand .tag { color: var(--w50); font-size: 14px; margin-top: 14px; line-height: 1.6; }
.foot-cols { display: flex; gap: clamp(30px, 6vw, 72px); flex-wrap: wrap; }
.foot-col h4 { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: 14px; color: var(--w50);
  margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; }
.foot-bottom .c { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .05em;
  color: var(--muted); }
.foot-bottom .c b { color: var(--blue); font-weight: 500; }
.foot-disclaimer { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .04em;
  color: var(--w30); margin-top: 18px; max-width: 70ch; line-height: 1.7; }

/* ── PRELOADER ───────────────────────────────────────────────────────── */
.preloader { position: fixed; inset: 0; z-index: 9600; display: grid;
  grid-template-columns: repeat(6, 1fr); pointer-events: none; }
.preloader .strip { background: var(--bg2); transition: transform .8s cubic-bezier(.76,0,.24,1); }
.preloader.exit .strip:nth-child(odd)  { transform: translateY(-101%); }
.preloader.exit .strip:nth-child(even) { transform: translateY(101%); }
.preloader.exit .strip:nth-child(2) { transition-delay: .07s; }
.preloader.exit .strip:nth-child(3) { transition-delay: .13s; }
.preloader.exit .strip:nth-child(4) { transition-delay: .13s; }
.preloader.exit .strip:nth-child(5) { transition-delay: .07s; }
.preloader.done { display: none; }
.pre-badge { position: fixed; inset: 0; z-index: 9601; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; pointer-events: none;
  transition: opacity .4s ease; }
.pre-badge.hide { opacity: 0; }
.pre-badge .rig { display: flex; align-items: center; gap: 14px; }
.pre-badge .rmark { width: 40px; height: 40px; }
.pre-badge .wm { font-family: var(--ff-disp); font-weight: 700; font-size: clamp(26px, 5vw, 42px);
  text-transform: uppercase; letter-spacing: .03em; }
.pre-badge .wm em { color: var(--blue); font-style: normal; }
.pre-bar { width: min(220px, 50vw); height: 2px; background: var(--w12); overflow: hidden; }
.pre-bar b { display: block; height: 100%; width: 0; background: var(--blue);
  box-shadow: 0 0 12px var(--glow-2); animation: preload 1.1s var(--ease) forwards; }
@keyframes preload { to { width: 100%; } }
.pre-badge .meta { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--w50); }

/* ── UTIL ────────────────────────────────────────────────────────────── */
/* offset anchor jumps for the fixed nav */
#top, #work, #grade, #quote, #services, #process, #stats, #about, #contact {
  scroll-margin-top: 84px;
}
.divider-hairline { height: 1px; background: var(--rule); }
.only-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 9999; background: var(--blue);
  color: #04070F; padding: 10px 16px; border-radius: var(--radius); font-family: var(--ff-mono);
  font-size: 12px; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ── REDUCED MOTION ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; }
  .rev { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-media img { animation: none !important; transform: scale(1.04); }
  .reticle, .reticle-label { display: none !important; }
  html.has-reticle, html.has-reticle * { cursor: auto !important; }
  .marquee-track { animation: none !important; }
  .rec-dot { animation: none !important; }
  .preloader, .pre-badge { display: none !important; }
}
