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

:root {
  --ink:        #1C1917;
  --ink-60:     rgba(28, 25, 23, 0.6);
  --ink-30:     rgba(28, 25, 23, 0.3);
  --ink-10:     rgba(28, 25, 23, 0.08);
  --page:       #F5F2EC;
  --surface:    #EDE9E0;
  --rule:       rgba(28, 25, 23, 0.12);
  --anchor:     #1F3A52;
  --anchor-hover: #163044;
  --ember:      #B85C38;
  --moss:       #2D6A4F;
  --max-width:  1100px;
  --gutter:     48px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark span {
  font-weight: 400;
  color: var(--ink-60);
}

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

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--anchor);
}

.nav-link-cta {
  color: var(--anchor);
}

.nav-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.nav-lang:hover,
.nav-lang:focus-visible {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--page);
}

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

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile .nav-link {
  padding: 10px 0;
  font-size: 14px;
}

/* ── Hero ── */

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28, 25, 23, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-signal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

.signal-line {
  position: absolute;
  inset: 0;
  background: var(--rule);
}

.signal-pulse {
  position: absolute;
  top: -1px;
  width: 80px;
  height: 3px;
  background: var(--anchor);
  opacity: 0.7;
  animation: signal-travel 6s ease-in-out infinite;
}

@keyframes signal-travel {
  0%   { left: -80px; opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { left: 100%; opacity: 0; }
}

.hero-inner {
  position: relative;
}

.hero-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 14ch;
}

.hero-title em {
  font-style: normal;
  color: var(--anchor);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.hero-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-60);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--anchor);
  color: var(--surface);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--anchor-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-60);
  border: 1px solid var(--rule);
  font-weight: 500;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--anchor);
  color: var(--anchor);
}

/* ── Sections ── */

.section {
  padding: 88px 0;
}

.section-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 40px;
}

/* ── Services ── */

.services-section {
  border-top: 1px solid var(--rule);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.15s;
}

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

.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--moss);
  display: block;
  margin-bottom: 12px;
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.service-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-60);
}

.service-link {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--anchor);
  text-decoration: none;
}

.service-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Approach ── */

.approach-section {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.approach-block {
  max-width: 680px;
}

.approach-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-60);
}

/* ── Projects ── */

.projects-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-60);
  max-width: 560px;
  margin-top: -24px;
  margin-bottom: 36px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.project-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px;
  background: var(--page);
  transition: border-color 0.15s;
}

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

.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-30);
  display: block;
  margin-bottom: 10px;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-60);
}

.projects-note {
  font-size: 14px;
  color: var(--ink-60);
}

.text-link {
  color: var(--anchor);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Contact ── */

.contact-section {
  border-top: 1px solid var(--rule);
}

.contact-block {
  max-width: 520px;
}

.contact-body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-60);
  margin-bottom: 20px;
}

.contact-email {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--anchor);
  text-decoration: none;
  margin-bottom: 40px;
}

.contact-email:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.form-row input,
.form-row textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--page);
  color: var(--ink);
  transition: border-color 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--anchor);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Footer ── */

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-wordmark span {
  font-weight: 400;
  color: var(--ink-60);
}

.footer-meta,
.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-30);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  :root {
    --gutter: 24px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .section {
    padding: 64px 0;
  }

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

  .approach-text {
    font-size: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .signal-pulse {
    animation: none;
    display: none;
  }

  html {
    scroll-behavior: auto;
  }
}
