:root {
  --bg: #050505;
  --bg-soft: #090c10;
  --surface: #111318;
  --surface-2: #161c24;
  --surface-3: #202630;
  --text: #f3f4f5;
  --muted: #aeb3b9;
  --muted-2: #d4d7da;
  --gold: #c2a157;
  --gold-soft: #b89a5e;
  --green: #527e74;
  --red: #e3001b;
  --line: #303741;
  --container: 1180px;
  --header-h: 78px;
  --radius: 16px;
  --shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: var(--gold);
  color: #050505;
  font-weight: 700;
  border-radius: 6px;
}
.skip-link:focus { transform: none; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: clamp(78px, 9vw, 126px) 0; position: relative; overflow: hidden; }
.section-dark { background: var(--bg-soft); }
.section-dark::before,
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 800;
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.75rem, 6.1vw, 5.65rem); max-width: 920px; }
h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); }
h3 { font-size: 1.08rem; }
p { color: var(--muted-2); }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 5, .86);
  border-color: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 116px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { text-decoration: none; color: #d8dbe0; font-size: .88rem; font-weight: 650; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--gold); }
.primary-nav .nav-cta { border: 1px solid var(--gold); color: var(--text); padding: 9px 16px; border-radius: 999px; }
.primary-nav .nav-cta:hover { color: #050505; background: var(--gold); }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 0; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: .25s ease; }

.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 68px) 0 72px;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(2,4,8,.98) 0%, rgba(3,6,11,.92) 34%, rgba(5,7,11,.55) 68%, rgba(3,4,7,.28) 100%), linear-gradient(0deg, rgba(5,5,5,.92), transparent 45%);
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gold);
}
.hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 110px 110px; mask-image: linear-gradient(90deg, #000, transparent 78%); }
.hero-inner { display: grid; gap: 70px; }
.hero-copy { max-width: 850px; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-lead { max-width: 700px; font-size: clamp(1.05rem, 1.65vw, 1.32rem); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  font-size: .91rem;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #090909; }
.button-primary:hover { background: #d0b26b; }
.button-secondary { border-color: rgba(255,255,255,.28); background: rgba(10,12,16,.5); color: var(--text); backdrop-filter: blur(10px); }
.button-secondary:hover { border-color: var(--gold); color: var(--gold); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 840px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats div { padding: 20px 25px 0 0; border-right: 1px solid rgba(255,255,255,.13); }
.hero-stats div + div { padding-left: 25px; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-size: 1.3rem; color: var(--text); margin-bottom: 2px; }
.hero-stats span { color: var(--muted); font-size: .86rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 28px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 4px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(15px); } }

.split-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); gap: clamp(50px, 8vw, 110px); align-items: center; }
.section-copy h2 { max-width: 760px; margin-bottom: 28px; }
.section-copy p { max-width: 720px; font-size: 1.05rem; }
.profile-visual { margin: 0; position: relative; }
.profile-visual::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--gold); border-radius: 12px; z-index: -1; opacity: .55; }
.profile-visual img { width: 100%; border-radius: 10px; background: #07101d; box-shadow: var(--shadow); }
.profile-visual figcaption { margin-top: 12px; color: var(--muted); font-size: .82rem; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: 60px; align-items: end; margin-bottom: 48px; position: relative; z-index: 1; }
.section-heading h2 { margin-bottom: 0; max-width: 820px; }
.section-heading > p { margin: 0 0 5px; max-width: 420px; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; z-index: 1; }
.image-card { background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; min-height: 310px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.image-card:hover { transform: translateY(-6px); border-color: rgba(194,161,87,.65); box-shadow: var(--shadow); }
.image-card img { width: 100%; height: 170px; object-fit: cover; }
.image-card-copy { padding: 22px; }
.image-card h3 { text-transform: uppercase; letter-spacing: .035em; font-size: .85rem; margin-bottom: 10px; }
.image-card p { font-size: .91rem; margin: 0; }

.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.workflow-card { position: relative; margin: 0; min-height: 252px; border: 1px solid rgba(255,255,255,.1); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.workflow-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.15) 63%); }
.workflow-card img { width: 100%; height: 252px; object-fit: cover; transition: transform .5s ease; }
.workflow-card:hover img { transform: scale(1.035); }
.workflow-card span, .workflow-card h3 { position: absolute; z-index: 2; }
.workflow-card span { top: 18px; left: 18px; display: grid; place-items: center; width: 38px; height: 28px; border-radius: 999px; color: #050505; background: var(--gold); font-weight: 850; font-size: .72rem; }
.workflow-card h3 { bottom: 20px; left: 20px; right: 20px; margin: 0; font-size: 1.08rem; }

.services { background: #07090c; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; z-index: 1; }
.service-card { background: rgba(17,19,24,.92); border: 1px solid rgba(255,255,255,.09); padding: 28px 24px; min-height: 430px; position: relative; overflow: hidden; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.service-number { display: inline-grid; place-items: center; min-width: 36px; height: 24px; border-radius: 3px; background: #00b050; color: #050505; font-size: .67rem; font-weight: 850; margin-bottom: 24px; }
.service-card:nth-child(2) .service-number { background: var(--gold); }
.service-card:nth-child(3) .service-number { background: #f1f1f1; }
.service-number-red { background: var(--red) !important; color: #fff; }
.service-card h3 { font-size: 1.35rem; min-height: 74px; margin-bottom: 24px; }
.service-card ul { margin: 0; padding: 0; list-style: none; }
.service-card li { color: var(--muted); font-size: .9rem; padding: 9px 0 9px 18px; border-top: 1px solid rgba(255,255,255,.07); position: relative; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.matrix-wrap { position: relative; z-index: 1; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.matrix-row { display: grid; grid-template-columns: minmax(480px, 1fr) repeat(6, 88px); min-height: 112px; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); }
.matrix-row:nth-child(odd):not(.matrix-head) { background: var(--surface-2); }
.matrix-row:last-child { border-bottom: 0; }
.matrix-row > div { display: grid; place-items: center; border-left: 1px solid rgba(255,255,255,.06); }
.matrix-row > div:first-child { border-left: 0; }
.matrix-head { min-height: 55px; background: transparent; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.matrix-head > div:first-child { justify-items: start; padding-left: 22px; }
.model-copy { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 18px; padding: 19px 22px; }
.model-copy > span { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 28px; border-radius: 6px; background: var(--gold); color: #050505; font-size: .71rem; font-weight: 850; }
.model-copy h3 { margin: 0 0 4px; font-size: 1rem; letter-spacing: -.01em; }
.model-copy p { margin: 0; font-size: .82rem; line-height: 1.42; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot-typical { background: var(--gold); border: 1px solid var(--gold); }
.dot-required { background: var(--green); border: 1px solid var(--gold); }
.dot-outside { background: var(--surface-3); border: 1px solid #454c57; }
.matrix-legend { display: flex; gap: 26px; justify-content: flex-end; margin-top: 18px; position: relative; z-index: 1; }
.matrix-legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .79rem; }

.why { background: radial-gradient(circle at 85% 20%, rgba(31,52,73,.45), transparent 33%), var(--bg); }
.why-layout { display: grid; grid-template-columns: 1fr minmax(340px, .74fr); gap: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.why-card { padding: 26px; background: var(--surface); border: 1px solid rgba(255,255,255,.08); min-height: 170px; }
.why-card h3 { margin-bottom: 12px; font-size: 1.05rem; }
.why-card p { margin: 0; font-size: .9rem; }
.contact-card { border: 1px solid rgba(194,161,87,.55); background: linear-gradient(145deg, rgba(27,31,39,.98), rgba(11,13,17,.98)); padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow); }
.contact-card h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 22px; }
.contact-name { margin-bottom: 24px; }
.contact-name strong { color: var(--text); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.contact-details { margin: 0; }
.contact-details div { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact-details dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-details dd { margin: 0; color: var(--muted-2); font-size: .88rem; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--gold); }

.site-footer { border-top: 1px solid rgba(255,255,255,.08); background: #030303; padding: 34px 0; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.footer-brand img { width: 92px; height: auto; }
.site-footer p { margin: 0; font-size: .78rem; color: #858b92; }
.site-footer p:last-child { text-align: right; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 390px; }
  .matrix-row { grid-template-columns: minmax(420px, 1fr) repeat(6, 72px); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; position: relative; z-index: 3; cursor: pointer; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; background: rgba(5,5,5,.98); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s ease; }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav a { font-size: 1.25rem; }
  .primary-nav .nav-cta { padding: 11px 25px; }
  .brand { position: relative; z-index: 3; }
  .brand img { width: 104px; }

  .hero { min-height: 820px; }
  .hero-media img { object-position: 72% center; }
  .hero::before { background: linear-gradient(90deg, rgba(2,4,8,.97), rgba(3,6,11,.79) 62%, rgba(3,4,7,.46)), linear-gradient(0deg, rgba(5,5,5,.95), transparent 55%); }
  .split-layout, .section-heading, .why-layout { grid-template-columns: 1fr; }
  .section-heading { gap: 18px; }
  .section-heading > p { max-width: 700px; }
  .profile-visual { max-width: 620px; }
  .expertise-grid, .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-wrap { border: 0; overflow: visible; }
  .matrix-head { display: none; }
  .matrix-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 0; }
  .matrix-row > div { min-height: 68px; position: relative; padding-top: 21px; }
  .matrix-row > div[data-label]::before { content: attr(data-label); position: absolute; top: 7px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .06em; }
  .matrix-row .model-copy { grid-column: 1 / -1; min-height: 105px; border-bottom: 1px solid var(--line); padding-top: 19px; }
  .matrix-row > div:nth-last-child(-n+3) { border-top: 1px solid rgba(255,255,255,.06); }
  .matrix-row > div:nth-child(2), .matrix-row > div:nth-child(5) { border-left: 0; }
  .matrix-legend { justify-content: flex-start; flex-wrap: wrap; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: auto 1fr; }
  .site-footer p:last-child { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 74px 0; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero { min-height: 760px; padding-top: calc(var(--header-h) + 55px); }
  .hero-copy h1 br { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 310px; }
  .hero-stats { grid-template-columns: 1fr; border-top: 0; gap: 0; }
  .hero-stats div, .hero-stats div + div { border-right: 0; border-top: 1px solid rgba(255,255,255,.15); padding: 13px 0; }
  .scroll-cue { display: none; }
  .expertise-grid, .workflow-grid, .services-grid, .why-grid { grid-template-columns: 1fr; }
  .image-card img { height: 190px; }
  .service-card { min-height: auto; }
  .matrix-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-row .model-copy { min-height: 0; }
  .matrix-row > div:nth-child(5) { border-left: 1px solid rgba(255,255,255,.06); }
  .matrix-row > div:nth-child(even):not(.model-copy) { border-left: 0; }
  .matrix-row > div:nth-last-child(-n+4) { border-top: 1px solid rgba(255,255,255,.06); }
  .model-copy { align-items: flex-start !important; }
  .matrix-legend { gap: 12px 18px; }
  .contact-details div { grid-template-columns: 1fr; gap: 2px; }
  .contact-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
}

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