/* ============================================================
   Detail Dubai Studio — stylesheet
   Mobile-first. Dark cinematic hero + light editorial bands.
   Signature motif: "optic lines" (studio ceiling) + road-line dividers.
   ============================================================ */

:root {
  --bg: #F4F5F7;
  --paper: #FFFFFF;
  --ink: #111318;
  --muted: #6B7280;
  --border: #E3E7EC;
  --primary: #D62828;   /* brand red */
  --primary-700: #B11F1F;
  --accent: #F5A300;    /* gold */
  --night: #15171C;     /* dark band */
  --night-2: #0C0D10;
  --night-line: rgba(255,255,255,.10);
  --focus: #F5A300;

  --maxw: 1200px;
  --gutter: clamp(18px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16,19,24,.06), 0 2px 8px rgba(16,19,24,.05);
  --shadow-md: 0 10px 30px rgba(16,19,24,.10);
  --shadow-lg: 0 30px 70px rgba(12,13,16,.30);

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --header-h: 70px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow.on-dark { color: var(--accent); }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  display: inline-block;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--ink);
  --fg-btn: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  background: var(--bg-btn);
  color: var(--fg-btn);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --bg-btn: var(--primary); --fg-btn: #fff; box-shadow: 0 8px 22px rgba(214,40,40,.30); }
.btn--primary:hover { --bg-btn: var(--primary-700); box-shadow: 0 12px 30px rgba(214,40,40,.40); }

.btn--dark { --bg-btn: var(--ink); --fg-btn: #fff; }
.btn--dark:hover { --bg-btn: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(17,19,24,.04); }

.btn--ghost-light {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }

.btn--block { width: 100%; }

/* ---------- Optic line motif (decorative) ---------- */
.optic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.optic line { stroke: var(--accent); stroke-width: 1; opacity: .5; }

/* road-line divider: a centerline with gold dashes */
.roadline {
  height: 2px;
  width: 100%;
  background-image: linear-gradient(90deg, var(--accent) 0 38px, transparent 38px 70px);
  background-size: 70px 2px;
  opacity: .55;
}
.roadline.dim { background-image: linear-gradient(90deg, rgba(255,255,255,.4) 0 38px, transparent 38px 70px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.site-header.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(16,19,24,.06);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__chip {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: #fff;
  display: grid; place-items: center;
  padding: 5px;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand__chip img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .3s ease;
}
.brand__name span {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
  transition: color .3s ease;
}
/* over hero (not scrolled) → light text */
.site-header:not(.scrolled) .brand__name b { color: #fff; }
.site-header:not(.scrolled) .brand__name span { color: rgba(255,255,255,.72); }

.nav { display: none; }
.nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 2px;
  position: relative;
  transition: color .25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 2px; background: var(--primary); transition: right .25s ease;
}
.nav a:hover::after { right: 0; }
.site-header:not(.scrolled) .nav a { color: rgba(255,255,255,.86); }
.site-header:not(.scrolled) .nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }

/* hamburger */
.menu-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
}
.site-header:not(.scrolled) .menu-btn {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}
.menu-btn span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.site-header:not(.scrolled) .menu-btn span,
.site-header:not(.scrolled) .menu-btn span::before,
.site-header:not(.scrolled) .menu-btn span::after { background: #fff; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--night-2);
  color: #fff;
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  visibility: hidden;
}
.drawer.open { transform: translateY(0); visibility: visible; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); margin-bottom: 18px; }
.drawer__close {
  width: 46px; height: 46px; border-radius: 11px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; font-size: 22px;
}
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer nav a span { font-size: 13px; color: var(--accent); font-family: var(--font-body); letter-spacing: .1em; }
.drawer__foot { margin-top: auto; display: grid; gap: 12px; padding-top: 26px; }
.drawer__foot .btn { width: 100%; }
.drawer__phone { color: rgba(255,255,255,.6); font-size: 14px; }
.drawer__phone b { color: #fff; font-family: var(--font-display); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--night-2);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,9,11,.55) 0%, rgba(8,9,11,.15) 26%, rgba(8,9,11,.35) 58%, rgba(8,9,11,.92) 100%),
    linear-gradient(90deg, rgba(8,9,11,.6) 0%, rgba(8,9,11,0) 60%);
}
.hero__optic { position: absolute; inset: 0; z-index: 2; opacity: .6; pointer-events: none; }

.hero__inner {
  position: relative; z-index: 3;
  width: 100%;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(40px, 9vh, 110px);
}
.hero__eyebrow { color: var(--accent); margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(40px, 11.5vw, 92px);
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub {
  font-size: clamp(16px, 4.4vw, 20px);
  color: rgba(255,255,255,.82);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__cta .btn { flex: 1 1 auto; min-width: 0; }

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.rating-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.rating-chip .stars { color: var(--accent); letter-spacing: 1px; font-size: 14px; }
.rating-chip small { color: rgba(255,255,255,.6); font-weight: 400; font-family: var(--font-body); }
.meta-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero__meta .meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.78); }
.hero__meta .meta-item svg { width: 16px; height: 16px; color: var(--accent); }

/* scroll hint */
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 3; display: none; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-hint .line { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.6), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0%,100% { opacity:.3; transform: scaleY(.5); transform-origin: top; } 50% { opacity:1; transform: scaleY(1);} }

/* ============================================================
   Ticker / trust strip
   ============================================================ */
.ticker {
  background: var(--night);
  color: #fff;
  border-block: 1px solid var(--night-line);
  overflow: hidden;
  position: relative;
}
.ticker__track {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
  will-change: transform;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  color: rgba(255,255,255,.85);
}
.ticker__item b { color: #fff; }
.ticker__item .d { color: var(--accent); }
.ticker__sep { width: 6px; height: 6px; transform: rotate(45deg); background: var(--primary); flex: none; }
@keyframes ticker { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ============================================================
   Section scaffold
   ============================================================ */
.section { padding-block: clamp(56px, 9vw, 120px); position: relative; }
.section--paper { background: var(--paper); }
.section--bg { background: var(--bg); }
.section--night { background: var(--night); color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(30px, 5vw, 54px); }
.section-head h2 { font-size: clamp(30px, 7vw, 54px); margin: 16px 0 0; }
.section-head p { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 4vw, 18px); }
.section--night .section-head p { color: rgba(255,255,255,.66); }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night-2);
  color: #fff;
  min-height: 300px;
  display: flex;
  isolation: isolate;
}
.service-card img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,11,13,.05) 0%, rgba(10,11,13,.25) 42%, rgba(10,11,13,.9) 100%);
}
.service-card:hover img { transform: scale(1.06); }
.service-card__body { position: relative; z-index: 2; margin-top: auto; padding: 26px; }
.service-card__num {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--accent); letter-spacing: .1em; margin-bottom: 10px;
}
.service-card h3 { font-size: 26px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: rgba(255,255,255,.8); max-width: 38ch; }
.service-card__tag {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: rgba(12,13,16,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; padding: 7px 12px; border-radius: 999px;
}
.service-card.tall { min-height: 340px; }

/* ============================================================
   Magazine / story bands
   ============================================================ */
.band { display: grid; grid-template-columns: 1fr; align-items: center; gap: clamp(26px, 5vw, 60px); }
.band__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.band__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.band__media .pin {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(12,13,16,.6); backdrop-filter: blur(8px); color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 8px;
}
.band__media .pin svg { width: 14px; height: 14px; color: var(--accent); }
.band__body h2 { font-size: clamp(28px, 7vw, 48px); margin: 16px 0 18px; }
.band__body p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.section--night .band__body p { color: rgba(255,255,255,.7); }
.band__list { display: grid; gap: 12px; margin: 22px 0 26px; padding: 0; list-style: none; }
.band__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.band__list li svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: 1px; }
.section--night .band__list li svg { color: var(--accent); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.filter-chip {
  border: 1.5px solid var(--border); background: var(--paper);
  border-radius: 999px; padding: 9px 17px;
  font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--ink);
  transition: all .2s ease;
}
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-chip:hover { border-color: var(--ink); }

.gallery {
  columns: 2;
  column-gap: 14px;
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--night-2);
  display: block;
  width: 100%;
  border: 0; padding: 0;
  transition: transform .3s ease;
}
.gallery__item img { width: 100%; height: auto; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,11,13,.6) 100%);
  opacity: 0; transition: opacity .3s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  opacity: 0; transform: translateY(6px); transition: all .3s ease;
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__item.is-hidden { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,9,11,.94);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 22px; display: grid; place-items: center;
}
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { top: 18px; right: 18px; transform: none; }
.lb-btn:hover { background: rgba(255,255,255,.2); }

/* ============================================================
   Process
   ============================================================ */
.process { position: relative; }
.process-steps { display: grid; grid-template-columns: 1fr; gap: 14px; position: relative; }
.step {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.section--night .step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.step__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 46px; line-height: 1; color: var(--border);
  -webkit-text-stroke: 0; margin-bottom: 14px;
}
.section--night .step__num { color: rgba(255,255,255,.18); }
.step.active .step__num, .step:hover .step__num { color: var(--primary); }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }
.section--night .step p { color: rgba(255,255,255,.65); }
.step__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); transform: scaleY(0); transform-origin: top; transition: transform .4s ease; }
.step:hover .step__bar { transform: scaleY(1); }

/* ============================================================
   Contact console
   ============================================================ */
.console { display: grid; grid-template-columns: 1fr; gap: 18px; }
.console__panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.console__map { position: relative; aspect-ratio: 16/10; background: #e9edf2; overflow: hidden; }
.console__map img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.map-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, #e7ebf1 0 22px, #eef1f5 22px 44px);
  display: grid; place-items: center;
}
.map-label {
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 9px; box-shadow: var(--shadow-sm);
}
.map-label .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(214,40,40,.2); }
.console__info { padding: 26px; }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-row:last-of-type { border-bottom: 0; }
.info-row__icon { width: 40px; height: 40px; border-radius: 11px; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--primary); }
.info-row__icon svg { width: 19px; height: 19px; }
.info-row__t { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.info-row__v { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--ink); }
.info-row__v a:hover { color: var(--primary); }
.console__info .btn { width: 100%; margin-top: 20px; }

/* form */
.form { padding: 26px; }
.form h3 { font-size: 24px; margin-bottom: 6px; }
.form > p.muted { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 11px;
  padding: 13px 14px; transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; outline: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--primary); background: #fff5f5; }
.field__err { color: var(--primary); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid .field__err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-pref { display: flex; gap: 8px; flex-wrap: wrap; }
.pref-opt { position: relative; }
.pref-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pref-opt span {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 15px;
  font-size: 14px; font-weight: 500; transition: all .18s ease; background: var(--bg);
}
.pref-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pref-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form__success {
  display: none;
  text-align: center; padding: 30px 10px;
}
.form__success.show { display: block; }
.form__success .check {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(31,138,91,.12); color: #1F8A5B;
  display: grid; place-items: center; margin: 0 auto 18px;
}
.form__success .check svg { width: 30px; height: 30px; }
.form__success h3 { font-size: 24px; margin-bottom: 8px; }
.form__success p { color: var(--muted); }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--night-2); color: rgba(255,255,255,.7); padding-top: clamp(50px, 8vw, 84px); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
.footer-brand .brand__name b { color: #fff; }
.footer-brand .brand__name span { color: rgba(255,255,255,.55); }
.footer-brand p { margin-top: 18px; font-size: 14.5px; max-width: 36ch; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 15px; color: rgba(255,255,255,.78); transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; color: #fff; transition: all .2s ease;
}
.social-row a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.social-row a svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0 calc(22px + var(--bottombar-h, 0px));
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom .disclaimer { line-height: 1.5; }

/* ============================================================
   Mobile bottom action bar
   ============================================================ */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(12,13,16,.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  gap: 6px;
}
.bottombar a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: 12px; color: #fff;
  font-size: 11.5px; font-weight: 600; font-family: var(--font-display);
  min-height: 48px; justify-content: center;
}
.bottombar a svg { width: 20px; height: 20px; }
.bottombar a.primary { background: var(--primary); }
.bottombar a.is-mid { background: rgba(255,255,255,.08); }

/* reveal animation */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 600px) {
  .gallery { columns: 3; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 0 1 auto; }
}

@media (min-width: 860px) {
  :root { --header-h: 80px; }
  .nav { display: flex; align-items: center; gap: 30px; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .bottombar { display: none; }
  .site-footer { padding-bottom: 0; }
  .footer-bottom { padding-bottom: 22px; }

  .scroll-hint { display: flex; }

  .services-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; }
  .service-card.span-2 { grid-column: span 2; }
  .service-card.row-2 { grid-row: span 1; }

  .band { grid-template-columns: 1.05fr 1fr; }
  .band.reverse .band__media { order: 2; }
  .band--media-lg { grid-template-columns: 1.2fr 1fr; }

  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .console { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .console--map-form { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
  .gallery { columns: 4; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: clamp(56px, 6.6vw, 96px); }
}

/* spacing so fixed bottom bar doesn't cover footer on mobile */
@media (max-width: 859px) {
  body { --bottombar-h: 64px; }
  .site-footer { margin-bottom: 0; }
}
