:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --line: rgba(242, 241, 238, 0.1);
  --line-strong: rgba(242, 241, 238, 0.28);
  --text: #f2f1ee;
  --muted: #a1a1a6;
  --accent: #d7ff3a;
  --accent-ink: #0a0a0b;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
svg { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
}
.skip:focus {
  left: 16px; top: 16px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { color: var(--muted); font-weight: 450; }

.mark-ring { fill: none; stroke: var(--text); }
.mark-q { fill: var(--accent); }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav > a:not(.btn) { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav > a:not(.btn):hover { color: var(--text); }

.lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
}
.lang a { padding: 4px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); transition: color 0.2s; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }

@media (max-width: 760px) {
  .nav > a:not(.btn) { display: none; }
  .nav { gap: 12px; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .site-header .wrap { gap: 10px; }
  .nav { gap: 8px; }
  .nav .btn-sm { padding: 8px 13px; font-size: 13px; }
  .lang a { padding: 4px 7px; }
}
@media (max-width: 350px) {
  .nav .btn { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(215, 255, 58, 0.55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.04em; font-weight: 650;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }

h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 650;
  text-wrap: balance;
}

h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 620; }

.num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 11vw, 136px) clamp(56px, 9vw, 112px); }
.hero::before {
  content: ""; position: absolute; top: -30%; right: -15%;
  width: min(80vw, 900px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(215, 255, 58, 0.11), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero .eyebrow { margin-bottom: 28px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 42ch; margin: 28px 0 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual { width: 100%; max-width: 420px; justify-self: end; height: auto; }
.hv-line { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.hv-faint { fill: none; stroke: var(--line); stroke-width: 1; }
.hv-dash { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 9; }
.hv-q { fill: var(--accent); }
.hv-dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }

.hv-spin, .hv-step { transform-box: view-box; transform-origin: 50% 50%; }

@media (prefers-reduced-motion: no-preference) {
  .hv-spin { animation: spin 60s linear infinite; }
  .hv-step { animation: step 12s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes step {
  0%, 20%   { transform: rotate(0deg); }
  25%, 45%  { transform: rotate(90deg); }
  50%, 70%  { transform: rotate(180deg); }
  75%, 95%  { transform: rotate(270deg); }
  100%      { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 260px; justify-self: start; }
}

/* ---------- Discipline strip ---------- */

.strip { border-block: 1px solid var(--line); }
.strip ul {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px;
  padding-block: 20px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.strip li { display: inline-flex; align-items: center; gap: 28px; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 46ch; font-size: 1.05rem; }

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
}

/* Services: 2x2 quadrant grid */

.quads {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.quad {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(28px, 4vw, 48px); background: var(--bg);
  transition: background 0.25s;
}
.quad:hover { background: var(--bg-2); }
.quad-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.quad-icon { width: 26px; height: 26px; }
.quad-icon circle { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.quad-icon path { fill: var(--accent); }
.quad p { color: var(--muted); max-width: 44ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.tags li {
  font-size: 13px; color: var(--text);
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
}

@media (max-width: 760px) {
  .quads { grid-template-columns: 1fr; }
}

/* Approach */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.steps p { color: var(--muted); }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* Contact */

.contact .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.mail {
  font-size: clamp(1.3rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.06em; text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.mail:hover { color: var(--accent); }
.contact p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand { color: var(--text); }

/* ---------- 404 ---------- */

.notfound { min-height: calc(100vh - 68px - 98px); display: flex; align-items: center; }
.notfound .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.notfound p:not(.eyebrow) { color: var(--muted); }
