:root {
  --ink: #111820;
  --steel: #26323d;
  --steel-2: #354451;
  --paper: #f4f6f7;
  --white: #ffffff;
  --muted: #61707c;
  --line: #d7dde1;
  --accent: #d46a2f;
  --accent-dark: #ad4f1f;
  --shadow: 0 18px 48px rgba(8, 18, 27, .14);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.topbar {
  background: #0c1218;
  color: #dfe5e9;
  font-size: .9rem;
}
.topbar .container {
  min-height: 42px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 25, 35, .06);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--steel);
  color: var(--white);
  border-left: 5px solid var(--accent);
  font-weight: 800;
  letter-spacing: .04em;
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1.1rem; letter-spacing: .035em; }
.brand-copy span { margin-top: 5px; color: var(--muted); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block;
  padding: 13px 15px;
  color: #33414c;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  background: #17212a url('../gallery/project-05.webp') center 42% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8,14,20,.92) 0%, rgba(8,14,20,.78) 48%, rgba(8,14,20,.28) 100%);
}
.hero-content { max-width: 700px; padding: 82px 0 90px; }
.eyebrow {
  margin: 0 0 18px;
  color: #f0a06f;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.15; }
h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
.hero p { max-width: 650px; margin: 0 0 18px; color: #e5e9ec; font-size: 1.08rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { background: transparent; border-color: rgba(255,255,255,.65); }
.button.secondary:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.section { padding: 84px 0; }
.section.white { background: var(--white); }
.section.dark { background: var(--steel); color: var(--white); }
.section-heading { max-width: 780px; margin-bottom: 38px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.dark .section-heading p { color: #c8d0d6; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 56px; align-items: center; }
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}
.content-card p:last-child { margin-bottom: 0; }
.feature-image {
  min-height: 390px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero {
  position: relative;
  padding: 86px 0 78px;
  overflow: hidden;
  color: var(--white);
  background: var(--steel);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(42vw, 570px);
  background: linear-gradient(130deg, transparent 0 38%, rgba(212,106,47,.22) 38% 40%, transparent 40% 55%, rgba(255,255,255,.07) 55% 57%, transparent 57%);
  pointer-events: none;
}
.page-hero h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); }
.breadcrumbs { margin-bottom: 16px; color: #cbd3d9; font-size: .9rem; }
.breadcrumbs a { color: #fff; text-decoration: none; }

.prose { max-width: 850px; }
.prose p { margin: 0 0 22px; }
.service-sections { display: grid; gap: 24px; }
.service-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  padding: 28px 30px;
  border-radius: var(--radius);
}
.service-section h2 { margin-bottom: 14px; font-size: 1.45rem; }
.service-section p:last-child { margin-bottom: 0; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.service-list li {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 15px 18px 15px 44px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  width: 11px;
  height: 11px;
  background: var(--accent);
  transform: rotate(45deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #d9dee1;
  padding: 0;
  cursor: zoom-in;
}
.gallery-item:nth-child(7n+1), .gallery-item:nth-child(7n+4) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.gallery-item:hover img { transform: scale(1.025); filter: contrast(1.05); }
.gallery-item::after {
  content: "View project";
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 9px;
  background: rgba(10,16,21,.8);
  color: #fff;
  font-size: .75rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 34px;
  background: rgba(5,9,13,.94);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1320px, 94vw); max-height: 88vh; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,.48); }
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.contact-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(8,18,27,.08);
}
.contact-card span { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-card a { color: var(--ink); text-decoration: none; font-size: clamp(1.05rem, 2.3vw, 1.45rem); font-weight: 800; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--accent-dark); }
.contact-card .contact-value { color: var(--ink); font-size: clamp(1.05rem, 2.3vw, 1.45rem); font-weight: 800; overflow-wrap: anywhere; }
.notice {
  margin-top: 28px;
  padding: 20px 22px;
  color: #dbe2e7;
  background: var(--steel);
  border-left: 5px solid var(--accent);
}

.site-footer { background: #0c1218; color: #c4cdd3; }
.footer-inner { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { color: #f0a06f; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .nav-list { display: block; width: min(100% - 36px, 1160px); margin: 10px auto 18px; }
  .nav-list a { padding: 13px 6px; border-bottom: 1px solid var(--line); }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .feature-image { min-height: 320px; max-height: 520px; width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .topbar .container { justify-content: center; gap: 14px; font-size: .78rem; }
  .topbar .email-top { display: none; }
  .header-inner { min-height: 72px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: .92rem; }
  .brand-copy span { font-size: .63rem; }
  .hero { min-height: 560px; background-position: 62% center; }
  .hero::before { background: rgba(8,14,20,.83); }
  .hero-content { padding: 66px 0 72px; }
  .section { padding: 60px 0; }
  .page-hero { padding: 62px 0 58px; }
  .service-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(n) { grid-column: auto; min-height: 245px; }
  .gallery-item img { min-height: 245px; }
  .footer-inner { padding: 28px 0; display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
