:root {
  color-scheme: dark;
  --bg: #06101d;
  --bg-soft: #0a1728;
  --panel: rgba(14, 31, 51, 0.78);
  --panel-strong: #0e2035;
  --line: rgba(161, 196, 229, 0.15);
  --text: #f5f9ff;
  --muted: #a7bad0;
  --cyan: #55d9ff;
  --violet: #9383ff;
  --green: #68e3b5;
  --max-width: 1180px;
  --radius: 22px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }
.ambient { position: fixed; z-index: -1; width: 460px; height: 460px; border-radius: 50%; filter: blur(115px); opacity: .12; pointer-events: none; }
.ambient-one { top: -180px; right: -80px; background: var(--violet); }
.ambient-two { bottom: 12%; left: -220px; background: var(--cyan); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 16px auto 0;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 16, 29, .78);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--cyan), var(--violet)); color: #07111f; font-size: 12px; letter-spacing: -.02em; }
.brand-text { letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 11px; border-radius: 9px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s ease, background .2s ease; }
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.06); color: var(--text); }
.nav .language { margin-left: 4px; border: 1px solid var(--line); color: var(--cyan); font-weight: 700; }

main, footer { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.hero { min-height: 700px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; padding: 90px 0 64px; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(46px, 6.7vw, 82px); line-height: .99; letter-spacing: -.055em; }
h1 span { background: linear-gradient(90deg, var(--cyan), #a59aff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 690px; margin-bottom: 16px; color: #cfdded; font-size: clamp(18px, 2vw, 22px); line-height: 1.48; }
.hero-context { max-width: 660px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(120deg, var(--cyan), #7f70ff); color: #06101d; box-shadow: 0 12px 30px rgba(77, 203, 255, .19); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.035); color: var(--text); }
.button-secondary:hover { border-color: rgba(85,217,255,.5); }
.contact-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.contact-row a { color: var(--muted); font-size: 14px; text-underline-offset: 4px; }
.contact-row a:hover { color: var(--cyan); }

.hero-visual { position: relative; min-height: 510px; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(85,217,255,.16), transparent 68%); filter: blur(10px); }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(106, 205, 255, .18); border-radius: 50%; transform: translate(-50%, -50%) rotate(-15deg); }
.orbit-one { width: 360px; height: 360px; }
.orbit-two { width: 480px; height: 280px; transform: translate(-50%, -50%) rotate(32deg); border-color: rgba(147,131,255,.2); }
.core-card { position: absolute; left: 50%; top: 50%; z-index: 3; display: flex; flex-direction: column; width: 210px; height: 160px; padding: 28px; border: 1px solid rgba(85,217,255,.32); border-radius: 28px; background: linear-gradient(145deg, rgba(18,49,75,.94), rgba(17,27,54,.92)); box-shadow: 0 30px 80px rgba(0,0,0,.44), inset 0 1px rgba(255,255,255,.08); transform: translate(-50%, -50%); }
.core-card strong { margin-top: auto; font-size: 24px; letter-spacing: -.03em; }
.core-card small, .satellite small { color: var(--muted); }
.core-label { color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.satellite { position: absolute; z-index: 4; display: flex; flex-direction: column; min-width: 142px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(9, 24, 41, .92); box-shadow: 0 14px 44px rgba(0,0,0,.28); }
.satellite span { font-weight: 800; }
.satellite small { font-size: 11px; }
.satellite-iac { left: 2%; top: 19%; animation: float 6s ease-in-out infinite; }
.satellite-ci { right: 0; top: 18%; animation: float 6.5s ease-in-out -1s infinite; }
.satellite-obs { left: 0; bottom: 16%; animation: float 7s ease-in-out -2s infinite; }
.satellite-cloud { right: 1%; bottom: 13%; animation: float 5.7s ease-in-out -.8s infinite; }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 28, 47, .62); box-shadow: var(--shadow); overflow: hidden; }
.proof div { padding: 25px 22px; border-right: 1px solid var(--line); }
.proof div:last-child { border-right: 0; }
.proof strong, .proof span { display: block; }
.proof strong { margin-bottom: 4px; color: var(--text); font-size: 17px; }
.proof span { color: var(--muted); font-size: 13px; }

.section { padding: 120px 0 20px; }
.section-heading { max-width: 690px; margin-bottom: 40px; }
.section-heading h2, .lab-section h2, .contact-panel h2 { margin-bottom: 14px; font-size: clamp(34px, 5vw, 55px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child, .lab-section p, .contact-panel p { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(16,36,58,.82), rgba(9,22,39,.82)); overflow: hidden; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.work-card::after { content: ""; position: absolute; right: -90px; bottom: -100px; width: 180px; height: 180px; border-radius: 50%; background: var(--violet); filter: blur(70px); opacity: 0; transition: opacity .3s ease; }
.work-card:hover { transform: translateY(-5px); border-color: rgba(85,217,255,.35); background: linear-gradient(145deg, rgba(19,43,68,.94), rgba(11,25,45,.94)); }
.work-card:hover::after { opacity: .14; }
.card-number { margin-bottom: 36px; color: var(--cyan); font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.work-card h3 { margin-bottom: 13px; font-size: 22px; letter-spacing: -.025em; }
.work-card p { color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 22px; }
.tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: #bdd0e4; font-size: 11px; }
.work-card > a { z-index: 2; color: var(--cyan); font-size: 13px; font-weight: 750; text-decoration: none; }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.split .section-heading { position: sticky; top: 110px; }
.timeline { border-left: 1px solid var(--line); }
.timeline article { position: relative; padding: 0 0 50px 32px; }
.timeline article::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px rgba(85,217,255,.7); }
.timeline-date { color: var(--cyan); font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline h3 { margin: 10px 0; font-size: 23px; }
.timeline p { color: var(--muted); }

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); overflow: hidden; }
.stack-group { min-height: 176px; padding: 26px; background: rgba(8, 21, 37, .96); }
.stack-group h3 { font-size: 16px; }
.stack-group p { color: var(--muted); font-size: 14px; }
.scope-note { margin: 24px 0 0; padding: 18px 20px; border-left: 3px solid var(--violet); border-radius: 0 12px 12px 0; background: rgba(147,131,255,.065); color: var(--muted); font-size: 14px; }
.scope-note strong { color: var(--text); }

.lab-section { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-top: 110px; padding: 46px; border: 1px solid rgba(85,217,255,.22); border-radius: var(--radius); background: linear-gradient(120deg, rgba(18,52,75,.73), rgba(28,24,63,.66)); box-shadow: var(--shadow); }
.lab-section h2 { font-size: clamp(30px, 4vw, 45px); }
.lab-section p { max-width: 740px; margin-bottom: 0; }
.contact-section { padding: 120px 0 70px; }
.contact-panel { padding: clamp(34px, 6vw, 70px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 80% 20%, rgba(147,131,255,.16), transparent 35%), var(--panel); text-align: center; }
.contact-panel p { max-width: 650px; margin-inline: auto; }
.contact-panel .hero-actions { justify-content: center; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 80px; }
  .hero-visual { min-height: 430px; max-width: 600px; width: 100%; margin-inline: auto; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof div:nth-child(2) { border-right: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split .section-heading { position: static; }
}

@media (max-width: 680px) {
  .site-header, main, footer { width: min(calc(100% - 24px), var(--max-width)); }
  .brand-text, .nav a:not(.language) { display: none; }
  .hero { min-height: auto; padding-top: 74px; }
  h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero-lead { font-size: 18px; }
  .hero-visual { min-height: 390px; transform: scale(.92); }
  .orbit-one { width: 280px; height: 280px; }
  .orbit-two { width: 380px; height: 230px; }
  .satellite { min-width: 122px; padding: 11px 12px; }
  .proof, .card-grid, .stack-grid { grid-template-columns: 1fr; }
  .proof div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof div:last-child { border-bottom: 0; }
  .section { padding-top: 88px; }
  .work-card { min-height: 290px; }
  .lab-section { grid-template-columns: 1fr; padding: 30px; }
  footer { flex-direction: column; }
}

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