/* ─────────────────────────────────────────────
   ACE MATES — Global Stylesheet v4
   Aesthetic: Nordic Precision Luxury
   Palette: Warm Ivory · Deep Forest · Gold
───────────────────────────────────────────── */

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

:root {
  --bg:        #f6f4ef;
  --surface:   #ffffff;
  --surface2:  #f0ede6;
  --ink:       #111510;
  --dark:      #1a2118;
  --forest:    #1d3a28;
  --gold:      #b8902a;
  --gold2:     #d4a840;
  --gold-pale: #f5e8c8;
  --muted:     #5e6b60;
  --dim:       #9aab9c;
  --line:      #ddd8cc;
  --shadow:    0 2px 24px rgba(17,21,16,0.07);
  --shadow-lg: 0 8px 48px rgba(17,21,16,0.12);
  --r:         4px;
  --r-lg:      8px;
  --container: 1180px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── CONTAINERS ───────────────────── */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}
.container-narrow {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── TYPOGRAPHY ───────────────────── */
.serif { font-family: var(--font-serif); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 400;
  margin-bottom: 20px;
}
h1 em { font-style: italic; color: var(--gold); }

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 400;
  margin-bottom: 16px;
}
h2 em { font-style: italic; color: var(--gold); }

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

p { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 60ch;
}

/* ── BUTTONS ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-dark {
  background: var(--forest);
  color: #fff;
}
.btn-dark:hover { background: var(--ink); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: var(--gold2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.btn svg { flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* ── NAV ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,239,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand span { color: var(--gold); }
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); }

/* ── SECTIONS ────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface2); }
.section-dark {
  background: var(--dark);
  color: #fff;
}
.section-dark .eyebrow { color: var(--gold2); }
.section-dark .eyebrow::before { background: var(--gold2); }
.section-dark .lead { color: rgba(255,255,255,0.6); }
.section-dark h2 { color: #fff; }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .lead { margin: 0 auto; }

/* ── CARDS ───────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  border-color: rgba(184,144,42,0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

.card-accent {
  width: 32px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 20px;
}

/* ── GRIDS ───────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-2-wide { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; }

/* ── HERO ────────────────────────── */
.hero-section {
  padding: 96px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 0; right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse 80% 70% at 70% 40%, rgba(184,144,42,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }

/* ── FLOW PILLARS ────────────────── */
.flow-strip {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 2px;
  margin-top: 40px;
}
.flow-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.flow-item:hover { background: var(--forest); color: #fff; }
.flow-item:hover p { color: rgba(255,255,255,0.6); }
.flow-item:hover .flow-num { color: rgba(255,255,255,0.1); }
.flow-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--line);
  line-height: 1;
  position: absolute;
  top: 12px; right: 16px;
}
.flow-item h3 { font-size: 1rem; margin-bottom: 6px; position: relative; z-index: 1; }
.flow-item p { font-size: 0.85rem; color: var(--muted); position: relative; z-index: 1; line-height: 1.6; }

/* ── AGENT CARDS ─────────────────── */
.agent-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; }
.agent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.agent-card:hover::before { transform: scaleX(1); }
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.agent-initial {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 12px;
}
.agent-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.agent-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.agent-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ── SERVICE CARDS ───────────────── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: rgba(184,144,42,0.5);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.sc-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card h3 em { font-style: italic; color: var(--gold); }
.service-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.75; flex: 1; }
.sc-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sc-agent {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 5px 10px;
  border: 1px solid var(--line);
}
.sc-cta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.sc-cta:hover { gap: 10px; }

/* ── STATS BAR ───────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-item {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── FORM ────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.micro-copy { font-size: 0.78rem; color: var(--dim); }

/* ── DIFF ITEMS ──────────────────── */
.diff-item {
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s;
  margin-bottom: 2px;
}
.diff-item:hover { border-color: rgba(184,144,42,0.4); }
.diff-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 8px;
}
.diff-item h3 { margin-bottom: 8px; }
.diff-item p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }

/* ── QUOTE BLOCK ─────────────────── */
.quote-block {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
}
.quote-block p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  font-weight: 300;
}
.quote-block cite {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 10px;
  display: block;
}

/* ── CHIP LIST ───────────────────── */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip {
  font-size: 0.82rem;
  padding: 7px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
}

/* ── CTA BAND ────────────────────── */
.cta-band {
  background: var(--forest);
  color: #fff;
  padding: 80px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.65); }
.cta-band-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band-wrap > div { max-width: 560px; }

/* ── FOOTER ──────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-brand span { color: var(--gold2); }
.footer-tagline { font-size: 0.88rem; line-height: 1.7; max-width: 28ch; }
.footer-grid h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-grid a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--gold2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ── PROBLEM GRID ────────────────── */
.problem-section {
  background: var(--surface2);
}
.problem-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px;
}
.problem-block h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.problem-item:last-child { border-bottom: none; }
.problem-item:hover { color: var(--ink); }
.problem-arrow {
  font-size: 0.7rem;
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.problem-item:hover .problem-arrow { transform: translateX(3px); }

/* ── TABS ────────────────────────── */
.tabs-wrap { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--muted); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; padding-top: 2px; }

/* ── PAGE SPECIFICS ──────────────── */
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
}
.journey-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.journey-step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold-pale);
  line-height: 1;
  width: 36px;
  flex-shrink: 0;
}
.step-label { font-size: 0.9rem; font-weight: 500; }
.step-sub { font-size: 0.78rem; color: var(--dim); }

.drift-band {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
  overflow: hidden;
  position: relative;
}
.drift-band::before {
  content: 'DRIFT';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 18vw;
  font-weight: 700;
  color: rgba(255,255,255,0.025);
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.drift-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}
.drift-acronym {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.4;
}
.drift-acronym strong { font-weight: 700; color: var(--gold2); }
.drift-copy { max-width: 480px; }
.drift-copy h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.drift-copy p { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.75; }

/* ── UTIL ────────────────────────── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.fw-600 { font-weight: 600; }
.text-sm { font-size: 0.88rem; }
ul.styled-list { padding-left: 0; list-style: none; margin-top: 12px; }
ul.styled-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
ul.styled-list li::before {
  content: '→';
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}
ul.styled-list li:last-child { border-bottom: none; }

/* ── RESPONSIVE ──────────────────── */
@media (max-width: 1100px) {
  .grid-5, .agent-grid { grid-template-columns: repeat(3,1fr); }
  .grid-4, .stats-bar { grid-template-columns: repeat(2,1fr); }
  .flow-strip { grid-template-columns: repeat(3,1fr); }
  .tab-panel.active { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .grid-2, .grid-2-wide, .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-wrap { flex-direction: column; align-items: flex-start; }
  .tab-panel.active { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .grid-4, .grid-5, .agent-grid, .stats-bar, .flow-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .drift-inner { flex-direction: column; gap: 32px; }
}
