@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0a0e14;
  --bg-alt: #0d121a;
  --surface: #111821;
  --text: #e8edf3;
  --muted: #8d99a8;
  --faint: #7d8896;
  --border: #1d2733;
  --border-strong: #233040;
  --accent: #8fcbf5;
  --accent-strong: #c9e7fc;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

img, video { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus { left: 16px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 20, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand span { white-space: nowrap; }
.brand:hover { color: var(--text); }

.nav nav { display: flex; gap: 28px; }
.nav nav a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.nav nav a:hover { color: var(--text); }

/* Type */

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 600; color: var(--text); }

h1 {
  max-width: 18ch;
  text-wrap: balance;
  margin: 0 0 24px;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 16px;
  text-wrap: balance;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 58ch;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 0;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto 30%;
  height: 720px;
  background:
    radial-gradient(closest-side, rgba(110, 190, 245, 0.16), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(120, 230, 200, 0.07), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-visual {
  position: relative;
  padding: 0 0 40px 0;
}
.hero-wide {
  width: 88%;
  margin-left: auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero-phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hero .facts { grid-column: 1 / -1; margin-top: 72px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--text);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--bg); }

.button-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.button-ghost:hover { background: var(--surface); border-color: var(--muted); color: var(--text); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 96px 0 0;
  border-top: 1px solid var(--border);
}
.facts div { padding: 24px 24px 28px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.facts dt {
  margin-bottom: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.facts dd { margin: 0; font-size: 16px; }

/* Sections */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 64px; }
.section-lead { max-width: 56ch; margin: 0; color: var(--muted); font-size: 18px; }

/* Projects */

.project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.project:last-child { padding-bottom: 0; }
.project:nth-of-type(even) .project-media { order: 2; }
.project h3 { font-size: clamp(26px, 2.6vw, 32px); }

.project-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
}
.project-media img,
.project-media video { width: 100%; height: 100%; object-fit: cover; }

.project-body p { margin: 0 0 20px; color: var(--muted); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag { color: var(--muted); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-soon { color: var(--accent); }

.media-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(10, 14, 20, 0.7);
  color: var(--text);
  font: 500 13px var(--sans);
  cursor: pointer;
}
.media-toggle:hover { background: rgba(10, 14, 20, 0.9); }

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.specs div { padding: 14px 0; }
.specs div + div { padding-left: 20px; border-left: 1px solid var(--border); }
.specs dt {
  margin-bottom: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.specs dd { margin: 0; font-size: 15px; }

/* Company */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.principles > div { padding-top: 24px; border-top: 1px solid var(--accent); }
.principles h3 { font-size: 19px; }
.principles p { margin: 0; color: var(--muted); }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { margin: 0; }
.contact-list div { padding: 20px 0; border-top: 1px solid var(--border); }
.contact-list div:last-child { border-bottom: 1px solid var(--border); }
.contact-list dt {
  margin-bottom: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-list dd { margin: 0; font-size: 18px; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--accent-strong); }

/* Footer */

.site-footer { border-top: 1px solid var(--border); }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 36px;
  color: var(--faint);
  font-size: 14px;
}
.footer nav { display: flex; gap: 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Legal pages */

.prose { max-width: 72ch; padding-top: 72px; padding-bottom: 96px; }
.prose h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 8px; }
.prose .updated { margin: 0 0 40px; color: var(--faint); font-family: var(--mono); font-size: 13px; }
.prose h2 { margin: 48px 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* Responsive */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 560px; }
  .project { grid-template-columns: 1fr; gap: 28px; }
  .project:nth-of-type(even) .project-media { order: 0; }
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 14px; }
  .hero { padding-top: 72px; }
  .facts { margin-top: 64px; }
  .facts div, .facts div + div { padding: 18px 12px 20px 0; }
  .facts div:nth-child(even) { padding-left: 12px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .footer { flex-direction: column; }
}

@media (max-width: 400px) {
  .brand span { font-size: 15px; }
  .nav nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
