/* ==========================================================================
   Lavdi Tech — brand-led marketing site
   Fonts: Sora (display) + Manrope (text), self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy-1000: #030f22;
  --navy-950: #071a35;
  --navy-900: #081f42;
  --navy-800: #0c2b59;
  --navy-700: #123a73;
  --blue-700: #0752de;
  --blue-600: #0e61ff;
  --blue-500: #1c74ff;
  --blue-400: #3d92ff;
  --cyan-400: #25b9ff;
  --cyan-300: #70d5ff;
  --ink: #0a1f3d;
  --ink-soft: #2c3e58;
  --body: #53657d;
  --muted: #5f7188;
  --paper: #f7f9fd;
  --paper-blue: #f1f6fd;
  --white: #ffffff;
  --line: #e2e9f3;
  --line-strong: #cfdaea;
  --success: #38d39f;

  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;

  --container: 1240px;
  --header-height: 84px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(8, 31, 66, 0.04), 0 8px 24px rgba(8, 31, 66, 0.04);
  --shadow-md: 0 20px 50px rgba(8, 31, 66, 0.1);
  --shadow-blue: 0 14px 34px rgba(14, 97, 255, 0.24);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 32px);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

.site-footer {
  flex-shrink: 0;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--blue-600);
  color: var(--white);
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.25rem, 5.5vw, 5.15rem);
  line-height: 0.99;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(2.3rem, 4.1vw, 3.7rem);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(14, 97, 255, 0.65);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy-950);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Shared type and controls
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--blue-600);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
  flex: 0 0 auto;
}

.eyebrow--light {
  color: var(--cyan-300);
}

.gradient-text {
  background: linear-gradient(104deg, var(--blue-600) 4%, #0b7eea 52%, #0a86d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-blue {
  color: var(--blue-600);
}

.section {
  position: relative;
  padding: clamp(86px, 10vw, 142px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(44px, 5vw, 68px);
}

.section-head--wide {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.section-lede {
  max-width: 430px;
  justify-self: end;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.75;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 1.55vw, 1.35rem);
  line-height: 1.62;
  letter-spacing: -0.012em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-small {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.8125rem;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 18px 38px rgba(14, 97, 255, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(8, 31, 66, 0.03);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--white);
  border-color: #b9c9dd;
}

.icon-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn:hover .icon-arrow--down {
  transform: translateY(2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(10, 31, 61, 0.22);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link span {
  transition: transform 0.25s var(--ease-out);
}

.text-link:hover {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.text-link--light:hover {
  color: var(--cyan-300);
  border-color: var(--cyan-300);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: transparent;
  content: "";
  transition: background-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 249, 253, 0.86);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(8, 31, 66, 0.045);
  backdrop-filter: blur(18px) saturate(1.25);
}

.site-header.is-scrolled::after {
  background: rgba(207, 218, 234, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: block;
  flex: 0 0 auto;
  width: 178px;
}

.brand img {
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.desktop-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--blue-600);
}

.header-cta {
  flex: 0 0 auto;
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle span:first-child {
  top: 20px;
}

.nav-toggle span:last-child {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 23px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 23px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px;
  background: rgba(247, 249, 253, 0.98);
  backdrop-filter: blur(22px);
  animation: menu-in 0.35s var(--ease-out) both;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.mobile-nav a span {
  width: 26px;
  color: var(--blue-600);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 32px;
  color: var(--body);
  font-size: 0.8125rem;
}

.mobile-menu-footer p {
  margin-bottom: 10px;
}

.mobile-menu-footer a {
  color: var(--blue-600);
  font-weight: 800;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-height) + 68px);
  background:
    radial-gradient(ellipse 720px 560px at 88% 12%, rgba(60, 145, 255, 0.16), transparent 66%),
    radial-gradient(ellipse 540px 460px at 7% 88%, rgba(37, 185, 255, 0.09), transparent 68%),
    linear-gradient(180deg, #f8faff 0%, var(--paper) 58%, #f4f8fe 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 31, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 31, 61, 0.035) 1px, transparent 1px);
  background-size: 86px 86px;
  content: "";
  opacity: 0.75;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
}

.hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background-image: radial-gradient(rgba(43, 113, 206, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  content: "";
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at 60% 32%, black, transparent 64%);
}

.hero-ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.hero-ambient--one {
  top: 15%;
  right: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(22, 111, 232, 0.11);
  box-shadow:
    0 0 0 58px rgba(22, 111, 232, 0.026),
    0 0 0 118px rgba(22, 111, 232, 0.018);
}

.hero-ambient--two {
  bottom: -120px;
  left: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(34, 160, 255, 0.12);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(42px, 5.8vw, 82px);
  align-items: center;
  padding-bottom: clamp(66px, 7.5vw, 104px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 27px;
  color: var(--blue-600);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-rule {
  width: 34px;
  height: 1px;
  background: var(--blue-600);
  flex: 0 0 auto;
}

.hero h1 {
  margin-bottom: 27px;
  color: var(--navy-950);
}

.hero-lede {
  max-width: 555px;
  margin-bottom: 34px;
  color: var(--body);
  font-size: clamp(1.03rem, 1.4vw, 1.16rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.hero-proof li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-proof li:not(:last-child)::after {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue-400);
  content: "";
}

.hero-copy > * {
  animation: hero-rise 0.85s var(--ease-out) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 592px);
  animation: visual-arrive 1s 0.16s var(--ease-out) both;
}

@keyframes visual-arrive {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.visual-glow {
  position: absolute;
  top: 4%;
  left: 2%;
  width: 100%;
  height: 92%;
  border-radius: 40px;
  background: linear-gradient(140deg, rgba(14, 97, 255, 0.2), rgba(37, 185, 255, 0.05));
  filter: blur(42px);
  opacity: 0.8;
  z-index: -1;
}

.system-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(87, 142, 209, 0.32);
  border-radius: 25px;
  background:
    radial-gradient(ellipse 350px 280px at 55% 26%, rgba(23, 111, 255, 0.18), transparent 72%),
    linear-gradient(155deg, #0b2448 0%, #071a35 55%, #06152c 100%);
  box-shadow:
    0 34px 80px rgba(6, 21, 44, 0.22),
    0 2px 3px rgba(6, 21, 44, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.system-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--glow-x, 70%) var(--glow-y, 20%), rgba(84, 172, 255, 0.12), transparent 70%);
  content: "";
  pointer-events: none;
}

.system-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 48px;
  padding: 0 19px;
  border-bottom: 1px solid rgba(152, 190, 241, 0.12);
  background: rgba(255, 255, 255, 0.018);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(194, 218, 247, 0.42);
}

.window-dots i:first-child { background: #48baff; }
.window-dots i:nth-child(2) { background: rgba(194, 218, 247, 0.55); }

.system-name {
  color: rgba(194, 218, 247, 0.56);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: rgba(182, 217, 255, 0.72);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(56, 211, 159, 0.12);
}

.system-canvas {
  padding: 16px 15px 3px;
}

.system-map {
  width: 100%;
  height: auto;
  overflow: visible;
}

.system-map text {
  font-family: var(--font-body);
  font-weight: 700;
}

.map-node-kicker {
  fill: #74b2ff;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.map-node-title {
  fill: #f4f9ff;
  font-family: var(--font-display) !important;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.map-node-sub {
  fill: #8ea9ca;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.map-bar-kicker {
  fill: #6fa8ed;
  font-size: 7.5px;
  letter-spacing: 0.17em;
}

.map-bar-title {
  fill: #eaf4ff;
  font-family: var(--font-display) !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.map-connector {
  fill: none;
  stroke: url("#map-line");
  stroke-width: 1.4;
  stroke-dasharray: 4 7;
  animation: map-dash 18s linear infinite;
}

.map-connector--soft {
  stroke-dasharray: 2 6;
  opacity: 0.7;
}

@keyframes map-dash {
  to { stroke-dashoffset: -220; }
}

.map-pulse circle {
  fill: #5fc8ff;
  filter: url("#map-filter");
  opacity: 0.7;
}

.map-ticks path {
  stroke: rgba(137, 184, 245, 0.32);
  stroke-width: 1;
}

.map-base-bars rect {
  transform-origin: bottom;
}

.map-pixels rect {
  animation: pixel-glow 5s ease-in-out infinite;
}

.map-pixels rect:nth-child(2) { animation-delay: 0.8s; }
.map-pixels rect:nth-child(3) { animation-delay: 1.6s; }

@keyframes pixel-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.system-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(152, 190, 241, 0.12);
}

.system-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 14px;
  color: rgba(193, 216, 246, 0.72);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.system-footer span + span {
  border-left: 1px solid rgba(152, 190, 241, 0.1);
}

.system-footer i {
  color: #63b6ff;
  font-style: normal;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

.visual-chip {
  position: absolute;
  bottom: -58px;
  left: -36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 13px 13px;
  border: 1px solid rgba(210, 224, 241, 0.95);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 16px 40px rgba(8, 31, 66, 0.13);
  backdrop-filter: blur(12px);
  animation: chip-float 7s ease-in-out infinite;
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.visual-chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--blue-600);
  color: var(--white);
  flex: 0 0 auto;
}

.visual-chip-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visual-chip strong,
.visual-chip small {
  display: block;
}

.visual-chip strong {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
}

.visual-chip small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.5;
}

.capability-rail {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.rail-track {
  display: flex;
  width: max-content;
  animation: rail-scroll 46s linear infinite;
}

.rail-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 17px 15px 17px 30px;
  flex: 0 0 auto;
}

.rail-group span {
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rail-group i {
  display: block;
  width: 5px;
  height: 5px;
  border: 1px solid var(--blue-500);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

@keyframes rail-scroll {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Positioning
   -------------------------------------------------------------------------- */

.positioning {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.positioning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.positioning-heading h2 {
  max-width: 490px;
}

.positioning-copy {
  padding-top: 6px;
}

.positioning-copy > p + p {
  margin-top: 18px;
}

.positioning-copy p {
  color: var(--body);
}

.positioning-copy .lead {
  color: var(--ink-soft);
}

.principle-list {
  margin-top: 44px;
}

.principle {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.principle:last-child {
  padding-bottom: 0;
}

.principle-number {
  padding-top: 5px;
  color: var(--blue-600);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.principle h3 {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.principle p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  background:
    radial-gradient(ellipse 600px 440px at 8% 18%, rgba(32, 133, 255, 0.05), transparent 70%),
    var(--paper-blue);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 1px rgba(8, 31, 66, 0.015);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--ease-out);
}

.service-card:hover {
  border-color: #b7cee8;
  box-shadow: 0 22px 50px rgba(8, 31, 66, 0.08);
  transform: translateY(-4px);
}

.service-card--feature {
  grid-row: span 2;
  border-color: rgba(64, 132, 225, 0.28);
  background:
    radial-gradient(ellipse 380px 320px at 92% 4%, rgba(30, 124, 255, 0.22), transparent 72%),
    linear-gradient(155deg, #0b2851 0%, #071c3b 60%, #06152d 100%);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(6, 21, 44, 0.15);
}

.service-card--feature:hover {
  border-color: rgba(83, 162, 255, 0.55);
  box-shadow: 0 30px 70px rgba(6, 21, 44, 0.22);
}

.service-card--feature::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(103, 174, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(72, 155, 255, 0.035), 0 0 0 120px rgba(72, 155, 255, 0.02);
  content: "";
  pointer-events: none;
}

.service-feature-glow {
  position: absolute;
  top: -150px;
  right: -120px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(30, 124, 255, 0.18);
  filter: blur(60px);
  pointer-events: none;
}

.service-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #dbe7f5;
  border-radius: 13px;
  background: #f4f8fe;
  color: var(--blue-600);
  flex: 0 0 auto;
}

.service-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon--light {
  border-color: rgba(131, 183, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: var(--cyan-300);
}

.service-number {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card--feature .service-number {
  color: rgba(170, 208, 255, 0.65);
}

.service-copy {
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
}

.service-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
}

.service-copy p {
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-card--feature .service-copy h3 {
  color: var(--white);
}

.service-card--feature .service-copy p {
  max-width: 400px;
  color: #b8cbe4;
  font-size: 0.97rem;
  line-height: 1.7;
}

.service-list {
  position: relative;
  z-index: 1;
  margin-bottom: 27px;
}

.service-card:not(.service-card--feature) .service-list {
  margin-top: auto;
}

.service-list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.4;
}

.service-card--feature .service-list li {
  padding: 11px 0;
  border-color: rgba(159, 196, 244, 0.16);
  color: #d2e2f5;
}

.service-list li::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue-400);
  content: "";
  vertical-align: 2px;
}

.service-card--feature .service-list li::before {
  background: var(--cyan-400);
}

.service-feature-quote {
  position: relative;
  z-index: 1;
  margin-top: auto;
  margin-bottom: 23px;
  padding-top: 23px;
  border-top: 1px solid rgba(159, 196, 244, 0.16);
}

.service-feature-quote p {
  max-width: 390px;
  color: #e8f2ff;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.service-feature-quote footer {
  margin-top: 11px;
  color: #69a8f3;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card--feature > .text-link {
  margin-top: 0;
}

.service-outcome {
  position: relative;
  z-index: 1;
  margin-bottom: 27px;
  padding: 17px 18px;
  border: 1px solid rgba(147, 189, 242, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.service-outcome span {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan-300);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-outcome p {
  color: #d0e1f3;
  font-size: 0.8rem;
  line-height: 1.55;
}

.service-card > .text-link {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
}

.service-card:not(.service-card--feature) .text-link {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Approach
   -------------------------------------------------------------------------- */

.approach {
  overflow: hidden;
  background:
    radial-gradient(ellipse 680px 560px at 78% 18%, rgba(17, 102, 255, 0.2), transparent 66%),
    radial-gradient(ellipse 500px 400px at 4% 100%, rgba(37, 185, 255, 0.08), transparent 70%),
    var(--navy-950);
  color: var(--white);
}

.approach::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 175, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 175, 238, 0.05) 1px, transparent 1px);
  background-size: 78px 78px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}

.approach-grid-bg {
  position: absolute;
  top: 7%;
  right: -80px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(111, 175, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(30, 122, 255, 0.025), 0 0 0 140px rgba(30, 122, 255, 0.018);
  pointer-events: none;
}

.approach-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  gap: clamp(50px, 8vw, 112px);
  align-items: start;
}

.approach-intro {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.approach-intro h2 {
  margin-bottom: 24px;
  color: var(--white);
}

.approach-lede {
  max-width: 370px;
  color: #a7bdd8;
  font-size: 1rem;
  line-height: 1.7;
}

.approach-note {
  display: flex;
  gap: 13px;
  max-width: 370px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(145, 189, 243, 0.17);
}

.approach-note-mark {
  color: var(--cyan-400);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.9;
}

.approach-note p {
  color: #b7c9df;
  font-size: 0.83rem;
  font-style: italic;
  line-height: 1.6;
}

.steps {
  border-top: 1px solid rgba(145, 189, 243, 0.2);
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  padding: 31px 0 33px;
  border-bottom: 1px solid rgba(145, 189, 243, 0.15);
  transition: background-color 0.3s ease;
}

.step-number {
  padding-top: 4px;
  color: var(--cyan-300);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.step-tag {
  display: block;
  margin-bottom: 8px;
  color: #6fa6e9;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.step h3 {
  margin-bottom: 9px;
  color: var(--white);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.step p {
  max-width: 500px;
  color: #9db4d0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */

.work {
  background: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.3s ease;
}

.work-card:hover {
  border-color: #bfd2e8;
  box-shadow: 0 20px 48px rgba(8, 31, 66, 0.07);
  transform: translateY(-4px);
}

.work-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(48, 143, 255, 0.1), transparent 65%),
    linear-gradient(145deg, #f6faff, #eaf3ff);
  color: var(--blue-500);
}

.work-art::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 91, 184, 0.16) 1px, transparent 1px);
  background-size: 16px 16px;
  content: "";
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

.work-art svg {
  position: relative;
  z-index: 1;
  width: 82%;
  height: auto;
  transition: transform 0.5s var(--ease-out);
}

.work-card:hover .work-art svg {
  transform: scale(1.035);
}

.work-art--ai {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(26, 120, 255, 0.17), transparent 62%),
    linear-gradient(145deg, #f6faff, #e8f2ff);
}

.work-art--platform {
  background:
    radial-gradient(ellipse at 40% 50%, rgba(37, 185, 255, 0.12), transparent 60%),
    linear-gradient(145deg, #f7fbff, #edf6ff);
}

.work-art--product {
  background:
    radial-gradient(ellipse at 55% 50%, rgba(49, 134, 255, 0.12), transparent 62%),
    linear-gradient(145deg, #f6faff, #edf4fd);
}

.work-content {
  padding: 27px 30px 31px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  border: 1px solid #d7e5f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue-600);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.work-content h3 {
  margin-bottom: 11px;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
}

.work-content p {
  max-width: 500px;
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  overflow: hidden;
  background:
    radial-gradient(ellipse 620px 420px at 94% 10%, rgba(31, 129, 255, 0.07), transparent 68%),
    var(--paper);
}

.about-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
  margin-bottom: clamp(50px, 6vw, 72px);
}

.about-top h2 {
  max-width: 500px;
}

.about-copy > p {
  color: var(--body);
}

.about-copy > p + p {
  margin-top: 17px;
}

.about-copy .lead {
  color: var(--ink-soft);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-facts div {
  padding: 19px 18px 19px 0;
}

.about-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.about-facts strong {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.about-facts span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.45;
}

.brand-banner {
  margin: 0;
}

.brand-banner-frame {
  overflow: hidden;
  padding: 9px;
  border: 1px solid rgba(210, 223, 240, 0.95);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 24px 65px rgba(8, 31, 66, 0.08);
}

.brand-banner-frame img {
  width: 100%;
  border-radius: 20px;
}

.brand-banner figcaption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 4px 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.5;
}

.brand-banner figcaption span:first-child {
  color: var(--ink-soft);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 600px at 8% 10%, rgba(29, 143, 255, 0.28), transparent 64%),
    radial-gradient(ellipse 600px 520px at 96% 90%, rgba(8, 84, 255, 0.36), transparent 68%),
    linear-gradient(135deg, #083f9f 0%, #0752c8 48%, #075ce0 100%);
  color: var(--white);
}

.contact::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.contact-orbit {
  position: absolute;
  top: -160px;
  right: -80px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255, 255, 255, 0.032), 0 0 0 144px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.contact-copy {
  padding-top: 12px;
}

.contact-copy h2 {
  margin-bottom: 23px;
  color: var(--white);
}

.contact-lede {
  max-width: 450px;
  margin-bottom: 28px;
  color: #eaf5ff;
  font-size: 1.03rem;
  line-height: 1.72;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.contact-email span {
  transition: transform 0.25s var(--ease-out);
}

.contact-email:hover span {
  transform: translate(3px, -3px);
}

.contact-next {
  margin-top: 53px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-next div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-next span {
  padding-top: 2px;
  color: #c9e8ff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.contact-next p {
  max-width: 380px;
  color: #edf7ff;
  font-size: 0.8rem;
  line-height: 1.55;
}

.contact-form-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 32px 80px rgba(3, 36, 109, 0.25);
  color: var(--ink);
}

.form-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 25px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.form-head-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: none;
}

.form-head-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

.contact-form {
  padding: 26px 25px 23px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-row + .form-row,
.contact-form > .field {
  margin-top: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.4;
}

.optional {
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field input,
.field select {
  height: 45px;
  padding: 0 12px;
}

.field textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64758a;
  font-weight: 500;
  opacity: 1;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #647895 50%), linear-gradient(135deg, #647895 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  cursor: pointer;
}

.field select:invalid {
  color: #64758a;
  font-weight: 500;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(14, 97, 255, 0.12);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
  border-color: #e05a5a;
  box-shadow: 0 0 0 3px rgba(224, 90, 90, 0.1);
}

.form-submit {
  width: 100%;
  margin-top: 18px;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.55;
  text-align: center;
}

.form-note a {
  color: var(--blue-600);
  font-weight: 800;
}

.form-status {
  min-height: 18px;
  margin-top: 10px;
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-1000);
  color: var(--white);
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  background-image: radial-gradient(rgba(79, 143, 225, 0.17) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  mask-image: linear-gradient(to left, black, transparent 78%);
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 0.55fr 0.55fr;
  gap: 50px;
  padding: 67px 0 56px;
  border-bottom: 1px solid rgba(145, 189, 243, 0.16);
}

.footer-brand picture {
  display: block;
  width: 187px;
}

.footer-brand img {
  width: 100%;
}

.footer-brand p {
  margin-top: 25px;
  color: #8ea7c5;
  font-size: 0.84rem;
  line-height: 1.65;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding-top: 3px;
}

.footer-col h3 {
  margin-bottom: 5px;
  color: #6f8fb7;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  color: #c8d8ea;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan-300);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0 27px;
  color: #708baa;
  font-size: 0.65rem;
  line-height: 1.5;
}

.footer-domain {
  color: #8aa3c1;
}

.footer-domain span {
  margin: 0 6px;
  color: #3d6b9e;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c8d8ea;
  font-weight: 700;
  transition: color 0.2s ease;
}

.back-to-top:hover {
  color: var(--cyan-300);
}

.back-to-top span {
  transition: transform 0.25s var(--ease-out);
}

.back-to-top:hover span {
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

[data-reveal].is-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { --reveal-delay: 0.08s; }
[data-reveal-delay="2"] { --reveal-delay: 0.16s; }
[data-reveal-delay="3"] { --reveal-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Secondary pages
   -------------------------------------------------------------------------- */

.page-main {
  padding-top: calc(var(--header-height) + 70px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 640px 400px at 90% 0%, rgba(45, 141, 255, 0.12), transparent 68%),
    var(--paper);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 31, 61, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 31, 61, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  max-width: 950px;
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
}

.page-hero .lead {
  max-width: 640px;
}

.legal-content {
  max-width: 760px;
  padding: 64px 0 126px;
}

.legal-content h2 {
  margin: 40px 0 13px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--body);
  font-size: 0.94rem;
  line-height: 1.75;
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content a {
  color: var(--blue-600);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 29px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.legal-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-500);
}

.not-found {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72vh;
  padding: 140px 0 110px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 480px at 50% 40%, rgba(31, 129, 255, 0.13), transparent 68%),
    var(--paper);
}

.not-found::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(10, 31, 61, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 31, 61, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  content: "";
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

.not-found-content {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.not-found-code {
  margin-bottom: 18px;
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.not-found h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 5rem);
}

.not-found p {
  max-width: 440px;
  margin: 0 auto 30px;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1140px) {
  .header-cta {
    display: none;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 5.6vw, 4.65rem);
  }

  .visual-chip {
    left: -20px;
  }

  .service-card {
    padding: 27px;
  }

  .about-top {
    gap: 48px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: calc(var(--header-height) + 56px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-bottom: 74px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    max-width: 740px;
    font-size: clamp(3.4rem, 8.3vw, 5.2rem);
  }

  .hero-visual {
    justify-self: center;
    width: min(100% - 24px, 620px);
  }

  .visual-chip {
    left: -26px;
  }

  .positioning-grid,
  .about-top {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .positioning-heading h2 {
    max-width: 640px;
  }

  .positioning-copy {
    max-width: 680px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .service-card--feature {
    grid-row: auto;
  }

  .service-card:not(.service-card--feature) .service-list {
    margin-top: 0;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .approach-intro {
    position: static;
  }

  .approach-lede,
  .approach-note {
    max-width: 520px;
  }

  .approach-note {
    margin-top: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-copy {
    max-width: 610px;
  }

  .contact-next {
    max-width: 560px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 0.6fr 0.6fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }

  .section {
    padding: 78px 0;
  }

  .section-head,
  .section-head--wide {
    grid-template-columns: 1fr;
    gap: 21px;
    margin-bottom: 38px;
  }

  .section-lede {
    justify-self: start;
    max-width: 540px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 42px);
  }

  .hero-eyebrow {
    gap: 10px;
    margin-bottom: 22px;
    font-size: 0.6rem;
    letter-spacing: 0.13em;
  }

  .eyebrow-rule {
    width: 24px;
  }

  .hero h1 {
    font-size: clamp(3rem, 10.8vw, 4.4rem);
    letter-spacing: -0.055em;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.68;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 190px;
  }

  .hero-proof {
    gap: 7px 14px;
    font-size: 0.63rem;
  }

  .hero-proof li {
    gap: 14px;
  }

  .hero-grid {
    gap: 48px;
  }

  .system-topbar {
    height: 43px;
    padding-inline: 14px;
  }

  .system-name {
    font-size: 0.48rem;
  }

  .system-status {
    font-size: 0.48rem;
  }

  .system-canvas {
    padding: 8px 7px 0;
  }

  .system-footer span {
    padding: 11px 8px;
    font-size: 0.51rem;
  }

  .visual-chip {
    bottom: -46px;
    left: 10px;
    padding: 10px 12px 10px 10px;
  }

  .visual-chip-icon {
    width: 30px;
    height: 30px;
  }

  .visual-chip strong {
    font-size: 0.64rem;
  }

  .visual-chip small {
    font-size: 0.55rem;
  }

  .rail-group {
    gap: 22px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .rail-group span {
    font-size: 0.58rem;
  }

  .positioning-heading h2 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
  }

  .principle-list {
    margin-top: 32px;
  }

  .service-card {
    padding: 24px;
  }

  .service-card--feature {
    min-height: 0;
  }

  .service-copy h3 {
    font-size: 1.75rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-art {
    aspect-ratio: 2.15 / 1;
  }

  .brand-banner-frame {
    padding: 6px;
    border-radius: 20px;
  }

  .brand-banner-frame img {
    border-radius: 15px;
  }

  .brand-banner figcaption {
    flex-direction: column;
    gap: 4px;
    padding-top: 11px;
  }

  .about-facts div {
    padding: 15px 12px 15px 0;
  }

  .about-facts div + div {
    padding-left: 12px;
  }

  .about-facts strong {
    font-size: 1.25rem;
  }

  .about-facts span {
    font-size: 0.6rem;
  }

  .contact-form {
    padding: 20px 18px;
  }

  .form-head {
    padding: 15px 18px;
    font-size: 0.57rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row + .form-row {
    margin-top: 14px;
  }

  .form-row + .form-row .field + .field {
    margin-top: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    padding: 52px 0 43px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 9px 20px;
    padding-bottom: 23px;
  }

  .footer-domain {
    order: 3;
    flex-basis: 100%;
  }

  .back-to-top {
    margin-left: auto;
  }

  .page-main {
    padding-top: calc(var(--header-height) + 38px);
  }

  .page-hero {
    padding: 26px 0 48px;
  }

  .legal-content {
    padding: 48px 0 90px;
  }

  .not-found {
    padding: 100px 0 90px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 30px);
  }

  .brand {
    width: 155px;
  }

  .hero h1 {
    font-size: clamp(2.72rem, 11.4vw, 3.7rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    flex: auto;
    width: 100%;
  }

  .hero-proof {
    display: grid;
    gap: 3px;
  }

  .hero-proof li::after {
    display: none;
  }

  .system-footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .system-footer span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(152, 190, 241, 0.1);
  }

  .system-footer span:nth-child(4) {
    border-top: 1px solid rgba(152, 190, 241, 0.1);
  }

  .visual-chip {
    bottom: -40px;
    left: 6px;
  }

  .visual-chip small {
    display: none;
  }

  .service-card {
    padding: 22px;
  }

  .service-card--feature {
    padding: 24px;
  }

  .work-content {
    padding: 23px 22px 26px;
  }

  .about-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-facts div,
  .about-facts div + div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 11px 0;
    border-left: 0;
  }

  .about-facts div + div {
    border-top: 1px solid var(--line);
  }

  .about-facts strong {
    width: 33px;
    margin: 0;
    font-size: 1.15rem;
  }

  .contact-copy h2 {
    font-size: clamp(2.4rem, 9vw, 3.1rem);
  }

  .form-head-status {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .footer-bottom p:first-child {
    grid-column: 1 / -1;
  }

  .footer-domain {
    order: 2;
    flex-basis: auto;
  }

  .back-to-top {
    order: 3;
  }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rail-track {
    animation: none;
  }

  [data-reveal].is-reveal {
    opacity: 1;
    transform: none;
  }

  .visual-chip,
  .map-pixels rect {
    animation: none;
  }
}

/* Polish pass */
.desktop-nav a[aria-current="location"] {
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-600);
}

.service-feature-mark {
  position: absolute;
  right: -48px;
  bottom: -58px;
  z-index: 0;
  width: 320px;
  opacity: 0.12;
  pointer-events: none;
  transform: rotate(-7deg);
}

.service-feature-mark img {
  width: 100%;
  height: auto;
}


.contact .eyebrow--light {
  color: #c9e8ff;
}


/* Accessibility polish */
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.text-link {
  min-height: 24px;
  align-items: center;
}

.site-footer :focus-visible,
.approach :focus-visible,
.contact :focus-visible {
  outline-color: #8fd6ff;
}

.capability-rail:hover .rail-track {
  animation-play-state: paused;
}
