:root {
  --ink: #19233e;
  --accent: #a51e29;
  --line: #dce0e3;
  --muted: #495663;
  --soft: #5c6670;
  --cream: #f4f2ee;
  --blush: #f9edef;
  --white: #fff;
  --header-h: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--white);
  padding: 12px 16px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.eyebrow.light { color: #f4c9cd; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(42px, 7.2vw, 86px); letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 0 0 18px; }
h3 { font-size: 28px; letter-spacing: -0.02em; }

p { font-size: 17px; margin: 0 0 1em; }
.lede { color: var(--muted); max-width: 36rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: linear-gradient(180deg, rgba(10,16,28,0.62) 0%, rgba(10,16,28,0.2) 70%, transparent 100%);
  color: var(--white);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.site-header.is-solid,
.site-header.is-open {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  line-height: 1;
}
.brand img { width: 64px; height: 64px; flex: none; }
.brand-name {
  display: grid;
  gap: 4px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand-name strong { color: #f2d5d7; }
.site-header.is-solid .brand-name strong,
.site-header.is-open .brand-name strong { color: var(--accent); }
.brand-name small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  opacity: 0.85;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
nav a:hover { color: var(--accent); }
.nav-call {
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid currentColor;
  border-radius: 9px;
}
.nav-call:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

.menu {
  display: none;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 10px 14px;
  border-radius: 5px;
  cursor: pointer;
}

/* Buttons */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.button.ghost,
.hero .button.ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.hero .button.ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: var(--white);
}
.button.ghost-dark {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.button.ghost-dark:hover {
  background: var(--blush);
  color: var(--ink);
  border-color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 30%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,16,28,0.55) 0%, rgba(10,16,28,0.15) 36%, rgba(10,16,28,0.55) 70%, rgba(10,16,28,0.82) 100%),
    linear-gradient(90deg, rgba(10,16,28,0.45) 0%, rgba(10,16,28,0.05) 55%);
}
.hero-copy {
  padding: 0 0 88px;
  max-width: 1180px;
}
.hero h1 { margin: 0 0 22px; }
.intro {
  font-size: 19px;
  max-width: 28rem;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.9);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Services */
.services { padding: 88px 0; border-bottom: 1px solid var(--line); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.service-card {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px 32px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px #19233e14;
}
.service-num {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--accent);
  font-size: 22px;
  display: block;
  margin-bottom: 28px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin: 0; font-size: 15px; color: var(--muted); }

/* Work / gallery */
.work { padding: 88px 0; border-bottom: 1px solid var(--line); background: var(--cream); }
.work-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}
.work-intro p { margin: 0; color: var(--muted); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.gallery-item img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(transparent, rgba(10,16,28,0.8));
  color: var(--white);
  font-size: 14px;
  text-align: left;
}
.instagram-note { margin: 22px 0 0; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 28px;
}
.filter-btn {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.gallery-item.is-hidden { display: none; }

/* Videos */
.videos { padding: 88px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 32px;
  justify-content: center;
}
.video-card { margin: 0; width: 100%; }
.video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #111;
  border-radius: 16px;
}
.video-card figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.subtle {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.subtle:hover, .phone:hover, .social:hover { color: var(--accent); }

/* About */
.about { padding: 88px 0; border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.credentials { padding-top: 46px; }
.credentials p {
  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.credentials p:last-child { border-bottom: 0; }

/* Contact */
.contact { padding: 88px 0 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.phone {
  display: block;
  font-size: 32px;
  margin: 16px 0 24px;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .button { flex: 1 1 140px; }
.address-block { margin-top: 40px; }
.address-block address { font-size: 17px; line-height: 1.7; }
.social { display: inline-block; margin-top: 18px; }

.quote-form {
  background: var(--cream);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  gap: 16px;
}
.quote-form label { display: grid; gap: 6px; }
.quote-form label span {
  font-size: 13px;
  font-weight: 600;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 12px 14px;
}
.quote-form textarea { resize: vertical; min-height: 120px; }
.quote-form .button { margin-top: 6px; justify-self: start; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Footer */
footer {
  border-top: 3px solid var(--accent);
  padding: 24px 0 40px;
  font-size: 12px;
  color: var(--soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  align-items: center;
}
footer a { text-decoration: underline; text-underline-offset: 4px; }

.dock { display: none; }

/* Lightbox */
#lightbox {
  border: 0;
  padding: 16px;
  background: transparent;
  max-width: min(960px, calc(100vw - 32px));
  color: var(--white);
}
#lightbox::backdrop { background: #06121dd9; }
#lightbox img {
  max-height: min(76vh, 900px);
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 8px;
}
#lightbox-caption { text-align: center; margin: 12px 0 0; font-size: 14px; }
.lightbox-close {
  display: block;
  margin: 0 0 12px auto;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
}

/* Thank you */
.thanks { min-height: 70svh; padding: 160px 0 80px; }
.thanks-inner { max-width: 640px; }
.thanks .actions { margin-top: 8px; }

@media (max-width: 1000px) and (min-width: 801px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .brand img { width: 54px; height: 54px; }
  .brand-name { font-size: 18px; }
  .brand-name small { font-size: 9px; }
  .menu { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px #19233e12;
  }
  nav.open { display: flex; }
  nav a { padding: 12px 0; }
  .nav-call { margin-top: 8px; text-align: center; }

  .hero { min-height: 92svh; }
  .hero-copy { padding-bottom: 48px; }
  .hero h1 { font-size: 48px; letter-spacing: -0.03em; }
  .intro { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }

  .services, .work, .videos, .about, .contact { padding: 56px 0; }
  .service-grid,
  .work-intro,
  .gallery,
  .video-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-item img { height: 420px; }
  .gallery-filters { margin-bottom: 20px; }
  .credentials { padding-top: 8px; }
  .phone { font-size: 28px; }
  .quote-form { padding: 22px 18px; }
  .quote-form .button { width: 100%; justify-content: center; }

  .dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    gap: 10px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: #fffffff5;
    border-top: 1px solid var(--line);
    z-index: 20;
  }
  .dock .button { flex: 1; padding: 13px; font-size: 14px; }
  .dock .whatsapp { background: var(--white); color: var(--ink); }
  .contact .actions { display: none; }
  footer { padding-bottom: 110px; font-size: 11px; }
  .contact { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .gallery-item:hover img { transform: none; }
}
