:root {
  --bg: #0a0a0a;
  --bg-elevated: #121212;
  --bg-card: #141414;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --text: #f1ece2;
  --text-muted: #9a958c;
  --text-faint: #5e5a52;
  --accent: #f1ece2;
  --redaction: #f1ece2;
  --redaction-ink: #0a0a0a;

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

  --container: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);

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

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

html { scroll-behavior: smooth; }

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;
  background-image:
    radial-gradient(1200px 600px at 20% -10%, rgba(241, 236, 226, 0.04), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(241, 236, 226, 0.025), transparent 60%);
  background-attachment: fixed;
}

@media (min-width: 720px) { body { font-size: 18px; } }

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

p { margin: 0 0 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}

.brand-redaction {
  display: inline-block;
  background: var(--redaction);
  color: var(--redaction-ink);
  padding: 0.18em 0.55em 0.22em;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-media {
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  font-size: 0.93rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
nav a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--border-strong);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--text);
}
.nav-cta:hover { background: var(--bg-card); border-color: var(--text-faint); }

@media (max-width: 640px) {
  nav ul { gap: 1rem; }
  nav li:not(:last-child) { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(241, 236, 226, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241, 236, 226, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.hero-title {
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin: 0 0 1.75rem;
}

.hero-title .bar {
  display: inline-block;
  background: var(--redaction);
  color: var(--redaction-ink);
  padding: 0.05em 0.22em 0.12em;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  position: relative;
}

.hero-title .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0 3px,
    rgba(0, 0, 0, 0.04) 3px 4px
  );
  border-radius: inherit;
  pointer-events: none;
}

.hero-media {
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); background: #fff; }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--text-faint); }

/* Generic section utilities */
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

/* Who */
.who {
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

@media (min-width: 880px) {
  .who-grid { grid-template-columns: 0.42fr 1fr; }
}

.who-body { max-width: 60ch; }

.who-lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.who-foot {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.who-foot a {
  color: var(--text);
  border-bottom: 1px solid var(--text-faint);
  transition: border-color 0.2s var(--ease);
}
.who-foot a:hover { border-color: var(--text); }

.bar-inline {
  display: inline-block;
  background: var(--redaction);
  color: var(--redaction-ink);
  padding: 0 0.32em 0.05em;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Services */
.services {
  border-top: 1px solid var(--border);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.services-head {
  max-width: 56ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-intro {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

@media (min-width: 760px) { .service-grid { grid-template-columns: 1fr 1fr; } }

.service {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: background 0.3s var(--ease);
}

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

.service-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
}

.service h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service p {
  font-size: 0.97rem;
  line-height: 1.65;
}

.kw {
  font-family: var(--font-mono);
  font-size: 0.93em;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 0.05em 0.45em 0.1em;
  border-radius: 3px;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Contact */
.contact {
  border-top: 1px solid var(--border);
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
}

.contact-inner { max-width: 38rem; margin: 0 auto; }

.contact-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--text-faint);
  padding-bottom: 0.15em;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-email:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.86rem;
  color: var(--text-faint);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-brand .bar-inline {
  font-family: var(--font-mono);
  font-size: 0.75em;
  letter-spacing: 0.06em;
  font-weight: 500;
  padding: 0.18em 0.5em 0.22em;
}

.footer-meta { font-family: var(--font-mono); }

/* Selection + reduced motion */
::selection { background: var(--text); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
