:root {
  --ink: #050f1a;
  --navy: #0a2f50;
  --navy-soft: #123f63;
  --gold: #ce9224;
  --gold-bright: #f0bb54;
  --steel: #5c6a75;
  --mist: #edf2f4;
  --paper: #f8fafb;
  --white: #ffffff;
  --line: rgba(7, 27, 45, 0.15);
  --max: 1180px;
  --shadow: 0 24px 70px rgba(7, 27, 45, 0.18);
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.6; cursor: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; }
.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; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--ink); transition: opacity .7s var(--ease), visibility .7s var(--ease); }
.preloader-mark { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }
.preloader-mark img { width: 78%; filter: brightness(0) invert(1); animation: pulseLogo 1.6s ease-in-out infinite; }
.preloader-ring { position: absolute; inset: 0; width: 120px; height: 120px; transform: rotate(-90deg); }
.preloader-ring circle { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 276; stroke-dashoffset: 276; animation: ringDraw 1.4s var(--ease) infinite; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes pulseLogo { 0%,100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 7px; height: 7px; background: var(--gold-bright); transition: opacity .2s ease, transform .15s ease; }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(240,187,84,.55); transition: width .28s var(--ease), height .28s var(--ease), opacity .2s ease, background .28s ease, border-color .28s ease; }
.cursor-ring.is-active { width: 62px; height: 62px; background: rgba(240,187,84,.1); border-color: var(--gold-bright); }
body.no-fine-pointer .cursor-dot, body.no-fine-pointer .cursor-ring { display: none; }
body.no-fine-pointer { cursor: auto; }

/* ---------- WebGL canvas ---------- */
#webgl-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease 0.2s; }
#webgl-canvas.is-ready { opacity: 1; }
.hero { z-index: 1; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.16); transition: transform .45s var(--ease), background .35s ease, border-color .35s ease; }
.site-header.is-scrolled { position: fixed; background: rgba(5,15,26,.86); backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav-shell { width: min(1260px, calc(100% - 44px)); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; width: 310px; max-width: 48vw; }
.brand img { filter: brightness(0) invert(1); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; color: var(--white); text-decoration: none; font-size: .92rem; font-weight: 700; letter-spacing: .01em; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: var(--gold-bright); transition: right .3s var(--ease); }
.site-nav a:not(.nav-cta):hover::after, .site-nav a:not(.nav-cta):focus-visible::after { right: 0; }
.site-nav a:not(.nav-cta):hover, .site-nav a:not(.nav-cta):focus-visible { color: #f6c767; }
.nav-cta { padding: 11px 18px; border: 1px solid rgba(255,255,255,.55); transition: .25s ease; }
.nav-cta:hover, .nav-cta:focus-visible { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.menu-button { display: none; border: 0; background: transparent; padding: 9px; }
.menu-button span:not(.sr-only) { display: block; width: 27px; height: 2px; margin: 6px 0; background: white; }

.hero { min-height: 880px; position: relative; display: grid; align-items: center; overflow: hidden; background: var(--ink); color: white; }
.hero-grain { position: absolute; inset: 0; z-index: 1; opacity: .05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 20% 20%, rgba(10,40,66,.35), transparent 60%), linear-gradient(90deg, rgba(3,12,21,.96) 0%, rgba(3,12,21,.86) 42%, rgba(3,12,21,.32) 76%, rgba(3,12,21,.55) 100%), linear-gradient(0deg, rgba(3,12,21,.5), transparent 55%); }
.hero-grid { position: relative; z-index: 2; padding-top: 92px; display: grid; grid-template-columns: 1fr 340px; gap: 90px; align-items: end; }
.hero-copy { padding-block: 110px 88px; max-width: 780px; }
.eyebrow { margin: 0 0 18px; color: #f0bb54; font-size: .78rem; line-height: 1.2; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow.dark { color: #966613; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(3.35rem, 6.5vw, 6.8rem); line-height: .93; letter-spacing: -.06em; font-weight: 850; overflow: hidden; }
h1 .line { display: block; overflow: hidden; }
h1 .word { display: inline-block; transform: translateY(115%); transition: transform .85s var(--ease); }
h1.is-visible .word { transform: translateY(0); }
h1 .word.gold { color: #f0bb54; }
.hero-lead { max-width: 690px; margin-bottom: 34px; color: rgba(255,255,255,.84); font-size: 1.18rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; color: var(--ink); font-size: .92rem; font-weight: 850; text-decoration: none; transition: .25s var(--ease); position: relative; overflow: hidden; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(206,146,36,.28); }
.button-gold { background: var(--gold); }
.button-gold:hover, .button-gold:focus-visible { background: #e1aa42; }
.text-link { color: white; font-weight: 800; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 7px; color: var(--gold); transition: transform .2s; }
.text-link:hover span { transform: translate(4px, 3px); }
.hero-panel { margin-bottom: 88px; padding: 28px; background: rgba(6,26,43,.72); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.panel-kicker { color: #f0bb54; font-size: .75rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li { padding: 15px 0; display: flex; gap: 16px; align-items: center; border-top: 1px solid rgba(255,255,255,.14); font-weight: 780; transition: padding-left .3s var(--ease), color .3s ease; }
.hero-panel li:hover { padding-left: 8px; color: var(--gold-bright); }
.hero-panel li span { color: var(--gold); font-size: .74rem; }
.panel-foot { margin: 17px 0 0; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.64); font-size: .82rem; }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 34px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 20px; background: transparent; cursor: pointer; }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; background: var(--gold-bright); border-radius: 3px; animation: scrollCue 1.8s ease infinite; }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translateY(16px); opacity: 0; } }

.trust-strip { background: white; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { min-height: 126px; padding: 26px 24px; display: grid; align-content: center; border-right: 1px solid var(--line); }
.trust-grid div:first-child { border-left: 1px solid var(--line); }
.trust-grid strong { font-size: 1.25rem; color: var(--navy); }
.trust-grid span { color: var(--steel); font-size: .85rem; }

.section { padding: 120px 0; position: relative; z-index: 2; background: var(--paper); }
.section-heading { max-width: 820px; margin-bottom: 70px; }
.section-heading h2, .quality-intro h2, .company-copy h2, .contact-copy h2 { margin-bottom: 24px; font-size: clamp(2.35rem, 4.7vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child, .quality-intro > p, .company-copy > p, .contact-copy > p { color: var(--steel); font-size: 1.08rem; }
.feature { margin: 0 0 90px; display: grid; grid-template-columns: 1.14fr .86fr; background: white; box-shadow: 0 18px 50px rgba(7,27,45,.09); transition: box-shadow .4s ease; transform-style: preserve-3d; will-change: transform; }
.feature:hover { box-shadow: 0 30px 70px rgba(7,27,45,.16); }
.feature:last-child { margin-bottom: 0; }
.feature-reverse .feature-image { order: 2; }
.feature-reverse .feature-copy { order: 1; }
.feature-image { position: relative; min-height: 510px; overflow: hidden; background: var(--navy); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.feature:hover .feature-image img { transform: scale(1.06); }
.image-index { position: absolute; right: 0; bottom: 0; width: 74px; height: 74px; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-size: 1.25rem; font-weight: 900; }
.feature-copy { padding: clamp(42px, 6vw, 76px); display: grid; align-content: center; }
.feature-copy h3 { margin-bottom: 20px; color: var(--navy); font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1.04; letter-spacing: -.04em; }
.feature-copy > p:not(.eyebrow) { color: var(--steel); }
.capability-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li { position: relative; margin: 0 0 12px; padding-left: 22px; font-size: .95rem; font-weight: 650; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 2px; background: var(--gold); }
.check-list.single { columns: 2; column-gap: 30px; }
.component-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 9px; }
.component-tags span { padding: 9px 12px; background: var(--mist); border-left: 3px solid var(--gold); font-size: .85rem; font-weight: 750; transition: transform .25s var(--ease), background .25s ease; }
.component-tags span:hover { transform: translateY(-3px); background: #e3ecef; }

.failure-note { margin-top: 40px; padding: 34px 38px; background: var(--navy); color: white; border-left: 5px solid var(--gold); }
.failure-note .eyebrow.dark { color: var(--gold-bright); }
.failure-note p:last-child { color: rgba(255,255,255,.78); margin: 0; }

.process { position: relative; background: var(--ink); color: white; overflow: hidden; }
.process::after { content: "M"; position: absolute; right: -30px; bottom: -220px; color: rgba(255,255,255,.025); font-size: 43rem; line-height: 1; font-weight: 950; }
.section-heading.light > p:last-child { color: rgba(255,255,255,.65); }
.process-grid { position: relative; z-index: 1; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; border-top: 1px solid rgba(255,255,255,.24); border-bottom: 1px solid rgba(255,255,255,.24); }
.process-grid li { min-height: 260px; padding: 28px 22px; border-right: 1px solid rgba(255,255,255,.18); transition: background .3s ease; }
.process-grid li:hover { background: rgba(255,255,255,.035); }
.process-grid li:last-child { border-right: 0; }
.process-grid span { color: var(--gold); font-size: .78rem; font-weight: 850; }
.process-grid h3 { margin: 44px 0 14px; font-size: 1.2rem; }
.process-grid p { color: rgba(255,255,255,.62); font-size: .9rem; }

.quality-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.quality-intro { position: sticky; top: 40px; }
.job-pack { margin-top: 36px; padding: 26px 28px; background: white; border-top: 3px solid var(--gold); box-shadow: 0 18px 45px rgba(7,27,45,.08); }
.job-pack-title { margin: 0 0 14px; font-weight: 850; color: var(--navy); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.job-pack ul { margin: 0; padding: 0; list-style: none; }
.job-pack li { position: relative; margin: 0 0 10px; padding-left: 20px; font-size: .92rem; color: var(--steel); }
.job-pack li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--gold); }
.quality-list { border-top: 1px solid var(--line); }
.quality-list > div { padding: 30px 0; display: grid; grid-template-columns: 48px 190px 1fr; gap: 18px; align-items: start; border-bottom: 1px solid var(--line); }
.quality-list span { color: var(--gold); font-weight: 850; }
.quality-list h3 { margin: 0; color: var(--navy); font-size: 1.05rem; }
.quality-list p { margin: 0; color: var(--steel); font-size: .93rem; }

.company { background: #e9eff2; }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.dark-link { display: inline-block; margin-top: 14px; color: var(--navy); }
.company-facts { margin: 0; border-top: 4px solid var(--gold); background: white; box-shadow: 0 18px 45px rgba(7,27,45,.08); }
.company-facts div { padding: 20px 24px; display: grid; grid-template-columns: 145px 1fr; gap: 18px; border-bottom: 1px solid var(--line); transition: background .25s ease; }
.company-facts div:hover { background: var(--mist); }
.company-facts dt { color: var(--steel); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.company-facts dd { margin: 0; color: var(--navy); font-weight: 750; }

.contact { padding: 110px 0; background: var(--navy); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr .88fr; gap: 100px; align-items: center; }
.contact-copy > p { color: rgba(255,255,255,.67); }
.contact-card { padding: 46px; background: white; color: var(--ink); border-top: 7px solid var(--gold); box-shadow: var(--shadow); will-change: transform; }
.contact-name { margin-bottom: 16px; color: var(--navy); font-size: 1.35rem; font-weight: 900; }
.contact-card > a { display: block; margin: 8px 0; color: var(--navy); font-size: 1.06rem; font-weight: 780; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
.contact-card > a:hover { color: #9a6710; padding-left: 4px; }
.contact-card address { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--steel); font-style: normal; }
.contact-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.button-outline { color: var(--navy); border-color: var(--navy); }
.button-outline:hover { color: white; background: var(--navy); }

.site-footer { padding: 46px 0 24px; background: #03090f; color: rgba(255,255,255,.7); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 280px 1fr auto; gap: 42px; align-items: center; }
.footer-grid img { filter: brightness(0) invert(1); }
.footer-grid p { margin: 0; font-size: .9rem; }
.footer-grid a { color: #f0bb54; font-weight: 800; text-decoration: none; }
.footer-meta { margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.11); }
.footer-meta p { margin: 0; font-size: .76rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid #f6c767; outline-offset: 3px; }

@media (max-width: 980px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; left: 22px; right: 22px; top: 80px; padding: 24px; display: none; align-items: stretch; flex-direction: column; gap: 18px; background: #071b2d; border: 1px solid rgba(255,255,255,.2); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-cta { text-align: center; }
  .hero { min-height: 900px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; align-items: center; }
  .hero-copy { padding: 160px 0 30px; }
  .hero-panel { max-width: 560px; margin: 0 0 80px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid div:nth-child(3) { border-left: 1px solid var(--line); }
  .feature, .feature-reverse { grid-template-columns: 1fr; }
  .feature-reverse .feature-image, .feature-reverse .feature-copy { order: initial; }
  .feature-image { min-height: 430px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid li { min-height: 220px; border-bottom: 1px solid rgba(255,255,255,.18); }
  .quality-grid, .company-grid, .contact-grid { grid-template-columns: 1fr; gap: 54px; }
  .quality-intro { position: static; }
  .footer-grid { grid-template-columns: 220px 1fr; }
  .footer-grid > a { grid-column: 1 / -1; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

@media (max-width: 640px) {
  .container, .nav-shell { width: min(100% - 28px, var(--max)); }
  .nav-shell { min-height: 78px; }
  .brand { width: 245px; }
  .hero { min-height: 920px; }
  .hero-grid { padding-top: 78px; }
  .hero-copy { padding-top: 120px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-lead { font-size: 1rem; }
  .hero-panel { padding: 22px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid div { min-height: 108px; padding: 20px 14px; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 46px; }
  .feature { margin-bottom: 48px; }
  .feature-image { min-height: 300px; }
  .feature-copy { padding: 32px 24px 38px; }
  .capability-columns { grid-template-columns: 1fr; gap: 0; }
  .check-list.single { columns: 1; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: auto; }
  .process-grid h3 { margin-top: 24px; }
  .quality-list > div { grid-template-columns: 38px 1fr; }
  .quality-list p { grid-column: 2; }
  .company-facts div { grid-template-columns: 1fr; gap: 5px; }
  .contact-card { padding: 30px 24px; }
  .contact-card > a { overflow-wrap: anywhere; }
  .contact-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid img { width: 250px; }
  .footer-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  h1 .word { transform: none; }
  #webgl-canvas { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
