:root {
  --bg: #080a0c;
  --panel: #101316;
  --text: #d8d7d4;
  --muted: #aaa9a7;
  --gold: #d6a04f;
  --gold-soft: #d6a04f;
  --line: rgba(255,255,255,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

.site-header {
  height: 110px;
  padding: 0 clamp(28px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  color: var(--gold);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: .13em;
  white-space: nowrap;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.site-nav { align-self: stretch; display: flex; gap: clamp(24px, 4vw, 50px); }
.site-nav a {
  display: grid;
  place-items: center;
  position: relative;
  color: var(--text);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .04em;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold); }
.site-nav a:hover::after, .site-nav a.active::after { width: 44px; }
.menu-toggle { display: none; }

.hero {
  min-height: 680px;
  height: min(760px, 90vh);
  padding: 150px 24px 90px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(35,38,41,.33), transparent 52%),
    linear-gradient(120deg, #080a0c, #0c0e10 50%, #07090b);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; margin-top: 40px; }
.eyebrow { display: none; }
.hero h1 { margin: 0 0 4px; font-size: clamp(58px, 8vw, 91px); font-weight: 300; letter-spacing: .015em; line-height: 1.12; }
.hero h2 { margin: 0; color: #adacaa; font-size: clamp(18px, 2.3vw, 25px); font-weight: 300; letter-spacing: .02em; }
.gold-rule { width: 100px; height: 2px; background: var(--gold); margin: 30px auto 28px; }
.gold-rule.left { width: 43px; margin: 20px 0 25px; }
.hero-copy { margin: 0 0 35px; color: #afaeac; font-size: 16px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 255px;
  min-height: 49px;
  padding: 12px 24px;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .025em;
  transition: background .25s, color .25s, transform .25s;
}
.button:hover { background: var(--gold); color: #080a0c; transform: translateY(-2px); }
.topography { position: absolute; bottom: -5px; left: 0; width: 100%; height: 190px; opacity: .28; }
.topography path { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }

.section { padding: 48px clamp(26px, 4vw, 56px); }
.services { min-height: 490px; border-bottom: 1px solid var(--line); }
.section-heading { text-align: center; }
.section-heading h2 { margin: 0; font-size: 29px; font-weight: 300; letter-spacing: .03em; }
.section-heading .gold-rule { width: 42px; margin: 13px auto 28px; }
.kicker { margin: 0 0 9px; color: var(--gold); text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.section-heading .kicker { display: none; }
.service-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.service-card {
  min-height: 320px;
  padding: 33px 20px 25px;
  text-align: center;
  background: linear-gradient(145deg, rgba(19,22,25,.92), rgba(13,16,18,.75));
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 0 30px rgba(255,255,255,.015);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(229,164,67,.45); box-shadow: 0 15px 40px rgba(0,0,0,.28); }
.icon { height: 83px; display: grid; place-items: center; color: var(--gold); }
.icon svg { width: 62px; height: 62px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { min-height: 28px; margin: 9px 0 12px; font-size: 18px; line-height: 1.4; font-weight: 400; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.about {
  min-height: 390px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(90deg, #090b0d 0%, rgba(9,11,13,.97) 26%, rgba(9,11,13,.68) 50%, rgba(9,11,13,.15) 100%),
    url('assets/circuit-board.png');
  background-size: cover;
  background-position: center;
}
.about-content { width: min(520px, 52%); margin-left: max(20px, calc((100vw - 1180px) / 2)); position: relative; z-index: 1; }
.about h2 { margin: 0; font-size: clamp(26px, 3vw, 31px); line-height: 1.45; font-weight: 300; }
.about-content > p:last-of-type { margin: 0 0 25px; color: #aaa9a7; font-size: 14px; line-height: 1.7; }
.about .button { min-width: 168px; min-height: 46px; }

.site-footer { min-height: 108px; padding: 20px clamp(30px, 4vw, 55px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.site-footer .brand { font-size: 23px; gap: 14px; }
.site-footer .brand-mark { width: 40px; height: 40px; }
.site-footer p { margin: 0; color: #9a9997; font-size: 13px; }
.mail-link { justify-self: end; color: var(--gold); transition: transform .2s; }
.mail-link:hover { transform: translateY(-2px); }
.mail-link svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.3; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.service-card:nth-child(2) { transition-delay: .07s; }
.service-card:nth-child(3) { transition-delay: .14s; }
.service-card:nth-child(4) { transition-delay: .21s; }
.service-card:nth-child(5) { transition-delay: .28s; }

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:last-child { grid-column: 1 / -1; min-height: 260px; }
  .about-content { width: 60%; }
}

@media (max-width: 720px) {
  .site-header { position: fixed; height: 78px; background: rgba(8,10,12,.94); backdrop-filter: blur(12px); }
  .brand { font-size: 19px; gap: 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .menu-toggle { width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; display: grid; gap: 5px; align-content: center; cursor: pointer; }
  .menu-toggle span { width: 100%; height: 2px; background: var(--gold); }
  .site-nav { position: fixed; top: 78px; left: 0; right: 0; height: auto; padding: 12px 28px 20px; background: rgba(8,10,12,.98); border-bottom: 1px solid var(--line); display: grid; gap: 0; transform: translateY(-140%); transition: transform .25s; }
  .site-nav.open { transform: none; }
  .site-nav a { min-height: 48px; justify-content: start; }
  .site-nav a::after { display: none; }
  .hero { height: auto; min-height: 660px; padding-top: 125px; }
  .hero-content { width: 100%; min-width: 0; margin-top: 0; }
  .hero h1 { font-size: clamp(48px, 14vw, 58px); }
  .hero h2, .hero-copy { max-width: 340px; margin-left: auto; margin-right: auto; }
  .hero-copy br { display: none; }
  .section { padding: 55px 20px; }
  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card, .service-card:last-child { grid-column: auto; min-height: 260px; }
  .about { min-height: 535px; align-items: end; padding-bottom: 55px; background-image: linear-gradient(0deg, #090b0d 7%, rgba(9,11,13,.88) 57%, rgba(9,11,13,.25) 100%), url('assets/circuit-board.png'); background-position: 62% center; }
  .about-content { width: 100%; margin: 0; }
  .site-footer { grid-template-columns: 1fr auto; padding-block: 28px; }
  .site-footer p { grid-row: 2; grid-column: 1 / -1; }
  .mail-link { grid-column: 2; grid-row: 1; }
}

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