:root {
  --bg: oklch(1.000 0.000 0);
  --surface: oklch(0.965 0.000 0);
  --ink: oklch(0.12 0.012 228);
  --ink-soft: oklch(0.28 0.010 228);
  --muted: oklch(0.42 0.01 228);
  --primary: oklch(0.42 0.11 228);
  --primary-mid: oklch(0.58 0.11 228);
  --dark: oklch(0.10 0.02 228);
  --line: oklch(0.88 0.005 228);
  --white: oklch(1.000 0.000 0);
  --text-on-dark: oklch(0.78 0.01 228);
  --text-on-primary: oklch(0.84 0.03 228);
  --overlay-light: oklch(1 0 0 / 0.12);
  --header-bg: oklch(1 0 0 / 0.92);
  --shadow-soft: oklch(0 0 0 / 0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; }

.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  text-wrap: balance;
  color: var(--ink);
}

h1 {
  font-size: clamp(3rem, 2rem + 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
}

h3 {
  font-size: clamp(1.375rem, 1rem + 1.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ── Skip link ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 0;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand picture,
.brand img { width: 160px; height: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-menu li { display: contents; }

.nav-menu a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav-menu a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white) !important;
  font-weight: 700;
  transition: background 0.2s var(--ease);
}

.nav-cta:hover { background: var(--primary); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.5rem 0.875rem;
  min-height: 2.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ── Hero ── */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 560px;
  position: relative;
  z-index: 1;
}

/* ── Hero network visual ── */

.hero-visual {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(360px, 35vw, 520px);
  height: clamp(360px, 35vw, 520px);
  opacity: 0;
  animation: visual-in 1.5s var(--ease) 0.5s forwards;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.orbit {
  stroke: var(--primary);
  stroke-width: 0.75;
  stroke-dasharray: 6 8;
  fill: none;
}

.orbit-outer {
  opacity: 0.18;
  animation: spin-slow 90s linear infinite;
  transform-origin: 260px 260px;
}

.orbit-inner {
  opacity: 0.12;
  animation: spin-slow 60s linear infinite reverse;
  transform-origin: 260px 260px;
}

.link {
  stroke: var(--primary);
  stroke-width: 0.75;
  opacity: 0.15;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 1.8s var(--ease) 0.8s forwards;
}

.center-node {
  fill: var(--primary);
  animation: pulse-node 3s ease-in-out infinite;
}

.node-glow {
  fill: var(--primary);
  opacity: 0.08;
  transform-origin: 260px 260px;
  animation: pulse-glow 3s ease-in-out infinite;
}

.sector-node {
  fill: var(--primary);
  opacity: 0;
  animation: fade-in 0.6s var(--ease) var(--delay, 0s) forwards;
}

.sector-label {
  fill: var(--primary);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) var(--delay, 0s) forwards;
  animation-delay: calc(var(--delay, 0s) + 1s);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes pulse-node {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50% { transform: scale(1.4); opacity: 0.04; }
}

@keyframes fade-in {
  to { opacity: 0.7; }
}

@keyframes visual-in {
  to { opacity: 1; }
}

.hero h1 {
  margin-bottom: 1.75rem;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-text {
  font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.1875rem);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  border: none;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  color: var(--white);
  background: var(--ink);
}

.btn.primary:hover { background: var(--primary); }

.btn.secondary {
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.btn.secondary:hover {
  border-color: var(--ink);
}

.hero-marker {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 3rem;
  background: var(--line);
}

/* ── Section spacing ── */

.section {
  padding: clamp(5rem, 3rem + 6vw, 9rem) 0;
}

/* ── Focus Areas ── */

.focus-header {
  margin-bottom: 3rem;
}

.focus-header h2 { margin-bottom: 0.75rem; }

.focus-header p {
  font-size: 1rem;
  color: var(--muted);
}

.focus-stack {
  display: grid;
  gap: 1rem;
}

.focus-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  min-height: clamp(320px, 25vw, 480px);
  display: flex;
  align-items: flex-end;
}

.focus-item picture,
.focus-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}

.focus-item:hover picture img,
.focus-item:hover > img {
  opacity: 0.4;
  transform: scale(1.03);
}

.focus-item-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  max-width: 560px;
}

.focus-item-content h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.focus-item-content p {
  color: var(--text-on-dark);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.focus-item .tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--overlay-light);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.focus-also {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: none;
}

.focus-also strong {
  color: var(--ink-soft);
  font-weight: 700;
}

/* ── Green accent section ── */

.accent-section {
  background: var(--primary);
  padding: clamp(5rem, 3rem + 6vw, 8rem) 0;
}

.accent-content {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.accent-content h2 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.accent-content p {
  color: var(--text-on-primary);
  margin-inline: auto;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.accent-content .btn.primary {
  background: var(--white);
  color: var(--primary);
}

.accent-content .btn.primary:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-grid h2 { margin-bottom: 1rem; }

.contact-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.contact-details {
  border-top: 1px solid var(--line);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.contact-row .label {
  font-weight: 700;
  color: var(--ink);
}

.contact-row .value {
  color: var(--muted);
}

/* ── Footer ── */

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer p { margin: 0; color: var(--muted); font-size: 0.8125rem; }

/* ── Focus visible ── */

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ── Entrance motion ── */

@keyframes hero-up {
  from { opacity: 0; transform: translateY(2rem); }
  to { opacity: 1; transform: none; }
}

.hero h1 { animation: hero-up 0.9s var(--ease) both; }
.hero-text { animation: hero-up 0.9s var(--ease) 0.12s both; }
.hero-actions { animation: hero-up 0.9s var(--ease) 0.24s both; }

body.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

body.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ── Reduced motion ── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Tablet ── */

@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Mobile nav ── */

@media (max-width: 768px) {
  .brand picture,
  .brand img { width: 140px; }
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: 0 8px 32px var(--shadow-soft);
    flex-direction: column;
    gap: 0;
    z-index: 20;
  }

  .nav-menu.open { display: flex; }
  .nav-menu li { display: block; }
  .nav-menu a { display: block; padding: 0.75rem 0.625rem; }
  .nav-cta { text-align: center; margin-top: 0.25rem; }
}

/* ── Small mobile ── */

@media (max-width: 640px) {
  .container { width: min(100% - 2rem, 1100px); }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .focus-item { min-height: 300px; }
  .contact-row { flex-direction: column; gap: 0.125rem; }
}
