/* ── reset & base ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0A0A0A;
  --ink: #F0F0F0;
  --ink-soft: rgba(255, 255, 255, 0.85);
  --ink-mute: rgba(255, 255, 255, 0.65);
  --ink-faint: rgba(255, 255, 255, 0.40);
  --border-subtle: rgba(255, 255, 255, 0.15);
  --border-card: rgba(255, 255, 255, 0.25);
  --dot-color: rgba(255, 255, 255, 0.06);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  height: 100%;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

/* ── layout ── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0 8vw;
}

/* ── nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem 2rem;
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--ink-mute);
}

.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ── nav dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.25s ease, border-color 0.25s ease;
  display: inline-block;
}

.nav-dropdown > a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink-mute);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: #111111;
  border: 1px solid var(--border-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 100;
  padding: 0.5rem 0;
  margin-top: 0.75rem;
}

.nav-dropdown-menu a {
  display: block;
  color: var(--ink-mute);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  padding: 0.55rem 1.5rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

/* ── pages ── */
.page {
  display: none;
  flex: 1;
  padding: 2.5rem 0 4rem 0;
  animation: fadeUp 0.4s ease both;
  position: relative;
}

.page.active {
  display: block;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── HERO (home) ── */
.hero {
  padding: 8vh 8vw 5vh 8vw;
  margin: 0 -8vw;
  width: calc(100% + 16vw);
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("hero_img.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, var(--dot-color) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 85%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 65ch;
  margin: 0 auto;
}

.hero-headline {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-description {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--ink-mute);
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-weight: 300;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tagline {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ── buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border-card);
  transition: all 0.25s ease;
  cursor: pointer;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--ink-soft);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

/* ── section titles ── */
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 3.5rem 0 1rem 0;
  color: var(--ink);
}

.section-title small {
  font-weight: 300;
  font-style: italic;
  color: var(--ink-mute);
  font-size: 0.6em;
  margin-left: 0.6rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--ink-mute);
  max-width: 55ch;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ── capabilities grid ── */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-card);
  border: 1px solid var(--border-card);
}

.capability-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  transition: background 0.25s ease;
}

.capability-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.capability-card h3 {
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.capability-card p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}

/* ── detail sections (service deep-dives) ── */
.detail-section {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
  padding-top: 3rem;
}

.detail-header {
  margin-bottom: 1.5rem;
}

.detail-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.8rem;
  font-weight: 300;
}

.detail-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.detail-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0;
}

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

.detail-body p {
  font-size: 1.05rem;
  color: var(--ink-mute);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 0.8rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem 0;
}

.detail-list li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 300;
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.detail-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
  font-weight: 400;
}

.detail-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 0.15em;
  font-size: 1rem;
  font-weight: 300;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.detail-link:hover {
  color: var(--ink);
  border-color: var(--ink-mute);
}

/* ── workforce grid ── */
.workforce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 1.5rem 0;
}

.workforce-item h4 {
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.workforce-item p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.5;
  font-weight: 300;
}

/* ── tech columns ── */
.tech-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 1rem 0 1.5rem 0;
}

.tech-column h4 {
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

/* ── process steps ── */
.process-section {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3.5rem;
  padding-top: 3rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1;
  min-width: 3rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--ink-mute);
  line-height: 1.55;
  font-weight: 300;
}

/* ── why work with us ── */
.why-section {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3.5rem;
  padding-top: 3rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-card);
  border: 1px solid var(--border-card);
}

.why-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  transition: background 0.25s ease;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.why-card h4 {
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
}

/* ── CTA section ── */
.cta-section {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3.5rem;
  padding-top: 3rem;
  text-align: center;
  padding-bottom: 2rem;
}

.cta-headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--ink-mute);
  line-height: 1.6;
  font-weight: 300;
  max-width: 50ch;
  margin: 0 auto 0.5rem auto;
}

.cta-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-or {
  color: var(--ink-faint);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ── footer statement ── */
.footer-statement {
  border-top: 1px solid var(--border-subtle);
  margin-top: 3rem;
  padding: 2.5rem 0 1rem 0;
  text-align: center;
}

.footer-statement p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.footer-tags {
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ── services page ── */
.services-header {
  margin-bottom: 2.5rem;
}

.services-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.services-header p {
  color: var(--ink-mute);
  font-size: 1.05rem;
  margin-top: 0.3rem;
  font-weight: 300;
  max-width: 50ch;
}

/* ── card grid (services) — Excel-like merged borders ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-card);
  margin: 1.5rem 0 3rem 0;
  background: var(--bg);
}

.service-card {
  border: 1px solid var(--border-card);
  margin: -1px;
  padding: 1.75rem 1.75rem 1.5rem;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--ink-soft);
  z-index: 2;
}

.services-grid .service-card:first-child {
  border-top-color: var(--border-card);
  border-left-color: var(--border-card);
}

.service-card .cat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.8rem;
  align-self: flex-start;
  font-weight: 300;
}

.service-card h3 {
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.service-card .sub {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-weight: 300;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
}

.service-card ul li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 300;
  position: relative;
  padding-left: 0.6rem;
}

.service-card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

.service-card ul li:first-child::before {
  content: "";
}

/* ── contact block (services page) ── */
.contact-block {
  margin-top: 2rem;
  padding: 2rem 0 1rem 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2.5rem;
}

.contact-block .label {
  font-size: 0.95rem;
  color: var(--ink-mute);
  font-weight: 300;
}

.contact-block a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 0.15em;
  font-size: 1.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-block a:hover {
  color: var(--ink);
  border-color: var(--ink-mute);
}

.contact-hint {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ── footer ── */
.site-footer {
  padding: 1.5rem 0 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 300;
  margin: 0;
}

.site-footer a {
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover {
  color: var(--ink-soft);
  border-color: var(--ink-faint);
}

/* ── responsive ── */
@media (max-width: 820px) {
  .app {
    padding: 0 6vw;
  }
  .hero {
    padding: 6vh 6vw 4vh 6vw;
  }
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .app {
    padding: 0 5vw;
  }
  nav {
    padding: 1.5rem 0 1rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .nav-links {
    gap: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown > a {
    font-size: 0.9rem;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    margin-top: 0.5rem;
    box-shadow: none;
    border: none;
    border-left: 1px solid var(--border-subtle);
    padding: 0.25rem 0;
    display: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
  }
  .hero {
    padding: 4vh 5vw 3vh 5vw;
  }
  .hero-headline {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .workforce-grid {
    grid-template-columns: 1fr;
  }
  .tech-columns {
    grid-template-columns: 1fr;
  }
  .process-step {
    flex-direction: column;
    gap: 0.5rem;
  }
  .step-number {
    font-size: 1.5rem;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
    border: 1px solid var(--border-card);
  }
  .service-card {
    padding: 1.25rem;
    margin: -1px 0;
  }
  .contact-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .site-footer {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 0.9rem;
  }
}

/* ── reduce motion ── */
@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
  }
  .feature-card,
  .service-card,
  .capability-card,
  .why-card,
  .contact-block a,
  .nav-links a,
  .detail-link,
  .btn,
  .site-footer a {
    transition: none !important;
  }
}
