:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --ink: #16181d;
  --ink-soft: #4a4f5a;
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --radius: 10px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40ch; }
.lead-wide { max-width: none; }
.lead strong { color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .45em; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; margin-right: .15em; }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-mark { font-weight: 900; font-size: 1.45rem; color: var(--red); letter-spacing: .02em; }
.brand-sub { font-weight: 800; font-size: .7rem; letter-spacing: .27em; margin-right: -.27em; margin-top: 3px; text-transform: uppercase; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav a.nav-cta { color: #fff; background: var(--red); padding: 8px 16px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--red-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 16, .15) 0%, rgba(10, 12, 16, .35) 45%, rgba(10, 12, 16, .85) 100%); }
.hero-content { position: relative; padding-top: 120px; padding-bottom: 72px; width: 100%; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; max-width: 16ch; margin-bottom: .3em; }
.hero .lead { color: rgba(255, 255, 255, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* Services */
.services { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.service svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: #fdeef0; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.service h3 { margin-bottom: .4em; }
.service p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Projects */
.project { margin-top: 56px; }
.project-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 18px; }
.project-head h3 { font-size: 1.5rem; margin: 0; }
.project-head p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.project-sites { list-style: none; padding: 0; margin: .5em 0 0; font-weight: 600; line-height: 1.5; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 10px; }
.tile { display: block; position: relative; overflow: hidden; border-radius: 8px; background: #dde0e5; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.tile-wide { grid-column: span 2; grid-row: span 2; }
.tile-tall { grid-row: span 2; }

/* Team */
.team { --per-row: 5; list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.team li { flex: 0 0 calc((100% - (var(--per-row) - 1) * 16px) / var(--per-row)); }
.team img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.team-role { display: block; margin-top: 10px; text-align: center; font-weight: 700; font-size: .85rem; line-height: 1.3; }
@media (min-width: 1100px) { .team-role { white-space: nowrap; } }

/* Contact */
.section.contact { padding: 56px 0; }
.contact { background: var(--ink); color: #fff; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .3em; }
.contact .lead { color: rgba(255, 255, 255, .75); margin: 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; align-items: center; }
.contact-intro { display: flex; align-items: center; gap: 24px; }
.contact-logo { width: 96px; height: auto; flex: none; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  text-decoration: none; transition: background .15s, border-color .15s;
}
.contact-card:hover { background: var(--red); border-color: var(--red); }
.contact-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.contact-value { font-size: clamp(1rem, 4.6vw, 1.35rem); font-weight: 700; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: #0e0f12; color: rgba(255, 255, 255, .6); font-size: .82rem; padding: 14px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer p { margin: 0; }
.site-footer strong { color: #fff; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 9, 12, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: calc(100vw - 140px); text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); margin-top: 12px; font-size: .95rem; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .team { --per-row: 3; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav a.nav-cta { border-radius: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .team { --per-row: 2; }
  .section.contact { padding: 44px 0; }
  .contact-intro { gap: 16px; }
  .contact-logo { width: 72px; }
  .hero-content { padding-bottom: 48px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .lightbox figure { max-width: 100vw; padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}
