
:root {
  --bg: #0c1117;
  --bg-2: #131a23;
  --bg-3: #182231;
  --surface: rgba(255,255,255,0.05);
  --surface-2: rgba(255,255,255,0.08);
  --text: #f4f7fb;
  --muted: #b8c4d3;
  --line: rgba(255,255,255,0.10);
  --accent: #f0c36b;
  --accent-2: #9dc5ff;
  --max: 1180px;
  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(240,195,107,0.14), transparent 22%),
    radial-gradient(circle at left 20%, rgba(157,197,255,0.08), transparent 28%),
    linear-gradient(180deg, #0b1016 0%, #121923 42%, #0c1117 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(12,17,23,0.80); border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 800; letter-spacing: 0.02em; }
.brand-logo { width: 50px; height: 50px; object-fit: contain; background: rgba(255,255,255,0.05); border-radius: 14px; padding: 6px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); transition: color .2s ease, opacity .2s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 0; }
.nav-toggle span { display:block; width:26px; height:2px; background:white; margin:5px 0; }

.hero, .page-hero { padding: 82px 0 54px; }
.hero-grid, .page-hero-grid, .split-section, .contact-grid, .two-col-highlight { display:grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.compact-hero { padding-bottom: 36px; }
.narrow-center { max-width: 760px; text-align: center; margin: 0 auto; }
.center-actions { justify-content: center; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; margin-bottom: 16px; }
h1 { font-size: clamp(2.45rem, 6vw, 5.1rem); line-height: .98; margin: 0 0 22px; max-width: 12ch; }
.page-hero h1 { max-width: 14ch; }
h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.08; }
h3 { margin: 0 0 12px; font-size: 1.18rem; }
p { margin: 0 0 16px; }
.lead, .section-head p, .service-card p, .project-overlay p, .section-copy p, .info-card p, .hero-panel p, .faq-item p, .timeline p, .contact-grid p, .site-footer p, .contact-list p { color: var(--muted); line-height: 1.8; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin:30px 0 22px; }
.btn, .text-link {
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 22px; border-radius:999px; border:1px solid rgba(255,255,255,.14);
  background:white; color:#10151b; font-weight:800; transition:transform .2s ease, border-color .2s ease;
}
.btn:hover, .text-link:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; }
.btn-secondary, .text-link {
  background: transparent; color: var(--text);
}
.text-link { padding: 0; border: 0; border-radius: 0; font-weight: 700; }
.hero-points, .check-list, .feature-list { list-style:none; padding:0; margin:18px 0 0; display:grid; gap:10px; }
.hero-points li, .check-list li, .feature-list li { position:relative; padding-left:18px; color:var(--muted); line-height:1.7; }
.hero-points li::before, .check-list li::before, .feature-list li::before { content:""; width:8px; height:8px; background:var(--accent); border-radius:50%; position:absolute; left:0; top:11px; }
.feature-list { margin-top: 20px; }
.hero-visual, .service-visual-card { position:relative; }
.hero-visual img, .service-visual-card img {
  width:100%; min-height:520px; object-fit:cover; border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow);
}
.service-visual-card {
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
  width: min(100%, 560px);
  margin-left: auto;
}
.page-service .page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  align-items: stretch;
}
.page-service .page-hero-grid > .reveal:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.page-service .service-visual-card img {
  aspect-ratio: 4 / 3;
  min-height: auto;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.page-service .service-visual-copy {
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12,17,23,0.02), rgba(12,17,23,0.24));
}
.page-service h1 { max-width: 10ch; }
.service-visual-copy { padding: 22px; }
.hero-badge, .hero-panel, .info-card, .service-card, .project-card, .stats-card, .timeline article, .contact-form, .cta-box, .faq-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035)); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
}
.hero-badge { position:absolute; right:22px; bottom:22px; padding:16px 18px; display:grid; gap:6px; max-width:240px; }
.hero-badge strong { font-size:1.35rem; }
.hero-panel { padding: 28px; }
.logos-strip { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background: rgba(255,255,255,.02); }
.strip-grid { display:grid; grid-template-columns: repeat(6, 1fr); gap:16px; padding:18px 0; text-align:center; color:var(--muted); }
.section { padding: 96px 0; }
.section-dark { background: rgba(255,255,255,0.02); }
.section-head { max-width: 780px; margin-bottom: 34px; }
.cards-grid, .projects-grid, .faq-grid, .stats-grid { display:grid; gap:22px; }
.cards-grid { grid-template-columns: repeat(3, 1fr); }
.three-up { grid-template-columns: repeat(3, 1fr); }
.stats-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { padding: 28px; }
.card-icon { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; margin-bottom:18px; background: rgba(240,195,107,.16); color:var(--accent); font-weight:800; }
.photos-grid { grid-template-columns: repeat(4, 1fr); }
.photo-card { overflow:hidden; padding:0; position:relative; min-height: 320px; }
.photo-card img { width:100%; height:100%; object-fit:cover; }
.project-overlay { position:absolute; inset:auto 0 0 0; padding:26px; background: linear-gradient(180deg, rgba(12,17,23,0.02), rgba(12,17,23,0.9) 55%); }
.tag { display:inline-flex; padding:8px 12px; margin-bottom:14px; border-radius:999px; background: rgba(255,255,255,.12); font-size:.82rem; }
.stats-card, .faq-item, .info-card { padding: 28px; }
.stats-card strong { display:block; font-size: 2rem; line-height: 1.1; margin-bottom: 8px; }
.timeline { display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
.timeline article { padding:26px; }
.timeline span { width:44px; height:44px; display:grid; place-items:center; border-radius:50%; background: rgba(240,195,107,.16); color:var(--accent); font-weight:800; margin-bottom:18px; }
.cta-box { padding:34px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.contact-grid { align-items: start; }
.single-contact-grid { grid-template-columns: 1.05fr .75fr; }
.contact-form { padding:28px; display:grid; gap:16px; }
.contact-form label { display:grid; gap:8px; font-weight:600; }
.contact-form input, .contact-form textarea, .contact-form select { width:100%; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); border-radius:16px; color:var(--text); padding:14px 16px; }
.contact-form option { color:#111; }
.contact-list { display:grid; gap:12px; margin-top: 26px; }
.contact-list a, .contact-list p { font-size:1.05rem; }
.site-footer { border-top:1px solid var(--line); padding-top:30px; background: rgba(0,0,0,.16); }
.footer-wrap { display:flex; justify-content:space-between; gap:24px; padding-bottom:24px; }
.footer-brand { margin-bottom: 12px; }
.footer-links { display:grid; gap:12px; align-content:start; }
.copyright { border-top:1px solid var(--line); color:var(--muted); padding:16px 0 24px; }

.faq-grid { grid-template-columns: repeat(3, 1fr); }
.two-col-highlight .section-copy { max-width: 100%; }
.reveal { opacity:0; transform: translateY(28px); }
.reveal.is-visible { opacity:1; transform: translateY(0); }
.service-card, .project-card, .timeline article, .cta-box, .contact-form, .stats-card, .hero-panel, .faq-item, .info-card, .service-visual-card { transition: transform .28s ease, border-color .28s ease, background-color .28s ease, opacity .45s ease; }
.service-card:hover, .project-card:hover, .timeline article:hover, .cta-box:hover, .contact-form:hover, .stats-card:hover, .hero-panel:hover, .faq-item:hover, .info-card:hover, .service-visual-card:hover { transform: translateY(-4px); border-color: rgba(240,195,107,.22); }

.brand, .btn, .site-nav a, .contact-list a, .nav-toggle { -webkit-tap-highlight-color: transparent; }
input, textarea, select, button { -webkit-appearance:none; appearance:none; }
textarea { resize:vertical; }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.hero, .section, .logos-strip, .page-hero { content-visibility:auto; contain-intrinsic-size: 1px 900px; }
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) { .site-header { background: rgba(12,17,23,.96); } }

@media (max-width: 1180px) {
  .cards-grid, .three-up, .faq-grid, .stats-grid, .timeline, .photos-grid { grid-template-columns: repeat(2, 1fr); }
  .page-service .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); }
  .single-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 88px; }
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .nav-wrap { min-height: 76px; }
  .hero-grid, .page-hero-grid, .split-section, .contact-grid, .two-col-highlight, .footer-wrap, .cta-box { grid-template-columns: 1fr; display:grid; }
  .hero-visual img, .service-visual-card img { min-height: 360px; }
  .page-service .page-hero-grid { grid-template-columns: 1fr; }
  .page-service .service-visual-card { width: 100%; margin-left: 0; }
  .page-service .service-visual-card img { min-height: 320px; aspect-ratio: 16 / 10; }
  .hero-badge { right:14px; bottom:14px; max-width: 220px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav { position:absolute; left:16px; right:16px; top:82px; background:#121923; border:1px solid var(--line); border-radius:20px; padding:16px; flex-direction:column; align-items:flex-start; display:none; }
  .site-nav.open { display:flex; }
  .nav-toggle { display:block; }
  .hero-actions .btn, .contact-form .btn { width:100%; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 20px), var(--max)); }
  .cards-grid, .three-up, .faq-grid, .stats-grid, .timeline, .photos-grid, .strip-grid { grid-template-columns: 1fr; }
  .section, .hero, .page-hero { padding: 76px 0; }
  .hero-visual img, .service-visual-card img { min-height: 300px; }
  .hero-badge { position: static; margin-top: 16px; max-width: none; }
  h1 { max-width: 100%; }
  .site-nav { left:10px; right:10px; }
  .cta-box { padding: 26px; }
}
@media (max-width: 420px) {
  .nav-wrap { gap: 12px; }
  .brand { gap: 10px; font-size: .95rem; }
  .brand-logo { width: 44px; height: 44px; }
  .service-card, .stats-card, .faq-item, .contact-form, .hero-panel, .info-card { padding: 22px; }
}


/* v7 navigation, mobile polish, contact-only page and 3D scroll depth */
body.menu-open { overflow: hidden; }
.site-nav { position: relative; }
.nav-dropdown { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; background: transparent; border: 0; color: var(--muted);
  cursor: pointer; transition: color .2s ease;
}
.nav-drop-toggle::after {
  content: "";
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
}
.nav-dropdown:hover .nav-drop-toggle,
.nav-dropdown:focus-within .nav-drop-toggle,
.nav-drop-toggle[aria-expanded="true"] { color: var(--text); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 0; min-width: 280px; z-index: 80;
  display: grid; gap: 6px; padding: 12px;
  background: rgba(12,17,23,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-menu a {
  padding: 11px 12px; border-radius: 12px; color: var(--text);
  background: rgba(255,255,255,.02);
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.08); }
.nav-dropdown.is-open .nav-drop-toggle::after,
.nav-dropdown:hover .nav-drop-toggle::after,
.nav-dropdown:focus-within .nav-drop-toggle::after { transform: rotate(225deg) translateY(-1px); }

body.has-depth .reveal,
body.has-depth .service-card,
body.has-depth .project-card,
body.has-depth .timeline article,
body.has-depth .stats-card,
body.has-depth .hero-panel,
body.has-depth .info-card,
body.has-depth .service-visual-card,
body.has-depth .cta-box {
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.depth-layer {
  perspective: 1400px;
  perspective-origin: 50% 35%;
}
body.has-depth .reveal,
body.has-depth .service-card,
body.has-depth .project-card,
body.has-depth .timeline article,
body.has-depth .stats-card,
body.has-depth .hero-panel,
body.has-depth .info-card,
body.has-depth .service-visual-card,
body.has-depth .cta-box {
  transform: translate3d(0, 28px, -24px) rotateX(5deg) scale(.985);
}
body.has-depth .is-visible {
  transform: translate3d(0,0,0) rotateX(0deg) scale(1);
}
.hero-home .hero-copy,
.hero-home .hero-visual {
  transition: transform .15s linear;
}
.contact-info-grid {
  display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr);
  margin-bottom: 22px;
}
.contact-info-grid h3 { margin-bottom: 8px; font-size: 1.45rem; }
.contact-info-grid .info-card { min-height: 100%; }
.contact-support-grid { margin-top: 10px; }

@media (max-width: 960px) {
  .site-nav { gap: 10px; }
  .nav-dropdown, .nav-dropdown-menu { width: 100%; }
  .nav-drop-toggle {
    width: 100%; justify-content: space-between; padding: 12px 0;
    font-weight: 700;
  }
  .nav-dropdown-menu {
    position: static; min-width: 0; padding: 8px 0 0; border: 0; border-radius: 0;
    box-shadow: none; background: transparent; display: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu { display: grid; }
  .nav-dropdown-menu a { padding-left: 14px; }
  .contact-info-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .service-card, .project-card, .timeline article, .cta-box, .contact-form, .stats-card, .hero-panel, .faq-item, .info-card, .service-visual-card,
  .hero-home .hero-copy, .hero-home .hero-visual {
    transition: none !important;
    transform: none !important;
  }
}


/* v8 final polish */
.site-nav a.is-current,
.nav-drop-toggle.is-current,
.nav-drop-toggle[aria-expanded="true"] {
  color: var(--text);
}
.site-nav a.is-current::after,
.nav-drop-toggle.is-current::after {
  opacity: 1;
}
.nav-dropdown-menu { pointer-events: none; }
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu { pointer-events: auto; }

.feature-list, .check-list {
  padding-left: 1.1rem;
}

.contact-info-grid a {
  color: var(--text);
  text-decoration: none;
}
.contact-info-grid a:hover { color: var(--accent); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.footer-links a { white-space: nowrap; }

@media (min-width: 961px) {
  .site-nav {
    display: flex !important;
    gap: 26px;
    align-items: center;
  }
  .nav-dropdown-menu {
    min-width: 300px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    max-height: calc(100vh - 110px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav a,
  .nav-drop-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-dropdown-menu a {
    min-height: 40px;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu,
  .site-nav,
  .hero-home .hero-copy,
  .hero-home .hero-visual {
    transition: none !important;
  }
}

/* v9 final layout fixes */
.brand span,
.site-nav a,
.nav-drop-toggle,
.btn { white-space: nowrap; }
.brand { flex-shrink: 0; }
.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
}
.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  min-width: 0;
}
.site-nav > a,
.site-nav > .nav-dropdown,
.site-nav > .btn {
  flex: 0 0 auto;
}
.site-nav a,
.nav-drop-toggle {
  font-size: 0.98rem;
  line-height: 1.2;
}
.nav-drop-toggle {
  font-weight: 600;
}
.nav-dropdown-menu {
  width: min(560px, calc(100vw - 40px));
  min-width: 520px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  line-height: 1.35;
  white-space: normal;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.035);
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(240,195,107,.18);
}
.hero-home .hero-title {
  max-width: 9.5ch;
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  letter-spacing: -0.04em;
}
.hero-home .lead {
  max-width: 62ch;
}
.hero-actions .btn-secondary {
  border-color: rgba(255,255,255,.16);
}
@media (max-width: 1180px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    background: #121923;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    display: none !important;
    gap: 10px;
  }
  .site-nav.open { display: flex !important; }
  .nav-toggle { display: block; justify-self: end; }
  .site-nav > a,
  .site-nav > .nav-dropdown,
  .site-nav > .btn {
    width: 100%;
  }
  .site-nav .btn {
    width: 100%;
  }
  .nav-dropdown,
  .nav-dropdown-menu {
    width: 100%;
  }
  .nav-dropdown-menu {
    min-width: 0;
    grid-template-columns: 1fr;
    padding: 8px 0 0;
  }
}
@media (max-width: 640px) {
  .hero-home .hero-title {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }
  .nav-wrap { column-gap: 16px; }
  .brand span { font-size: 1rem; }
}


/* v10 brand refresh */
:root { --accent: #f6a200; --accent-2: #ffd36a; }
.brand { min-width:0; text-decoration:none; }
.brand-logo { width:62px; height:62px; padding:0; background:transparent; border-radius:0; flex:0 0 auto; }
.brand-text { display:inline-flex; flex-direction:column; gap:2px; line-height:1.05; }
.brand-text strong { font-size:1.05rem; font-weight:800; white-space:nowrap; }
.brand-text small { font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); white-space:nowrap; }
.site-nav { gap:16px; }
.site-nav a, .nav-drop-toggle { font-size:.96rem; }
.hero-home .hero-title { max-width:11ch; letter-spacing:-0.045em; }
@media (max-width:1180px){ .brand-logo{width:54px;height:54px;} }
@media (max-width:640px){ .brand-text strong{font-size:.92rem;} .brand-text small{font-size:.58rem;letter-spacing:.06em;} .brand-logo{width:48px;height:48px;} }


/* v11 header/footer/image refinement */
:root{
  --header-h:84px;
}
body{
  background:
    radial-gradient(circle at 85% 12%, rgba(246,162,0,0.16), transparent 24%),
    radial-gradient(circle at 12% 22%, rgba(111,170,255,0.10), transparent 28%),
    linear-gradient(180deg, #0a0f15 0%, #101720 40%, #0c1117 100%);
}
.site-header{
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.nav-wrap{
  min-height: var(--header-h);
  display:flex;
  align-items:center;
  gap:20px;
}
.brand{
  flex:0 0 auto;
  max-width: 320px;
}
.brand-logo{
  width:58px;
  height:58px;
  object-fit:contain;
}
.brand-text{
  min-width:0;
}
.brand-text strong{
  display:block;
  font-size:1rem;
  line-height:1.05;
}
.brand-text small{
  display:block;
  line-height:1.1;
}
.site-nav{
  margin-left:auto;
  display:flex !important;
  align-items:center;
  gap:clamp(10px, 1.25vw, 18px);
  min-width:0;
}
.site-nav > a,
.nav-drop-toggle{
  font-size:.95rem;
  font-weight:600;
}
.site-nav > a,
.nav-dropdown{
  flex:0 0 auto;
}
.site-nav .btn{
  padding:12px 18px;
}
.nav-drop-toggle{
  min-height:42px;
}
.nav-dropdown-menu{
  left:50%;
  top:calc(100% + 12px);
  transform:translate(-50%,8px);
  width:min(520px, calc(100vw - 32px));
  min-width:0;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu{
  transform:translate(-50%,0);
}
.hero-home .hero-grid{
  gap:48px;
  align-items:center;
}
.hero-home .hero-title{
  max-width:10.8ch;
  text-wrap:balance;
}
.hero-visual{
  position:relative;
}
.hero-visual img,
.service-visual-card img,
.photo-card img{
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  object-fit:cover;
  object-position:center;
}
.hero-visual img,
.service-visual-card img{
  min-height:0;
}
.photo-card{
  min-height:0;
  aspect-ratio:4 / 5;
}
.project-overlay{
  padding:24px;
  background: linear-gradient(180deg, rgba(12,17,23,0.02), rgba(12,17,23,0.92) 50%);
}
.project-overlay h3{
  max-width:18ch;
}
.site-footer{
  margin-top:24px;
}
.footer-wrap{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(240px,.9fr);
  gap:28px;
  align-items:start;
}
.footer-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 20px;
}
.footer-links a{
  white-space:normal;
  color:var(--muted);
}
.footer-links a:hover{
  color:var(--text);
}
@media (max-width: 1280px){
  .brand-text small{
    display:none;
  }
  .brand{
    max-width:220px;
  }
  .site-nav .btn{
    padding:10px 16px;
  }
}
@media (max-width: 1180px){
  .nav-wrap{
    min-height:76px;
  }
  .brand{
    max-width:none;
  }
  .brand-text small{
    display:block;
  }
  .site-nav{
    position:absolute;
    left:16px;
    right:16px;
    top:calc(100% + 8px);
    margin-left:0;
    display:none !important;
    padding:16px;
    border-radius:20px;
    background:#101720;
    border:1px solid var(--line);
    box-shadow:0 20px 50px rgba(0,0,0,.28);
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    max-height:calc(100vh - 120px);
    overflow:auto;
  }
  .site-nav.open{
    display:flex !important;
  }
  .nav-toggle{
    display:block;
    margin-left:auto;
  }
  .site-nav > a,
  .site-nav > .nav-dropdown,
  .site-nav .btn{
    width:100%;
  }
  .site-nav > a,
  .nav-drop-toggle{
    min-height:46px;
    padding:12px 2px;
  }
  .site-nav .btn{
    justify-content:center;
    margin-top:6px;
  }
  .nav-dropdown-menu{
    position:static;
    transform:none !important;
    width:100%;
    grid-template-columns:1fr;
    background:transparent;
    border:0;
    box-shadow:none;
    padding:6px 0 0;
  }
  .nav-dropdown-menu a{
    min-height:44px;
  }
  .hero-home .hero-grid{
    grid-template-columns:1fr;
    gap:26px;
  }
  .hero-home .hero-visual{
    order:-1;
  }
}
@media (max-width: 760px){
  .brand-logo{
    width:50px;
    height:50px;
  }
  .brand-text strong{
    font-size:.95rem;
  }
  .brand-text small{
    font-size:.58rem;
  }
  .hero-home .hero-title{
    max-width:100%;
    font-size:clamp(2.3rem, 10vw, 3.8rem);
  }
  .footer-wrap,
  .footer-links{
    grid-template-columns:1fr;
  }
}


/* =========================
   v12 FINAL FIXES (nav + hero)
   ========================= */

/* 1) Dropdown hover gap fix: create an invisible bridge so you can move mouse to menu */
.nav-dropdown { position: relative; }
.nav-dropdown-menu{
  top: 100% !important;
  margin-top: 8px;
  transform: translate(-50%, 8px);
}
.nav-dropdown-menu::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-12px;
  height:12px;
  /* keeps hover active while crossing */
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu{
  transform: translate(-50%, 0);
}

/* 2) Header spacing + compact nav on desktop */
.site-nav{
  gap: clamp(10px, 1.1vw, 16px) !important;
}
.site-nav > a,
.nav-drop-toggle{
  padding: 10px 2px;
}
.site-nav > a:hover,
.nav-drop-toggle:hover{
  color: var(--text);
}

/* 3) Service hero: protect from overlap and keep consistent layout */
.service-hero .page-hero-grid{
  align-items: start;
}
.service-visual-card{
  overflow:hidden;
}
.service-visual-card img{
  aspect-ratio: 5 / 4;
}

/* 4) Make project cards consistent */
.photos-grid .photo-card{
  aspect-ratio: 4 / 5;
}
.photos-grid .photo-card img{
  aspect-ratio: 4 / 5;
}

/* 5) Mobile nav: ensure dropdown stays reachable */
@media (max-width: 1180px){
  .nav-dropdown-menu::before{ display:none; }
  .nav-dropdown-menu{ margin-top: 0; }
}


/* v13 final navigation and imagery cleanup */
@media (min-width: 961px) {
  .nav-wrap { grid-template-columns: auto 1fr; }
  .site-nav { justify-self: end; }
  .nav-dropdown { position: relative; padding-bottom: 18px; margin-bottom: -18px; }
  .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: 20px;
  }
  .nav-dropdown-menu {
    top: 100%;
    margin-top: 0;
    transform: translateY(10px);
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    transform: translateY(0);
  }
}
.brand-text small { opacity: .78; }
@media (max-width: 1200px) {
  .brand-text small { display: none; }
}
@media (max-width: 1080px) {
  .site-nav { gap: 14px; }
  .site-nav a, .nav-drop-toggle { font-size: .95rem; }
}
.hero-visual,
.service-visual-card {
  isolation: isolate;
}
.hero-visual picture,
.service-visual-card picture,
.hero-visual img,
.service-visual-card img {
  display: block;
  width: 100%;
}
.service-hero .page-hero-grid {
  align-items: start;
}
.service-visual-card {
  padding: 0;
  min-height: 100%;
  overflow: hidden;
}
.service-visual-card img {
  min-height: 420px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.04);
}
.service-visual-card::after,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,16,0) 28%, rgba(5,10,16,.12) 65%, rgba(5,10,16,.42) 100%);
  pointer-events: none;
}
.service-visual-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.service-visual-copy p {
  display: none;
}
.service-visual-copy .tag {
  background: rgba(7, 14, 24, .78);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.projects-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.project-overlay h3 { max-width: 20ch; }
@media (max-width: 960px) {
  .nav-dropdown { padding-bottom: 0; margin-bottom: 0; }
  .service-visual-card img { min-height: 320px; }
}


/* v14 header/footer/service visual fixes */
.page-service .page-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}
.page-service h1 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 5.2vw, 4.4rem);
}
.page-service .service-visual-card {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.page-service .service-visual-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.page-service .service-visual-copy { display: none; }
.site-footer .footer-links { display: none !important; }
.site-footer .footer-wrap {
  display: block;
  padding-bottom: 28px;
}
.site-footer .footer-wrap > div:first-child {
  max-width: 760px;
}
@media (min-width: 1181px) {
  .nav-dropdown {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: -18px;
  }
  .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
  }
  .nav-dropdown-menu {
    top: calc(100% + 2px);
  }
}
@media (max-width: 1180px) {
  .page-service .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-service .service-visual-card {
    max-width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .page-service h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
    max-width: 100%;
  }
  .page-service .service-visual-card img {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 640px) {
  .page-service h1 { max-width: none; }
  .page-service .page-hero { padding-top: 56px; }
  .page-service .service-visual-card img { aspect-ratio: 4 / 3; min-height: 260px; }
  .page-service .service-visual-copy { padding: 16px 18px 18px; }
}

/* v16 service page normalization based on live screenshots */
.page-service .page-hero {
  padding: 72px 0 40px;
}
.page-service .page-hero-grid {
  grid-template-columns: minmax(0, 560px) minmax(360px, 500px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}
.page-service .page-hero-grid > .reveal:first-child {
  max-width: 560px;
}
.page-service h1 {
  max-width: 8.6ch;
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.page-service .lead {
  max-width: 35rem;
  font-size: 1.06rem;
  line-height: 1.78;
}
.page-service .hero-actions {
  margin-top: 26px;
}
.page-service .service-visual-card {
  width: min(100%, 500px);
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
}
.page-service .service-visual-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  min-height: 0;
  height: auto;
  object-fit: cover;
  object-position: center;
}
.page-service .split-section {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: start;
  gap: clamp(24px, 3vw, 42px);
}
.page-service .section-copy,
.page-service .hero-panel {
  max-width: none;
}
@media (max-width: 1280px) {
  .page-service .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  }
  .page-service h1 {
    font-size: clamp(2.35rem, 4.2vw, 4.1rem);
    max-width: 9ch;
  }
}
@media (max-width: 1100px) {
  .page-service .page-hero-grid,
  .page-service .split-section {
    grid-template-columns: 1fr;
  }
  .page-service .page-hero-grid > .reveal:first-child,
  .page-service .service-visual-card {
    max-width: 100%;
    width: 100%;
  }
  .page-service .service-visual-card {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .page-service .page-hero {
    padding: 56px 0 28px;
  }
  .page-service h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 3.2rem);
    letter-spacing: -0.03em;
  }
  .page-service .lead {
    font-size: 1rem;
    line-height: 1.72;
  }
  .page-service .service-visual-card img {
    aspect-ratio: 16 / 11;
  }
}


/* v17 quality pass */
:root {
  --content-max: 1240px;
}
.container { width: min(calc(100% - 32px), var(--content-max)); }
.site-header { overflow: visible; }
.nav-wrap { position: relative; }
@media (min-width: 1181px) {
  .site-nav { position: relative; }
  .nav-dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
  }
  .nav-drop-toggle {
    min-height: 44px;
    padding: 10px 2px 14px;
  }
  .nav-dropdown-menu {
    left: 50%;
    top: calc(100% - 2px) !important;
    margin-top: 0 !important;
    transform: translate(-50%, 6px);
    width: min(560px, calc(100vw - 48px));
    min-width: 520px;
    padding: 14px;
    gap: 10px;
  }
  .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    transform: translate(-50%, 0);
  }
}
.hero-home { padding: 72px 0 50px; }
.hero-home .hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 500px);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero-home .hero-copy { max-width: 620px; }
.hero-home .hero-title {
  max-width: 8.8ch;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: .97;
  letter-spacing: -0.045em;
}
.hero-home .lead { max-width: 58ch; }
.hero-badge {
  right: 18px;
  bottom: 18px;
  max-width: 250px;
  background: rgba(7,14,24,.72);
  border: 1px solid rgba(255,255,255,.09);
}
.page-inner .page-hero {
  padding: 64px 0 34px;
}
.page-inner .page-hero-grid {
  grid-template-columns: minmax(0, 560px) minmax(320px, 460px);
  gap: clamp(26px, 4vw, 60px);
  align-items: center;
}
.page-inner:not(.page-service) h1 {
  max-width: 8.4ch;
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  line-height: .99;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.page-inner:not(.page-service) .lead {
  max-width: 36rem;
  font-size: 1.04rem;
  line-height: 1.76;
}
.page-inner:not(.page-service) .hero-panel {
  padding: 28px 30px;
}
.two-col-highlight {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}
.two-col-highlight .section-copy {
  max-width: 420px;
}
.two-col-highlight .section-copy h2 {
  max-width: 9ch;
  margin-bottom: 18px;
}
.two-col-highlight .section-copy p:last-child {
  margin-bottom: 0;
}
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-self: center;
}
.stats-card {
  min-height: 230px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stats-card strong {
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  max-width: 9ch;
  margin-bottom: 14px;
}
.stats-card span {
  color: var(--muted);
  line-height: 1.65;
}
.projects-grid.photos-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.project-card.photo-card {
  min-height: 0;
  aspect-ratio: auto;
  display: grid;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
}
.project-card.photo-card picture,
.project-card.photo-card img {
  width: 100%;
  height: 100%;
}
.project-overlay {
  position: relative;
  inset: auto;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 22px 22px 24px;
  background: linear-gradient(180deg, rgba(12,17,23,.22), rgba(12,17,23,.88) 30%, rgba(12,17,23,.96) 100%);
}
.project-overlay .tag {
  align-self: flex-start;
  margin-bottom: 4px;
}
.project-overlay h3 {
  font-size: 1.75rem;
  line-height: 1.05;
  max-width: 10ch;
  margin-bottom: 0;
}
.project-overlay p {
  margin: 0;
  line-height: 1.65;
}
.page-service .page-hero-grid {
  grid-template-columns: minmax(0, 560px) minmax(360px, 500px);
  gap: clamp(28px, 4vw, 64px);
}
.page-service h1 {
  max-width: 8.2ch;
  font-size: clamp(2.35rem, 4.1vw, 4rem);
}
.page-service .service-visual-card {
  width: min(100%, 480px);
}
.page-service .lead { max-width: 34rem; }
.page-service .split-section {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}
.page-service .hero-actions .btn,
.page-inner .hero-actions .btn { min-width: 0; }
.site-footer { margin-top: 8px; }
@media (max-width: 1280px) {
  .hero-home .hero-grid,
  .page-inner .page-hero-grid,
  .page-service .page-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  }
  .projects-grid.photos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .hero-home .hero-grid,
  .page-inner .page-hero-grid,
  .page-service .page-hero-grid,
  .two-col-highlight,
  .page-service .split-section {
    grid-template-columns: 1fr;
  }
  .hero-home .hero-copy,
  .page-inner:not(.page-service) .lead,
  .page-service .lead,
  .two-col-highlight .section-copy {
    max-width: 100%;
  }
  .hero-home .hero-visual,
  .page-service .service-visual-card {
    width: 100%;
    max-width: 560px;
    margin-left: 0;
  }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-home { padding: 56px 0 34px; }
  .hero-home .hero-grid { gap: 24px; }
  .hero-home .hero-title { max-width: 100%; font-size: clamp(2.35rem, 9vw, 4rem); }
  .page-inner:not(.page-service) h1,
  .page-service h1 { max-width: 100%; font-size: clamp(2.1rem, 8.2vw, 3.6rem); }
  .stats-grid,
  .projects-grid.photos-grid { grid-template-columns: 1fr; }
  .stats-card,
  .project-card.photo-card { min-height: 0; }
  .project-card.photo-card { grid-template-rows: 220px 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(calc(100% - 20px), var(--content-max)); }
  .hero-home .hero-title,
  .page-inner:not(.page-service) h1,
  .page-service h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    letter-spacing: -0.03em;
  }
  .hero-badge { position: static; margin-top: 14px; }
  .project-overlay h3 { font-size: 1.45rem; }
  .project-card.photo-card { grid-template-rows: 200px 1fr; }
}
