/* =========================================
   exmachinasolutions.ai — Styles
   Sibling system to joelmcclurg.ai, quieter register:
   same faces (DM Sans / Gambetta), teal accent, denser layout,
   no animations.
   ========================================= */

:root {
  --bg: #FBFBFA;
  --bg-alt: #F2F4F3;
  --text: #17201E;
  --text-muted: #5C6663;
  --accent: #0F766E;
  --accent-dark: #0B5952;
  --border: #E1E5E3;
  --white: #FFFFFF;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Gambetta', serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--accent); color: white;
  padding: 0.5rem 1rem; border-radius: 0 0 8px 8px;
  z-index: 200; font-weight: 600; font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 251, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1060px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-name span { color: var(--accent); }

.nav-links {
  display: flex; gap: 1.75rem; list-style: none;
}
.nav-links a {
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
  max-width: 1060px; margin: 0 auto;
  padding: 130px 2rem 60px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 1.25rem;
  max-width: 720px;
}
.hero-lead {
  font-size: 1.08rem; color: var(--text);
  max-width: 720px; margin-bottom: 1rem; line-height: 1.7;
}
.hero-principal {
  font-size: 0.98rem; color: var(--text-muted);
  max-width: 720px; margin-bottom: 1rem; line-height: 1.7;
}
.hero-availability {
  font-size: 0.98rem; font-weight: 600; color: var(--accent-dark);
}

/* SECTIONS */
.section {
  max-width: 1060px; margin: 0 auto;
  padding: 56px 2rem;
}
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 2rem;
}
.section-alt .section-inner { max-width: 1060px; margin: 0 auto; }

.section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.section-lead {
  color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem;
}
.section > p { max-width: 720px; margin-bottom: 1rem; line-height: 1.7; }

/* CAPABILITIES */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.cap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
}
.cap h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.005em;
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
}
.cap ul { list-style: none; }
.cap li {
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.55;
  padding-left: 1rem; position: relative; margin-bottom: 0.45rem;
}
.cap li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* SELECTED WORK */
.work-list {
  border-top: 1px solid var(--border);
  max-width: 760px;
  margin-top: 1.5rem;
}
.work-item {
  display: block; padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.work-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.005em; margin-bottom: 0.35rem;
  transition: color 0.15s;
}
.work-item:hover h3 { color: var(--accent-dark); }
.work-item p {
  font-size: 0.93rem; color: var(--text-muted); line-height: 1.6; max-width: 680px;
}

/* CONTACT */
.contact-section {
  background: var(--text);
  color: white;
  padding: 60px 2rem;
}
.contact-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
.contact-inner h2 {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.contact-inner p { color: rgba(255,255,255,0.65); font-size: 0.98rem; }
.contact-links { display: flex; gap: 1rem; }
.contact-link {
  padding: 0.7rem 1.4rem; border-radius: 6px; text-decoration: none;
  font-weight: 600; font-size: 0.9rem; transition: all 0.2s;
}
.contact-link.email-link { background: var(--accent); color: white; border: 2px solid var(--accent); }
.contact-link.email-link:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.contact-link.linkedin-link { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.25); }
.contact-link.linkedin-link:hover { border-color: rgba(255,255,255,0.55); }

/* FOOTER */
footer {
  max-width: 1060px; margin: 0 auto; padding: 1.75rem 2rem;
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 2rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.55rem 0; }

  .hero { padding: 110px 1.25rem 44px; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 40px 1.25rem; }
  .cap-grid { grid-template-columns: 1fr; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  footer { padding: 1.5rem 1.25rem; }
}
