:root {
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ink: #0a0a0c;
  --ink-2: #0f0f12;
  --surface: #141418;
  --surface-2: #1b1b20;
  --border: #222228;
  --border-strong: #33333c;
  --paper: #f4f1e9;
  --paper-dim: #d8d3c5;
  --mute: #8a8691;
  --mute-2: #5a5761;
  --accent: #f5a623;
  --accent-hi: #ffc062;
  --accent-soft: rgba(245, 166, 35, 0.1);

  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--paper);
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 9999;
}

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

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

.navbar-brand {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
}

.navbar-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 10rem 0 8rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 2.5rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 14ch;
  font-variation-settings: "opsz" 144;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: reveal 1.1s var(--ease) forwards;
}

.hero h1 .line-1 span {
  animation-delay: 0.2s;
}
.hero h1 .line-2 span {
  animation-delay: 0.35s;
}

.hero h1 .escalated {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  padding-right: 0.15em;
}

.hero-sub {
  margin: 2.75rem 0 3.5rem;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--paper-dim);
  line-height: 1.65;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.6s forwards;
}

.hero-meta {
  display: flex;
  gap: 4rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  max-width: 640px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.8s forwards;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute-2);
}

.meta-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}

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

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

/* ============ SECTIONS ============ */
.section {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  margin-bottom: 5rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 0.75rem;
  flex-shrink: 0;
  min-width: 120px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
  font-variation-settings: "opsz" 144;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* ============ SERVICES ============ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.service {
  padding: 3rem 2.25rem 3.5rem;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.4s var(--ease);
}

.service:last-child {
  border-right: none;
}

.service:hover {
  background: var(--surface);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--mute-2);
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.service:hover .service-num {
  color: var(--accent);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin: 1.75rem 0 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 80;
}

.service p {
  color: var(--mute);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.service .arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  color: var(--mute-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.service .arrow::after {
  content: "→";
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}

.service:hover .arrow {
  color: var(--accent);
}

.service:hover .arrow::after {
  transform: translateX(6px);
}

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: flex-start;
}

.about-left {
  position: sticky;
  top: 120px;
}

.about-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}

.about h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.about-body .lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
  margin: 0 0 1.75rem;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
}

.about-body p {
  font-size: 1.05rem;
  color: var(--mute);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.about-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--paper);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
}

.stat-num em {
  font-style: italic;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute-2);
  margin-top: 0.6rem;
}

/* ============ FOOTER ============ */
.footer {
  padding: 6rem 0 2.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  margin: 0 0 4rem;
  color: var(--paper);
  font-variation-settings: "opsz" 144;
}

.footer-wordmark .wm-escalate,
.footer-wordmark .wm-software {
  display: block;
}

.footer-wordmark .wm-escalate {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.footer-wordmark .wm-software {
  padding-left: 0.18em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute-2);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============ LEGAL PAGES ============ */
.legal-wrap {
  position: relative;
  padding: 7rem 0 6rem;
}

.legal-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  height: 400px;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 2rem;
}

.legal-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  font-variation-settings: "opsz" 144;
}

.legal h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.legal .meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute-2);
  margin: 0 0 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 3.5rem 0 1.25rem;
  letter-spacing: -0.015em;
  color: var(--paper);
  line-height: 1.15;
  font-variation-settings: "opsz" 36;
}

.legal p,
.legal li {
  color: var(--paper-dim);
  line-height: 1.8;
  font-size: 1.02rem;
}

.legal p {
  margin: 0 0 1.25rem;
}

.legal p strong,
.legal li strong {
  color: var(--paper);
  font-weight: 500;
}

.legal ul {
  padding-left: 0;
  list-style: none;
  margin: 1rem 0 1.75rem;
}

.legal li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.legal a {
  color: var(--accent);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 0.25s var(--ease);
}

.legal a:hover {
  border-bottom-color: var(--accent);
}

.legal .emphasis {
  color: var(--paper);
  font-weight: 400;
  padding: 1.75rem 2rem;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  margin: 2.5rem 0;
  font-size: 1.02rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .navbar-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.75rem var(--gutter);
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu.open {
    display: flex;
  }

  .hero {
    padding: 6rem 0 5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .section-head {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .section-num {
    padding-top: 0;
  }

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

  .service {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .service:last-child {
    border-bottom: none;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-left {
    position: static;
  }

  .about-stats {
    gap: 1.25rem;
  }

  .stat-num {
    font-size: 2rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-wrap {
    padding: 4.5rem 0 4rem;
  }

  .legal .emphasis {
    padding: 1.25rem 1.5rem;
  }
}
