/* Embrasure: site styles */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0c0f;
  --bg-alt: #0d1014;
  --surface: #12161b;
  --surface-2: #171c22;
  --line: #262d36;
  --line-soft: #1b2128;
  --text: #eef0f3;
  --muted: #a1a9b3;
  --faint: #7d8692;
  --accent: #f5a524;
  --accent-2: #ffc35c;
  --accent-ink: #140e02;
  --accent-wash: rgba(245, 165, 36, 0.12);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --container: 1160px;
  --gutter: 24px;
  --radius: 14px;
  --header-h: 68px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 15, 0.78);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.mark {
  width: 16px;
  height: 28px;
  flex: none;
}

.mark-wall {
  fill: var(--text);
}

.mark-light {
  fill: var(--accent);
}

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

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-wash), 0 8px 30px rgba(245, 165, 36, 0.25);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--faint);
  background: var(--surface);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* Shared type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.eyebrow-muted {
  color: var(--faint);
  font-size: 12px;
}

.eyebrow-muted::before {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 22px 0 26px;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.h1-line {
  display: block;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 48px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-proof li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-visual {
  position: relative;
}

.perimeter {
  display: block;
  width: 100%;
  height: auto;
}

.svg-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  fill: var(--faint);
}

.svg-label-strong {
  fill: var(--muted);
}

.blocked path {
  fill: none;
  stroke: #3a434e;
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}

.blocked-end circle {
  fill: var(--bg);
  stroke: #56606c;
  stroke-width: 1.4;
}

.wall polygon {
  stroke: #2c343e;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.route path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-opacity: 0.55;
}

.route path:first-child {
  stroke-width: 2;
  stroke-opacity: 0.9;
}

.pulse {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 3 97;
  stroke-dashoffset: 100;
  animation: travel 4.8s linear infinite;
}

.pulse-2 {
  animation-delay: -1.2s;
}

.pulse-3 {
  animation-delay: -2.4s;
}

.pulse-4 {
  animation-delay: -3.6s;
}

@keyframes travel {
  to {
    stroke-dashoffset: 0;
  }
}

.source {
  fill: var(--accent);
}

.source-ring {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.35;
  stroke-width: 1.2;
}

.nodes rect {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.5;
}

/* Definition band */

.definition {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
  padding: 64px 0;
}

.definition-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.definition-term {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.definition-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.definition-body {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 18px;
}

.definition-text {
  color: var(--text);
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.5;
}

/* Sections */

.section {
  padding: 112px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2,
.experience-copy h2,
.cta h2 {
  margin: 18px 0 18px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

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

.card {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--line);
}

.card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card > p:not(.eyebrow):not(.service-index) {
  margin-top: 12px;
  color: var(--muted);
}

.card .eyebrow + h3 {
  margin-top: 14px;
}

/* Services */

.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service:hover::before {
  opacity: 1;
}

.service-index {
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.service h3 {
  font-size: 24px;
}

.card .service-tagline {
  margin-top: 10px;
  color: var(--text);
  opacity: 0.86;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.checklist li {
  position: relative;
  padding-left: 22px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
}

/* Security */

.security {
  position: relative;
  overflow: hidden;
}

.security::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.10), transparent 65%);
  pointer-events: none;
}

.principles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.principle h3 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.principle p:not(.principle-index) {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* Approach */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--line) 40%, var(--line));
}

.step {
  position: relative;
}

.step-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.step h3 {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

/* Experience */

.experience {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.experience-stat {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 165, 36, 0.14), transparent 60%),
    var(--surface);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(88px, 11vw, 140px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat-label {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.experience-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.experience-copy p:not(.eyebrow) + p {
  margin-top: 16px;
}

/* Call to action */

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

.cta {
  position: relative;
  overflow: hidden;
  padding: 80px 48px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(245, 165, 36, 0.16), transparent 70%),
    var(--surface);
}

.cta h2 {
  margin-top: 0;
}

.cta p {
  max-width: 36em;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.cta-actions {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.brand-sm {
  font-size: 17px;
}

.brand-sm .mark {
  width: 13px;
  height: 22px;
}

.footer-tagline {
  flex: 1;
  color: var(--faint);
  font-size: 14px;
}

.footer-meta {
  color: var(--faint);
  font-size: 14px;
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--text);
}

/* 404 */

.not-found {
  min-height: calc(100vh - var(--header-h) - 130px);
  display: grid;
  place-items: center;
  padding: 96px 0;
  text-align: center;
}

.not-found h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.not-found p:not(.eyebrow) {
  color: var(--muted);
}

.not-found .hero-ctas {
  justify-content: center;
}

/* Responsive */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-visual {
    max-width: 560px;
  }

  .grid-3,
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

  .steps::before {
    display: none;
  }

  .experience {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-proof {
    flex-direction: column;
    margin-top: 40px;
  }

  .section {
    padding: 72px 0;
  }

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

  .section-head {
    margin-bottom: 40px;
  }

  .definition {
    padding: 48px 0;
  }

  .definition-grid,
  .grid-3,
  .grid-2,
  .principles,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .definition-grid {
    gap: 24px;
  }

  .card,
  .principle {
    padding: 26px;
  }

  .experience-stat {
    padding: 32px;
  }

  .cta {
    padding: 56px 24px;
  }

  .hero-ctas .btn {
    flex: 1 1 auto;
  }

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

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

  .pulse {
    animation: none;
    display: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
