/* ABSOLYNK — global styles. Extracted from the original landing page and
   extended with multi-page components (navigation, language switcher, forms,
   legal pages). Self-hosted Inter keeps the site GDPR-friendly (no CDN). */

/* ---------- Self-hosted Inter (latin) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter-800.woff2") format("woff2");
}

:root {
  --bg: #070809;
  --bg2: #0b0d10;
  --fg: #f5f2ea;
  --muted: rgba(245, 242, 234, 0.66);
  --soft: rgba(245, 242, 234, 0.44);
  --line: rgba(245, 242, 234, 0.12);
  --line2: rgba(245, 242, 234, 0.2);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.nav-open {
  overflow: hidden;
}

html.nav-open body {
  overflow: hidden;
  touch-action: none;
}

body {
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(circle at 52% -14%, rgba(255, 255, 255, 0.09), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg2) 44%, #050506);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

/* Accessible focus ring for keyboard users. */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--fg);
  color: #070809;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

canvas#systems {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.9) 0%, rgba(7, 8, 9, 0.62) 35%, rgba(7, 8, 9, 0.18) 62%, rgba(7, 8, 9, 0.45) 100%),
    radial-gradient(circle at var(--x, 72%) var(--y, 34%), rgba(255, 255, 255, 0.055), transparent 18rem),
    radial-gradient(circle at 50% 50%, transparent, rgba(0, 0, 0, 0.54) 75%);
}

header,
main,
footer {
  position: relative;
  z-index: 3;
}

/* ---------- Header / navigation ---------- */
.site-header {
  width: min(var(--max), calc(100% - 44px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 50;
}

/* Brand logo (cropped SVG lockup: icon + wordmark). */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 52;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(1.25) drop-shadow(0 0 18px rgba(245, 242, 234, 0.22));
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.brand:hover .brand-logo {
  filter: grayscale(1) brightness(1.4) drop-shadow(0 0 26px rgba(245, 242, 234, 0.4));
  opacity: 0.95;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 52;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(245, 242, 234, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

.site-header[data-nav-open="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header[data-nav-open="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.site-header[data-nav-open="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.site-nav {
  color: var(--muted);
  font-size: 14px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: rgba(245, 242, 234, 0.72);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  border-color: rgba(245, 242, 234, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta.active {
  border-color: rgba(245, 242, 234, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Language switcher ---------- */
.lang {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(16px);
}
.lang-toggle svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.lang-toggle svg:last-child {
  transition: transform 0.2s ease;
}
.lang[data-open="true"] .lang-toggle svg:last-child {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(11, 13, 16, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}
.lang[data-open="true"] .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}
.lang-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}
.lang-menu a[aria-current="true"] {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
}
.lang-menu a span.code {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--soft);
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  width: min(var(--max), calc(100% - 44px));
  min-height: calc(100svh - 82px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 58px 0 118px;
}

.hero-inner {
  max-width: 900px;
  width: 100%;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(12px);
  animation: enter 0.75s ease forwards 0.08s;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8fff0;
  box-shadow: 0 0 20px rgba(216, 255, 240, 0.75);
  flex: none;
}

h1 {
  margin: 0;
  max-width: 900px;
  width: 100%;
  min-width: 0;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 760;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 100%;
  line-height: 1.04;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  max-width: 100%;
  min-width: 0;
}

.line span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  transform: translateY(108%);
  animation: reveal 0.95s cubic-bezier(0.18, 0.92, 0.16, 1) forwards;
}

.line:nth-child(2) span {
  animation-delay: 0.12s;
}
.line:nth-child(3) span {
  animation-delay: 0.24s;
}

.subline {
  display: grid;
  grid-template-columns: minmax(0, 690px) auto;
  gap: 44px;
  align-items: end;
  margin-top: 34px;
  opacity: 0;
  transform: translateY(12px);
  animation: enter 0.75s ease forwards 0.58s;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.42;
  font-weight: 420;
}

.lead strong {
  color: var(--fg);
  font-weight: 620;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn.primary {
  background: var(--fg);
  border-color: var(--fg);
  color: #090909;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--fg);
  backdrop-filter: blur(16px);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Proof grid ---------- */
.proof {
  width: min(var(--max), calc(100% - 44px));
  margin: -82px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-bottom: 110px;
}

.proof-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  min-height: 112px;
}

.proof-item span {
  display: block;
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.proof-item strong {
  font-size: 18px;
  letter-spacing: -0.02em;
  font-weight: 640;
}

/* ---------- Content sections ---------- */
section.content-section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 118px 0;
  border-top: 1px solid var(--line);
}

.kicker {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title {
  max-width: 840px;
  width: 100%;
  min-width: 0;
  margin: 0 0 46px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 720;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  margin: 0;
}

.stack {
  display: grid;
  gap: 12px;
}

.row-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.026));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.18s ease;
}

.row-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.row-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.row-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.035em;
  font-weight: 680;
}

.row-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 16px;
}

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

.region-note {
  margin: 30px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

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

.process-card {
  min-height: 250px;
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.num {
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: 64px;
}

.process-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.process-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.final-system {
  width: min(var(--max), calc(100% - 44px));
  min-height: 92svh;
  margin: 0 auto;
  padding: 130px 0 80px;
  border-top: 1px solid var(--line);
  display: grid;
  align-items: center;
}

.final-copy {
  max-width: 660px;
}

.final-copy .section-title {
  margin-bottom: 22px;
}

.closing {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.contact-cta {
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.1), transparent 24rem),
    rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow);
}

.contact-cta h2 {
  max-width: 760px;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: clamp(34px, 5.5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 730;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* ---------- Inner page hero ---------- */
.page-hero {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 70px 0 30px;
}

.page-hero .kicker {
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.055em;
}

.page-hero .lead {
  margin-top: 26px;
  max-width: 680px;
}

/* ---------- Contact page ---------- */
.contact-layout {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 110px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 26px;
  align-content: start;
}

.contact-detail {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail .icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.05);
}
.contact-detail .icon svg {
  width: 20px;
  height: 20px;
}

.contact-detail .label {
  display: block;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-detail a,
.contact-detail p {
  margin: 0;
  font-size: 17px;
  color: var(--fg);
  font-weight: 560;
  word-break: break-word;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 4vw, 40px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 560;
}

.field label .req {
  color: #d8fff0;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 242, 234, 0.32);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff8f8f;
}

.field-error {
  color: #ff9a9a;
  font-size: 13px;
}

/* Honeypot: visually hidden but present in DOM for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.form-alert.error {
  background: rgba(255, 120, 120, 0.1);
  border-color: rgba(255, 120, 120, 0.4);
  color: #ffc9c9;
}
.form-alert.success {
  background: rgba(216, 255, 240, 0.08);
  border-color: rgba(216, 255, 240, 0.35);
  color: #d8fff0;
}

.form-footnote {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--soft);
  line-height: 1.5;
}
.form-footnote a {
  color: var(--muted);
  text-decoration: underline;
}

.form-card .btn.primary {
  width: 100%;
}

/* ---------- Success / status panel ---------- */
.status-panel {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 60px 0 130px;
  text-align: center;
}

.status-panel .badge {
  width: 78px;
  height: 78px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 255, 240, 0.4);
  background: rgba(216, 255, 240, 0.08);
}
.status-panel .badge svg {
  width: 34px;
  height: 34px;
}

.status-panel h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin: 0 0 18px;
}

.status-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0 auto 32px;
  max-width: 520px;
}

/* ---------- Legal / prose pages ---------- */
.prose-page {
  width: min(820px, calc(100% - 44px));
  margin: 0 auto;
  padding: 30px 0 110px;
}

.prose {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.prose h2 {
  color: var(--fg);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
  margin: 44px 0 14px;
}

.prose h3 {
  color: var(--fg);
  font-size: 19px;
  margin: 28px 0 10px;
}

.prose p {
  margin: 0 0 16px;
}

.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.prose li {
  margin-bottom: 8px;
}

.prose .placeholder {
  color: #ffd27a;
  background: rgba(255, 210, 122, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ---------- Footer ---------- */
footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 14px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: var(--fg);
}

@keyframes reveal {
  to {
    transform: translateY(0);
  }
}
@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 48;
    background: rgba(4, 5, 6, 0.62);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
  }

  .site-header[data-nav-open="true"] .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 49;
    pointer-events: none;
  }

  .site-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 96px 28px 36px;
    border-left: 1px solid var(--line);
    background: rgba(8, 10, 12, 0.94);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(28px);
    transform: translateX(104%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: auto;
    overflow-y: auto;
  }

  .site-header[data-nav-open="true"] .site-nav-panel {
    transform: translateX(0);
  }

  .site-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 18px 0;
    font-size: clamp(26px, 6vw, 34px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
    border-bottom: 1px solid rgba(245, 242, 234, 0.08);
  }

  .nav-link::after {
    display: none;
  }

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

  .site-nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-cta {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 16px;
    text-align: center;
  }

  .site-nav-actions .lang {
    width: 100%;
  }

  .site-nav-actions .lang-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
  }

  .site-nav-actions .lang-menu {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    border-radius: 16px;
    display: none;
  }

  .site-nav-actions .lang[data-open="true"] .lang-menu {
    display: grid;
  }

  .subline,
  .split,
  .contact-cta {
    grid-template-columns: 1fr;
  }
  .actions {
    justify-content: flex-start;
  }
  .proof {
    grid-template-columns: 1fr 1fr;
    margin-top: -56px;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2rem, 5.2vw, 3.25rem);
    line-height: 1.06;
    letter-spacing: -0.048em;
  }

  .section-title {
    font-size: clamp(1.75rem, 4.6vw, 2.75rem);
    line-height: 1.08;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.06;
  }
}

@media (max-width: 560px) {
  header,
  .site-header,
  .hero,
  .proof,
  section.content-section,
  .final-system,
  .closing,
  .page-hero,
  footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .site-nav-panel {
    width: 100%;
    border-left: 0;
    padding: 88px 22px 28px;
  }

  h1 {
    font-size: clamp(1.625rem, 5vw + 0.35rem, 2.375rem);
    line-height: 1.08;
    letter-spacing: -0.042em;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 4.8vw + 0.4rem, 2.125rem);
    line-height: 1.1;
  }

  .section-title {
    font-size: clamp(1.5rem, 4.4vw + 0.35rem, 2rem);
    line-height: 1.1;
    margin-bottom: 32px;
  }

  .page-hero h1 {
    font-size: clamp(1.625rem, 4.8vw + 0.35rem, 2.25rem);
  }

  .lead {
    font-size: clamp(16px, 4.2vw, 19px);
  }

  .contact-cta h2 {
    font-size: clamp(1.5rem, 4.6vw + 0.35rem, 2.125rem);
    line-height: 1.1;
  }

  .proof {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
  }
}

/* ---------- Process journey page ---------- */
.process-hero {
  padding-bottom: 48px;
}

.process-journey {
  position: relative;
}

.process-track {
  position: relative;
}

.process-sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100svh;
  min-height: 520px;
  pointer-events: none;
}

.process-sticky-inner {
  width: min(var(--max), calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 88px 0 48px;
}

.process-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-width: 52px;
}

.process-progress-rail {
  position: relative;
  width: 2px;
  flex: 1;
  min-height: 180px;
  max-height: 320px;
  background: rgba(245, 242, 234, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.process-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, rgba(245, 242, 234, 0.92), rgba(245, 242, 234, 0.42));
  border-radius: inherit;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 234, 0.12);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.process-progress-dot.is-active {
  border-color: rgba(245, 242, 234, 0.55);
  background: rgba(245, 242, 234, 0.1);
  transform: scale(1.06);
}

.process-progress-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--soft);
}

.process-progress-dot.is-active .process-progress-num {
  color: var(--text);
}

.process-stage-viewport {
  position: relative;
  min-height: 320px;
  max-width: 720px;
}

.process-stage-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-stage-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.process-stage-kicker {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-stage-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.process-stage-lead {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
}

.process-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.process-step-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.process-step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(245, 242, 234, 0.72);
  box-shadow: 0 0 12px rgba(245, 242, 234, 0.25);
}

.process-steps {
  position: relative;
  z-index: 1;
}

.process-step {
  min-height: 100svh;
  min-height: 100vh;
}

.process-step-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.process-closing {
  border-top: 1px solid var(--line);
}

.home-approach-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 242, 234, 0.28);
  padding-bottom: 4px;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.home-approach-link:hover {
  border-color: rgba(245, 242, 234, 0.72);
  opacity: 0.92;
}

.home-approach-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .process-sticky-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: center;
    padding-top: 76px;
  }

  .process-progress {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .process-progress-rail {
    display: none;
  }

  .process-progress-steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .process-stage-viewport {
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .process-sticky-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .process-stage-viewport {
    min-height: 420px;
  }
}

/* Process page — static layout when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .process-sticky {
    position: static;
    height: auto;
    min-height: 0;
    pointer-events: auto;
  }

  .process-sticky-inner {
    display: block;
    padding: 0 0 48px;
  }

  .process-progress {
    display: none;
  }

  .process-stage-viewport {
    min-height: 0;
  }

  .process-stage-panel {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 0 0 40px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
  }

  .process-stage-panel:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .process-steps {
    display: none;
  }
}

/* Respect reduced motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .line span,
  .eyebrow,
  .subline {
    transform: none !important;
    opacity: 1 !important;
  }
  .site-nav-panel,
  .nav-backdrop {
    transition: none !important;
  }
}
