:root {
  --ink: #06080c;
  --ink-soft: #0e131a;
  --slate: #161d28;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(10, 16, 24, 0.1);
  --paper: #f3f5f7;
  --paper-2: #e8ecf1;
  --text: #f5f7fa;
  --text-ink: #10151c;
  --muted: #a7b2c0;
  --muted-ink: #5a6573;
  --steel: #c5d0dc;
  --signal: #c9a227;
  --teal: #1f8a74;
  --teal-bright: #2db894;
  --danger: #c45c5c;
  --ok: #2a9b6a;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4.5vw, 4rem);
  --max: 1240px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--ink);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--steel); }
button { font: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  mix-blend-mode: overlay;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem var(--pad);
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.75), transparent);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(6, 8, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 650;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  padding: 13px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  transition: 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  color: rgba(245, 247, 250, 0.72);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--teal-bright);
}
.nav-cta {
  margin-left: 0.4rem !important;
  padding: 0.72rem 1.1rem !important;
  border: 1px solid rgba(201, 162, 39, 0.55) !important;
  background: rgba(201, 162, 39, 0.14) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: var(--r);
}
.nav-cta:hover {
  background: rgba(201, 162, 39, 0.28) !important;
  border-bottom-color: transparent !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0 0 0 0;
    padding: 6.5rem var(--pad) 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 8, 12, 0.97);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    z-index: 35;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a {
    padding: 1.05rem 0;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin: 1.4rem 0 0 !important; text-align: center; }
}

/* —— Full-bleed home hero —— */
.hero-bleed {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--text);
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("hero-perimeter.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 8, 12, 0.88) 0%, rgba(6, 8, 12, 0.55) 48%, rgba(6, 8, 12, 0.35) 100%),
    linear-gradient(0deg, rgba(6, 8, 12, 0.92) 0%, transparent 42%);
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(7rem, 14vw, 9rem) var(--pad) clamp(3.5rem, 7vw, 5rem);
}
.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.1vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-headline {
  margin: 0 0 0.9rem;
  max-width: 28ch;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1rem, 1.65vw, 1.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--steel);
}
.hero-sub {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: rgba(245, 247, 250, 0.78);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.55;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  color: #04140f;
  box-shadow: 0 16px 40px rgba(31, 138, 116, 0.28);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink-ghost {
  border-color: rgba(16, 21, 28, 0.22);
  background: transparent;
  color: var(--text-ink);
}
.btn-block { width: 100%; }

/* —— Full-width metric rail —— */
.metric-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-rail article {
  padding: 1.6rem var(--pad);
  border-right: 1px solid var(--line);
}
.metric-rail article:last-child { border-right: 0; }
.metric-rail strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.metric-rail span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
@media (max-width: 860px) {
  .metric-rail { grid-template-columns: 1fr 1fr; }
  .metric-rail article:nth-child(2n) { border-right: 0; }
  .metric-rail article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* —— Light editorial band —— */
.band-light {
  background:
    linear-gradient(180deg, #f7f8fa, var(--paper));
  color: var(--text-ink);
  padding: clamp(4.5rem, 9vw, 7rem) var(--pad);
}
.band-dark {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(31, 138, 116, 0.16), transparent 50%),
    var(--ink-soft);
  color: var(--text);
  padding: clamp(4.5rem, 9vw, 7rem) var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}
.band-light .eyebrow { color: #8a6f1d; }
.band-light h2,
.band-dark h2,
.section-head h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.25rem, 2.25vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
}
.lede {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted-ink);
}
.band-dark .lede { color: var(--muted); }

.editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .editorial { grid-template-columns: 1fr; }
}
.editorial-media {
  position: relative;
  min-height: min(52vw, 420px);
  border-radius: var(--r);
  overflow: hidden;
  background: #111 center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(10, 16, 24, 0.18);
}
.editorial-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 8, 12, 0.45));
}
.editorial-copy h2 { max-width: 20ch; }
.editorial-copy p {
  margin: 0 0 1rem;
  color: var(--muted-ink);
  font-size: 1.02rem;
  line-height: 1.65;
}
.editorial-copy ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.editorial-copy li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-ink);
  font-size: 0.98rem;
}
.editorial-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  background: var(--teal);
}

/* —— Dense service rows (not floating cards) —— */
.stack-rows {
  display: grid;
  border-top: 1px solid var(--line-dark);
}
.band-dark .stack-rows { border-top-color: var(--line); }
.stack-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr minmax(0, 18rem);
  gap: 1.25rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.band-dark .stack-row { border-bottom-color: var(--line); }
.stack-row .idx {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1rem;
  color: var(--signal);
  letter-spacing: 0.04em;
}
.stack-row h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.stack-row p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.55;
}
.band-dark .stack-row p { color: var(--muted); }
.stack-row .aside {
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.5;
}
.band-dark .stack-row .aside { color: var(--muted); }
@media (max-width: 800px) {
  .stack-row {
    grid-template-columns: 3.5rem 1fr;
  }
  .stack-row .aside { grid-column: 2; }
}

/* —— Sector mosaic —— */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.band-dark .mosaic {
  background: var(--line);
  border-color: var(--line);
}
.mosaic article {
  background: #fff;
  padding: 1.75rem 1.5rem;
  min-height: 180px;
}
.band-dark .mosaic article { background: var(--slate); }
.mosaic article:nth-child(1) { grid-column: span 7; }
.mosaic article:nth-child(2) { grid-column: span 5; }
.mosaic article:nth-child(3) { grid-column: span 4; }
.mosaic article:nth-child(4) { grid-column: span 4; }
.mosaic article:nth-child(5) { grid-column: span 4; }
.mosaic article:nth-child(6) { grid-column: span 12; }
@media (max-width: 900px) {
  .mosaic article { grid-column: 1 / -1 !important; min-height: 0; }
}
.mosaic .tag {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6f1d;
}
.band-dark .mosaic .tag { color: var(--signal); }
.mosaic h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.mosaic p {
  margin: 0;
  color: var(--muted-ink);
  font-size: 0.98rem;
  line-height: 1.55;
}
.band-dark .mosaic p { color: var(--muted); }

/* —— Page hero (inner) —— */
.page-hero {
  position: relative;
  min-height: min(58vh, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 9rem) var(--pad) clamp(2.8rem, 6vw, 4rem);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  background: url("ops-room.jpg") center / cover no-repeat;
  transform: scale(1.05);
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 8, 12, 0.9) 10%, rgba(6, 8, 12, 0.55) 60%, rgba(6, 8, 12, 0.4)),
    linear-gradient(0deg, rgba(6, 8, 12, 0.85), transparent 50%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}
.page-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 16ch;
}
.page-lead {
  margin: 0;
  max-width: 38rem;
  color: rgba(245, 247, 250, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
}
.page-hero .cta-row { margin-top: 1.6rem; }

/* —— Prose —— */
.prose {
  max-width: 44rem;
  color: var(--muted-ink);
  font-size: 1.02rem;
  line-height: 1.7;
}
.band-dark .prose { color: var(--muted); }
.prose p { margin: 0 0 1.1rem; }
.prose h3 {
  margin: 1.75rem 0 0.7rem;
  color: var(--text-ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.band-dark .prose h3 { color: var(--text); }
.prose ul {
  margin: 0 0 1.4rem;
  padding-left: 1.15rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.band-dark .prose a { color: var(--teal-bright); }
.contact-person {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line-dark);
  background: #fff;
  border-radius: var(--r);
}
.contact-person strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-ink);
}
.contact-phone {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--teal) !important;
  text-decoration: none !important;
}
.contact-phone:hover { text-decoration: underline !important; }

/* —— Contact / form —— */
.contact-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
}
.lead-form {
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid rgba(16, 21, 28, 0.12);
  background: #fff;
  border-radius: var(--r);
  box-shadow: 0 28px 70px rgba(10, 16, 24, 0.12);
  color: var(--text-ink);
}
.band-dark .lead-form {
  background: var(--slate);
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  margin-bottom: 1.1rem;
}
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.lead-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--muted-ink);
}
.band-dark .lead-form label { color: var(--steel); }
.lead-form input,
.lead-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.95rem 1rem;
  border-radius: var(--r);
  border: 1px solid rgba(16, 21, 28, 0.16);
  background: #f7f8fa;
  color: var(--text-ink);
  font: inherit;
  font-size: 1.05rem;
}
.band-dark .lead-form input,
.band-dark .lead-form textarea {
  background: rgba(6, 8, 12, 0.45);
  border-color: var(--line);
  color: var(--text);
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: rgba(31, 138, 116, 0.7);
  box-shadow: 0 0 0 3px rgba(31, 138, 116, 0.16);
}
.lead-form textarea { min-height: 140px; resize: vertical; }
.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted-ink);
}
.band-dark .form-note { color: var(--muted); }
.form-note a { color: var(--teal); text-decoration: underline; }
.band-dark .form-note a { color: var(--teal-bright); }
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
.alert {
  margin-bottom: 1.1rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r);
  font-size: 1rem;
}
.alert-ok {
  background: rgba(42, 155, 106, 0.1);
  color: var(--ok);
  border: 1px solid rgba(42, 155, 106, 0.28);
}
.alert-err {
  background: rgba(196, 92, 92, 0.1);
  color: var(--danger);
  border: 1px solid rgba(196, 92, 92, 0.28);
}

.cta-finale {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(31, 138, 116, 0.22), transparent 55%),
    var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.cta-finale-wrap {
  padding: 0 var(--pad) clamp(3.5rem, 7vw, 5rem);
  background: var(--ink);
}
.cta-finale h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: -0.025em;
}
.cta-finale p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
}

/* —— Footer —— */
.site-footer {
  padding: 3.5rem var(--pad) 2.4rem;
  background: #030509;
  border-top: 1px solid var(--line);
}
.footer-grid {
  width: min(100%, var(--max));
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.footer-brand p {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: var(--muted);
}
.site-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}
.site-footer a {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.site-footer a:hover { color: #fff; }
.fineprint {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: rgba(167, 178, 192, 0.65);
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
