:root {
  --bg: #060a13;
  --bg-2: #0b1222;
  --ink: #e6edf7;
  --ink-dim: #9aa8bd;
  --ink-faint: #5d6b80;
  --accent: #ff7e00;
  --accent-2: #ffb46a;
  --line: rgba(150, 190, 230, 0.14);
  --card: rgba(14, 22, 40, 0.55);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}
/* Explicit dark-mode support: some browsers (Samsung Internet) only skip their
   forced darkening when the stylesheet declares a prefers-color-scheme rule. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }

/* Background layers */
#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, transparent 0%, rgba(6, 10, 19, 0.55) 70%, var(--bg) 100%);
}
main, .footer, .nav { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 40px);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 19, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px;
}
.brand-mark { width: 24px; height: 24px; color: var(--accent); }
.hero-mark {
  display: block;
  width: clamp(48px, 7vw, 72px);
  height: clamp(48px, 7vw, 72px);
  margin: 0 auto 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 24px rgba(255, 126, 0, 0.35));
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand svg { width: 18px; height: 18px; color: var(--accent); }
.dim { color: var(--ink-faint); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.lang {
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(255, 126, 0, 0.4);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.lang:hover { background: rgba(255, 126, 0, 0.1); }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px clamp(16px, 4vw, 40px) 80px;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 820px; text-align: center; position: relative; }
.hero-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
}
.hero-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 126, 0, 0.12);
  transform: translate(-50%, -50%);
  animation: spin 80s linear infinite;
}
.hero-rings span:nth-child(1) { width: 52vmin; height: 52vmin; border-style: dashed; }
.hero-rings span:nth-child(2) { width: 78vmin; height: 78vmin; border-color: rgba(255, 126, 0, 0.07); animation-duration: 140s; animation-direction: reverse; }
.hero-rings span:nth-child(3) {
  width: 108vmin; height: 108vmin;
  border: none;
  background: radial-gradient(circle, rgba(255, 126, 0, 0.08) 0%, transparent 60%);
  animation: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.wordmark {
  font-size: clamp(44px, 10vw, 120px);
  font-weight: 700;
  letter-spacing: 0.06em;
  /* Solid colours, not gradient-clipped text: forced dark modes garble the latter */
  color: #eef2f8;
}
.wordmark span { color: var(--accent); }
.tagline {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 300;
}
.tagline em { font-style: normal; color: var(--accent-2); }
.lede {
  margin: 20px auto 0;
  max-width: 600px;
  color: var(--ink-dim);
}
.cta { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #1c0c00;
  box-shadow: 0 0 0 0 rgba(255, 126, 0, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -6px rgba(255, 126, 0, 0.55); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(255, 126, 0, 0.5); }

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1px solid var(--ink-faint);
  border-radius: 12px;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: hint 2s ease-in-out infinite;
}
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* Sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) clamp(16px, 4vw, 40px);
}
.section-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 56px; }
.kicker { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: 0.1em; }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 600; letter-spacing: -0.01em; }

.cards.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(255, 126, 0, 0.35); transform: translateY(-4px); }
.card h3 { font-size: 21px; font-weight: 600; margin: 20px 0 12px; }
.card p { color: var(--ink-dim); font-size: 16px; }
.card-icon svg {
  width: 36px; height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.build-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.build-list li {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.build-list .idx { font: 500 13px/1.9 var(--mono); color: var(--accent); min-width: 24px; }
.build-list h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.build-list p { color: var(--ink-dim); font-size: 16px; }

/* Experience */
.exp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.big-number {
  font-family: var(--font-display);
  font-size: clamp(110px, 18vw, 220px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.big-label { font-size: clamp(20px, 2.6vw, 28px); font-weight: 300; margin-top: 8px; }
.exp-note { color: var(--ink-dim); margin-top: 20px; max-width: 520px; font-size: 16px; }
.stats { margin: 0; display: grid; gap: 14px; }
.stats > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stats dt { font: 600 34px/1 var(--font-display); color: var(--accent-2); min-width: 80px; }
.stats dd { margin: 0; color: var(--ink-dim); }

.fields-title {
  margin-top: 96px;
  margin-bottom: 28px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fields { display: grid; gap: 14px; }
.fields-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fields-row:nth-child(2) { padding-left: clamp(0px, 6vw, 80px); }
.fields-row:nth-child(3) { padding-left: clamp(0px, 3vw, 40px); }
.fields-row span {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
  background: rgba(14, 22, 40, 0.6);
  transition: border-color 0.35s, color 0.35s, background 0.35s, box-shadow 0.35s;
}
/* Hover only on real mouse setups: on phones a tap leaves :hover stuck, and the
   scroll highlight is used there instead (exact complement of the media query below). */
@media (min-width: 901px) and (pointer: fine) {
  .fields-row span:hover { border-color: var(--accent); color: var(--accent); }
}
/* Phones/tablets: tags light up as they scroll through the middle of the screen */
@media (max-width: 900px), (pointer: coarse) {
  .fields-row span { transform-origin: left center; will-change: transform, opacity; }
}
.fields-row span.lit {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 126, 0, 0.1);
  box-shadow: 0 0 18px -4px rgba(255, 126, 0, 0.55);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.contact-lead { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 300; line-height: 1.25; margin-bottom: 18px; }
.contact-intro p:not(.contact-lead) { color: var(--ink-dim); }
.privacy {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
  color: var(--ink-dim);
}
.privacy summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.2s;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0;
}
.privacy[open] summary::before { content: "−"; }
.privacy summary:hover, .privacy[open] summary { color: var(--ink); }
.privacy ul { margin: 16px 0 0; padding-left: 18px; display: grid; gap: 10px; line-height: 1.55; }
.privacy li::marker { color: var(--accent); }
.form {
  display: grid;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; letter-spacing: 0.06em; color: var(--ink-dim); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: rgba(6, 10, 19, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 126, 0, 0.15); }
.field.invalid input, .field.invalid textarea { border-color: #f27a7a; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-dim); cursor: pointer; }
.consent input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.consent.invalid span { color: #f27a7a; }
.form .btn { justify-self: start; }
.form-status { font-size: 15px; min-height: 1.6em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #f27a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: rgba(6, 10, 19, 0.85); }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-faint);
}
.footer strong { color: var(--ink); letter-spacing: 0.14em; font-size: 13px; }
.privacy-link { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
.privacy-link:hover { color: var(--accent); border-color: var(--accent); }

/* Reveal + parallax */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
[data-depth], [data-drift] { will-change: transform; }

/* Responsive */
@media (max-width: 900px) {
  .cards.three { grid-template-columns: 1fr; }
  .build-list { grid-template-columns: 1fr; }
  .exp-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .section-head { margin-bottom: 36px; }
  .fields-row:nth-child(n) { padding-left: 0; }
  .fields-row span { font-size: 14px; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-rings span, .scroll-hint span { animation: none; }
}
