@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #06080b;
  --bg-2: #0b0f14;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef2f6;
  --muted: #8b95a3;
  --accent: #22c3f5;
  --accent-soft: rgba(34, 195, 245, 0.12);
  --radius: 20px;
  --wrap: 1180px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #001018; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(6, 8, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 48px; height: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .lang { color: var(--text); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; font-size: 12px; letter-spacing: .06em; }
.nav .lang:hover { border-color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 48px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; opacity: .55; transform: scale(1.05); animation: drift 24s ease-in-out infinite alternate; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,8,11,.65) 0%, rgba(6,8,11,.25) 35%, rgba(6,8,11,.85) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6,8,11,.85) 0%, rgba(6,8,11,0) 65%);
}
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,195,245,0); } }

.hero h1 {
  font-size: clamp(48px, 9vw, 128px); line-height: .95; letter-spacing: -0.045em; font-weight: 600;
  margin: 24px 0 28px; max-width: 11ch;
}
.hero h1 em { color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c3cad4; max-width: 560px; margin: 0 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 88px;
  border-top: 1px solid var(--line);
}
.facts div { padding: 22px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 140px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.section-head h2, .h2 {
  font-size: clamp(36px, 5.2vw, 68px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin: 16px 0 0;
}
.section-head p { color: var(--muted); font-size: 18px; max-width: 440px; margin: 0; justify-self: end; }
.label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* Flagship */
.flagship { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.feature {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 560px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 36px;
  border: 1px solid var(--line); isolation: isolate; scroll-margin-top: 100px;
}
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.feature:hover img { transform: scale(1.04); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,8,11,0) 25%, rgba(6,8,11,.92) 80%); }
.feature .tag { position: absolute; top: 24px; left: 24px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(6,8,11,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-2); }
.feature h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; font-weight: 600; margin: 0 0 10px; line-height: 1.05; }
.feature p { color: #c3cad4; margin: 0 0 22px; max-width: 460px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #d5dbe3; background: rgba(255,255,255,.03); }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.service {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-2);
  transition: border-color .3s, background .3s; scroll-margin-top: 100px;
}
.service:hover { border-color: var(--line-2); background: #0e131a; }
.service .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 40px; }
.service .ico svg { width: 22px; height: 22px; }
.service h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; }
.service p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.service ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: #c3cad4; }
.service li { padding: 8px 0; border-top: 1px solid var(--line); }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.client { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.client:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.client h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.3; }
.client h3 a { transition: color .2s; }
.client h3 a:hover { color: var(--accent); }
.client h3 svg { display: inline-block; width: 14px; height: 14px; color: var(--muted); vertical-align: 0.1em; transition: color .2s, transform .2s; }
.client h3 a:hover svg { color: var(--accent); transform: translate(2px, -2px); }
.client p { color: var(--muted); font-size: 15px; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.about .statement { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; margin: 24px 0 28px; }
.about .statement em { color: var(--accent); }
.about .body { color: var(--muted); font-size: 17px; max-width: 520px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 40px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--muted); }
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline .year { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--accent); line-height: 1.2; }
.timeline h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 2px 0 6px; }
.timeline p { color: var(--muted); font-size: 15px; margin: 0; }

/* Contact */
.contact-box {
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden; position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1.1fr; background: var(--bg-2);
}
.contact-box::before {
  content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; left: -250px; top: -300px;
  background: radial-gradient(circle, rgba(34,195,245,.18), transparent 60%);
}
.contact-info { padding: 56px; display: flex; flex-direction: column; }
.contact-info .h2 { margin-bottom: 20px; }
.contact-info > p { color: var(--muted); font-size: 18px; margin: 0 0 48px; max-width: 380px; }
.coords { display: grid; gap: 24px; margin-top: auto; }
.coords dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.coords dd { margin: 0; font-size: 17px; }
.coords a { transition: color .2s; }
.coords a:hover { color: var(--accent); }
.coords small { color: var(--muted); font-size: 14px; }

.form { padding: 56px; border-left: 1px solid var(--line); display: grid; gap: 16px; align-content: start; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font: inherit; font-size: 16px; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(34,195,245,.04); }
.form .btn { justify-self: start; margin-top: 8px; }
.form .note { font-size: 13px; color: var(--muted); margin: 0; }
.form .note a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-size: 15px; margin: 0; min-height: 1.6em; }
.form-status.ok { color: #5ee0a0; }
.form-status.err { color: #ff8a8a; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { padding: 64px 0 40px; overflow: hidden; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 32px; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a:hover { color: var(--text); }
.big-mark {
  font-size: clamp(40px, 12.4vw, 190px); font-weight: 600; letter-spacing: -0.06em; line-height: .9; padding-bottom: .14em;
  color: transparent; background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; margin: 0 0 24px; white-space: nowrap; user-select: none;
  text-align: center;
}

/* Legal pages */
.legal { padding: 160px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1; font-weight: 600; margin: 16px 0 56px; }
.legal h2 { font-size: 20px; letter-spacing: -0.01em; font-weight: 600; margin: 48px 0 12px; }
.legal p { color: #bac2cc; margin: 0 0 14px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav a { font-size: 22px; color: var(--text); padding: 12px 0; width: 100%; }
  .nav .lang { width: auto; margin-top: 12px; padding: 6px 14px; font-size: 13px; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .menu-open .header { background: var(--bg); }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .section { padding: 96px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .section-head p { justify-self: start; }
  .flagship { grid-template-columns: 1fr; }
  .feature { min-height: 460px; padding: 24px; }
  .clients { grid-template-columns: 1fr 1fr; }
  .client, .client:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .client:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .client:nth-child(2n+1) { padding-right: 24px; }
  .contact-box { grid-template-columns: 1fr; }
  .contact-info, .form { padding: 32px 24px; }
  .form { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav { padding-inline: 16px; }
  .hero { padding-bottom: 32px; }
  .facts { grid-template-columns: 1fr; margin-top: 48px; }
  .facts div, .facts div + div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-left: 0; }
  .facts div + div { border-top: 1px solid var(--line); }
  .facts strong { font-size: 17px; }
  .facts span { font-size: 13px; text-align: right; }
  .services { grid-template-columns: 1fr; }
  .service .ico { margin-bottom: 24px; }
  .clients { grid-template-columns: 1fr; }
  .client:nth-child(n) { padding: 22px 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
