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

:root {
  /* ── SURFACES ── */
  --bg:           #0a0a0a;   /* primary dark background */
  --bg-alt:       #0e0e12;   /* inputs, alternate rows */
  --bg-services:  #000000;   /* services section */
  --bg-card:      #0a0a0a;   /* card backgrounds */
  --bg3:          #060608;   /* footer / deepest dark */
  --bg-white:     #ffffff;   /* white card surface */

  /* ── BORDERS ── */
  --border:       #1a1a1a;
  --border2:      #252525;
  --border-card:  #1a3050;
  --border-strong:#444444;

  /* ── TEXT BY SURFACE (the rules) ──
     text on black  → grey
     text on grey   → white
     text on white  → black  */
  --text-on-black: #cccccc;
  --text-on-grey:  #ffffff;
  --text-on-white: #000000;

  /* ── SEMANTIC TEXT ── */
  --text:         #ffffff;   /* primary / headings */
  --text-mid:     #cccccc;   /* secondary */
  --text-muted:   #999999;   /* labels, captions */
  --text-body:    #aaaaaa;   /* body copy */

  /* ── TYPOGRAPHY SCALE ── */
  --size-label:   9px;    /* section labels (WHAT WE DO) */
  --size-caption: 10px;   /* footer, small print */
  --size-small:   11px;   /* nav links */
  --size-base:    15px;   /* body default */
  --size-body:    17px;   /* long-form text */
  --size-heading: 20px;   /* h2 section headings */
  --size-lg:      32px;   /* service titles */

  /* ── MISC ── */
  --accent-dim:   #1e3a5a;
  --radius:       0px;    /* site uses sharp corners */
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Barlow Condensed', 'Arial Black', Arial, sans-serif;
  font-weight: 900; font-size: 12px; color: var(--text);
  text-transform: uppercase; letter-spacing: -0.3px; line-height: 1.1;
  text-decoration: none;
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-link {
  font-size: var(--size-small); text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-muted); text-decoration: none; transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); }

.nav-cta {
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-muted); border: 1px solid var(--border2);
  padding: 7px 16px; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.nav-cta:hover { border-color: #555; color: var(--text-mid); }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-mid); transition: all 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 300; backdrop-filter: blur(4px);
}
.menu-overlay.open { display: block; }

.mobile-menu {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
  background: #0d0d0d; border-left: 1px solid var(--border);
  z-index: 400; padding: 0; display: flex; flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { right: 0; }

.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px; border-bottom: 1px solid var(--border);
}

.menu-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 18px; cursor: pointer; padding: 0; line-height: 1;
}

.mobile-link {
  display: block; padding: 18px 24px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.mobile-link:hover, .mobile-link.active { color: var(--text); background: #111; }
.mobile-cta { color: var(--text); margin-top: auto; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: var(--size-label); text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--text-muted); padding-top: 4px;
}

/* ── FOOTER ── */
footer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}

.footer-logo {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 900; font-size: var(--size-caption); color: var(--text-on-grey);
  text-transform: uppercase; line-height: 1.2;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: var(--size-caption); color: var(--text-on-grey); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }

.footer-info { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.footer-info span { color: var(--text-on-grey); font-size: var(--size-caption); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 64px 40px 56px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.page-header .eyebrow {
  font-size: 10px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--text-muted); margin-bottom: 16px;
}
.page-header h1 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 900; font-size: clamp(40px, 6vw, 72px);
  text-transform: uppercase; letter-spacing: -1.5px; line-height: 0.95;
}
.page-header p {
  margin-top: 20px; font-size: 17px; color: var(--text-body);
  max-width: 500px; line-height: 1.7;
}

@media (max-width: 640px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  footer { padding: 20px; flex-direction: column; align-items: flex-start; }
  .footer-info { text-align: left; }
  .footer-links { flex-direction: column; gap: 8px; }
  .page-header { padding: 48px 20px 40px; }
}
