/* Antarita Technologies — base styles
   Minimal black-on-white. */

:root {
  --black: #111111;
  --white: #ffffff;
  --gray: #6b6b6b;
  --line: #e4e4e4;
  --tint: #f5f4f0;
  --max-width: 1100px;
  --gutter: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: var(--gutter); }

/* Header / nav */

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

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}

.brand-mark { width: 36px; height: 36px; }

.brand-word {
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 15px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 9px;
  color: var(--gray);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  border-bottom-color: var(--black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--black);
}

/* Hero */

.hero {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "text art" "cta  art";
  align-items: center;
  column-gap: 48px;
  row-gap: 24px;
}

.hero-text {
  grid-area: text;
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--gray);
  margin: 0;
  max-width: 46ch;
}

.hero-art {
  grid-area: art;
  width: min(350px, 100%);
  justify-self: end;
}

.hero-art img { width: 100%; height: auto; }

.hero-cta {
  grid-area: cta;
  justify-self: start;
  align-self: start;
}

/* Sections */

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

/* Alternating section bands make each part of the page distinct while
   scrolling, in place of a flat white page with rule lines. */
#services,
#contact {
  background: var(--tint);
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.prose {
  max-width: 640px;
  font-size: 17px;
  color: #2b2b2b;
}

/* Founder */

.founder {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.founder h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
}

.founder-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.founder-photo {
  flex: none;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.founder-row .prose { margin: 0; }

/* Services */

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

.service-card {
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.service-icon { margin-bottom: 20px; height: 64px; display: flex; align-items: center; }
.service-icon img { height: 64px; width: auto; max-width: 100%; }

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}

.service-card > p {
  margin: 0 0 16px;
  color: var(--gray);
  font-size: 15.5px;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}

.service-card li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-top: 1px solid var(--line);
  color: #2b2b2b;
}
.service-card li:first-child { border-top: none; padding-top: 0; }
.service-card li:last-child { padding-bottom: 0; }

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--black);
}
.service-card li:first-child::before { top: 8px; }

.service-card li strong {
  color: var(--black);
  font-weight: 600;
}

.contact-section .button { margin-top: 12px; }

/* Button */

.button {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease;
}

.button:hover,
.button:focus-visible {
  opacity: 0.8;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 600;
  margin: 0 0 4px;
}

.footer-tagline {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

.footer-row a {
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.footer-row a:hover { border-bottom-color: var(--black); }

/* Responsive */

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
  }

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

  .site-nav a {
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--line);
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "art" "cta";
    justify-items: center;
    text-align: center;
    padding-top: 32px;
    padding-bottom: 32px;
    row-gap: 20px;
  }

  /* Tighter than the desktop eyebrow/h1 spacing -- on mobile the hero has
     to fit text, art, and the CTA in one stack, ideally without the button
     falling below the fold. */
  .eyebrow { margin-bottom: 12px; }

  .hero h1 { font-size: 1.8rem; margin-bottom: 12px; }

  .hero-sub { margin-left: auto; margin-right: auto; }

  .hero-art { max-width: 220px; justify-self: center; }

  .hero-cta { justify-self: center; }

  .section { padding-top: 56px; padding-bottom: 56px; }

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

  .founder-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder-row .prose { margin-left: auto; margin-right: auto; }
}
