:root {
  --bg: #0a0f1f;
  --bg-soft: #10172b;
  --panel: #121b31;
  --panel-2: #17213a;
  --text: #f4f7ff;
  --muted: #aab5cc;
  --line: rgba(255,255,255,.10);
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
  --good: #86efac;
  --shadow: 0 22px 70px rgba(0,0,0,.28);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(125,211,252,.12), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(167,139,250,.10), transparent 28rem),
    var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 104px 0; }
.section-alt { background: rgba(255,255,255,.025); border-block: 1px solid var(--line); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(10,15,31,.78);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); font-size: .9rem; font-weight: 600; transition: .2s ease; }
.nav a:hover { color: var(--text); }
.menu-button { display: none; color: var(--text); background: none; border: 0; font-size: 1.45rem; cursor: pointer; }

.hero { padding-top: 128px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 64px; align-items: center; }
.eyebrow, .section-kicker, .card-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .98; letter-spacing: -.065em; max-width: 940px; }
h1 span { color: transparent; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; }
h2 { margin-bottom: 22px; font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: 1.05; letter-spacing: -.045em; }
h3 { margin-bottom: 12px; font-size: 1.23rem; line-height: 1.3; letter-spacing: -.02em; }
.hero-copy { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-tags, .chips, .skill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-tags { margin: 28px 0 34px; }
.hero-tags span, .chips span, .skill-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #dce6fb;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 600;
}
.actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #08111d; border-color: transparent; background: linear-gradient(120deg, var(--accent), #c4b5fd); }
.btn-secondary { background: rgba(255,255,255,.06); }
.btn-secondary:hover, .btn-ghost:hover { border-color: rgba(125,211,252,.6); }
.btn-ghost { color: var(--muted); background: transparent; }

.hero-card, .card, .showreel-banner, .remote-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
}
.hero-card { padding: 25px; }
.status { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: .87rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px rgba(134,239,172,.10); }
.metric { padding: 18px 0; border-bottom: 1px solid var(--line); }
.metric:last-child { padding-bottom: 0; border: 0; }
.metric strong, .metric span { display: block; }
.metric strong { margin-bottom: 4px; }
.metric span { color: var(--muted); font-size: .88rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.prose { color: var(--muted); font-size: 1.04rem; }
.prose p:last-child { margin-bottom: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2 { margin-bottom: 0; }
.text-link { color: var(--accent); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { position: relative; padding: 28px; min-height: 100%; }
.card p { color: var(--muted); }
.card-number { margin-bottom: 44px; color: rgba(255,255,255,.20); font-size: 1.8rem; font-weight: 800; }
.card-number.compact { margin: 0; font-size: 1rem; }
.project-card .chips { margin: 24px 0; }
.card-link { display: inline-block; margin-top: 4px; color: var(--accent); font-size: .9rem; font-weight: 800; }
.card-note { display: inline-block; margin-top: 8px; color: #94a3b8; font-size: .82rem; }
.featured-card { background: linear-gradient(155deg, rgba(125,211,252,.09), rgba(167,139,250,.055)); }

.case-studies { align-items: stretch; }
.case-card { padding: 32px; }
.case-card h3 { font-size: 1.55rem; max-width: 520px; }
.case-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 32px; }
.case-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(125,211,252,.26);
  border-radius: 999px;
  background: rgba(125,211,252,.07);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.case-list { margin: 24px 0; padding: 0; list-style: none; }
.case-list li { position: relative; padding: 10px 0 10px 24px; border-bottom: 1px solid rgba(255,255,255,.07); color: #c7d2e8; font-size: .92rem; }
.case-list li:last-child { border-bottom: 0; }
.case-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.case-card .chips { margin: 26px 0 22px; }
.case-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.case-links .btn { margin-top: 2px; }

.showreel-banner { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 20px; padding: 30px; }
.showreel-banner h3 { font-size: 1.5rem; }
.showreel-banner p { color: var(--muted); margin-bottom: 0; max-width: 760px; }
.icon-box { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 13px; color: var(--accent); background: rgba(125,211,252,.06); font-weight: 800; }

.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 40px; }
.skill-group { padding: 26px; border-top: 1px solid var(--line); }
.skill-group h3 { margin-bottom: 18px; }

.remote-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; padding: 42px; }
.remote-panel > div:first-child p:last-child { color: var(--muted); }
.remote-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.remote-list > div:last-child { border-bottom: 0; }
.remote-list span { color: var(--accent); font-size: .78rem; font-weight: 800; }
.remote-list p { margin: 0; color: var(--muted); }
.remote-list strong { color: var(--text); }

.contact-section { padding-top: 86px; }
.contact-wrap { display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.contact-wrap > div:first-child { max-width: 650px; }
.contact-wrap p { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 26px 0; color: #8390aa; font-size: .82rem; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; }
.footer-wrap p { margin: 0; }

@media (max-width: 1000px) {
  .nav { gap: 17px; }
  .nav a { font-size: .84rem; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .remote-panel { grid-template-columns: 1fr; }
  .hero-grid, .split { gap: 42px; }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .contact-wrap { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1120px); }
  .section { padding: 78px 0; }
  .hero { padding-top: 92px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .menu-button { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #10172b;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 8px; }
  .section-head, .showreel-banner, .footer-wrap { align-items: flex-start; flex-direction: column; }
  .remote-panel { padding: 28px 22px; gap: 26px; }
  .card, .case-card { padding: 24px; }
  .card-number { margin-bottom: 26px; }
  .actions .btn, .contact-actions .btn { width: 100%; }
  .case-links { align-items: stretch; flex-direction: column; }
  .case-links .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
