/* =============================================================
   Agent sub-page styles
============================================================= */

/* Breadcrumb back link */
.agent-back {
  position: relative;
  padding: 24px 0 0;
  z-index: 1;
}
.agent-back a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .15s;
}
.agent-back a:hover { color: var(--green); }
.agent-back svg { transition: transform .2s; }
.agent-back a:hover svg { transform: translateX(-3px); }

/* =============================================================
   Hero
============================================================= */
.agent-hero {
  position: relative;
  padding: 32px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.agent-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.agent-hero-copy { max-width: 540px; }
.agent-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.agent-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(91,111,83,0.55);
  animation: livePulse 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
}
.agent-tag-layer {
  background: var(--green-tint);
  border-color: rgba(68,86,63,0.28);
  color: var(--green);
  margin-bottom: 10px;
}
.agent-tag-layer::before { display: none; }
.agent-display {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.agent-display em { font-style: italic; color: var(--green); font-weight: 400; }
.agent-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 28px;
}
.agent-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual: huge glass icon + soft glow */
.agent-hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 420px;
}
.agent-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(91,111,83,0.16) 0%, rgba(91,111,83,0) 60%),
    radial-gradient(80% 50% at 70% 30%, rgba(221,212,190,0.6) 0%, rgba(221,212,190,0) 60%);
  filter: blur(30px);
  z-index: -1;
}
.agent-hero-visual img {
  max-width: 380px;
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(20,28,20,0.18));
}

/* =============================================================
   Capabilities deep dive (4 features expanded)
============================================================= */
.agent-caps {
  padding: 80px 0;
  background: rgba(255,255,255,0.5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.agent-caps-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.agent-caps-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.01em;
  margin: 14px 0 12px;
}
.agent-caps-head p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.cap {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
  position: relative;
  overflow: hidden;
}
.cap:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 40px rgba(68,86,63,0.06);
  border-color: var(--line-2);
}
.cap-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-tint);
  border: 1px solid rgba(68,86,63,0.18);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.cap h4 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.cap p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 12px;
}
.cap-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.cap-tag {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.04);
}

/* =============================================================
   Phone preview / Screenshot
============================================================= */
.agent-preview {
  padding: 88px 0;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.preview-copy h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.01em;
  margin: 14px 0 14px;
}
.preview-copy p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.preview-list {
  display: flex; flex-direction: column; gap: 10px;
}
.preview-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.preview-list li::before {
  content: '';
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-tint);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2344563f' stroke-width='3'><path d='M5 12l5 5 9-11'/></svg>");
  background-position: center; background-repeat: no-repeat;
  background-size: 11px;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 320px;
  margin: 0 auto;
  padding: 12px;
  background: linear-gradient(180deg, #dad6c9, #b8b3a3);
  border-radius: 44px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.4) inset,
    0 8px 24px rgba(20,28,20,0.12),
    0 32px 80px rgba(20,28,20,0.18);
}
.phone-mockup::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #2a2d2a;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #f5f3ec;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 0 0 1px rgba(20,28,20,0.06);
}
.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Side-aligned: text-left, phone-right (reversed for variety on alternate sections) */
.preview-grid.preview-flip {
  grid-template-columns: 1fr 1fr;
}
.preview-grid.preview-flip .preview-copy { order: 2; }
.preview-grid.preview-flip .preview-phone { order: 1; }

/* =============================================================
   Quick-actions strip
============================================================= */
.quick-actions {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}
.quick-actions-head {
  text-align: center;
  margin-bottom: 32px;
}
.quick-actions-head h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.qa-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.qa-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.qa-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.qa-chip svg { color: var(--green); }

/* =============================================================
   Permission / Trust note (per-agent)
============================================================= */
.agent-trust {
  padding: 60px 0;
}
.trust-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.trust-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--green-tint);
  border: 1px solid rgba(68,86,63,0.18);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.trust-body h4 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}
.trust-body p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* =============================================================
   Mission sub-page specifics
============================================================= */
.mission-hero { padding: 40px 0 90px; text-align: center; }
.mission-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.mission-display {
  font-size: clamp(40px, 5.4vw, 64px);
  letter-spacing: -0.02em;
}
.mission-hero-lede {
  max-width: 600px;
  margin: 0 auto;
}

/* What we won't do */
.mission-wont { padding: 80px 0; }
.mission-wont-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.wont-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 24px 22px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.wont-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.wont-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(168,90,79,0.08);
  border: 1px solid rgba(168,90,79,0.22);
  color: var(--neg);
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wont-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.wont-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* Closing signature */
.mission-sign { padding: 30px 0 100px; }
.sign-card {
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(91,111,83,0.08), transparent 70%),
    rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 50px 56px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.sign-lede {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 28px;
  font-style: italic;
}
.sign-foot {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.sign-by {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .mission-wont-grid { grid-template-columns: 1fr; }
  .sign-card { padding: 36px 24px; }
}

/* =============================================================
   About sub-page
============================================================= */
.about-hero {
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-photo-frame { aspect-ratio: 4 / 5; }
.about-display {
  font-size: clamp(36px, 4.8vw, 56px);
  margin: 18px 0 22px;
  text-align: left;
}
.about-hero-lede {
  margin: 0;
  max-width: 540px;
  text-align: left;
}

/* Why we built it - story cards */
.about-story {
  padding: 80px 0;
  background: rgba(255,255,255,0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.story-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.story-h {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.story-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* Philosophy quote */
.about-philo { padding: 60px 0 40px; }
.philo-card {
  background:
    radial-gradient(700px 200px at 50% 0%, rgba(91,111,83,0.08), transparent 70%),
    rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 50px 56px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.philo-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  font-style: italic;
}
.philo-by {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Background stats band */
.about-bg {
  padding: 70px 0 90px;
  background: rgba(255,255,255,0.5);
  border-top: 1px solid var(--line);
}
.bg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 0;
  margin-top: 36px;
}
.bg-item {
  text-align: center;
  padding: 6px 16px;
  border-right: 1px solid var(--line);
}
.bg-item:last-child { border-right: 0; }
.bg-num {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.bg-label {
  margin-top: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bg-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  margin: 24px auto 0;
  max-width: 640px;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo-frame { aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; }
  .about-hero-copy { text-align: center; }
  .about-display { text-align: center; }
  .about-hero-lede { margin: 0 auto; text-align: center; }
  .story-grid { grid-template-columns: 1fr; }
  .bg-grid { grid-template-columns: repeat(2, 1fr); }
  .bg-item:nth-child(2) { border-right: 0; }
  .bg-item:nth-child(1), .bg-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px; margin-bottom: 12px;
  }
}
@media (max-width: 720px) {
  .bg-grid { grid-template-columns: 1fr; }
  .bg-item { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
  .bg-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .philo-card { padding: 36px 24px; }
}

/* =============================================================
   Other agents cross-link
============================================================= */
.other-agents {
  padding: 80px 0;
  background: rgba(255,255,255,0.5);
  border-top: 1px solid var(--line);
}
.other-agents-head {
  text-align: center;
  margin-bottom: 32px;
}
.other-agents-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.01em;
}
.other-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.other-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 14px 16px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.other-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(68,86,63,0.08);
  border-color: var(--line-2);
}
.other-card-icon {
  width: 80px; height: 80px;
  margin: 0 auto 10px;
}
.other-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.other-card-name {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 1080px) {
  .agent-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .agent-hero-copy { margin: 0 auto; }
  .agent-tag, .agent-hero-actions { justify-content: center; }
  .agent-hero-actions { display: flex; justify-content: center; }
  .agent-hero-visual { min-height: 320px; }
  .agent-hero-visual img { max-width: 280px; }
  .preview-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .preview-grid.preview-flip .preview-copy { order: 2; }
  .preview-grid.preview-flip .preview-phone { order: 1; }
  .preview-list { display: inline-flex; text-align: left; }
  .other-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .cap-grid { grid-template-columns: 1fr; }
  .other-row { grid-template-columns: repeat(2, 1fr); }
  .phone-mockup { width: 280px; }
  .trust-card { grid-template-columns: 1fr; text-align: left; }
  .trust-icon { margin: 0 0 8px; }
}
