/* ARK Angel Labs — base styles (skeleton; full design pass to come) */

:root {
  --ink: #14181d;
  --ink-soft: #4a5460;
  --paper: #ffffff;
  --paper-alt: #f5f7f9;
  --line: #e3e7ea;
  --radius: 8px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; }

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

.container.narrow { max-width: 720px; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand { display: flex; align-items: center; }

.brand-logo { height: 34px; width: auto; }

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover { color: var(--ink); }

.site-nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 18px;
}

.site-nav .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* Sections */

.section { padding: 72px 0; }

.section.alt { background: var(--paper-alt); }

.hero {
  padding: 110px 0 90px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38em;
  margin: 0 auto 2em;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius);
}

.btn:hover { opacity: 0.85; }

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 { font-size: 1.1rem; }

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

/* Footer */

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

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

.footer-logo { height: 24px; width: auto; }

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Mobile */

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 12px 0; }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

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

  .section { padding: 56px 0; }
}

/* Eyebrow section labels */

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-intro {
  color: var(--ink-soft);
  max-width: 40em;
  margin: 0;
}

/* Hero network graphic */

.hero {
  position: relative;
  overflow: hidden;
}

.hero .container { position: relative; }

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-net line,
.hero-net path {
  stroke: var(--ink);
  stroke-width: 1;
  fill: none;
  opacity: 0.07;
}

.hero-net circle {
  fill: var(--ink);
  opacity: 0.12;
}

.hero-net .pulse { animation: net-pulse 6s ease-in-out infinite; }

.hero-net .flow {
  stroke-dasharray: 5 9;
  opacity: 0.1;
  animation: net-flow 24s linear infinite;
}

@keyframes net-pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.32; }
}

@keyframes net-flow {
  to { stroke-dashoffset: -560; }
}

/* Service card icons */

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-alt);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card,
.work-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 24, 29, 0.07);
}

/* Work showcase */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.work-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper-alt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='none' stroke='%2314181d' stroke-opacity='0.07'%3E%3Cpath d='M20 30 70 15 120 45M70 15 60 80M20 110 60 80 110 120'/%3E%3C/g%3E%3Cg fill='%2314181d' fill-opacity='0.1'%3E%3Ccircle cx='20' cy='30' r='3'/%3E%3Ccircle cx='70' cy='15' r='2.5'/%3E%3Ccircle cx='120' cy='45' r='3'/%3E%3Ccircle cx='60' cy='80' r='3.5'/%3E%3Ccircle cx='20' cy='110' r='2.5'/%3E%3Ccircle cx='110' cy='120' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.work-thumb span {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0.85;
}

.work-card h3 {
  font-size: 1.05rem;
  margin: 16px 20px 4px;
}

.work-card p {
  margin: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Offices */

.offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
  max-width: 560px;
}

.office {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.office h3 {
  margin-bottom: 2px;
  font-size: 1.1rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-net .pulse,
  .hero-net .flow { animation: none; }

  .card,
  .work-card { transition: none; }
}
