/* ============================================================
   Agentilis — Production Styles
   Option C: Slate Blue · Playfair Display
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

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

/* ── TOKENS ── */
:root {
  --primary:     #2C3E4A;
  --accent:      #7A9E8E;
  --bg:          #FAFAF7;
  --text:        #1F1F1F;

  --rule:        color-mix(in srgb, var(--text) 12%, var(--bg));
  --rule-strong: color-mix(in srgb, var(--text) 22%, var(--bg));
  --text-muted:  color-mix(in srgb, var(--text) 52%, var(--bg));
  --card-bg:     color-mix(in srgb, var(--primary) 6%, var(--bg));

  --container: 1160px;
  --radius: 2px;
}

/* ── BASE ── */
html {
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ── SITE NAV ── */
.site-nav {
  padding: 28px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  position: sticky;
  top: 0;
  background: var(--primary);
  z-index: 100;
}

.site-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--bg);
  opacity: 0.6;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.nav-links a:hover { opacity: 1; }

.nav-links a.active {
  opacity: 1;
  color: var(--bg);
  font-weight: 600;
}

/* ── HERO ── */
.hero {
  padding: 49px 0 54px;
  background: var(--primary);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8ddd8;
  margin-bottom: 36px;
  opacity: 1.0;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: #c8ddd8;
  flex-shrink: 0;
}

.hero__headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 7.5vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--bg);
  margin-bottom: 36px;
  max-width: none;
}

.hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--bg);
  max-width: 580px;
  margin-bottom: 16px;
  opacity: 0.72;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: opacity 0.18s;
}

.section .btn-primary,
.bottom-cta .btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover { opacity: 0.85; }

.btn-primary::after {
  content: '→';
  font-size: 14px;
  letter-spacing: 0;
}

/* ── SECTION COMMONS ── */
.section {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}

.section__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section__intro {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.section-head { margin-bottom: 32px; }

/* ── SERVICES ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
}

.service-card {
  background: var(--card-bg);
  padding: 40px 36px 44px;
  border-top: 3px solid var(--primary);
}

.service-card__num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 24px;
  display: block;
}

.service-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-card__body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.75;
}

/* ── SERVICE DETAIL (what-we-build page) ── */
.service-detail {
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.service-detail:last-of-type { border-bottom: none; }

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
}

.service-detail__title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.service-detail__body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.75;
  margin-bottom: 32px;
}

.service-detail__points {
  list-style: none;
}

.service-detail__points li {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.65;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.service-detail__points li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  font-size: 12px;
}

/* ── PRINCIPALS ── */
.principals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.principal-card {
  border-top: 1px solid var(--rule-strong);
  padding-top: 32px;
}

.principal-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.15;
}

.principal-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.principal-card__bio {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.72;
}

/* ── AGENT STAFF ── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.agent-card {
  background: var(--bg);
  padding: 28px 28px 30px;
  transition: background 0.15s;
}

.agent-card:hover { background: var(--card-bg); }

.agent-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  line-height: 1.2;
}

.agent-card__role {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

.agent-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  opacity: 0.62;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text);
  opacity: 0.35;
  letter-spacing: 0.04em;
}

/* ── PAGE HEADER BAND (inner pages) ── */
.page-header-band {
  background: var(--primary);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 60%, black);
}

.page-header {
  padding: 80px 0 72px;
}

.page-header__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.page-header__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.page-header__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--bg);
  max-width: none;
  margin-bottom: 24px;
}

.page-header__sub {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--bg);
  max-width: 560px;
  opacity: 0.7;
}

/* ── PROOF ROW (home) ── */
.proof-row {
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--rule);
}

.proof-item {
  background: var(--bg);
  padding: 16px 28px;
}

.proof-item__num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.proof-item__label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── HOME SERVICES TEASER ── */
.home-teaser { padding: 44px 0; }

.home-teaser__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.home-teaser__left .section__title { margin-bottom: 24px; }
.home-teaser__left .section__intro { margin-bottom: 32px; }

.btn-ghost-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.home-teaser__list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.home-teaser__list li {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
}

.home-teaser__list li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  transition: opacity 0.15s;
}

.home-teaser__list li a:hover { opacity: 0.65; }

.teaser-service-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.teaser-service-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.6;
}

.teaser-arrow {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── BOTTOM CTA ── */
.bottom-cta {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.bottom-cta__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.bottom-cta__sub {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.65;
}

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bg);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid color-mix(in srgb, var(--bg) 15%, transparent);
    z-index: 200;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 13px 24px;
    font-size: 14px;
    opacity: 0.75;
    border-bottom: 1px solid color-mix(in srgb, var(--bg) 8%, transparent);
  }

  .nav-links a:hover,
  .nav-links a.active { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .container { padding: 0 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .principals-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { flex-direction: column; gap: 20px; align-items: flex-start; }
}

@media (max-width: 760px) {
  .service-detail { grid-template-columns: 1fr; gap: 24px; }
  .service-num { font-size: 48px; }
  .principals-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .agents-grid { grid-template-columns: 1fr; }
  .hero { padding: 37px 0 36px; }
  .section { padding: 36px 0; }
  .proof-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── INLINE TEXT LINKS ── */
.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: text-decoration-color 0.15s, opacity 0.15s;
}
.inline-link:hover {
  opacity: 0.8;
  text-decoration-thickness: 2px;
}

/* Global: any <a> inside body text containers */
.about-body a,
.about-section__body a,
.story-section__body a,
.agentic-section__body a,
.service-item__body a,
.principal-card__bio a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: opacity 0.15s;
}
.about-body a:hover,
.about-section__body a:hover,
.story-section__body a:hover,
.agentic-section__body a:hover,
.service-item__body a:hover,
.principal-card__bio a:hover {
  opacity: 0.75;
}
