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

:root {
  --bg: #09090b;
  --bg-elevated: #111113;
  --text: #e5e5e5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #3b82f6;
  --border: #27272a;
  --border-subtle: #1c1c1f;
  --max-w: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

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

body {
  font-family: var(--font);
  color: var(--text-secondary);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(59, 130, 246, 0.2);
  color: var(--text);
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
  padding: 0.9rem 0;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .logo {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}
.logo-mark {
  display: block;
  flex-shrink: 0;
  position: relative;
  top: 0.22em;
  margin-right: -0.1rem;
}
nav .links { display: flex; gap: 1.5rem; }
nav .links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s ease;
}
nav .links a:hover { color: var(--text); }
nav .links a.active { color: var(--text); }

/* Label — mono category tags */
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

/* Sections */
section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1rem;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

p {
  font-size: 0.95rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Hero */
.hero {
  padding: 4rem 0 0;
  border-top: none;
  overflow: hidden;
}
.hero-content {
  padding: 2rem 0 3rem;
}
.hero .label {
  margin-bottom: 1.2rem;
}
.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-tertiary);
  margin-bottom: 0;
  line-height: 1.7;
}
.hero-graphic {
  opacity: 0.6;
}
.hero-graphic img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page header (subpages) */
.page-header {
  padding: 4.5rem 0 3rem;
  border-top: none;
}
.page-header .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 0.5rem;
}

/* Team photo */
.team-photo {
  margin-top: 2rem;
}
.team-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Story content */
.story-content p {
}

/* About */
.about-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}
.about-content p:last-child {
  margin-bottom: 0;
}
.story-content p:last-child {
  color: inherit;
  font-size: inherit;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.service {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.service:last-child {
  border-bottom: none;
}
.service-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin-top: 0.15rem;
}
.service-icon img {
  width: 100%;
  height: 100%;
}
.service-text {
  flex: 1;
  min-width: 0;
}
.service p {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

/* Background */
.background-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 0.5rem;
}
.bg-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  font-weight: 500;
}
.highlights {
  list-style: none;
}
.highlights li {
  padding: 0.55rem 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.6;
}
.highlights li:last-child {
  border-bottom: none;
}
.highlights li::before {
  content: "\2014\00a0";
  color: var(--text-tertiary);
}

/* Contact */
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
#contact .lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0;
}
.contact-primary {
  color: var(--accent) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}
.contact-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-links a:hover {
  border-color: var(--text);
}
.contact-primary:hover {
  border-color: var(--accent) !important;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
footer .sep {
  margin: 0 0.4rem;
  color: var(--border);
}

/* Mobile */
@media (max-width: 600px) {
  .hero { padding: 2rem 0 0; }
  .hero-content { padding: 2rem 0 1.5rem; }
  section { padding: 3rem 0; }
  nav .links { gap: 1rem; }
  .contact-row { flex-direction: column; gap: 0.8rem; }
  .service { padding: 1.2rem; flex-direction: column; gap: 0.75rem; }
  .service-icon { width: 40px; height: 40px; }
  .background-grid { grid-template-columns: 1fr; gap: 2rem; }
}
