/* ============================================
   AGGENTO — Shared Design System
   ============================================ */

:root {
  --bg: #faf7f2;
  --bg-pure: #ffffff;
  --bg-sunken: #f3efe7;
  --border: #e6e0d4;
  --border-strong: #cfc7b6;
  --ink: #0a0a0a;
  --ink-secondary: #2a2a2a;
  --muted: #6b6862;
  --muted-2: #948f86;
  --accent: #b8451e;
  --accent-dim: #d97c5a;
  --accent-bg: #f7e9e0;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;
  --max-narrow: 920px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow .num { color: var(--accent); margin-right: 0.5rem; }

h1, h2, h3, h4 { font-weight: 400; }

em.accent {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
  font-weight: 400;
}

/* ============================================
   LAYOUT
   ============================================ */

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

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

section { position: relative; }

.divider { width: 100%; height: 1px; background: var(--border); }

.page-padding-top { padding-top: clamp(3rem, 6vw, 5rem); }
.page-padding-bottom { padding-bottom: clamp(4rem, 8vw, 7rem); }

/* ============================================
   NAV
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
}

.logo-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 3s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  letter-spacing: -0.005em;
  color: var(--ink-secondary);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-links a.active::before {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 4px auto;
  transition: all 0.3s var(--ease);
}

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 55;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.5rem; font-family: 'Fraunces', serif; font-variation-settings: "opsz" 144; }
  .nav-links .btn { font-family: 'Geist', sans-serif; font-size: 0.95rem; margin-top: 0.5rem; }
  .nav-links a.active::before { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.btn:hover { background: var(--accent); transform: translateY(-1px); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible,
.nav-toggle:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn .arrow { display: inline-block; transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn-lg {
  padding: 1rem 1.6rem;
  font-size: 0.95rem;
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid rgba(10, 10, 10, 0.12);
  box-shadow: 0 18px 35px -26px rgba(10, 10, 10, 0.14);
  font-weight: 600;
}

.btn-light:hover {
  background: rgba(250, 247, 242, 0.98);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--ink);
  transition: all 0.2s var(--ease);
}

.text-link:hover { color: var(--accent); border-color: var(--accent); gap: 0.7rem; }

/* ============================================
   COMMON SECTIONS
   ============================================ */

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 768px) {
  .section-header { grid-template-columns: 1fr; gap: 1rem; }
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 380;
}

.section-header h2 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
  font-weight: 380;
}

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}

.page-hero-eyebrow { margin-bottom: 1.5rem; }

.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 380;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.page-hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
  font-weight: 380;
}

.page-hero p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-secondary);
  max-width: 56ch;
}

/* ============================================
   AGENT DEMO
   ============================================ */

.agent {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 540px;
  max-height: 70vh;
  box-shadow: 0 24px 60px -28px rgba(10, 10, 10, 0.16), 0 2px 6px rgba(10, 10, 10, 0.04);
  position: relative;
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.agent-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.agent-status {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2c8a4a;
  box-shadow: 0 0 0 0 rgba(44, 138, 74, 0.5);
  animation: statusPulse 2s var(--ease) infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(44, 138, 74, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(44, 138, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 138, 74, 0); }
}

.agent-header-right {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.agent-stream {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.agent-stream::-webkit-scrollbar { width: 6px; }
.agent-stream::-webkit-scrollbar-track { background: transparent; }
.agent-stream::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.msg {
  max-width: 86%;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  animation: msgIn 0.45s var(--ease);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg.bot { align-self: flex-start; color: var(--ink); }
.msg.bot .bubble { background: var(--bg-sunken); padding: 0.7rem 0.95rem; border-radius: 12px 12px 12px 2px; }
.msg.user { align-self: flex-end; }
.msg.user .bubble { background: var(--ink); color: var(--bg); padding: 0.7rem 0.95rem; border-radius: 12px 12px 2px 12px; }

.msg .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.3rem;
  padding: 0 0.2rem;
}

.msg.user .meta { text-align: right; }
.msg.bot .bubble strong { font-weight: 600; color: var(--ink); }
.msg.bot .bubble a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

.suggestions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  flex-shrink: 0;
  gap: 0.5rem;
  padding: 0.25rem 0 0.75rem 0.2rem;
  animation: msgIn 0.5s var(--ease) 0.1s both;
}

.chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.42rem 0.85rem;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  letter-spacing: -0.005em;
}

.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.chip.chip-cta { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 500; }
.chip.chip-cta:hover { background: var(--accent); border-color: var(--accent); color: white; }

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 0.7rem 0.95rem;
  background: var(--bg-sunken);
  border-radius: 12px 12px 12px 2px;
  align-self: flex-start;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: typing 1.2s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.agent-input {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0.85rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--bg-pure);
}

.agent-input input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
  background: transparent;
  color: var(--ink);
}

.agent-input input::placeholder { color: var(--muted-2); }

.send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  transition: all 0.18s var(--ease);
  flex-shrink: 0;
}

.send-btn:hover { background: var(--accent); transform: scale(1.06); }

.agent-footer {
  padding: 0.55rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: 4rem 0 2rem;
  background: var(--ink);
  color: rgba(250, 247, 242, 0.6);
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand .logo { color: var(--bg); margin-bottom: 1rem; }
.footer-brand p { max-width: 36ch; font-size: 0.9rem; line-height: 1.55; }

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col li a { color: rgba(250, 247, 242, 0.78); transition: color 0.2s var(--ease); }
.footer-col li a:hover { color: var(--accent-dim); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.4);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 540px) {
  .footer-bottom { flex-direction: column; gap: 1rem; }
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================
   HOMEPAGE-SPECIFIC
   ============================================ */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards;
}

.hero-meta::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.hero h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 380;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.1s forwards;
}

.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
  font-weight: 380;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-secondary);
  max-width: 36ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.25s forwards;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero-stats {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.55s forwards;
}

@media (max-width: 540px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
}

.stat-num {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.stat-label { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

#agent { opacity: 0; animation: fadeUp 1s var(--ease) 0.3s forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.trust-bar {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee {
  display: flex;
  gap: 4rem;
  animation: marquee 32s linear infinite;
  width: max-content;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-item {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.7;
  font-weight: 500;
}

/* Manifesto */
.manifesto { padding: clamp(5rem, 10vw, 8rem) 0; }

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 768px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.manifesto-label { position: sticky; top: 100px; }

.manifesto p {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 350;
  margin-bottom: 1.5rem;
}

.manifesto p:last-child { margin-bottom: 0; }

.manifesto p em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
}

.manifesto p .strike { position: relative; color: var(--muted-2); }

.manifesto p .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 1.5px;
  background: var(--accent);
  transform: rotate(-1deg);
}

/* ============================================
   SERVICES (TIERS)
   ============================================ */

.services-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--border);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 960px) {
  .tiers { grid-template-columns: 1fr; }
}

.tier {
  padding: 2.25rem 2rem 2.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg-pure);
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease);
  position: relative;
}

.tier:last-child { border-right: none; }

@media (max-width: 960px) {
  .tier { border-right: none; border-bottom: 1px solid var(--border); }
  .tier:last-child { border-bottom: none; }
}

.tier:hover { background: var(--bg-sunken); }

.tier-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.tier-name {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 1.85rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.tier-tag {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.tier-price .amt {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.tier-price .duration { font-size: 0.82rem; color: var(--muted); }

.tier-features { list-style: none; margin-bottom: 2rem; flex: 1; }

.tier-features li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  padding: 0.42rem 0 0.42rem 1.3rem;
  position: relative;
}

.tier-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  top: 0.45rem;
}

.tier.featured { background: var(--ink); color: var(--bg); }
.tier.featured:hover { background: var(--ink); }
.tier.featured .tier-num { color: var(--accent-dim); }
.tier.featured .tier-name { color: var(--bg); }
.tier.featured .tier-tag { color: rgba(250, 247, 242, 0.6); }
.tier.featured .tier-price { border-color: rgba(250, 247, 242, 0.15); }
.tier.featured .tier-price .duration { color: rgba(250, 247, 242, 0.55); }
.tier.featured .tier-features li { color: rgba(250, 247, 242, 0.78); }
.tier.featured .tier-features li::before { color: var(--accent-dim); }
.tier.featured .text-link { color: var(--bg); border-color: var(--bg); }
.tier.featured .text-link:hover { color: var(--accent-dim); border-color: var(--accent-dim); }

.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  border: 1px solid rgba(217, 124, 90, 0.4);
  padding: 0.25rem 0.5rem;
  border-radius: 99px;
}

.retainer-note {
  padding: 1.75rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--muted);
}

.retainer-note strong { color: var(--ink); font-weight: 500; }

/* ============================================
   PROCESS / STEPS
   ============================================ */

.process { padding: clamp(5rem, 9vw, 8rem) 0; border-top: 1px solid var(--border); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 960px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-steps { grid-template-columns: 1fr; } }

.step {
  padding: 2rem 1.5rem 2.5rem 0;
  border-right: 1px solid var(--border);
}

.step:last-child { border-right: none; }

@media (max-width: 960px) {
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
  .step:nth-child(n+3) { padding-top: 2rem; }
}

@media (max-width: 540px) {
  .step { border-right: none; border-bottom: 1px solid var(--border); padding: 2rem 0; }
  .step:last-child { border-bottom: none; }
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-num::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.step-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.step-desc { font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

/* ============================================
   CASES / WORK
   ============================================ */

.work-section { padding: clamp(5rem, 9vw, 8rem) 0; border-top: 1px solid var(--border); background: var(--bg-sunken); }

.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 768px) { .cases { grid-template-columns: 1fr; } }

.case {
  background: var(--bg-pure);
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.3s var(--ease);
  cursor: pointer;
}

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

.case-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.case-meta .tag { color: var(--accent); }

.case-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.case-title em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }

.case-desc {
  font-size: 0.93rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  max-width: 48ch;
}

.case-metrics {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric .num {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--accent);
}

.metric .lbl { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }

/* ============================================
   TESTIMONIAL
   ============================================ */

.reviews-section { padding: clamp(5rem, 9vw, 8rem) 0; border-top: 1px solid var(--border); }

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.reviews-rating-num {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.reviews-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 0.08em; line-height: 1; }

.reviews-count { font-size: 0.88rem; color: var(--muted); }
.reviews-count strong { color: var(--ink-secondary); font-weight: 500; }

/* Carousel viewport + track */
.reviews-carousel { position: relative; }

.reviews-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.reviews-carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.review-card {
  min-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

@media (min-width: 680px) {
  .review-card { min-width: calc(50% - 0.625rem); }
}

.review-card {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.review-card-top { display: flex; align-items: center; justify-content: space-between; }

.review-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-secondary);
  flex: 1;
  max-width: 68ch;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  font-family: 'Geist', sans-serif;
}

.review-author-name { font-size: 0.85rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.review-author-meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.15rem; }

/* Controls */
.reviews-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.reviews-prev, .reviews-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-pure);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
}

.reviews-prev:hover, .reviews-next:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.reviews-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.reviews-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}

.reviews-dot.active {
  background: var(--accent);
  width: 20px;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--border);
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "AGGENTO";
  position: absolute;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  font-size: clamp(12rem, 22vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(250, 247, 242, 0.025);
  bottom: -3rem;
  right: -2rem;
  pointer-events: none;
  font-weight: 400;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) { .cta-grid { grid-template-columns: 1fr; gap: 2rem; align-items: start; } }

.cta h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 380;
  color: var(--bg);
}

.cta h2 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--accent-dim); }

.cta-right { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }

.cta-right p {
  font-size: 1rem;
  color: rgba(250, 247, 242, 0.72);
  line-height: 1.55;
  max-width: 32ch;
}

/* ============================================
   AGENTS LIBRARY
   ============================================ */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
  position: sticky;
  top: 68px;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  z-index: 40;
}

.filter-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.5rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  letter-spacing: -0.005em;
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

.filter-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.filter-btn.active:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.filter-btn .count {
  display: inline-block;
  margin-left: 0.4rem;
  opacity: 0.75;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
}

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

@media (max-width: 1024px) { .agents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .agents-grid { grid-template-columns: 1fr; } }

.agent-card {
  background: var(--bg-pure);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
  transition: background 0.25s var(--ease);
  position: relative;
}

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

.agent-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.agent-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.agent-icon svg { width: 18px; height: 18px; }

.agent-card-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
}

.agent-card-name {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 420;
  color: var(--ink);
}

.agent-card-problem {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-secondary);
  letter-spacing: -0.005em;
}

.agent-card-bestfor {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.agent-card-bestfor strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.agent-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.agent-card-price {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.agent-card-price .duration {
  font-family: 'Geist', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.3rem;
  letter-spacing: -0.005em;
}

.agent-card-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s var(--ease);
}

.agent-card:hover .agent-card-cta { gap: 0.55rem; }

.agent-card.hidden { display: none; }

/* ============================================
   AGENT DETAIL MODAL
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg-pure);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px -30px rgba(10, 10, 10, 0.3);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-sunken);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease);
  z-index: 2;
}

.modal-close:hover { background: var(--border); }

.modal-head {
  padding: 2.5rem 2.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

@media (max-width: 600px) { .modal-head { padding: 2rem 1.5rem 1.5rem; } }

.modal-head .agent-icon { margin-bottom: 1.5rem; width: 48px; height: 48px; }
.modal-head .agent-icon svg { width: 22px; height: 22px; }

.modal-head .agent-card-category { margin-bottom: 0.75rem; }

.modal-head h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.modal-head .lead {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  max-width: 56ch;
}

.modal-body { padding: 2rem 2.5rem 2.5rem; }
@media (max-width: 600px) { .modal-body { padding: 1.75rem 1.5rem 2rem; } }

.modal-section { margin-bottom: 2rem; }
.modal-section:last-child { margin-bottom: 0; }

.modal-section h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.modal-list { list-style: none; }
.modal-list li {
  padding: 0.5rem 0 0.5rem 1.3rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  border-bottom: 1px dashed var(--border);
}

.modal-list li:last-child { border-bottom: none; }

.modal-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  top: 0.55rem;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

@media (max-width: 540px) { .modal-specs { grid-template-columns: 1fr; } }

.spec {
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.spec:last-child { border-right: none; }
@media (max-width: 540px) { .spec { border-right: none; border-bottom: 1px solid var(--border); } .spec:last-child { border-bottom: none; } }

.spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.spec-value {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.modal-example {
  background: var(--bg-sunken);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.modal-example strong { color: var(--ink); }

.modal-foot {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

body.modal-open { overflow: hidden; }

/* ============================================
   SERVICES PAGE EXTRAS
   ============================================ */

.deep-tier {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}

.deep-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 768px) { .deep-tier-grid { grid-template-columns: 1fr; gap: 2rem; } }

.deep-tier-meta { position: sticky; top: 100px; }

.deep-tier-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.deep-tier-name {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 380;
  margin-bottom: 1.25rem;
}

.deep-tier-name em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--accent); }

.deep-tier-price {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: 1.7rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.deep-tier-duration { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }

.deep-tier-body p { font-size: 1.05rem; line-height: 1.6; color: var(--ink-secondary); margin-bottom: 1.5rem; max-width: 62ch; }

.deep-tier-body h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 2rem 0 1rem;
  font-weight: 500;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact-info h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 380;
  margin-bottom: 1.5rem;
}

.contact-info h3 em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; color: var(--accent); }

.contact-info p { font-size: 1.05rem; line-height: 1.55; color: var(--ink-secondary); margin-bottom: 1.5rem; }

.contact-channels { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }

.contact-channel { display: flex; gap: 1rem; align-items: flex-start; }

.contact-channel .icn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-channel .icn svg { width: 16px; height: 16px; }

.contact-channel h5 {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: -0.005em;
  margin-bottom: 0.15rem;
  font-weight: 400;
}

.contact-channel a,
.contact-channel span {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 400;
  transition: color 0.2s var(--ease);
}

.contact-channel a:hover { color: var(--accent); }

.contact-form-wrap {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.form-eyebrow { margin-bottom: 1.5rem; }

.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.form-row.two > div { display: flex; flex-direction: column; gap: 0.4rem; }
@media (max-width: 540px) { .form-row.two { grid-template-columns: 1fr; } }

.form-row label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.2s var(--ease);
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--ink); }

.form-row textarea { min-height: 110px; resize: vertical; font-family: inherit; line-height: 1.5; }

.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.form-note { font-size: 0.78rem; color: var(--muted); }

.form-row input:user-invalid,
.form-row select:user-invalid,
.form-row textarea:user-invalid {
  border-color: #c0392b;
}

/* Fallback for browsers without :user-invalid */
.form-row input.touched:invalid,
.form-row select.touched:invalid,
.form-row textarea.touched:invalid {
  border-color: #c0392b;
}

.form-submit-error {
  width: 100%;
  font-size: 0.85rem;
  color: #c0392b;
  margin-bottom: 0.5rem;
  order: -1;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list { border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  padding: 1.5rem 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 400;
  gap: 1rem;
  color: var(--ink);
}

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}

.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.faq-toggle { position: relative; }
.faq-toggle::before { width: 10px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 10px; transition: transform 0.25s var(--ease); }

.faq-item.open .faq-toggle { background: var(--ink); border-color: var(--ink); }
.faq-item.open .faq-toggle::before { background: var(--bg); }
.faq-item.open .faq-toggle::after { background: var(--bg); transform: scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-a-inner {
  padding: 0 0 1.75rem 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 70ch;
}

.faq-item.open .faq-a { max-height: 500px; }

/* ============================================
   SITE POLISH
   ============================================ */

body {
  background-image: radial-gradient(circle at top left, rgba(184, 69, 30, 0.10), transparent 18%), radial-gradient(circle at bottom right, rgba(10, 10, 10, 0.06), transparent 16%);
}

.hero {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 217, 207, 0.7);
  border-radius: 32px;
  box-shadow: 0 50px 120px -60px rgba(10, 10, 10, 0.16);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 10%, rgba(184, 69, 30, 0.14), transparent 22%), radial-gradient(circle at 80% 20%, rgba(10, 10, 10, 0.05), transparent 15%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  gap: clamp(3rem, 6vw, 5.5rem);
}

.hero h1 { max-width: 15ch; }

.hero-sub {
  max-width: 44ch;
  color: var(--ink-secondary);
}

.hero-ctas .btn {
  box-shadow: 0 18px 35px -22px rgba(10, 10, 10, 0.16);
}

.hero-ctas .btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(10, 10, 10, 0.1);
}

.hero-ctas .btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

.trust-bar {
  background: rgba(255, 255, 255, 0.95);
}

.trust-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(250, 247, 242, 1) 0%,
    rgba(250, 247, 242, 0) 10%,
    rgba(250, 247, 242, 0) 90%,
    rgba(250, 247, 242, 1) 100%
  );
}

.section-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 3.5rem;
  height: 1px;
  background: var(--border-strong);
  opacity: 0.4;
}

.section-header { position: relative; }

.section-header h2 { margin-top: 0.5rem; }

footer {
  background: #0e0c0a;
  color: rgba(250, 247, 242, 0.72);
}

.footer-col li a:hover { color: var(--bg); }

.nav {
  border-bottom-color: rgba(223, 217, 207, 0.55);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--accent); }

.nav-links .btn,
.nav-links .btn:hover,
.nav-links .btn.active { color: var(--bg); }

.btn { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease); }

.btn:hover { transform: translateY(-1px); }

/* ============================================
   SKIP-TO-CONTENT
   ============================================ */

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  padding: 0.6rem 1.15rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  z-index: 999;
  transition: top 0.15s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  outline: none;
}

/* ============================================
   SCROLL-TO-TOP BUTTON
   ============================================ */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
  z-index: 40;
  pointer-events: none;
  box-shadow: 0 4px 16px -6px rgba(10, 10, 10, 0.18);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover { background: var(--accent); border-color: var(--accent); }

@media (max-width: 540px) {
  .scroll-top { bottom: 1.25rem; right: 1.25rem; }
}

/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {

  :root {
    --bg: #111009;
    --bg-pure: #1c1915;
    --bg-sunken: #0c0b08;
    --border: #2b2520;
    --border-strong: #3d342c;
    --ink: #f2ede4;
    --ink-secondary: #cec8be;
    --muted: #857f76;
    --muted-2: #5e5952;
    --accent-bg: #261810;
  }

  /* Noise texture flips to screen so it brightens rather than darkens */
  body::before { mix-blend-mode: screen; opacity: 0.12; }

  body {
    background-image:
      radial-gradient(circle at top left,  rgba(184, 69, 30, 0.24), transparent 18%),
      radial-gradient(circle at bottom right, rgba(242, 237, 228, 0.04), transparent 16%);
  }

  /* Nav */
  .nav { background: rgba(17, 16, 9, 0.92); border-bottom-color: rgba(43, 37, 32, 0.7); }
  .nav-links { background: var(--bg); }
  .nav-links .btn,
  .nav-links .btn:hover,
  .nav-links .btn.active { color: #fff; }

  /* Hero card */
  .hero { background: rgba(28, 25, 21, 0.95); border-color: rgba(43, 37, 32, 0.8); box-shadow: 0 50px 120px -60px rgba(0,0,0,0.5); }
  .hero::before { background: radial-gradient(circle at 18% 10%, rgba(184,69,30,0.22), transparent 22%), radial-gradient(circle at 80% 20%, rgba(242,237,228,0.04), transparent 15%); }
  .hero-ctas .btn-ghost { background: rgba(242,237,228,0.07); border-color: rgba(242,237,228,0.14); color: var(--ink); }
  .hero-ctas .btn-ghost:hover { background: var(--ink); color: var(--bg); }

  /* Trust bar */
  .trust-bar { background: rgba(28, 25, 21, 0.95); }
  .trust-bar::after {
    background: linear-gradient(90deg,
      rgba(17,16,9,1) 0%, rgba(17,16,9,0) 10%,
      rgba(17,16,9,0) 90%, rgba(17,16,9,1) 100%
    );
  }

  /* Buttons */
  .btn { background: var(--accent); color: #fff; }
  .btn:hover { background: var(--accent-dim); color: #fff; }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
  .btn-ghost:hover { background: var(--ink); color: var(--bg); }

  /* btn-light lives on the CTA section (which inverts to warm cream in dark mode) */
  .btn-light { background: rgba(17,16,9,0.12); color: rgba(17,16,9,0.85); border-color: rgba(17,16,9,0.2); box-shadow: none; }
  .btn-light:hover { background: rgba(17,16,9,0.2); color: rgba(17,16,9,0.9); }

  /* CTA section — inverts to warm cream; adjust text */
  .cta-right p { color: rgba(17,16,9,0.68); }
  .cta::before { color: rgba(17,16,9,0.03); }

  /* Footer — already dark, fix variable-driven colours that would flip */
  .footer-brand .logo { color: rgba(242,237,228,0.9); }
  .footer-col li a:hover { color: #fff; }

  /* Agent demo */
  .msg.user .bubble { background: var(--accent); color: #fff; }
  .agent { box-shadow: 0 24px 60px -28px rgba(0,0,0,0.5); }

  /* Modal */
  .modal-overlay { background: rgba(0,0,0,0.65); }
  .modal { border-color: var(--border); }

  /* Form inputs */
  .form-row input,
  .form-row select,
  .form-row textarea { background: var(--bg-sunken); border-color: var(--border); color: var(--ink); }

  /* Scroll-to-top in dark mode */
  .scroll-top { border-color: var(--border); }
}

