/* Nexolve — editorial design system */

:root {
  --paper: oklch(0.975 0.008 85);
  --paper-warm: oklch(0.955 0.012 80);
  --paper-deep: oklch(0.92 0.015 80);
  --ink: oklch(0.18 0.012 60);
  --ink-soft: oklch(0.35 0.01 60);
  --ink-mute: oklch(0.55 0.008 60);
  --rule: oklch(0.82 0.012 70);
  --rule-soft: oklch(0.88 0.01 70);
  --accent: oklch(0.62 0.09 65);
  --accent-deep: oklch(0.48 0.09 65);

  --f-serif: "Fraunces", "GT Sectra", "Times New Roman", serif;
  --f-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1360px;
  --gutter: clamp(24px, 4vw, 64px);
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--ink); color: var(--paper); }

/* ————————————— Type scale ————————————— */

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 450;
}

.serif {
  font-family: var(--f-serif);
  font-weight: 340;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

.display {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(44px, 7.2vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.display em {
  font-style: italic;
  font-weight: 340;
  color: var(--accent-deep);
}

h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; }

.h-xl {
  font-family: var(--f-serif);
  font-weight: 320;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}

.h-l {
  font-family: var(--f-serif);
  font-weight: 340;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.h-m {
  font-family: var(--f-serif);
  font-weight: 380;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lede {
  font-family: var(--f-serif);
  font-weight: 340;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 56ch;
}

.body-l {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ————————————— Layout ————————————— */

.page {
  padding-top: var(--nav-h);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(72px, 10vw, 160px) 0;
  border-top: 1px solid var(--rule-soft);
}

.section-tight {
  padding: clamp(48px, 6vw, 88px) 0;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.rule {
  height: 1px;
  background: var(--rule-soft);
  width: 100%;
}

.rule-hard { background: var(--ink); }

/* ————————————— Nav ————————————— */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--rule-soft);
  z-index: 100;
}

.nav-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--f-serif);
  font-weight: 360;
  font-size: 22px;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.logo-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 450;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}

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

.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--ink);
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-mute);
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover { border-color: var(--ink); color: var(--ink); }

.lang-switch .lang-active { color: var(--ink); font-weight: 500; }
.lang-switch .lang-sep { opacity: 0.4; padding: 0 3px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 18px;
  border-radius: 100px;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }

.nav-cta::after {
  content: "→";
  font-family: var(--f-serif);
  transition: transform 0.25s;
}

.nav-cta:hover::after { transform: translateX(3px); }

/* ————————————— Buttons ————————————— */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 100px;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--f-sans);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-arrow::after {
  content: "→";
  font-family: var(--f-serif);
  font-size: 18px;
  transition: transform 0.25s;
}
.btn-arrow:hover::after { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}
.link-arrow::after { content: "→"; font-family: var(--f-serif); }
.link-arrow:hover { gap: 12px; color: var(--accent-deep); border-color: var(--accent-deep); }

/* ————————————— Placeholder imagery ————————————— */

.placeholder {
  position: relative;
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    color-mix(in srgb, var(--ink) 4%, transparent) 14px 15px
  );
  pointer-events: none;
}

.placeholder-label {
  position: relative;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--paper);
  padding: 6px 10px;
  border: 1px solid var(--rule-soft);
}

/* ————————————— Footer ————————————— */

.footer {
  border-top: 1px solid var(--ink);
  padding: 80px 0 36px;
  background: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 72px;
}

.footer-brand .logo { font-size: 28px; }

.footer-tagline {
  margin-top: 20px;
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 450;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-soft); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom a:hover { color: var(--ink); }

/* ————————————— Utilities ————————————— */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-mute);
}

.eyebrow-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 450;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* scrollbar aesthetic */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 10px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* ————————————— Mobile nav ————————————— */

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 100px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 19px; }
.nav-burger span:nth-child(3) { top: 24px; }
.nav.is-open .nav-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  bottom: 0;
  background: var(--paper);
  padding: 32px var(--gutter) 48px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  z-index: 99;
}
.nav-mobile.is-open { display: flex; }

.nav-mobile-link {
  font-family: var(--f-serif);
  font-weight: 340;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  display: block;
}
.nav-mobile-link.active { color: var(--accent-deep); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; gap: 16px; }
  .nav-right { gap: 10px; }
  .nav-burger { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .nav-cta { display: none; }
  .nav-right { gap: 8px; }
  .lang-switch { padding: 6px 8px; }
}
