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

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,sans-serif;font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:currentColor;text-decoration:underline;text-underline-offset:3px}
a:hover{opacity:.85}

.surface-obsidian{background:#0B0E11;color:#ECEEF0}
.surface-steel{background:#ECEEF0;color:#0B0E11}
.surface-gunmetal{background:#171B21;color:#ECEEF0}
.surface-green{background:#6EE787;color:#0B0E11}

.container{width:min(1140px,92vw);margin:0 auto}
.container-narrow{width:min(760px,92vw);margin:0 auto}

h1,h2,h3{font-family:'IBM Plex Sans',system-ui,sans-serif;font-weight:700;line-height:1.12;letter-spacing:-.02em}
h1{font-size:clamp(2.25rem,5vw,3.5rem)}
h2{font-size:clamp(1.75rem,3.5vw,2.5rem);margin-bottom:1rem}
h3{font-size:clamp(1.15rem,2vw,1.35rem);font-weight:500;margin-bottom:.65rem}
p{margin-bottom:1rem}
p:last-child{margin-bottom:0}

.eyebrow{font-family:'IBM Plex Mono',monospace;font-size:.75rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:#6EE787;margin-bottom:1rem}
.eyebrow-muted{color:#869099}

.btn{display:inline-flex;align-items:center;justify-content:center;padding:.85rem 1.6rem;font-family:'IBM Plex Sans',sans-serif;font-weight:500;font-size:.95rem;text-decoration:none;border-radius:2px;border:none;cursor:pointer;transition:filter .2s,box-shadow .2s}
.btn-primary{background:#6EE787;color:#0B0E11;text-decoration:none}
.btn-primary:hover{filter:brightness(1.08);box-shadow:0 8px 24px rgba(110,231,135,.25);opacity:1}
.btn-secondary{background:transparent;color:inherit;border:1px solid currentColor;text-decoration:none}
.btn-secondary:hover{filter:brightness(1.15);opacity:1}
.btn-group{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.75rem}

/* Header */
.site-header{position:fixed;top:0;left:0;right:0;z-index:100;padding:1rem 0;transition:background .3s,box-shadow .3s}
.site-header.is-scrolled{background:#ECEEF0;color:#0B0E11;box-shadow:0 1px 0 rgba(11,14,17,.08)}
.site-header.is-scrolled .nav-link{color:#0B0E11}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.logo{font-family:'IBM Plex Sans',sans-serif;font-weight:700;font-size:1.15rem;text-decoration:none;letter-spacing:-.02em;display:flex;align-items:center;gap:.5rem}
.logo-mark{width:28px;height:28px}
.nav-toggle{display:none;background:none;border:1px solid currentColor;padding:.4rem .65rem;font-family:'IBM Plex Mono',monospace;font-size:.7rem;cursor:pointer;color:inherit;border-radius:2px}
.nav-list{display:flex;gap:1.75rem;list-style:none}
.nav-link{font-size:.9rem;text-decoration:none;font-weight:500}
.nav-link.is-active{text-decoration:underline}

/* Hero Sentinel */
.hero-sentinel{position:relative;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:0;overflow:hidden}
@media(max-width:768px){.hero-sentinel{min-height:82vh;min-height:82dvh}}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(11,14,17,.72) 0%,rgba(11,14,17,.55) 40%,rgba(11,14,17,.88) 100%);z-index:1}
.hero-grid{position:absolute;inset:0;z-index:2;background-image:linear-gradient(rgba(236,238,240,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(236,238,240,.06) 1px,transparent 1px);background-size:48px 48px;pointer-events:none}
.hero-scanline{position:absolute;top:0;left:0;right:0;height:1px;background:#6EE787;z-index:3;opacity:.6;transform:scaleX(0);transform-origin:left}
.js .hero-scanline{animation:scanDraw 4s ease-out 1s forwards}
@keyframes scanDraw{to{transform:scaleX(1)}}
.hero-topbar{position:relative;z-index:4;padding:6rem 0 1rem;border-bottom:1px solid rgba(236,238,240,.15)}
.hero-topbar-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;font-family:'IBM Plex Mono',monospace;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase}
.hero-topbar-right{color:#6EE787}
.hero-content{position:relative;z-index:4;padding:3rem 0 4rem;max-width:640px}
.hero-content h1{margin-bottom:1.25rem}
.hero-highlight{text-decoration:underline;text-decoration-color:#6EE787;text-underline-offset:6px;text-decoration-thickness:2px}
.hero-sub{font-size:1.05rem;opacity:.86;max-width:540px;margin-bottom:0}
.hero-trust{position:relative;z-index:4;padding:1rem 0;border-top:1px solid rgba(134,144,153,.35);font-family:'IBM Plex Mono',monospace;font-size:.72rem;color:#869099;letter-spacing:.06em}

/* Sections */
section{padding:5.5rem 0}
@media(min-width:900px){section{padding:7rem 0}}
.section-header{margin-bottom:3rem;max-width:680px}
.section-header p{color:#869099;font-size:1.05rem}

.grid-2{display:grid;gap:2.5rem}
@media(min-width:768px){.grid-2{grid-template-columns:1fr 1fr}}
.grid-3{display:grid;gap:1.75rem}
@media(min-width:768px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.grid-4{display:grid;gap:1.5rem}
@media(min-width:900px){.grid-4{grid-template-columns:repeat(4,1fr)}}

/* Cards */
.card{padding:2rem;border:1px solid rgba(236,238,240,.12);border-radius:2px;position:relative;overflow:hidden}
.surface-steel .card{border-color:rgba(11,14,17,.1);box-shadow:0 12px 40px rgba(11,14,17,.06)}
.surface-gunmetal .card,.surface-obsidian .card{box-shadow:0 16px 48px rgba(0,0,0,.35)}
.card-num{position:absolute;top:.5rem;right:1rem;font-family:'IBM Plex Mono',monospace;font-size:4rem;font-weight:500;opacity:.06;line-height:1;pointer-events:none}
.card-tag{font-family:'IBM Plex Mono',monospace;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:#6EE787;margin-bottom:.75rem}
.corner-mark{position:absolute;width:32px;height:32px;top:1rem;right:1rem;opacity:.35}

/* Metrics */
.metrics{display:grid;gap:1.5rem}
@media(min-width:768px){.metrics{grid-template-columns:repeat(3,1fr)}}
.metric{text-align:center;padding:2rem 1rem}
.metric-num{font-family:'IBM Plex Mono',monospace;font-size:2.5rem;font-weight:500;color:#6EE787;line-height:1;margin-bottom:.5rem}
.metric-label{font-size:.9rem;opacity:.75}

/* Stages */
.stage{display:flex;gap:1.25rem;align-items:flex-start}
.stage-num{font-family:'IBM Plex Mono',monospace;font-size:.75rem;color:#6EE787;min-width:2rem;padding-top:.2rem}

/* Photo blocks */
.photo-block{border-radius:2px;overflow:hidden;position:relative}
.photo-block img{width:100%;height:100%;object-fit:cover;min-height:240px}
.photo-caption{font-size:.85rem;margin-top:.75rem;opacity:.7}

/* Services grid */
.services-grid{display:grid;gap:1.5rem}
@media(min-width:768px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.services-grid{grid-template-columns:repeat(3,1fr)}}
.service-card{padding:2rem 1.75rem;border:1px solid rgba(236,238,240,.1);position:relative}
.service-card h3{font-weight:700}

/* Work items */
.work-item{padding:2.5rem 0;border-bottom:1px solid rgba(236,238,240,.12)}
.work-item:last-child{border-bottom:none}
.work-tag{font-family:'IBM Plex Mono',monospace;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:#6EE787;margin-bottom:.5rem}

/* FAQ */
.faq-item{padding:1.75rem 0;border-bottom:1px solid rgba(236,238,240,.12)}
.faq-item:last-child{border-bottom:none}
.faq-q{font-family:'IBM Plex Sans',sans-serif;font-weight:500;font-size:1.1rem;margin-bottom:.75rem}

/* Forms */
.form-group{margin-bottom:1.25rem}
.form-label{display:block;font-size:.9rem;font-weight:600;margin-bottom:.4rem}
.form-input,.form-textarea,.form-select{width:100%;padding:.75rem 1rem;font-family:Inter,sans-serif;font-size:1rem;border:1px solid rgba(11,14,17,.2);border-radius:2px;background:#fff;color:#0B0E11}
.form-textarea{min-height:140px;resize:vertical}
.form-check{display:flex;gap:.65rem;align-items:flex-start;font-size:.9rem}
.form-check input{margin-top:.25rem}
.hp-field{position:absolute;left:-9999px;opacity:0;height:0;width:0;overflow:hidden}

/* Footer */
.site-footer{padding:4rem 0 2rem;font-size:.9rem}
.footer-grid{display:grid;gap:2rem;margin-bottom:2.5rem}
@media(min-width:768px){.footer-grid{grid-template-columns:2fr 1fr 1fr}}
.footer-brand{font-family:'IBM Plex Sans',sans-serif;font-weight:700;font-size:1.1rem;margin-bottom:.75rem}
.footer-nav{list-style:none}
.footer-nav li{margin-bottom:.45rem}
.footer-nav a{text-decoration:none;font-size:.88rem}
.footer-disclaimer{font-size:.8rem;opacity:.7;line-height:1.55;padding-top:2rem;border-top:1px solid rgba(236,238,240,.12);margin-top:1rem}
.surface-steel .footer-disclaimer{border-color:rgba(11,14,17,.1)}
.footer-copy{font-size:.8rem;opacity:.55;margin-top:1.5rem}

/* CTA band */
.cta-band{text-align:center;padding:5rem 0}
.cta-band h2{margin-bottom:1rem}
.cta-band p{max-width:520px;margin:0 auto 1.75rem;opacity:.85}

/* Legal pages */
.legal-content h2{margin-top:2.5rem}
.legal-content h3{margin-top:1.75rem;font-weight:500}
.legal-content ul,.legal-content ol{margin:1rem 0 1rem 1.5rem}
.legal-content li{margin-bottom:.5rem}

/* 404 */
.error-page{min-height:70vh;display:flex;align-items:center;text-align:center;padding:8rem 0 4rem}
.error-page h1{margin-bottom:1rem}

/* Cookie banner */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:200;padding:1.25rem;background:#171B21;color:#ECEEF0;border-top:1px solid rgba(236,238,240,.12);box-shadow:0 -8px 32px rgba(0,0,0,.4)}
.cookie-banner[hidden]{display:none}
.cookie-inner{max-width:1140px;margin:0 auto;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.cookie-text{flex:1;min-width:240px;font-size:.88rem;line-height:1.5}
.cookie-actions{display:flex;flex-wrap:wrap;gap:.65rem}
.cookie-btn{padding:.55rem 1.1rem;font-size:.82rem;font-family:'IBM Plex Sans',sans-serif;border-radius:2px;cursor:pointer;border:1px solid rgba(236,238,240,.3);background:transparent;color:inherit}
.cookie-btn-accept{background:#6EE787;color:#0B0E11;border-color:#6EE787}

/* Reveal animation */
.js .reveal{opacity:1;transform:none}
@media(prefers-reduced-motion:no-preference){
  .js .reveal:not(.is-visible){opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
  .js .reveal.is-visible{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){
  .js .reveal{opacity:1!important;transform:none!important;transition:none!important}
  .hero-scanline{animation:none;transform:scaleX(1)}
}

/* Page hero (inner pages) */
.page-hero{padding:8rem 0 4rem}
.page-hero h1{margin-bottom:1rem}
.page-hero-lead{font-size:1.15rem;opacity:.85;max-width:620px}

/* Contact layout */
.contact-grid{display:grid;gap:3rem}
@media(min-width:900px){.contact-grid{grid-template-columns:1fr 1.2fr}}

/* Mobile nav */
@media(max-width:768px){
  .nav-toggle{display:block}
  .nav-list{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;padding:1rem 4vw;background:#ECEEF0;color:#0B0E11;box-shadow:0 8px 24px rgba(0,0,0,.12)}
  .site-header:not(.is-scrolled) .nav-list{background:#0B0E11;color:#ECEEF0}
  .nav-list.is-open{display:flex}
}

/* Ken burns subtle on hero bg */
@media(prefers-reduced-motion:no-preference){
  .hero-bg{animation:kenBurns 20s ease-in-out infinite alternate}
  @keyframes kenBurns{from{transform:scale(1)}to{transform:scale(1.04)}}
}
@media(prefers-reduced-motion:reduce){
  .hero-bg{animation:none}
}
