:root {
  --ink: #08131f;
  --ink-soft: #142536;
  --paper: #f4f7f8;
  --white: #ffffff;
  --line: rgba(8, 19, 31, 0.14);
  --muted: #60707d;
  --signal: #ff6b2c;
  --signal-dark: #e94f12;
  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(5rem, 10vw, 8.5rem);
  --shadow: 0 24px 70px rgba(5, 17, 29, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: 0.35rem;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  color: var(--white);
  transition: background 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.site-header.scrolled {
  background: rgba(244, 247, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-name { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-name strong { color: var(--signal); }

.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.7vw, 2rem); }

.primary-nav > a {
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible { color: var(--signal); }

.primary-nav .nav-cta {
  padding: 0.68rem 1rem;
  border: 1px solid rgba(255,255,255,0.55);
}

.site-header.scrolled .nav-cta { border-color: var(--line); }

.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-media,
.hero-overlay { position: absolute; inset: 0; }

.hero-media img { height: 100%; object-fit: cover; object-position: center 48%; }

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 15, 25, 0.92) 0%, rgba(5, 15, 25, 0.75) 48%, rgba(5, 15, 25, 0.25) 100%),
    linear-gradient(0deg, rgba(5, 15, 25, 0.72) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 7rem;
  padding-bottom: 10rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--signal-dark);
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-eyebrow { color: #ff9a70; }

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 650;
  text-wrap: balance;
}

.hero h1 em { color: #ff8958; font-style: normal; }

.hero-copy {
  max-width: 640px;
  margin: 2rem 0 0;
  color: rgba(255,255,255,0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.4rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.94rem;
  line-height: 1;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid rgba(255, 107, 44, 0.42); outline-offset: 3px; }

.button-primary { background: var(--signal); color: var(--white); }
.button-primary:hover { background: var(--signal-dark); }
.button-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-facts {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  background: rgba(4, 14, 23, 0.62);
  backdrop-filter: blur(12px);
}

.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.facts-grid > div { padding: 1.25rem 1.5rem 1.35rem 0; }
.facts-grid > div + div { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,0.18); }
.facts-grid strong, .facts-grid span { display: block; }
.facts-grid strong { font-size: 1rem; }
.facts-grid span { margin-top: 0.2rem; color: rgba(255,255,255,0.6); font-size: 0.84rem; }

.section { padding-block: var(--section-space); }

.section-heading { max-width: 760px; }
.section-heading h2,
.projects-heading h2,
.proof-content h2,
.about-title h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 650;
  text-wrap: balance;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services { background: var(--paper); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 4.2rem;
  border-top: 1px solid var(--line);
}

.service-card {
  min-height: 295px;
  padding: 1.6rem 1.35rem 1.8rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.service-card:first-child { border-left: 1px solid var(--line); }
.service-card:hover { background: var(--white); }
.service-number { color: var(--signal-dark); font-size: 0.75rem; font-weight: 800; }
.service-card h3 { margin: auto 0 0.8rem; font-size: 1.35rem; line-height: 1.16; letter-spacing: -0.025em; }
.service-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.proof { background: var(--ink); color: var(--white); }

.proof-grid { display: grid; grid-template-columns: minmax(280px, 0.82fr) 1.18fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }

.proof-image { position: relative; height: min(720px, 72vw); min-height: 520px; overflow: hidden; box-shadow: var(--shadow); }
.proof-image img { height: 100%; object-fit: cover; }
.image-tag {
  position: absolute;
  inset: auto 1rem 1rem;
  padding: 0.65rem 0.8rem;
  background: rgba(8, 19, 31, 0.82);
  color: rgba(255,255,255,0.88);
  font-size: 0.76rem;
  backdrop-filter: blur(10px);
}

.proof-content h2 { max-width: 690px; }
.proof-lead { max-width: 650px; margin: 1.8rem 0 2rem; color: rgba(255,255,255,0.67); font-size: 1.06rem; }
.capability-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,0.16); }
.capability-list li { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.88); }
.capability-list li::before { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; margin-right: 0.75rem; background: var(--signal); vertical-align: 0.14em; }

.projects { background: var(--white); }
.projects-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 4rem; }
.projects-heading > p { max-width: 430px; margin: 0 0 0.45rem; color: var(--muted); }

.project-feature { display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr; min-height: 660px; background: var(--paper); }

.gallery-item { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #dfe5e8; cursor: zoom-in; }
.gallery-item img { height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item:focus-visible { outline: 4px solid var(--signal); outline-offset: -4px; }
.gallery-feature img { object-position: center 45%; }
.expand-label { position: absolute; right: 1rem; bottom: 1rem; padding: 0.55rem 0.72rem; background: var(--white); color: var(--ink); font-size: 0.78rem; font-weight: 700; }

.project-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5.5rem); }
.project-index { color: var(--signal-dark); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.project-copy h3 { max-width: 600px; margin: 1.2rem 0 1.5rem; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.03; letter-spacing: -0.05em; }
.project-copy > p { max-width: 590px; margin: 0; color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; gap: 0.7rem 1.5rem; margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.82rem; font-weight: 700; }

.gallery-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; grid-auto-rows: 280px; gap: 0.85rem; margin-top: 0.85rem; }
.gallery-wide { grid-row: span 2; }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(3rem, 8vw, 8rem); }
.about-title h2 { max-width: 700px; }
.about-copy { padding-top: 2rem; }
.about-copy p { margin: 0 0 1.3rem; color: var(--muted); font-size: 1.08rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 1rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--ink); font-weight: 750; }
.text-link:hover { color: var(--signal-dark); border-color: var(--signal-dark); }

.contact { position: relative; padding-block: clamp(5.5rem, 11vw, 9rem); overflow: hidden; background: var(--signal); color: var(--ink); }
.contact::after { content: "MB"; position: absolute; right: -0.04em; bottom: -0.36em; color: rgba(255,255,255,0.1); font-size: clamp(14rem, 40vw, 42rem); line-height: 1; font-weight: 900; letter-spacing: -0.12em; pointer-events: none; }
.contact-inner { position: relative; z-index: 1; }
.contact .eyebrow { color: rgba(8,19,31,0.7); }
.contact h2 { max-width: 900px; font-size: clamp(2.8rem, 6.5vw, 6.5rem); }
.contact p:not(.eyebrow) { max-width: 590px; margin: 1.5rem 0 2rem; font-size: 1.1rem; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--ink); color: var(--white); }
.contact-details { display: flex; gap: 1.5rem; margin-top: 3rem; font-size: 0.88rem; font-weight: 700; }
.contact-details a { border-bottom: 1px solid currentColor; }

.site-footer { padding-block: 2rem; background: var(--ink); color: rgba(255,255,255,0.65); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
.brand-footer { color: var(--white); }
.footer-inner p { margin: 0; text-align: center; font-size: 0.84rem; }
.footer-inner > span { font-size: 0.78rem; }

.lightbox { width: min(92vw, 1280px); max-width: none; padding: 0; border: 0; background: transparent; color: white; }
.lightbox::backdrop { background: rgba(2,8,14,0.92); backdrop-filter: blur(8px); }
.lightbox img { max-height: 86vh; object-fit: contain; }
.lightbox-close { position: fixed; z-index: 2; top: 1rem; right: 1.3rem; width: 3rem; height: 3rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; background: rgba(8,19,31,0.75); color: white; font-size: 1.8rem; line-height: 1; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    align-content: center;
    gap: 0.45rem;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0.55rem;
    border: 0;
    background: transparent;
    color: inherit;
  }

  .menu-toggle span { width: 100%; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .primary-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
    padding: 6rem var(--gutter);
    background: var(--ink);
    color: var(--white);
    visibility: hidden;
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .primary-nav.open { visibility: visible; opacity: 1; }
  .primary-nav > a { font-size: clamp(2rem, 9vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
  .primary-nav .nav-cta { margin-top: 0.8rem; font-size: 1.1rem; }
  .site-header:has(.primary-nav.open) { color: var(--white); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(3) { border-left: 1px solid var(--line); }
  .proof-grid, .about-grid { grid-template-columns: 1fr; }
  .proof-image { height: 72vh; max-height: 680px; }
  .project-feature { grid-template-columns: 1fr; }
  .gallery-feature { min-height: 630px; }
  .project-copy { min-height: 480px; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 4.4rem; }
  .hero-content { padding-top: 7rem; padding-bottom: 14rem; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 4.5rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 360px; }
  .hero-media img { object-position: 58% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(5,15,25,0.91), rgba(5,15,25,0.62)), linear-gradient(0deg, rgba(5,15,25,0.85), transparent 60%); }
  .facts-grid { grid-template-columns: 1fr; padding-block: 0.5rem; }
  .facts-grid > div { padding: 0.45rem 0; }
  .facts-grid > div + div { padding-left: 0; border-left: 0; }
  .facts-grid span { display: none; }
  .facts-grid strong { font-size: 0.8rem; }
  .services-grid { grid-template-columns: 1fr; margin-top: 2.8rem; }
  .service-card, .service-card:nth-child(3) { min-height: 240px; border-left: 1px solid var(--line); }
  .projects-heading { align-items: start; flex-direction: column; margin-bottom: 2.8rem; }
  .gallery-feature { min-height: 520px; }
  .project-copy { min-height: 430px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-wide { grid-row: auto; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { display: none; }
  .contact-details { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
