:root {
  --bg: #f4efe6;
  --ink: #17120f;
  --muted: #685d53;
  --accent: #c75f3e;
  --accent-soft: #f4c9a2;
  --surface: #fffaf1;
  --line: #d8ccbe;
  --shadow: 0 20px 40px rgba(23, 18, 15, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.65;
}

.blob-a {
  width: 540px;
  height: 540px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, #f7b17c 0%, #f4efe6 72%);
}

.blob-b {
  width: 600px;
  height: 600px;
  left: -220px;
  bottom: -260px;
  background: radial-gradient(circle, #8bb6be 0%, #f4efe6 75%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(23, 18, 15, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(23, 18, 15, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-size: 0.94rem;
}

nav {
  display: flex;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, white);
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, white);
}

.mode-btn,
.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  min-width: 2rem;
  height: 1.9rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0.75rem;
}

.mode-btn.is-active,
.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.mode-btn:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 80%, white);
  outline-offset: 1px;
}

main {
  padding: 4.8rem 0 2.5rem;
}

.hero h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-title-main,
.hero-title-accent {
  display: block;
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 66ch;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
}

.hero-cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.8rem;
  padding: 0 1rem;
  border-radius: 0.7rem;
  font-size: 0.93rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-ghost {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 90%, white);
}

.facts {
  margin: 2.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.facts li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.facts strong {
  display: block;
  font-size: 0.95rem;
}

.section {
  margin-top: 5.3rem;
}

.section-heading h2 {
  margin: 0.3rem 0 0;
  max-width: 18ch;
  font-size: clamp(1.5rem, 3.1vw, 2.4rem);
  line-height: 1.06;
}

.service-grid,
.engagement-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.card {
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.timeline {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.92rem;
}

.timeline-item {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, white);
  box-shadow: var(--shadow);
}

.period {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  font-size: 1.03rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.truth {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 38%, white);
  border-radius: 0.4rem;
}

.truth p {
  margin: 0;
  color: var(--ink);
}

.contact h2 {
  margin: 0;
}

.contact > p {
  max-width: 62ch;
  color: var(--muted);
}

.contact-links {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-links a {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, white);
  padding: 0.48rem 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--ink);
}

.site-footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.83rem;
}

.js .reveal.pre-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.pre-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .shell {
    width: min(1100px, calc(100% - 1.6rem));
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  nav {
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  main {
    padding-top: 2.7rem;
  }

  .service-grid,
  .engagement-grid {
    grid-template-columns: 1fr;
  }

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