/* ============================================================
   eleven11media v2 — Editorial Design System
============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #faf8f4;
  --bg-dark: #2a1816;
  --accent: #DFBC3F;
  --accent-light: rgba(223,188,63,.12);
  --accent-mid: #C99F9F;
  --text: #2a1816;
  --text-mid: #563D39;
  --text-muted: #9a7a76;
  --border: rgba(42,24,22,.1);
  --card-bg: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --nav-h: 100px;
  --link: #C99F9F;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 100px 0; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { font-size: 1.0625rem; color: var(--text-mid); line-height: 1.75; }

em.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.accent { color: var(--accent); }

/* ── Tags & Labels ──────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section-tag--light { color: rgba(255,255,255,.5); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #2a1816;
  border-radius: 4px;
}
.btn-primary:hover {
  background: #2a1816;
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-bottom: 1.5px solid var(--text);
  border-radius: 0;
  padding: 10px 4px;
}
.btn-ghost:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; border-radius: 4px; }

/* ── AI Dot ─────────────────────────────────────────────── */
.ai-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #A2574F;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(162,87,79,.4);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%  { box-shadow: 0 0 0 0 rgba(162,87,79,.4); }
  70% { box-shadow: 0 0 0 7px rgba(162,87,79,0); }
  100%{ box-shadow: 0 0 0 0 rgba(162,87,79,0); }
}

/* ============================================================
   NAV — Thin & Minimal
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,.05);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo-img { height: 84px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  margin-left: 8px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bg-dark);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.nav-cta:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO — Editorial
============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 0;
  background: var(--bg);
  overflow: hidden;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-eyebrow-dot { color: var(--accent); font-size: 1rem; }
.hero-eyebrow-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.hero-headline {
  color: var(--text);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 1.125rem;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 8px;
}
.hero-stat-item {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-stat-num sup {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}
.hero-stat-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Ticker / Marquee */
.ticker {
  background: var(--bg-dark);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker-scroll 24s linear infinite;
  gap: 0;
}
.ticker-inner span {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  padding: 0 32px;
}
.ticker-inner span.ticker-accent {
  color: var(--accent);
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES — Editorial List
============================================================ */
.services { background: var(--bg); }
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.services-header h2 { margin: 0; }
.services-header p { margin: 0; }

.services-list { display: flex; flex-direction: column; }
.service-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: default;
}
.service-item:hover .service-item-num { color: var(--accent); }
.service-item:hover .service-item-title { color: var(--accent); }
.service-item-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.5rem;
  color: rgba(42,24,22,.12);
  line-height: 1;
  transition: color var(--transition);
}
.service-item-body { min-width: 0; }
.service-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.service-item-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}
.service-badge-v2 {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #2a1816;
  padding: 2px 8px;
  border-radius: 2px;
}
.service-item p {
  font-size: .9375rem;
  color: var(--text-muted);
  margin: 0;
}
.service-item-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  min-width: 160px;
}
.service-item-tags span {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ============================================================
   AI SECTION — Dark, Bold
============================================================ */
.ai-section {
  background: var(--bg-dark);
  color: #fff;
  padding: 0;
  overflow: hidden;
}
.ai-section-top {
  padding: 80px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.ai-section-top h2 {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  margin: 16px 0 0;
}
.ai-section-top h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.ai-section-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
}
.ai-terminal-wrap {
  padding: 56px 48px 56px 0;
  border-right: 1px solid rgba(255,255,255,.08);
}
.ai-features-wrap {
  padding: 56px 0 56px 48px;
}
.ai-features-wrap h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 32px;
}
.ai-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.ai-feature-v2 {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ai-feature-v2:last-child { border-bottom: none; padding-bottom: 0; }
.ai-feature-icon-v2 {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-feature-v2 strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}
.ai-feature-v2 p {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}

/* Terminal */
.ai-terminal {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', monospace;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: #28c840; }
.t-title  {
  margin-left: 8px;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .04em;
}
.terminal-body { padding: 20px; font-size: .825rem; line-height: 1.8; }
.t-line { white-space: nowrap; overflow: hidden; }
.t-comment { color: #636363; }
.t-kw     { color: #c792ea; }
.t-fn     { color: #82aaff; }
.t-prop   { color: #f78c6c; }
.t-str    { color: #c3e88d; }
.t-num    { color: #f78c6c; }
.t-indent { padding-left: 20px; }
.t-blank  { height: .4em; }
.t-output { color: rgba(255,255,255,.6); margin-top: 4px; }
.t-arrow  { color: #22c55e; }
.score-val { color: #22c55e; font-weight: 700; }
.tier-val  { color: #fbbf24; }
.t-cursor  {
  display: inline-block;
  color: var(--accent);
  animation: blink 1s step-end infinite;
  font-size: .7rem;
  vertical-align: middle;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   BOUTIQUE STRIP — New Section
============================================================ */
.boutique {
  background: var(--bg-soft);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.boutique-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 64px;
  align-items: center;
}
.boutique-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.3;
  border-right: 1px solid var(--border);
  padding-right: 64px;
}
.boutique-content p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}
.boutique-content p:last-child { margin-bottom: 0; }
.boutique-content strong { color: var(--text); font-weight: 700; }
.boutique-content a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.boutique-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--border);
  padding-left: 64px;
}
.boutique-pills span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.boutique-pills span.active {
  color: var(--accent);
}

/* ============================================================
   PROCESS — Vertical Timeline
============================================================ */
.process { background: var(--bg); }
.process-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.process-left { position: sticky; top: calc(var(--nav-h) + 32px); }
.process-left h2 { margin: 8px 0 20px; }
.process-left p { max-width: 340px; }
.process-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 48px;
  position: relative;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.timeline-step:hover .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #2a1816;
}
.timeline-content { padding-top: 8px; }
.timeline-content h3 { margin-bottom: 8px; font-size: 1.1rem; }
.timeline-content p { font-size: .9375rem; }

/* ============================================================
   WORK — Asymmetric Grid
============================================================ */
.work { background: var(--bg-soft); }
.work-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.work-header h2 { margin: 8px 0 0; }
.work-header-right { text-align: right; }
.work-header-right p { font-size: .9375rem; max-width: 280px; }

.work-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card-v2 {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.work-card-v2:hover {
  box-shadow: 0 8px 40px rgba(42,24,22,.14);
  transform: translateY(-3px);
}
.work-card-v2--featured {
  grid-row: span 1;
}
.work-img-v2 {
  flex: 0 0 220px;
  position: relative;
  overflow: hidden;
}
.work-card-v2--featured .work-img-v2 { flex-basis: 300px; }
.work-img-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.work-img-v2--logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.work-img-v2--logo-half {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.work-img-v2--logo-half--warm { background: #fdf6e3; border-left: 1px solid rgba(86,61,57,.1); }
.work-img-v2--logo-half img { width: 100%; height: 100%; object-fit: contain; }

.work-overlay-v2 {
  position: absolute;
  top: 16px; left: 16px;
}
.work-tag-v2 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(42,24,22,.5);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.work-info-v2 {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
}
.work-info-v2 h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.work-info-v2 p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.work-tags-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-tags-v2 span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 2px;
}

/* Work card quiz preview */
.work-quiz-preview {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.work-quiz-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.work-quiz-selects {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.work-quiz-selects span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
}
.work-quiz-result {
  font-size: .78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.work-quiz-result-tag {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============================================================
   CONTACT
============================================================ */
.contact { background: var(--bg); }
.contact-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.contact-header h2 { margin: 8px 0 0; }
.contact-header p { margin: 0; }
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.contact-left-v2 { }
.contact-promises-v2 {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.promise-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.promise-v2:first-child { border-top: 1px solid var(--border); }
.promise-v2 svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Score Meter */
.score-meter {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color var(--transition);
}
.score-meter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.score-meter__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.score-meter__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color .4s ease;
  line-height: 1;
}
.score-meter__track {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 10px;
}
.score-meter__fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: var(--text-muted);
  transition: width .6s cubic-bezier(.4,0,.2,1), background .4s ease;
}
.score-meter__tier {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color .4s ease;
}
.score-meter--high { border-color: #DFBC3F; }
.score-meter--high .score-meter__fill { background: #DFBC3F; }
.score-meter--high .score-meter__num  { color: #b8960a; }
.score-meter--high .score-meter__tier { color: #b8960a; }
.score-meter--warm { border-color: #C99F9F; }
.score-meter--warm .score-meter__fill { background: #C99F9F; }
.score-meter--warm .score-meter__num  { color: #a07070; }
.score-meter--warm .score-meter__tier { color: #a07070; }
.score-meter--low .score-meter__fill  { background: var(--text-muted); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23888'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  background: #ffffff;
}
.form-group input.error,
.form-group select.error { border-color: #ef4444; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2a2a2a;
  color: #ffffff;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: .9375rem;
  font-weight: 500;
}
.form-success svg { width: 20px; height: 20px; color: #A2574F; flex-shrink: 0; }
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: .9375rem;
}
.hidden { display: none !important; }
.btn-loader { opacity: .7; }

/* ============================================================
   RESULTS TICKER
============================================================ */
.results-ticker {
  display: flex;
  align-items: center;
  background: var(--accent);
  overflow: hidden;
  padding: 14px 0;
  gap: 0;
}
.results-ticker-label {
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #2a1816;
  background: var(--accent);
  padding: 0 24px 0 32px;
  border-right: 1.5px solid rgba(42,24,22,.2);
  white-space: nowrap;
  z-index: 1;
}
.results-ticker-track {
  overflow: hidden;
  flex: 1;
}
.results-ticker-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 36s linear infinite;
  gap: 0;
}
.results-ticker-inner span {
  font-size: .8rem;
  font-weight: 600;
  color: #2a1816;
  padding: 0 28px;
}
.results-ticker-inner .rt-dot {
  color: rgba(42,24,22,.3);
  padding: 0 4px;
  font-size: 1.1rem;
}

/* ── Work Case Study Button ─────────────────────────────── */
.work-case-btn {
  margin-top: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0;
  letter-spacing: .02em;
  transition: color var(--transition);
}
.work-case-btn:hover { color: var(--text); }

/* ============================================================
   CASE STUDY MODAL
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42,24,22,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 32px 80px rgba(42,24,22,.3);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}
.modal-close:hover { background: var(--text); color: #fff; }
.modal-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.modal-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(42,24,22,.5);
  padding: 4px 12px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}
.modal-body { padding: 32px 40px 40px; }
.modal-sub {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.2;
}
.modal-sections { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.modal-section { padding: 20px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.modal-section--result {
  background: var(--accent-light);
  border: 1px solid rgba(223,188,63,.3);
}
.modal-section h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-section--result h4 { color: #8a6800; }
.modal-section p { font-size: .9375rem; margin: 0; }
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.modal-tags span {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 2px;
}
.modal-cta { width: 100%; justify-content: center; border-radius: 4px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #2a1816;
  padding: 56px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
.footer-brand .logo-img { height: 60px; filter: brightness(0) invert(1); opacity: .85; }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.4); margin-top: 12px; }
.footer-contact-info { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-info a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-contact-info a:hover { color: var(--accent); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-mid); }
.footer-instagram { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.25); }
.footer-made { font-style: italic; }

/* ============================================================
   REVEAL ANIMATION
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .hero-stat-item { flex: 1; min-width: 120px; border-top: 1px solid var(--border); }
  .services-header { grid-template-columns: 1fr; gap: 16px; }
  .service-item { grid-template-columns: 60px 1fr; }
  .service-item-tags { display: none; }
  .ai-section-bottom { grid-template-columns: 1fr; }
  .ai-terminal-wrap { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 48px 0; }
  .ai-features-wrap { padding: 48px 0; }
  .boutique-inner { grid-template-columns: 1fr; gap: 32px; }
  .boutique-label { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .boutique-pills { border-left: none; padding-left: 0; flex-direction: row; flex-wrap: wrap; }
  .process-inner { grid-template-columns: 1fr; gap: 48px; }
  .process-left { position: static; }
  .work-grid-v2 { grid-template-columns: 1fr; }
  .contact-header { grid-template-columns: 1fr; gap: 16px; }
  .contact-body { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .hero-eyebrow { flex-wrap: wrap; gap: 8px; }
  .service-item { grid-template-columns: 48px 1fr; gap: 16px; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .work-header-right { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── Popup Contact Form ──────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(42, 24, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.popup-modal {
  background: var(--bg);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(42,24,22,0.25);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.popup-overlay.active .popup-modal {
  transform: scale(1) translateY(0);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-soft);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}
.popup-close:hover {
  background: var(--border);
  color: var(--text);
}
.popup-close svg {
  width: 16px;
  height: 16px;
}
.popup-body {
  padding: 40px 40px 32px;
}
.popup-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.popup-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 10px;
}
.popup-sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.popup-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.popup-form-group label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.popup-form-group input,
.popup-form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
  resize: none;
}
.popup-form-group input:focus,
.popup-form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.popup-form-group input.error,
.popup-form-group textarea.error {
  border-color: #ef4444;
}
.popup-submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}
.popup-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(34,197,94,0.1);
  color: #16a34a;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.popup-success svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.popup-dismiss {
  display: block;
  width: 100%;
  margin-top: 14px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.popup-dismiss:hover {
  color: var(--text);
}
.popup-footer-note {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: 10px 0 0;
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .popup-body {
    padding: 36px 24px 28px;
  }
  .popup-modal {
    border-radius: 16px;
  }
}

/* ============================================================
   AI DEMO CTA — inside dark AI section
============================================================ */
.ai-demo-cta {
  text-align: center;
  padding: 56px 0 72px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.ai-demo-copy { margin-bottom: 0; }
.ai-demo-cta .ai-demo-open-btn {
  width: 100%;
  max-width: 400px;
}
.alm-teaser-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(223,188,63,.07);
  border: 1px solid rgba(223,188,63,.25);
  border-radius: 12px;
  padding: 14px 20px;
  max-width: 400px;
  width: 100%;
  text-align: left;
}
.alm-teaser-score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.alm-teaser-score span {
  font-size: 1rem;
  opacity: .55;
}
.alm-teaser-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.alm-teaser-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .03em;
}
.alm-teaser-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alm-teaser-action {
  font-size: .75rem;
  font-weight: 700;
  color: #4ade80;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.ai-demo-copy {
  color: rgba(255,255,255,.92);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  font-style: normal;
  margin-bottom: 24px;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.ai-demo-copy-em {
  color: var(--accent);
  font-style: italic;
}
.ai-demo-open-btn {
  background: var(--accent);
  color: #2a1816;
  border-radius: 6px;
  border: 2px solid var(--accent);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  padding: 18px 44px;
  box-shadow: 0 0 0 0 rgba(223,188,63,.5), 0 8px 32px rgba(223,188,63,.3);
  animation: demo-btn-pulse 2.8s ease-in-out infinite;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
@keyframes demo-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(223,188,63,.45), 0 8px 32px rgba(223,188,63,.25); }
  50%       { box-shadow: 0 0 0 10px rgba(223,188,63,0), 0 8px 40px rgba(223,188,63,.4); }
}
.ai-demo-open-btn:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 0 0 rgba(223,188,63,0), 0 16px 48px rgba(223,188,63,.35);
  animation: none;
}

/* ============================================================
   AI LEAD DEMO MODAL
============================================================ */
.alm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14,8,7,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.alm-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.alm-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 1080px;
  width: 100%;
  max-height: 93vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(28px) scale(.97);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 48px 120px rgba(0,0,0,.55);
}
.alm-overlay.open .alm-modal {
  transform: translateY(0) scale(1);
}

/* ── Header ─────────────────────────────────────────────── */
.alm-header {
  background: var(--bg-dark);
  padding: 40px 48px 36px;
  border-radius: 20px 20px 0 0;
  text-align: center;
  position: relative;
}
.alm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(223,188,63,.12);
  border: 1px solid rgba(223,188,63,.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.alm-header h2 {
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.alm-header > p {
  color: rgba(255,255,255,.5);
  font-size: .9375rem;
  margin: 0;
}
.alm-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
  flex-shrink: 0;
}
.alm-close:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.alm-close svg { width: 16px; height: 16px; }

/* ── Body grid ──────────────────────────────────────────── */
.alm-body {
  display: grid;
  grid-template-columns: 360px 1fr;
}

/* ── Form panel (left) ──────────────────────────────────── */
.alm-form-panel {
  padding: 32px 28px 32px 36px;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}
.alm-panel-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.alm-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1;
}
.alm-field { display: flex; flex-direction: column; gap: 3px; }
.alm-field label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.alm-field-val {
  font-size: .875rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  line-height: 1.4;
}
.alm-field-val--message {
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.5;
}
.alm-urgency-badge {
  display: inline-block;
  background: #fef2f2;
  color: #991b1b;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 2px;
  border: 1px solid #fecaca;
}
.alm-generate-btn {
  justify-content: center;
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.alm-generate-btn--loading {
  background: var(--text-muted) !important;
  color: #fff !important;
  cursor: not-allowed;
  pointer-events: none;
}
.alm-generate-btn--done {
  background: #22c55e !important;
  color: #fff !important;
}
.alm-generate-btn--done:hover {
  background: #16a34a !important;
  transform: none;
}
.alm-form-note {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 12px;
  font-style: italic;
  text-align: center;
}

/* ── Output panel (right) ───────────────────────────────── */
.alm-output-panel {
  padding: 32px 36px 32px 28px;
  display: flex;
  flex-direction: column;
}

/* Waiting state */
.alm-waiting {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}
.alm-waiting-dot { margin-bottom: 4px; }
.alm-waiting p {
  font-size: .9375rem;
  color: var(--text-muted);
  margin: 0;
}
.alm-waiting p strong { color: var(--text); }
.alm-waiting-hint {
  font-size: .8125rem !important;
  color: rgba(42,24,22,.35) !important;
  font-style: italic;
}

/* Generating state */
.alm-generating {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 24px;
  text-align: center;
}
.alm-gen-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: almSpin .75s linear infinite;
}
@keyframes almSpin { to { transform: rotate(360deg); } }
.alm-gen-label {
  font-size: .9375rem;
  color: var(--text-mid);
  margin: 0;
  font-weight: 500;
}
.alm-gen-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  width: 100%;
  max-width: 280px;
}
.alm-gen-step {
  font-size: .8125rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: opacity .3s ease, color .3s ease, background .3s ease;
}
.alm-gen-step--active {
  color: var(--text);
  background: var(--accent-light);
  border-color: rgba(223,188,63,.3);
}
.alm-gen-step--done {
  color: #16a34a;
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.alm-gen-step--done::before {
  content: '✓ ';
  font-weight: 700;
}

/* Results */
.alm-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alm-result-item {
  opacity: 0;
  animation: almSlideIn .45s cubic-bezier(.4,0,.2,1) forwards;
}
.alm-result-item:nth-child(1) { animation-delay: .05s; }
.alm-result-item:nth-child(2) { animation-delay: .18s; }
.alm-result-item:nth-child(3) { animation-delay: .31s; }
.alm-result-item:nth-child(4) { animation-delay: .44s; }
.alm-result-item:nth-child(5) { animation-delay: .57s; }
@keyframes almSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Score card */
.alm-score-card {
  background: linear-gradient(135deg, #2a1816 0%, #3e2420 100%);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.alm-score-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.alm-score-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.alm-score-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.alm-score-denom {
  font-size: 1.4rem;
  opacity: .6;
}
.alm-score-badge {
  display: inline-block;
  background: rgba(223,188,63,.18);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(223,188,63,.3);
  transform: scale(0);
  transform-origin: center;
}
.alm-score-badge.alm-badge-pop {
  animation: almBadgePop .55s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes almBadgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
/* Score ring */
.alm-score-ring-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 4px;
}
.alm-score-ring {
  width: 128px;
  height: 128px;
  transform: rotate(-90deg);
}
.alm-ring-track {
  fill: none;
  stroke: rgba(255,255,255,.1);
  stroke-width: 8;
}
.alm-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1) .15s;
}
.alm-ring-fill.animate {
  stroke-dashoffset: 28.27;
}
.alm-score-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.alm-score-right { flex: 1; }
.alm-score-reason {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin: 0;
  line-height: 1.6;
}

/* Generic cards */
.alm-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.alm-card-header {
  background: var(--bg-soft);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.alm-card-icon { font-size: .875rem; }
.alm-card-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.alm-card-body { padding: 14px 16px; }

/* Lead summary */
.alm-summary-list { display: flex; flex-direction: column; gap: 7px; }
.alm-summary-row  { display: flex; gap: 10px; font-size: .8375rem; align-items: baseline; }
.alm-summary-key  { font-weight: 600; color: var(--text); min-width: 150px; flex-shrink: 0; }
.alm-summary-val  { color: var(--text-mid); line-height: 1.4; }
.alm-summary-val--hot    { color: #991b1b; font-weight: 600; }
.alm-summary-val--action { color: #16a34a; font-weight: 600; }

/* Email */
.alm-email { font-size: .8375rem; color: var(--text-mid); line-height: 1.7; }
.alm-email-subject {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.alm-email-body { margin: 0; white-space: pre-line; }

/* Notification */
.alm-notification {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .8375rem;
  color: #7f1d1d;
  line-height: 1.6;
}
.alm-notif-header {
  font-weight: 700;
  font-size: .78rem;
  color: #991b1b;
  margin-bottom: 6px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Pipeline table */
.alm-card-body--pipeline { padding: 0; }
.alm-pipeline-wrap { overflow-x: auto; }
.alm-pipeline {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
  min-width: 400px;
}
.alm-pipeline th {
  text-align: left;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.alm-pipeline td {
  padding: 9px 12px;
  color: var(--text-mid);
  font-size: .8125rem;
  border-bottom: 1px solid var(--border);
}
.alm-pipeline-row--active td { background: rgba(223,188,63,.04); }
.alm-pipeline td:first-child { font-weight: 600; color: var(--text); }
.alm-pipeline-score { color: var(--accent) !important; font-weight: 700; }
.alm-pipeline-next  { font-weight: 600; color: #16a34a; }

/* Status pills */
.alm-statuses-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px 4px;
}
.alm-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}
.alm-status-pill {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}
.alm-status-pill--hot {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ── Features bar ───────────────────────────────────────── */
.alm-features-bar {
  padding: 24px 36px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.alm-features-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.alm-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 12px;
}
.alm-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.35;
}
.alm-feat-item::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Footer CTA ─────────────────────────────────────────── */
.alm-footer-cta {
  background: var(--bg-dark);
  border-radius: 0 0 20px 20px;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.alm-footer-cta > p {
  color: rgba(255,255,255,.6);
  font-size: .9375rem;
  margin: 0;
  font-style: italic;
}
.alm-cta-link {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── ALM Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .alm-body { grid-template-columns: 1fr; }
  .alm-form-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
  }
  .alm-output-panel { padding: 28px 24px; }
  .alm-features-grid { grid-template-columns: repeat(2, 1fr); }
  .alm-header { padding: 32px 28px 28px; }
  .alm-features-bar { padding: 20px 24px 24px; }
  .alm-footer-cta { padding: 20px 24px; flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .alm-header { padding: 28px 20px 24px; }
  .alm-form-panel, .alm-output-panel { padding: 24px 16px; }
  .alm-score-card { flex-direction: column; align-items: flex-start; }
  .alm-features-grid { grid-template-columns: 1fr 1fr; }
  .alm-features-bar { padding: 18px 16px 20px; }
  .alm-footer-cta { padding: 18px 16px; border-radius: 0; }
  .alm-modal { border-radius: 16px; }
  .alm-summary-key { min-width: 110px; }
}
