:root{
  --bg:#05070c; --surface:#0b0f18; --surface-2:#10141f; --border:rgba(255,255,255,.12);
  --text:#eef1f6; --muted:#98a0b3; --accent:#4fd6e0; --accent-dim:rgba(79,214,224,.15);
  --maxw:1180px; --radius:14px;
  --font-display:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-body:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth; scroll-padding-top:80px;}
body{background:var(--bg); color:var(--text); font-family:var(--font-body); line-height:1.6; overflow-x:hidden;
  padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);}
h1,h2,h3,.logo{font-family:var(--font-display);}
img{max-width:100%;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
section{padding:110px 0;}
@media (max-width:700px){section{padding:70px 0;}}

/* accessible focus state for every interactive element */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--accent); outline-offset:3px; border-radius:4px;
}

/* NAV */
header{position:sticky; top:env(safe-area-inset-top,0px); z-index:100; padding:18px 0; transition:background .3s, backdrop-filter .3s, border-color .3s; border-bottom:1px solid transparent;}
header.scrolled{background:rgba(5,7,12,.82); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom-color:var(--border);}
nav.wrap{display:flex; align-items:center; justify-content:space-between;}
.logo{font-size:1.35rem; font-weight:700; letter-spacing:.5px;}
.logo span{color:var(--accent);}
.nav-links{display:flex; gap:34px; list-style:none;}
.nav-links a{font-size:.94rem; color:var(--muted); transition:color .15s;}
.nav-links a:hover{color:var(--text);}
.btn{display:inline-flex; align-items:center; gap:8px; padding:11px 22px; border-radius:8px; font-size:.9rem; font-weight:600; cursor:pointer; border:1px solid transparent; transition:border-color .15s, color .15s, background-color .15s;}
.btn-primary{background:var(--accent); color:#04262a;}
.btn-primary:hover{background:#6fe0e8;}
.btn-ghost{border-color:var(--border); color:var(--text); background:transparent;}
.btn-ghost:hover{border-color:var(--accent); color:var(--accent);}
.nav-cta{display:none;}
@media (min-width:901px){.nav-cta{display:inline-flex;}}
.burger{display:flex; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px;}
.burger span{width:22px; height:2px; background:var(--text); transition:.2s;}
@media (min-width:901px){.burger{display:none;}}
@media (max-width:900px){.nav-links{display:none;}}
.mobile-menu{position:fixed; inset:0; background:rgba(5,7,12,.98); backdrop-filter:blur(10px); z-index:99; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px; padding-top:env(safe-area-inset-top,0px);
  visibility:hidden; opacity:0; transition:opacity .2s ease, visibility 0s linear .2s;}
.mobile-menu.open{visibility:visible; opacity:1; transition:opacity .2s ease;}
.mobile-menu a{font-size:1.3rem; font-family:var(--font-display);}

/* HERO */
.hero{padding-top:70px; padding-bottom:60px; min-height:86vh; display:flex; align-items:center;}
.hero .wrap{display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center;}
@media (max-width:900px){.hero .wrap{grid-template-columns:1fr;} .hero{min-height:auto; padding-top:50px;}}
.tagline{color:var(--accent); font-size:.95rem; font-weight:500; letter-spacing:.03em; margin-bottom:20px;}
.hero h1{font-size:clamp(2.4rem,6vw,4.3rem); font-weight:700; line-height:1.05; letter-spacing:-.01em;}
.hero p{margin-top:22px; color:var(--muted); font-size:1.08rem; max-width:46ch;}
.hero-actions{display:flex; gap:16px; margin-top:34px; flex-wrap:wrap;}
.scroll-hint{margin-top:60px; display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.8rem;}
.scroll-line{width:1px; height:34px; background:var(--border); position:relative; overflow:hidden;}
.scroll-line::after{content:"";position:absolute; top:-100%; left:0; width:100%; height:100%; background:var(--accent); animation:scrolldrop 2.2s infinite;}
@keyframes scrolldrop{to{top:100%;}}
.orbit-wrap{position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;}
.orbit-wrap svg{width:100%; height:100%; max-width:440px;}
.orbit-ring{fill:none; stroke:var(--border); stroke-width:1;}
.orbit-node{fill:var(--surface-2); stroke:var(--accent); stroke-width:1.3;}
.orbit-core{fill:var(--accent);}
.spin-slow{animation:spin 34s linear infinite; transform-origin:220px 220px;}
.spin-slow-rev{animation:spin 46s linear infinite reverse; transform-origin:220px 220px;}
@keyframes spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){.spin-slow,.spin-slow-rev,.scroll-line::after{animation:none;}}

/* ABOUT */
.about-grid{display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;}
@media (max-width:900px){.about-grid{grid-template-columns:1fr;}}
.about-grid h2{font-size:clamp(1.7rem,3.4vw,2.5rem); font-weight:700; line-height:1.15; max-width:14ch;}
.about-grid p{color:var(--muted); margin-top:20px; max-width:50ch;}
.about-visual{aspect-ratio:1/1; border:1px solid var(--border); border-radius:var(--radius); position:relative; overflow:hidden; background:var(--surface);}
.about-visual svg{width:100%; height:100%;}

/* SECTION HEAD */
.section-head{max-width:640px;}
.section-head h2{font-size:clamp(1.7rem,3.4vw,2.5rem); font-weight:700; line-height:1.15;}
.section-head p{color:var(--muted); margin-top:14px;}

/* TECH CARDS (4) */
.grid-4{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; margin-top:50px;}
.tech-card{background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:28px 24px; transition:border-color .2s; display:flex; flex-direction:column;}
.tech-card:hover{border-color:var(--accent);}
.tech-card .icon{width:36px; height:36px; margin-bottom:18px; color:var(--accent);}
.tech-card h3{font-size:1.08rem; font-weight:600; margin-bottom:10px;}
.tech-card p{color:var(--muted); font-size:.92rem; flex:1;}
.tech-card .btn{margin-top:20px; align-self:flex-start; padding:8px 18px; font-size:.82rem;}

/* PROJECT CATEGORY GROUPS */
.project-category{margin-top:64px;}
.project-category:first-of-type{margin-top:50px;}
.cat-head{display:flex; align-items:baseline; justify-content:space-between; gap:14px; border-bottom:1px solid var(--border); padding-bottom:14px; margin-bottom:24px;}
.cat-head h3{font-size:1.1rem; font-weight:600; letter-spacing:.02em;}
.cat-count{color:var(--muted); font-size:.82rem;}
.projects-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px;}
.proj-card{border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); display:flex; flex-direction:column; transition:border-color .2s;}
.proj-card:hover{border-color:var(--accent);}
.proj-visual{height:140px; background:var(--surface-2); position:relative; display:flex; align-items:center; justify-content:center; border-bottom:1px solid var(--border);}
.proj-visual span{font-family:var(--font-display); color:var(--muted); font-size:.78rem; letter-spacing:.04em;}
.proj-body{padding:22px; display:flex; flex-direction:column; gap:8px; flex:1;}
.proj-top-row{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.proj-cat{color:var(--accent); font-size:.72rem; font-weight:600; letter-spacing:.03em;}
.status-badge{font-size:.68rem; font-weight:600; letter-spacing:.03em; padding:3px 10px; border-radius:6px; border:1px solid var(--border); color:var(--muted);}
.status-badge.progress{color:var(--accent); border-color:var(--accent);}
.status-badge.dev{color:var(--text); border-color:var(--border); background:var(--surface-2);}
.status-badge.soon{color:var(--muted); border-color:var(--border);}
.proj-body h3{font-size:1.05rem; font-weight:600;}
.proj-body p{color:var(--muted); font-size:.88rem; flex:1;}
.proj-link{margin-top:10px; font-size:.85rem; font-weight:600; color:var(--text); display:inline-flex; align-items:center; gap:6px;}
.proj-link:hover{color:var(--accent);}

/* VISION */
.vision h2{font-size:clamp(1.9rem,4vw,3rem); font-weight:700; line-height:1.15; max-width:16ch;}
.vision p{color:var(--muted); margin-top:22px; max-width:56ch; font-size:1.05rem;}
.vision-points{display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; margin-top:40px;}
.vision-points div{border-top:1px solid var(--border); padding-top:12px; font-size:.85rem; color:var(--muted);}

/* JOURNEY / TIMELINE */
.timeline{margin-top:56px; display:flex; overflow-x:auto; padding-bottom:10px;}
.tl-step{flex:1; min-width:150px; position:relative; padding:0 18px 0 0;}
.tl-step .dot{width:12px; height:12px; border-radius:50%; background:var(--surface-2); border:2px solid var(--border); transition:border-color .2s, background-color .2s;}
.tl-step .line{position:absolute; top:5px; left:12px; right:0; height:2px; background:var(--border);}
.tl-step:last-child .line{display:none;}
.tl-step h4{margin-top:18px; font-family:var(--font-display); font-size:.95rem;}
.tl-step p{color:var(--muted); font-size:.8rem; margin-top:6px;}
.tl-step.active .dot{background:var(--accent); border-color:var(--accent);}

/* CONTACT */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:60px;}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr;}}
.contact-info h2{font-size:clamp(1.9rem,4vw,2.7rem); font-weight:700;}
.contact-info p{color:var(--muted); margin-top:16px; max-width:40ch;}
.contact-detail{margin-top:30px; display:flex; flex-direction:column; gap:10px;}
.contact-detail a{color:var(--accent); font-size:.95rem;}
.social-row{display:flex; gap:14px; margin-top:28px;}
.social-row a{width:40px; height:40px; border:1px solid var(--border); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:border-color .15s, color .15s; color:var(--muted);}
.social-row a:hover{border-color:var(--accent); color:var(--accent);}
form.contact-form{display:flex; flex-direction:column; gap:16px;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:520px){.form-row{grid-template-columns:1fr;}}
.field label{display:block; font-size:.8rem; color:var(--muted); margin-bottom:7px;}
.field-hint{display:block; font-size:.75rem; color:var(--muted); margin-top:6px;}
.field input, .field textarea{width:100%; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:12px 14px; color:var(--text); font-family:inherit; font-size:.92rem; transition:border-color .15s;}
.field input:focus, .field textarea:focus{border-color:var(--accent);}
.field input:focus-visible, .field textarea:focus-visible{outline:2px solid var(--accent); outline-offset:3px;}
.field textarea{resize:vertical; min-height:110px;}
.form-note{font-size:.78rem; color:var(--muted); margin-top:-4px; min-height:1.2em;}
.contact-form button[disabled]{opacity:.6; cursor:default;}
.consent-row{display:flex; align-items:flex-start; gap:10px; font-size:.85rem; color:var(--muted);}
.consent-row input[type=checkbox]{width:18px; height:18px; margin-top:2px; flex-shrink:0; accent-color:var(--accent);}
.consent-row a{color:var(--accent);}
.consent-row label{cursor:pointer;}

/* FOOTER */
footer{border-top:1px solid var(--border); padding:56px 0 34px;}
.footer-grid{display:flex; justify-content:space-between; flex-wrap:wrap; gap:40px;}
.footer-links{display:flex; gap:24px; flex-wrap:wrap; list-style:none;}
.footer-links a{color:var(--muted); font-size:.88rem;}
.footer-links a:hover{color:var(--text);}
.footer-business{color:var(--muted); font-size:.8rem; line-height:1.7; max-width:34ch;}
.footer-legal{display:flex; gap:20px; flex-wrap:wrap; list-style:none; margin-top:18px;}
.footer-legal a{color:var(--muted); font-size:.8rem;}
.footer-legal a:hover{color:var(--text);}
.footer-bottom{margin-top:40px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color:var(--muted); font-size:.78rem;}

/* LEGAL PAGES */
.legal-page{padding-top:150px; padding-bottom:100px;}
.legal-page .wrap{max-width:760px;}
.legal-page h1{font-size:clamp(1.9rem,4vw,2.6rem); font-weight:700;}
.legal-updated{color:var(--muted); font-size:.85rem; margin-top:10px;}
.legal-page h2{font-size:1.2rem; font-weight:700; margin-top:44px; margin-bottom:14px;}
.legal-page p{color:var(--muted); margin-top:12px; font-size:.96rem;}
.legal-page ul{color:var(--muted); font-size:.96rem; margin-top:12px; padding-left:22px;}
.legal-page li{margin-top:8px;}
.legal-page strong{color:var(--text);}
.legal-note{border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); padding:18px 20px; margin-top:32px; font-size:.88rem; color:var(--muted);}

/* REVEAL */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .5s ease, transform .5s ease;}
.reveal.in{opacity:1; transform:translateY(0);}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
  .reveal{opacity:1; transform:none;}
}

