/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0c;
  --surface: #131316;
  --surface-2: #1a1a1f;
  --border: rgba(255,255,255,.07);
  --border-hover: rgba(35,112,255,.42);
  --gold: #d4af5a;
  --gold-dim: rgba(212,175,90,.12);
  --blue: #176cff;
  --blue-bright: #3d8aff;
  --blue-dim: rgba(23,108,255,.13);
  --text: #f4f2ee;
  --muted: #9a9690;
  --wrap: 1140px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 14px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ── Centered layout ── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}

.header.solid {
  background: rgba(10,10,12,.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
}

.brand > span {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: .2rem;
  color: var(--blue-bright);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand--footer { font-size: 1rem; }
.brand--footer img { width: 64px; height: 64px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a:not(.btn) {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s var(--ease);
  position: relative;
}

.header-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width .3s var(--ease), left .3s var(--ease);
}

.header-nav a:not(.btn):hover {
  color: var(--text);
}

.header-nav a:not(.btn):hover::after {
  width: 100%;
  left: 0;
}

.header-phone {
  font-weight: 600 !important;
  color: var(--text) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  z-index: 201;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 55%, #0847b9 100%);
  color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s;
  box-shadow: 0 4px 20px rgba(23,108,255,.28);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(23,108,255,.4);
}

.btn:active { transform: translateY(0); }

.btn-sm {
  padding: .65rem 1.25rem;
  font-size: .825rem;
}

.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  box-shadow: none;
}

.btn-full { width: 100%; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video { opacity: 0; transition: opacity 1s var(--ease); }
.hero-video.on { opacity: 1; }
.hero:has(.hero-video.on) .hero-poster { opacity: 0; transition: opacity 1s var(--ease); }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(10,10,12,.4) 0%, rgba(10,10,12,.75) 100%),
    linear-gradient(to bottom, rgba(10,10,12,.15) 0%, rgba(10,10,12,.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
  max-width: 780px;
}

.kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.25rem;
  padding: .4rem 1rem;
  background: var(--blue-dim);
  border: 1px solid rgba(61,138,255,.25);
  border-radius: 100px;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue-bright);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.65);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color .3s;
}

.hero-scroll:hover { border-color: var(--blue); }

.hero-scroll span {
  width: 4px;
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: .4; }
}

/* ── Stats ── */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -3rem;
  padding-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.stat {
  text-align: center;
  padding: .5rem 1rem;
}

.stat:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--blue-bright);
  line-height: 1.2;
  margin-bottom: .25rem;
}

.stat-label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Sections ── */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-head h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Service cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.service-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.service-card:hover .service-img img {
  transform: scale(1.06);
}

.service-body {
  padding: 1.5rem;
}

.service-num {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue-bright);
  margin-bottom: .5rem;
}

.service-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.service-body p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.about-video {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.about-video video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.about-text h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  padding: .75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .3s;
}

.feature-list li:hover { border-color: var(--border-hover); }

.feature-list svg {
  flex-shrink: 0;
  color: var(--blue-bright);
}

.trust-box {
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--blue-dim), rgba(23,108,255,.04));
  border: 1px solid rgba(61,138,255,.28);
  border-radius: 12px;
}

.trust-box strong {
  display: block;
  margin-bottom: .4rem;
  color: #fff;
  font-size: 1.05rem;
}

.trust-box p { margin: 0; font-size: .9rem; }

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.gallery-item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  transition: transform .6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item--missing {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(23,108,255,.13), rgba(255,255,255,.02)),
    var(--surface);
}

.gallery-item--missing::after {
  content: 'Project photo';
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.contact-card:not(.contact-card--static):hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dim);
  border-radius: 12px;
  color: var(--blue-bright);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .15rem;
}

.contact-value {
  font-size: .95rem;
  font-weight: 600;
}

.quote-panel {
  padding: 2rem;
  background:
    linear-gradient(145deg, rgba(23,108,255,.12), transparent 55%),
    var(--surface);
  border: 1px solid rgba(61,138,255,.25);
  border-radius: var(--radius);
}

.quote-panel-label {
  display: inline-block;
  margin-bottom: .8rem;
  color: var(--blue-bright);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quote-panel h3 {
  margin-bottom: .75rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.quote-panel p,
.quote-panel small { color: var(--muted); }

.quote-panel ul {
  display: grid;
  gap: .55rem;
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: .9rem;
}

.quote-panel small {
  display: block;
  margin-top: .75rem;
  text-align: center;
  font-size: .72rem;
}

/* ── Form ── */
.form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.form input,
.form textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  font-family: inherit;
  font-size: .9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.form input::placeholder,
.form textarea::placeholder { color: rgba(154,150,144,.6); }

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form textarea { resize: vertical; min-height: 120px; }

.form.done {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  text-align: center;
}

.form.done h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: .75rem;
}

.form.done p { color: var(--muted); }

/* ── Footer ── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer p {
  font-size: .825rem;
  color: var(--muted);
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    inset: 0;
    background: rgba(10,10,12,.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 200;
  }

  .header-nav.open { transform: translateX(0); }
  .header-nav a:not(.btn) { font-size: 1.2rem; color: var(--text); }
  .header-nav a:not(.btn)::after { display: none; }
  .menu-toggle { display: flex; }

  .stats { margin-top: -2rem; }
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
  }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item--featured { grid-column: auto; grid-row: auto; }
  .brand > span { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
  .service-card:hover,
  .gallery-item:hover img { transform: none; }
}
