:root {
  --navy: #0B1220;
  --navy-soft: #121B2E;
  --blue: #2E86F0;
  --blue-soft: #5BA3F5;
  --gold: #E8A93C;
  --paper: #F5F3EE;
  --ink: #10151F;
  --slate: #5A6B85;
  --slate-light: #8B98AD;
  --line: rgba(16, 21, 31, 0.10);
  --line-dark: rgba(245, 243, 238, 0.12);

  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1140px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: white;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}
.brand-mark { display: flex; color: var(--blue); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand-word.small { font-size: 14px; color: var(--paper); }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: #256fd1; }
.btn-ghost { border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-small { padding: 10px 18px; font-size: 13.5px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #FBFAF7 0%, var(--paper) 100%);
}
.hex-field {
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 130%;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(60deg, transparent 0, transparent 38px, rgba(46,134,240,0.07) 38px, rgba(46,134,240,0.07) 40px),
    repeating-linear-gradient(-60deg, transparent 0, transparent 38px, rgba(46,134,240,0.07) 38px, rgba(46,134,240,0.07) 40px),
    repeating-linear-gradient(0deg, transparent 0, transparent 65px, rgba(46,134,240,0.07) 65px, rgba(46,134,240,0.07) 67px);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 30%, black 20%, transparent 75%);
}
.hex-field-small {
  inset: -20% -5% auto -5%;
  height: 100%;
  opacity: 0.14;
  background-image:
    repeating-linear-gradient(60deg, transparent 0, transparent 38px, rgba(232,169,60,0.5) 38px, rgba(232,169,60,0.5) 40px),
    repeating-linear-gradient(-60deg, transparent 0, transparent 38px, rgba(232,169,60,0.5) 38px, rgba(232,169,60,0.5) 40px),
    repeating-linear-gradient(0deg, transparent 0, transparent 65px, rgba(232,169,60,0.5) 65px, rgba(232,169,60,0.5) 67px);
  mask-image: radial-gradient(ellipse 60% 70% at 30% 40%, black 10%, transparent 70%);
}
.hero-inner { position: relative; max-width: 720px; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--navy);
}
.hero-lede {
  font-size: 18px;
  color: var(--slate);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-pin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pin-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(232,169,60,0.25);
}
.pin-label { font-size: 12px; color: var(--slate); }

/* ---------- STRIP ---------- */
.strip {
  background: var(--navy);
  padding: 28px 0;
}
.strip-text {
  color: rgba(245,243,238,0.88);
  font-size: 16.5px;
  margin: 0;
  text-align: center;
}
.strip-text strong { color: var(--blue-soft); font-weight: 600; }

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }
.section-alt { background: #EFEBE1; }
.section-dark { background: var(--navy); position: relative; overflow: hidden; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 38px);
  margin: 0 0 52px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.section-title.light { color: var(--paper); }
.section-dark .eyebrow { color: var(--gold); }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.service-icon {
  color: var(--blue);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  margin: 0 0 12px;
}
.service-desc {
  color: var(--slate);
  font-size: 15px;
  margin: 0 0 22px;
}
.service-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.service-tags li {
  font-size: 11.5px;
  padding: 5px 10px;
  background: var(--paper);
  border-radius: 6px;
  color: var(--slate);
}

/* ---------- PROJECTS ---------- */
.projects-list {
  display: flex;
  flex-direction: column;
}
.project-row {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-status {
  font-size: 11.5px;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.project-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 10px;
}
.project-info p {
  color: var(--slate);
  font-size: 15px;
  max-width: 640px;
  margin: 0 0 18px;
}
.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.project-tags li {
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--slate);
}

/* ---------- PROCESS ---------- */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step {
  border-top: 2px solid var(--blue);
  padding-top: 20px;
}
.process-num {
  display: block;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  margin: 0 0 10px;
}
.process-step p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

/* ---------- CONTACT ---------- */
.contact-inner { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.contact-lede {
  color: rgba(245,243,238,0.72);
  font-size: 17px;
  margin: 0 auto 52px;
  max-width: 480px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
a.contact-item:hover { border-color: var(--blue-soft); }
.contact-label {
  font-size: 11px;
  color: var(--gold);
}
.contact-value {
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 12px;
  color: var(--slate-light);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 260px; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .btn.btn-primary.btn-small { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding: 140px 0 72px; }
  .process-list { grid-template-columns: 1fr; }
}
