:root {
  --bg: #080d18;
  --bg-soft: #0d1422;
  --panel: #111a2b;
  --panel-2: #0f1727;
  --text: #f5f7fb;
  --muted: #9ca9bc;
  --line: rgba(255,255,255,.10);
  --accent: #6fd3ff;
  --accent-2: #8ca8ff;
  --success: #67e8a7;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0,0,0,.35);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 5%, rgba(63,111,255,.12), transparent 30%),
    radial-gradient(circle at 10% 15%, rgba(40,188,255,.08), transparent 26%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; padding: 10px 14px; background: white; color: #000; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(900px, calc(100% - 40px)); }
.section { padding: 112px 0; }
.section-muted { background: rgba(255,255,255,.018); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,13,24,.78); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07111e; font-size: 14px; font-weight: 800; }
.brand-name { letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 26px; color: #c9d2df; font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: white; }
.nav-cta { border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; }
.menu-btn { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: transparent; }
.menu-btn span { display: block; height: 2px; margin: 5px 0; background: white; border-radius: 2px; }

.hero { min-height: calc(100vh - 74px); display: grid; align-items: center; padding-top: 84px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 790px; margin-bottom: 24px; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.08; letter-spacing: -.045em; }
h3 { margin-bottom: 12px; font-size: 26px; letter-spacing: -.03em; }
.hero-lead { max-width: 760px; color: #bcc6d5; font-size: clamp(18px, 2vw, 21px); }
.hero-actions, .contact-actions, .project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 700; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #08111d; }
.btn-secondary { background: rgba(255,255,255,.04); border-color: var(--line); }
.btn-secondary:hover { border-color: rgba(255,255,255,.22); }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.proof-strip div { display: flex; flex-direction: column; gap: 2px; }
.proof-strip strong { font-size: 17px; }
.proof-strip span { color: var(--muted); font-size: 12px; }
.hero-visual { position: relative; width: min(440px, 100%); justify-self: end; }
.portrait-shell { position: relative; overflow: hidden; aspect-ratio: .86; border-radius: 32px; border: 1px solid rgba(255,255,255,.14); background: var(--panel); box-shadow: var(--shadow); }
.portrait-shell img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.portrait-accent { position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 -90px 100px rgba(8,13,24,.42); }
.availability-card { position: absolute; right: -26px; bottom: 26px; z-index: 2; display: flex; gap: 12px; align-items: center; min-width: 250px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(11,17,29,.90); backdrop-filter: blur(16px); box-shadow: 0 18px 60px rgba(0,0,0,.38); }
.availability-card div { display: flex; flex-direction: column; }
.availability-card strong { font-size: 13px; }
.availability-card span:last-child { color: var(--muted); font-size: 12px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(103,232,167,.12); flex: 0 0 auto; }

.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.projects-stack { display: grid; gap: 28px; }
.project-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); gap: 42px; align-items: center; min-height: 590px; padding: 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(150deg, rgba(255,255,255,.04), rgba(255,255,255,.018)); box-shadow: 0 20px 70px rgba(0,0,0,.16); }
.project-card-reverse .project-copy { order: 2; }
.project-card-reverse .project-visual { order: 1; }
.project-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.project-meta span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: #bfd1e8; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.project-summary { color: #c1cada; font-size: 17px; }
.project-facts { display: flex; gap: 32px; margin: 24px 0 16px; }
.project-facts div { display: flex; flex-direction: column; }
.project-facts strong { font-size: 28px; line-height: 1; }
.project-facts span { margin-top: 6px; color: var(--muted); font-size: 12px; }
.feature-list { margin: 22px 0; padding-left: 20px; color: #c4cede; }
.feature-list li + li { margin-top: 8px; }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tech-row span { padding: 6px 9px; border-radius: 8px; background: rgba(111,211,255,.07); color: #bdeaff; font-size: 12px; font-weight: 600; }
.private-note { margin: 20px 0 0; color: #778499; font-size: 12px; }
.text-link { display: inline-flex; gap: 7px; align-items: center; color: var(--accent); font-weight: 700; }
.text-link:hover { color: white; }
.phone-stage { position: relative; min-height: 470px; display: grid; place-items: center; border-radius: 24px; background:
  radial-gradient(circle at 50% 40%, rgba(111,211,255,.11), transparent 44%),
  rgba(255,255,255,.018); overflow: hidden; }
.phone { position: absolute; width: 42%; max-width: 190px; filter: drop-shadow(0 28px 35px rgba(0,0,0,.38)); }
.phone-a { transform: translate(-34%, -4%) rotate(-7deg); }
.phone-b { transform: translate(38%, 8%) rotate(6deg); }

.timeline { position: relative; margin-top: 18px; }
.timeline:before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-left: 42px; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(111,211,255,.10); }
.timeline-head { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 12px; }
.timeline-head h3 { margin-bottom: 1px; font-size: 22px; }
.timeline-head p { margin: 0; color: #c0cad8; }
.timeline-head > span { color: var(--muted); font-size: 13px; white-space: nowrap; padding-top: 4px; }
.timeline-item > p { color: var(--muted); }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.expertise-card { min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.025); }
.expertise-card > span { display: inline-block; margin-bottom: 30px; color: var(--accent); font-size: 12px; font-weight: 800; }
.expertise-card h3 { font-size: 20px; }
.expertise-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.about-grid, .notes-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.about-grid .section-heading, .notes-grid .section-heading { margin-bottom: 0; }
.about-copy { color: #bdc7d5; font-size: 17px; }
.about-copy .text-link { margin-top: 10px; }
.note-card { display: block; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.025); transition: transform .2s ease, border-color .2s ease; }
.note-card:hover { transform: translateY(-3px); border-color: rgba(111,211,255,.35); }
.note-label { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.note-card h3 { margin-top: 16px; }
.note-card p { color: var(--muted); }

.contact-section { padding-top: 90px; }
.contact-card { padding: 58px; border: 1px solid rgba(111,211,255,.22); border-radius: 30px; background: radial-gradient(circle at 80% 10%, rgba(111,211,255,.12), transparent 35%), rgba(255,255,255,.03); }
.contact-card h2 { max-width: 880px; }
.contact-card > p:not(.eyebrow):not(.contact-email) { max-width: 760px; color: var(--muted); font-size: 17px; }
.contact-email { margin: 24px 0 0; color: #7f8ba0; font-size: 13px; }

.site-footer { padding: 30px 0 44px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: #7f8ba0; font-size: 12px; }
.footer-inner a:hover { color: white; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid, .project-card, .about-grid, .notes-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { justify-self: start; width: min(410px, 86vw); margin-top: 12px; }
  .availability-card { right: -12px; }
  .project-card, .project-card-reverse { padding: 36px; }
  .project-card-reverse .project-copy, .project-card-reverse .project-visual { order: initial; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .notes-grid { gap: 32px; }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 28px, var(--container)); }
  .section { padding: 82px 0; }
  .menu-btn { display: block; }
  .site-nav { position: absolute; top: 74px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(11,17,29,.98); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-cta { border-radius: 10px; }
  .brand-name { display: none; }
  h1 { font-size: clamp(42px, 14vw, 62px); }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div { padding: 7px 0; }
  .hero-visual { width: 100%; max-width: 390px; }
  .availability-card { position: relative; right: auto; bottom: auto; margin: -22px 14px 0; }
  .project-card { min-height: auto; padding: 24px; }
  .phone-stage { min-height: 400px; }
  .phone { width: 45%; }
  .expertise-grid { grid-template-columns: 1fr; }
  .timeline-head { flex-direction: column; gap: 2px; }
  .contact-card { padding: 34px 24px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .note-card { transition: none; }
}
