@font-face {
  font-family: "Sora Local";
  src: url("assets/fonts/sora-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Code Local";
  src: url("assets/fonts/google-sans-code-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --ink: #f2f5ed;
  --base: #090c08;
  --surface: #0f130d;
  --surface-2: #151a12;
  --forest: #373d27;
  --green: #465235;
  --olive: #606848;
  --accent: #9ba77c;
  --paper: var(--base);
  --soft: var(--surface-2);
  --white: #f6f8f2;
  --muted: #8d9684;
  --line: rgba(155, 167, 124, 0.16);
  --line-light: rgba(223, 230, 211, 0.16);
  --body: "Sora Local", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Sora Local", var(--body);
  --mono: "Google Sans Code Local", ui-monospace, SFMono-Regular, Consolas, monospace;
  --max: 1280px;
  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 78% 6%, rgba(70, 82, 53, 0.22), transparent 28rem),
    linear-gradient(rgba(155, 167, 124, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 167, 124, 0.028) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
  pointer-events: none;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.container {
  width: min(100%, calc(var(--max) + var(--pad) * 2));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(5.25rem, 8vw, 8.5rem); border-top: 1px solid rgba(155, 167, 124, 0.07); }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--base);
  border: 1px solid var(--accent);
}

.skip-link:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  z-index: 200;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  background: rgba(9, 12, 8, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 0.25s, background-color 0.25s;
}

.site-header.scrolled { border-color: var(--line); background: rgba(9, 12, 8, 0.94); }

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

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.34rem;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 30px;
  flex: none;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(155, 167, 124, 0.12));
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.44rem;
  padding-bottom: 2px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 450;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.brand-name > span,
.brand-name > strong { display: block; line-height: 1; }

.brand-name strong { font-weight: 800; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.2vw, 2.25rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 520;
  letter-spacing: 0.02em;
}

.site-nav > a:not(.button) {
  position: relative;
  padding-block: 0.4rem;
  color: rgba(242, 245, 237, 0.62);
}

.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}

.site-nav > a:hover::after,
.site-nav > a.active::after { right: 0; }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 0;
  background: transparent;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--white);
  transition: transform 0.25s var(--ease);
}

/* Buttons and links */
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.button:hover { transform: translateY(-3px); }
.button-small { min-height: 42px; padding: 0.6rem 1rem; }
.button-dark { background: var(--accent); color: var(--base); }
.button-primary { background: var(--accent); color: var(--base); box-shadow: 0 0 0 1px rgba(155, 167, 124, 0.18), 0 14px 42px rgba(0, 0, 0, 0.3); }
.button-primary:hover { background: #b1bc94; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0 0.35rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 560;
}

.text-link-light { color: rgba(255, 255, 255, 0.82); }
.button-row { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 0;
  max-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(5.6rem, 10vh, 7.2rem) 0 clamp(4rem, 6vh, 4.8rem);
  background: #080b07;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, black 30%, black);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 44%, rgba(96, 104, 72, 0.22), transparent 31%),
    linear-gradient(90deg, rgba(8, 11, 7, 0.99) 0%, rgba(8, 11, 7, 0.88) 48%, rgba(8, 11, 7, 0.34) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: block;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 520;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 26px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.intro h2,
.section-heading h2,
.about h2,
.contact h2,
.legal-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 540;
  letter-spacing: -0.065em;
}

.hero h1 {
  font-size: clamp(3.2rem, min(6.7vw, 12vh), 6.9rem);
  line-height: 0.94;
}

.hero h1 em,
.about h2 em,
.contact h2 em {
  color: var(--accent);
  font-style: normal;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-line > span {
  display: block;
  transform: translateY(115%);
  animation: hero-line-in 0.95s var(--ease) forwards;
}

.hero-line:nth-child(1) > span { animation-delay: 0.12s; }
.hero-line:nth-child(2) > span { animation-delay: 0.22s; }
.hero-line:nth-child(3) > span { animation-delay: 0.32s; }

@keyframes hero-line-in { to { transform: none; } }

.hero h1.type-heading .hero-line > span {
  transform: none;
  animation: none;
}

.hero-lead {
  max-width: 700px;
  margin: 1.35rem 0 1.55rem;
  color: rgba(226, 232, 216, 0.6);
  font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  line-height: 1.6;
}

.hero-tech-background {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tech-plane {
  position: absolute;
  right: -12%;
  bottom: -57%;
  width: 88%;
  height: 138%;
  opacity: 0.48;
  background-image:
    linear-gradient(rgba(155, 167, 124, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 167, 124, 0.18) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(720px) rotateX(58deg) rotateZ(-7deg);
  transform-origin: center bottom;
  mask-image: radial-gradient(ellipse at 68% 55%, black 0 34%, transparent 74%);
  animation: tech-grid-travel 8s linear infinite;
}

.tech-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 24%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(155, 167, 124, 0.11), transparent);
  filter: blur(8px);
  transform: translateX(-130%);
  animation: tech-scan-sweep 9s ease-in-out infinite;
}

@keyframes tech-grid-travel {
  to { background-position: 0 58px, 58px 0; }
}

@keyframes tech-scan-sweep {
  0%, 8% { opacity: 0; transform: translateX(-130%); }
  18% { opacity: 0.72; }
  82% { opacity: 0.42; }
  92%, 100% { opacity: 0; transform: translateX(520%); }
}

.hero-foot {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-foot a { display: flex; gap: 0.55rem; align-items: center; }

/* Shared section patterns */
.section-label {
  display: block;
  margin-bottom: clamp(2.6rem, 4.5vw, 4rem);
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 560;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-label-light { border-color: var(--line-light); color: rgba(255, 255, 255, 0.48); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.55fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(2.8rem, 5vw, 4.6rem);
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(2.9rem, 5.4vw, 5.2rem);
  line-height: 1.02;
}

.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.section-heading-wide { align-items: start; }

.lead-copy {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(70, 82, 53, 0.12), transparent 40%),
    #10140e;
  color: var(--white);
}
.section-dark .section-heading > p { color: rgba(255, 255, 255, 0.58); }

/* Introduction */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.62fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
}

.intro {
  background: linear-gradient(180deg, #0b0e0a, #0d110c);
}

.intro h2 {
  max-width: 830px;
  font-size: clamp(3rem, 5.7vw, 5.6rem);
  line-height: 0.98;
}

.approach { background: #0a0d09; }
.problems { background: #0c100b; }

.intro-copy { color: var(--muted); }
.intro-copy p { margin-bottom: 1.4rem; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(3.4rem, 5vw, 5rem);
}

.principles article {
  position: relative;
  display: flex;
  min-height: 220px;
  overflow: hidden;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(21, 26, 18, 0.96), rgba(12, 16, 11, 0.96));
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease);
}

.principles article::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -85px;
  top: -85px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 104, 72, 0.24), transparent 68%);
  transition: transform 0.55s var(--ease), opacity 0.35s;
}

.principles article::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--olive), var(--green));
}

.principles article:hover { transform: translateY(-7px); border-color: rgba(155, 167, 124, 0.32); box-shadow: 0 24px 65px rgba(0, 0, 0, 0.25); }
.principles article:hover::before { transform: scale(1.18); }
.principles article > div { position: relative; z-index: 1; margin-top: auto; }
.principles h3 { margin: 3rem 0 0.65rem; font-family: var(--display); font-size: 1.3rem; font-weight: 520; letter-spacing: -0.04em; }
.principles p { max-width: 280px; margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Services */
.service-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.service-row { grid-column: span 2; }
.service-row:nth-last-child(-n + 2) { grid-column: span 3; }

.service-row {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(30, 36, 24, 0.78), rgba(13, 17, 12, 0.9));
  border: 1px solid var(--line-light);
  border-radius: 16px;
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease);
}

.service-row::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 230px;
  height: 230px;
  right: -115px;
  top: -115px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 104, 72, 0.3), transparent 70%);
  transform: scale(0.75);
  transition: transform 0.6s var(--ease), opacity 0.35s;
}

.service-row > * { position: relative; z-index: 1; }
.service-row:hover { transform: translateY(-7px); border-color: rgba(155, 167, 124, 0.38); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28); }
.service-row:hover::before { transform: scale(1.12); }
.service-number { color: var(--accent); font-family: var(--mono); font-size: 0.64rem; font-weight: 560; }
.service-row h3 { max-width: 290px; margin: 2.7rem 0 0.7rem; font-family: var(--display); font-size: clamp(1.3rem, 1.9vw, 1.8rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.045em; }
.service-row p { margin: 0 0 1.4rem; color: rgba(255, 255, 255, 0.56); font-size: 0.86rem; }
.service-meta { margin-top: auto; color: rgba(255, 255, 255, 0.4); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.05em; text-transform: uppercase; }
.row-arrow { position: absolute; top: 1.25rem; right: 1.35rem; color: rgba(255, 255, 255, 0.45); font-size: 1.1rem; transition: transform 0.35s var(--ease), color 0.35s; }
.service-row:hover p, .service-row:hover .service-meta, .service-row:hover .service-number, .service-row:hover .row-arrow { color: rgba(242, 245, 237, 0.72); }
.service-row:hover .row-arrow { transform: translate(3px, -3px); }

/* Process */
.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.process-list li { position: relative; display: flex; min-height: 280px; flex-direction: column; overflow: hidden; padding: 1.45rem; background: rgba(15, 19, 13, 0.88); border: 1px solid var(--line); border-radius: 14px; transition: transform 0.45s var(--ease), background 0.35s, border-color 0.35s; }
.process-list li::before { content: ""; position: absolute; width: 150px; height: 150px; right: -90px; bottom: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(70, 82, 53, 0.22), transparent 70%); transition: transform 0.5s var(--ease); }
.process-list li:hover { transform: translateY(-6px); background: rgba(21, 26, 18, 0.96); border-color: rgba(155, 167, 124, 0.3); }
.process-list li:hover::before { transform: scale(1.35); }
.process-number { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(155, 167, 124, 0.25); border-radius: 50%; color: var(--accent); font-family: var(--mono); font-size: 0.62rem; font-weight: 560; }
.process-list li > div { position: relative; z-index: 1; }
.process-list h3 { margin: 3rem 0 0.6rem; font-family: var(--display); font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 500; letter-spacing: -0.045em; }
.process-list p { max-width: 650px; margin: 0; color: var(--muted); }
.process-word { position: relative; z-index: 1; margin-top: auto; padding-top: 1.5rem; color: var(--accent); font-family: var(--mono); font-size: 0.57rem; font-weight: 550; letter-spacing: 0.1em; text-transform: uppercase; }

/* About */
.about {
  background:
    radial-gradient(circle at 14% 80%, rgba(70, 82, 53, 0.2), transparent 30rem),
    var(--surface-2);
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr); gap: clamp(3.5rem, 8vw, 8rem); }
.about h2 { font-size: clamp(3rem, 5.7vw, 5.6rem); line-height: 0.99; }
.about-copy { align-self: end; color: var(--muted); }
.about-copy > p { margin-bottom: 1.35rem; }
.location-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.location-line > span { width: 7px; height: 7px; margin-right: 0.35rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(155, 167, 124, 0.08); }
.location-line strong { color: var(--ink); }

/* Problems */
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 1rem; background: rgba(15, 19, 13, 0.88); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18); }
.problem-grid > a { position: relative; display: flex; min-height: 82px; align-items: center; padding: 1rem 3.4rem 1rem 1.25rem; overflow: hidden; background: #0a0d09; border: 1px solid rgba(155, 167, 124, 0.1); border-radius: 10px; transition: transform 0.4s var(--ease), border-color 0.35s, background 0.35s; }
.problem-grid > a::after { content: "↗"; position: absolute; right: 1.2rem; color: rgba(155, 167, 124, 0.48); font-size: 0.85rem; transition: transform 0.35s var(--ease), color 0.35s; }
.problem-grid > a:hover { transform: translateY(-3px); background: var(--surface-2); border-color: rgba(155, 167, 124, 0.3); color: var(--white); }
.problem-grid > a:hover::after { color: var(--accent); transform: translate(2px, -2px); }
.problem-grid p { margin: 0; font-family: var(--display); font-size: clamp(0.95rem, 1.35vw, 1.15rem); font-weight: 480; letter-spacing: -0.03em; }

/* Contact and footer */
.contact { position: relative; overflow: hidden; background: #0d110b; color: var(--white); border-top: 1px solid var(--line); }
.contact::before { content: ""; position: absolute; width: 55vw; height: 55vw; right: -21vw; top: -31vw; border: 1px solid rgba(167, 177, 139, 0.14); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(167, 177, 139, 0.022), 0 0 0 16vw rgba(167, 177, 139, 0.014); animation: orbit 14s ease-in-out infinite; }
@keyframes orbit { 50% { transform: translate(-3vw, 5vw) scale(1.06); } }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.65fr); gap: clamp(3.5rem, 8vw, 8rem); align-items: end; }
.eyebrow-light { color: var(--accent); }
.contact h2 { max-width: 850px; font-size: clamp(3.3rem, 6.3vw, 6.2rem); line-height: 0.94; }
.contact-copy { padding-bottom: 0.35rem; }
.contact-copy > p { margin: 0 0 2.5rem; color: rgba(255, 255, 255, 0.58); }
.contact-email { display: inline-flex; gap: 0.8rem; align-items: center; padding-bottom: 0.45rem; border-bottom: 1px solid rgba(255, 255, 255, 0.45); font-family: var(--mono); font-size: clamp(0.92rem, 1.5vw, 1.2rem); letter-spacing: -0.03em; transition: color 0.3s, border-color 0.3s; }
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-copy small { display: block; margin-top: 1rem; color: rgba(255, 255, 255, 0.36); font-size: 0.66rem; }

.site-footer { padding: 3.8rem 0 1.5rem; background: #070906; color: var(--white); }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; align-items: center; padding-bottom: 3rem; }
.brand-light .brand-name { color: var(--white); }
.footer-top p { max-width: 400px; margin: 0; color: rgba(255, 255, 255, 0.45); font-size: 0.85rem; }
.footer-links { display: grid; grid-template-columns: 1fr 0.8fr 1.3fr; gap: 3rem; padding-block: 2.5rem; border-block: 1px solid rgba(255, 255, 255, 0.12); }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.footer-links span { margin-bottom: 0.35rem; color: rgba(255, 255, 255, 0.32); font-size: 0.59rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links span, .footer-bottom { font-family: var(--mono); }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.4rem; color: rgba(255, 255, 255, 0.3); font-size: 0.59rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-bottom > span:last-child { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-bottom a { transition: color 0.25s; }
.footer-bottom a:hover { color: var(--white); }

/* Legal and error pages */
.legal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 10.5rem 0 5rem;
  border-bottom: 1px solid var(--line);
}

.legal-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(68vw, 900px);
  aspect-ratio: 1;
  top: -65%;
  right: -12%;
  border: 1px solid rgba(155, 167, 124, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 9vw rgba(155, 167, 124, 0.018), 0 0 0 18vw rgba(155, 167, 124, 0.012);
}

.legal-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(115deg, rgba(70, 82, 53, 0.13), transparent 48%);
}

.legal-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7.3vw, 7rem);
  font-weight: 560;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.legal-hero > .container > p:last-child { max-width: 720px; margin: 1.5rem 0 0; color: var(--muted); }
.legal-content { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(6rem, 10vw, 10rem); }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 820px); gap: clamp(3rem, 8vw, 8rem); align-items: start; }

.legal-nav {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.25rem;
  background: rgba(15, 19, 13, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.legal-nav > span {
  margin: 0 0 0.8rem;
  color: rgba(155, 167, 124, 0.48);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav a {
  position: relative;
  padding: 0.52rem 0.65rem;
  color: var(--muted);
  border-radius: 6px;
  transition: color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}

.legal-nav a:hover { color: var(--ink); background: rgba(155, 167, 124, 0.07); transform: translateX(2px); }
.legal-copy { min-width: 0; }

.legal-language {
  scroll-margin-top: 96px;
}

.legal-language + .legal-language {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(155, 167, 124, 0.24);
}

.legal-language-heading {
  margin-bottom: 1.5rem;
}

.legal-language-heading > span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-language-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.055em;
}

.legal-note {
  margin: 0 0 1.1rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(120deg, rgba(70, 82, 53, 0.19), rgba(15, 19, 13, 0.9));
  border: 1px solid rgba(155, 167, 124, 0.24);
  border-radius: 14px;
}

.legal-note-label, .legal-kicker {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 550;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-note p { margin: 0.45rem 0 0; color: rgba(242, 245, 237, 0.72); font-size: 0.82rem; }

.legal-section {
  scroll-margin-top: 96px;
  margin-top: 1.1rem;
  padding: clamp(1.45rem, 3vw, 2.2rem);
  background: rgba(15, 19, 13, 0.78);
  border: 1px solid rgba(155, 167, 124, 0.13);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.12);
}

.legal-section.legal-objection {
  background: linear-gradient(125deg, rgba(70, 82, 53, 0.28), rgba(15, 19, 13, 0.94));
  border-color: rgba(155, 167, 124, 0.34);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18), inset 3px 0 0 var(--accent);
}

.legal-objection strong { color: var(--ink); font-weight: 560; }

.legal-section h2 {
  margin: 0.55rem 0 1.35rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 530;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.legal-copy p, .legal-copy li { color: var(--muted); font-size: 0.9rem; }
.legal-section > p:last-child, .legal-address:last-child, .legal-list:last-child { margin-bottom: 0; }
.legal-copy a:not(.legal-contact) { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(155, 167, 124, 0.38); text-underline-offset: 4px; }
.legal-copy a:not(.legal-contact):hover { text-decoration-color: var(--accent); }

.legal-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.36rem;
  margin: 1.25rem 0;
  padding: 1.15rem 1.2rem;
  background: #0a0d09;
  border: 1px solid rgba(155, 167, 124, 0.1);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-address strong { color: var(--ink); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.placeholder { padding: 0.12rem 0.32rem; color: #c4cdb0; border: 1px dashed rgba(155, 167, 124, 0.42); border-radius: 4px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0; }

.legal-contact {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: #0a0d09;
  border: 1px solid rgba(155, 167, 124, 0.12);
  border-radius: 10px;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}

.legal-contact:hover { transform: translateY(-2px); border-color: rgba(155, 167, 124, 0.35); }
.legal-contact + .legal-contact { margin-top: 0.65rem; }
.legal-contact > span:first-child { color: var(--muted); font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; }
.legal-contact strong { overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; }
.legal-contact > span:last-child { color: var(--accent); }

.legal-data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; margin: 1.2rem 0; }
.legal-data-grid > div { min-width: 0; padding: 1rem; background: #0a0d09; border: 1px solid rgba(155, 167, 124, 0.1); border-radius: 10px; }
.legal-data-grid > div > span, .legal-facts span { color: var(--muted); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-data-grid p { width: fit-content; max-width: 100%; margin: 0.7rem 0 0; overflow-wrap: anywhere; }

.legal-list { display: grid; gap: 0.5rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.legal-list li { position: relative; padding-left: 1.35rem; }
.legal-list li::before { content: ""; position: absolute; top: 0.69em; left: 0; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(155, 167, 124, 0.07); }
.legal-rights strong { color: var(--ink); font-weight: 520; }

.legal-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; margin: 1.3rem 0; }
.legal-facts > div { min-width: 0; padding: 1rem; background: #0a0d09; border: 1px solid rgba(155, 167, 124, 0.1); border-radius: 10px; }
.legal-facts strong { display: block; margin-top: 0.55rem; color: var(--ink); font-size: 0.8rem; font-weight: 520; }
.legal-small { color: rgba(141, 150, 132, 0.72) !important; font-size: 0.75rem !important; }
.legal-updated { margin: 2rem 0 0; color: rgba(141, 150, 132, 0.6) !important; font-family: var(--mono); font-size: 0.62rem !important; letter-spacing: 0.08em; text-align: right; text-transform: uppercase; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.error-inner { max-width: 760px; text-align: center; }
.error-code { margin: 0; color: var(--olive); font-family: var(--display); font-size: clamp(7rem, 22vw, 15rem); font-weight: 650; line-height: 0.75; }
.error-page h1 { margin: 2rem 0 1rem; font-family: var(--display); font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; }
.error-page p { margin-bottom: 2rem; color: var(--muted); }

/* Motion */
.type-word {
  display: inline-block;
  white-space: nowrap;
}

.type-char {
  display: inline-block;
  opacity: 0;
  filter: blur(2px);
  transform: translateY(0.08em);
  transition: opacity 0.1s steps(1, end), filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.type-char.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.type-caret {
  display: inline-block;
  width: 2px;
  height: 0.76em;
  margin-left: 0.035em;
  vertical-align: -0.035em;
  background: var(--accent);
  box-shadow: 0 0 0.22em rgba(155, 167, 124, 0.38);
  opacity: 0;
}

.type-heading.is-typing .type-caret {
  opacity: 0.9;
  animation: terminal-caret 0.68s steps(1, end) infinite;
}

@keyframes terminal-caret {
  0%, 48% { opacity: 0.9; }
  49%, 100% { opacity: 0.12; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--reveal-delay, 0ms) var(--ease), transform 0.75s var(--reveal-delay, 0ms) var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-copy { max-width: 820px; }
  .hero h1 { font-size: clamp(3.4rem, min(9.5vw, 12vh), 6rem); }
  .tech-plane { right: -38%; width: 130%; opacity: 0.36; }
  .service-list, .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row,
  .service-row:nth-last-child(-n + 2) { grid-column: auto; }
  .service-row:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-button {
    position: relative;
    z-index: 3;
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    padding: 9px;
    background: rgba(21, 26, 18, 0.82);
    border: 1px solid rgba(155, 167, 124, 0.18);
    border-radius: 10px;
    transition: background-color 0.25s, border-color 0.25s;
  }
  .menu-button:hover, .menu-button[aria-expanded="true"] { background: var(--surface-2); border-color: rgba(155, 167, 124, 0.38); }
  .menu-button span:not(.sr-only) { width: 18px; margin: 3px 0; }
  .menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    z-index: 2;
    inset: 82px var(--pad) auto;
    display: flex;
    max-width: 420px;
    margin-left: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.15rem;
    padding: 0.75rem;
    background: rgba(15, 19, 13, 0.97);
    border: 1px solid rgba(155, 167, 124, 0.2);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(20px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s, transform 0.28s var(--ease), visibility 0.22s;
  }
  .site-nav.open { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
  .site-nav > a:not(.button) {
    padding: 0.82rem 0.9rem;
    color: rgba(242, 245, 237, 0.76);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.84rem;
    font-weight: 520;
    letter-spacing: 0.01em;
    transition: color 0.25s, background-color 0.25s;
  }
  .site-nav > a:not(.button)::after { display: none; }
  .site-nav > a:not(.button):hover, .site-nav > a:not(.button).active { color: var(--ink); background: rgba(155, 167, 124, 0.08); }
  .site-nav .button { width: 100%; min-height: 48px; margin-top: 0.55rem; border-radius: 8px; }
  .intro-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-copy { max-width: 620px; }
  .contact-copy { max-width: 620px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { display: none; }
  .legal-copy { width: min(100%, 820px); margin-inline: auto; }
}

@media (max-width: 680px) {
  .section { padding-block: 4.5rem; }
  .header-inner { height: 68px; }
  .site-nav { inset: 76px 1rem auto; }
  .brand-mark { width: 40px; height: 28px; }
  .brand-name { gap: 0.34rem; padding-bottom: 2px; font-size: 0.67rem; }
  .hero { padding: 5.2rem 0 3.5rem; }
  .hero h1 { font-size: clamp(2.3rem, min(11.3vw, 11vh), 3.8rem); }
  .hero .eyebrow { margin-bottom: 0.8rem; font-size: 0.58rem; }
  .hero-lead { margin: 1.1rem 0 1.35rem; font-size: 0.9rem; line-height: 1.52; }
  .button-row { gap: 1.1rem; }
  .button { min-height: 48px; }
  .hero-foot span:first-child { display: none; }
  .hero-foot { justify-content: flex-end; }
  .tech-plane { right: -70%; bottom: -47%; width: 180%; opacity: 0.3; }
  .section-label { margin-bottom: 2.3rem; }
  .intro h2, .section-heading h2, .about h2 { font-size: clamp(2.55rem, 12vw, 3.8rem); }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 190px; padding: 1.35rem; }
  .principles h3 { margin-top: 2.7rem; }
  .service-list, .process-list, .problem-grid { grid-template-columns: 1fr; }
  .service-row:nth-last-child(-n + 2),
  .service-row:last-child { grid-column: auto; }
  .service-row { min-height: 225px; padding: 1.35rem; }
  .service-row h3 { font-size: 1.45rem; }
  .service-row p { font-size: 0.84rem; }
  .process-list li { min-height: 220px; padding: 1.35rem; }
  .process-list h3 { margin-top: 2.5rem; }
  .problem-grid { padding: 0.75rem; }
  .problem-grid > a { min-height: 72px; padding: 0.9rem 3rem 0.9rem 1rem; }
  .contact h2 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.7rem; }
  .legal-hero { padding-top: 8.5rem; }
  .legal-content { padding-top: 3rem; }
  .legal-section { padding: 1.25rem; border-radius: 13px; }
  .legal-data-grid, .legal-facts { grid-template-columns: 1fr; }
  .legal-contact { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .legal-contact > span:first-child { grid-column: 1 / -1; }
}

@media (max-height: 650px) and (min-width: 1021px) {
  .hero { padding-top: 5.1rem; padding-bottom: 3.2rem; }
  .hero h1 { font-size: clamp(3rem, min(5.6vw, 10.8vh), 5.1rem); }
  .hero-lead { margin-block: 1rem 1.2rem; }
}

@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; }
  .hero-line > span, .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .type-char { opacity: 1 !important; filter: none !important; transform: none !important; }
  .type-caret { display: none !important; }
  .tech-scan { display: none; }
}

@media print {
  .site-header, .site-footer, .legal-nav { display: none; }
  .legal-hero { padding-top: 2rem; }
  .legal-content { padding-top: 2rem; }
  .legal-layout { display: block; }
  .legal-note { border: 1px solid #aaa; }
  .legal-section { break-inside: avoid; background: transparent; box-shadow: none; }
}
