@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@500;600;700&display=swap');

:root {
  --ink: #07131f;
  --ink-soft: #102334;
  --paper: #f2f5f4;
  --white: #ffffff;
  --muted: #9cabb7;
  --text-muted: #55636d;
  --line-dark: rgba(255,255,255,.16);
  --line-light: rgba(7,19,31,.15);
  --cyan: #20d5c2;
  --blue: #197af7;
  --max: 1240px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", Arial, sans-serif; letter-spacing: 0; }
h1 { max-width: 880px; margin-bottom: 26px; font-size: clamp(3.2rem, 7.1vw, 7.1rem); line-height: .94; font-weight: 600; }
h2 { margin-bottom: 24px; font-size: clamp(2.25rem, 4.7vw, 4.7rem); line-height: 1.02; font-weight: 600; }
h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.25; }
p { margin-bottom: 0; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 12px; }
.section-shell { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.section-dark { color: var(--white); background: var(--ink); }
.section-light { color: var(--ink); background: #fbfcfb; }
.section-paper { color: var(--ink); background: var(--paper); }
.eyebrow { margin-bottom: 22px; color: var(--cyan); font-size: .78rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .12em; }

.site-header {
  position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: var(--header); padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex; align-items: center; justify-content: space-between; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.13); transition: background .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled { background: rgba(7,19,31,.9); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Manrope", sans-serif; font-weight: 700; }
.brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(32,213,194,.2)); }
.brand span { font-size: 1rem; }
.site-nav { display: flex; align-items: center; gap: 31px; font-size: .88rem; }
.site-nav > a:not(.nav-cta) { color: rgba(255,255,255,.78); transition: color .2s ease; }
.site-nav > a:hover { color: var(--white); }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(255,255,255,.46); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; color: inherit; }
.nav-toggle span { display: block; width: 22px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .2s ease; }

.hero { position: relative; min-height: 100svh; color: var(--white); background: #040b11; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: url("assets/hero-operations.webp") center right / cover no-repeat; animation: heroScale 1.5s cubic-bezier(.2,.75,.2,1) both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,11,17,.98) 0%, rgba(3,11,17,.87) 38%, rgba(3,11,17,.38) 70%, rgba(3,11,17,.12) 100%), linear-gradient(0deg, rgba(3,11,17,.65), transparent 45%); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 64px)); min-height: 100svh; margin: 0 auto; padding: calc(var(--header) + 72px) 0 140px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-kicker { animation: rise .7s .1s both; }
.hero h1 { animation: rise .8s .2s both; }
.hero-copy { max-width: 680px; color: rgba(255,255,255,.79); font-size: clamp(1.08rem, 1.5vw, 1.35rem); line-height: 1.55; animation: rise .8s .3s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; animation: rise .8s .4s both; }
.button { min-height: 50px; padding: 14px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: .92rem; font-weight: 600; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #011a19; background: var(--cyan); }
.button-primary:hover { background: #55eadb; }
.button-secondary { color: var(--white); border: 1px solid rgba(255,255,255,.38); background: rgba(4,12,18,.18); backdrop-filter: blur(8px); }
.hero-signals { margin: 54px 0 0; padding: 0; display: flex; gap: 26px; color: rgba(255,255,255,.58); list-style: none; font-size: .82rem; animation: rise .8s .52s both; }
.hero-signals li { display: flex; align-items: center; gap: 9px; }
.hero-signals li::before { content: ""; width: 5px; height: 5px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px var(--cyan); }
.hero-rail { position: absolute; z-index: 3; left: max(24px, calc((100vw - var(--max)) / 2)); right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 24px; display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.55); font-size: .63rem; letter-spacing: .13em; }
.hero-rail i { height: 1px; flex: 1; background: rgba(255,255,255,.24); }

.statement { padding: 142px 0 0; overflow: hidden; }
.statement-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 50px; align-items: start; }
.statement-grid > div { max-width: 850px; }
.statement-grid h2 { font-size: clamp(2.8rem, 5.6vw, 5.8rem); }
.statement-grid p:last-child { max-width: 670px; color: var(--muted); font-size: 1.1rem; }
.friction-strip { margin-top: 116px; padding: 25px max(32px, calc((100vw - var(--max)) / 2)); display: flex; gap: 0; overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); white-space: nowrap; }
.friction-strip span { display: flex; align-items: center; color: rgba(255,255,255,.7); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.friction-strip span::after { content: "+"; margin: 0 42px; color: var(--cyan); }

.services, .work, .technology { padding: 142px 0; }
.section-heading { margin-bottom: 75px; display: grid; grid-template-columns: 1.6fr .7fr; gap: 70px; align-items: end; }
.section-heading h2 { max-width: 850px; margin-bottom: 0; }
.section-heading > p { max-width: 460px; color: var(--text-muted); }
.service-list { border-top: 1px solid var(--line-light); }
.service-row { padding: 34px 0; display: grid; grid-template-columns: 80px 1.4fr .8fr; gap: 36px; align-items: start; border-bottom: 1px solid var(--line-light); transition: padding .25s ease, background .25s ease; }
.service-row:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(32,213,194,.08), transparent 70%); }
.service-index { color: var(--blue); font-family: "Manrope", sans-serif; font-size: .8rem; font-weight: 700; }
.service-row h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
.service-row p { max-width: 590px; color: var(--text-muted); }
.service-row ul { margin: 0; padding: 0; color: var(--text-muted); list-style: none; font-size: .9rem; }
.service-row li { padding: 6px 0; border-bottom: 1px solid rgba(7,19,31,.08); }

.process { padding: 142px 0 155px; overflow: hidden; }
.process-track { position: relative; }
.process-line { position: absolute; top: 18px; left: 0; right: 0; height: 1px; background: var(--line-light); }
.process-line span { display: block; width: 0; height: 100%; background: var(--blue); box-shadow: 0 0 14px rgba(25,122,247,.5); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.process-track.active .process-line span { width: 100%; }
.process-track ol { position: relative; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; list-style: none; }
.process-track li > span { width: 37px; height: 37px; margin-bottom: 42px; display: grid; place-items: center; color: var(--white); background: var(--ink); border: 4px solid var(--paper); border-radius: 50%; font-size: .66rem; }
.process-track h3 { font-size: 1.05rem; }
.process-track p { color: var(--text-muted); font-size: .88rem; line-height: 1.55; }

.production { padding: 150px 0; }
.production-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; }
.production-intro { position: sticky; top: 120px; align-self: start; }
.production-intro h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.production-intro > p:not(.eyebrow) { max-width: 530px; color: var(--muted); }
.text-link { margin-top: 34px; display: inline-flex; gap: 10px; color: var(--cyan); font-weight: 600; }
.assurance-list { border-top: 1px solid var(--line-dark); }
.assurance-list > div { padding: 30px 0; display: grid; grid-template-columns: 50px 1fr; gap: 10px 20px; border-bottom: 1px solid var(--line-dark); }
.assurance-list span { grid-row: span 2; color: var(--cyan); font-size: .72rem; }
.assurance-list h3 { margin-bottom: 0; font-size: 1.3rem; }
.assurance-list p { color: var(--muted); }

.case-list { border-top: 1px solid var(--line-light); }
.case-study { padding: 52px 0; border-bottom: 1px solid var(--line-light); }
.case-meta { margin-bottom: 55px; display: flex; justify-content: space-between; color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.case-study h3 { max-width: 880px; font-size: clamp(2rem, 3.8vw, 4rem); }
.case-study > p { max-width: 740px; color: var(--text-muted); font-size: 1.05rem; }
.case-study ul { margin: 35px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.case-study li { padding: 7px 10px; border-left: 2px solid var(--cyan); background: rgba(7,19,31,.045); font-size: .78rem; }

.fit { padding: 142px 0; }
.fit-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 90px; }
.fit-grid h2 { font-size: clamp(2.5rem, 4.2vw, 4.2rem); }
.fit-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.fit-columns h3 { margin-bottom: 24px; color: var(--blue); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }
.fit-columns ul { margin: 0; padding: 0; list-style: none; }
.fit-columns li { padding: 14px 0; border-top: 1px solid var(--line-light); color: var(--text-muted); }

.technology-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; align-items: start; }
.technology-grid h2 { font-size: clamp(2.5rem, 4.4vw, 4.4rem); }
.technology-grid > div:last-child > p { max-width: 640px; color: var(--text-muted); }
.tech-list { margin: 38px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line-light); list-style: none; }
.tech-list li { width: 33.333%; padding: 15px 8px 15px 0; border-bottom: 1px solid var(--line-light); font-size: .88rem; }

.faq { padding: 142px 0; }
.faq-grid { display: grid; grid-template-columns: .75fr 1.35fr; gap: 110px; align-items: start; }
.faq-intro { position: sticky; top: 120px; }
.faq-intro h2 { font-size: clamp(2.5rem, 4.2vw, 4.2rem); }
.faq-intro > p:last-child { max-width: 420px; color: var(--text-muted); }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-list details { border-bottom: 1px solid var(--line-light); }
.faq-list summary { position: relative; padding: 25px 48px 25px 0; cursor: pointer; list-style: none; font-family: "Manrope", sans-serif; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--blue); font-size: 1.5rem; font-weight: 400; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 730px; padding: 0 48px 26px 0; color: var(--text-muted); }

.final-cta { padding: 145px 0 150px; text-align: center; }
.final-cta .section-shell { display: flex; flex-direction: column; align-items: center; }
.final-cta h2 { max-width: 960px; font-size: clamp(3rem, 6vw, 6.5rem); }
.final-cta p:not(.eyebrow) { max-width: 670px; color: var(--muted); font-size: 1.08rem; }
.final-cta .button { margin-top: 38px; }

.site-footer { padding: 70px max(32px, calc((100vw - var(--max)) / 2)) 28px; display: grid; grid-template-columns: 1.7fr .8fr .7fr; gap: 60px; color: rgba(255,255,255,.72); background: #040a10; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.site-footer .brand { color: var(--white); }
.footer-brand > p { max-width: 340px; margin-top: 20px; }
.site-footer > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-label { color: var(--white); font-weight: 600; }
.copyright { grid-column: 1 / -1; margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--line-dark); color: rgba(255,255,255,.42); }

.reveal { opacity: 1; }
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.service-link { display: inline-block; margin-top: 20px; color: #0758aa; text-decoration: underline; text-underline-offset: 5px; font-weight: 600; }
.service-link:hover { color: #086b60; }
section[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid #197af7; outline-offset: 5px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroScale { from { opacity: .3; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  :root { --header: 68px; }
  .section-shell, .hero-content { width: min(100% - 40px, var(--max)); }
  .site-header { padding: 0 20px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header) 0 auto 0; max-height: 0; padding: 0 22px; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; color: var(--white); background: rgba(7,19,31,.98); transition: max-height .3s ease, padding .3s ease; }
  .nav-open .site-nav { max-height: calc(100svh - var(--header)); padding-top: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .site-nav .nav-cta { margin-top: 14px; padding: 13px 15px; text-align: center; border: 1px solid rgba(255,255,255,.4); }
  .nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero-content { padding-top: calc(var(--header) + 70px); padding-bottom: 130px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .hero-shade { background: linear-gradient(90deg, rgba(3,11,17,.98), rgba(3,11,17,.72)), linear-gradient(0deg, rgba(3,11,17,.75), transparent 52%); }
  .hero-signals { gap: 15px; flex-wrap: wrap; }
  .hero-rail { left: 20px; right: 20px; }
  .hero-rail span:nth-of-type(2), .hero-rail span:nth-of-type(3), .hero-rail i:nth-of-type(2), .hero-rail i:nth-of-type(3) { display: none; }
  .statement-grid, .section-heading, .production-grid, .fit-grid, .technology-grid, .faq-grid { grid-template-columns: 1fr; gap: 45px; }
  .statement { padding-top: 100px; }
  .section-heading { margin-bottom: 55px; }
  .services, .work, .technology, .process, .fit, .faq, .production { padding-top: 100px; padding-bottom: 100px; }
  .production-intro, .faq-intro { position: static; }
  .service-row { grid-template-columns: 52px 1fr; }
  .service-row ul { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .service-row li { border: 0; }
  .process-line { display: none; }
  .process-track ol { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .process-track li > span { margin-bottom: 18px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand span { font-size: .92rem; }
  .hero-media { background-position: 61% center; }
  .hero-content { justify-content: flex-end; padding-bottom: 120px; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4.15rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-signals { display: none; }
  .friction-strip { margin-top: 80px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; }
  .service-row ul { grid-column: 1; }
  .process-track ol { grid-template-columns: 1fr; }
  .process-track li { padding-left: 54px; position: relative; }
  .process-track li > span { position: absolute; left: 0; top: 0; }
  .case-meta { margin-bottom: 32px; flex-direction: column; gap: 6px; }
  .fit-columns { grid-template-columns: 1fr; gap: 45px; }
  .tech-list li { width: 50%; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

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